/* ==========================================================================
   博业娱乐会馆 · /assets/site.css
   共享外壳：reset、变量、中文排版、品牌轨道头部、页脚、通用组件
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol, address {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

a { color: inherit; text-decoration: none; }

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

address { font-style: normal; }

main { display: block; }

/* ---------- 变量 ---------- */
:root {
  --ink: #0A1428;
  --ink-card: #11203D;
  --ink-line: #1E3157;
  --ink-deep: #050B16;
  --gold: #C9A227;
  --gold-hi: #F2D889;
  --cyan: #2FE3C8;
  --coral: #FF7A59;
  --text: #E9EEF7;
  --text-dim: #93A2BF;

  --rail-w: 232px;
  --body-max: 1180px;
  --prose-w: 640px;
  --dock-w: 56px;

  --font-head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", "Menlo", "Consolas", monospace;

  --r-cut: 18px 4px 18px 4px;
  --shadow-card: 0 18px 44px rgba(2, 7, 18, 0.55);
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* ---------- 中文排版基础 ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(201, 162, 39, 0.13), transparent 62%),
    radial-gradient(880px 540px at 4% 22%, rgba(47, 227, 200, 0.07), transparent 68%),
    radial-gradient(900px 700px at 70% 108%, rgba(255, 122, 89, 0.06), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: var(--text);
}

h1 { font-size: clamp(34px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 3.1vw, 44px); }
h3 { font-size: clamp(21px, 2.2vw, 34px); }
h4 { font-size: clamp(18px, 1.6vw, 26px); }

p { max-width: 68ch; }

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

::selection { background: rgba(201, 162, 39, 0.35); color: #fff; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 12px 20px;
  background: var(--gold);
  color: #0A1428;
  font-weight: 700;
  border-radius: 4px;
  transition: transform 180ms var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 骨架 ---------- */
.site-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
}

.site-body {
  min-width: 0;
  padding-right: calc(var(--dock-w) + 18px);
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--body-max);
  margin-inline: auto;
  padding: 72px 40px 96px;
}
.main-content:focus-visible { outline-offset: -6px; }

/* ---------- 品牌轨道 ---------- */
.brand-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 30px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.42) 0%, rgba(10, 20, 40, 0.86) 46%, rgba(5, 11, 22, 0.94) 100%);
  border-right: 1px solid transparent;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), backdrop-filter 240ms var(--ease);
  z-index: 40;
}
.brand-rail::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
  opacity: 0.55;
}

.brand-rail[data-scrolled="true"] {
  background: var(--ink);
  border-right: 1px solid var(--ink-line);
  backdrop-filter: blur(6px);
  box-shadow: 12px 0 34px rgba(2, 6, 16, 0.5);
}

.rail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rail-brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 58%, #7d6415);
  clip-path: polygon(28% 0, 100% 0, 100% 72%, 72% 100%, 0 100%, 0 28%);
  box-shadow: 0 0 0 1px rgba(242, 216, 137, 0.35) inset;
}

.rail-brand-text { display: flex; flex-direction: column; min-width: 0; }

.rail-brand-cn {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--text);
}

.rail-brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  line-height: 1.6;
}

.version-chip {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
  padding: 3px 7px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 2px;
  background: rgba(201, 162, 39, 0.1);
  line-height: 1.4;
}

/* 移动导航按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  width: 100%;
  border: 1px solid var(--ink-line);
  background: var(--ink-card);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: 4px;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--gold);
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle-text { font-weight: 700; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 侧边导航 */
.rail-nav { flex: 1 1 auto; }

.rail-nav-list { display: flex; flex-direction: column; gap: 2px; }

.rail-nav-link {
  position: relative;
  display: block;
  padding: 11px 12px 11px 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.rail-nav-link::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  translate: 0 -50%;
  background: var(--ink-line);
  transform: rotate(45deg);
  transition: background-color 180ms var(--ease);
}
.rail-nav-link:hover,
.rail-nav-link:focus-visible {
  color: var(--text);
  background: rgba(47, 227, 200, 0.07);
}
.rail-nav-link:hover::before { background: var(--cyan); }

.rail-nav-link[aria-current="page"] {
  color: var(--gold-hi);
  font-weight: 700;
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.16), transparent 85%);
}
.rail-nav-link[aria-current="page"]::before { background: var(--gold-hi); }

/* 轨道底部 */
.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 49, 87, 0.8);
}

.rail-note {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  line-height: 1.6;
}

.rail-cta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 62%, #a8841b);
  color: #08111f;
  border-radius: var(--r-cut);
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.26);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.rail-cta:hover,
.rail-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(201, 162, 39, 0.36);
}
.rail-cta-main {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.rail-cta-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.78;
  line-height: 1.4;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  line-height: 1.5;
}
.rail-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 227, 200, 0.16);
  flex: 0 0 auto;
}

