/* ============================================================
   安博体育 · 共享外壳样式  /assets/site.css
   夜场指挥舱：深墨绿底 + 荧光青柠 + 电光橙 + 琥珀比分 + 冰蓝标签
   ============================================================ */

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

/* ---------- tokens ---------- */
:root {
  --ink: #07110E;
  --carbon: #0C1A16;
  --deep: #12382E;
  --paper: #F4F7EE;

  --bg: #07110E;
  --bg-alt: #0C1A16;
  --surface: #0C1A16;
  --surface-2: #12382E;

  --text: #E8F0E9;
  --text-dim: #8FA39A;
  --line: rgba(232, 240, 233, 0.14);
  --line-strong: rgba(232, 240, 233, 0.30);

  --lime: #C8FF4D;
  --orange: #FF6B2C;
  --amber: #FFB020;
  --ice: #6FD6FF;
  --alert: #FF4D6D;

  --accent-text: #C8FF4D;
  --accent-soft: rgba(200, 255, 77, 0.12);
  --on-accent: #07110E;

  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-current: 88px;
  --rail-closed: 88px;
  --rail-open: 248px;
  --topbar-h: 62px;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-1: 0 22px 48px -30px rgba(0, 0, 0, 0.95);
}

html[data-theme="light"] {
  --bg: #F4F7EE;
  --bg-alt: #EBF1E2;
  --surface: #FBFDF6;
  --surface-2: #DCE6D8;

  --text: #0B1915;
  --text-dim: #5A6F66;
  --line: rgba(11, 25, 21, 0.16);
  --line-strong: rgba(11, 25, 21, 0.34);

  --accent-text: #40650A;
  --accent-soft: rgba(200, 255, 77, 0.42);
  --on-accent: #0B1915;
  --shadow-1: 0 22px 48px -34px rgba(11, 25, 21, 0.55);
}

body.rail-expanded,
body:has(.rail[data-expanded]) { --rail-current: var(--rail-open); }

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  padding-left: var(--rail-current);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  transition: padding-left 0.34s var(--ease), background-color 0.3s linear, color 0.3s linear;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(23px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

p { text-wrap: pretty; }
strong { font-weight: 600; }

main { display: block; min-height: 56vh; }
#main-content { display: block; }

::selection { background: var(--lime); color: #07110E; }

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--rail-current) + 14px);
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: #07110E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header shell ---------- */
.site-header { position: relative; z-index: 86; }

/* ---------- brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--text);
}
.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--lime);
  color: #07110E;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px -14px rgba(200, 255, 77, 0.85), inset 0 0 0 1px rgba(7, 17, 14, 0.12);
}
.brand__text {
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s var(--ease), opacity 0.2s linear;
}
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1.3;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.4;
}
.brand--sm .brand__mark { width: 34px; height: 34px; border-radius: 11px; font-size: 11px; }
.brand--sm .brand__name { font-size: 14px; }
.brand--sm .brand__sub { font-size: 9px; letter-spacing: 0.16em; }

/* ---------- topbar (mobile) ---------- */
.topbar { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  transition: border-color 0.18s linear, color 0.18s linear, background-color 0.18s linear;
}
.nav-toggle:hover { border-color: var(--accent-text); color: var(--accent-text); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.18s linear;
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__text { font-family: var(--font-mono); text-transform: uppercase; }

/* ---------- rail ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 88;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: var(--rail-current);
  padding: 18px 12px 18px;
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  transition: width 0.34s var(--ease), transform 0.36s var(--ease), background-color 0.3s linear;
}
.rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  pointer-events: none;
  background-image: radial-gradient(rgba(200, 255, 77, 0.18) 1px, transparent 1px);
  background-size: 9px 9px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 92%);
  mask-image: linear-gradient(to top, #000 5%, transparent 92%);
}

.rail__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.rail__top .brand { flex: 1 1 auto; }

.rail__close {
  flex: 0 0 auto;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 13px;
  transition: color 0.18s linear, border-color 0.18s linear;
}
.rail__close:hover { color: var(--accent-text); border-color: var(--accent-text); }

.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.rail__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.85;
  max-height: 24px;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), opacity 0.2s linear;
}

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

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.18s linear, color 0.18s linear;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--lime);
  transform: translateY(-50%);
  transition: height 0.24s var(--ease);
}
.nav-link__num {
  flex: 0 0 auto;
  min-width: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.18s linear;
}
.nav-link__text {
  max-width: 168px;
  overflow: hidden;
  transition: max-width 0.3s var(--ease), opacity 0.2s linear;
}
.nav-link:hover { background: var(--accent-soft); color: var(--text); }
.nav-link:hover .nav-link__num { color: var(--accent-text); }

.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.nav-link[aria-current="page"]::before { height: 58%; }
.nav-link[aria-current="page"] .nav-link__num { color: var(--accent-text); }

/* ---------- rail foot ---------- */
.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rail__cta,
.rail__mini,
.theme-toggle,
.rail__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.18s linear, color 0.18s linear, border-color 0.18s linear;
}

