/* ============================================================
   星空体育 · 共享外壳样式 /assets/site.css
   暗夜赛场数据工作台：侧边品牌轨道 + 星空深蓝主区
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, dt { margin: 0; }

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

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

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

table { border-collapse: collapse; width: 100%; }

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

:root {
  --star-950: #040B14;
  --star-900: #06101F;
  --star-800: #0B1A2F;
  --nebula: #1B2450;
  --teal-deep: #0E3B3A;
  --wine: #3A1030;

  --cyan: #00E5FF;
  --violet: #8A2BE2;
  --orange: #FF6B35;
  --emerald: #17E0A0;

  --ink: #E8F4FF;
  --ink-soft: #C3D6EB;
  --muted: #8FA3BF;
  --line: rgba(143, 163, 191, 0.22);
  --line-soft: rgba(143, 163, 191, 0.14);
  --glass: rgba(11, 26, 47, 0.58);
  --glass-strong: rgba(6, 16, 31, 0.94);

  --rail-w: 300px;
  --rail-w-compact: 84px;
  --topbar-h: 68px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;

  --font-display: "Exo 2", "Orbitron", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.45);
  --glow-card: 0 0 0 1px rgba(0, 229, 255, 0.3), 0 0 36px -8px rgba(0, 229, 255, 0.55);
}

/* ---------- 2. 基底与中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--star-800);
  background-image:
    radial-gradient(1100px 560px at 88% -6%, rgba(138, 43, 226, 0.22), transparent 62%),
    radial-gradient(880px 520px at 4% 6%, rgba(0, 229, 255, 0.13), transparent 60%),
    radial-gradient(1400px 900px at 50% 118%, rgba(14, 59, 58, 0.5), transparent 72%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(232, 244, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 68% 12%, rgba(0, 229, 255, 0.6), transparent),
    radial-gradient(1.6px 1.6px at 34% 74%, rgba(232, 244, 255, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 84% 62%, rgba(138, 43, 226, 0.7), transparent),
    radial-gradient(1.3px 1.3px at 52% 40%, rgba(232, 244, 255, 0.35), transparent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.6vw, 58px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }

p { color: var(--ink-soft); }

strong { color: var(--ink); font-weight: 600; }

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

.num,
.stat__value,
.data-pod__value,
.site-nav__num,
.index-list__num,
.index-list__meta,
.footer-legal {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.num { font-size: 0.95em; color: var(--cyan); }

/* ---------- 3. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.6vw, 46px);
}

#main-content {
  position: relative;
  z-index: 1;
  margin-inline-start: var(--rail-w);
  min-height: 60vh;
  transition: margin-inline-start 240ms var(--ease);
}

.section { padding-block: clamp(38px, 5.6vw, 78px); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.section-title { font-size: clamp(26px, 3.4vw, 44px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 38em;
}

.prose { max-width: 38em; display: flex; flex-direction: column; gap: 14px; }

.txt-muted { color: var(--muted); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.45), rgba(138, 43, 226, 0.28), transparent);
}

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }

.aside-note {
  border-inline-start: 2px solid var(--violet);
  padding-inline-start: 16px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone {
  position: relative;
  padding: clamp(24px, 4vw, 54px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.zone--teal {
  background: linear-gradient(150deg, var(--teal-deep), #082A2E 58%, #071A24);
  border: 1px solid rgba(23, 224, 160, 0.18);
}

.zone--wine {
  background: linear-gradient(150deg, var(--wine), #2A0B29 58%, #14062A);
  border: 1px solid rgba(138, 43, 226, 0.26);
}

/* ---------- 4. 按钮 / 标签 / 筛选 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: linear-gradient(100deg, var(--orange), #FF9A4D);
  color: #1A0A02;
  box-shadow: 0 14px 34px -18px rgba(255, 107, 53, 0.95);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(255, 107, 53, 0.9);
}

.btn--ghost {
  border-color: rgba(0, 229, 255, 0.42);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.16);
  transform: translateY(-2px);
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 36, 80, 0.42);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.chip:hover { border-color: rgba(0, 229, 255, 0.5); color: var(--ink); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121F;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.tag--live {
  background: rgba(23, 224, 160, 0.13);
  border-color: rgba(23, 224, 160, 0.34);
  color: var(--emerald);
}

.tag--hot {
  background: rgba(255, 107, 53, 0.13);
  border-color: rgba(255, 107, 53, 0.34);
  color: var(--orange);
}

.tag--violet {
  background: rgba(138, 43, 226, 0.16);
  border-color: rgba(138, 43, 226, 0.38);
  color: #C79BFF;
}

/* ---------- 5. 卡片 / 数据 / 列表 ---------- */
.card {
  background: rgba(27, 36, 80, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
}

.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(0, 229, 255, 0.2);
}