/* ---------- 顶部状态条 ---------- */
.top-strip {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 0;
  overflow: hidden;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: height 240ms var(--ease), border-color 240ms var(--ease);
}
.top-strip[data-active="true"] {
  height: 44px;
  border-bottom-color: var(--ink-line);
}
.top-strip-inner {
  height: 44px;
  max-width: var(--body-max);
  margin-inline: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.top-strip-bar {
  position: relative;
  flex: 0 0 74px;
  height: 2px;
  background: var(--ink-line);
  overflow: hidden;
}
.js-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transition: width 120ms linear;
}
.top-strip-current {
  color: var(--gold-hi);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-strip-ver { margin-left: auto; color: var(--text-dim); font-size: 11px; }

/* ---------- 右缘下载锚点 ---------- */
.edge-dock {
  position: fixed;
  top: 50%;
  right: 0;
  translate: 0 -50%;
  z-index: 45;
  width: var(--dock-w);
}
.edge-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: var(--dock-w);
  padding: 18px 0 16px;
  background: linear-gradient(180deg, var(--ink-card), var(--ink-deep));
  border: 1px solid var(--ink-line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  color: var(--text);
  transition: width 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.edge-dock-btn:hover,
.edge-dock-btn:focus-visible {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.9), #8e7016);
  color: #08111f;
  border-color: var(--gold-hi);
}
.edge-dock-glyph {
  font-family: var(--font-mono);
  font-size: 16px;
  writing-mode: horizontal-tb;
  color: var(--gold);
}
.edge-dock-btn:hover .edge-dock-glyph { color: #08111f; }
.edge-dock-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.edge-dock-ver {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  writing-mode: horizontal-tb;
}
.edge-dock-btn:hover .edge-dock-ver { color: rgba(8, 17, 31, 0.72); }

/* ---------- 移动端底部条 ---------- */
.mobile-dock { display: none; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  border-radius: var(--r-cut);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, #a8841b);
  color: #08111f;
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.22);
}
.btn-gold:hover,
.btn-gold:focus-visible { box-shadow: 0 16px 34px rgba(201, 162, 39, 0.34); }

.btn-ghost {
  background: rgba(17, 32, 61, 0.66);
  color: var(--text);
  border-color: var(--ink-line);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.btn-cyan {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(47, 227, 200, 0.5);
}
.btn-cyan:hover,
.btn-cyan:focus-visible {
  background: rgba(47, 227, 200, 0.12);
  color: var(--cyan);
}

/* ---------- 展签式章节协议 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 32px;
}
.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-right: 12px;
  border-right: 1px solid var(--ink-line);
  line-height: 1.2;
}
.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cyan);
  white-space: nowrap;
}
.section-title {
  flex: 1 1 100%;
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: 0.05em;
}

/* ---------- 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(158deg, var(--ink-card) 0%, rgba(9, 18, 36, 0.96) 100%);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-cut);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 100% 0, rgba(201, 162, 39, 0.16), transparent 70%);
  pointer-events: none;
}
.panel--offset { margin-top: 32px; }
.panel--offset-sm { margin-top: 20px; }
.panel > :last-child { margin-bottom: 0; }

/* ---------- 斜线分隔 ---------- */
.slant-rule {
  position: relative;
  height: 2px;
  margin: 48px 0;
  background: linear-gradient(90deg, transparent, var(--ink-line) 12%, var(--ink-line) 88%, transparent);
  transform: skewY(-1.4deg);
  transform-origin: left center;
}
.slant-rule--glow::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.85), transparent);
  animation: slant-drift 20s linear infinite;
}
@keyframes slant-drift {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(320%); }
}

