/* ============================================================
   乐竞赛场 · 共享样式表 /assets/site.css
   夜间赛场指挥中心：侧边品牌轨道 + 连续画布
   ============================================================ */

/* ---------- 1. 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, hr { margin: 0; }

ul, ol { list-style: none; padding: 0; }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; padding: 0; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--cyan); color: #04140f; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0E1211;
  --ink-deep: #0A0D0C;
  --panel: #0B1F1A;
  --panel-soft: #0d2a23;
  --cyan: #2FF3D0;
  --cyan-hi: #5ff7dc;
  --teal: #147D6B;
  --red: #E7423F;
  --red-soft: #ff8f8d;
  --yellow: #F5C542;
  --mist: #E6F2EE;
  --mist-dim: rgba(230, 242, 238, 0.68);
  --mist-faint: rgba(230, 242, 238, 0.40);
  --glass: #1D2E2A;
  --glass-soft: rgba(29, 46, 42, 0.62);
  --line: #1F3A34;
  --moss: #6F8F6A;

  /* 字体 */
  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', ui-monospace, Consolas, monospace;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;

  /* 尺寸 */
  --rail-w: 264px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  color-scheme: dark;
}

/* ---------- 3. 中文排版与页面基底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 84% -10%, rgba(47, 243, 208, 0.10), transparent 62%),
    radial-gradient(900px 560px at 4% 108%, rgba(20, 125, 107, 0.18), transparent 64%),
    linear-gradient(to right, rgba(31, 58, 52, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 58, 52, 0.26) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-attachment: fixed, fixed, scroll, scroll;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mist);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; overflow-wrap: break-word; }
li { overflow-wrap: break-word; }

strong { font-weight: 700; color: var(--mist); }

small { font-size: 0.8rem; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(20px, 3vw, 36px);
}

::placeholder { color: var(--mist-faint); }

#main-content {
  display: block;
  min-height: 40vh;
  scroll-margin-top: 96px;
}
#main-content:focus { outline: none; }

/* ---------- 4. 工具类 ---------- */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.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;
}

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04140f;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 6. 侧边品牌轨道（header） ---------- */
.site-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #0B1F1A 0%, #081714 58%, #0E1211 100%);
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(47, 243, 208, 0.06);
}

.rail-progress {
  position: absolute;
  top: 0;
  right: -1px;
  width: 3px;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(var(--read, 0));
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  pointer-events: none;
}

.rail-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 26px);
  height: 100%;
  padding: 26px 22px 30px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  gap: 3px;
  width: 22px;
  flex: none;
}
.brand-mark > i {
  display: block;
  height: 4px;
  border-radius: 1px;
}
.brand-mark > i:nth-child(1) { width: 100%; background: var(--cyan); }
.brand-mark > i:nth-child(2) { width: 72%; background: var(--yellow); }
.brand-mark > i:nth-child(3) { width: 44%; background: var(--red); }

.brand-text { display: block; min-width: 0; }
.brand-name {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-faint);
}

/* 抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-soft);
  color: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; flex: none; }
.nav-toggle__bars > i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.25s var(--ease), opacity 0.2s linear;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* 导航 */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.nav-caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-faint);
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--mist-dim);
  font-size: 0.94rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 1px;
  background: var(--line);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-list a:hover { background: rgba(47, 243, 208, 0.07); color: var(--mist); }
.nav-list a:hover::before { background: var(--cyan); }
.nav-list a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(47, 243, 208, 0.18), rgba(47, 243, 208, 0));
  color: #ffffff;
}
.nav-list a[aria-current="page"]::before {
  background: var(--cyan);
  transform: scale(1.35);
}

.nav-utility {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-faint);
}

/* 信号点 */
.signal-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 243, 208, 0.16);
}
.signal-dot--yellow { background: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16); }
.signal-dot--red { background: var(--red); box-shadow: 0 0 0 3px rgba(231, 66, 63, 0.16); }

/* 遮罩 */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 9, 8, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.site-rail[data-open="true"] .rail-scrim {
  opacity: 1;
  pointer-events: auto;
}

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

