/* =========================================================
   优乐在线 · 共享样式 /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) + 20px);
}

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --night: #0E2A47;
  --night-deep: #081D33;
  --teal: #123C3A;
  --indigo: #2F2A5A;
  --orange: #E07A3F;
  --orange-deep: #C2642F;
  --celadon: #7FA99B;
  --gold: #C9A86A;
  --gold-soft: rgba(201, 168, 106, 0.42);
  --wine: #7A2E3A;
  --paper: #F4EFE6;
  --paper-warm: #FBF7F0;
  --grey: #D9D2C5;
  --ink: #1B1B1B;
  --mist: #B9CBD6;
  --muted: #5A6470;

  /* 字体 */
  --font-head: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --container: 1240px;
  --header-h: 88px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(16px, 4vw, 24px);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: inherit;
  overflow-wrap: break-word;
}

h1, .h1 { font-size: clamp(34px, 4.4vw, 48px); }
h2, .h2 { font-size: clamp(26px, 3vw, 36px); }
h3, .h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4, .h4 { font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -0.01em; }

p { overflow-wrap: break-word; }

a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

/* ---------- 4. 可见焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.section--night :focus-visible,
.section--teal :focus-visible,
.section--indigo :focus-visible,
.site-footer :focus-visible,
.site-header :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 5. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.muted { color: var(--muted); }

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

.stack > * + * { margin-top: 1rem; }

/* ---------- 6. 布局容器与章节 ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
}

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

.section--night {
  background-color: var(--night);
  color: rgba(244, 239, 230, 0.86);
}
.section--teal {
  background-color: var(--teal);
  color: var(--paper);
}
.section--indigo {
  background-color: var(--indigo);
  color: var(--paper);
}
.section--warm {
  background-color: var(--paper-warm);
}

.section--night h1, .section--night h2, .section--night h3,
.section--teal h1, .section--teal h2, .section--teal h3,
.section--indigo h1, .section--indigo h2, .section--indigo h3 {
  color: var(--paper);
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 64ch;
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}

.section-num::after {
  content: "";
  width: clamp(24px, 6vw, 64px);
  height: 1px;
  background: var(--gold);
}

.section--night .section-num,
.section--teal .section-num,
.section--indigo .section-num {
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: var(--indigo);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  border-radius: 1px;
}

.eyebrow--gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
}

/* ---------- 7. 网格 ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }

.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--split,
  .grid--split-rev,
  .grid--thirds {
    grid-template-columns: 1fr;
  }
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  background: var(--paper-warm);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  transition: transform 180ms var(--ease),
              border-color 180ms var(--ease),
              background-color 180ms var(--ease);
}

a.card,
.card--hover {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card:hover,
.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

a.card:focus-visible,
.card--hover:focus-visible {
  transform: translateY(-3px);
}

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

.card--frame {
  background: rgba(244, 239, 230, 0.06);
  border-color: rgba(244, 239, 230, 0.24);
  color: rgba(244, 239, 230, 0.86);
}

.card--glass {
  background: rgba(244, 239, 230, 0.09);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(244, 239, 230, 0.22);
  color: rgba(244, 239, 230, 0.9);
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms var(--ease),
              color 160ms var(--ease),
              border-color 160ms var(--ease),
              transform 160ms var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #10233A;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--night);
  color: var(--paper);
  border-color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--gold-soft);
}
.btn-ghost:hover {
  background: rgba(201, 168, 106, 0.14);
  border-color: var(--gold);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--night);
  border-color: var(--night);
}
.btn-outline:hover {
  background: var(--night);
  color: var(--paper);
}

.btn-quiet {
  background: transparent;
  color: var(--night);
  border: 0;
  border-bottom: 1px solid var(--orange);
  border-radius: 0;
  padding: 6px 0;
}
.btn-quiet:hover { color: var(--wine); border-bottom-color: var(--wine); }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb { padding-block: 18px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

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

.breadcrumb-list a {
  text-decoration: none;
  color: var(--night);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}
.breadcrumb-list a:hover { border-bottom-color: var(--orange); }

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

/* ---------- 11. 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
}

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

.prose h2 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose ul {
  list-style: none;
  margin: 1em 0;
  padding-left: 0;
}
.prose li {
  position: relative;
  padding-left: 20px;
  margin-top: 0.5em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.prose a {
  color: var(--wine);
  text-decoration: underline;
}

/* ---------- 12. 横向信息带 ---------- */
.info-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--grey);
  background: var(--paper-warm);
}

.info-band-item {
  padding: 16px 18px;
  border-right: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
}

