/* ============================================================
   /assets/site.css — 凤凰体育 IFENG 共享样式
   轨道导航 · 纸张叠层 · 斜切数据板
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --fire: #E8452B;
  --flame: #FF6A3D;
  --gold: #F2A93B;
  --jade: #12B58A;
  --ink: #22262E;
  --navy: #101A2B;
  --navy-mid: #1D2C44;
  --navy-soft: #34496B;
  --paper: #F6F1E7;
  --paper-0: #FFFDF8;

  --rail-w: 120px;
  --topbar-h: 60px;
  --max: 1280px;
  --prose: 720px;

  --line-dark: rgba(246, 241, 231, 0.16);
  --line-ink: rgba(34, 38, 46, 0.16);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --slab: 6px 6px 0 rgba(16, 26, 43, 0.08);
  --slab-strong: 10px 10px 0 rgba(16, 26, 43, 0.10);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(34px, 4.6vw, 64px); }
h2 { font-size: clamp(25px, 3.2vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 25px); }
h4 { font-size: 17px; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--fire);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong { font-weight: 800; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

hr {
  height: 0;
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line-ink);
}

::selection { background: var(--gold); color: var(--navy); }

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

/* ---------- 通用文字工具 ---------- */
.mono,
[data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--flame);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--fire));
}

/* ---------- 无障碍 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(18px, 3.6vw, 40px);
}
.prose { max-width: var(--prose); }

.stack > * + * { margin-top: 1.1em; }
.stack-lg > * + * { margin-top: 2rem; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--fire); color: var(--paper-0); }
.btn--primary:hover { background: var(--flame); }

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #ffbe57; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-soft);
}
.btn--ghost:hover { border-color: var(--fire); color: var(--fire); }

.btn--quiet {
  background: rgba(16, 26, 43, 0.06);
  color: var(--ink);
  border-color: var(--line-ink);
}
.btn--quiet:hover { background: rgba(16, 26, 43, 0.12); }

.btn--sm { padding: 10px 15px; font-size: 13px; }

/* ---------- 索引 / 标签 ---------- */
.coord {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fire);
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--navy-soft);
  white-space: nowrap;
}
.tag--fire { color: var(--fire); }
.tag--jade { color: var(--jade); }
.tag--gold { color: var(--gold); background: rgba(242, 169, 59, 0.10); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 0.4em;
  color: var(--gold);
}
.breadcrumb a { color: var(--navy-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--fire); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 堆叠面板 ---------- */
.panel {
  position: relative;
  background: var(--paper-0);
  border: 1px solid var(--line-ink);
  box-shadow: var(--slab);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--navy-mid);
  color: var(--paper-0);
  border-bottom: 1px solid rgba(242, 169, 59, 0.28);
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: 0.02em;
}
.panel-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  white-space: nowrap;
}
.panel-body { padding: clamp(18px, 2.6vw, 28px); }

/* ---------- 纸张卡片 ---------- */
.paper-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--paper-0);
  border: 1px solid var(--line-ink);
  box-shadow: var(--slab);
}
.paper-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--fire));
}
.paper-card--flat { box-shadow: none; }

/* ---------- 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  background: var(--paper-0);
}
.data-table caption {
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: left;
  color: var(--navy-soft);
}
.data-table th,
.data-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-ink);
  text-align: left;
  white-space: nowrap;
}
.data-table thead th {
  background: var(--navy-mid);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--gold);
}
.data-table tbody tr:nth-child(even) { background: rgba(29, 44, 68, 0.045); }
.data-table tbody tr:hover { background: rgba(242, 169, 59, 0.14); }
.data-table--scroll { display: block; overflow-x: auto; }

/* ---------- 折叠面板 ---------- */
.fold {
  background: var(--paper-0);
  border: 1px solid var(--line-ink);
}
.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  background: rgba(29, 44, 68, 0.05);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--fire);
  line-height: 1;
}
.fold[open] > summary::after { content: "\2013"; }
.fold > summary:hover { background: rgba(232, 69, 43, 0.08); }
.fold-body {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line-ink);
}
.fold-body > *:last-child { margin-bottom: 0; }

