/* ============================================================
   365赛事 · /assets/site.css
   夜赛灯光 / 比分牌计时 / 时间切片 —— 共享外壳与基础组件
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --night: #071E1A;
  --pitch: #0E3B32;
  --turf: #1F6B50;
  --flame: #FF7A1A;
  --sky: #8FA7B0;
  --rock: #4E5A5F;
  --sand: #D9C6A5;
  --cream: #F5EFE4;
  --red: #D94A3D;
  --ink: #17211E;
  --deep: #0A1418;

  --wrap: 1280px;
  --gutter: clamp(16px, 3.6vw, 48px);
  --header-h: 78px;

  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --radius-pill: 999px;

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;
  --line: rgba(143, 167, 176, .22);
  --line-strong: rgba(143, 167, 176, .42);
  --text-soft: rgba(245, 239, 228, .8);
  --text-dim: rgba(245, 239, 228, .6);
}

@media (max-width: 1080px) { :root { --header-h: 68px; } }
@media (max-width: 560px)  { :root { --header-h: 62px; } }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main { display: block; }
#main-content, [id] { scroll-margin-top: calc(var(--header-h) + 20px); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: clamp(12px, 3vw, 32px);
  z-index: 300;
  padding: .62rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--flame);
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 30, 26, .32);
  border-bottom: 1px solid rgba(143, 167, 176, .16);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(10, 20, 24, .96);
  border-bottom-color: rgba(143, 167, 176, .3);
  box-shadow: 0 20px 40px -34px #000;
  backdrop-filter: blur(10px);
}

.header-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(143, 167, 176, .18);
  overflow: hidden;
}
.header-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--flame), var(--red));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}

/* 品牌比分牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 10px;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 44px;
  border-radius: 14px 14px 14px 4px;
  background: var(--pitch);
  border: 1px solid rgba(255, 122, 26, .48);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.brand__mark-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--flame);
}
.brand__mark-rule {
  position: absolute;
  left: 9px; right: 9px; bottom: 7px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 4px, transparent 4px 8px);
  opacity: .65;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--cream);
}
.brand__line {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sky);
}

/* 主导航 */
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(0px, .8vw, 8px); }
.site-nav__item { flex: 0 0 auto; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--text-soft);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--cream); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  color: var(--flame);
  background: rgba(255, 122, 26, .12);
}
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__foot { display: none; }
.site-nav__note { font-size: 13px; line-height: 1.7; color: var(--text-dim); }
.site-nav__stamp { font-size: 11px; letter-spacing: .12em; color: var(--red); }
.site-nav__cta { justify-self: start; }

