/* =========================================================
   财神8中心 · 共享样式 /assets/site.css
   框架：左侧鎏金轨道 + 顶部状态横线 + 朱印页脚
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, picture, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B0A09;
  --ink-2: #17130F;
  --cinnabar: #B7301F;
  --cinnabar-dark: #6E1A11;
  --gold: #D8A63C;
  --gold-soft: #F0D79A;
  --jade: #2E6B58;
  --warm-white: #F6EFE3;
  --mist: #C7BBA8;
  --copper: #4B3A28;

  --frame: rgba(216, 166, 60, .28);
  --frame-soft: rgba(216, 166, 60, .14);
  --hair: rgba(199, 187, 168, .20);
  --dim: rgba(199, 187, 168, .68);

  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", Georgia, "Times New Roman", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --rail-w: 88px;
  --topbar-h: 56px;
  --gutter: clamp(20px, 3.4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--warm-white);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 82% -6%, rgba(183, 48, 31, .20), transparent 46%),
    radial-gradient(circle at 6% 104%, rgba(46, 107, 88, .13), transparent 44%),
    linear-gradient(180deg, #0B0A09 0%, #0B0A09 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: var(--topbar-h) 0 0 var(--rail-w);
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: .01em; }

::selection { background: var(--cinnabar); color: var(--warm-white); }

html.is-nav-open { overflow: hidden; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.divider { height: 1px; border: 0; background: var(--frame-soft); }

.sweep { position: relative; color: var(--gold-soft); }
.sweep::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--ease);
}
.sweep:hover::after,
.sweep:focus-visible::after { transform: scaleX(1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 166, 60, .16);
  flex: 0 0 auto;
}

.coord {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
  border: 1px solid var(--frame);
  padding: 1px 6px;
  line-height: 1.6;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--frame);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--gold-soft);
  background: transparent;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover, .btn:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  transform: translateX(2px);
}
.btn--gold {
  background: linear-gradient(120deg, var(--gold), #b98a26);
  color: var(--ink);
  border-color: transparent;
}
.btn--gold:hover, .btn--gold:focus-visible { background: var(--gold-soft); color: var(--ink); }
.btn--cinnabar {
  background: linear-gradient(120deg, var(--cinnabar), var(--cinnabar-dark));
  color: var(--warm-white);
  border-color: rgba(240, 215, 154, .32);
}
.btn--cinnabar:hover, .btn--cinnabar:focus-visible {
  background: linear-gradient(120deg, #cf3a25, var(--cinnabar-dark));
  color: var(--warm-white);
  border-color: var(--gold);
}
.btn--ghost { border-color: var(--hair); color: var(--warm-white); }

/* ---------- 6. Content primitives ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--dim);
}
.breadcrumb a { color: var(--mist); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--copper); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

.section { padding-block: clamp(36px, 5.6vw, 84px); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--frame-soft);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: .02em;
}
.section__note { font-size: 13px; color: var(--dim); }

.panel {
  border: 1px solid var(--frame-soft);
  background: linear-gradient(160deg, rgba(23, 19, 15, .92), rgba(11, 10, 9, .96));
  padding: clamp(18px, 2.4vw, 28px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  border: 1px solid var(--frame-soft);
  color: var(--gold-soft);
}
.tag--jade {
  color: #8FC9B4;
  border-color: rgba(46, 107, 88, .58);
  background: rgba(46, 107, 88, .16);
}
.tag--cinnabar {
  color: #F0B3A5;
  border-color: rgba(183, 48, 31, .58);
  background: rgba(183, 48, 31, .18);
}

/* 图片容器：页面阶段直接放 img，无需写尺寸 */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--frame);
  background: linear-gradient(140deg, var(--ink-2), #0d0b09);
}
.figure img,
.figure video,
.figure picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--land { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--portrait { aspect-ratio: 4 / 5; }
.figure--fill { height: 100%; }
.figure::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  pointer-events: none;
}
.figure__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold-soft);
  background: linear-gradient(0deg, rgba(11, 10, 9, .94), rgba(11, 10, 9, 0));
}

/* ---------- 7. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--rail-w) + 8px);
  z-index: 999;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline-offset: 2px; }

/* ---------- 8. Header frame ---------- */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.site-header > .rail,
.site-header > .topbar,
.site-header > .skip-link { pointer-events: auto; }

