/* ==========================================================================
   中欧体育站 / site.css — 共享外壳
   夜间球场转播室 × 技术蓝图 × 暖纸展览标签
   ========================================================================== */

/* 01 — Reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd, address {
  margin: 0;
}

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

img, picture, svg, video { max-width: 100%; }
img { height: auto; }

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

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

/* 02 — 设计令牌
   ========================================================================== */
:root {
  /* 品牌色 */
  --ink-green: #08251f;
  --charcoal: #111418;
  --paper: #f2e8d5;
  --lime: #c8ff3d;
  --orange: #ff6a2b;
  --line-white: #e8f2ed;
  --data-blue: #7fa6b8;
  --mint: #b8d8c8;
  --night-teal: #0c2e38;
  --paper-edge: #d9c9a8;

  /* 语义 */
  --bg: var(--ink-green);
  --fg: var(--line-white);
  --muted: var(--data-blue);
  --line: rgba(232, 242, 237, 0.16);
  --line-soft: rgba(232, 242, 237, 0.08);
  --grid: rgba(232, 242, 237, 0.055);
  --paper-ink: #16201c;
  --paper-ink-soft: #4a5b53;

  /* 结构 */
  --rail-w: 272px;
  --maxw: 1240px;
  --pad: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* 字体 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* 03 — 基础排版与蓝图底
   ========================================================================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px, -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

#main-content { scroll-margin-top: 84px; display: block; }

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

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

/* 暖纸底上的焦点环改用墨绿，保证可见 */
.panel--paper :focus-visible,
.prose--paper :focus-visible,
.footer__board :focus-visible {
  outline-color: var(--ink-green);
}

/* 04 — 工具类
   ========================================================================== */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.tilt { transform: skewX(-3deg); }

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--line-white);
}

.display-title--stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 242, 237, 0.62);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--data-blue);
}

.exhibit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--data-blue);
}

.exhibit-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
  flex: none;
}

/* 05 — 跳转链接
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.9);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* 06 — 头部外壳
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #061e19;
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px clamp(16px, 4vw, 28px);
}

.brand-mini {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  min-height: 40px;
  padding: 4px 2px;
}

.brand-mini__mark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--line-white);
}

.brand-mini__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 61, 0.4);
  border-radius: 3px;
  padding: 1px 5px;
  transform: translateY(-2px);
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(232, 242, 237, 0.06);
  color: var(--line-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover { border-color: rgba(200, 255, 61, 0.55); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--lime);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* 07 — 侧边轨道 / 移动抽屉
   ========================================================================== */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, #0a2a23 0%, var(--ink-green) 46%, #051813 100%);
  border-right: 1px solid var(--line);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.24s var(--ease), visibility 0.24s var(--ease);
}

.site-header[data-open] .rail {
  transform: translateX(0);
  visibility: visible;
}

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

.rail__brand {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rail__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--line-white);
  transition: color 0.18s var(--ease);
}

.rail__brand:hover .rail__mark { color: var(--lime); }

.rail__badge {
  display: inline-block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 61, 0.45);
  border-radius: 3px;
  padding: 2px 7px;
  background: rgba(200, 255, 61, 0.07);
}

.rail__tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--data-blue);
}

.rail__nav { margin-top: 20px; }

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail__item { display: block; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--line-white);
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--data-blue);
  transition: color 0.18s var(--ease);
}

.nav-link__label { display: inline-block; }

.nav-link:not([aria-current="page"]):hover {
  color: var(--lime);
  background: rgba(232, 242, 237, 0.06);
  border-left-color: rgba(200, 255, 61, 0.5);
}

.nav-link:not([aria-current="page"]):hover .nav-link__idx { color: var(--lime); }

.nav-link[aria-current="page"] {
  color: var(--ink-green);
  background: var(--lime);
  border-left-color: var(--orange);
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  padding-right: 26px;
}

.nav-link[aria-current="page"] .nav-link__idx {
  color: #1d4419;
  font-weight: 700;
}

.rail__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.rail__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(127, 166, 184, 0.92);
}

