/* ============================================================
   VG 中国 · 共享样式 /assets/site.css
   色彩分区 · 粗野主义纸牌 · 编号语言
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5,
p, ul, ol, li,
figure, blockquote, dl, dd, hr {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

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

hr { border: 0; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 墨绿主色 */
  --ink-900: #0E2A22;
  --ink-800: #173B30;
  --ink-700: #24564A;

  /* 暖琥珀强调 */
  --amber:      #F0A32B;
  --amber-deep: #C97C12;
  --amber-soft: #FFD79A;

  /* 纸卡 */
  --paper:   #F4EDE0;
  --paper-2: #E6DAC6;

  /* 文字与状态 */
  --charcoal: #1C1F1E;
  --smoke:    #6B6F6C;
  --alert:    #A63A2B;
  --card:     #FBFAF6;

  /* 轨道与结构 */
  --rail-w: 104px;
  --header-h: 60px;
  --maxw: 1180px;

  /* 阴影 */
  --shadow-hard: 8px 8px 0 0 var(--ink-700);
  --shadow-hard-sm: 4px 4px 0 0 var(--ink-700);
  --shadow-amber: 8px 8px 0 0 var(--amber-deep);

  /* 字体 */
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;

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

  /* 阅读进度（由 JS 写入） */
  --progress: 0%;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(28, 31, 30, .055) 1px, transparent 1px);
  background-size: 4px 4px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

p { max-width: 68ch; }

strong { font-weight: 700; }

::selection {
  background: var(--amber);
  color: var(--ink-900);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.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;
}

/* ---------- 4. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--amber);
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard-sm);
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 56px;
  position: relative;
}

.section--dark {
  background: var(--ink-900);
  color: var(--paper);
}

.section--dark p { color: rgba(244, 237, 224, .82); }

.section--paper {
  background: var(--paper);
  color: var(--charcoal);
}

.section--alt {
  background: var(--paper-2);
  color: var(--charcoal);
}

/* 斜切收边：继承自身背景色 */
.edge-slant { position: relative; isolation: isolate; }

.edge-slant::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.4rem;
  height: 2.5rem;
  background: inherit;
  transform: skewY(-3deg);
  transform-origin: 0 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- 6. 网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

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

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

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.btn--amber {
  color: var(--ink-900);
  background: var(--amber);
  border-color: var(--amber-deep);
  box-shadow: 4px 4px 0 0 var(--amber-deep);
}

.btn--amber:hover {
  background: var(--amber-soft);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--amber-deep);
}

.btn--amber:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 0 var(--amber-deep);
}

.btn--ink {
  color: var(--paper);
  background: var(--ink-900);
  border-color: var(--ink-900);
  box-shadow: 4px 4px 0 0 var(--ink-700);
}

.btn--ink:hover {
  background: var(--ink-800);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink-700);
}

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

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

.btn--block {
  display: flex;
  width: 100%;
}

.btn--sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

/* ---------- 8. 标签 / 徽章 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.section--dark .eyebrow { color: var(--amber); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--charcoal);
  background: var(--card);
  border: 2px solid var(--ink-700);
}

.chip--amber {
  color: var(--ink-900);
  background: var(--amber);
  border-color: var(--amber-deep);
}

.chip[data-copied="true"] {
  background: var(--amber-soft);
  border-color: var(--amber);
}

/* ---------- 9. 纸卡 ---------- */
.card {
  position: relative;
  padding: 20px;
  color: var(--charcoal);
  background: var(--card);
  border: 2px solid var(--ink-700);
  box-shadow: var(--shadow-hard);
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 0 var(--ink-700);
}

.card--dark {
  color: var(--paper);
  background: var(--ink-800);
  border-color: var(--ink-700);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, .35);
}

.card--dark:hover {
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, .45);
}

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; }

/* ---------- 10. 章节头 ---------- */
.chapter {
  position: relative;
  padding-block: 56px;
}

.chapter__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding-bottom: 18px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--ink-700);
}

.section--dark .chapter__head {
  border-bottom-color: rgba(244, 237, 224, .28);
}

