/* ==========================================================================
   十博10 · 版本档案馆  /assets/site.css
   共享外壳与基础组件：reset、变量、中文排版、头部、页脚、通用组件
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

:target { scroll-margin-top: clamp(110px, 16vh, 170px); }
#main-content { scroll-margin-top: clamp(110px, 16vh, 170px); }
main { display: block; }

/* ---------- 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0B1B2B;
  --panel: #12293D;
  --paper: #F3EBDD;
  --paper-2: #DCCCB4;
  --annot: #C24A2C;
  --electric: #18B7A6;
  --teal: #3D7568;
  --copper: #B07D3F;
  --text: #141C24;
  --edge: #2C3E50;
  --highlight: #D8F3EE;

  /* 字体 */
  --display: "Arial Narrow", "Barlow Condensed", "Noto Sans SC", system-ui, sans-serif;
  --body: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  /* 尺寸 */
  --edge-w: 3px;
  --shadow: 6px 6px 0 var(--edge);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 112px;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--body);
  font-size: clamp(16px, 1.02vw, 17.5px);
  line-height: 1.88;
  color: var(--text);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(44, 62, 80, 0.045) 0 1px,
    transparent 1px 72px
  );
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.65rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 600; line-height: 1.4; }

p { text-wrap: pretty; }

small { font-size: 0.82em; }

::selection { background: var(--annot); color: #FFF6EE; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 10px;
  top: -140px;
  z-index: 200;
  padding: 0.7em 1.1em;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--electric);
  border: 3px solid var(--ink);
  text-decoration: none;
  transition: top 0.16s ease;
}
.skip-link:focus { top: 10px; outline: none; }

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

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: var(--edge-w) solid var(--edge);
}
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
  border-top-color: rgba(243, 235, 221, 0.24);
}
.section--panel {
  background: var(--panel);
  color: var(--paper);
  border-top-color: rgba(243, 235, 221, 0.24);
}
.section--ink .card,
.section--panel .card,
.section--ink .figure,
.section--panel .figure {
  border-color: rgba(243, 235, 221, 0.45);
  box-shadow: 6px 6px 0 rgba(243, 235, 221, 0.16);
}

/* ---------- 小标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--copper);
  flex: 0 0 auto;
}
.section--ink .eyebrow,
.section--panel .eyebrow { color: var(--electric); }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.55em;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--annot);
  background: rgba(194, 74, 44, 0.1);
  border: 2px solid var(--annot);
  transform: rotate(-1.5deg);
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: var(--annot);
  --btn-fg: #FFF6EE;
  --btn-edge: var(--ink);
  --btn-shadow: var(--edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.62em 1.05em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--edge-w) solid var(--btn-edge);
  box-shadow: 4px 4px 0 var(--btn-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-shadow); }
.btn--stamp { --btn-bg: var(--annot); letter-spacing: 0.05em; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-edge: var(--copper);
  --btn-shadow: rgba(243, 235, 221, 0.22);
}
.btn--ghost:hover { --btn-bg: rgba(176, 125, 63, 0.16); }
.btn--quiet {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-edge: var(--edge);
}
.btn--quiet:hover { --btn-bg: var(--highlight); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--edge-w) solid var(--copper);
  box-shadow: 0 12px 0 -9px rgba(11, 27, 43, 0.5);
}

.site-header__meta {
  position: relative;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(243, 235, 221, 0.16);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(243, 235, 221, 0.055) 0 1px,
    transparent 1px 30px
  );
}

.site-header__nav { background: var(--panel); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header-inner--nav { position: relative; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--paper);
}
.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--copper);
  border: 3px solid var(--paper);
  box-shadow: 4px 4px 0 rgba(194, 74, 44, 0.6);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__line {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(243, 235, 221, 0.62);
}
.brand:hover .brand__line { color: var(--electric); }

.header-ledger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.34rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  color: rgba(243, 235, 221, 0.9);
  border: 2px solid rgba(243, 235, 221, 0.28);
}
.header-ledger__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 3px rgba(24, 183, 166, 0.24);
}
.header-ledger__label { color: var(--copper); }
.header-ledger__value { color: var(--paper); }

.site-header .btn { --btn-shadow: rgba(243, 235, 221, 0.3); }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.75em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: transparent;
  border: 2px solid rgba(243, 235, 221, 0.55);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(24, 183, 166, 0.16); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10px; }
.site-header[data-open] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }
.site-header[data-open] .nav-toggle { background: rgba(24, 183, 166, 0.18); }

/* 主导航 */
[data-nav] { position: relative; width: 100%; }

