/* ==========================================================================
   28体育赛场 · 共享样式 /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, h6, p, ul, ol, li, figure, blockquote, dl, dt, dd, fieldset { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

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

table { border-collapse: collapse; }

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink-void: #0A1310;
  --green-track: #157A4E;
  --green-deep: #10241C;
  --cream: #F4EEDF;
  --cream-shade: #E2D8C2;
  --brown-ink: #241C17;
  --mist: #EAF3EE;
  --signal: #FF5A1F;
  --cyan: #2FD9E8;
  --amber: #FFC24B;
  --muted: #8FA79C;
  --line: #2A3B33;
  --line-soft: #1E2E27;

  --rail-w: 236px;
  --band-h: 42px;
  --topbar-h: 64px;
  --wrap: 1200px;

  --radius-xl: 40px;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;

  --shadow-panel: 0 30px 70px -40px rgba(0, 0, 0, .95);
  --shadow-raise: 0 18px 40px -26px rgba(0, 0, 0, .9);

  --font-display: Oswald, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--ink-void);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-wrap: break-word;
  word-break: normal;
  padding-top: calc(var(--topbar-h) + var(--band-h));
  padding-left: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.005em;
}

p { max-width: 68ch; }

.num,
.footer-stat__value,
.rail-nav__index,
.timestamp-band__text {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

.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;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

/* ---------- 4. 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04282C;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 侧边轨道 / 顶栏 ---------- */
.site-header { position: relative; z-index: 60; }

.rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 70;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(100deg, #157A4E 0%, #10241C 52%, #0A1310 100%);
  border-bottom: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(234, 243, 238, .05) 0 1px, transparent 1px 54px);
}

/* 品牌 */
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--mist);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 15px;
  background: var(--cream);
  color: var(--brown-ink);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .95);
}

.brand__text { display: flex; flex-direction: column; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: .03em;
  color: var(--mist);
}

.brand__tagline {
  display: none;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}

/* 移动端开关 */
.nav-toggle {
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 19, 16, .62);
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 抽屉 / 静态栏容器 */
.rail-panel {
  position: fixed;
  left: 0; right: 0;
  top: var(--topbar-h);
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 18px 24px;
  background: linear-gradient(180deg, #0D1A15 0%, #0A1310 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 60px 90px -50px rgba(0, 0, 0, 1);
  max-height: calc(100vh - var(--topbar-h) - var(--band-h));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-14px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s linear;
}
.rail-panel[data-open] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 导航 */
.rail-nav__list { display: flex; flex-direction: column; gap: 4px; }

.rail-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--mist);
  font-size: 15px;
  font-weight: 600;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.rail-nav__link:hover { background: rgba(234, 243, 238, .08); }

.rail-nav__index {
  flex: none;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(234, 243, 238, .07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}

.rail-nav__label { min-width: 0; }

.rail-nav__link[aria-current="page"] { background: var(--cream); color: var(--brown-ink); }
.rail-nav__link[aria-current="page"] .rail-nav__index { background: var(--signal); color: #1A0A02; }
.rail-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: var(--cyan);
  transform: translateY(-50%);
}

/* 快捷入口 */
.rail-actions { display: grid; gap: 10px; }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--signal { background: var(--signal); color: #170A02; }
.btn--signal:hover { background: #FF7A45; }

.btn--ghost {
  background: rgba(234, 243, 238, .05);
  border-color: var(--line);
  color: var(--mist);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--cyan { background: var(--cyan); color: #04282C; }
.btn--cream { background: var(--cream); color: var(--brown-ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 8px 15px; font-size: 13px; }

/* ---------- 7. 固定时间戳带 ---------- */
.timestamp-band {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 68;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--band-h);
  padding: 0 16px;
  background: rgba(10, 19, 16, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.timestamp-band__pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  animation: band-pulse 2.6s var(--ease) infinite;
}

@keyframes band-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 217, 232, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(47, 217, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 217, 232, 0); }
}

.timestamp-band__text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------- 8. 滚动进度脉冲线（脚本注入） ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--topbar-h) + var(--band-h));
  z-index: 67;
  height: 2px;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 55%, var(--signal) 100%);
}

/* ---------- 9. 页脚 · 堆叠记分牌 ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  padding: 56px 0 48px;
  background:
    radial-gradient(120% 90% at 12% 0%, #10241C 0%, rgba(10, 19, 16, 0) 62%),
    var(--ink-void);
  border-top: 1px solid var(--line);
}

.footer-inner { display: grid; gap: 18px; }

.footer-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #0C1713;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-panel);
}

.footer-panel--lead {
  display: grid;
  gap: 28px;
  background: linear-gradient(152deg, #157A4E -18%, #10241C 46%, #0C1713 100%);
  border-color: #1E4D3A;
}

.footer-panel--index { background: #0C1713; }

.footer-panel--legal {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-soft);
  border-radius: var(--radius-l);
  box-shadow: none;
  padding: 18px clamp(18px, 3vw, 30px);
}

.footer-panel__title {
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--brown-ink);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 17px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .03em;
  color: var(--mist);
}

.footer-brand__line { font-size: 13.5px; color: var(--muted); }

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.footer-stat { display: flex; flex-direction: column; gap: 2px; }

.footer-stat__value {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--amber);
}

.footer-stat__label { font-size: 12px; color: var(--muted); }

.footer-contact { display: grid; gap: 14px; }

.footer-contact__item { display: flex; flex-direction: column; gap: 4px; }

.footer-contact__label {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact__value { font-size: 15px; color: var(--mist); }

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

.footer-contact__note {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.footer-cols {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.footer-col__title {
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.footer-col__list { display: flex; flex-direction: column; }

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--mist);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-link:hover { color: var(--cyan); transform: translateX(4px); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal__icp {
  font-family: var(--font-num);
  letter-spacing: .02em;
  color: var(--muted);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 36, 28, .94);
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s linear, border-color .2s var(--ease), color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 10. 通用章节 / 面板 / 卡片 ---------- */
.section { margin-top: 56px; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.section__kicker {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section__title {
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--mist);
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--green-deep);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-raise);
}

