/* ============================================================
   问鼎娱乐电玩 · 共享框架样式 /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, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

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

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

a { color: inherit; }

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

:where(button, a) { -webkit-tap-highlight-color: transparent; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --ink: #0B1026;
  --ink-deep: #070912;
  --navy: #173A5E;
  --rise: #101733;
  --red: #D94738;
  --red-bright: #FF7A64;
  --gold: #E9B44C;
  --gold-light: #F6D98E;
  --turquoise: #2FB7A8;
  --cream: #F7F1E3;
  --mauve: #8B86A8;

  /* 边界 */
  --edge: rgba(233, 180, 76, 0.26);
  --edge-soft: rgba(233, 180, 76, 0.16);

  /* 结构 */
  --rail: 96px;
  --shell: 1180px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* 字体 */
  --font-display: "问鼎藏线黑", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 动效 */
  --dur: 320ms;
  --dur-fast: 240ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail);
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: padding-left var(--dur-slow) var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 84% -8%, rgba(217, 71, 56, 0.22), transparent 62%),
    radial-gradient(760px 520px at 6% 106%, rgba(47, 183, 168, 0.14), transparent 60%),
    repeating-linear-gradient(45deg, rgba(233, 180, 76, 0.045) 0 1px, transparent 1px 22px);
}

#main-content {
  position: relative;
  z-index: 1;
  display: block;
  outline: none;
}

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

h1 { font-size: clamp(30px, 5.2vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }

p { text-wrap: pretty; }

strong { color: var(--gold-light); font-weight: 700; }

::selection {
  background: rgba(233, 180, 76, 0.35);
  color: var(--cream);
}

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

/* ---------- 4. 无障碍跳转 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 页头 / 框架导轨 ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 8px 14px;
  background:
    linear-gradient(178deg, #0d1430 0%, #0b1026 44%, #101a3a 100%);
  border-right: 1px solid var(--edge);
  box-shadow: 20px 0 44px -34px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

/* 品牌 */
.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-align: center;
}

.rail-brand__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cream);
}

.rail-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(233, 180, 76, 0.22), transparent 72%);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail-brand__link:hover .rail-brand__mark,
.rail-brand__link:focus-visible .rail-brand__mark {
  color: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 0 16px rgba(233, 180, 76, 0.42);
}

.rail-brand__name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.rail-brand__line { display: none; }

.edition-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(233, 180, 76, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(233, 180, 76, 0.1);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 导航 */
.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail-nav::-webkit-scrollbar { display: none; }

.rail-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.rail-nav__item { width: 100%; }

.rail-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 6px 2px;
  border-radius: 14px;
  color: var(--mauve);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail-nav__link:hover {
  color: var(--cream);
  background-color: rgba(233, 180, 76, 0.08);
}

.rail-nav__tick {
  display: block;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: rgba(139, 134, 168, 0.5);
  transition: background-color var(--dur) var(--ease), height var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(139, 134, 168, 0.8);
  transition: color var(--dur) var(--ease);
}

.rail-nav__label {
  writing-mode: vertical-rl;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: inherit;
}

.rail-nav__link.is-lit .rail-nav__tick {
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(246, 217, 142, 0.55);
}

.rail-nav__link[aria-current="page"] {
  color: var(--gold);
  background-color: rgba(233, 180, 76, 0.1);
}

.rail-nav__link[aria-current="page"] .rail-nav__tick {
  height: 22px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(233, 180, 76, 0.75);
}

.rail-nav__link[aria-current="page"] .rail-nav__index { color: var(--gold-light); }

.rail-nav__note {
  display: none;
  flex: 0 0 auto;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(139, 134, 168, 0.85);
}

/* 进度刻度 */
.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(233, 180, 76, 0.1);
  overflow: hidden;
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(var(--progress, 0));
  background: linear-gradient(180deg, var(--gold), var(--red-bright));
}

/* 移动端目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(233, 180, 76, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(233, 180, 76, 0.08);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { background: rgba(233, 180, 76, 0.18); }

.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold-light);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 16px;
  height: 16px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-toggle__text { line-height: 1; }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  padding: 0 clamp(16px, 4vw, 48px) 34px;
  background: linear-gradient(180deg, #0c1229 0%, #111e3d 46%, #0B1026 100%);
  border-top: 1px solid var(--edge);
  color: var(--cream);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  margin: 0 calc(-1 * clamp(16px, 4vw, 48px)) 46px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 34%, var(--turquoise) 68%, var(--navy) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 34px 28px;
  max-width: var(--shell);
  margin: 0 auto;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.footer-brand__note {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mauve);
}

.footer-brand__meta {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 241, 227, 0.7);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer-contact__label {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.footer-contact__value {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 241, 227, 0.84);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.75;
  color: var(--mauve);
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(233, 180, 76, 0.22);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

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

.footer-col__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(247, 241, 227, 0.78);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-col__link::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease), margin-right var(--dur) var(--ease);
}

.footer-col__link:hover,
.footer-col__link:focus-visible { color: var(--gold-light); }

.footer-col__link:hover::before,
.footer-col__link:focus-visible::before {
  width: 14px;
  margin-right: 8px;
}

/* 活动时段 */
.footer-timeline {
  max-width: var(--shell);
  margin: 46px auto 0;
  padding-top: 28px;
  border-top: 1px dashed rgba(233, 180, 76, 0.24);
}

.footer-timeline__title {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  padding-bottom: 34px;
}