.primary-nav__list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}
.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 0.9rem clamp(0.7rem, 1.35vw, 1.1rem);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: rgba(243, 235, 221, 0.78);
  text-decoration: none;
  border-left: 1px solid rgba(243, 235, 221, 0.14);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.primary-nav__list > li:last-child .primary-nav__link { border-right: 1px solid rgba(243, 235, 221, 0.14); }
.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: var(--paper);
  background: rgba(24, 183, 166, 0.18);
  outline: none;
}
.primary-nav__link:focus-visible { box-shadow: inset 0 0 0 3px var(--electric); }
.primary-nav__no {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--copper);
}
.primary-nav__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(24, 183, 166, 0.2);
}
.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--annot);
}
.primary-nav__link[aria-current="page"] .primary-nav__no { color: var(--electric); }

.primary-nav__hint {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  z-index: 12;
  padding: 0.3rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: #FFF6EE;
  background: var(--annot);
  border: 2px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.primary-nav__link:hover .primary-nav__hint,
.primary-nav__link:focus-visible .primary-nav__hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 进度尺 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--edge-w));
  height: var(--edge-w);
  background: linear-gradient(90deg, var(--electric), var(--copper));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover { color: var(--annot); border-bottom-color: currentColor; }
.breadcrumbs__sep { color: var(--copper); }
.breadcrumbs__current { color: var(--ink); }
.breadcrumbs--ink { color: rgba(243, 235, 221, 0.7); }
.breadcrumbs--ink a:hover { color: var(--electric); }
.breadcrumbs--ink .breadcrumbs__current { color: var(--paper); }

/* ---------- 正文区 ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.prose a:hover { color: var(--annot); }
.prose ul,
.prose ol { display: grid; gap: 0.5em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--copper);
}
.prose ol { counter-reset: clause; }
.prose ol li { position: relative; padding-left: 2em; counter-increment: clause; }
.prose ol li::before {
  content: counter(clause, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 0.78em;
  color: var(--copper);
}
.prose strong { color: var(--ink); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
  border: var(--edge-w) solid var(--edge);
  box-shadow: var(--shadow);
}
.card--ink {
  background: var(--panel);
  color: var(--paper);
  border-color: rgba(243, 235, 221, 0.42);
  box-shadow: 6px 6px 0 rgba(243, 235, 221, 0.18);
}
.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card--link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--edge);
}
.card__no {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--copper);
}
.card__title {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

/* ---------- 索引尺 ---------- */
.index-rail {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  padding: 1rem 0.9rem;
  background: var(--paper-2);
  border: var(--edge-w) solid var(--edge);
  box-shadow: var(--shadow);
}
.index-rail__title {
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.index-rail__list { display: grid; gap: 2px; }
.index-rail__link {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.48rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.index-rail__link:hover { background: var(--highlight); border-left-color: var(--electric); }
.index-rail__link[aria-current] {
  background: rgba(194, 74, 44, 0.12);
  border-left-color: var(--annot);
  font-weight: 700;
}

/* ---------- 筛选用芯片 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.38em 0.85em;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--edge);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--highlight); }
.chip[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--annot);
  box-shadow: inset 0 -3px 0 var(--annot);
}

/* ---------- 表格 ---------- */
.table-frame {
  overflow-x: auto;
  background: var(--paper);
  border: var(--edge-w) solid var(--edge);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
  text-align: left;
}
.data-table th {
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--panel);
  white-space: nowrap;
}
.data-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  border-top: 1px solid rgba(44, 62, 80, 0.2);
}
.data-table tbody tr:nth-child(even) { background: rgba(220, 204, 180, 0.42); }
.data-table tbody tr:hover { background: var(--highlight); }

/* ---------- 批注条 ---------- */
.callout {
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  background: rgba(176, 125, 63, 0.1);
  border-left: 5px solid var(--copper);
}
.callout--annot {
  background: rgba(194, 74, 44, 0.1);
  border-left-color: var(--annot);
}