/* ---------- 文本容器 ---------- */
.prose {
  max-width: var(--prose-w);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.prose p + p { margin-top: 1.1em; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.6em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose ul li { list-style: none; position: relative; padding-left: 16px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(47, 227, 200, 0.35); }
.prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- 等宽数字块 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.meta-block {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 14px 18px;
  background: rgba(5, 11, 22, 0.62);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  line-height: 1.7;
}
.meta-block strong { color: var(--gold-hi); font-weight: 700; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-hi);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: 2px;
  line-height: 1.6;
}
.tag--cyan { color: var(--cyan); background: rgba(47, 227, 200, 0.1); border-color: rgba(47, 227, 200, 0.42); }
.tag--coral { color: var(--coral); background: rgba(255, 122, 89, 0.1); border-color: rgba(255, 122, 89, 0.42); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-stagger > *:nth-child(even) { transform: translateY(28px); }
.grid-stagger > *:nth-child(3n) { transform: translateY(14px); }

/* ---------- 图片容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(47, 227, 200, 0.16), transparent 60%),
    radial-gradient(100% 80% at 12% 96%, rgba(255, 122, 89, 0.14), transparent 62%),
    linear-gradient(155deg, #16294a 0%, #0b1729 58%, #060d18 100%);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-cut);
  isolation: isolate;
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > .media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(5, 11, 22, 0.72) 100%),
    radial-gradient(120% 100% at 50% 40%, transparent 46%, rgba(5, 11, 22, 0.6) 100%);
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 面包屑 ---------- */
.breadcrumb { margin-bottom: 34px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before {
  content: "/";
  color: var(--ink-line);
  font-family: var(--font-mono);
}
.breadcrumb-list a { color: var(--text-dim); }
.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible { color: var(--cyan); }
.breadcrumb-list [aria-current="page"] { color: var(--gold-hi); }

/* ---------- 显现协议 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.reveal[data-inview="true"] { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }

/* ---------- 页脚 ---------- */
.site-footer {
  background:
    radial-gradient(900px 420px at 82% 0%, rgba(201, 162, 39, 0.1), transparent 66%),
    linear-gradient(180deg, var(--ink-deep) 0%, #03070f 100%);
  border-top: 1px solid var(--ink-line);
  color: var(--text);
  margin-top: 0;
}
.footer-inner {
  max-width: var(--body-max);
  margin-inline: auto;
  padding: 52px 40px 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(30, 49, 87, 0.72);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 58%, #7d6415);
  clip-path: polygon(28% 0, 100% 0, 100% 72%, 72% 100%, 0 100%, 0 28%);
}
.footer-brand-cn {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.footer-brand-sub {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  line-height: 1.6;
}
.footer-cta { flex: 0 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 28px 32px;
  padding: 34px 0 30px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-hi);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(30, 49, 87, 0.8);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: color 160ms var(--ease), padding-left 160ms var(--ease);
  display: inline-block;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  padding-left: 5px;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.footer-contact a { color: var(--cyan); }
.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--gold-hi); }
.footer-key {
  display: inline-block;
  min-width: 40px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.footer-note {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(147, 162, 191, 0.82);
  padding-top: 6px;
  border-top: 1px dashed rgba(30, 49, 87, 0.9);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(30, 49, 87, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.footer-legal-meta .mono { color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .main-content { padding: 56px 30px 80px; }
  .top-strip-inner { padding: 0 30px; }
  .footer-inner { padding: 44px 30px 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --rail-w: 210px; }
  .site-body { padding-right: calc(var(--dock-w) + 10px); }
  .edge-dock { width: 48px; }
  .edge-dock-btn { width: 48px; padding: 14px 0 12px; }
  .main-content { padding: 48px 26px 72px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 平板及以下：轨道转为顶部栏 + 可折叠导航 */
@media (max-width: 900px) {
  .site-shell { grid-template-columns: minmax(0, 1fr); }

  .brand-rail {
    position: sticky;
    top: 0;
    height: auto;
    max-height: none;
    padding: 14px 20px;
    gap: 0;
    overflow: visible;
    background: rgba(8, 16, 32, 0.96);
    border-right: 0;
    border-bottom: 1px solid var(--ink-line);
    backdrop-filter: blur(10px);
  }
  .brand-rail::after { display: none; }
  .brand-rail[data-scrolled="true"] { border-right: 0; box-shadow: 0 10px 26px rgba(2, 6, 16, 0.55); }

  .rail-top { align-items: center; }
  .rail-brand-cn { font-size: 15px; }

  .nav-toggle {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
  }

  .rail-nav {
    flex: 0 0 auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms var(--ease);
  }
  .rail-nav[data-open="true"] {
    max-height: 460px;
    overflow-y: auto;
    padding-top: 10px;
  }
  .rail-nav-list { gap: 0; }
  .rail-nav-link {
    padding: 13px 14px;
    border-left: 0;
    border-bottom: 1px solid rgba(30, 49, 87, 0.6);
    font-size: 15px;
  }
  .rail-nav-link::before { left: 0; }
  .rail-nav-link[aria-current="page"] {
    border-left: 0;
    border-bottom-color: rgba(201, 162, 39, 0.5);
  }

  .rail-foot { display: none; }

  .site-body { padding-right: 0; padding-bottom: 62px; }
  .edge-dock { display: none; }
  .top-strip { display: none; }
  .main-content { padding: 34px 22px 64px; }

  .mobile-dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
  }
  .mobile-dock-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(100deg, var(--gold-hi), var(--gold) 66%, #a8841b);
    color: #08111f;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.08em;
  }
  .mobile-dock-glyph { font-family: var(--font-mono); font-size: 15px; }

  .footer-inner { padding: 40px 22px 96px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid-stagger > * { transform: none !important; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(30px, 8vw, 40px); }
  h2 { font-size: clamp(23px, 6.4vw, 32px); }

  .main-content { padding: 26px 18px 56px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }

  .slant-rule { margin: 34px 0; }
  .panel--offset { margin-top: 22px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grid-stagger > * { transform: none; }
  .slant-rule--glow::after { display: none; }
}