/* 左侧竖排鎏金轨道 */
.rail {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, #14100C 0%, #0B0A09 46%, #16110D 100%);
  border-right: 1px solid var(--frame);
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--frame-soft);
}

.rail__seal {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-soft);
  background: linear-gradient(150deg, var(--cinnabar) 0%, var(--cinnabar-dark) 100%);
  border: 1px solid rgba(240, 215, 154, .55);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .5);
  transition: border-color .24s var(--ease), color .24s var(--ease);
}
.rail__brand:hover .rail__seal,
.rail__brand:focus-visible .rail__seal { border-color: var(--gold-soft); color: #fff; }

.rail__wordmark {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--warm-white);
}

.rail__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--copper);
}

/* 轨道内导航（桌面为竖排，移动为整屏） */
.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail__nav::-webkit-scrollbar { width: 0; height: 0; }

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
}

.rail__item { width: 100%; display: flex; justify-content: center; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 2px 4px;
  color: var(--mist);
  transition: color .22s var(--ease);
}

.rail__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--copper);
  transition: color .22s var(--ease);
}

.rail__label {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1;
}

.rail__link:hover,
.rail__link:focus-visible { color: var(--gold-soft); }
.rail__link:hover .rail__idx,
.rail__link:focus-visible .rail__idx { color: var(--gold); }

.rail__link[aria-current="page"] { color: var(--gold); }
.rail__link[aria-current="page"] .rail__idx { color: var(--gold); }
.rail__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--frame-soft);
}

.rail__coord {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--gold);
  border: 1px solid rgba(216, 166, 60, .42);
  padding: 1px 5px;
  line-height: 1.6;
}

.rail__note {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--copper);
}

/* 顶部状态横线 */
.topbar {
  position: absolute;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  background: linear-gradient(90deg, rgba(11, 10, 9, .96), rgba(23, 19, 15, .92));
  border-bottom: 1px solid var(--frame);
}

.topbar__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--dim);
}

.status-dot {
  width: 7px; height: 7px;
  flex: 0 0 auto;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(46, 107, 88, .22);
  animation: framePulse 3.4s var(--ease) infinite;
}

@keyframes framePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

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

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(216, 166, 60, .5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--gold);
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.topbar__cta:hover,
.topbar__cta:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateX(2px);
}

/* 移动菜单按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.nav-toggle__glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform .24s var(--ease), top .24s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 2px; }
.nav-toggle__bar:nth-child(2) { top: 9px; }

/* 滚动进度（JS 注入） */
.scroll-progress {
  position: fixed;
  top: calc(var(--topbar-h) - 2px);
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 96;
  pointer-events: none;
  background: rgba(216, 166, 60, .10);
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold) 72%, var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left center;
}

/* 回到页首 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 97;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  color: var(--gold);
  background: rgba(11, 10, 9, .92);
  border: 1px solid var(--frame);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}
.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover, .to-top:focus-visible {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 132px);
  border-top: 1px solid var(--frame);
  background: linear-gradient(180deg, rgba(23, 19, 15, .96), #0B0A09 58%);
  color: var(--mist);
  font-size: 14px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(183, 48, 31, .22), transparent 66%),
    radial-gradient(ellipse at 84% 6%, rgba(216, 166, 60, .10), transparent 62%);
}

.footer__inner {
  position: relative;
  padding-block: clamp(38px, 5.6vw, 72px) 0;
}

.footer__top {
  display: grid;
  gap: 26px;
  padding-bottom: clamp(24px, 3.4vw, 36px);
  border-bottom: 1px solid var(--frame-soft);
}

.footer__brand { display: flex; align-items: flex-start; gap: 16px; }

.footer__seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-soft);
  background: linear-gradient(150deg, var(--cinnabar) 0%, var(--cinnabar-dark) 100%);
  border: 1px solid rgba(240, 215, 154, .5);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, .5);
}

.footer__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--warm-white);
  line-height: 1.2;
}
.footer__tag { margin-top: 5px; font-size: 13.5px; color: var(--mist); }
.footer__domain {
  margin-top: 7px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(199, 187, 168, .55);
}

.footer__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.6vw, 38px);
  align-self: end;
}
.footer__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid var(--frame-soft);
}
.footer__statnum {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
  color: var(--gold);
  transition: color .22s var(--ease);
}
.footer__stat:hover .footer__statnum { color: var(--gold-soft); }
.footer__statlab { font-size: 11.5px; letter-spacing: .06em; color: var(--dim); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 40px);
  padding-block: clamp(26px, 3.6vw, 40px);
}

.footer__heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--frame-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--gold);
}
.footer__heading::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  flex: 0 0 auto;
}

.footer__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 0;
}

.footer__link {
  position: relative;
  display: inline-block;
  padding: 2px 0;
  color: var(--mist);
  transition: color .2s var(--ease);
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--gold-soft); }
.footer__link:hover::after,
.footer__link:focus-visible::after { transform: scaleX(1); }

.footer__col--contact .footer__item {
  border-bottom: 1px solid rgba(199, 187, 168, .10);
}
.footer__col--contact .footer__item:last-child { border-bottom: 0; }

.footer__key {
  flex: 0 0 58px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(199, 187, 168, .62);
}

.footer__value {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 13.5px;
  word-break: break-all;
  color: var(--warm-white);
}

.copy-btn {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid var(--frame-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  line-height: 1.7;
  color: var(--gold);
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.copy-btn:hover, .copy-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.copy-btn[data-copied] {
  color: #8FC9B4;
  border-color: rgba(46, 107, 88, .7);
  background: rgba(46, 107, 88, .18);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--frame-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(199, 187, 168, .72);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.footer__legal-link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer__legal-link:hover,
.footer__legal-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.footer__copy { color: rgba(199, 187, 168, .6); }

/* ---------- 10. Responsive ---------- */
@media (min-width: 700px) {
  .footer__top { grid-template-columns: 1.15fr .85fr; align-items: end; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1.5fr; }
  .footer__col--contact { grid-column: auto; }
}

