/* =========================================================
   月博会员指南 — /assets/site.css
   共享外壳：reset / tokens / 排版 / 头部轨道 / 页脚 / 通用组件
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0B1D2E;
  --night: #122C44;
  --teal: #2E6F8E;
  --tide: #7FB3C8;
  --moon: #C9D3DC;
  --gold: #D6A84F;
  --gold-soft: #E8C783;
  --coral: #E08A6E;
  --coral-deep: #B2603F;
  --stone: #6E7873;
  --moss: #5F7A63;
  --clay: #A8674F;
  --paper: #F3EFE6;
  --paper-2: #E4E0D6;
  --white: #FAF7F0;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Courier New", monospace;

  --rail-w: clamp(198px, 17vw, 252px);
  --bar-h: 64px;
  --shell: 1160px;
  --gutter: clamp(16px, 4vw, 46px);
  --radius: 16px;
  --radius-sm: 10px;

  --edge: rgba(11, 29, 46, .12);
  --edge-dark: rgba(201, 211, 220, .16);
  --shadow-panel: 0 24px 60px -34px rgba(11, 29, 46, .55);
  --ease: cubic-bezier(.22, .68, .32, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .045em;
  text-wrap: balance;
}

h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
h4 { font-size: 17px; letter-spacing: .06em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

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

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

/* ---------- 3. 中文排版基线 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.is-serif { font-family: var(--font-serif); }
.muted { color: var(--stone); }

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

.stack > * + * { margin-top: 18px; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.divider {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 52px) 0;
  background: linear-gradient(90deg, rgba(11, 29, 46, .26), rgba(11, 29, 46, .03));
}
.divider--dark {
  background: linear-gradient(90deg, rgba(201, 211, 220, .38), rgba(201, 211, 220, .04));
}

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #10202F;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .24s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- 6. 头部：左侧轨道 / 移动顶栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 20px 24px;
  background:
    radial-gradient(120% 55% at 0% 0%, rgba(46, 111, 142, .42), rgba(46, 111, 142, 0) 62%),
    linear-gradient(180deg, #0B1D2E 0%, #102941 56%, #091724 100%);
  border-right: 1px solid var(--edge-dark);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 179, 200, .4) transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  top: -96px;
  left: 50%;
  width: 280px;
  height: 280px;
  margin-left: -140px;
  border-radius: 50%;
  border: 1px dashed rgba(127, 179, 200, .22);
  pointer-events: none;
}

.site-header__bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.brand__moon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F7F3E8, var(--moon) 44%, var(--tide) 100%);
  box-shadow: 0 0 0 1px rgba(214, 168, 79, .55), 0 0 20px rgba(214, 168, 79, .26);
}
.brand__moon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 211, 220, .32);
  transition: transform .8s var(--ease);
}
.brand:hover .brand__moon::after { transform: rotate(120deg); }

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #F4F0E6;
  line-height: 1.4;
}
.brand__tag {
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: rgba(201, 211, 220, .7);
}

/* 更新徽标 */
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 79, .42);
  background: rgba(214, 168, 79, .1);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--gold-soft);
}
.update-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: badge-pulse 2.8s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 168, 79, .55); }
  55% { box-shadow: 0 0 0 6px rgba(214, 168, 79, 0); }
}

/* 汉堡按钮（移动端可见） */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 211, 220, .34);
  background: rgba(127, 179, 200, .1);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.nav-toggle:hover { background: rgba(127, 179, 200, .2); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--moon);
  transition: background .24s;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--moon);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 导航 */
.site-nav {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}
.site-nav::before {
  content: "";
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(214, 168, 79, .55), rgba(214, 168, 79, 0));
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  letter-spacing: .08em;
  color: rgba(201, 211, 220, .88);
  transition: background .25s var(--ease), color .25s var(--ease), padding .25s var(--ease);
}
.site-nav__link::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: rgba(201, 211, 220, .45);
  transform: translateY(-50%);
  transition: width .25s var(--ease), background .25s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: #FFFFFF;
  background: rgba(127, 179, 200, .14);
}
.site-nav__link:hover::before { width: 11px; background: var(--tide); }

.site-nav__link[aria-current="page"] {
  color: #10202F;
  font-weight: 700;
  background: linear-gradient(105deg, var(--gold) 0%, var(--gold-soft) 100%);
  box-shadow: 0 12px 26px -16px rgba(214, 168, 79, .95);
}
.site-nav__link[aria-current="page"]::before { display: none; }