.panel--ink { background: #0C1713; }

.panel--cream {
  background: var(--cream);
  border-color: var(--cream-shade);
  color: var(--brown-ink);
}

.panel--overlap { margin-top: -16px; }

.panel__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.panel__title {
  font-size: clamp(20px, 2.4vw, 26px);
  color: inherit;
}

.panel--cream .panel__title { color: var(--brown-ink); }
.panel--cream .panel__lede { color: #4B4137; }

.panel__lede { font-size: 15.5px; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--cards { grid-template-columns: 1fr; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #0D1A15;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--green-track);
  transition: width .35s var(--ease), background .35s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: #3C5A4C; box-shadow: var(--shadow-raise); }
.card:hover::before { width: 10px; background: var(--cyan); }

.card__meta {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--amber);
}

.card__title { font-size: 20px; color: var(--mist); }
.card__text { font-size: 15px; color: var(--muted); }

/* 胶囊筛选器 */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(234, 243, 238, .05);
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04282C;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cream-shade);
  border-radius: var(--radius-m);
  background: var(--cream);
}

.score-table {
  width: 100%;
  min-width: 520px;
  font-size: 15px;
  color: var(--brown-ink);
}

.score-table caption {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--brown-ink);
}

.score-table th {
  padding: 12px 16px;
  background: var(--cream-shade);
  text-align: left;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3A3128;
}

.score-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--cream-shade);
}

.score-table tbody tr:nth-child(even) { background: rgba(226, 216, 194, .5); }

.score-table .num,
.score-table th.num { text-align: right; }

/* 数字与标签 */
.num { font-weight: 600; letter-spacing: .01em; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(47, 217, 232, .14);
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.tag--signal { background: rgba(255, 90, 31, .18); color: #FF9166; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: var(--amber);
}
.stat__label { font-size: 13px; color: var(--muted); }

/* 面包屑 */
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item:not(:first-child)::before {
  content: "/";
  margin: 0 9px;
  color: #3C5A4C;
}
.breadcrumbs__link { color: var(--cyan); transition: opacity .2s var(--ease); }
.breadcrumbs__link:hover { opacity: .75; text-decoration: underline; text-underline-offset: 3px; }

/* 正文容器 */
.prose {
  border-radius: var(--radius-xl);
  background: var(--cream);
  color: var(--brown-ink);
  padding: clamp(24px, 4vw, 52px);
  font-size: 17px;
  line-height: 1.8;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--brown-ink); }
.prose h3 { font-size: 20px; color: var(--brown-ink); }
.prose a {
  color: #0F5C3B;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose li { position: relative; padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-track);
}
.prose blockquote {
  border-left: 4px solid var(--signal);
  padding-left: 16px;
  font-size: 18px;
  color: #4A4038;
}
.prose code {
  font-family: var(--font-num);
  font-size: .92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--cream-shade);
}

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--green-track) 55%, rgba(42, 59, 51, 0) 100%);
}
.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ink-void);
  border: 2px solid var(--cyan);
}
.timeline__time {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--amber);
}
.timeline__body { font-size: 15px; color: var(--mist); }

/* 响应式图片容器 */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #10241C 0%, #0A1310 100%);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 36, 28, .12) 0%, rgba(10, 19, 16, .58) 100%),
    radial-gradient(rgba(234, 243, 238, .06) 1px, transparent 1px);
  background-size: auto, 3px 3px;
}
.media--plain::after { display: none; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

/* 材质工具类 */
.texture-grid {
  background-image: repeating-linear-gradient(115deg, rgba(42, 59, 51, .55) 0 1px, transparent 1px 96px);
}
.texture-grain {
  background-image: radial-gradient(rgba(234, 243, 238, .06) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* 滚动显现 */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 11. 断点 ---------- */
@media (min-width: 560px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-panel--lead { grid-template-columns: 1.05fr 1fr; }
}

@media (min-width: 1080px) {
  body {
    padding-top: var(--band-h);
    padding-left: var(--rail-w);
  }

  .rail {
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: var(--rail-w);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 26px 18px 26px;
    background: linear-gradient(178deg, #157A4E 0%, #10241C 34%, #0A1310 78%);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }

  .brand { align-items: flex-start; }
  .brand__tagline { display: block; }

  .nav-toggle { display: none; }

  .rail-panel {
    position: static;
    flex: 1;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .rail-actions { margin-top: auto; }

  .timestamp-band {
    top: 0;
    left: var(--rail-w);
    padding: 0 26px;
  }

  .scroll-progress {
    left: var(--rail-w);
    top: var(--band-h);
  }

  .wrap { width: min(100% - 72px, var(--wrap)); }

  .section { margin-top: 76px; }
}

@media (min-width: 1280px) {
  .footer-inner { gap: 22px; }
}

/* ---------- 12. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .has-js [data-reveal] { opacity: 1; transform: none; }

  .timestamp-band__pulse { animation: none; box-shadow: 0 0 0 3px rgba(47, 217, 232, .25); }

  .card:hover,
  .btn:hover,
  .footer-link:hover { transform: none; }
}
