/* ============================================================
   bat365登录 · 中文站  /assets/site.css
   共享外壳：reset / 设计令牌 / 命令栏 / 侧轨 / 页脚 / 基础组件
   ============================================================ */

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

/* ---------- tokens ---------- */
:root {
  --ink: #05201A;
  --panel: #0A2E27;
  --cyan: #35F0C8;
  --amber: #FFA23C;
  --teal: #1E8F79;
  --paper: #F2F7F4;
  --ink-text: #06322A;
  --text: #E4F4EE;
  --muted: #8FB6AB;
  --line: #17423A;
  --alert: #FF6B5A;

  --shell-w: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;

  --font-display: "Barlow Condensed", "Archivo Narrow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(10, 46, 39, 0.9) 0%, rgba(5, 32, 26, 0) 320px),
    repeating-linear-gradient(90deg, rgba(23, 66, 58, 0.35) 0 1px, transparent 1px 96px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--paper);
}
h1 { font-size: clamp(40px, 7vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; line-height: 1.25; }

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

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

/* ---------- 通用容器与区块 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 40px);
  max-width: 68ch;
}
.section-title { margin: 0; }
.section-note { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); }

.stack { display: flex; flex-direction: column; gap: var(--gutter); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.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-12 { grid-column: span 12; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--ticks {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  border-top: 1px solid var(--line);
}

.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
  letter-spacing: -0.01em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--teal); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #62f5d7; border-color: #62f5d7; color: var(--ink); }

.btn-ghost { background: transparent; border-color: var(--teal); color: var(--cyan); }
.btn-ghost:hover { background: rgba(53, 240, 200, 0.08); border-color: var(--cyan); }

.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffb662; border-color: #ffb662; }

.btn-sm {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--teal);
  border-radius: 2px;
  background: rgba(53, 240, 200, 0.06);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.tag--amber { border-color: var(--amber); color: var(--amber); background: rgba(255, 162, 60, 0.08); }
.tag--alert { border-color: var(--alert); color: var(--alert); background: rgba(255, 107, 90, 0.08); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 0 8px; color: var(--muted); }
.breadcrumb-list li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb-link { color: var(--cyan); text-decoration: none; }
.breadcrumb-link:hover { text-decoration: underline; }

/* ---------- 长文排版 ---------- */
.prose { max-width: 72ch; font-size: 17px; line-height: 1.85; color: #cfe8e0; }
.prose p { margin-bottom: 1.1em; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--paper); }
.prose ul { list-style: disc; padding-left: 1.25em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose--paper { color: var(--ink-text); }
.prose--paper strong { color: var(--ink-text); }

/* ---------- 图片容器 ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.img-frame > img,
.img-frame > svg,
.img-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 32, 26, 0) 42%, rgba(5, 32, 26, 0.62) 100%);
}
.img-frame[data-ratio="4/3"] { aspect-ratio: 4 / 3; }
.img-frame[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.img-frame[data-ratio="21/9"] { aspect-ratio: 21 / 9; }
.img-frame[data-ratio="3/4"] { aspect-ratio: 3 / 4; }
.img-frame--bare::after { display: none; }

/* ---------- 纸张叠层 ---------- */
.paper {
  position: relative;
  background: var(--paper);
  color: var(--ink-text);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(20px, 3vw, 32px);
}
.paper::before,
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  z-index: -1;
}
.paper::before { transform: translate(8px, 8px); }
.paper::after { transform: translate(16px, 16px); opacity: 0.55; }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 20px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--teal); }
.card-note {
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.card:hover .card-note, .card:focus-within .card-note { max-height: 6em; opacity: 1; }

/* ---------- 导轨块 ---------- */
.rail { position: sticky; top: 112px; align-self: start; }
.rail-list { display: flex; flex-direction: column; gap: 2px; }
.rail-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.rail-link:hover { color: var(--cyan); border-left-color: var(--teal); background: rgba(53, 240, 200, 0.05); }
.rail-link[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--amber);
  background: rgba(53, 240, 200, 0.08);
}
.rail-idx {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--teal);
}
.rail-link[aria-current="true"] .rail-idx { color: var(--amber); }