/* ---------- 7. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: linear-gradient(180deg, #0B1F1A 0%, #08110F 62%, #0A0D0C 100%);
  border-top: 1px solid var(--line);
}

.foot-signal { display: flex; width: 100%; height: 3px; }
.foot-signal > span { display: block; height: 100%; }
.foot-signal > span:nth-child(1) { flex: 5 1 0; background: var(--cyan); }
.foot-signal > span:nth-child(2) { flex: 2 1 0; background: var(--yellow); }
.foot-signal > span:nth-child(3) { flex: 1 1 0; background: var(--red); }

.foot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 44px);
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

.foot-col { min-width: 0; }

.foot-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.foot-brandline {
  margin-top: 12px;
  max-width: 22ch;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.foot-note {
  margin-top: 12px;
  max-width: 36ch;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--mist-faint);
}

.foot-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-faint);
}

.foot-list { display: flex; flex-direction: column; gap: 9px; }
.foot-list a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--mist-dim);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.foot-list a:hover { color: var(--cyan); transform: translateX(3px); }

.foot-contact {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--mist-dim);
  overflow-wrap: break-word;
}
.foot-contact + .foot-contact { margin-top: 8px; }
.foot-contact--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--mist);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  max-width: 1180px;
  margin-inline: auto;
  padding: 18px clamp(18px, 4vw, 56px) 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist-faint);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--signal { background: var(--cyan); color: #04140f; }
.btn--signal:hover { background: var(--cyan-hi); }

.btn--ghost {
  border-color: rgba(47, 243, 208, 0.34);
  background: var(--glass-soft);
  color: var(--mist);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(47, 243, 208, 0.10);
  color: #ffffff;
}

.btn--quiet {
  border-color: var(--line);
  color: var(--mist-dim);
}
.btn--quiet:hover { border-color: var(--teal); color: var(--mist); }

.btn--sm { padding: 8px 14px; font-size: 0.78rem; }

/* ---------- 9. 正文容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}
.wrap--narrow { max-width: 780px; }

.section { padding-block: clamp(38px, 6vw, 88px); }

.section-head { max-width: 66ch; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
}

.section-desc {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 0.98rem;
  color: var(--mist-dim);
}

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

/* ---------- 10. 玻璃层与实色层 ---------- */
.glass {
  background: linear-gradient(160deg, rgba(29, 46, 42, 0.78), rgba(11, 31, 26, 0.6));
  border: 1px solid rgba(47, 243, 208, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.slab {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.slab--flush { border-radius: 0; border-inline: 0; }

/* ---------- 11. 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-soft);
  color: var(--mist-dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: rgba(47, 243, 208, 0.5); color: var(--mist); }
.chip[aria-pressed="true"],
.chip.is-active {
  border-color: var(--cyan);
  background: rgba(47, 243, 208, 0.14);
  color: #ffffff;
}
.chip--warn { border-color: rgba(245, 197, 66, 0.45); color: var(--yellow); }
.chip--alert { border-color: rgba(231, 66, 63, 0.45); color: var(--red-soft); }

/* ---------- 12. 数据组件 ---------- */
.data-table { font-size: 0.9rem; line-height: 1.4; }
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-faint);
  white-space: nowrap;
}
.data-table td { color: var(--mist-dim); }
.data-table tbody tr:hover td { background: rgba(47, 243, 208, 0.05); color: var(--mist); }
.data-table .num { color: var(--mist); }

.stat { display: flex; flex-direction: column; gap: 5px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cyan);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-faint);
}

/* ---------- 13. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(135deg, rgba(20, 125, 107, 0.28), rgba(14, 18, 17, 0.9)),
    repeating-linear-gradient(90deg, rgba(31, 58, 52, 0.9) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(31, 58, 52, 0.9) 0 1px, transparent 1px 56px);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 26px;
  height: 2px;
  background: var(--cyan);
  opacity: 0.75;
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mist-faint);
}

/* ---------- 14. 面包屑与页首 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mist-faint);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--mist-dim); }

.page-hero {
  padding-block: clamp(30px, 5vw, 64px) clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.page-hero__title { margin-top: 14px; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero__lead {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 1rem;
  color: var(--mist-dim);
}

/* ---------- 15. 章节目录与显现 ---------- */
.toc { display: flex; flex-direction: column; gap: 6px; }
.toc a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--line);
  font-size: 0.84rem;
  color: var(--mist-faint);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.toc a:hover { color: var(--mist); }
.toc a[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(47, 243, 208, 0.10), transparent);
}

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 16. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid rgba(47, 243, 208, 0.35);
  border-radius: 999px;
  background: rgba(11, 31, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--mist);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s var(--ease);
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--cyan); color: #ffffff; }

/* ---------- 17. 桌面端侧轨偏移 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .rail-scrim { display: none; }
}

/* ---------- 18. 移动 / 平板：抽屉导航 ---------- */
@media (max-width: 1023px) {
  .site-rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #0B1F1A, #0E1211 78%);
  }

  .rail-inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 12px 16px;
    overflow: visible;
  }

  .brand {
    flex: 1 1 auto;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 330px);
    z-index: 75;
    padding: 24px 20px 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B1F1A, #0E1211 72%);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease);
    visibility: hidden;
  }
  .site-rail[data-open="true"] .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .rail-progress {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform-origin: left center;
    transform: scaleX(var(--read, 0));
    background: linear-gradient(90deg, var(--cyan), var(--teal));
  }

  .nav-utility { position: static; }
}

/* ---------- 19. 栅格断点 ---------- */
@media (min-width: 620px) {
  .foot-inner { grid-template-columns: repeat(2, 1fr); }
  .foot-col--brand { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .foot-inner { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .foot-col--brand { grid-column: auto; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 20. 动效偏好 ---------- */
@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;
  }

  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .foot-list a:hover { transform: none; }
}

/* ---------- 21. 打印（战报） ---------- */
@media print {
  .site-rail,
  .rail-scrim,
  .to-top,
  .skip-link { display: none !important; }

  body {
    padding-left: 0;
    background: #ffffff;
    background-image: none;
    color: #111111;
  }

  h1, h2, h3, h4, .section-title { color: #000000; }

  .site-foot {
    background: #ffffff;
    border-top: 1px solid #cccccc;
    margin-top: 24px;
  }
  .foot-signal { display: none; }
  .foot-kicker,
  .foot-note,
  .foot-title,
  .foot-meta,
  .foot-contact { color: #444444; }
}
