/* ==========================================================================
   7南宮 · 共享样式 /assets/site.css
   纵向长卷 · 资料馆体系：锐利直角、1px 细线、矿物色带
   ========================================================================== */

/* ---------- 1. 重置 ---------- */
*,
*::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, blockquote,
dl, dd, table, fieldset {
  margin: 0;
}

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 矿物色 */
  --clay: #8C3B2E;
  --clay-soft: #B25A44;
  --sand: #E9DCC6;
  --paper: #F6F0E4;
  --paper-hi: #FBF6EC;
  --stone: #CDB99B;
  --slate: #6C7B77;
  --ink-slate: #35403D;
  --ink: #2A211C;
  --gold: #B08A46;
  --mist: #DDE4E0;

  /* 字体 */
  --f-head: "南宫刻宋", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --f-body: "思源黑体", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* 尺度 */
  --w-max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --band-h: clamp(16px, 2.4vw, 24px);
  --header-offset: clamp(96px, 9vw, 118px);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 180ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--sand);
  color: var(--ink-slate);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

/* 旧纸与风沙底纹：极低透明度，不承载信息 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(120% 80% at 12% 0%, rgba(140, 59, 46, .06), transparent 58%),
    radial-gradient(100% 90% at 92% 88%, rgba(108, 123, 119, .08), transparent 60%),
    repeating-linear-gradient(90deg, rgba(42, 33, 28, .022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(42, 33, 28, .016) 0 1px, transparent 1px 6px);
}

main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-offset);
}

[id] {
  scroll-margin-top: calc(var(--header-offset) + 16px);
}

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -.01em;
}

.display {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(2.25rem, 6.4vw, 4.5rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink);
}

.section-title,
h2 {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.28;
}

.sub-title,
h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.entry-title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.85;
  color: var(--ink-slate);
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--slate);
}

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

.timestamp {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.03em;
  color: var(--clay);
}

.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.rule {
  height: 1px;
  border: 0;
  background: var(--stone);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: .875rem;
  letter-spacing: .08em;
  border: 1px solid var(--gold);
  transform: translate(-50%, -160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

/* ---------- 6. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
  transition: padding 220ms var(--ease);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 10px clamp(14px, 2vw, 24px);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-top: 2px solid var(--clay);
  pointer-events: auto;
  transition: padding 220ms var(--ease);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-word {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
}

.brand-word::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--clay);
}

.brand-sub {
  padding-left: 12px;
  border-left: 1px solid var(--stone);
  font-size: .6875rem;
  letter-spacing: .18em;
  line-height: 1.6;
  color: var(--slate);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  margin-inline: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0px, .7vw, 6px);
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px clamp(8px, 1vw, 13px);
  font-size: .9375rem;
  letter-spacing: .03em;
  line-height: 1.6;
  color: var(--ink-slate);
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: clamp(8px, 1vw, 13px);
  right: clamp(8px, 1vw, 13px);
  bottom: 3px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover { color: var(--clay); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--clay);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  height: 2px;
  background: var(--gold);
  transform: scaleX(1);
}

/* 头部右区 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.header-duty {
  font-size: .6875rem;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--slate);
  white-space: nowrap;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--ink);
  font-size: .8125rem;
  letter-spacing: .1em;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-icon span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle-text { white-space: nowrap; }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clay), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
  pointer-events: none;
}

/* 收缩态 */
.site-header[data-shrink="true"] { padding-top: 8px; }

.site-header[data-shrink="true"] .header-shell {
  padding-top: 5px;
  padding-bottom: 5px;
}

.site-header[data-shrink="true"] .brand-sub,
.site-header[data-shrink="true"] .header-duty {
  display: none;
}

.site-header[data-shrink="true"] .brand-word { font-size: 1.125rem; }

