/* ==========================================================================
   财神到服务中心 · 共享样式表 /assets/site.css
   墨黑 · 玄褐 · 宣纸白 · 云白 · 鎏金 · 朱砂红 · 玉青 · 淡金砂 · 石青灰
   ========================================================================== */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

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

h1, h2, h3, h4, h5, h6 { line-height: 1.28; font-weight: 600; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #14110D;
  --ink-soft: #2B241B;
  --paper: #F7F2E7;
  --cloud: #FFFFFF;
  --gold: #C6A15B;
  --gold-light: #E9CE8C;
  --cinnabar: #B5342C;
  --jade: #2F6E63;
  --sand: #EFE3C6;
  --stone: #6E655A;

  --line: rgba(20, 17, 13, 0.10);
  --gold-12: rgba(198, 161, 91, 0.12);
  --gold-28: rgba(198, 161, 91, 0.28);
  --gold-45: rgba(198, 161, 91, 0.45);

  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --shell-narrow: 880px;
  --gutter: 28px;
  --header-h: 84px;
  --header-h-condensed: 64px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-1: 0 1px 2px rgba(20, 17, 13, 0.05), 0 12px 28px -22px rgba(20, 17, 13, 0.42);
}

@media (max-width: 900px) {
  :root {
    --gutter: 18px;
    --header-h: 66px;
    --header-h-condensed: 60px;
  }
}

/* ---------- 3. 页面基底与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 50% -12%, rgba(233, 206, 140, 0.38), rgba(233, 206, 140, 0) 72%),
    repeating-linear-gradient(0deg, rgba(20, 17, 13, 0.016) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

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

.text-center { text-align: center; }

.stack > * + * { margin-top: var(--stack-gap, 16px); }

/* ---------- 4. 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 11px 20px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(247, 242, 231, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--gold-28);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-condensed {
  box-shadow: 0 1px 0 var(--gold-28), 0 14px 26px -26px rgba(20, 17, 13, 0.75);
}

.site-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: min-height 0.28s var(--ease);
}

@media (min-width: 901px) {
  .site-header.is-condensed .site-header__inner { min-height: var(--header-h-condensed); }
}

.site-header__rule {
  flex: 1 1 auto;
  min-width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-45), var(--gold) 45%, var(--gold-28));
  opacity: 0.9;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__seal {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  background: var(--cinnabar);
  color: #FBF5E9;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(20, 17, 13, 0.14);
}

.brand__text { display: flex; flex-direction: column; }

.brand__mark {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand__sub {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.34em;
  color: var(--stone);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

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

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.18s var(--ease);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone);
  transform: translateY(-2px);
  transition: color 0.18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--gold); }

.site-nav__cta { margin-left: 14px; }

/* 移动目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--gold-28);
  border-radius: var(--radius);
  background: var(--cloud);
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); background: var(--sand); }
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); background: var(--sand); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}
.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-toggle__label {
  font-size: 13.5px;
  letter-spacing: 0.1em;
}

/* 滚动进度金线 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold) 55%, var(--cinnabar));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* 移动端导航形态 */
@media (max-width: 900px) {
  .site-header__rule { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 8px var(--gutter) 22px;
    background: var(--paper);
    border-top: 1px solid var(--gold-28);
    border-bottom: 1px solid var(--gold-28);
    box-shadow: 0 20px 32px -26px rgba(20, 17, 13, 0.8);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear;
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__link::after {
    left: 4px;
    right: auto;
    bottom: 8px;
    width: 30px;
  }

  .site-nav__cta {
    margin: 16px 0 0;
    width: 100%;
  }
}

/* ---------- 6. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section {
  position: relative;
  padding-block: clamp(38px, 5.5vw, 70px);
}
.section + .section { border-top: 1px solid var(--gold-28); }
.section--sand {
  background: linear-gradient(180deg, rgba(239, 227, 198, 0.62), rgba(239, 227, 198, 0.2));
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}
.grid--editorial { grid-template-columns: minmax(150px, 22%) minmax(0, 1fr); }
.grid--wide-right { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

/* 左侧注释栏 */
.annotation {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h-condensed) + 22px);
}
.annotation__block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gold-28);
}
.annotation__block:last-child { border-bottom: 0; margin-bottom: 0; }
.annotation__label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.annotation__value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
}
.annotation__text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--stone);
}
@media (max-width: 900px) {
  .annotation { position: static; }
}