.rail__cta {
  background: var(--lime);
  color: #07110E;
  font-weight: 700;
}
.rail__cta:hover { background: #D9FF7C; }

.rail__mini,
.theme-toggle,
.rail__toggle {
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.rail__mini:hover,
.theme-toggle:hover,
.rail__toggle:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
  background: var(--accent-soft);
}

.rail__cta-glyph,
.rail__mini-glyph,
.theme-toggle__glyph,
.rail__toggle-glyph {
  flex: 0 0 auto;
  width: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.rail__cta-text,
.rail__mini-text,
.theme-toggle__text,
.rail__toggle-text {
  max-width: 168px;
  overflow: hidden;
  transition: max-width 0.3s var(--ease), opacity 0.2s linear;
}

.rail__toggle { margin-top: 2px; font-family: var(--font-mono); text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; }

/* ---------- scrim ---------- */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  background: rgba(3, 9, 7, 0.64);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s linear;
}

/* ---------- progress + to top ---------- */
.progress {
  position: fixed;
  top: 0;
  left: var(--rail-current);
  right: 0;
  height: 3px;
  z-index: 84;
  pointer-events: none;
  background: transparent;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.12s linear;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 83;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
  color: #07110E;
  font-size: 17px;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  box-shadow: 0 16px 34px -18px rgba(200, 255, 77, 0.9);
  transition: opacity 0.24s linear, transform 0.24s var(--ease), background-color 0.18s linear;
}
.to-top[data-visible] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: #D9FF7C; }

/* ============================================================
   通用基础组件
   ============================================================ */

.container {
  width: min(1180px, 100% - clamp(32px, 6vw, 96px));
  margin-inline: auto;
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.012em;
}

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

.score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--amber);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background-color 0.18s linear, color 0.18s linear, border-color 0.18s linear, transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--lime); color: #07110E; box-shadow: 0 14px 32px -20px rgba(200, 255, 77, 0.95); }
.btn--primary:hover { background: #D9FF7C; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text); background: var(--accent-soft); }
.btn--sm { padding: 8px 16px; font-size: 12.5px; }

/* chips / badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: color 0.18s linear, border-color 0.18s linear, background-color 0.18s linear;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--ice);
  border-color: transparent;
  color: #07110E;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.badge--live { background: var(--orange); border-color: transparent; color: #07110E; }
.badge--video { background: var(--ice); border-color: transparent; color: #07110E; }
.badge--score { color: var(--amber); border-color: rgba(255, 176, 32, 0.5); }

/* cards */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: border-color 0.2s linear, transform 0.24s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.card--folder::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
  border-top-right-radius: var(--radius-lg);
  background: linear-gradient(225deg, transparent 48%, var(--line) 49%, var(--line) 51%, var(--bg-alt) 52%);
  pointer-events: none;
}

