/* ==========================================================================
   长乐坊备用站 · 共享样式 /assets/site.css
   底座：米白纸张 + 暖灰面板 + 赭红发声 + 墨绿分区 + 青灰信息底
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body { margin: 0; }

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

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

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

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

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

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

hr { border: 0; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #1E1B18;
  --ink-soft: #403A32;
  --paper: #FBF7EE;
  --sand: #F5EFE3;
  --card: #E3D9C8;
  --clay: #A6402B;
  --clay-deep: #7A2A1B;
  --amber: #D89B3C;
  --pine: #23443A;
  --moss: #4C6B54;
  --mist: #A9B7B3;

  --line: rgba(30, 27, 24, .16);
  --line-strong: rgba(30, 27, 24, .42);
  --line-light: rgba(251, 247, 238, .24);

  --header-h: 76px;
  --shell-w: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --pad: clamp(16px, 2.4vw, 26px);

  --f-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版（中文优先） ---------- */
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content { padding-top: var(--header-h); }

::selection {
  background: var(--clay);
  color: var(--paper);
}

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(166, 64, 43, .16);
}

.band--pine :where(a, button, input, [tabindex]):focus-visible,
.site-footer :where(a, button, [tabindex]):focus-visible,
.site-header :where(a, button, input, [tabindex]):focus-visible {
  outline-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(216, 155, 60, .22);
}

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: min(var(--shell-w), calc(100% - var(--gut) * 2));
  margin-inline: auto;
}

.band { padding-block: clamp(40px, 6vw, 80px); }
.band--paper { background: var(--sand); }
.band--card { background: var(--card); }
.band--pine { background: var(--pine); color: var(--paper); }

.band--grid {
  background-image:
    linear-gradient(rgba(30, 27, 24, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 27, 24, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
}

.cover-band {
  position: relative;
  overflow: hidden;
  background: var(--pine);
  color: var(--paper);
  border-bottom: 3px solid var(--clay);
  padding-block: clamp(52px, 8vw, 96px) clamp(36px, 5vw, 64px);
}

.cover-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(251, 247, 238, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 247, 238, .07) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

.grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 24px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

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

/* ---------- 5. 文字件 ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.display--xl { font-size: clamp(38px, 7vw, 62px); }

.h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.32;
}

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.band--pine .lede,
.cover-band .lede { color: rgba(251, 247, 238, .84); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber);
  border: 1px solid var(--clay-deep);
}

.band--pine .eyebrow,
.cover-band .eyebrow { color: var(--amber); }

.mono {
  font-family: var(--f-mono);
  font-size: .86em;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-ligatures: none;
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }

/* ---------- 6. 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .16s var(--ease);
}

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

.btn-primary:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

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

.band--pine .btn-ghost:hover,
.cover-band .btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
  color: var(--clay);
}

.link-more::after { content: "→"; }

.link-more:hover { color: var(--clay-deep); }

/* ---------- 7. 面板与卡片 ---------- */
.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: var(--pad);
}

.panel--paper { background: var(--paper); }

.panel--pine {
  background: var(--pine);
  border-color: rgba(251, 247, 238, .3);
  color: var(--paper);
}

.panel--stack { box-shadow: 8px 8px 0 rgba(169, 183, 179, .55); }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.panel--pine .panel-head { border-bottom-color: rgba(251, 247, 238, .28); }

.panel-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
}

.card {
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: var(--pad);
  transition: transform .16s var(--ease), border-color .16s var(--ease),
              box-shadow .16s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--clay);
  box-shadow: 6px 6px 0 rgba(169, 183, 179, .5);
}

.card--offset { margin-top: clamp(12px, 3vw, 32px); }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--moss);
}

.card-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: -.005em;
}

.card-index {
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--moss);
  transition: color .16s var(--ease);
}