.card--feature {
  position: relative;
  background: linear-gradient(150deg, rgba(27, 36, 80, 0.9), rgba(11, 26, 47, 0.94));
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: var(--glow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.card--feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 132px;
  height: 132px;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 46%, rgba(0, 229, 255, 0.18));
  border-bottom-right-radius: var(--radius);
}

.card--feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.42), 0 0 42px -4px rgba(0, 229, 255, 0.6);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

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

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.stat__value--cyan { color: var(--cyan); text-shadow: 0 0 22px rgba(0, 229, 255, 0.45); }
.stat__value--orange { color: var(--orange); text-shadow: 0 0 22px rgba(255, 107, 53, 0.42); }

.stat__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.index-list { display: flex; flex-direction: column; }

.index-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  transition: color 160ms var(--ease), padding-inline-start 160ms var(--ease);
}

.index-list__item:hover {
  color: var(--ink);
  padding-inline-start: 12px;
  text-decoration: none;
}

.index-list__num { font-size: 12px; color: var(--cyan); }
.index-list__meta { font-size: 12px; color: var(--muted); }

.data-table { font-size: 14px; }

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: start;
}

.data-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--muted);
}

.data-table td { color: var(--ink-soft); }
.data-table td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- 6. 可展开内容组 ---------- */
.expander {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(27, 36, 80, 0.34);
  overflow: hidden;
}

.expander + .expander { margin-top: 10px; }

.expander summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  transition: background 180ms var(--ease);
}

.expander summary::-webkit-details-marker { display: none; }

.expander summary::after {
  content: "＋";
  margin-inline-start: auto;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.expander[open] summary::after { content: "－"; }

.expander[open] summary { background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), transparent); }

.expander__num { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.08em; }

.expander__body { padding: 0 18px 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 7. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--nebula), var(--star-900) 72%);
  border: 1px solid var(--line-soft);
}

.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--diag::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, rgba(0, 229, 255, 0.2) 0 34%, transparent 34%);
  mix-blend-mode: screen;
}

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  background: linear-gradient(180deg, transparent, rgba(4, 11, 20, 0.92));
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

.breadcrumbs li { display: flex; align-items: center; gap: 9px; }

.breadcrumbs li + li::before { content: "/"; color: rgba(143, 163, 191, 0.5); }

.breadcrumbs a { color: var(--muted); transition: color 160ms var(--ease); }

.breadcrumbs a:hover { color: var(--cyan); text-decoration: none; }

.breadcrumbs [aria-current="page"] { color: var(--cyan); }

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #04121F;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-220%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus { transform: none; }

/* ---------- 10. 头部：品牌轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 5;
  pointer-events: none;
  background: rgba(143, 163, 191, 0.14);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 58%, var(--orange));
}

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 22px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 240ms var(--ease), padding 240ms var(--ease);
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 26, 47, 0.42), rgba(6, 16, 31, 0.7));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-inline-end: 1px solid var(--line);
  transition: background 240ms var(--ease);
}

.site-header[data-scrolled="true"] .rail::before {
  background: linear-gradient(180deg, rgba(6, 16, 31, 0.95), rgba(6, 16, 31, 0.98));
}

.rail__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rail__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

.rail__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 品牌署名 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand__mark {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(0, 229, 255, 0.18), rgba(138, 43, 226, 0.18));
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--cyan), var(--violet) 68%, var(--orange));
  clip-path: polygon(50% 12%, 92% 88%, 8% 88%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 28%;
  width: 2px;
  height: 42%;
  transform: translateX(-50%) rotate(12deg);
  background: var(--star-900);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(0, 229, 255, 0.36);
  background: rgba(0, 229, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.nav-toggle:hover { background: rgba(0, 229, 255, 0.16); }

.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { font-size: 12px; letter-spacing: 0.08em; }

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

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--muted);
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.site-nav__link:hover {
  color: var(--ink);
  background: rgba(0, 229, 255, 0.07);
  text-decoration: none;
}

.site-nav__num { font-size: 11px; color: rgba(143, 163, 191, 0.8); }

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.16), rgba(0, 229, 255, 0));
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.site-nav__link[aria-current="page"] .site-nav__num { color: var(--cyan); }

/* 迷你数据舱 */
.data-pod {
  margin-top: auto;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(27, 36, 80, 0.66), rgba(11, 26, 47, 0.72));
}

.data-pod__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--font-mono);
}

.data-pod__ring {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, var(--cyan) 0 58%, rgba(143, 163, 191, 0.16) 58% 100%);
  box-shadow: 0 0 22px -8px rgba(0, 229, 255, 0.7);
}

.data-pod__ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #08182B;
}

.data-pod__value {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.data-pod__value i { font-style: normal; font-size: 10px; color: var(--muted); }

.data-pod__meta {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
}

.data-pod__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: podPulse 2.4s var(--ease) infinite;
}

