/* ============================================================
   皇冠赛场 · site.css
   夜场数据竞技场 — 共享外壳、基础组件与响应式骨架
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #06191A;
}

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

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

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

img, video { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

/* ---------- 1. Tokens ---------- */
:root {
  /* 品牌色 */
  --ink: #06191A;
  --green-900: #0B2B26;
  --green-800: #0E3A33;
  --green-700: #124A41;
  --gold: #D8A94B;
  --gold-hi: #FFD98A;
  --gold-ink: #8A6A1F;
  --cyan: #35F0D0;
  --orange: #FF7A3D;
  --purple: #2A1240;
  --wine: #5A1230;
  --ivory: #F6F1E7;
  --graphite: #14181A;
  --sage: #7E9A93;
  --signal: #E4573D;

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --rail-w: 136px;
  --rail-h-mobile: 64px;
  --radius-card: 28px;
  --radius-pill: 999px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  /* 节奏 */
  --dur: 240ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* 层级 */
  --z-rail: 80;
  --z-scrim: 85;
  --z-drawer: 90;
  --z-progress: 95;
  --z-skip: 200;
}

/* ---------- 2. 中文排版基线 ---------- */
body {
  margin: 0;
  padding-left: var(--rail-w);
  min-height: 100vh;

  background-color: var(--green-900);
  background-image:
    radial-gradient(82% 58% at 100% 0%, rgba(42, 18, 64, 0.78), transparent 64%),
    radial-gradient(70% 52% at 4% 100%, rgba(90, 18, 48, 0.38), transparent 62%),
    linear-gradient(180deg, #0B2B26 0%, #082021 52%, #06191A 100%);

  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.32vw + 15px, 18px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

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

#main-content {
  display: block;
  scroll-margin-top: 24px;
}

/* ---------- 3. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: var(--z-skip);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--gold-hi);
  color: var(--graphite);
  font: 700 14px/1 var(--font-sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 220ms var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 4. 侧轨外壳 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-rail);

  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 16px 10px 14px;

  background-color: #06191A;
  background-image:
    radial-gradient(130% 46% at 50% 0%, rgba(216, 169, 75, 0.22), transparent 64%),
    linear-gradient(180deg, #0A2A25 0%, #06191A 58%, #04100F 100%);
  border-right: 1px solid rgba(216, 169, 75, 0.22);
  box-shadow: 1px 0 0 rgba(4, 16, 15, 0.8), 14px 0 46px rgba(0, 0, 0, 0.34);

  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { width: 0; height: 0; }

.rail__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* --- 品牌 --- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 10px;
  color: var(--ivory);
  text-decoration: none;
  width: 100%;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 0 10px rgba(216, 169, 75, 0.4));
  transition: transform var(--dur) var(--ease);
}

.brand:hover .brand__mark { transform: translateY(-2px); }

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--ivory);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--sage);
  white-space: nowrap;
}

/* --- 行动区 --- */
.rail__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 10px;
  border-bottom: 1px solid rgba(216, 169, 75, 0.18);
  width: 100%;
}

.rail__cta {
  width: 100%;
  font-size: 12px;
  padding: 10px 6px;
  letter-spacing: 0.02em;
}

/* --- 汉堡按钮（桌面隐藏） --- */
.rail__toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  border-radius: 14px;
  border: 1px solid rgba(216, 169, 75, 0.35);
  background: rgba(216, 169, 75, 0.08);
  color: var(--gold-hi);
}

.rail__toggle-bars,
.rail__toggle-bars::before,
.rail__toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease), background-color 160ms var(--ease);
}

.rail__toggle-bars { position: relative; }
.rail__toggle-bars::before,
.rail__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.rail__toggle-bars::before { top: -6px; }
.rail__toggle-bars::after { top: 6px; }

