/* =========================================================
   大神娱乐会馆 · 共享外壳样式 /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, ul, ol, li, figure, figcaption,
blockquote, dl, dt, dd, address { margin: 0; }

ul, ol { 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, video { display: block; max-width: 100%; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0A1322;
  --panel: #101E33;
  --panel-deep: #0C1828;
  --line: #1E3A55;
  --cyan: #33E1CB;
  --violet: #8A6BFF;
  --violet-soft: #B9A8FF;
  --gold: #F0B45E;
  --gold-bright: #F7C274;
  --mist: #E8EFF7;
  --muted: #9FB0C6;
  --green: #4FD08C;
  --amber: #E4785F;

  /* 尺度 */
  --rail-w: 0px;
  --header-h: 64px;
  --gutter: clamp(18px, 4vw, 44px);
  --r-sm: 8px;
  --r-lg: 28px;
  --wrap-max: 1240px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 字体（全部本地字体栈，无远程请求） */
  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "Roboto Mono", "DejaVu Sans Mono",
    "Courier New", monospace;
}

/* ---------- 3. 基础排版 ---------- */
html { background: var(--ink); }

body {
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 620px at 84% -6%, rgba(138, 107, 255, 0.17), transparent 62%),
    radial-gradient(760px 540px at 4% 2%, rgba(51, 225, 203, 0.11), transparent 60%),
    radial-gradient(680px 460px at 52% 104%, rgba(240, 180, 94, 0.09), transparent 66%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* 颗粒质感：细点双层网格，无外部资源 */
body::before {
  content: "";
  position: fixed;
  inset: -8px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(rgba(232, 239, 247, 0.06) 0.5px, transparent 0.7px),
    radial-gradient(rgba(138, 107, 255, 0.07) 0.5px, transparent 0.7px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  animation: grain-drift 40s linear infinite;
}

@keyframes grain-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(2px, -3px, 0); }
}

main {
  display: block;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

p { max-width: 46em; }

[hidden] { display: none !important; }

/* 锚点定位避让固定头 */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

::selection {
  background: rgba(51, 225, 203, 0.28);
  color: #ffffff;
}

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

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

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--gold);
  color: #1A1004;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.18s var(--ease);
}

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

/* ---------- 6. 头部画框 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 100;
  background: rgba(10, 19, 34, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: height 0.24s var(--ease);
}

/* 左侧竖轨 */
.rail--left {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 88px 0 26px;
  background: linear-gradient(180deg, rgba(16, 30, 51, 0.92), rgba(7, 14, 25, 0.98));
  border-right: 1px solid var(--line);
}

.rail__mark { display: grid; justify-items: center; gap: 12px; }

.rail__line {
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, var(--cyan), transparent);
}

.rail__text {
  writing-mode: vertical-rl;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.rail__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(51, 225, 203, 0.55);
  border-radius: 6px 6px 6px 18px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 12px rgba(51, 225, 203, 0.16);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover .brand__mark {
  border-color: var(--gold);
  box-shadow: inset 0 0 14px rgba(240, 180, 94, 0.28), 0 0 14px rgba(240, 180, 94, 0.25);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--mist);
  white-space: nowrap;
}

.brand__sub {
  display: block;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 16px);
}

.nav-list a {
  position: relative;
  display: block;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--mist);
  border-color: rgba(51, 225, 203, 0.45);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(51, 225, 203, 0.35), inset 0 0 10px rgba(51, 225, 203, 0.12);
  text-shadow: 0 0 10px rgba(51, 225, 203, 0.5);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -12px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.nav-foot { display: none; }

/* 顶部工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.rail-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.rail-search::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 4px 4px 0 -3px currentColor;
  flex: 0 0 auto;
}

.rail-search:hover {
  color: var(--cyan);
  border-color: rgba(51, 225, 203, 0.6);
  background: rgba(51, 225, 203, 0.08);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }

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

.nav-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(51, 225, 203, 0.3);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* 进度条 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(30, 58, 85, 0.65);
}

.header-progress [data-progress-bar] {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(51, 225, 203, 0.7);
  transition: width 0.1s linear;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(16, 30, 51, 0.94);
  color: var(--cyan);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s var(--ease),
    border-color 0.2s ease, color 0.2s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.to-top__text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #1A1004;
  box-shadow: 0 0 0 1px rgba(240, 180, 94, 0.45), 0 10px 26px -14px rgba(240, 180, 94, 0.95);
}

.btn--gold:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 22px -4px rgba(240, 180, 94, 0.75);
}

.btn--cyan {
  background: rgba(51, 225, 203, 0.12);
  color: var(--cyan);
  border-color: rgba(51, 225, 203, 0.5);
}

.btn--cyan:hover {
  background: rgba(51, 225, 203, 0.2);
  border-color: var(--cyan);
}

.btn--ghost {
  background: transparent;
  color: var(--mist);
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: rgba(51, 225, 203, 0.6);
}

.btn--sm { height: 32px; padding: 0 15px; font-size: 12.5px; }

.btn:active { transform: translateY(1px); }

/* ---------- 8. 图例胶囊 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 30, 51, 0.7);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.chip--cyan {
  color: var(--cyan);
  border-color: rgba(51, 225, 203, 0.5);
  background: rgba(51, 225, 203, 0.1);
}

.chip--violet {
  color: var(--violet-soft);
  border-color: rgba(138, 107, 255, 0.5);
  background: rgba(138, 107, 255, 0.12);
}

.chip--gold {
  color: var(--gold);
  border-color: rgba(240, 180, 94, 0.5);
  background: rgba(240, 180, 94, 0.1);
}

.chip--green {
  color: var(--green);
  border-color: rgba(79, 208, 140, 0.5);
  background: rgba(79, 208, 140, 0.1);
}

.chip--amber {
  color: var(--amber);
  border-color: rgba(228, 120, 95, 0.5);
  background: rgba(228, 120, 95, 0.12);
}

/* ---------- 9. 文本层级 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.display--sm { font-size: clamp(1.7rem, 3vw, 2.6rem); }

.lede {
  max-width: 46ch;
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.85;
  color: var(--muted);
}

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

/* ---------- 10. 堆叠面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm) var(--r-sm) var(--r-sm) var(--r-lg);
  background:
    linear-gradient(158deg, rgba(16, 30, 51, 0.97), rgba(12, 24, 40, 0.97));
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.24s var(--ease);
}

.panel--alt { border-radius: var(--r-lg) var(--r-sm) var(--r-sm) var(--r-sm); }

.panel:hover {
  border-color: rgba(51, 225, 203, 0.45);
  box-shadow: 0 0 30px -18px rgba(51, 225, 203, 0.8);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.panel__index {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--violet-soft);
}

/* ---------- 11. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.crumbs li { display: flex; align-items: center; gap: 8px; }

.crumbs li + li::before {
  content: "/";
  color: var(--line);
}

.crumbs a:hover { color: var(--cyan); }

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

/* ---------- 12. 坐标注释 ---------- */
.coord {
  writing-mode: vertical-rl;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--muted);
}

