/* ==========================================================================
   亚博赛事 · /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* ---------- 变量 ---------- */
:root {
  --ink: #0A1B2E;
  --ink-2: #12324F;
  --ink-3: #1B4066;
  --orange: #FF6A13;
  --amber: #FFA24A;
  --mint: #3BF0C4;
  --red: #F0433F;
  --paper: #F2E9DA;
  --cream: #FCF7EE;
  --black: #121315;
  --haze: #8FA6BD;

  --fg: #E6EDF4;
  --fg-soft: var(--haze);
  --line: rgba(143, 166, 189, 0.24);
  --line-strong: rgba(143, 166, 189, 0.42);

  --font-head: "Oswald", "Archivo Narrow", "Arial Narrow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;

  --ticker-h: 32px;
  --nav-h: 72px;
  --header-offset: calc(var(--ticker-h) + var(--nav-h));

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-paper: 0 1px 0 rgba(18, 19, 21, 0.1), 0 14px 28px -22px rgba(10, 27, 46, 0.7);
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--cream);
  overflow-wrap: break-word;
}
p { overflow-wrap: break-word; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: var(--radius);
}

html.nav-locked, html.nav-locked body { overflow: hidden; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -90px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 页头 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 27, 46, 0.9) 0%, rgba(10, 27, 46, 0.34) 62%, rgba(10, 27, 46, 0) 100%);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header[data-stuck] {
  background: var(--ink);
  box-shadow: 0 18px 34px -26px #000;
  border-bottom: 1px solid var(--line);
}

/* 顶部实时数据条 */
.ticker {
  height: var(--ticker-h);
  background: rgba(10, 27, 46, 0.82);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--haze);
  display: flex;
  align-items: center;
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header[data-stuck] .ticker { background: transparent; }
.ticker__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 34px);
  min-width: 0;
}
.ticker__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  flex: 0 0 auto;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}
.ticker__item--end { margin-left: auto; }
.ticker__value { color: var(--cream); font-variant-numeric: tabular-nums; }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59, 240, 196, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(59, 240, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 240, 196, 0); }
}

/* 导航行 */
.nav-shell { width: 100%; }
.nav-shell__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  height: var(--nav-h);
  transition: height 0.3s var(--ease);
}
.site-header[data-stuck] .nav-shell__inner { height: 60px; }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-height: 44px; }
.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand__copy { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream);
  line-height: 1.15;
}
.brand__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--haze);
  line-height: 1.5;
}

.primary-nav { margin-left: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
}
.primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--haze);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.primary-nav__link:hover { color: var(--cream); }
.primary-nav__link[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: clamp(10px, 1.6vw, 24px);
  flex: 0 0 auto;
}

/* 抽屉内的状态信息，仅移动端可见 */
.drawer-meta { display: none; }
.drawer-meta__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--haze);
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.drawer-meta__row span:last-child { color: var(--cream); }
.drawer-meta__cta { margin-top: 20px; width: 100%; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(18, 50, 79, 0.5);
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 阅读进度条 / 回到顶部 ---------- */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
  background: rgba(143, 166, 189, 0.16);
}
.reading-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: 280;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  border: 1px solid var(--black);
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber); }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: rgba(143, 166, 189, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--black); --btn-bd: var(--orange); }
.btn--primary:hover { --btn-bg: var(--amber); --btn-bd: var(--amber); }
.btn--ghost { --btn-bd: rgba(143, 166, 189, 0.5); --btn-fg: var(--cream); }
.btn--ghost:hover { --btn-bd: var(--mint); --btn-fg: var(--mint); }

/* ---------- 主内容偏移 ---------- */
.site-main { display: block; padding-top: var(--header-offset); }
.site-main--flush { padding-top: 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--haze);
  padding: 18px 0 0;
}
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.breadcrumb__item:not(:last-child)::after { content: "/"; margin-left: 10px; color: rgba(143, 166, 189, 0.45); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb [aria-current="page"] { color: var(--cream); }

/* ---------- 章节题头 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}
.lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.9;
  color: var(--cream);
  max-width: 36em;
}
.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.8;
  color: var(--cream);
  border-left: 3px solid var(--orange);
  padding-left: clamp(14px, 2vw, 24px);
}

/* ---------- 正文容器 ---------- */
.prose { max-width: 38em; font-size: 17px; line-height: 1.8; color: var(--fg); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.9em; }
.prose h3 { font-size: clamp(18px, 2.1vw, 22px); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--mint); border-bottom: 1px solid rgba(59, 240, 196, 0.42); }
.prose a:hover { border-bottom-color: var(--mint); }
.prose strong { color: var(--cream); }
.prose code { font-family: var(--font-mono); font-size: 0.94em; color: var(--amber); }

