/* ==========================================================================
   娱乐天地会馆 · 共享样式表 /assets/site.css
   夜行矿物底色 + 霓虹坐标体系：深墨蓝 / 炭黑 / 岩灰 / 米白 为骨，
   青柠绿 / 电光紫 / 暖橙 为光，苔绿 / 陶土 / 雾蓝 为纸质图层。
   ========================================================================== */

/* ---------- 1. 重置 ---------- */
*,
*::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 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--rock); margin: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 夜行矿物 */
  --ink: #0A1024;
  --ink-2: #12151C;
  --ink-3: #060A15;
  --rock: #3A4048;
  --paper: #F0E9DD;
  --moss: #9CB380;
  --clay: #C96F4A;

  /* 霓虹强调 */
  --lime: #C7FF42;
  --violet: #8B5CF6;
  --amber: #FF9E4A;
  --mist: #7FA7B8;

  /* 结构 */
  --rail-w: 96px;
  --bar-h: 60px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;

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

  /* 阴影 */
  --shadow-sheet: 0 1px 0 rgba(240, 233, 221, .06), 0 22px 44px -26px rgba(0, 0, 0, .95);
}

/* ---------- 3. 中文基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 8% -12%, rgba(139, 92, 246, .20), rgba(139, 92, 246, 0) 62%),
    radial-gradient(900px 520px at 92% 2%, rgba(199, 255, 66, .10), rgba(199, 255, 66, 0) 64%),
    radial-gradient(760px 500px at 50% 104%, rgba(201, 111, 74, .12), rgba(201, 111, 74, 0) 70%),
    linear-gradient(180deg, #0A1024 0%, #070C1A 58%, #060A15 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .015em;
  color: var(--paper);
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.75rem); }
h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.4;
}

p { line-height: 1.78; }
strong { color: var(--paper); font-weight: 700; }
small { font-size: .82em; }
code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .04em;
}
::selection { background: var(--lime); color: var(--ink); }

/* 焦点可见 */
:where(a, button, [tabindex], input, select, textarea, summary, [data-nav-toggle]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--radius);
}
:where(a, button):focus:not(:focus-visible) { outline: none; }

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

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

@media (max-width: 860px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 正文区 ---------- */
.prose {
  font-size: clamp(15.5px, 1.05vw, 17px);
  color: rgba(240, 233, 221, .84);
  max-width: 68ch;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin-top: 2em;
  padding-top: .6em;
  border-top: 1px solid var(--rock);
  color: var(--paper);
}
.prose h3 { margin-top: 1.7em; color: var(--paper); }
.prose ul, .prose ol { padding-left: 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(199, 255, 66, .45);
}
.prose a:hover { border-bottom-color: var(--lime); }
.prose blockquote {
  padding: .2em 0 .2em 1.15em;
  border-left: 2px solid var(--clay);
  color: rgba(240, 233, 221, .7);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .78em 1.45em;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  color: var(--paper);
  background: rgba(18, 21, 28, .92);
  border: 1px solid var(--rock);
  border-radius: var(--radius);
  transition: transform .16s ease, box-shadow .16s ease,
              background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translate(-2px, -2px); }

.btn--primary {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(139, 92, 246, .92);
}
.btn--primary:hover { box-shadow: 6px 6px 0 rgba(139, 92, 246, .92); }

.btn--ghost {
  color: var(--lime);
  background: transparent;
  border-color: rgba(199, 255, 66, .5);
}
.btn--ghost:hover { background: rgba(199, 255, 66, .1); border-color: var(--lime); }

.btn--violet {
  color: #FFFFFF;
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 4px 4px 0 rgba(199, 255, 66, .42);
}
.btn--violet:hover { box-shadow: 6px 6px 0 rgba(199, 255, 66, .42); }

/* ---------- 7. 面包屑 / 标签 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240, 233, 221, .5);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .55em; }
.breadcrumb li + li::before { content: "／"; color: var(--rock); }
.breadcrumb a { transition: color .16s ease; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.coord {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .3em .72em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.5;
  color: var(--moss);
  border: 1px solid rgba(156, 179, 128, .42);
  background: rgba(156, 179, 128, .06);
}

.tag {
  display: inline-block;
  padding: .18em .62em;
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lime);
}
.tag--violet { background: var(--violet); color: #FFFFFF; }
.tag--clay { background: var(--clay); color: #FFFFFF; }

/* ---------- 8. 图片容器基础规则 ---------- */
.figure-frame {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  border: 1px solid var(--rock);
  background:
    linear-gradient(140deg, rgba(139, 92, 246, .26) 0%, rgba(10, 16, 36, .92) 54%, rgba(199, 255, 66, .14) 100%);
  isolation: isolate;
}
.figure-frame > img,
.figure-frame > svg,
.figure-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(240, 233, 221, .05) 0 1px, transparent 1px 4px);
  pointer-events: none;
  z-index: 2;
}
.figure-frame--wide { --ratio: 21 / 9; }
.figure-frame--tall { --ratio: 4 / 5; }