/* media placeholders — 页面阶段放入图片 */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 8%, rgba(111, 214, 255, 0.16), transparent 62%),
    linear-gradient(135deg, var(--surface-2), var(--bg-alt));
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(transparent, rgba(7, 17, 14, 0.86));
}
.media__scorebar {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 17, 14, 0.74);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.media__timecode {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(7, 17, 14, 0.74);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.media__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
}

/* grid / prose / misc */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 1.7em 0 0.55em; font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { margin: 1.4em 0 0.45em; }
.prose ul { margin: 1em 0; }
.prose li { position: relative; padding-left: 20px; margin-bottom: 0.5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.breadcrumb a { transition: color 0.18s linear; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb__sep { opacity: 0.55; }

.rule { height: 1px; border: 0; background: var(--line); margin-block: clamp(24px, 4vw, 48px); }

.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--amber);
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(38px, 5vw, 60px) clamp(18px, 4vw, 56px) 26px;
  border-top: 1px solid var(--line);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--bg-alt);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(200, 255, 77, 0.16) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 58%);
  mask-image: linear-gradient(180deg, #000, transparent 58%);
}
.site-footer > * { position: relative; }

.footer__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 36px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(140px, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.footer__intro { min-width: 0; }
.footer__brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}
.footer__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}
.footer__note {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.footer__contact {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}
.footer__contact-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.footer__contact-key {
  flex: 0 0 auto;
  min-width: 38px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--accent-text);
}

.footer__col { min-width: 0; }
.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.footer__links { display: grid; gap: 2px; }
.footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--text);
  transition: color 0.18s linear, transform 0.18s var(--ease);
}
.footer__link:hover { color: var(--accent-text); transform: translateX(3px); }

.footer__service {
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer__meta--icp { color: var(--text-dim); }
.footer__legal-link { transition: color 0.18s linear; }
.footer__legal-link:hover { color: var(--accent-text); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__intro { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 84;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--topbar-h);
    padding: 0 14px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }

  .rail {
    width: min(86vw, 320px);
    padding-top: 16px;
    transform: translateX(-102%);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  }
  .site-header[data-open] .rail { transform: translateX(0); }

  .rail__close { display: grid; }
  .rail__toggle { display: none; }

  .rail-scrim { display: block; }
  .site-header[data-open] .rail-scrim { opacity: 1; pointer-events: auto; }

  .progress { left: 0; top: var(--topbar-h); }

  .skip-link { left: 14px; }

  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }

  .footer__bottom { font-size: 11px; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { border-radius: 22px 22px 0 0; }
  .footer__strip { letter-spacing: 0.2em; font-size: 9.5px; gap: 10px; }
  .media--wide { aspect-ratio: 16 / 9; }
}

/* 桌面端轨道折叠时隐藏文字 */
@media (min-width: 900px) {
  .rail:not([data-expanded]) .brand__text { max-width: 0; opacity: 0; }
  .rail:not([data-expanded]) .nav-link__text { max-width: 0; opacity: 0; }
  .rail:not([data-expanded]) .rail__label { max-height: 0; opacity: 0; }
  .rail:not([data-expanded]) .rail__cta-text,
  .rail:not([data-expanded]) .rail__mini-text,
  .rail:not([data-expanded]) .theme-toggle__text,
  .rail:not([data-expanded]) .rail__toggle-text { max-width: 0; opacity: 0; }
  .rail:not([data-expanded]) .rail__cta,
  .rail:not([data-expanded]) .rail__mini,
  .rail:not([data-expanded]) .theme-toggle,
  .rail:not([data-expanded]) .rail__toggle { padding-inline: 12px; justify-content: flex-start; }
  .rail[data-expanded] .rail__toggle-glyph { transform: rotate(180deg); }
}

/* 减少动态偏好 */
@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;
  }
}