.card:hover .card-index,
.card:focus-visible .card-index { color: var(--clay); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.tag--clay {
  border-color: var(--clay);
  color: var(--clay);
  background: transparent;
  font-weight: 700;
}

/* ---------- 8. 时间轴 / 差异对照 / 步骤 / 提示 ---------- */
.timeline {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
}

.timeline-item {
  position: relative;
  padding-bottom: clamp(16px, 2.6vw, 26px);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-mark {
  position: absolute;
  left: -27px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--amber);
  border: 1px solid var(--clay-deep);
}

.band--pine .timeline,
.cover-band .timeline { border-left-color: rgba(251, 247, 238, .3); }

.diff {
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.diff-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.diff-row:last-child { border-bottom: 0; }

.diff-key {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--moss);
}

.diff-val { font-size: 14px; line-height: 1.6; }

.diff-state {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 7px;
  border: 1px solid;
  white-space: nowrap;
}

.diff-state--add { color: var(--clay); border-color: var(--clay); }
.diff-state--same { color: var(--moss); border-color: var(--mist); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.step {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--clay);
  padding: var(--pad);
}

.step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--clay);
}

.notice {
  padding: 14px 16px;
  background: var(--mist);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--pine);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 9. 图片容器基类 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--card);
  border: 1px solid var(--line-strong);
}

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

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.04);
}

.media-cap {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--moss);
}

/* ---------- 10. 批次 tab 组 ---------- */
.tabs { position: relative; }

.tablist {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-strong);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-soft);
  transition: color .14s var(--ease), background-color .14s var(--ease),
              border-color .14s var(--ease);
}

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

.tab[aria-selected="true"] {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--clay);
}

.tab-panel { padding-top: 18px; }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--moss);
}

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

.breadcrumb-sep { opacity: .55; }

.band--pine .breadcrumb,
.cover-band .breadcrumb { color: rgba(251, 247, 238, .72); }

.band--pine .breadcrumb a,
.cover-band .breadcrumb a { color: var(--amber); }

/* ---------- 12. 头部 ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--amber);
  font-size: 14px;
  font-weight: 700;
  transition: top .14s var(--ease);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: rgba(30, 27, 24, .93);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(245, 239, 227, .97);
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width .05s linear;
}

.site-header:not([data-scrolled="true"]) .header-progress { background: var(--amber); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  min-height: var(--header-h);
}

/* 字标 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--clay);
  color: var(--paper);
  border: 1px solid rgba(251, 247, 238, .4);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.01em;
}

.brand-sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .2em;
  opacity: .62;
}

/* 版本号胶囊 */
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  transition: border-color .16s var(--ease), color .16s var(--ease),
              background-color .16s var(--ease);
}

.version-pill-key { opacity: .62; }
.version-pill-val { font-weight: 700; }

.version-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.version-pill[data-copied="true"] {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
}

.version-pill[data-copied="true"] .version-pill-key { opacity: .9; }

.site-header[data-scrolled="true"] .version-pill:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
}

.site-header[data-scrolled="true"] .version-pill[data-copied="true"] {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.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: 2px;
  background: currentColor;
  transition: transform .16s var(--ease);
}

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

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

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

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 16px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: .04em;
  opacity: .84;
  transition: opacity .16s var(--ease), color .16s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s var(--ease);
}

.site-header:not([data-scrolled="true"]) .nav-link::after { background: var(--amber); }

.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
}

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.site-header:not([data-scrolled="true"]) .nav-link[aria-current="page"] { color: var(--amber); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 检索框 */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 3px 0 10px;
  border: 1px solid currentColor;
}

.search-glyph {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  opacity: .6;
}

.search-input-label { display: none; }

.search-input {
  width: 84px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  color: inherit;
  transition: width .18s var(--ease);
}

.search-input::placeholder { color: inherit; opacity: .55; }
.search-input:focus { outline: 0; }
.search:focus-within { border-color: var(--clay); }
.site-header:not([data-scrolled="true"]) .search:focus-within { border-color: var(--amber); }
.search:focus-within .search-input { width: 240px; }