/* ---------- 9. 纸张叠层 ---------- */
.sheet {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(18, 21, 28, .94) 0%, rgba(10, 16, 36, .94) 100%);
  border: 1px solid var(--rock);
  box-shadow: var(--shadow-sheet);
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(8px, 8px);
  border: 1px solid rgba(201, 111, 74, .38);
  pointer-events: none;
}
.sheet--paper { background: var(--paper); color: var(--ink); border-color: rgba(58, 64, 72, .5); }
.sheet--paper::before { border-color: rgba(58, 64, 72, .35); }

/* ==========================================================================
   10. 头部 / 侧边轨道
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 80;
}

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px 10px 16px 12px;
  background:
    linear-gradient(180deg, rgba(10, 16, 36, .99) 0%, rgba(18, 21, 28, .99) 56%, rgba(6, 10, 21, 1) 100%);
  border-right: 1px solid var(--rock);
  box-shadow: 8px 0 28px -22px #000000;
}

/* 印刷刻度：轨道左缘 */
.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background-image: repeating-linear-gradient(180deg, rgba(58, 64, 72, .95) 0 1px, transparent 1px 16px);
  pointer-events: none;
  z-index: 3;
}

/* 顶部霓虹扫描光 */
.rail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(199, 255, 66, .07), rgba(199, 255, 66, 0));
  pointer-events: none;
  z-index: 1;
}

/* --- 品牌块 --- */
.rail__brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 2px 16px;
  border-bottom: 1px solid var(--rock);
  text-align: center;
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 3px 3px 0 rgba(201, 111, 74, .9);
  transition: box-shadow .18s ease, transform .18s ease;
}
.rail__brand:hover .rail__mark,
.rail__brand:focus-visible .rail__mark {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--violet);
}

.rail__name {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: .08em;
  color: var(--paper);
  width: 100%;
}

.rail__coord {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  line-height: 1.45;
  color: var(--mist);
}

/* --- 导航 --- */
.rail__nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 64, 72, .9) transparent;
}
.rail__nav::-webkit-scrollbar { width: 3px; }
.rail__nav::-webkit-scrollbar-thumb { background: rgba(58, 64, 72, .9); }

.rail__list { display: flex; flex-direction: column; gap: 3px; }

.rail__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 6px 8px 9px;
  border-left: 2px solid transparent;
  color: rgba(240, 233, 221, .78);
  transition: color .18s ease, background-color .18s ease, border-left-color .18s ease;
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--mist);
  transition: color .18s ease;
}
.rail__label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.3;
}
.rail__link:hover {
  color: var(--paper);
  border-left-color: var(--lime);
  background: rgba(199, 255, 66, .08);
}
.rail__link:hover .rail__idx { color: var(--lime); }
.rail__link[aria-current="page"] {
  color: var(--ink);
  background: var(--lime);
  border-left-color: var(--violet);
}
.rail__link[aria-current="page"] .rail__idx { color: rgba(10, 16, 36, .62); }

.rail__cta {
  display: block;
  margin-top: 10px;
  padding: 9px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  color: var(--ink);
  background: linear-gradient(180deg, var(--lime) 0%, #B8F02F 100%);
  border: 1px solid rgba(10, 16, 36, .4);
  box-shadow: 2px 2px 0 var(--violet);
  transition: transform .16s ease, box-shadow .16s ease;
}
.rail__cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--violet);
}

/* --- 轨道元信息 --- */
.rail__meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--rock);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  line-height: 1.5;
  color: var(--mist);
  text-align: center;
}

/* --- 滚动进度尺 --- */
.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: rgba(58, 64, 72, .6);
  pointer-events: none;
  z-index: 4;
}
.rail__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(var(--p, 0));
  background: linear-gradient(180deg, var(--lime) 0%, var(--lime) 52%, var(--violet) 100%);
}

/* --- 移动端抽屉按钮（桌面端隐藏） --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rock);
  background: rgba(18, 21, 28, .9);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.4;
  transition: border-color .16s ease, color .16s ease;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--lime);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

.nav-toggle__text { white-space: nowrap; }

/* --- 跳转链接 --- */
.skip-link {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 300;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.4;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--violet);
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ==========================================================================
   11. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 88px);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(18, 21, 28, .96) 0%, rgba(6, 10, 21, 1) 100%);
  border-top: 1px solid var(--rock);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: radial-gradient(620px 220px at 18% 0%, rgba(139, 92, 246, .18), rgba(139, 92, 246, 0) 72%);
  pointer-events: none;
}

/* 刻度尺条 */
.footer__ruler {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid rgba(58, 64, 72, .8);
  background-image: repeating-linear-gradient(90deg, rgba(58, 64, 72, .55) 0 1px, transparent 1px 24px);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: auto 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--mist);
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1.05fr);
  gap: clamp(22px, 4vw, 56px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter);
}