@media (max-width: 959px) {
  :root {
    --rail-w: 0px;
    --topbar-h: 88px;
  }

  body { padding: 88px 0 0 0; }

  .skip-link { left: 8px; }

  /* 顶部状态细条 */
  .topbar {
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    padding: 0 14px;
    justify-content: center;
    background: rgba(11, 10, 9, .98);
    border-bottom: 1px solid var(--frame-soft);
    z-index: 4;
  }
  .topbar__status { font-size: 10.5px; letter-spacing: .06em; }
  .topbar__right { display: none; }

  /* 品牌横条 */
  .rail {
    top: 28px;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--frame);
    z-index: 4;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 0;
    border-bottom: 0;
    position: relative;
    z-index: 3;
  }
  .rail__seal { width: 30px; height: 30px; font-size: 16px; }
  .rail__wordmark {
    writing-mode: horizontal-tb;
    font-size: 14px;
    letter-spacing: .14em;
  }
  .rail__sub { display: none; }
  .rail__foot { display: none; }

  .nav-toggle { display: inline-flex; position: relative; z-index: 3; }

  .site-header[data-open] .nav-toggle__bar:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
  .site-header[data-open] .nav-toggle__bar:nth-child(2) { top: 5.5px; transform: rotate(-45deg); }

  /* 整屏目录 */
  .rail__nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: auto;
    padding: 120px var(--gutter) 56px;
    overflow-y: auto;
    background:
      radial-gradient(circle at 84% 10%, rgba(183, 48, 31, .30), transparent 54%),
      linear-gradient(165deg, #17130F 0%, #0B0A09 60%, #1a120c 100%);
    border-right: 0;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .rail__nav::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 88px;
    height: 1px;
    background: var(--frame);
  }

  .site-header[data-open] .rail__nav {
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .rail__list {
    gap: 0;
    align-items: stretch;
    padding: 0;
  }

  .rail__item {
    justify-content: flex-start;
    border-bottom: 1px solid rgba(199, 187, 168, .12);
  }

  .rail__link {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    padding: 14px 0;
  }

  .rail__label {
    writing-mode: horizontal-tb;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    letter-spacing: .06em;
  }

  .rail__idx { font-size: 11px; color: var(--gold); }

  .rail__link[aria-current="page"]::after {
    left: 0;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 22px;
    transform: translateY(-50%);
  }
  .rail__link[aria-current="page"] { padding-left: 14px; }

  .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (max-height: 820px) and (min-width: 960px) {
  .rail__note { display: none; }
  .rail__brand { padding-bottom: 12px; }
  .rail__list { gap: 10px; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .to-top { transform: none; }
  .rail__nav { transition: none; }
  .status-dot { animation: none; opacity: 1; }
}
