/* ==========================================================================
   金博棋牌老版 · 版本档案室 — 共享样式 /assets/site.css
   外壳：左侧竖向轨道 + 右侧档案纸面；页脚为档案索引层
   ========================================================================== */

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

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

body {
  margin: 0;
  background-color: var(--c-ink);
  color: var(--c-mist);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }
hr { border: 0; }

/* ---------- 变量 ---------- */
:root {
  /* 色板 */
  --c-ink: #0C1F18;
  --c-moss: #142E24;
  --c-pine: #1D4231;
  --c-line: #2E5A45;
  --c-gold: #C9A227;
  --c-amber: #E9B65A;
  --c-paper: #F2E9D8;
  --c-paper-dim: #CDBFA8;
  --c-red: #B23A2E;
  --c-mist: #E6EDE8;
  --c-char: #0F1512;
  --c-fade: #7C8C83;

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Courier New", monospace;

  /* 尺度 */
  --rail-w: 104px;
  --maxw: 1240px;
  --clip-corner: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- 基础排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--c-paper);
}

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(21px, 2.4vw, 28px); }
h4 { font-size: 19px; }

strong { font-weight: 700; color: var(--c-paper); }

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 3px;
}

#main-content { scroll-margin-top: 80px; }
#main-content:focus-visible { outline: 2px solid var(--c-amber); outline-offset: -4px; }

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  #main-content { scroll-margin-top: 24px; }
}

body.nav-lock { overflow: hidden; }

/* ---------- 通用容器与区块 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }

.section--paper {
  background-color: var(--c-paper);
  color: var(--c-char);
}
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: var(--c-char); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--c-paper);
}

.section-head__note {
  max-width: 60ch;
  font-size: 16px;
  line-height: 28px;
  color: var(--c-paper-dim);
}

.section--paper .section-head__title { color: var(--c-char); }
.section--paper .section-head__note { color: #4A5A50; }

/* ---------- 文本工具 ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-gold);
}

.measure { max-width: 68ch; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-amber);
}

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

.vertical-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-fade);
}

.rule {
  height: 1px;
  background-color: var(--c-line);
  border: 0;
  margin: 0;
}

/* ---------- 切角面板 ---------- */
.panel {
  position: relative;
  background-color: var(--c-pine);
  color: var(--c-mist);
  border: 1px solid var(--c-line);
  padding: clamp(20px, 3vw, 32px);
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, 0 100%);
  transition: box-shadow 0.16s var(--ease), background-color 0.16s var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  top: 11px;
  right: -6px;
  width: 34px;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, var(--c-gold));
  transform: rotate(45deg);
  opacity: 0.4;
  transition: opacity 0.12s var(--ease);
  pointer-events: none;
}

.panel:hover { box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.32); }
.panel:hover::before { opacity: 1; }

.panel--paper {
  background-color: var(--c-paper);
  color: var(--c-char);
  border-color: var(--c-paper-dim);
}
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: var(--c-char); }
.panel--paper::before { background-image: linear-gradient(90deg, transparent, var(--c-red)); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--c-amber);
  border: 1px solid rgba(233, 182, 90, 0.5);
  background-color: rgba(233, 182, 90, 0.08);
}

.tag--red {
  color: #E8A79F;
  border-color: rgba(178, 58, 46, 0.6);
  background-color: rgba(178, 58, 46, 0.18);
}

.tag--paper {
  color: var(--c-char);
  border-color: var(--c-paper-dim);
  background-color: rgba(15, 21, 18, 0.06);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--c-gold);
  background-color: transparent;
  color: var(--c-paper);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease),
    background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.btn::after {
  content: "";
  width: 14px;
  height: 1px;
  background-color: currentColor;
  flex: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(46, 90, 69, 0.9);
  background-color: rgba(201, 162, 39, 0.12);
  color: var(--c-amber);
}

.btn--gold {
  background-color: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-ink);
  font-weight: 500;
}
.btn--gold:hover {
  background-color: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-ink);
  box-shadow: 4px 4px 0 rgba(233, 182, 90, 0.28);
}

.btn--paper {
  background-color: var(--c-paper);
  border-color: var(--c-paper);
  color: var(--c-char);
}
.btn--paper:hover {
  background-color: #FFFFFF;
  color: var(--c-char);
  box-shadow: 4px 4px 0 rgba(178, 58, 46, 0.35);
}