@keyframes podPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.data-pod__bars { display: flex; flex-direction: column; gap: 5px; width: 100%; margin-top: 2px; }

.data-pod__bars span {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 255, 0));
}

.data-pod__bars span:nth-child(1) { width: 84%; }
.data-pod__bars span:nth-child(2) { width: 56%; background: linear-gradient(90deg, var(--violet), rgba(138, 43, 226, 0)); }
.data-pod__bars span:nth-child(3) { width: 32%; background: linear-gradient(90deg, var(--orange), rgba(255, 107, 53, 0)); }

/* 遮罩 */
.nav-scrim { display: none; }

/* ---------- 11. 紧凑轨道（仅桌面） ---------- */
@media (min-width: 1120px) {
  html[data-rail="compact"] .rail { width: var(--rail-w-compact); padding-inline: 14px; }
  html[data-rail="compact"] #main-content,
  html[data-rail="compact"] .site-footer { margin-inline-start: var(--rail-w-compact); }

  html[data-rail="compact"] .rail__head { justify-content: center; }
  html[data-rail="compact"] .brand__text,
  html[data-rail="compact"] .site-nav__text,
  html[data-rail="compact"] .data-pod__label,
  html[data-rail="compact"] .data-pod__meta,
  html[data-rail="compact"] .data-pod__bars,
  html[data-rail="compact"] .rail__actions { display: none; }

  html[data-rail="compact"] .site-nav__link { justify-content: center; padding: 12px 6px; }
  html[data-rail="compact"] .site-nav__num { font-size: 13px; color: var(--ink-soft); }
  html[data-rail="compact"] .site-nav__link[aria-current="page"] .site-nav__num { color: var(--cyan); }
  html[data-rail="compact"] .data-pod { padding: 10px; }
  html[data-rail="compact"] .data-pod__ring { width: 54px; height: 54px; }
  html[data-rail="compact"] .data-pod__ring::before { inset: 6px; }
  html[data-rail="compact"] .data-pod__value { font-size: 14px; }
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-inline-start: var(--rail-w);
  margin-top: clamp(44px, 6vw, 92px);
  padding: clamp(40px, 5vw, 66px) 0 26px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 300px at 12% 0%, rgba(58, 16, 48, 0.6), transparent 72%),
    radial-gradient(760px 280px at 88% 8%, rgba(14, 59, 58, 0.55), transparent 72%),
    linear-gradient(180deg, var(--star-900), var(--star-950));
  transition: margin-inline-start 240ms var(--ease);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 46px);
}

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

.brand--footer .brand__name { font-size: 18px; }

.footer-brand__line {
  font-size: 14px;
  color: var(--muted);
  max-width: 30em;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 14px;
}

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

.footer-col__list a {
  font-size: 14px;
  color: var(--muted);
  transition: color 160ms var(--ease);
}

.footer-col__list a:hover { color: var(--cyan); text-decoration: none; }

.footer-contact {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.footer-contact__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 26px;
}

.footer-contact__list li { font-size: 14px; color: var(--ink-soft); }

.footer-contact__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-contact__note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 64em;
}

.footer-legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal p { color: var(--muted); font-size: 12.5px; }

/* ---------- 13. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 14. 平板与移动 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1119px) {
  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    overflow: visible;
    transition: none;
  }

  .rail::before {
    background: linear-gradient(180deg, rgba(11, 26, 47, 0.5), rgba(6, 16, 31, 0.32));
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header[data-scrolled="true"] .rail::before { background: var(--glass-strong); }

  .rail__head { flex: 1 1 auto; }

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

  .rail__body {
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    width: min(88vw, 358px);
    z-index: 4;
    padding: 24px 20px 34px;
    gap: 20px;
    overflow-y: auto;
    background: linear-gradient(165deg, #0B1A2F, #06101F 68%, #101033);
    border-inline-end: 1px solid rgba(0, 229, 255, 0.22);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 320ms var(--ease), visibility 320ms var(--ease);
  }

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

  .rail__body .data-pod { margin-top: 6px; }
  .rail__body .rail__actions { margin-top: 2px; }
  .rail__actions .btn { width: 100%; }

  .site-nav__link { font-size: 16px; padding: 13px 12px; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(4, 11, 20, 0.66);
    opacity: 0;
    visibility: hidden;
    transition: opacity 260ms var(--ease), visibility 260ms var(--ease);
  }

  .site-header[data-open="true"] .nav-scrim { opacity: 1; visibility: visible; }

  #main-content,
  .site-footer { margin-inline-start: 0; }

  #main-content { padding-block-start: var(--topbar-h); }
}

@media (max-width: 760px) {
  .grid--halves,
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .nav-toggle__label { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 18px; }
  .brand__tag { display: none; }
}

/* ---------- 15. 无障碍与动效偏好 ---------- */
@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; }

  .data-pod__dot { animation: none; }
}
