/* =========================================================
   6688赛场 · 共享站点样式 /assets/site.css
   赛场绿 + 信号黄 + 深空黑 · 纵向叙事长卷
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

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

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

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

ol,
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p, figure, table, dl, dd, dt { margin: 0; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --green: #0C6B3F;
  --green-deep: #06452A;
  --yellow: #F2C230;
  --yellow-deep: #A8811B;
  --ink: #0A0D10;
  --white: #F5F7F4;
  --indigo: #123A47;
  --wine: #7B2233;
  --muted: #5C6B63;
  --mint: #CFE3D6;
  --glow: linear-gradient(120deg, #0C6B3F 0%, #123A47 55%, #A8811B 100%);

  --rail-w: 216px;
  --bar-h: 56px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;

  --line: rgba(10, 13, 16, 0.14);
  --line-strong: rgba(10, 13, 16, 0.3);
  --line-invert: rgba(245, 247, 244, 0.18);

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

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 6vw, 76px); line-height: 0.98; }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: 0; }

p { max-width: 68ch; }

.num,
[data-count] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

.link {
  color: var(--green-deep);
  font-weight: 700;
  border-bottom: 1.5px solid rgba(12, 107, 63, 0.4);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.link:hover { color: var(--green); border-bottom-color: var(--yellow); }

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--yellow);
  color: #3A2A02;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 5. 头部轨道导航 ---------- */
.site-rail {
  background: var(--green-deep);
  color: var(--white);
  z-index: 80;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--yellow);
  color: #3A2A02;
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand__tagline {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 244, 0.62);
}

.rail__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(242, 194, 48, 0.72);
}

.rail__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid rgba(242, 194, 48, 0.5);
  border-radius: var(--r-sm);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.rail__toggle:hover { background: rgba(242, 194, 48, 0.14); }

.rail__toggle-bars {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.rail__nav { padding: 14px 0 0; }

.rail__list { display: flex; flex-direction: column; }

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  padding: 11px 20px 11px 22px;
  border-left: 3px solid transparent;
  color: rgba(245, 247, 244, 0.72);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.16s ease, border-color 0.16s ease,
    background-color 0.16s ease, padding-left 0.16s ease;
}

.rail__link:hover {
  color: var(--white);
  background: rgba(245, 247, 244, 0.07);
  padding-left: 24px;
}

.rail__link[aria-current="page"] {
  color: var(--yellow);
  border-left-color: var(--yellow);
  background: rgba(242, 194, 48, 0.1);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(242, 194, 48, 0.55);
}
.rail__link[aria-current="page"] .rail__num { color: var(--yellow); }

.rail__label { min-width: 0; }

.rail__utility {
  margin-top: auto;
  padding: 18px 20px 26px;
  border-top: 1px solid var(--line-invert);
}

.rail__tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(242, 194, 48, 0.45);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.rail__tool:hover { background: rgba(242, 194, 48, 0.16); }

.rail__update {
  margin-top: 14px;
  max-width: 22ch;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(245, 247, 244, 0.55);
}

.rail__progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 60%, var(--yellow-deep) 100%);
}

.rail__scrim { display: none; }

/* ---------- 6. 页脚 ---------- */
.site-foot {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--green-deep);
  color: rgba(245, 247, 244, 0.78);
  font-size: 14.5px;
  line-height: 1.7;
}

.foot__band {
  height: 5px;
  background: var(--glow);
}

.foot__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr);
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(30px, 4vw, 56px) 0 0;
}

.brand--foot { flex-direction: row; align-items: center; gap: 12px; }
.brand--foot .brand__name { font-size: 18px; }
.brand--foot .brand__tagline { margin-top: 3px; }

.foot__note {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(245, 247, 244, 0.68);
}

.foot__region {
  margin-top: 10px;
  max-width: 34ch;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(245, 247, 244, 0.48);
}