.btn--ghost {
  border-color: var(--c-line);
  color: var(--c-paper-dim);
}
.btn--ghost:hover {
  border-color: var(--c-amber);
  color: var(--c-amber);
  background-color: rgba(233, 182, 90, 0.06);
  box-shadow: 4px 4px 0 rgba(46, 90, 69, 0.7);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.16em;
  color: var(--c-fade);
  margin-bottom: 24px;
}

.breadcrumbs > * + *::before {
  content: "/";
  margin: 0 10px;
  color: var(--c-line);
}

.crumb {
  color: var(--c-fade);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.crumb:hover { color: var(--c-amber); }
.crumb[aria-current="page"] { color: var(--c-paper-dim); }

/* ---------- 图片容器（页面阶段放占位图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-line);
  background-color: var(--c-moss);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(46, 90, 69, 0.42) 0 1px,
    transparent 1px 12px
  );
  clip-path: polygon(0 0, calc(100% - var(--clip-corner)) 0, 100% var(--clip-corner), 100% 100%, 0 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 162, 39, 0.16);
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--tilt { transform: rotate(-1.2deg); }

/* ---------- 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.48s var(--ease), transform 0.48s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   头部：左侧竖向轨道
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  background-color: var(--c-gold);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background-color: var(--c-moss);
  background-image:
    repeating-linear-gradient(180deg, rgba(46, 90, 69, 0.22) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #142E24 0%, #0C1F18 78%);
  border-right: 1px solid var(--c-line);
}

/* 品牌铭牌 */
.brand-plate {
  padding: 22px 8px 14px;
  border-bottom: 1px solid rgba(46, 90, 69, 0.85);
}

.brand-plate__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-plate__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
  box-shadow:
    inset 0 0 0 3px rgba(201, 162, 39, 0.14),
    0 1px 0 rgba(0, 0, 0, 0.5);
  transform: rotate(-2.5deg);
  transition: color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.brand-plate__link:hover .brand-plate__mark {
  color: var(--c-amber);
  box-shadow:
    inset 0 0 0 3px rgba(233, 182, 90, 0.2),
    0 0 14px rgba(201, 162, 39, 0.28);
}

.brand-plate__text {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.22em;
  color: var(--c-paper);
}

.brand-plate__sub {
  writing-mode: vertical-rl;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.3em;
  color: var(--c-fade);
}

/* 抽屉按钮（桌面隐藏） */
.nav-toggle { display: none; }

/* 导航轨道 */
.rail-nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { width: 0; height: 0; }

.rail-list { display: flex; flex-direction: column; }
.rail-list__item { display: block; }

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--c-paper-dim);
  transition: color 0.16s var(--ease);
}

.rail-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--c-gold);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.12s var(--ease);
}

.rail-link__no {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--c-fade);
  transition: color 0.16s var(--ease);
}

.rail-link__label {
  writing-mode: vertical-rl;
  font-size: 12.5px;
  line-height: 1.2;
  letter-spacing: 0.14em;
}

.rail-link:hover { color: var(--c-amber); }
.rail-link:hover .rail-link__no { color: var(--c-amber); }
.rail-link:hover::before { transform: scaleY(1); }

.rail-link:focus-visible {
  outline: 1px solid var(--c-amber);
  outline-offset: -3px;
  color: var(--c-amber);
}

.rail-link[aria-current="page"] { color: var(--c-gold); }
.rail-link[aria-current="page"] .rail-link__no { color: var(--c-amber); }
.rail-link[aria-current="page"]::before { transform: scaleY(1); }

/* 轨道底部信息 */
.rail-meta {
  margin-top: auto;
  padding: 16px 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(46, 90, 69, 0.85);
}

.rail-meta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.rail-meta__key {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  color: var(--c-fade);
}

.rail-meta__val {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}

.rail-meta__cta {
  writing-mode: vertical-rl;
  padding: 12px 7px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-decoration: none;
  color: var(--c-paper);
  border: 1px solid var(--c-line);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.rail-meta__cta:hover {
  color: var(--c-ink);
  background-color: var(--c-gold);
  border-color: var(--c-gold);
}

/* 滚动刻度 */
.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(46, 90, 69, 0.5);
  pointer-events: none;
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, var(--c-gold), var(--c-amber));
  transform: scaleY(var(--scroll-ratio, 0));
  transform-origin: top center;
  transition: transform 0.1s linear;
}

.nav-scrim { display: none; }