/* ---------- 图片容器基础规则（页面阶段放图） ---------- */
.figure {
  position: relative;
  margin: 0;
  background: var(--paper-2);
  border: var(--edge-w) solid var(--edge);
  box-shadow: var(--shadow);
}
.figure__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(44, 62, 80, 0.1) 0 8px,
    transparent 8px 18px
  );
}
.figure__caption {
  padding: 0.65rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border-top: 2px solid var(--edge);
}
.figure--wide .figure__img { aspect-ratio: 21 / 9; }
.figure--tall .figure__img { aspect-ratio: 3 / 4; }
.figure--square .figure__img { aspect-ratio: 1 / 1; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 0;
  color: var(--paper);
  background: var(--ink);
  border-top: 6px solid var(--copper);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(243, 235, 221, 0.22) 0 2px,
    transparent 2px 26px
  );
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(22px, 3.2vw, 48px);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(42px, 5.5vw, 68px) var(--gutter) clamp(28px, 4vw, 46px);
}

.footer-brand__line {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.footer-brand__text {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(243, 235, 221, 0.74);
  max-width: 34ch;
}
.footer-stamp {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.32rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--copper);
  border: 2px solid var(--copper);
  transform: rotate(-2deg);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}
.footer-groups h2 {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}
.footer-groups ul { display: grid; gap: 0.55rem; }
.footer-groups a {
  font-size: 0.94rem;
  color: rgba(243, 235, 221, 0.84);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-groups a:hover {
  color: var(--electric);
  border-bottom-color: var(--electric);
}
.footer-groups a:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.footer-contact h2 {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}
.footer-contact__list {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
  margin: 0;
  font-size: 0.9rem;
}
.footer-contact__list dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(176, 125, 63, 0.95);
  padding-top: 0.28em;
}
.footer-contact__list dd {
  margin: 0;
  color: var(--paper);
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 0.9rem;
  padding-left: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(243, 235, 221, 0.62);
  border-left: 3px solid var(--annot);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(243, 235, 221, 0.6);
  border-top: 1px solid rgba(243, 235, 221, 0.16);
}
.footer-base__copy { margin: 0; }
.footer-base__icp { margin: 0; color: rgba(243, 235, 221, 0.8); }

/* ---------- 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 96px; }

  .site-header { position: sticky; top: 0; }
  .site-header__meta { padding-block: 0.6rem; }
  .header-ledger { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .btn { padding: 0.5em 0.8em; font-size: 0.88rem; }

  .site-header__nav { display: none; max-height: calc(100dvh - 92px); overflow-y: auto; }
  .site-header[data-open] .site-header__nav { display: block; }

  .header-inner--nav { padding-inline: 0; }
  .primary-nav__list { flex-direction: column; align-items: stretch; }
  .primary-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.82rem var(--gutter);
    font-size: 1.04rem;
    border-left: 0;
    border-top: 1px solid rgba(243, 235, 221, 0.14);
  }
  .primary-nav__list > li:last-child .primary-nav__link {
    border-right: 0;
    border-bottom: 1px solid rgba(243, 235, 221, 0.14);
  }
  .primary-nav__link[aria-current="page"]::after { height: 3px; }

  .primary-nav__hint {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-left: auto;
    align-self: center;
    padding: 0.16rem 0.45rem;
    font-size: 0.6rem;
    background: rgba(194, 74, 44, 0.28);
    border-color: rgba(194, 74, 44, 0.7);
    color: var(--paper);
  }

  .grid--split,
  .grid--halves { grid-template-columns: minmax(0, 1fr); }

  .index-rail {
    position: static;
    top: auto;
    overflow-x: auto;
  }
  .index-rail__list { grid-auto-flow: column; grid-auto-columns: max-content; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .brand__mark { width: 38px; height: 38px; font-size: 0.9rem; }
  .brand__line { font-size: 0.98rem; }
  .brand__tag { font-size: 0.56rem; }
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-groups { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .figure--wide .figure__img { aspect-ratio: 16 / 10; }
}

@media (max-width: 380px) {
  .site-header .btn { display: none; }
}

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

  .btn:hover,
  .card--link:hover {
    transform: none;
  }

  .header-progress { transition: none !important; }
}