/* ---------- 面板 / 数据卡 / 指标 ---------- */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 26px);
}
.panel--console {
  background: linear-gradient(180deg, rgba(18, 50, 79, 0.96), rgba(10, 27, 46, 0.96));
  box-shadow: inset 0 1px 0 rgba(143, 166, 189, 0.16);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel__title {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haze);
}
.panel__time { font-family: var(--font-mono); font-size: 12px; color: var(--mint); }

.data-card {
  position: relative;
  padding: clamp(14px, 1.8vw, 20px);
  background: rgba(18, 50, 79, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.data-card:hover {
  border-color: var(--orange);
  background: rgba(18, 50, 79, 0.88);
  transform: translateY(-2px);
}
.data-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.data-card__time { font-family: var(--font-mono); font-size: 12px; color: var(--haze); }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.stat__value--mint { color: var(--mint); }
.stat__value--plain { color: var(--cream); }
.stat__label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--haze);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--haze);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}
.tag--live { color: var(--mint); border-color: rgba(59, 240, 196, 0.45); }
.tag--alert { color: var(--red); border-color: rgba(240, 67, 63, 0.5); }
.tag--accent { background: var(--amber); border-color: var(--amber); color: var(--black); }

/* ---------- 图片容器 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.figure__media {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--diagonal { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.figure__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--haze);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

/* ---------- 纸感浅色区 ---------- */
.surface-paper {
  background: var(--paper);
  color: var(--black);
  padding: clamp(40px, 7vw, 90px) 0;
}
.surface-paper :is(h1, h2, h3, h4) { color: var(--black); }
.surface-paper .section-title { color: var(--black); }
.surface-paper .eyebrow { color: #8A4A0F; }
.surface-paper .lede,
.surface-paper .pull-quote { color: var(--black); }
.surface-paper .stat__label { color: #5A6470; }
.surface-paper .prose { color: var(--black); }
.surface-paper .prose a { color: #B4460A; border-bottom-color: rgba(180, 70, 10, 0.4); }
.surface-paper .prose strong { color: var(--black); }

.paper-card {
  background: var(--cream);
  color: var(--black);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: clamp(16px, 2.4vw, 28px);
}
.paper-card :is(h1, h2, h3, h4) { color: var(--black); }

/* ---------- 标签页 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(16px, 2.4vw, 26px);
}
.tab {
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--haze);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { color: var(--cream); }
.tab[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--orange); }
.tabpanel[hidden] { display: none; }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.reveal[data-visible] { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink);
  border-top: 2px solid var(--orange);
  color: var(--haze);
  padding: clamp(40px, 6vw, 72px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3vw, 46px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.footer-col { min-width: 0; }
.footer-col__title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--cream);
}
.footer-brandline .brand__mark { width: 34px; height: 34px; font-size: 14px; }
.footer-intro { margin-top: 16px; font-size: 14px; line-height: 1.8; max-width: 32ch; }
.footer-version {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(143, 166, 189, 0.85);
}
.footer-list li { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
.footer-list a {
  color: var(--haze);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-list a:hover { color: var(--mint); border-bottom-color: var(--mint); }
.footer-list--plain li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-list__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(143, 166, 189, 0.75);
  min-width: 62px;
}
.footer-note {
  margin-top: 16px;
  padding-left: 10px;
  border-left: 2px solid var(--amber);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(143, 166, 189, 0.9);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-top: 22px;
  font-size: 13px;
}
.footer-copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--haze); border-bottom: 1px solid transparent; }
.footer-legal a:hover { color: var(--mint); border-bottom-color: var(--mint); }

/* ---------- 平板 ---------- */
@media (max-width: 1023px) {
  :root {
    --nav-h: 64px;
    --header-offset: calc(var(--ticker-h) + var(--nav-h));
  }
  .nav-toggle { display: flex; }
  .header-actions { display: none; }
  .brand__meta { display: none; }

  .primary-nav {
    position: fixed;
    top: var(--header-offset);
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    margin-left: 0;
    padding: 22px var(--gutter) 40px;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(103%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav[data-open] { transform: translateX(0); visibility: visible; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__link {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
    color: var(--cream);
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }
  .primary-nav__link[aria-current="page"] {
    color: var(--orange);
    border-bottom-color: var(--orange);
  }
  .drawer-meta { display: block; margin-top: 24px; }

  .grid--split,
  .grid--thirds,
  .grid--quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 窄桌面 ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-actions .btn--ghost { display: none; }
  .primary-nav__link { font-size: 14px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .ticker__item--end { display: none; }
  .ticker__inner { gap: 14px; }
  .brand__name { font-size: 17px; }
  .brand__mark { width: 38px; height: 38px; font-size: 15px; }
  .grid--split,
  .grid--thirds,
  .grid--quarters { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat__value { font-size: clamp(38px, 15vw, 60px); }
}

/* ---------- 动效克制 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .live-dot { animation: none; box-shadow: 0 0 0 3px rgba(59, 240, 196, 0.28); }
  .reveal { opacity: 1 !important; transform: none !important; }
}