/* 工具栏 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.version-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 3px 3px;
  border-radius: var(--radius-pill);
  background: rgba(14, 59, 50, .8);
  border: 1px solid rgba(143, 167, 176, .3);
}
.version-switch__btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(245, 239, 228, .68);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.version-switch__btn:hover { color: var(--cream); background: rgba(245, 239, 228, .1); }
.version-switch__btn[aria-pressed="true"] {
  background: var(--flame);
  color: var(--deep);
  font-weight: 800;
}
.version-switch__mark {
  padding: 0 8px 0 9px;
  font-size: 11px;
  color: var(--sky);
  opacity: .8;
  border-left: 1px dashed rgba(143, 167, 176, .45);
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
html[data-version="legacy"] .version-switch__mark { color: var(--red); opacity: 1; }
html[data-version="legacy"] .brand__mark { border-color: rgba(217, 74, 61, .6); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 239, 228, .3);
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--flame); color: var(--flame); }
.nav-toggle__bars { display: grid; gap: 5px; width: 16px; }
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.site-header[data-open="true"] .nav-toggle { border-color: var(--flame); color: var(--flame); }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 104px);
  background: var(--deep);
  color: var(--text-soft);
  border-top: 1px solid rgba(143, 167, 176, .2);
}
.footer-tape {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-tape__tag {
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--sky);
  white-space: nowrap;
}
.footer-tape__ticks {
  flex: 1 1 auto;
  height: 9px;
  background: repeating-linear-gradient(90deg, rgba(143, 167, 176, .55) 0 1px, transparent 1px 14px);
  opacity: .8;
}

.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(28px, 4vw, 52px);
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: 1.5fr .8fr .8fr 1.2fr;
  align-items: start;
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--cream);
}
.footer-brand__summary {
  margin-top: 12px;
  max-width: 26em;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(245, 239, 228, .72);
}
.footer-brand__stamp {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--sky);
}
.footer-brand__stamp--legacy { color: var(--red); margin-top: 4px; }

.footer-col__title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--sky);
}
.footer-col__title::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--flame);
  vertical-align: middle;
}
.footer-col__list { display: grid; gap: 9px; }
.footer-col__link {
  font-size: 14.5px;
  color: rgba(245, 239, 228, .76);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-col__link:hover { color: var(--cream); border-bottom-color: var(--flame); }

.footer-contact { display: grid; gap: 10px; justify-items: stretch; }
.copy-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  border: 1px dashed rgba(143, 167, 176, .45);
  background: rgba(14, 59, 50, .55);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.copy-chip:hover { border-color: var(--flame); background: rgba(31, 107, 80, .32); }
.copy-chip__text {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.copy-chip__hint {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--sky);
  transition: color var(--dur) var(--ease);
}
.copy-chip[data-copied="true"] { border-color: var(--flame); }
.copy-chip[data-copied="true"] .copy-chip__hint { color: var(--flame); }
.footer-contact__addr { font-size: 13.5px; line-height: 1.7; color: rgba(245, 239, 228, .72); }
.footer-contact__note { font-size: 12px; line-height: 1.7; color: var(--text-dim); }

.footer-legal {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  border-top: 1px solid rgba(143, 167, 176, .18);
  font-size: 12.5px;
  color: rgba(245, 239, 228, .58);
}
.footer-legal__icp { color: var(--sky); }
.footer-legal__note { color: var(--text-dim); }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .74em 1.4em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--flame { background: var(--flame); color: var(--deep); }
.btn--flame:hover { background: #FF8F3D; }
.btn--ghost { border-color: rgba(245, 239, 228, .34); color: var(--cream); }
.btn--ghost:hover { border-color: var(--flame); color: var(--flame); }
.btn--quiet { background: rgba(245, 239, 228, .1); color: var(--cream); }
.btn--quiet:hover { background: rgba(245, 239, 228, .18); }
.btn--sm { padding: .52em 1em; font-size: 12.5px; }

/* ---------- 7. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(20px, 3vw, 44px);
  grid-template-columns: 208px minmax(0, 1fr);
  align-items: start;
}
.section { padding-block: clamp(36px, 6vw, 88px); }
.section--tight { padding-block: clamp(22px, 3.6vw, 48px); }
.grid-2 {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.surface-light { background: var(--cream); color: var(--ink); }
.surface-sand { background: var(--sand); color: var(--ink); }
.rule { height: 1px; border: 0; background: var(--line); }

/* ---------- 8. 字体层级 ---------- */
.display-xl,
.display-l,
.display-m {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.02em;
  font-stretch: condensed;
}
.display-xl { font-size: clamp(48px, 9vw, 128px); }
.display-l  { font-size: clamp(36px, 5.4vw, 80px); }
.display-m  { font-size: clamp(26px, 3.6vw, 56px); line-height: 1.02; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--flame);
}

.lede {
  max-width: 38em;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  color: var(--text-soft);
}

.prose {
  max-width: 40em;
  font-size: 16.5px;
  line-height: 1.9;
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
}
.prose h3 {
  margin-top: 1.5em;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  line-height: 1.5;
}
.prose ul, .prose ol { display: grid; gap: .5em; padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--flame); border-bottom: 1px solid rgba(255, 122, 26, .45); }
.surface-light .prose, .surface-sand .prose, .panel--light .prose { color: var(--ink); }
.surface-light .lede, .surface-sand .lede { color: rgba(23, 33, 30, .8); }

.note { font-size: 13px; line-height: 1.75; color: var(--sky); }
.note--rule { border-left: 2px solid var(--flame); padding-left: 12px; }