.search-hints {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  min-width: 232px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 4px 4px 0 rgba(30, 27, 24, .1);
}

.search:focus-within .search-hints { display: block; }

.search-hints-title {
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
}

.search-hint {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
}

.search-hint span:last-child {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  opacity: .7;
}

.nav-cta { flex: 0 0 auto; }

body[data-nav-open="true"] { overflow: hidden; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  background: var(--pine);
  background-image: linear-gradient(rgba(251, 247, 238, .06) 1px, transparent 1px);
  background-size: 100% 56px;
  color: var(--paper);
  border-top: 3px solid var(--clay);
}

.footer-inner {
  padding-block: clamp(36px, 5vw, 64px) clamp(18px, 3vw, 28px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(22px, 4vw, 48px);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--clay);
  color: var(--paper);
  border: 1px solid rgba(251, 247, 238, .4);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
}

.footer-brand-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.01em;
}

.footer-line {
  max-width: 24ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(251, 247, 238, .74);
}

.footer-icp {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--amber);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-links { display: flex; flex-direction: column; }

.footer-link {
  display: inline-block;
  padding-block: 5px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: rgba(251, 247, 238, .82);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-link:hover {
  color: var(--paper);
  border-bottom-color: var(--amber);
}

.footer-col--meta { display: flex; flex-direction: column; }

.footer-meta-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding-block: 5px;
  border-top: 1px solid rgba(251, 247, 238, .16);
  font-size: 13px;
  line-height: 1.65;
}

.footer-meta-key {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(251, 247, 238, .6);
}

.footer-meta-val {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(251, 247, 238, .9);
  overflow-wrap: anywhere;
}

.footer-cta {
  align-self: flex-start;
  margin-top: 16px;
  color: var(--paper);
  border-color: rgba(251, 247, 238, .5);
}

.footer-cta:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 16px;
  border-top: 1px solid rgba(251, 247, 238, .2);
}

.footer-note {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(251, 247, 238, .64);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal .footer-link { font-size: 12px; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) and (min-width: 941px) {
  .brand-sub { display: none; }
  .search-input { width: 70px; }
  .search:focus-within .search-input { width: 190px; }
  .nav-link { font-size: 13px; }
}

@media (max-width: 940px) {
  :root { --header-h: 62px; }

  .brand-sub { display: none; }

  .version-pill { margin-left: auto; }

  .nav-toggle {
    display: inline-flex;
    margin-left: 8px;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 85;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gut) 24px;
    background: var(--pine);
    color: var(--paper);
    border-top: 1px solid rgba(251, 247, 238, .2);
    border-bottom: 1px solid rgba(251, 247, 238, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .16s var(--ease), transform .16s var(--ease),
                visibility .16s var(--ease);
  }

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

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

  .nav-item { border-bottom: 1px solid rgba(251, 247, 238, .14); }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 2px;
    font-size: 15px;
    opacity: .92;
  }

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

  .nav-link[aria-current="page"] { color: var(--amber); }

  .nav-link[aria-current="page"]::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--amber);
    order: -1;
    margin-right: 8px;
  }

  .nav-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search {
    width: 100%;
    height: 40px;
    background: rgba(251, 247, 238, .08);
    border-color: rgba(251, 247, 238, .5);
    color: var(--paper);
  }

  .search-input { width: 100%; font-size: 14px; }
  .search:focus-within .search-input { width: 100%; }
  .search-hints {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
  }

  .nav-cta { width: 100%; padding-block: 12px; }

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

  .card--offset { margin-top: 0; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }

  .brand-name { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .version-pill { padding: 4px 8px; font-size: 10px; }
  .nav-toggle-label { display: none; }

  .diff-row { grid-template-columns: minmax(0, 1fr) auto; }
  .diff-val { grid-column: 1 / -1; }

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

/* ---------- 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;
  }

  .card:hover { transform: none; box-shadow: none; }
  .header-progress { transition: none; }
}