.rail[data-open="true"] .rail__toggle-bars { background: transparent; }
.rail[data-open="true"] .rail__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.rail[data-open="true"] .rail__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --- 导航 --- */
.rail__nav {
  flex: 1 0 auto;
  position: relative;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 169, 75, 0.16);
}

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.rail__item { margin: 0; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 14px;
  color: rgba(246, 241, 231, 0.72);
  text-decoration: none;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}

.rail__link:hover {
  color: var(--gold-hi);
  background: rgba(216, 169, 75, 0.09);
}

.rail__link-index {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sage);
  line-height: 1;
}

.rail__link-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.rail__link[aria-current="page"],
.rail__link[data-active="true"] {
  color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(216, 169, 75, 0.18), rgba(216, 169, 75, 0.04));
  box-shadow: inset 0 0 0 1px rgba(216, 169, 75, 0.34);
}

.rail__link[aria-current="page"] .rail__link-index,
.rail__link[data-active="true"] .rail__link-index {
  color: var(--gold);
}

.rail__link[aria-current="page"]::before,
.rail__link[data-active="true"]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: var(--gold-hi);
  box-shadow: 0 0 10px rgba(255, 217, 138, 0.75);
}

/* --- 轨道底部 meta --- */
.rail__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 169, 75, 0.16);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.rail__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--sage);
}

.rail__meta-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(216, 169, 75, 0.85);
}

/* --- 滚动进度条（由 site.js 注入） --- */
.rail__progress {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-progress);
  width: 3px;
  height: 100vh;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--cyan) 100%);
  pointer-events: none;
  transition: transform 90ms linear;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 112px);
  overflow: hidden;
  border-top: 1px solid rgba(216, 169, 75, 0.3);
  color: var(--ivory);
  background-color: var(--ink);
  background-image:
    radial-gradient(96% 120% at 88% 0%, rgba(90, 18, 48, 0.42), transparent 60%),
    radial-gradient(70% 90% at 4% 100%, rgba(42, 18, 64, 0.5), transparent 64%),
    linear-gradient(180deg, #06191A 0%, #071F20 46%, #0A2622 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(216, 169, 75, 0.075) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(216, 169, 75, 0.075) 0 1px, transparent 1px 56px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

.footer__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(120px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer__mark {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(216, 169, 75, 0.35));
}

.footer__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ivory);
}