/* ==========================================================================
   页脚：档案索引层
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
  background-color: var(--c-ink);
  background-image: linear-gradient(180deg, #0C1F18 0%, #12281F 100%);
  border-top: 1px solid var(--c-line);
}

.footer-mega {
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  z-index: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(96px, 17vw, 230px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: rgba(46, 90, 69, 0.26);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 6vw, 72px) 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid rgba(46, 90, 69, 0.7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
  box-shadow: inset 0 0 0 3px rgba(201, 162, 39, 0.14);
  transform: rotate(-3deg);
}

.footer-brand__body { min-width: 0; }

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--c-paper);
}

.footer-brand__sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  color: var(--c-fade);
}

.footer-tagline {
  max-width: 34ch;
  padding-left: 16px;
  border-left: 2px solid var(--c-gold);
  font-size: 15px;
  line-height: 28px;
  color: var(--c-paper-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr;
  gap: 40px 32px;
  padding-block: clamp(32px, 4vw, 48px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(46, 90, 69, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.24em;
  color: var(--c-gold);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  color: var(--c-paper-dim);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  flex: none;
  background-color: var(--c-line);
  transition: width 0.16s var(--ease), background-color 0.16s var(--ease);
}

.footer-link:hover {
  color: var(--c-amber);
  transform: translateX(3px);
}
.footer-link:hover::before {
  width: 18px;
  background-color: var(--c-gold);
}

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

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

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.22em;
  color: var(--c-fade);
}

.footer-contact__val {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-paper);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(46, 90, 69, 0.55);
  font-size: 13px;
  line-height: 24px;
  color: var(--c-fade);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(46, 90, 69, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.14em;
  color: var(--c-fade);
}

.footer-legal__copy { color: var(--c-fade); }

.footer-legal__icp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-paper-dim);
}

.footer-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background-color: var(--c-red);
}

/* ==========================================================================
   响应式：< 1024 轨道收为顶部条 + 右侧抽屉
   ========================================================================== */
@media (max-width: 1023px) {
  body { padding-left: 0; }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
    background-image: linear-gradient(180deg, #142E24 0%, #0C1F18 100%);
  }

  .brand-plate {
    flex: 1;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .brand-plate__link {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand-plate__mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-plate__text {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-plate__sub { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding: 9px 12px;
    background-color: transparent;
    border: 1px solid var(--c-line);
    color: var(--c-paper);
    cursor: pointer;
    transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
  }

  .nav-toggle:hover { color: var(--c-amber); border-color: var(--c-amber); }

  .nav-toggle__label {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.2em;
  }

  .nav-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
  }

  .nav-toggle__bar {
    display: block;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

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

  .rail-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 130;
    width: min(84vw, 340px);
    padding: 84px 22px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--c-pine);
    background-image: linear-gradient(160deg, #1D4231 0%, #0C1F18 100%);
    border-left: 1px solid var(--c-line);
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.42);
    transform: translateX(101%);
    transition: transform 0.3s var(--ease);
  }

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

  .rail-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 15px 2px;
    border-bottom: 1px solid rgba(46, 90, 69, 0.6);
  }

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

  .rail-link::before {
    left: -22px;
    top: 0;
    bottom: 0;
    width: 3px;
  }

  .rail-meta {
    margin-top: 24px;
    padding: 20px 0 0;
    align-items: flex-start;
    gap: 8px;
    border-top: 1px solid rgba(46, 90, 69, 0.7);
  }

  .rail-meta__item {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    text-align: left;
  }

  .rail-meta__key { letter-spacing: 0.18em; }

  .rail-meta__cta {
    writing-mode: horizontal-tb;
    width: 100%;
    margin-top: 8px;
    padding: 12px 18px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.16em;
    border-color: var(--c-gold);
    color: var(--c-gold);
  }

  .site-header[data-open="true"] .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    background-color: rgba(6, 15, 12, 0.62);
  }

  .rail-progress {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 2px;
    background-color: rgba(46, 90, 69, 0.5);
  }

  .rail-progress__bar {
    background-image: linear-gradient(90deg, var(--c-gold), var(--c-amber));
    transform: scaleX(var(--scroll-ratio, 0));
    transform-origin: left center;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-tagline { max-width: none; }
}

@media (max-width: 767px) {
  body { font-size: 16px; line-height: 28px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-mega { font-size: clamp(80px, 30vw, 140px); }
}

@media (min-width: 1024px) and (max-height: 880px) {
  .brand-plate { padding: 16px 8px 10px; }
  .brand-plate__mark { width: 36px; height: 36px; font-size: 17px; }
  .brand-plate__link { gap: 9px; }
  .brand-plate__text { font-size: 13px; }
  .rail-link { padding: 8px 4px; }
}

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    transition-delay: 0ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-progress__bar { transition: none; }
  .btn:hover { transform: none; }
  .footer-link:hover { transform: none; }
}