/* ---------- 媒体容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-mid);
  border: 1px solid var(--line-ink);
}
.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(198deg, rgba(232, 69, 43, 0.16) 0%, transparent 46%),
    linear-gradient(0deg, rgba(16, 26, 43, 0.62) 0%, transparent 62%);
}
.media-frame--slant {
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  aspect-ratio: 16 / 9;
}
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-cap {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(34, 38, 46, 0.66);
}

/* ============================================================
   头部 —— 竖向轨道导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 80;
  height: 3px;
  background: rgba(29, 44, 68, 0.14);
  pointer-events: none;
}
.scroll-progress > i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--fire) 62%, var(--flame) 100%);
  transition: width 0.1s linear;
}

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 20px 10px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(120% 52% at 50% 0%, #21344F 0%, #101A2B 58%),
    var(--navy);
  border-right: 1px solid rgba(242, 169, 59, 0.30);
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 169, 59, 0.45) transparent;
}
.rail::-webkit-scrollbar { width: 3px; }
.rail::-webkit-scrollbar-thumb { background: rgba(242, 169, 59, 0.45); }
.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 4px
  );
}

.rail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 4px 0 12px;
  color: var(--paper-0);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  width: 100%;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  background: linear-gradient(150deg, var(--gold) 0%, var(--fire) 100%);
  border-radius: 2px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 18px rgba(232, 69, 43, 0.35);
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold);
  line-height: 1;
}
.brand:hover .brand-mark { transform: rotate(0deg); transition: transform 0.2s ease; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: 2px;
  color: var(--paper-0);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

.rail-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail-nav .nav-list a {
  display: block;
  width: max-content;
  margin-inline: auto;
  padding: 11px 9px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.2em;
  color: rgba(246, 241, 231, 0.68);
  text-decoration: none;
  border-left: 2px solid rgba(246, 241, 231, 0.14);
  border-radius: 2px;
  transition: color 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease;
}
.rail-nav .nav-list a:hover {
  color: var(--gold);
  background: rgba(242, 169, 59, 0.10);
  border-left-color: var(--gold);
}
.rail-nav .nav-list a[aria-current="page"] {
  color: var(--navy);
  font-weight: 800;
  background: linear-gradient(180deg, var(--gold) 0%, var(--flame) 100%);
  border-left-color: var(--jade);
  box-shadow: 0 6px 18px rgba(232, 69, 43, 0.38);
}
.rail-nav .nav-list a.is-chapter {
  color: var(--gold);
  border-left-color: rgba(242, 169, 59, 0.65);
}
.rail-nav .nav-list a.is-chapter[aria-current="page"] { color: var(--navy); }

.rail-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}

.round-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(242, 169, 59, 0.5);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.round-capsule .dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(18, 181, 138, 0.18);
}
.round-capsule:hover {
  background: rgba(242, 169, 59, 0.14);
  border-color: var(--gold);
}

.rail-cta {
  display: block;
  padding: 10px 6px;
  background: var(--fire);
  color: var(--paper-0);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 6px 16px rgba(232, 69, 43, 0.32);
}
.rail-cta:hover { background: var(--flame); }

/* ============================================================
   页脚 —— 终点线纸张层
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line-ink);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--fire) 0%,
    var(--gold) 52%,
    var(--jade) 100%
  );
}

.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(38px, 5.4vw, 64px) clamp(18px, 3.6vw, 40px) 0;
}

.footer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--navy-soft);
}
.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.footer-logo > span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--navy-soft);
}
.footer-logo:hover { color: var(--fire); }
.footer-desc {
  margin: 14px 0 0;
  max-width: 24em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(34, 38, 46, 0.7);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}
.footer-h {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--navy-soft);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-col a:hover {
  color: var(--fire);
  border-bottom-color: currentColor;
}

.footer-contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 8px clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 2.8vw, 30px);
  background: var(--navy);
  color: var(--paper);
  border-left: 4px solid var(--gold);
}
.footer-contact::after {
  content: "C-04";
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(242, 169, 59, 0.55);
}
.footer-h--light {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--gold);
  letter-spacing: 0.22em;
}
.footer-contact-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(246, 241, 231, 0.92);
}
.footer-contact-list .k {
  display: inline-block;
  min-width: 3.6em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(246, 241, 231, 0.55);
}
.footer-note {
  grid-column: 2;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.62);
}

.footer-base {
  margin-top: clamp(30px, 4vw, 52px);
  background: var(--navy-mid);
  border-top: 1px solid rgba(242, 169, 59, 0.26);
}
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px clamp(18px, 3vw, 32px);
  max-width: var(--max);
  margin-inline: auto;
  padding: 18px clamp(18px, 3.6vw, 40px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 231, 0.72);
}
.footer-copy,
.footer-icp { margin: 0; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal a {
  color: rgba(246, 241, 231, 0.72);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   显现动效（仅在 JS 就绪时启用初始隐藏）
   ============================================================ */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .grid--8-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
    font-size: 16px;
  }
  html { scroll-padding-top: calc(var(--topbar-h) + 12px); }

  .site-header {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--topbar-h);
  }
  .scroll-progress { left: 0; }

  .rail {
    flex-direction: row;
    align-items: center;
    height: var(--topbar-h);
    padding: 0 14px;
    gap: 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(242, 169, 59, 0.30);
  }
  .rail::after { display: none; }

  .rail-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 0;
    border-bottom: 0;
  }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; }
  .brand-text { align-items: flex-start; gap: 2px; }
  .brand-name { font-size: 13px; letter-spacing: 0.1em; }
  .brand-sub { font-size: 8px; letter-spacing: 0.26em; }

  .nav-toggle { display: inline-flex; }

  .rail-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    padding: 22px 18px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(120% 40% at 50% 0%, #21344F 0%, #101A2B 60%),
      var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-header[data-open] .rail-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list { gap: 0; }
  .rail-nav .nav-list a {
    width: 100%;
    margin-inline: 0;
    padding: 15px 10px;
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-align: left;
    border-left: 0;
    border-bottom: 1px solid rgba(246, 241, 231, 0.12);
    border-radius: 0;
    box-shadow: none;
  }
  .rail-nav .nav-list a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(242, 169, 59, 0.22), rgba(242, 169, 59, 0));
    color: var(--gold);
    border-bottom-color: rgba(242, 169, 59, 0.55);
    box-shadow: none;
  }
  .rail-nav .nav-list a.is-chapter { color: var(--gold); border-left: 0; }

  .rail-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
  }
  .round-capsule { font-size: 12px; padding: 8px 14px; }
  .rail-cta { flex: 1 1 auto; padding: 13px 16px; font-size: 13px; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-note { grid-column: 1; }
  .footer-base-inner { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .breadcrumb { font-size: 11px; }
  .data-table { font-size: 12px; }
  .data-table th,
  .data-table td { padding: 9px 10px; }
}

/* ============================================================
   减少动态
   ============================================================ */
@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;
  }
  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .brand-mark { transform: none; }
  .media-frame--slant { clip-path: none; }
}