/* 品牌列 */
.footer__brand { min-width: 0; }

.footer__wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.25;
  color: var(--paper);
}
.footer__wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--violet) 68%, rgba(139, 92, 246, 0) 100%);
}

.footer__note {
  margin-top: 22px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 233, 221, .7);
}

.footer__stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 18px;
}
.footer__stamp span {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1.5;
  color: var(--moss);
  border: 1px solid rgba(156, 179, 128, .42);
  background: rgba(156, 179, 128, .06);
}

/* 索引列 */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  min-width: 0;
}

.footer__col { min-width: 0; }

.footer__col-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(58, 64, 72, .85);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.5;
  color: var(--paper);
}
.footer__col-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--lime);
}

.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a {
  display: inline-block;
  width: fit-content;
  padding-bottom: 2px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(240, 233, 221, .76);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-bottom-color .16s ease;
}
.footer__links a:hover {
  color: var(--paper);
  border-bottom-color: var(--lime);
}

/* 客服卡 */
.footer__contact {
  position: relative;
  min-width: 0;
  padding: 18px 18px 20px;
  background: rgba(18, 21, 28, .78);
  border: 1px solid rgba(58, 64, 72, .95);
}
.footer__contact::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(7px, 7px);
  border: 1px solid rgba(201, 111, 74, .45);
  pointer-events: none;
}

.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.contact-list__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--mist);
}
.contact-list__val {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}
.contact-list__val--mail { color: var(--lime); letter-spacing: .02em; }

.footer__service {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(58, 64, 72, .95);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(240, 233, 221, .55);
}

/* 底栏 */
.footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter) 30px;
  border-top: 1px solid rgba(58, 64, 72, .85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.7;
  color: rgba(240, 233, 221, .55);
}
.footer__legal { letter-spacing: .1em; }
.footer__icp {
  padding-left: 12px;
  border-left: 1px solid rgba(58, 64, 72, .9);
  color: rgba(240, 233, 221, .45);
}
.footer__top {
  margin-left: auto;
  color: var(--lime);
  border-bottom: 1px solid rgba(199, 255, 66, .35);
  transition: border-bottom-color .16s ease, color .16s ease;
}
.footer__top:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ==========================================================================
   12. 响应式
   ========================================================================== */

/* 桌面端：为固定轨道让出空间 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* 平板 / 手机 */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: var(--bar-h);
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--rock);
    background: rgba(10, 16, 36, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 32px -24px #000000;
  }

  .rail::before { display: none; }
  .rail::after { height: 100%; background: linear-gradient(180deg, rgba(199, 255, 66, .05), rgba(199, 255, 66, 0)); }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }
  .rail__mark { width: 28px; height: 28px; font-size: 15px; box-shadow: 2px 2px 0 var(--clay); }
  .rail__name { width: auto; font-size: 14px; line-height: 1.4; white-space: nowrap; }
  .rail__coord { display: none; }

  .rail__meta { display: none; }

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

  .rail__nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    flex: none;
    gap: 4px;
    padding: 16px 14px 26px;
    background: linear-gradient(180deg, rgba(10, 16, 36, .99) 0%, rgba(6, 10, 21, .99) 100%);
    border-right: 1px solid var(--rock);
    box-shadow: 30px 0 70px -42px #000000, inset -1px 0 0 rgba(199, 255, 66, .14);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22, .85, .25, 1), visibility 0s linear .3s;
    overflow-y: auto;
    z-index: 5;
  }
  .rail__nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s cubic-bezier(.22, .85, .25, 1), visibility 0s;
  }

  .rail__list { gap: 0; }
  .rail__list li + li { border-top: 1px solid rgba(58, 64, 72, .45); }

  .rail__link {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 13px 12px 13px 14px;
    border-left-width: 3px;
  }
  .rail__idx { font-size: 11px; }
  .rail__label { font-size: 15px; }

  .rail__cta {
    margin-top: 18px;
    padding: 12px 8px;
    font-size: 14px;
    box-shadow: 3px 3px 0 var(--violet);
  }

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

  .rail__progress {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }
  .rail__progress span {
    transform-origin: left center;
    transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--lime) 0%, var(--violet) 100%);
  }
}

/* 页脚断点 */
@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__note { max-width: 46ch; }
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__ruler { font-size: 9px; letter-spacing: .12em; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__icp { padding-left: 0; border-left: 0; }
  .footer__top { margin-left: 0; }
}

@media (max-width: 420px) {
  .footer__nav { grid-template-columns: minmax(0, 1fr); }
  .contact-list__item { grid-template-columns: 36px minmax(0, 1fr); }
}

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

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

  .btn:hover,
  .rail__cta:hover,
  .rail__brand:hover .rail__mark { transform: none; }

  .rail__nav { transition: none; }
}