/* ---------- 7. 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--clay);
  background: var(--clay);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.3;
  text-align: center;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn:hover {
  background: var(--clay-soft);
  border-color: var(--clay-soft);
  color: var(--paper);
}

.btn--compact {
  padding: 7px 13px;
  font-size: .8125rem;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(246, 240, 228, .38);
  color: var(--paper);
}

.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

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

.btn--line:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(140, 59, 46, .35);
  font-size: .875rem;
  letter-spacing: .06em;
  color: var(--clay);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.link-arrow::after {
  content: "\2192";
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.link-arrow:hover::after { transform: translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--ink-slate);
  font-family: var(--f-body);
  font-size: .8125rem;
  letter-spacing: .06em;
  line-height: 1.4;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.chip:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
}

/* ---------- 8. 章节带 / 色带 ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.band__index {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--clay);
}

.band__label {
  font-size: .8125rem;
  letter-spacing: .16em;
  color: var(--slate);
}

.band-bar {
  height: var(--band-h);
  background: var(--clay);
}

.band-bar--slate { background: var(--slate); }

.band-bar--paper {
  background: var(--paper);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

/* ---------- 9. 卡片 / 标签 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-left: 3px solid var(--stone);
  transition: border-left-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.card:hover {
  border-left-color: var(--clay);
  background: var(--paper-hi);
}

.card__index {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--gold);
}

.card__title {
  font-family: var(--f-head);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
}

.card__text {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--ink-slate);
}

.card__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--stone);
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--slate);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--mist);
  border: 1px solid var(--stone);
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--ink-slate);
}

.tag--clay {
  background: rgba(140, 59, 46, .1);
  border-color: rgba(140, 59, 46, .32);
  color: var(--clay);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--slate);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--stone);
}

.breadcrumb a {
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

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

/* ---------- 11. 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-slate);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose h3 {
  margin-top: 1.8em;
  color: var(--ink);
}

.prose ul { list-style: none; }

.prose ul > li {
  position: relative;
  padding-left: 1.5em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.prose ol > li::marker {
  font-family: var(--f-mono);
  color: var(--clay);
}

.prose a {
  color: var(--clay);
  border-bottom: 1px solid var(--gold);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.prose a:hover {
  color: var(--gold);
  border-bottom-color: var(--clay);
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--clay);
  font-family: var(--f-head);
  font-size: 1.125rem;
  color: var(--ink);
}

.prose hr {
  height: 1px;
  border: 0;
  background: var(--stone);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background-color: var(--stone);
  background-image: linear-gradient(155deg, #DAC9AD 0%, #C2AD8D 58%, #B49C7C 100%);
  border: 1px solid var(--stone);
}

.media img,
.media picture,
.media picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(42, 33, 28, .07) 0 1px, transparent 1px 10px);
  pointer-events: none;
}

.media__cap {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 13. 目录锚点 ---------- */
.toc {
  font-size: .875rem;
  line-height: 1.6;
}

.toc__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--stone);
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--slate);
}

.toc__list li + li { margin-top: 2px; }

.toc__list a {
  position: relative;
  display: block;
  padding: 7px 0 7px 14px;
  color: var(--ink-slate);
  border-left: 2px solid transparent;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.toc__list a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--clay);
  transform: translateY(-50%);
  transition: height var(--dur) var(--ease);
}

.toc__list a:hover {
  color: var(--clay);
  background: rgba(246, 240, 228, .7);
}

.toc__list a[aria-current="true"] {
  color: var(--clay);
  font-weight: 600;
  border-left-color: var(--clay);
  background: rgba(246, 240, 228, .85);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  padding-top: clamp(44px, 6vw, 80px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(24px, 3.2vw, 48px);
  padding-bottom: clamp(34px, 4.4vw, 56px);
}

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

.footer-word {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.footer-word:hover { border-bottom-color: var(--gold); }

.footer-note {
  margin-top: 14px;
  max-width: 30ch;
  font-size: .875rem;
  line-height: 1.85;
  color: rgba(246, 240, 228, .64);
}

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

.footer-heading {
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(246, 240, 228, .16);
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1.6;
  color: var(--gold);
}

.footer-list li + li { margin-top: 9px; }

.footer-list a {
  display: inline-block;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(246, 240, 228, .82);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.footer-list--plain li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(246, 240, 228, .72);
  overflow-wrap: anywhere;
}

.footer-k {
  padding-top: 2px;
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--gold);
  white-space: nowrap;
}

.footer-duty {
  margin-top: 16px;
  font-size: .8125rem;
  line-height: 1.8;
  color: rgba(246, 240, 228, .58);
}

.footer-cta { margin-top: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(246, 240, 228, .16);
  font-size: .75rem;
  letter-spacing: .06em;
  line-height: 1.8;
  color: rgba(246, 240, 228, .52);
}

.footer-icp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-icp a {
  color: rgba(246, 240, 228, .78);
  border-bottom: 1px solid rgba(246, 240, 228, .26);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-icp a:hover {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

.footer-dot { color: rgba(246, 240, 228, .32); }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-duty { display: none; }
}

@media (max-width: 920px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-inline: 0;
    padding: 8px 10px 12px;
    background: var(--paper);
    border: 1px solid var(--stone);
    border-top: 2px solid var(--clay);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  .site-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 13px 10px;
    border-bottom: 1px solid var(--stone);
    font-size: 1rem;
  }

  .nav-item:last-child .nav-link { border-bottom: 0; }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    padding-left: 14px;
    border-left: 3px solid var(--clay);
    background: var(--mist);
  }

  .nav-toggle { display: inline-flex; }
  .header-meta { display: none; }
  .header-brand { gap: 10px; }
  .brand-sub { display: none; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-note { max-width: 46ch; }
}

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

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

  .header-shell { gap: 10px; }

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

@media (max-width: 380px) {
  .brand-word { font-size: 1.0625rem; }
  .btn--compact { padding: 6px 10px; font-size: .75rem; }
}

/* ---------- 16. 降低动效 ---------- */
@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;
  }

  .scroll-progress { transition: none; }
}