/* ---------- 9. 侧轨章节索引 ---------- */
.rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border-radius: var(--radius-m);
  background: rgba(14, 59, 50, .58);
  border: 1px solid var(--line);
}
.rail__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--sky);
}
.rail__list { display: grid; gap: 2px; margin-top: 8px; }
.rail__link {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  color: rgba(245, 239, 228, .74);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.rail__link:hover { color: var(--cream); background: rgba(245, 239, 228, .07); }
.rail__link[aria-current="true"] {
  color: var(--flame);
  border-left-color: var(--flame);
  background: rgba(255, 122, 26, .1);
}

/* ---------- 10. 信息件 ---------- */
.scorebar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
}
.scorebar__item {
  flex: 1 1 130px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  background: var(--pitch);
}
.scorebar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--sky);
}
.scorebar__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--cream);
}

.panel {
  padding: clamp(18px, 2.6vw, 32px);
  border-radius: var(--radius-l);
  background: rgba(14, 59, 50, .6);
  border: 1px solid var(--line);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
}
.panel__body { font-size: 15.5px; line-height: 1.85; color: var(--text-soft); }
.panel--light {
  background: var(--cream);
  border-color: rgba(23, 33, 30, .14);
  color: var(--ink);
}
.panel--light .panel__body { color: rgba(23, 33, 30, .82); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--sky);
}
.chip--flame {
  border-color: rgba(255, 122, 26, .6);
  background: rgba(255, 122, 26, .1);
  color: var(--flame);
}
.chip--legacy {
  border-color: rgba(217, 74, 61, .6);
  color: var(--red);
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
}

.breadcrumbs { font-size: 12.5px; color: var(--sky); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__item { display: flex; align-items: center; gap: 8px; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: rgba(143, 167, 176, .5); }
.breadcrumbs__link { color: rgba(245, 239, 228, .75); transition: color var(--dur) var(--ease); }
.breadcrumbs__link:hover { color: var(--flame); }
.breadcrumbs__current { color: var(--cream); }

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--sky) 0 6px, transparent 6px 12px);
  opacity: .6;
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .16);
}
.timeline__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--sky);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--pitch), var(--night) 58%, var(--deep));
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--frames::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 54%, rgba(255, 122, 26, .2) 54.4%, transparent 55.2%),
    linear-gradient(105deg, transparent 67%, rgba(245, 239, 228, .14) 67.4%, transparent 68.2%);
}
.img-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--sky);
  background: linear-gradient(180deg, transparent, rgba(7, 30, 26, .88));
}

/* ---------- 12. 平板与手机 ---------- */
@media (max-width: 1080px) {
  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    margin-left: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 18px var(--gutter) 28px;
    background: var(--deep);
    border-top: 1px solid rgba(143, 167, 176, .24);
    border-bottom: 1px solid rgba(143, 167, 176, .24);
    box-shadow: 0 30px 60px -40px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }
  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item + .site-nav__item { border-top: 1px dashed rgba(143, 167, 176, .22); }
  .site-nav__link {
    display: flex;
    padding: 14px 4px;
    border-radius: 0;
    font-size: 17px;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { background: none; }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    width: 3px;
    height: 18px;
    margin-right: 10px;
    border-radius: 2px;
    background: var(--flame);
  }
  .site-nav__foot {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(143, 167, 176, .28);
  }
  .nav-toggle { display: inline-flex; }
  .header-tools__cta { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand__line { display: none; }
  .brand__mark { width: 48px; height: 40px; }
  .brand__name { font-size: 18px; }
  .version-switch__mark { display: none; }
  .scorebar { border-radius: var(--radius-m); }
}

@media (max-width: 560px) {
  .header-inner { gap: 8px; }
  .version-switch { padding: 2px; }
  .version-switch__btn { padding: 5px 9px; font-size: 11.5px; }
  .nav-toggle__label { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .display-xl { font-size: clamp(40px, 13vw, 64px); }
}

/* ---------- 13. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .header-progress__bar { transition: none; }
}