.site-nav__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}
.site-nav__cta { width: 100%; }
.site-nav__note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(201, 211, 220, .58);
}

/* 滚动进度 */
.scroll-meter {
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--rail-w) - 2px);
  width: 2px;
  z-index: 95;
  background: rgba(201, 211, 220, .1);
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--tide) 100%);
  transform: scaleY(var(--progress, 0));
  transform-origin: top center;
  transition: transform .14s linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  overflow: hidden;
  color: var(--moon);
  background:
    radial-gradient(80% 120% at 10% 0%, rgba(46, 111, 142, .3), rgba(46, 111, 142, 0) 62%),
    linear-gradient(180deg, #0B1D2E 0%, #091724 68%, #0B1D2E 100%);
  border-top: 1px solid var(--edge-dark);
}
.site-footer::before {
  content: "";
  position: absolute;
  right: -150px;
  top: -130px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(127, 179, 200, .18);
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -30px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(214, 168, 79, .3), rgba(214, 168, 79, 0) 64%);
  pointer-events: none;
}

.site-footer__ticks {
  height: 14px;
  background-image: radial-gradient(circle, rgba(201, 211, 220, .45) 1.3px, transparent 1.5px);
  background-size: 24px 14px;
  background-position: center;
  background-repeat: repeat-x;
  opacity: .55;
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .62fr 1.18fr;
  gap: 32px 34px;
  padding-top: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.site-footer__brand {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #F4F0E6;
}
.site-footer__tagline {
  margin: 0 0 16px;
  font-size: 13.5px;
  letter-spacing: .06em;
  color: rgba(201, 211, 220, .68);
}
.site-footer__reminder {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214, 168, 79, .3);
  background: rgba(214, 168, 79, .08);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--gold-soft);
}
.site-footer__dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.site-footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--tide);
  text-transform: uppercase;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(201, 211, 220, .8);
}
.site-footer__line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.site-footer__key {
  flex: none;
  min-width: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(201, 211, 220, .5);
}

.site-footer__link {
  position: relative;
  color: rgba(201, 211, 220, .86);
  letter-spacing: .05em;
  transition: color .22s var(--ease);
}
.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right .28s var(--ease);
}
.site-footer__link:hover,
.site-footer__link:focus-visible { color: var(--gold-soft); }
.site-footer__link:hover::after,
.site-footer__link:focus-visible::after { right: 0; }

.site-footer__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--edge-dark);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: rgba(201, 211, 220, .58);
}

.site-footer__base {
  position: relative;
  border-top: 1px solid var(--edge-dark);
  background: rgba(4, 12, 20, .42);
}
.site-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 16px 20px;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: rgba(201, 211, 220, .62);
}
.site-footer__copy,
.site-footer__icp { margin: 0; }
.site-footer__icp { font-family: var(--font-mono); }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: transform .24s var(--ease), background .26s var(--ease),
              color .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--cta {
  background: linear-gradient(112deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #10202F;
  box-shadow: 0 14px 30px -18px rgba(214, 168, 79, .95);
}
.btn--cta:hover { box-shadow: 0 18px 34px -16px rgba(214, 168, 79, .85); }

.btn--ghost {
  color: var(--teal);
  border-color: rgba(46, 111, 142, .45);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--teal);
  background: rgba(127, 179, 200, .16);
}

.btn--quiet {
  color: var(--night);
  border-color: rgba(46, 111, 142, .3);
  background: rgba(127, 179, 200, .18);
}
.btn--quiet:hover { background: rgba(127, 179, 200, .3); }

.btn--dark {
  background: var(--night);
  color: var(--paper);
  border-color: rgba(127, 179, 200, .3);
}
.btn--dark:hover { background: var(--ink); }

.panel--night .btn--ghost,
.site-footer .btn--ghost {
  color: var(--tide);
  border-color: rgba(127, 179, 200, .45);
}
.panel--night .btn--ghost:hover {
  color: #FFFFFF;
  background: rgba(127, 179, 200, .18);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--stone);
}
.crumbs__item { display: inline-flex; align-items: center; }
.crumbs__item:not(:first-child)::before {
  content: "/";
  margin-inline: 4px 8px;
  opacity: .45;
}
.crumbs__item a { color: var(--stone); transition: color .2s var(--ease); }
.crumbs__item a:hover { color: var(--clay); }
.crumbs__item[aria-current="page"] { color: var(--clay); }