.chapter__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
}

.section--dark .chapter__num { color: var(--amber); }

.chapter__title {
  font-size: clamp(26px, 3.4vw, 40px);
}

.chapter__lead {
  flex: 1 1 320px;
  max-width: 56ch;
  font-size: 15px;
  color: var(--smoke);
}

.section--dark .chapter__lead { color: rgba(244, 237, 224, .72); }

[data-chapter] {
  transition: opacity 220ms var(--ease);
}

/* ---------- 11. 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--smoke);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumbs li::after {
  content: "/";
  color: var(--ink-700);
  opacity: .55;
}

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

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

.crumbs a:hover {
  color: var(--amber-deep);
  border-bottom-color: currentColor;
}

.section--dark .crumbs { color: rgba(244, 237, 224, .66); }
.section--dark .crumbs li::after { color: rgba(244, 237, 224, .4); }
.section--dark .crumbs a:hover { color: var(--amber); }

/* ---------- 12. 长文与列表 ---------- */
.prose {
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.75;
}

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

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 28px);
}

.prose h3 {
  margin-top: 1.7em;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

.prose ul,
.prose ol { margin-top: 1em; }

.prose li {
  position: relative;
  padding-left: 1.6em;
  margin-block: .45em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 2px;
  background: var(--amber-deep);
}

.prose ol { counter-reset: proseitem; }

.prose ol li { counter-increment: proseitem; }

.prose ol li::before {
  content: counter(proseitem, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .12em;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-deep);
}

.prose blockquote {
  margin-block: 1.6em;
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  border-left: 4px solid var(--amber);
  background: var(--paper-2);
}

.section--dark .prose blockquote {
  background: rgba(244, 237, 224, .06);
}

.numlist {
  counter-reset: nl;
  border-top: 2px solid var(--ink-700);
}

.numlist > li {
  counter-increment: nl;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid var(--ink-700);
}

.numlist > li::before {
  content: counter(nl, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber-deep);
}

.section--dark .numlist,
.section--dark .numlist > li {
  border-color: rgba(244, 237, 224, .26);
}

.section--dark .numlist > li::before { color: var(--amber); }

.rule {
  height: 2px;
  border: 0;
  margin-block: 28px;
  background: var(--ink-700);
}

.section--dark .rule { background: rgba(244, 237, 224, .26); }

/* ---------- 13. 图片容器（页面阶段投放占位） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-800);
  border: 2px solid var(--ink-700);
  box-shadow: var(--shadow-hard);
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--sm { box-shadow: var(--shadow-hard-sm); }

.media--placeholder {
  background-image: repeating-linear-gradient(
    135deg,
    var(--ink-800) 0 12px,
    var(--ink-900) 12px 24px
  );
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

/* ---------- 14. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--paper);
  background: rgba(14, 42, 34, .9);
  border-bottom: 2px solid var(--ink-700);
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--ink-900);
  box-shadow: 0 4px 0 0 var(--ink-700);
}

.site-header[data-open="true"] {
  background: var(--ink-900);
}

.site-header__inner {
  position: relative;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  padding-inline: 16px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--amber);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.brand__note { display: none; }

/* 移动开关 */
.nav-toggle {
  position: relative;
  z-index: 97;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  color: var(--paper);
  border: 2px solid var(--ink-700);
  background: var(--ink-800);
}

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

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.nav-toggle__mark {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--amber);
  transition: background-color 160ms var(--ease);
}

.nav-toggle__mark::before,
.nav-toggle__mark::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--amber);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle__mark::before { top: -6px; }
.nav-toggle__mark::after  { top: 6px; }

.site-header[data-open="true"] .nav-toggle__mark { background: transparent; }
.site-header[data-open="true"] .nav-toggle__mark::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__mark::after  { transform: translateY(-6px) rotate(-45deg); }

