/* ============================================================
   AOA看台 · 共享样式层 /assets/site.css
   夜场记分牌 + 战术板索引
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 200px; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { 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; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #07100C;
  --ink-2: #0C1F18;
  --panel: #12362E;
  --wine: #3A1620;
  --indigo: #241A3D;
  --lime: #D8FF3E;
  --alert: #FF4B3E;
  --paper: #F3F7F1;
  --mist: #9DB4A8;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(243, 247, 241, 0.16);
  --line-soft: rgba(243, 247, 241, 0.08);
  --shell: 1320px;
  --r-s: 4px;
  --r-m: 10px;
  --r-l: 18px;
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "Haettenschweiler", "Impact",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 6vw, 76px); }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content { display: block; }

/* ---------- 4. 布局原语 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.section { padding-block: clamp(44px, 6.5vw, 96px); }

.stack { display: grid; gap: clamp(12px, 1.6vw, 22px); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.rule { height: 1px; border: 0; background: var(--line-soft); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 5. 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--lime);
  flex: none;
}

.lede {
  max-width: 70ch;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.85;
  color: var(--mist);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.prose { max-width: 74ch; }
.prose p { line-height: 1.85; }
.prose h2, .prose h3 { margin: 1.5em 0 0.55em; }
.prose ul, .prose ol { list-style: none; margin: 0 0 1.1em; padding-left: 1.15em; }
.prose li { position: relative; margin-bottom: 0.45em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.15em; top: 0.72em;
  width: 6px; height: 6px;
  background: var(--lime);
  transform: rotate(45deg);
}
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 6. 按钮 / 芯片 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s, color 0.22s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 30px -16px rgba(216, 255, 62, 0.9);
}
.btn--lime:hover { background: #e6ff7a; }
.btn--ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--mist);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.chip:hover { color: var(--paper); border-color: rgba(216, 255, 62, 0.5); }
.chip[aria-pressed="true"], .chip.is-active {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  animation: chipFlash 0.55s var(--ease);
}
@keyframes chipFlash {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(216, 255, 62, 0); }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-s);
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}
.tag--lime { color: var(--lime); background: rgba(216, 255, 62, 0.1); }
.tag--alert { color: var(--alert); background: rgba(255, 75, 62, 0.14); }
.tag--mist { color: var(--mist); }

/* ---------- 7. 卡片 / 图片容器 ---------- */
.card, .panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: clamp(18px, 2.4vw, 28px);
}
.card--glass {
  background: var(--glass);
  border-color: var(--line);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-m);
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(135deg, rgba(216, 255, 62, 0.05) 0 2px, transparent 2px 12px),
    linear-gradient(140deg, var(--panel), var(--ink-2) 62%, var(--indigo));
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }
.media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.94);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(7, 16, 12, 0.22) 0 1px, transparent 1px 3px);
  opacity: 0.55;
}
.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(7, 16, 12, 0.92));
}
.media__tag { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* ---------- 8. 面包屑 / 页内目录 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}
.breadcrumb a { color: var(--mist); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb__sep { color: rgba(157, 180, 168, 0.5); }
.breadcrumb [aria-current="page"] { color: var(--lime); }

[data-toc] {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-soft);
  background: var(--glass);
}
[data-toc] a {
  position: relative;
  display: block;
  padding: 8px 10px 8px 16px;
  border-radius: var(--r-s);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.2s, background 0.2s;
}
[data-toc] a::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.24s var(--ease);
}
[data-toc] a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.05); }
[data-toc] a[aria-current="true"] { color: var(--lime); background: rgba(216, 255, 62, 0.08); }
[data-toc] a[aria-current="true"]::before { transform: scaleY(1); }

/* ---------- 9. 显现动效（JS 就绪后启用） ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-ready [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 页头 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-s);
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: top 0.22s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(7, 16, 12, 0.97), rgba(7, 16, 12, 0.9));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line-soft);
}

/* 顶部电子滚动条 */
.header-ticker {
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 255, 62, 0.14);
  background:
    repeating-linear-gradient(90deg, rgba(216, 255, 62, 0.06) 0 2px, transparent 2px 7px),
    var(--ink);
}
.ticker-rail {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 7px clamp(16px, 4vw, 48px);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.ticker-item::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--lime);
  transform: rotate(45deg);
  flex: none;
}
.ticker-item--alert::before { background: var(--alert); }

/* 居中刊头 */
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(12px, 1.9vw, 20px) clamp(16px, 4vw, 48px) clamp(12px, 1.8vw, 18px);
}
.masthead::after {
  content: "";
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  bottom: 3px;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(216, 255, 62, 0.45) 0 1px, transparent 1px 14px);
  opacity: 0.55;
  pointer-events: none;
}

.masthead-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.masthead-rail--end { justify-content: flex-end; }

.rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(216, 255, 62, 0.35);
  background: var(--glass);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, color 0.2s;
}
.rail-chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}
.rail-chip:hover {
  border-color: var(--lime);
  background: rgba(216, 255, 62, 0.12);
  transform: translateY(-1px);
}
.rail-chip--accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.rail-chip--accent::before { background: var(--ink); }
.rail-chip--accent:hover { background: #e6ff7a; color: var(--ink); }

.rail-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mist);
  white-space: nowrap;
}

