/* =========================================================
   葡京娱乐中心 · 共享样式表 /assets/site.css
   近单色体系：深墨绿底 × 暖金线 × 珊瑚橙点缀
   纵向叙事长卷 · 框架式左侧抽屉导航 · 印刷叠层材质
   ========================================================= */

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; }

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

hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------- 1. 变量 ---------- */
:root {
  --bg:        #0B211C;
  --bg-2:      #10312A;
  --bg-3:      #17453A;
  --line:      #2A5F50;
  --teal:      #3C8C72;
  --gold:      #C9A227;
  --gold-hi:   #E8C86A;
  --ink:       #F2E7C9;
  --muted:     #8FB3A6;
  --coral:     #FF7A59;
  --deep:      #05130F;
  --paper:     #E4DCC6;

  --line-soft: rgba(42, 95, 80, .55);
  --line-faint: rgba(42, 95, 80, .28);
  --gold-soft: rgba(201, 162, 39, .38);

  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --shell: 1240px;
  --gut: clamp(18px, 4vw, 44px);
  --gap: clamp(16px, 2.4vw, 28px);
  --r: 4px;
  --r-lg: 6px;
}

/* ---------- 2. 基础排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  background:
    radial-gradient(1180px 640px at 88% -10%, rgba(60, 140, 114, .20), transparent 62%),
    radial-gradient(900px 520px at -8% 14%, rgba(201, 162, 39, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3.2vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 23px); }
h4 { font-size: 17px; }

p { max-width: 38em; margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

a:hover { color: #FFFFFF; border-bottom-color: currentColor; }

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

::selection { background: rgba(201, 162, 39, .34); color: #FFFFFF; }

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

/* 等宽工具类 */
.mono,
.readout,
.label {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--gold { color: var(--gold); }

.lede {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 38em;
}

.divider { height: 1px; background: var(--line-faint); border: 0; margin: clamp(24px, 3vw, 40px) 0; }

.stack > * + * { margin-top: var(--gap); }

/* ---------- 3. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--gold);
  color: #141005;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  border-bottom: 1px solid transparent;
  transform: translateY(-180%);
  transition: transform .22s ease;
}

.skip-link:focus { transform: none; color: #141005; }

/* ---------- 4. 头部 ---------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(5, 19, 15, .95);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .95);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 20%, rgba(232, 200, 106, .5) 50%, var(--gold-soft) 80%, transparent);
  pointer-events: none;
}

.header-frame {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.brand:hover { color: var(--ink); border-bottom-color: transparent; }

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--bg-3), var(--deep));
  box-shadow: inset 0 0 0 1px rgba(232, 200, 106, .10);
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.brand-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

.brand-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold);
}

.brand-sep { display: inline-block; width: 1px; height: 10px; background: var(--line); }

.brand-sub {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}

/* 头部操作 */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

.btn:hover {
  background: var(--bg-3);
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-1px);
}

.btn--gold {
  background: linear-gradient(180deg, rgba(201, 162, 39, .24), rgba(201, 162, 39, .08));
  border-color: var(--gold);
  color: var(--gold-hi);
}

.btn--gold:hover {
  background: linear-gradient(180deg, rgba(232, 200, 106, .34), rgba(201, 162, 39, .14));
  border-color: var(--gold-hi);
  color: #FFF3D0;
}

.btn--ghost { background: transparent; }

.header-cta { padding: 9px 16px; }

/* 抽屉触发 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .22s ease, color .22s ease, background .22s ease;
}

.nav-toggle:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--bg-3); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, bottom .25s ease;
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { bottom: 5px; transform: rotate(-45deg); }

/* ---------- 5. 左侧抽屉导航 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 95;
  width: min(370px, 88vw);
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, var(--bg-2) 0%, #0A1E19 42%, var(--deep) 100%);
  border-right: 1px solid var(--gold-soft);
  box-shadow: 26px 0 60px -32px rgba(0, 0, 0, .95);
  transform: translateX(-104%);
  transition: transform .44s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

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

.nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.nav-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-close {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.nav-close:hover { color: var(--gold-hi); border-color: var(--gold); }

.nav-list { display: flex; flex-direction: column; }

.nav-list li { border-bottom: 1px solid var(--line-faint); }

.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 6px 15px 2px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  transition: color .2s ease, padding-left .25s ease, background .25s ease;
}

.nav-list a:hover {
  color: var(--gold-hi);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(201, 162, 39, .12), transparent 78%);
  border-bottom-color: transparent;
}

.nav-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--teal);
  transition: color .2s ease;
}

.nav-list a[aria-current="page"] { color: var(--gold-hi); }
.nav-list a[aria-current="page"] .nav-num { color: var(--coral); }

.nav-list a[aria-current="page"]::after {
  content: "●";
  margin-left: auto;
  font-size: 8px;
  color: var(--gold);
  line-height: 1;
}

.nav-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.nav-foot a {
  align-self: flex-start;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  border-bottom: 1px solid transparent;
}

.nav-foot a:hover { color: var(--gold-hi); border-bottom-color: var(--gold-soft); }

.nav-meta {
  margin: 10px 0 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(143, 179, 166, .62);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 10, 8, .74);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }

body.nav-locked { overflow: hidden; }

/* ---------- 6. 通用布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.section {
  position: relative;
  padding: clamp(42px, 6vw, 84px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.section-index {
  flex: none;
  padding: 4px 12px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.6;
}

.section-title { margin: 0; }

.section-note {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb { padding: 18px 0 6px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb-list li::after { content: "/"; color: var(--line); }

.breadcrumb-list li:last-child::after { content: ""; }

.breadcrumb-list a { color: var(--muted); border-bottom: 1px solid transparent; }
.breadcrumb-list a:hover { color: var(--gold-hi); border-bottom-color: var(--gold-soft); }

.breadcrumb-list [aria-current="page"] { color: var(--gold-hi); }

/* ---------- 8. 卡片 / 悬浮岛 / 标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--bg-2);
}

.card h2, .card h3, .card h4 { margin-bottom: .5em; }

.card--paper {
  background: var(--paper);
  border-color: rgba(18, 33, 29, .2);
  color: #12211D;
}

.card--paper h1, .card--paper h2, .card--paper h3, .card--paper h4 { color: #0F1F1B; }
.card--paper p { color: #2C3A34; }
.card--paper a { color: #7A5B00; border-bottom-color: rgba(122, 91, 0, .4); }
.card--paper a:hover { color: #4A3700; }

.island {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--deep) 78%);
  box-shadow: 0 20px 48px -26px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(232, 200, 106, .06);
}

.island::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line-faint);
  border-radius: 3px;
  pointer-events: none;
}

.island > * { position: relative; z-index: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag--gold { border-color: var(--gold-soft); color: var(--gold); }
.tag--alert { border-color: rgba(255, 122, 89, .5); color: var(--coral); }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(60, 140, 114, .18);
}

.status-dot--alert {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 122, 89, .18);
}

.readout { color: var(--gold-hi); }
.readout--lg { font-size: clamp(24px, 3.6vw, 38px); line-height: 1.2; }

/* ---------- 9. 折叠面板 / 标签页 ---------- */
.accordion {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
}

