/* ============================================================
   狗威赛事 · 共享样式表 /assets/site.css
   夜间赛场指挥台：技术网格底 + 粗边框数据板 + 琥珀单点强调
   ============================================================ */

:root {
  /* 色彩 */
  --ink-000: #081512;
  --ink-050: #0B1D17;
  --ink-100: #0E241D;
  --ink-200: #16382E;
  --line: #1F4A3D;
  --paper: #F2F0E6;
  --muted: #9FB6AA;
  --amber: #FFB340;
  --cyan: #4FD1C5;
  --red: #FF6B5A;
  --glow: #2E6F5E;
  --bright: #C9D8D0;
  --hard-shadow: rgba(4, 16, 13, 0.72);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --rail-w: 104px;
  --maxw: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --shadow-hard: 8px 8px 0 var(--hard-shadow);
  --shadow-soft: 4px 4px 0 var(--hard-shadow);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
img, svg, picture, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- 中文排版基线 ---------- */
body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  color: var(--paper);
  background-color: var(--ink-000);
  background-image:
    linear-gradient(to right, rgba(31, 74, 61, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 74, 61, 0.30) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--paper);
}
h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--paper);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
h3 { font-size: 1.05rem; }
p { text-wrap: pretty; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong { font-weight: 700; color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- 通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(28px, 5vw, 64px); }
.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--split { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .grid--split { grid-template-columns: minmax(220px, 30%) 1fr; gap: 28px; }
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #160F02;
  background: var(--amber);
  border: 2px solid #160F02;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  min-height: 66px;
  padding: 0 var(--gutter);
  background: rgba(8, 21, 18, 0.94);
  border-bottom: 2px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 179, 64, 0.6) 0 28px, transparent 28px 56px);
  pointer-events: none;
}

.header-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}
.header-bar__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #140E02;
  background: var(--amber);
  border: 2px solid #04100D;
  box-shadow: 3px 3px 0 #04100D;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.header-bar__brand:hover .header-bar__mark {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #04100D;
}
.header-bar__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-bar__release {
  display: none;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.header-bar__release::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 0 2px rgba(79, 209, 197, 0.18);
}
.header-bar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 滚动进度条 */
.scroll-meter {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: rgba(31, 74, 61, 0.6);
  pointer-events: none;
  overflow: hidden;
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--glow), var(--amber));
  transition: width 0.08s linear;
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--paper);
  background: var(--ink-200);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 #04100D;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.nav-toggle:hover { border-color: var(--bright); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle__label { line-height: 1; }
.nav-toggle[aria-expanded="true"] {
  color: #140E02;
  background: var(--amber);
  border-color: #2b1c05;
}

/* ---------- 侧边轨道 ---------- */
.rail {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(84vw, 340px);
  padding: 16px 16px 22px;
  background: linear-gradient(180deg, #0B1D17 0%, #081512 74%);
  border-right: 2px solid var(--line);
  box-shadow: 14px 0 0 rgba(4, 16, 13, 0.35);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform 0.24s cubic-bezier(0.22, 0.68, 0.28, 1);
}
.rail[data-open] { transform: translateX(0); }

.rail__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.rail__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px; height: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #140E02;
  background: var(--amber);
  border: 2px solid #04100D;
}
.rail__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.rail__close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  color: var(--paper);
  background: var(--ink-100);
  border: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.rail__close:hover { color: var(--amber); border-color: var(--amber); }

.rail__nav { flex: 1 1 auto; }
.rail__list { display: flex; flex-direction: column; gap: 4px; }
.rail__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 14.5px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.rail__link:hover {
  color: var(--paper);
  background: var(--ink-100);
  border-color: var(--line);
}
.rail__link[aria-current="page"] {
  color: #140E02;
  font-weight: 700;
  background: var(--amber);
  border-color: #2b1c05;
}
.rail__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--amber);
  opacity: 0.85;
}
.rail__link[aria-current="page"] .rail__index { color: #140E02; opacity: 0.7; }
.rail__label { display: block; }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rail__cta {
  display: block;
  padding: 11px 6px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  color: #140E02;
  background: var(--amber);
  border: 2px solid #2b1c05;
  box-shadow: 3px 3px 0 #04100D;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.rail__cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #04100D;
}
.rail__tick {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 16, 13, 0.76);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.rail-scrim[data-open] { opacity: 1; visibility: visible; }

body[data-nav-open="true"] { overflow: hidden; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--ink-200);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--hard-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--hard-shadow);
  border-color: var(--bright);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--hard-shadow);
}
.btn--amber {
  color: #180F02;
  background: var(--amber);
  border-color: #2b1c05;
  font-weight: 700;
}
.btn--amber:hover { border-color: #2b1c05; color: #180F02; }
.btn--ghost { background: transparent; }
.btn--sm {
  padding: 7px 13px;
  font-size: 12.5px;
  box-shadow: 3px 3px 0 var(--hard-shadow);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.breadcrumb__item { color: var(--muted); text-decoration: none; transition: color 0.16s ease; }
.breadcrumb__item:hover { color: var(--amber); }
.breadcrumb__item[aria-current="page"] { color: var(--paper); }
.breadcrumb__sep { color: var(--line); }

/* ---------- 数据面板 ---------- */
.panel {
  position: relative;
  background: var(--ink-100);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 2.4vw, 28px);
}
.panel--raised { background: var(--ink-200); }
.panel--edge { border-color: var(--amber); }

/* ---------- 标签与索引 ---------- */
.kicker {
  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(--amber);
}
.kicker::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--amber);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(201, 216, 208, 0.04);
  border: 1px solid var(--line);
}
.tag--up {
  color: var(--cyan);
  border-color: rgba(79, 209, 197, 0.45);
  background: rgba(79, 209, 197, 0.08);
}
.tag--down {
  color: var(--red);
  border-color: rgba(255, 107, 90, 0.45);
  background: rgba(255, 107, 90, 0.08);
}
.tag--live {
  color: var(--amber);
  border-color: rgba(255, 179, 64, 0.5);
  background: rgba(255, 179, 64, 0.1);
}