/* 报头品牌 */
.brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  line-height: 1;
}
.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 0.24em;
}
.brand-mark__latin {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand-mark__cn {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--lime);
  transition: color 0.22s;
}
.brand:hover .brand-mark__cn { color: var(--paper); }
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--mist);
  text-transform: uppercase;
}

/* 移动端目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(216, 255, 62, 0.4);
  background: var(--glass);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--lime); background: rgba(216, 255, 62, 0.12); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}
.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* 主导航 */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18, 54, 46, 0.55), rgba(12, 31, 24, 0.18));
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 2vw, 34px);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
  counter-reset: nav;
}
.nav-list li { counter-increment: nav; }
.nav-list a {
  position: relative;
  display: block;
  padding: 13px 4px 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mist);
  transition: color 0.2s;
}
.nav-list a::before {
  content: counter(nav, decimal-leading-zero);
  position: relative;
  top: -2px;
  margin-right: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(157, 180, 168, 0.62);
  vertical-align: top;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}
.nav-list a:hover,
.nav-list a:focus-visible { color: var(--paper); }
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--lime); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(216, 255, 62, 0.7);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  color: var(--paper);
  border-top: 1px solid rgba(216, 255, 62, 0.28);
  background:
    linear-gradient(180deg, rgba(36, 26, 61, 0.38), rgba(7, 16, 12, 0) 46%),
    linear-gradient(180deg, var(--ink-2), var(--ink) 72%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.5;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(26px, 3vw, 42px);
}

.footer-brand { display: grid; gap: 8px; align-content: start; }
.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.footer-brand__line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-lede {
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
  line-height: 1.4;
}
.footer-list { display: grid; gap: 10px; }
.footer-list a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14.5px;
  color: var(--mist);
  transition: color 0.2s, padding-left 0.2s;
}
.footer-list a::before {
  content: "›";
  position: absolute;
  left: 2px;
  color: var(--lime);
  opacity: 0;
  transition: opacity 0.2s;
}
.footer-list a:hover,
.footer-list a:focus-visible { color: var(--paper); padding-left: 16px; }
.footer-list a:hover::before,
.footer-list a:focus-visible::before { opacity: 1; }

.footer-contact {
  display: grid;
  gap: 14px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px 32px;
}
.contact-row { display: grid; gap: 3px; min-width: 0; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--mist);
  text-transform: uppercase;
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}
.contact-note {
  max-width: 76ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px clamp(16px, 4vw, 48px) 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.footer-legal, .footer-note { margin: 0; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(216, 255, 62, 0.45);
  background: rgba(12, 31, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s,
    border-color 0.2s, background 0.2s;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--lime); background: rgba(216, 255, 62, 0.16); }
.to-top__text { white-space: nowrap; }
.to-top__arrow { color: var(--lime); font-size: 13px; line-height: 1; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 899px) {
  html { scroll-padding-top: 118px; }

  .ticker-item:nth-child(n + 3) { display: none; }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 12px 14px;
    gap: 12px;
  }
  .masthead::after { bottom: 1px; }
  .masthead-rail { display: none; }
  .masthead-rail--end {
    display: flex;
    justify-content: flex-end;
    order: 2;
  }
  .masthead-rail--end .rail-chip,
  .masthead-rail--end .rail-meta { display: none; }
  .brand {
    order: 1;
    justify-items: start;
    text-align: left;
  }
  .brand-tagline { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top-color: transparent;
    background: var(--ink-2);
    transition: max-height 0.34s var(--ease);
  }
  .site-nav[data-open="true"] {
    max-height: 620px;
    border-top-color: var(--line-soft);
  }
  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 4px 0 10px;
  }
  .nav-list li { border-bottom: 1px solid var(--line-soft); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a {
    padding: 15px clamp(16px, 5vw, 26px);
    font-size: 16px;
  }
  .nav-list a::before { font-size: 10px; margin-right: 10px; }
  .nav-list a::after {
    left: 0; right: auto; top: 0; bottom: 0;
    width: 3px; height: auto; bottom: 0;
    transform: scaleY(0);
    transform-origin: top center;
  }
  .nav-list a:hover::after,
  .nav-list a:focus-visible::after,
  .nav-list a[aria-current="page"]::after { transform: scaleY(1); }
  .nav-list a[aria-current="page"] { background: rgba(216, 255, 62, 0.07); }

  .site-header[data-open="true"] .scroll-progress { opacity: 0.4; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-lede { max-width: 46ch; }
}

@media (max-width: 600px) {
  .ticker-rail { font-size: 10px; letter-spacing: 0.14em; }
  .brand-mark__latin { font-size: 30px; }
  .brand-mark__cn { font-size: 18px; letter-spacing: 0.12em; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
  .contact-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { padding: 10px 13px; font-size: 10.5px; }
}

/* ---------- 13. 减少动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .rail-chip:hover { transform: none; }
  .footer-list a:hover { padding-left: 0; }
  .footer-list a:hover::before { opacity: 0; }
}