/* ---------- 10. 面板与章节 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-panel);
}
.panel--paper { background: var(--paper); }
.panel--night {
  color: var(--moon);
  border-color: var(--edge-dark);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(46, 111, 142, .34), rgba(46, 111, 142, 0) 60%),
    linear-gradient(160deg, var(--night) 0%, var(--ink) 100%);
  box-shadow: 0 30px 70px -44px rgba(0, 0, 0, .8);
}
.panel--night h2,
.panel--night h3 { color: #F4F0E6; }

.panel--cut {
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}
.section-head__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: .055em;
}
.section-head__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--clay);
  text-transform: uppercase;
}

/* ---------- 11. 标签与版本号 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 13px;
  border-radius: 999px;
  border: 1px solid rgba(224, 138, 110, .55);
  background: rgba(224, 138, 110, .1);
  font-size: 12.5px;
  letter-spacing: .06em;
  line-height: 1.8;
  color: var(--coral-deep);
}
.tag--moss {
  border-color: rgba(95, 122, 99, .45);
  background: rgba(95, 122, 99, .12);
  color: var(--moss);
}
.tag--gold {
  border-color: rgba(214, 168, 79, .5);
  background: rgba(214, 168, 79, .13);
  color: #966F22;
}

.version-chip {
  display: inline-block;
  padding: 2px 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
  color: #F4F0E6;
  background: linear-gradient(115deg, var(--teal) 0%, var(--tide) 100%);
  box-shadow: 0 8px 20px -14px rgba(46, 111, 142, .95);
}

/* ---------- 12. 图形容器（页面阶段放 img / svg） ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(46, 111, 142, .22) 0%, rgba(11, 29, 46, .06) 55%, rgba(214, 168, 79, .18) 100%),
    var(--paper-2);
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__media,
.figure > img,
.figure > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--stone);
}

/* ---------- 13. 显现动效 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
html[data-js="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__note { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: calc(var(--bar-h) + 16px); }

  body { padding-top: var(--bar-h); }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0 var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--edge-dark);
    overflow: visible;
  }
  .site-header::before { display: none; }

  .site-header__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .brand { gap: 10px; }
  .brand__moon { width: 28px; height: 28px; }
  .brand__moon::after { inset: -5px; }
  .brand__name { font-size: 15.5px; letter-spacing: .08em; }
  .brand__tag { display: none; }

  .update-badge { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background: linear-gradient(180deg, #0B1D2E 0%, #102941 100%);
    border-bottom: 1px solid var(--edge-dark);
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .9);
    transition: max-height .4s var(--ease), opacity .3s var(--ease),
                visibility .3s var(--ease), padding .3s var(--ease);
  }
  .site-nav::before { display: none; }

  .site-header[data-open] .site-nav {
    max-height: min(76vh, 620px);
    opacity: 1;
    visibility: visible;
    padding: 16px var(--gutter) 26px;
    overflow-y: auto;
  }

  .site-nav__list { gap: 4px; }
  .site-nav__link {
    padding: 13px 14px 13px 20px;
    font-size: 16px;
    letter-spacing: .1em;
  }
  .site-nav__link::before { left: 5px; }
  .site-nav__aside { margin-top: 18px; padding-top: 0; }
  .site-nav__note { font-size: 12px; }

  .scroll-meter {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .scroll-meter__fill {
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
  }

  .site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .site-footer__base-inner { gap: 6px 16px; }
  .site-footer__legal { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .site-footer__brand { font-size: 17px; }
  .site-footer__line { gap: 2px; flex-direction: column; align-items: flex-start; }
  .site-footer__key { min-width: 0; }
  .btn { width: 100%; }
  .site-nav__cta { width: 100%; }
  .crumbs { padding-top: 16px; }
}

/* ---------- 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[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn:hover { transform: none; }
  .scroll-meter__fill { transition: none; }
}

/* ---------- 16. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .scroll-meter,
  .skip-link,
  .nav-toggle { display: none !important; }
  body { padding: 0 !important; background: #FFFFFF; color: #000000; }
  .panel { box-shadow: none; border: 1px solid #999999; }
}
