/* =========================================================
   老版财神到站 · 共享站点样式 /assets/site.css
   书脊式框架导航 + 档案纸阅读面
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

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

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

button {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

main { display: block; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #2A2320;
  --vermilion: #A83226;
  --vermilion-deep: #7E1F1A;
  --vermilion-shadow: #5A1411;
  --gold: #C8A24A;
  --gold-bright: #E6C77E;
  --cream: #F6EEDD;
  --paper: #E8D6B4;
  --pine: #1E3A31;
  --sage: #7C8F84;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --rail-w: 248px;
  --hairline: 1px solid rgba(200, 162, 74, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 31px,
    rgba(200, 162, 74, 0.12) 31px 32px
  );
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(40px, 5.6vw, 72px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 20px; }

p { text-wrap: pretty; }

::selection {
  background: var(--vermilion);
  color: var(--cream);
}

/* ---------- 4. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(126, 31, 26, 0.55);
}

.site-footer :focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(30, 58, 49, 0.9);
}

/* ---------- 5. 跳过导航 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--gold-bright);
  background: var(--ink);
  border: 1px solid var(--gold);
  transition: transform 180ms var(--ease);
}

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

/* ---------- 6. 容器与长文 ---------- */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.wrap--narrow {
  max-width: 760px;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
}

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

.prose h2 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-size: clamp(22px, 2.4vw, 28px);
  padding-bottom: 0.4em;
  border-bottom: var(--hairline);
}

.prose ul {
  margin: 1em 0;
  display: grid;
  gap: 0.5em;
}

.prose ul li {
  position: relative;
  padding-left: 1.4em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.prose a {
  color: var(--vermilion);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.prose a:hover {
  color: var(--vermilion-shadow);
  border-bottom-color: var(--gold-bright);
}

.prose blockquote {
  border-left: 2px solid var(--vermilion);
  padding-left: 18px;
  color: rgba(42, 35, 32, 0.82);
  font-family: var(--font-display);
  font-size: 19px;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    color 180ms var(--ease),
    border-color 200ms var(--ease);
}

.btn--primary {
  background: var(--vermilion);
  color: var(--cream);
  border-color: var(--vermilion-shadow);
  clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 14px) 100%, 0 100%);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--vermilion-shadow);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--gold {
  color: var(--vermilion-deep);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232, 214, 180, 0.55), rgba(246, 238, 221, 0.2));
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--vermilion-shadow);
}

.btn--quiet {
  color: var(--gold-bright);
  border-color: rgba(200, 162, 74, 0.65);
  background: rgba(200, 162, 74, 0.06);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  color: var(--vermilion-shadow);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

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

.breadcrumb li + li::before {
  content: "／";
  color: var(--gold);
  margin-inline: 0.55em;
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.breadcrumb a:hover {
  color: var(--vermilion);
  border-bottom-color: var(--gold);
}

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

/* ---------- 9. 章节头 ---------- */
.section-head {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: var(--hairline);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--vermilion);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(24px, 2.8vw, 34px);
}

.section-note {
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--sage);
}

/* ---------- 10. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 2.8vw, 32px);
}

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

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

.stack { display: grid; gap: 14px; }
.stack--loose { gap: 26px; }

/* ---------- 11. 面板与分隔 ---------- */
.panel {
  background: var(--paper);
  border: 1px solid rgba(200, 162, 74, 0.5);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

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

.panel--dark {
  background: var(--pine);
  color: rgba(246, 238, 221, 0.88);
  border-color: rgba(200, 162, 74, 0.4);
}

.panel--dark h2,
.panel--dark h3 {
  color: var(--cream);
}

.hairline {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, var(--gold), rgba(200, 162, 74, 0.08));
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.22);
  vertical-align: middle;
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: var(--vermilion-deep);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  cursor: pointer;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

a.tag:hover,
.tag:hover {
  color: var(--vermilion);
  border-bottom-color: var(--gold-bright);
}

.tag--active {
  color: var(--cream);
  background: var(--vermilion);
  border-bottom-color: var(--vermilion-shadow);
  padding: 4px 10px 3px;
}

.tag--active:hover {
  color: var(--cream);
  background: var(--vermilion-shadow);
  border-bottom-color: var(--gold);
}