.coord--rot {
  writing-mode: horizontal-tb;
  transform: rotate(-90deg);
  transform-origin: left top;
  white-space: nowrap;
}

/* ---------- 13. 章节索引 ---------- */
.chapter-index {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.chapter-index a {
  display: block;
  margin-left: -1px;
  padding: 9px 4px 9px 14px;
  border-left: 2px solid transparent;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.chapter-index a:hover { color: var(--mist); }

.chapter-index a[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(51, 225, 203, 0.14), transparent 85%);
}

/* ---------- 14. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-sm) var(--r-sm) var(--r-sm) var(--r-lg);
  background-color: var(--panel-deep);
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(138, 107, 255, 0.26), transparent 62%),
    radial-gradient(120% 95% at 92% 100%, rgba(51, 225, 203, 0.18), transparent 62%),
    linear-gradient(120deg, rgba(10, 19, 34, 0.9), rgba(16, 30, 51, 0.9));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 14, 25, 0.78));
}

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

.media__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ---------- 15. 入场显现 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

html[data-js="on"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 9vw, 104px);
  padding-top: 1px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 23, 40, 0.98), rgba(7, 14, 25, 1) 72%);
}

.footer-orbit {
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: min(920px, 130%);
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(138, 107, 255, 0.25), transparent 72%);
}

.footer-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 40px);
  padding-top: clamp(36px, 6vw, 62px);
  padding-bottom: clamp(26px, 4vw, 40px);
}

.footer-brand { display: grid; gap: 14px; align-content: start; }

.brand--footer .brand__mark {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.brand--footer .brand__name { font-size: 17px; }

.footer-note {
  max-width: 30ch;
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-note--sm { font-size: 11.5px; line-height: 1.75; color: #7E90A8; }

.footer-coord {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--violet-soft);
  opacity: 0.85;
}

.footer-col { display: grid; gap: 12px; align-content: start; }

.footer-title {
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--cyan);
}

.footer-list { display: grid; gap: 9px; }

.footer-list a {
  display: inline-block;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--mist);
  transform: translateX(3px);
}

.footer-list a[aria-current="page"] {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(51, 225, 203, 0.45);
}

.footer-contact__item {
  display: grid;
  gap: 2px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(30, 58, 85, 0.55);
}

.footer-contact__label {
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #7E90A8;
}

.footer-contact__value {
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--mist);
  word-break: break-word;
}

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #7E90A8;
}

.footer-legal,
.footer-base__meta { max-width: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(12, 24, 40, 0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.9);
    transition: max-height 0.3s var(--ease), opacity 0.2s ease;
  }

  .site-nav[data-open="true"] {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 6px;
  }

  .nav-list a {
    padding: 14px 6px;
    font-size: 15.5px;
    border: 0;
    border-bottom: 1px solid rgba(30, 58, 85, 0.6);
    border-radius: 0;
  }

  .nav-list a[aria-current="page"] {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
    box-shadow: none;
    background: rgba(51, 225, 203, 0.07);
  }

  .nav-list a[aria-current="page"]::after { display: none; }

  .nav-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px var(--gutter) 24px;
    border-top: 1px solid rgba(30, 58, 85, 0.7);
  }

  .header-tools .rail-search { display: none; }
}

@media (min-width: 640px) {
  .footer-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  :root {
    --rail-w: 56px;
    --header-h: 72px;
  }

  .rail--left { display: flex; }

  .site-nav[data-open] { max-height: none; opacity: 1; }

  .brand__name { font-size: 16px; }

  .site-header[data-stuck] .header-frame { height: 58px; }
  .site-header[data-stuck] .brand__sub { opacity: 0.55; }

  .footer-wrap {
    grid-template-columns: 1.5fr 0.85fr 0.85fr 0.85fr 1.15fr;
  }

  .footer-brand { grid-column: auto; }
}

@media (min-width: 1400px) {
  :root { --gutter: 56px; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand__mark { width: 30px; height: 30px; font-size: 15px; }
  .brand__name { font-size: 14.5px; }
  .header-tools .btn--sm { padding: 0 12px; font-size: 12px; }
}

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

  body::before { animation: none; opacity: 0.4; }

  html[data-js="on"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .to-top { transform: none; }
  .footer-list a:hover { transform: none; }
}