/* ---------- 7. 文字层 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 26px;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.section__title--lg { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.2; }

.section__note {
  font-size: 14px;
  color: var(--stone);
}

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

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose p { line-height: 1.85; }
.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  margin-top: 1.7em;
  margin-bottom: 0.55em;
}
.prose h2 { font-size: clamp(21px, 2.4vw, 26px); }
.prose h3 { font-size: 19px; }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li { margin-block: 0.35em; line-height: 1.8; }
.prose a {
  border-bottom: 1px solid var(--gold);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.prose a:hover { color: var(--gold); border-bottom-color: var(--ink); }
.prose strong { font-weight: 600; }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--gold-light);
}
.btn--ghost {
  border-color: var(--gold);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--sand); }
.btn--seal {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #FBF5E9;
}
.btn--seal:hover { background: #952A23; border-color: #952A23; }
.btn--sm { padding: 8px 15px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  font-size: 13.5px;
  color: var(--stone);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs__link {
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.breadcrumbs__link:hover { color: var(--ink); border-bottom-color: var(--gold); }
.breadcrumbs__sep {
  font-family: var(--font-mono);
  color: var(--gold);
}
.breadcrumbs__item [aria-current="page"] { color: var(--ink); }

/* ---------- 10. 资料卡与标签 ---------- */
.record {
  position: relative;
  padding: 22px 24px;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.record:hover {
  border-left-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 2px 3px rgba(20, 17, 13, 0.05), 0 20px 36px -28px rgba(20, 17, 13, 0.6);
}
.record__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.record__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.record__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--stone);
}
.record__body {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.record__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gold-28);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--sand);
  border: 1px solid var(--gold-28);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.tag--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tag--jade {
  background: rgba(47, 110, 99, 0.10);
  border-color: rgba(47, 110, 99, 0.45);
  color: #235850;
}
.tag--seal {
  background: rgba(181, 52, 44, 0.10);
  border-color: rgba(181, 52, 44, 0.42);
  color: #8E2A23;
}
.tag--muted { background: transparent; border-color: var(--line); color: var(--stone); }
.tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* 标签筛选条 */
.tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tagbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--cloud);
  border: 1px solid var(--gold-28);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}
.tagbar__item:hover { background: var(--sand); border-color: var(--gold); }
.tagbar__item[aria-pressed="true"],
.tagbar__item[aria-current="true"] {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--gold-light);
}

/* ---------- 11. 折叠面板 ---------- */
.panel {
  background: var(--cloud);
  border: 1px solid var(--gold-28);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel + .panel { margin-top: 10px; }

.panel__head {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}

.panel__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(239, 227, 198, 0.72), rgba(239, 227, 198, 0.34));
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.18s var(--ease);
}
.panel__trigger:hover { background: var(--sand); }
.panel__trigger[aria-expanded="true"] { background: var(--sand); }

.panel__icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}
.panel__icon::before,
.panel__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.24s var(--ease);
}
.panel__icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  margin-top: -0.5px;
}
.panel__icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
}
.panel__trigger[aria-expanded="true"] .panel__icon::after { transform: scaleY(0); }

.panel__body {
  padding: 16px 20px 20px;
  background: var(--cloud);
  border-top: 1px solid var(--gold-28);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.panel__body > * + * { margin-top: 0.85em; }

/* ---------- 12. 步骤条 ---------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: var(--cloud);
  border: 1px solid var(--gold-28);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.steps__index {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--sand);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.steps__item[aria-current="step"] {
  border-color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.steps__item[aria-current="step"] .steps__index {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- 13. 图像容器（页面阶段放置图片） ---------- */
.figure {
  position: relative;
  margin: 0;
  background: var(--sand);
  border: 1px solid var(--gold-28);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure__media {
  position: relative;
  width: 100%;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--16x9 .figure__media { aspect-ratio: 16 / 9; }
.figure--4x3 .figure__media { aspect-ratio: 4 / 3; }
.figure--1x1 .figure__media { aspect-ratio: 1 / 1; }
.figure--21x9 .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 3 / 4; }

.figure__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image:
    repeating-linear-gradient(135deg, rgba(198, 161, 91, 0.16) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #F3EAD5, var(--paper));
}
.figure__placeholder span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--stone);
}

.figure__caption {
  padding: 10px 14px;
  background: var(--cloud);
  border-top: 1px solid var(--gold-28);
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
}

/* ---------- 14. 分隔装饰 ---------- */
.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 48px);
  background: linear-gradient(90deg, transparent, var(--gold-45) 18%, var(--gold) 50%, var(--gold-45) 82%, transparent);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink-soft);
  color: #E7DFCE;
  border-top: 2px solid var(--gold);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.55;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 60px) var(--gutter) 26px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

.site-footer__brand { min-width: 0; }

.brand--footer .brand__mark { color: #FBF5E9; }
.brand--footer .brand__sub { color: rgba(233, 206, 140, 0.8); }
.brand--footer .brand__seal { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); }

.site-footer__tagline {
  margin-top: 15px;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(231, 223, 206, 0.76);
}

.site-footer__col { min-width: 0; }

.site-footer__col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.site-footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(231, 223, 206, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.site-footer__link:hover { color: var(--gold-light); border-bottom-color: var(--gold-45); }
.site-footer__link[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

.site-footer__contact {
  display: grid;
  gap: 13px;
  margin: 0;
}
.site-footer__contact-row { min-width: 0; }
.site-footer__contact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(233, 206, 140, 0.72);
}
.site-footer__contact dd {
  margin: 3px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(231, 223, 206, 0.9);
  overflow-wrap: anywhere;
}
.site-footer__mono {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(233, 206, 140, 0.22);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(231, 223, 206, 0.68);
}
.site-footer__legal {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(231, 223, 206, 0.82);
}
.site-footer__note { max-width: 60ch; }
.site-footer__year {
  font-family: var(--font-mono);
  color: rgba(233, 206, 140, 0.82);
}

/* ---------- 16. 滚动显现 ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .has-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress { transition: none; }
  .record:hover { transform: none; }
}