.footer__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer__brief {
  margin-top: 8px;
  max-width: 24em;
  font-size: 13px;
  line-height: 1.75;
  color: var(--sage);
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(216, 169, 75, 0.2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer__link:hover {
  color: var(--gold-hi);
  border-bottom-color: rgba(255, 217, 138, 0.55);
}

.footer__contact {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid rgba(216, 169, 75, 0.18);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(126, 154, 147, 0.9);
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ivory);
  word-break: break-word;
}

.footer__bottom {
  margin-top: clamp(26px, 4vw, 42px);
  padding-top: 20px;
  border-top: 1px solid rgba(216, 169, 75, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.footer__legal,
.footer__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--sage);
}

.footer__note { color: rgba(126, 154, 147, 0.82); }

.footer__aux {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__aux-link {
  font-size: 12px;
  color: rgba(246, 241, 231, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 169, 75, 0.28);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer__aux-link:hover {
  color: var(--gold-hi);
  border-bottom-color: var(--gold-hi);
}

/* ---------- 6. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--tight {
  max-width: 880px;
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--flush { padding-block: 0; }

.section--ivory {
  background-color: var(--ivory);
  background-image:
    radial-gradient(90% 70% at 100% 0%, rgba(216, 169, 75, 0.16), transparent 62%),
    linear-gradient(180deg, #F6F1E7 0%, #EFE7D9 100%);
  color: var(--graphite);
  border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0;
}

.section--ivory h1,
.section--ivory h2,
.section--ivory h3 { color: var(--graphite); }

.section--ivory .eyebrow { color: var(--gold-ink); }

.section--wine {
  background-image:
    radial-gradient(90% 120% at 0% 0%, rgba(90, 18, 48, 0.85), transparent 68%),
    linear-gradient(180deg, #2A1240 0%, #170A22 100%);
  border-radius: clamp(24px, 3vw, 40px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

/* ---------- 7. 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.125rem);
  line-height: 1.75;
  color: rgba(246, 241, 231, 0.82);
  max-width: 34em;
}

.section--ivory .lede { color: #46504E; }

.prose {
  max-width: 34em;
  line-height: 1.85;
}

.prose p + p { margin-top: 1em; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn--gold {
  background-image: linear-gradient(180deg, #FFD98A 0%, #D8A94B 100%);
  color: var(--graphite);
  box-shadow: 0 10px 24px rgba(216, 169, 75, 0.24);
}

.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(216, 169, 75, 0.36);
}

.btn--ghost {
  border-color: rgba(246, 241, 231, 0.3);
  color: var(--ivory);
  background: rgba(246, 241, 231, 0.04);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
  background: rgba(216, 169, 75, 0.1);
}

.btn--cyan {
  border-color: rgba(53, 240, 208, 0.42);
  background: rgba(53, 240, 208, 0.1);
  color: var(--cyan);
}

.btn--cyan:hover {
  border-color: var(--cyan);
  background: rgba(53, 240, 208, 0.18);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(216, 169, 75, 0.22);
  background-image: linear-gradient(160deg, rgba(18, 74, 65, 0.55) 0%, rgba(6, 25, 26, 0.9) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.card--wine {
  border-color: rgba(216, 169, 75, 0.3);
  background-image: linear-gradient(155deg, rgba(90, 18, 48, 0.78) 0%, rgba(23, 10, 34, 0.92) 100%);
}

.card--purple {
  background-image: linear-gradient(155deg, rgba(42, 18, 64, 0.86) 0%, rgba(6, 25, 26, 0.92) 100%);
}

.card--ivory {
  background-color: var(--ivory);
  background-image: linear-gradient(160deg, #F6F1E7 0%, #EFE7D9 100%);
  color: var(--graphite);
  border-color: rgba(216, 169, 75, 0.45);
}

/* ---------- 10. 数据组件 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sage);
  line-height: 1.5;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold-hi);
}

.stat__delta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.stat__delta.is-up { color: var(--cyan); }
.stat__delta.is-down { color: var(--orange); }

/* ---------- 11. 分段控件与标签 ---------- */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 169, 75, 0.24);
  background: rgba(6, 25, 26, 0.62);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { width: 0; height: 0; }

.tab {
  flex: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--sage);
  background: transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tab:hover { color: var(--gold-hi); }

.tab[aria-selected="true"] {
  background-image: linear-gradient(180deg, #FFD98A 0%, #D8A94B 100%);
  color: var(--graphite);
}

.tab-panel { padding-top: clamp(20px, 3vw, 32px); }

[data-panel][hidden] { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(126, 154, 147, 0.42);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--sage);
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.chip:hover {
  color: var(--gold-hi);
  border-color: rgba(216, 169, 75, 0.6);
}

.chip[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(53, 240, 208, 0.1);
  box-shadow: inset 0 0 0 1px rgba(53, 240, 208, 0.22);
}

/* ---------- 12. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(216, 169, 75, 0.22);
  aspect-ratio: 16 / 9;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(53, 240, 208, 0.14), transparent 62%),
    repeating-linear-gradient(0deg, rgba(216, 169, 75, 0.1) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(216, 169, 75, 0.1) 0 1px, transparent 1px 44px),
    linear-gradient(150deg, #0E3A33 0%, #06191A 58%, #2A1240 100%);
  isolation: isolate;
}

.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--sage);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  padding-block: 20px 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sage);
}

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

.breadcrumb__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.breadcrumb__link:hover {
  color: var(--gold-hi);
  border-bottom-color: currentColor;
}

.breadcrumb__sep {
  color: rgba(216, 169, 75, 0.6);
}

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

/* ---------- 14. 入场动效 ---------- */
[data-reveal] {
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

[data-reveal][data-revealed="false"] {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 15. 平板 ---------- */
@media (max-width: 1180px) {
  .footer__grid {
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(100px, 1fr));
  }
  .footer__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  :root { --rail-w: 120px; }
  .rail__link-label { font-size: 11px; letter-spacing: 0.1em; }
  .grid--7-5,
  .grid--8-4,
  .grid--5-7 { grid-template-columns: 1fr; }
}

/* ---------- 16. 移动端：侧轨收为顶栏 + 抽屉 ---------- */
@media (max-width: 980px) {
  body {
    padding-left: 0;
    padding-top: var(--rail-h-mobile);
  }

  #main-content { scroll-margin-top: 84px; }

  .rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--rail-h-mobile);
    flex-direction: row;
    align-items: center;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 169, 75, 0.28);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
    overflow: visible;
    background-image:
      radial-gradient(90% 180% at 12% 0%, rgba(216, 169, 75, 0.2), transparent 62%),
      linear-gradient(180deg, #0A2A25 0%, #06191A 100%);
  }

  .rail__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 0;
    width: auto;
  }

  .brand__mark { width: 30px; height: 30px; }

  .brand__text {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .brand__name { font-size: 15px; letter-spacing: 0.1em; }
  .brand__tagline { display: none; }

  .rail__actions {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
    width: auto;
  }

  .rail__cta {
    width: auto;
    font-size: 12px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  .rail__toggle { display: inline-flex; }

  .rail__nav {
    position: fixed;
    top: var(--rail-h-mobile);
    left: 0;
    bottom: 0;
    z-index: var(--z-drawer);
    width: min(78vw, 320px);
    margin: 0;
    padding: 18px 16px 32px;
    border-top: 0;
    border-right: 1px solid rgba(216, 169, 75, 0.32);
    background-color: #071E1C;
    background-image:
      radial-gradient(120% 50% at 0% 0%, rgba(216, 169, 75, 0.16), transparent 62%),
      linear-gradient(180deg, #0B2B26 0%, #06191A 70%, #04100F 100%);
    box-shadow: 26px 0 64px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 260ms var(--ease);
  }

  .rail[data-open="true"] .rail__nav { transform: translateX(0); }

  .rail[data-open="true"]::after {
    content: "";
    position: fixed;
    top: var(--rail-h-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-scrim);
    background: rgba(4, 16, 15, 0.68);
    animation: railScrimIn 220ms var(--ease);
  }

  .rail__list { gap: 6px; }

  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .rail__link-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .rail__link-index {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.14em;
  }

  .rail__link[aria-current="page"]::before,
  .rail__link[data-active="true"]::before {
    left: auto;
    right: 16px;
    bottom: auto;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translateY(-50%);
    border-radius: 50%;
  }

  .rail__foot { display: none; }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .footer__brand { grid-column: 1 / -1; }

  .site-footer { margin-top: clamp(40px, 9vw, 72px); }
}

@keyframes railScrimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 17. 小屏手机 ---------- */
@media (max-width: 640px) {
  :root { --gutter: 18px; }

  .footer__contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer__legal,
  .footer__note { font-size: 11px; }
}

@media (max-width: 359px) {
  .rail__cta { display: none; }
}

/* ---------- 18. 矮屏侧轨压缩 ---------- */
@media (min-width: 981px) and (max-height: 800px) {
  .rail { padding-top: 10px; }
  .brand { padding-bottom: 6px; }
  .brand__tagline { display: none; }
  .brand__mark { width: 30px; height: 30px; }
  .rail__link { padding: 7px 4px; gap: 4px; }
  .rail__link-label { font-size: 10.5px; letter-spacing: 0.08em; }
  .rail__cta { padding: 8px 4px; font-size: 11px; }
  .rail__foot { padding-top: 8px; }
}

/* ---------- 19. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal][data-revealed="false"] {
    opacity: 1;
    transform: none;
  }

  .rail__progress { transition: none; }
  .rail__nav { transition: none; }
  .rail[data-open="true"]::after { animation: none; }
}