/* 08 — 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--line-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink-green);
  border-color: var(--lime);
}

.btn--lime:hover {
  background: #d9ff6b;
  border-color: #d9ff6b;
  transform: translateY(-1px);
}

.btn--ghost { background: rgba(232, 242, 237, 0.04); }

.btn--ghost:hover {
  color: var(--lime);
  border-color: rgba(200, 255, 61, 0.6);
}

.btn--block { width: 100%; }

/* 09 — 滚动进度与遮罩
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  height: 2px;
  background: rgba(232, 242, 237, 0.08);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(4, 16, 13, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.site-header[data-open] + .rail-scrim {
  opacity: 1;
  visibility: visible;
}

/* 10 — 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 96px);
  padding: clamp(30px, 5vw, 64px) var(--pad) 24px;
  background: var(--charcoal);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime) 0 18%, var(--orange) 18% 26%, transparent 26%);
  opacity: 0.9;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.footer__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-edge);
  border-radius: 18px;
  box-shadow: 0 40px 70px -48px rgba(0, 0, 0, 0.95);
}

.footer__board-head { display: block; }

.footer__board-head .kicker {
  color: #0b3b31;
  display: block;
  margin-bottom: 10px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #0b241f;
}

.footer__note {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--paper-ink-soft);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr);
  gap: clamp(16px, 2.6vw, 36px);
}

.footer__col { min-width: 0; }

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0b241f;
}

.footer__col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.footer__links { display: block; }

.footer__links li + li { margin-top: 8px; }

.footer__links a {
  display: inline-block;
  padding: 1px 0;
  font-size: 14px;
  color: var(--paper-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

.footer__links a:hover {
  color: #0b241f;
  text-decoration-color: var(--orange);
}

.footer__contact {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--paper-ink);
  overflow-wrap: anywhere;
}

.footer__contact + .footer__contact { margin-top: 6px; }

.footer__contact .mono { font-size: 12.5px; letter-spacing: 0.02em; }

.footer__hint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--paper-ink-soft);
  border-left: 2px solid var(--paper-edge);
  padding-left: 10px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-top: 18px;
  border-top: 1px solid rgba(232, 242, 237, 0.14);
}

.footer__legal-text {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(232, 242, 237, 0.78);
}

.footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__legal-nav a {
  font-size: 12.5px;
  color: var(--data-blue);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

.footer__legal-nav a:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.footer__icp {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(127, 166, 184, 0.85);
}

.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(232, 242, 237, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--line-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.to-top::after { content: "↑"; font-family: var(--font-mono); }

.to-top:hover {
  background: var(--lime);
  color: var(--ink-green);
  border-color: var(--lime);
}

/* 11 — 通用布局容器与网格
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(26px, 4.6vw, 68px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: clamp(16px, 2.2vw, 30px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: 1 / -1; }

/* 12 — 内容面板、标签、面包屑
   ========================================================================== */
.panel {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 242, 237, 0.035);
}

.panel--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: var(--paper-edge);
}

.panel--paper h2,
.panel--paper h3 { color: #0b241f; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(232, 242, 237, 0.05);
  color: var(--line-white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-green);
}

.tag--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #1b0f07;
}

.breadcrumbs { padding-block: 14px; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--data-blue);
}

.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(127, 166, 184, 0.55);
}

.breadcrumbs a {
  color: var(--data-blue);
  transition: color 0.18s var(--ease);
}

.breadcrumbs a:hover { color: var(--lime); }

.breadcrumbs [aria-current="page"] { color: var(--line-white); }

/* 13 — 图片容器基础（页面阶段放图）
   ========================================================================== */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(232, 242, 237, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 15% 0%, #12403a 0%, #0a2a24 46%, #06191a 100%);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 20, 0) 52%, rgba(6, 24, 20, 0.6) 100%);
  pointer-events: none;
}

.media--blueprint {
  background-color: #0a2a24;
  background-image:
    linear-gradient(rgba(232, 242, 237, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 242, 237, 0.12) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}

.media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 3px 8px;
  border: 1px solid rgba(200, 255, 61, 0.4);
  border-radius: 3px;
  background: rgba(6, 24, 20, 0.76);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* 14 — 长文阅读区
   ========================================================================== */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 1.7em;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.prose h3 {
  margin-top: 1.45em;
  font-size: 17px;
  line-height: 1.45;
}

.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.35em; }
.prose li + li { margin-top: 0.4em; }

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--lime); }

.prose--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  max-width: none;
}

.prose--paper h2,
.prose--paper h3 { color: #0b241f; }

.prose--paper a { text-decoration-color: var(--ink-green); }
.prose--paper a:hover { color: #0b241f; background: rgba(255, 106, 43, 0.16); }

/* 15 — 响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .footer__board { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--wide { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-2,
  .span-3 { grid-column: span 2; }
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-9 { grid-column: span 4; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { gap: 10px 16px; }
  .to-top { margin-left: 0; }
  .prose { font-size: 16px; }
}

@media (max-width: 380px) {
  .nav-toggle__label { display: none; }
  .rail { padding-inline: 16px; }
  .span-2,
  .span-3 { grid-column: span 4; }
}

/* 桌面端：固定左侧轨道 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 90;
    background:
      linear-gradient(180deg, #0a2a23 0%, var(--ink-green) 40%, #051813 100%);
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .site-header__bar { display: none; }

  .rail {
    position: static;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    padding: 26px 22px 22px;
    background: transparent;
    border-right: 0;
    transform: none;
    visibility: visible;
  }

  .rail-scrim { display: none; }

  .scroll-progress { height: 3px; }

  .footer__legal { justify-content: space-between; }
}

@media (min-width: 1440px) {
  :root { --rail-w: 300px; }
  .rail { padding: 30px 26px 24px; }
  .rail__mark { font-size: 28px; }
}

/* 16 — 动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn--lime:hover { transform: none; }
  .scroll-progress__bar { transition: none; }
}