.foot__brand .btn { margin-top: 20px; }

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.foot__col-title {
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.foot__links { display: flex; flex-direction: column; gap: 10px; }

.foot__link {
  display: inline-block;
  width: fit-content;
  padding-bottom: 1px;
  font-size: 14.5px;
  color: rgba(245, 247, 244, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.foot__link:hover { color: var(--yellow); border-bottom-color: rgba(242, 194, 48, 0.7); }

.foot__contact {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line-invert);
}

.foot__contact-title {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 30px;
  margin-top: 16px;
}

.contact-line { display: flex; gap: 12px; align-items: baseline; }

.contact-line__key {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(242, 194, 48, 0.88);
}

.contact-line__val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white);
  word-break: break-word;
}

.contact-line__val--text {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 247, 244, 0.78);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line-invert);
}

.foot__legal {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 244, 0.66);
}

.foot__icp { color: rgba(245, 247, 244, 0.82); }

.foot__region {
  font-size: 12.5px;
  color: rgba(245, 247, 244, 0.52);
  max-width: 52ch;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.btn--solid:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn--signal {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #3A2A02;
}
.btn--signal:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--green-deep);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--invert {
  background: transparent;
  border-color: rgba(245, 247, 244, 0.45);
  color: var(--white);
}
.btn--invert:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 8. 面包屑 ---------- */
.crumbs { padding: 20px 0 0; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }

.crumbs__item::after {
  content: "/";
  color: rgba(92, 107, 99, 0.45);
}
.crumbs__item:last-child::after { display: none; }

.crumbs__link {
  color: var(--green);
  border-bottom: 1px solid rgba(12, 107, 63, 0.35);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.crumbs__link:hover { color: var(--yellow-deep); border-bottom-color: var(--yellow-deep); }

/* ---------- 9. 容器与网格 ---------- */
.page-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.grid > * { grid-column: span 12; }

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.stack { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 20px); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

/* ---------- 10. 章节与色带 ---------- */
.band { height: 5px; width: 100%; background: var(--glow); border-radius: 2px; }
.band--green { background: var(--green); }
.band--indigo { background: var(--indigo); }
.band--wine { background: var(--wine); }

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  align-items: start;
  margin-bottom: clamp(18px, 2.6vw, 32px);
}

.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--yellow-deep);
  padding-bottom: 7px;
  border-bottom: 3px solid var(--yellow-deep);
}

.section-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 12px;
  max-width: 68ch;
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.8;
  color: #28302B;
}

/* ---------- 11. 数据卡片与指标 ---------- */
.data-card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.data-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(6, 69, 42, 0.09);
}

.data-card--mint {
  background: var(--mint);
  border-color: rgba(12, 107, 63, 0.25);
}

.data-card--dark {
  background: var(--ink);
  border-color: rgba(242, 194, 48, 0.28);
  color: var(--white);
}
.data-card--dark .data-card__label { color: rgba(242, 194, 48, 0.88); }
.data-card--dark .stat__cap { color: rgba(245, 247, 244, 0.62); }

.data-card__label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--green-deep);
}
.stat__num--signal { color: var(--yellow-deep); }
.data-card--dark .stat__num { color: var(--yellow); }

.stat__unit {
  margin-left: 6px;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.data-card--dark .stat__unit { color: rgba(245, 247, 244, 0.55); }

.stat__cap {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 12. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.data-table caption {
  padding: 14px 16px 10px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  padding: 10px 16px;
  background: var(--green);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) { background: var(--mint); }

.data-table .is-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--green-deep);
  text-align: right;
  white-space: nowrap;
}

.data-table__note {
  display: block;
  padding: 10px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(207, 227, 214, 0.45);
  border-top: 1px solid var(--line);
}