/* ---------- 图片容器基础（页面阶段放占位图） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-200);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
}
.media-frame > img,
.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86) saturate(0.88) contrast(1.06);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 21, 18, 0) 42%, rgba(8, 21, 18, 0.8) 100%),
    linear-gradient(90deg, rgba(255, 179, 64, 0.1), rgba(46, 111, 94, 0.18));
}
.media-frame__tag {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: var(--ink-000);
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

/* ---------- 可展开内容组 ---------- */
.cue {
  background: var(--ink-100);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.cue__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.cue__trigger:hover { background: var(--ink-200); }
.cue__trigger[aria-expanded="true"] { color: var(--amber); background: var(--ink-200); }
.cue__sign {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
  transition: transform 0.18s ease;
}
.cue__trigger[aria-expanded="true"] .cue__sign { transform: rotate(45deg); }
.cue__panel {
  padding: 12px 16px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.cue__panel:not([hidden]) { animation: cueIn 0.2s ease both; }
@keyframes cueIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 关键词过滤 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--ink-100);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.filter-chip:hover { color: var(--paper); border-color: var(--bright); }
.filter-chip[aria-pressed="true"] {
  color: #140E02;
  background: var(--amber);
  border-color: #2b1c05;
  font-weight: 700;
}
[data-filter-item][hidden] { display: none !important; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(60px, 9vw, 120px);
  padding: clamp(24px, 4vw, 44px) var(--gutter) 32px;
  border-top: 2px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(31, 74, 61, 0.34) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #0B1D17 0%, #081512 58%);
}
.footer-beacon,
.footer-grid,
.footer-base {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.footer-beacon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer-beacon__tag {
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  border: 1px solid rgba(255, 179, 64, 0.45);
  background: rgba(255, 179, 64, 0.08);
}
.footer-beacon__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 36px;
  padding: 34px 0 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #140E02;
  background: var(--amber);
  border: 2px solid #04100D;
  box-shadow: 3px 3px 0 #04100D;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.footer-brand__desc {
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}
.footer-brand__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--bright);
}
.footer-brand__meta span {
  display: block;
  overflow-wrap: anywhere;
}

.footer-col { display: flex; flex-direction: column; }
.footer-col__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.footer-col__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.16s ease, gap 0.16s ease;
}
.footer-link::before {
  content: "";
  width: 6px; height: 1px;
  background: var(--line);
  transition: background-color 0.16s ease, width 0.16s ease;
}
.footer-link:hover { color: var(--amber); }
.footer-link:hover::before { background: var(--amber); width: 14px; }
.footer-link[aria-current="page"] { color: var(--amber); }
.footer-link[aria-current="page"]::before { background: var(--amber); width: 14px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.footer-base__legal { color: var(--bright); }
.footer-base__contact { color: var(--bright); overflow-wrap: anywhere; }
.footer-base__note { flex: 1 1 300px; color: var(--muted); }
.footer-base__copy { margin-left: auto; letter-spacing: 0.06em; }

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .header-bar .header-bar__util { display: inline-flex; }
  .header-bar__release { display: inline-flex; }
}
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .header-bar .header-bar__util { display: inline-flex; }
  .nav-toggle { display: none; }
  .rail-scrim { display: none; }

  .rail {
    width: var(--rail-w);
    padding: 16px 8px;
    gap: 10px;
    transform: none;
    box-shadow: none;
    transition: none;
  }
  .rail__top { justify-content: center; gap: 0; padding-bottom: 14px; }
  .rail__tag,
  .rail__close { display: none; }
  .rail__link {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 10px 2px;
    font-size: 12px;
    text-align: center;
  }
  .rail__index { font-size: 10px; }
  .rail__list { gap: 6px; }
  .rail__foot { gap: 8px; }
  .rail__cta { padding: 9px 4px; font-size: 12px; }
  .rail__tick { font-size: 10px; line-height: 1.6; }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, minmax(140px, 0.9fr));
    gap: 24px 40px;
  }
  .footer-base { flex-wrap: nowrap; }
}
@media (min-width: 1280px) {
  .grid { gap: 28px; }
}

/* ---------- 减少动效 ---------- */
@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;
  }
  .rail { transition: none; }
  .scroll-meter__fill { transition: none; }
  .cue__panel:not([hidden]) { animation: none; }
}