/* ---------- 13. 索引表 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-top: var(--hairline);
}

.index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}

.index-table th,
.index-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(200, 162, 74, 0.32);
}

.index-table th {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--vermilion-deep);
  white-space: nowrap;
}

.index-table tbody tr:nth-child(even) {
  background: rgba(232, 214, 180, 0.35);
}

.index-table a {
  color: var(--vermilion);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.index-table a:hover {
  color: var(--vermilion-shadow);
  border-bottom-color: var(--gold-bright);
}

/* ---------- 14. 图片容器基础 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(200, 162, 74, 0.55);
}

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

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

.media--placeholder {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(200, 162, 74, 0.18) 0 2px,
    transparent 2px 12px
  );
}

.media-caption {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--sage);
}

.media-caption::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 15. 手风琴基础 ---------- */
.accordion {
  border-bottom: 1px solid rgba(200, 162, 74, 0.4);
}

.accordion summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--vermilion);
  transition: color 180ms var(--ease);
}

.accordion summary:hover { color: var(--vermilion-deep); }

.accordion[open] summary { color: var(--vermilion-deep); }
.accordion[open] summary::after { content: "－"; color: var(--gold); }

.accordion-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--sage);
  border: 1px solid rgba(200, 162, 74, 0.5);
  padding: 1px 6px;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.accordion[open] .accordion-num {
  color: var(--gold-bright);
  background: var(--vermilion);
  border-color: var(--vermilion-shadow);
}

.accordion-body {
  padding: 0 4px 20px;
  max-width: 64ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(42, 35, 32, 0.86);
}

/* ---------- 16. 站点页头（书脊） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--cream);
  background: var(--vermilion-deep);
  border-bottom: 1px solid rgba(200, 162, 74, 0.5);
  box-shadow: 0 12px 32px -24px rgba(42, 35, 32, 0.9);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 26px);
  background: linear-gradient(180deg, #8B2820 0%, #7E1F1A 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-bright);
  background: rgba(90, 20, 17, 0.65);
  border: 1px solid rgba(200, 162, 74, 0.85);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.brand:hover .brand-seal,
.brand:focus-visible .brand-seal {
  color: var(--cream);
  border-color: var(--gold-bright);
}

.brand-lockup {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--cream);
}

.brand-tagline {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--gold);
}

/* 折叠按钮 */
.nav-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cream);
  background: rgba(90, 20, 17, 0.45);
  border: 1px solid rgba(200, 162, 74, 0.7);
  cursor: pointer;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background-color 180ms var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  color: var(--gold-bright);
  background: rgba(90, 20, 17, 0.85);
  border-color: var(--gold-bright);
}

.nav-toggle-mark {
  position: relative;
  flex: none;
  width: 16px;
  height: 14px;
}

.nav-toggle-mark::before,
.nav-toggle-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}

.nav-toggle-mark::before { top: 3px; }
.nav-toggle-mark::after { top: 9px; }

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

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

.nav-toggle-label { line-height: 1; }

/* 抽屉 / 书脊主体 */
.rail {
  display: none;
  flex-direction: column;
  max-height: calc(100vh - 66px);
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  padding-bottom: 24px;
  background: linear-gradient(180deg, #6E1A15 0%, #5A1411 100%);
  border-top: 1px solid rgba(200, 162, 74, 0.35);
}

.site-header[data-open] .rail {
  display: flex;
}

/* 索引状态 */
.header-status {
  padding: 18px 20px 0;
}

.status-label {
  display: inline-block;
  padding-bottom: 4px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.utility-list {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.utility-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(246, 238, 221, 0.72);
}

.utility-code {
  flex: none;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--gold);
  border: 1px solid rgba(200, 162, 74, 0.45);
}

/* 老用户通道 */
.channel-entry {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 16px 0;
  padding: 11px 13px;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(200, 162, 74, 0.18), rgba(90, 20, 17, 0.75));
  border: 1px solid rgba(200, 162, 74, 0.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition:
    border-color 200ms var(--ease),
    background-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.channel-entry:hover,
.channel-entry:focus-visible {
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(200, 162, 74, 0.28), rgba(90, 20, 17, 0.92));
  box-shadow: inset 0 0 0 1px rgba(230, 199, 126, 0.35);
}

.channel-flag {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--vermilion-shadow);
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.channel-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.channel-label {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
}

.channel-note {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--gold-bright);
}

.channel-arrow {
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-bright);
  transition: transform 200ms var(--ease);
}

.channel-entry:hover .channel-arrow,
.channel-entry:focus-visible .channel-arrow {
  transform: translateX(4px);
}

/* 主导航 */
.site-nav {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(200, 162, 74, 0.3);
}