.accordion + .accordion { margin-top: 10px; }

.accordion summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::marker { content: ""; }
.accordion summary:hover { background: rgba(23, 69, 58, .6); color: var(--gold-hi); }

.accordion summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--gold);
  line-height: 1;
}

.accordion[open] summary::after { content: "–"; }

.accordion-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line-faint);
  background: rgba(5, 19, 15, .55);
  color: var(--muted);
  font-size: 14px;
}

.accordion-body p { max-width: 42em; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.tab:hover { border-color: var(--gold-soft); color: var(--gold-hi); }

.tab[aria-selected="true"] {
  border-color: var(--gold);
  color: var(--gold-hi);
  background: rgba(201, 162, 39, .12);
}

.tab-panel[hidden] { display: none; }

/* ---------- 10. 图片容器 ---------- */
.figure { margin: 0; }

.figure-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 22% 16%, rgba(60, 140, 114, .30), transparent 62%),
    radial-gradient(80% 70% at 82% 88%, rgba(201, 162, 39, .16), transparent 60%),
    linear-gradient(140deg, var(--bg-3) 0%, var(--deep) 100%);
}

.figure-frame--tall { aspect-ratio: 4 / 5; }
.figure-frame--square { aspect-ratio: 1 / 1; }

.figure-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 46%, rgba(5, 19, 15, .55) 100%);
  pointer-events: none;
}

.figure-cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- 11. 章节目录 / 进度 / 返回顶部 ---------- */
.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  padding-left: 16px;
  border-left: 1px solid var(--line-soft);
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.toc-list a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.toc-list a:hover { color: var(--gold-hi); border-bottom-color: transparent; }

.toc-list a[aria-current="true"] {
  color: var(--gold-hi);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(201, 162, 39, .12), transparent 80%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold) 55%, var(--gold-hi));
  transform-origin: 0 50%;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--gold-hi);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .25s ease, border-color .25s ease;
}

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

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

/* ---------- 12. 进入视野显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.22, .61, .36, 1);
}

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

/* ---------- 13. 页脚 ---------- */
.site-footer {
  margin-top: clamp(60px, 9vw, 120px);
  background: linear-gradient(180deg, rgba(5, 19, 15, .35) 0%, var(--deep) 42%);
  border-top: 1px solid var(--line-soft);
}

.footer-band {
  background: linear-gradient(90deg, rgba(201, 162, 39, .12) 0%, rgba(60, 140, 114, .07) 52%, transparent 100%);
  border-bottom: 1px solid var(--line-faint);
}

.footer-band-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}

.footer-band-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-band-text {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) var(--gut) clamp(26px, 3.5vw, 40px);
}

.footer-brandline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-bottom: 22px;
  margin-bottom: clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .06em;
  color: var(--ink);
}

.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}

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

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list { display: flex; flex-direction: column; gap: 9px; }

.footer-list a {
  display: inline-block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
}

.footer-list a:hover { color: var(--gold-hi); border-bottom-color: var(--gold-soft); }

.footer-list--minor { margin-top: 14px; gap: 7px; }

.footer-list--minor a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

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

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

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--teal);
}

.footer-contact-val {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-note {
  max-width: 34em;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal { border-top: 1px solid var(--line-soft); background: rgba(5, 19, 15, .78); }

.footer-legal-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
}

.footer-legal-sep { color: var(--line); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  body { font-size: 15.5px; }
  .brand-sub { display: none; }
  .brand-sep { display: none; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .toc { position: static; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .header-cta { padding: 8px 11px; font-size: 12px; letter-spacing: .04em; }
  .brand-name { font-size: 15.5px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .nav-toggle { padding: 9px 11px; }
  .nav-toggle-text { display: none; }
  .nav-toggle-bars { width: 18px; }
  .section-head { gap: 10px 14px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: auto; }
  .to-top { width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .header-cta { display: none; }
}

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

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

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

@media print {
  .site-header, .site-nav, .nav-scrim, .scroll-progress, .to-top { display: none !important; }
  body { background: #FFFFFF; color: #111111; }
}