.timeline__slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(233, 180, 76, 0.16);
  border-radius: var(--radius-md);
  background: rgba(11, 16, 38, 0.55);
  transform: translateY(var(--wave, 0px));
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.timeline__slot:nth-child(1) { --wave: 0px; }
.timeline__slot:nth-child(2) { --wave: 14px; }
.timeline__slot:nth-child(3) { --wave: 26px; }
.timeline__slot:nth-child(4) { --wave: 26px; }
.timeline__slot:nth-child(5) { --wave: 14px; }
.timeline__slot:nth-child(6) { --wave: 0px; }

.timeline__node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mauve);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.timeline__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mauve);
}

.timeline__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.timeline__state {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mauve);
}

.timeline__slot[data-state="live"] {
  border-color: rgba(47, 183, 168, 0.45);
  background: rgba(47, 183, 168, 0.08);
}

.timeline__slot[data-state="live"] .timeline__node {
  background: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(47, 183, 168, 0.16);
}

.timeline__slot[data-state="live"] .timeline__state { color: var(--turquoise); }

.timeline__slot[data-state="soon"] .timeline__node {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 180, 76, 0.16);
}

.timeline__slot[data-state="soon"] .timeline__state { color: var(--gold-light); }

.timeline__slot[data-state="done"] { opacity: 0.78; }

.timeline__slot[data-state="done"] .timeline__node { background: var(--mauve); }

/* 页脚底部 */
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--shell);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(233, 180, 76, 0.18);
  font-size: 12px;
  color: var(--mauve);
}

.footer-base__copy { letter-spacing: 0.04em; }

.footer-base__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(139, 134, 168, 0.9);
}

/* ---------- 7. 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

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

.eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
}

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

.btn--primary {
  background: var(--gold);
  color: var(--ink-deep);
  box-shadow: 0 10px 26px -16px rgba(233, 180, 76, 0.9);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(233, 180, 76, 0.5);
  background: transparent;
  color: var(--cream);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold-light);
  background: rgba(233, 180, 76, 0.12);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn--small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13.5px;
}

/* 面包屑 */
.breadcrumb { padding-top: 22px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mauve);
}

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

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--mauve);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible { color: var(--gold-light); }

.breadcrumb__sep { color: rgba(139, 134, 168, 0.55); }

.breadcrumb__current { color: var(--cream); }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: linear-gradient(135deg, #101733 0%, #173A5E 56%, #14204a 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(233, 180, 76, 0.07) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 30% 26%, rgba(217, 71, 56, 0.26), transparent 62%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  border: 1px dashed rgba(233, 180, 76, 0.22);
  border-radius: 14px;
}

.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--bare {
  border: 0;
  background: none;
}
.media-frame--bare::before,
.media-frame--bare::after { display: none; }

.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mauve);
}

/* ---------- 8. 滚动显现 ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

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

/* ---------- 9. 响应式：平板与手机 ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline__slot:nth-child(n) { --wave: 0px; }
  .timeline__slot:nth-child(2n) { --wave: 12px; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }

  body { padding-left: 0; }

  .site-header {
    position: sticky;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.95);
    overflow: visible;
  }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    text-align: left;
  }

  .rail-brand__link {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .rail-brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
  }

  .rail-brand__name {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.01em;
  }

  .edition-badge { font-size: 10.5px; padding: 2px 7px; }

  .nav-toggle { display: inline-flex; padding: 10px; }
  .nav-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rail-nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex: 0 0 auto;
    overflow: visible;
    padding-top: 10px;
    border-top: 1px dashed rgba(233, 180, 76, 0.24);
  }

  .site-header[data-open="true"] .rail-nav { display: flex; }

  .rail-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .rail-nav__link {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }

  .rail-nav__label {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .rail-nav__index { width: 22px; font-size: 11px; }

  .rail-nav__tick {
    width: 3px;
    height: 16px;
    flex: 0 0 auto;
  }

  .rail-nav__link[aria-current="page"] .rail-nav__tick { height: 24px; }

  .rail-nav__note {
    display: block;
    writing-mode: horizontal-tb;
    margin: 8px 4px 2px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .rail-progress {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 2px;
  }

  .rail-progress__bar {
    transform-origin: left center;
    transform: scaleX(var(--progress, 0));
    background: linear-gradient(90deg, var(--gold), var(--red-bright));
  }

  .site-footer { margin-top: 64px; }

  .grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline__slot:nth-child(n) { --wave: 0px; }
  .timeline__slot:nth-child(2n) { --wave: 12px; }
  .footer-contact__row { grid-template-columns: 68px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline__slot:nth-child(n) { --wave: 0px; }
  .site-footer::before { margin-bottom: 32px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .grid-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .edition-badge { display: none; }
}

/* 高度充裕时显示导轨备注 */
@media (min-width: 901px) and (min-height: 900px) {
  .rail-nav__note { display: block; }
}

/* ---------- 10. 打印 ---------- */
@media print {
  body { padding-left: 0; background: #fff; color: #000; }
  body::before,
  .site-header,
  .rail-progress,
  .nav-toggle { display: none !important; }
  .site-footer { margin-top: 0; background: #fff; color: #000; border-top: 1px solid #999; }
  .site-footer::before { display: none; }
  .timeline__slot { break-inside: avoid; border-color: #999; }
  a { text-decoration: underline; }
}

/* ---------- 11. 减少动效 ---------- */
@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;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible { transform: none; }

  .timeline__slot { transform: none !important; }

  .rail-progress__bar { transition: none !important; }
}