/* ---------- 切片块 ---------- */
.slice {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 20px;
}
.slice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
}
.slice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.slice-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.slice-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  color: var(--cyan);
}
.slice-body { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ---------- 路线块 ---------- */
.route-map { display: flex; flex-direction: column; gap: 0; counter-reset: route; }
.route-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.route-step:last-child { border-bottom: 1px solid var(--line); }
.route-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--amber);
  padding-top: 4px;
}

/* ---------- 标签页 ---------- */
.tabs { display: block; }
.tab-list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  flex: 0 0 auto;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  padding: 12px 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tab:hover { color: var(--cyan); background: rgba(53, 240, 200, 0.06); }
.tab[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.tab-panel { display: none; padding-top: 24px; }
.tab-panel[data-active] { display: block; }

/* ---------- 阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  pointer-events: none;
  z-index: 90;
}

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============================================================
   命令栏头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(5, 32, 26, 0.98), rgba(10, 46, 39, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav tail";
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 78px;
  padding-block: 14px;
}

.header-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.version-badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 2px;
  background: rgba(255, 162, 60, 0.06);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* 栏目开关 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--teal);
  border-radius: 2px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(53, 240, 200, 0.08); }
.nav-toggle-bars { position: relative; display: inline-block; width: 16px; height: 10px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

/* 主导航 */
.site-nav { grid-area: nav; min-width: 0; }
.nav-list { display: flex; flex-wrap: wrap; gap: 2px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.nav-idx {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--teal);
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--cyan); border-color: var(--line); background: rgba(53, 240, 200, 0.06); }
.nav-link:hover .nav-idx { color: var(--cyan); }
.nav-link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}
.nav-link[aria-current="page"] .nav-idx { color: rgba(5, 32, 26, 0.7); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--amber);
}

/* 命令栏右侧 */
.header-tail {
  grid-area: tail;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(10, 46, 39, 0.7);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 162, 60, 0.55);
  animation: statusPulse 2400ms var(--ease) infinite;
}
.status-text--sep { color: var(--line); }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 162, 60, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(255, 162, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 162, 60, 0); }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--ink), #03130F);
  border-top: 1px solid var(--line);
  color: var(--text);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(48px, 7vw, 80px);
}

.footer-lead { min-width: 0; }
.footer-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--teal);
}
.footer-brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
}
.footer-summary {
  margin: 0 0 16px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-columns { display: contents; }
.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}
.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--cyan);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-link:hover { color: var(--cyan); border-bottom-color: var(--teal); }

.footer-contact { min-width: 0; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-key {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--teal);
}
.contact-val { font-size: 14px; line-height: 1.7; color: var(--text); word-break: break-word; }

.footer-base { border-top: 1px solid var(--line); background: rgba(5, 32, 26, 0.6); }
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}
.footer-legal,
.footer-year {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
}
.footer-legal { color: var(--muted); }
.footer-year { color: var(--teal); }
.footer-note {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "tail tail";
    gap: 10px;
    padding-block: 12px;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .site-nav[data-open] { display: block; animation: navIn 180ms var(--ease); }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-link { width: 100%; justify-content: flex-start; padding: 12px; font-size: 15px; }
  .nav-link[aria-current="page"]::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .header-tail {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-lead { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .rail { position: static; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .status-text--sep { display: none; }
  .header-tail .btn { flex: 1 1 auto; }
  .grid-12 { gap: 16px; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-lead, .footer-contact { grid-column: auto; }
  .route-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .footer-base-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   动效降级
   ============================================================ */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .card:focus-within { transform: none; }
  .btn:hover { transform: none; }
}