/* ---------- 13. 标签 / 注释 / 术语 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12, 107, 63, 0.22);
  background: rgba(12, 107, 63, 0.1);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tag--signal {
  background: rgba(242, 194, 48, 0.22);
  border-color: rgba(168, 129, 27, 0.45);
  color: #6B5309;
}
.tag--wine {
  background: rgba(123, 34, 51, 0.1);
  border-color: rgba(123, 34, 51, 0.3);
  color: var(--wine);
}
.tag__num { font-family: var(--font-mono); font-weight: 700; }

.note {
  padding: 14px 18px;
  border-left: 4px solid var(--yellow-deep);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(207, 227, 214, 0.5);
  font-size: 14.5px;
  line-height: 1.75;
  color: #25302A;
}
.note__key { font-weight: 900; color: var(--green-deep); }

.glossary { display: grid; gap: 14px; }

.glossary__item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-strong);
}

.glossary__term {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  color: var(--green-deep);
}
.glossary__term::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
}

.glossary__def {
  margin-top: 6px;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: #313A34;
}

/* ---------- 14. 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--green-deep);
  opacity: 0.5;
}

.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--green-deep);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

.timeline__title { margin-top: 3px; font-weight: 800; }

.timeline__body {
  max-width: 68ch;
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #313A34;
}

/* ---------- 15. 窗口切换 ---------- */
.switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(12, 107, 63, 0.1);
}

.switch__btn {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-deep);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.switch__btn:hover { background: rgba(12, 107, 63, 0.14); }
.switch__btn[aria-pressed="true"] {
  background: var(--green);
  color: var(--white);
}

/* ---------- 16. 图片容器（页面阶段放图） ---------- */
.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: var(--glow);
}
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 4 / 5; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-frame--flat { background: var(--mint); }

.figure-frame__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 16, 0) 48%, rgba(10, 13, 16, 0.72) 100%);
  pointer-events: none;
}
.figure-frame--flat::after { display: none; }

.figure-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--white);
}

/* ---------- 17. 进入视口渐显 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 18. 桌面：固定左侧轨道 ---------- */
@media (min-width: 961px) {
  body { padding-left: var(--rail-w); }

  .site-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(242, 194, 48, 0.22);
  }

  .rail__bar {
    flex: 0 0 auto;
    padding: 26px 20px 18px;
    border-bottom: 1px solid var(--line-invert);
  }

  .rail__meta { display: block; margin-top: 14px; }
  .rail__toggle { display: none; }

  .rail__drawer {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .rail__nav { flex: 1 1 auto; overflow-y: auto; }

  .rail__progress { left: var(--rail-w); }
}

/* ---------- 19. 移动与平板：顶栏 + 抽屉 ---------- */
@media (max-width: 960px) {
  html { scroll-padding-top: 72px; }

  .site-rail {
    position: sticky;
    top: 0;
    display: block;
    box-shadow: 0 1px 0 rgba(242, 194, 48, 0.25);
  }

  .rail__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--bar-h);
    padding: 9px 14px;
  }

  .brand { flex-direction: row; align-items: center; gap: 10px; }
  .brand__mark { font-size: 13px; padding: 3px 7px; letter-spacing: 0.08em; }
  .brand__name { font-size: 16px; }
  .brand__tagline { display: none; }
  .rail__meta { display: none; }

  .rail__drawer {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    z-index: 75;
    width: min(320px, 88vw);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--green-deep);
    border-left: 1px solid rgba(242, 194, 48, 0.28);
    transform: translateX(101%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s ease;
  }

  .site-rail[data-open="true"] .rail__drawer {
    transform: none;
    visibility: visible;
  }

  .rail__nav { padding: 10px 0; }
  .rail__link { grid-template-columns: 38px minmax(0, 1fr); padding: 14px 20px; font-size: 16px; }
  .rail__link:hover { padding-left: 22px; }

  .rail__utility { padding: 18px 20px 30px; }

  .rail__scrim {
    display: block;
    position: fixed;
    inset: var(--bar-h) 0 0 0;
    z-index: 70;
    background: rgba(10, 13, 16, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .site-rail[data-open="true"] .rail__scrim {
    opacity: 1;
    visibility: visible;
  }

  .foot__top { grid-template-columns: 1fr; }
}

/* ---------- 20. 小屏收敛 ---------- */
@media (max-width: 900px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .foot__cols { grid-template-columns: 1fr; gap: 24px; }
  .contact-list { grid-template-columns: 1fr; }
  .data-table { min-width: 520px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 4; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .foot__legal { font-size: 12px; }
}

/* ---------- 21. 降低动效偏好 ---------- */
@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],
  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

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