.nav-caption {
  margin: 0 20px 10px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: rgba(200, 162, 74, 0.85);
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 20px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: rgba(246, 238, 221, 0.8);
  border-left: 2px solid transparent;
  transition:
    color 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(200, 162, 74, 0.85);
  transition: color 180ms var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--cream);
  background: rgba(42, 35, 32, 0.28);
  border-left-color: var(--gold);
}

.nav-list a:hover .nav-index,
.nav-list a:focus-visible .nav-index {
  color: var(--gold-bright);
}

.nav-list a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(42, 35, 32, 0.42);
  border-left-color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(200, 162, 74, 0.3),
    inset 0 -1px 0 rgba(200, 162, 74, 0.3);
}

/* 书脊脚注 */
.rail-meta {
  display: grid;
  gap: 6px;
  margin: 20px 20px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 162, 74, 0.3);
}

.rail-meta-label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(246, 238, 221, 0.5);
}

.rail-link {
  width: fit-content;
  padding-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(200, 162, 74, 0.5);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--gold-bright);
}

/* 阅读进度 */
.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(200, 162, 74, 0.16);
  pointer-events: none;
}

.progress-meter {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
}

/* ---------- 17. 站点页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 84px);
  padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 40px) 28px;
  color: rgba(246, 238, 221, 0.86);
  background-color: var(--pine);
  background-image: linear-gradient(180deg, var(--vermilion-shadow) 0 6px, transparent 6px);
  border-top: 1px solid rgba(200, 162, 74, 0.5);
}

.footer-frame {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  max-width: 1160px;
  margin-inline: auto;
}

.footer-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid rgba(200, 162, 74, 0.3);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.footer-brand::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--gold);
}

.footer-lead-side {
  display: grid;
  gap: 14px;
  max-width: 40ch;
}

.footer-lead-note {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(246, 238, 221, 0.66);
}

.footer-cta {
  justify-self: start;
  padding: 11px 18px;
  font-size: 13.5px;
}

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 24px;
  align-content: start;
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold);
  border-bottom: 1px solid rgba(200, 162, 74, 0.32);
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: rgba(246, 238, 221, 0.84);
  background-image: linear-gradient(var(--gold-bright), var(--gold-bright));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 200ms var(--ease), color 180ms var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-bright);
  background-size: 100% 1px;
}

.footer-contact {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.7;
}

.contact-key {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.contact-value {
  color: rgba(246, 238, 221, 0.9);
  overflow-wrap: anywhere;
}

.footer-note {
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(246, 238, 221, 0.6);
  border-left: 2px solid var(--vermilion);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(200, 162, 74, 0.3);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(246, 238, 221, 0.58);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

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

.footer-legal-links a {
  text-decoration: none;
  color: rgba(246, 238, 221, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(246, 238, 221, 0.55);
}

/* ---------- 18. 断点 ---------- */
@media (max-width: 899px) {
  .grid--split,
  .grid--thirds {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 420px) {
  .brand-tagline {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .nav-toggle-label {
    display: none;
  }

  .contact-line {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1079px) {
  .site-header[data-open] .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header[data-open] .rail {
    padding-bottom: 28px;
  }
}

/* 桌面：导航成为固定书脊边框 */
@media (min-width: 1080px) {
  body {
    padding-left: var(--rail-w);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(200, 162, 74, 0.32);
    border-bottom: 0;
    box-shadow: 1px 0 0 rgba(42, 35, 32, 0.25);
  }

  .header-bar {
    display: block;
    flex: none;
    padding: 26px 20px 20px;
    border-bottom: 1px solid rgba(200, 162, 74, 0.28);
  }

  .brand {
    width: 100%;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 18px;
    white-space: normal;
  }

  .brand-tagline {
    font-size: 10px;
    line-height: 1.6;
    white-space: normal;
  }

  .nav-toggle {
    display: none;
  }

  .rail {
    display: flex;
    flex: 1;
    min-height: 0;
    max-height: none;
    padding-bottom: 28px;
    border-top: 0;
    overflow-y: auto;
  }

  .site-header[data-open] .rail {
    display: flex;
  }

  .header-status {
    padding-top: 22px;
  }

  .site-nav {
    margin-top: 24px;
  }

  .nav-list a {
    padding-block: 10px;
  }
}

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

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

  .progress-meter {
    transition: none;
  }

  .channel-entry:hover .channel-arrow,
  .channel-entry:focus-visible .channel-arrow {
    transform: none;
  }
}