.info-band-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-band-value {
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.section--night .info-band,
.section--teal .info-band,
.section--indigo .info-band {
  background: rgba(244, 239, 230, 0.06);
  border-color: rgba(244, 239, 230, 0.22);
}
.section--night .info-band-item,
.section--teal .info-band-item,
.section--indigo .info-band-item {
  border-color: rgba(244, 239, 230, 0.18);
}
.section--night .info-band-label,
.section--teal .info-band-label,
.section--indigo .info-band-label { color: var(--gold); }

/* ---------- 13. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--grey);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--muted);
}

.tag--gold {
  border-color: var(--gold-soft);
  color: #8A6F3E;
  background: rgba(201, 168, 106, 0.1);
}

.tag--celadon {
  border-color: var(--celadon);
  color: #2F5C52;
  background: rgba(127, 169, 155, 0.14);
}

.tag--wine {
  border-color: var(--wine);
  color: var(--wine);
  background: rgba(122, 46, 58, 0.08);
}

.section--night .tag,
.section--teal .tag,
.section--indigo .tag {
  border-color: rgba(244, 239, 230, 0.3);
  color: rgba(244, 239, 230, 0.82);
  background: rgba(244, 239, 230, 0.06);
}

/* ---------- 14. 响应式图片容器 ---------- */
.figure { margin: 0; }

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--night) 0%, var(--teal) 100%);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
}

.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame--plate { aspect-ratio: 4 / 3; }
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }

.figure-frame--plain {
  background: var(--paper-warm);
  border-style: dashed;
  border-color: var(--mist);
}

.section--night .figure-frame,
.section--teal .figure-frame,
.section--indigo .figure-frame {
  border-color: rgba(244, 239, 230, 0.24);
}

.figure-cap {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.section--night .figure-cap,
.section--teal .figure-cap,
.section--indigo .figure-cap {
  color: rgba(244, 239, 230, 0.64);
}

/* ---------- 15. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--night);
  border: 2px solid var(--orange);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 160ms var(--ease);
}

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

/* ---------- 16. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  color: var(--paper);
  background-color: rgba(14, 42, 71, 0);
  background-image: linear-gradient(
    180deg,
    rgba(8, 29, 51, 0.84) 0%,
    rgba(8, 29, 51, 0.42) 58%,
    rgba(8, 29, 51, 0) 100%
  );
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.site-header.is-solid {
  background-color: var(--night);
  background-image: none;
  box-shadow: 0 1px 0 var(--gold-soft), 0 18px 32px -30px rgba(0, 0, 0, 0.9);
}

.header-inner {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  border-radius: var(--radius);
  transform: rotate(-2deg);
  transition: transform 180ms var(--ease);
}

.brand:hover .brand-mark { transform: rotate(0deg); }

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

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand-line {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 移动端目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.12);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 230, 0.86);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.nav-idx {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.62;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
}

.header-cta {
  padding: 11px 18px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(201, 168, 106, 0.16);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
}

@media (max-width: 1100px) {
  .nav-link { padding: 11px 7px; font-size: 13px; }
  .nav-idx { display: none; }
  .primary-nav { gap: 10px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }

  .header-inner { gap: 12px; padding-block: 8px; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 0 20px;
    background: var(--night);
    border-top: 1px solid var(--gold-soft);
    box-shadow: 0 26px 42px -30px rgba(0, 0, 0, 0.95);
    max-height: calc(100vh - var(--header-h) - 8px);
    overflow-y: auto;
  }

  .primary-nav[data-open="true"] { display: flex; }

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

  .nav-link {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  }

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

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(244, 239, 230, 0.06);
  }

  .nav-link[aria-current="page"] {
    background: rgba(201, 168, 106, 0.12);
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .nav-idx {
    display: inline;
    opacity: 0.72;
  }

  .header-actions {
    padding: 16px 24px 0;
  }

  .header-cta {
    width: 100%;
    padding: 13px 18px;
    font-size: 14px;
  }
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--night);
  color: rgba(244, 239, 230, 0.76);
  border-top: 1px solid var(--gold-soft);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold) 0 11%,
    var(--orange) 11% 26%,
    var(--celadon) 26% 38%,
    transparent 38% 100%
  );
}

.footer-inner {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px) 28px;
}

@media (max-width: 640px) {
  .footer-inner { width: calc(100% - 32px); }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.footer-summary {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 239, 230, 0.72);
}

.footer-meta {
  margin-top: 18px;
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.footer-nav-title {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--celadon);
}

.footer-nav-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list a {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  font-size: 14.5px;
  color: rgba(244, 239, 230, 0.8);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.footer-nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--gold);
  transition: width 160ms var(--ease);
}

.footer-nav-list a:hover {
  color: var(--gold);
}

.footer-nav-list a:hover::before {
  width: 13px;
}

.footer-contact-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-item {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(244, 239, 230, 0.14);
}

.footer-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--celadon);
}

.footer-value {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.92);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(244, 239, 230, 0.13);
}

.footer-copy {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.68);
}

.footer-note {
  max-width: 56ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.56);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-name { font-size: 22px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 18. 目录滚动高亮协议 ---------- */
[data-section-link] {
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

[data-section-link][data-current="true"] {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- 19. 减少动态效果 ---------- */
@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;
  }

  a.card:hover,
  .card--hover:hover,
  .brand:hover .brand-mark {
    transform: none;
  }
}