/* 导航抽屉（移动优先） */
.site-nav {
  position: fixed;
  top: calc(var(--header-h) + 2px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 20px 32px;
  overflow-y: auto;
  background: var(--ink-900);
  color: var(--paper);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 240ms var(--ease), visibility 0s linear 240ms;
}

.site-header[data-open="true"] .site-nav {
  transform: translateY(0);
  visibility: visible;
  transition: transform 240ms var(--ease), visibility 0s linear 0s;
}

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

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  color: rgba(244, 237, 224, .84);
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(244, 237, 224, .12);
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--paper);
  background: var(--ink-800);
  border-left-color: var(--amber);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.site-nav__text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--amber);
  border-left-color: var(--amber-deep);
}

.site-nav__link[aria-current="page"] .site-nav__num { color: rgba(14, 42, 34, .62); }

.site-nav__foot { padding-top: 8px; }

/* 阅读进度刻度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(244, 237, 224, .14);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--amber);
}

/* 抽屉打开时锁定滚动 */
body.nav-open { overflow: hidden; }

/* ---------- 15. 页头：桌面侧边轨道 ---------- */
@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    height: 100dvh;
    background: var(--ink-900);
    border-bottom: 0;
    border-right: 2px solid var(--ink-700);
    box-shadow: none;
  }

  .site-header[data-scrolled="true"] {
    box-shadow: 6px 0 0 0 rgba(36, 86, 74, .45);
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    padding: 0;
    gap: 0;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 20px 14px 18px;
    border-bottom: 2px solid var(--ink-700);
  }

  .brand__mark { font-size: 27px; }
  .brand__name { font-size: 13px; letter-spacing: 0.2em; }

  .brand__note {
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(244, 237, 224, .55);
  }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    z-index: auto;
    padding: 14px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .site-nav__list {
    gap: 2px;
    padding-inline: 10px;
  }

  .site-nav__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-height: auto;
    padding: 7px 6px;
    font-size: 11.5px;
    line-height: 1.32;
    border-left: 2px solid transparent;
    border-bottom: 0;
  }

  .site-nav__num { font-size: 9.5px; }

  .site-nav__text {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    word-break: break-word;
  }

  .site-nav__link[aria-current="page"] {
    border-left-color: var(--amber-deep);
    border-bottom: 0;
  }

  .site-nav__foot {
    padding: 14px 10px 18px;
  }

  .site-nav__foot .btn {
    min-height: 56px;
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.04em;
  }

  .scroll-meter {
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    background: rgba(244, 237, 224, .12);
  }

  .scroll-meter__fill {
    width: 100%;
    height: var(--progress, 0%);
  }

  #main-content {
    scroll-margin-top: 24px;
  }
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  padding-top: 48px;
  color: var(--paper);
  background: var(--ink-900);
  border-top: 2px solid var(--ink-700);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 6px;
  opacity: .55;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 24px,
    transparent 24px 48px
  );
}

.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 20px 40px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}

.site-footer__brand { max-width: 320px; }

.site-footer__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--paper);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 4px;
  transition: color 160ms var(--ease);
}

.site-footer__mark:hover { color: var(--amber); }

.site-footer__cn { display: inline; }

.site-footer__tag {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(244, 237, 224, .58);
}

.site-footer__ver {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(244, 237, 224, .58);
}

.site-footer__ver .mono { color: var(--amber); }

.footer-nav {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.footer-col__title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
  border-bottom: 2px solid var(--ink-700);
}

.footer-col__list {
  display: grid;
  gap: 7px;
}

.footer-col__list a {
  display: inline-block;
  padding-block: 3px;
  font-size: 14px;
  color: rgba(244, 237, 224, .78);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.footer-col__list a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 237, 224, .7);
  background: var(--ink-800);
  border-top: 2px solid var(--ink-700);
}

.site-footer__bar p { max-width: none; }

.site-footer__bar .mono { color: var(--paper); }

.site-footer__contact,
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
}

.dot {
  margin-inline: 8px;
  opacity: .45;
}

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .site-footer { padding-top: 60px; }
  .site-footer__inner { padding-inline: 40px; }
  .footer-col__list a { font-size: 14.5px; }
}

/* ---------- 17. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .skip-link {
    transition: none;
  }
}
