/* ============================================================
   拉菲会馆 · /assets/site.css
   共享层：reset / tokens / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0F1216;
  --ink-2: #12161C;
  --slate: #1A1F27;
  --steel: #2E3A4A;
  --wine: #7B1E2B;
  --wine-lift: #A8323F;
  --gold: #C9A227;
  --gold-glow: #E8CE7A;
  --cyan: #4FD1C5;
  --warm: #EDE9E3;
  --mist: #9AA6B2;

  --line-soft: rgba(237, 233, 227, 0.10);
  --line-steel: rgba(46, 58, 74, 0.85);
  --line-gold: rgba(201, 162, 39, 0.42);

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* 字体 */
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, 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", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 176px;

  /* 悬浮锚点 */
  --dock-r: 26px;
  --dock-b: 26px;
  --dock-size: 74px;

  --shadow-panel: 0 18px 44px rgba(0, 0, 0, 0.52);
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 640px at 78% -10%, rgba(123, 30, 43, 0.42), transparent 62%),
    radial-gradient(920px 540px at 4% 10%, rgba(46, 58, 74, 0.55), transparent 66%),
    var(--ink);
  color: var(--warm);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-family: var(--font-sans); font-weight: 700; }

p { overflow-wrap: break-word; }

strong { color: var(--warm); font-weight: 700; }

::selection { background: rgba(201, 162, 39, 0.32); color: #fff; }

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

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--panel {
  background: linear-gradient(180deg, rgba(26, 31, 39, 0.78), rgba(15, 18, 22, 0.28));
  border-block: 1px solid var(--line-soft);
}

.divider { height: 1px; background: linear-gradient(90deg, rgba(46, 58, 74, 0.9), transparent); border: 0; }

.rule-hair {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.45), rgba(46, 58, 74, 0.8), transparent);
}

.shift-down { margin-top: 36px; }
.shift-up { margin-top: -36px; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: 7fr 5fr; gap: 34px; }
.grid--5-7 { grid-template-columns: 5fr 7fr; gap: 34px; }

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 21px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-steel);
  background: transparent;
  color: var(--warm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.26s ease,
              background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-lift) 58%, #B8452F 100%);
  border-color: rgba(201, 162, 39, 0.58);
  color: #FBF3E4;
  box-shadow: 0 8px 24px rgba(123, 30, 43, 0.45), inset 0 1px 0 rgba(232, 206, 122, 0.35);
}

.btn--gold:hover {
  box-shadow: 0 12px 32px rgba(123, 30, 43, 0.58), 0 0 0 1px rgba(232, 206, 122, 0.62);
}

.btn--ghost { background: rgba(46, 58, 74, 0.34); }

.btn--ghost:hover { border-color: var(--cyan); color: #ffffff; }

.btn--cyan {
  background: rgba(79, 209, 197, 0.12);
  border-color: rgba(79, 209, 197, 0.55);
  color: #BFF3EE;
}

.btn--cyan:hover { background: rgba(79, 209, 197, 0.2); }

.btn--sm { padding: 8px 15px; font-size: 13px; }

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--gold);
  color: #15100A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(15, 18, 22, 0.97), rgba(15, 18, 22, 0.92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.signal-bar {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: linear-gradient(90deg,
    var(--wine) 0%, var(--wine-lift) 20%, var(--gold) 50%,
    var(--cyan) 84%, var(--steel) 100%);
}

.signal-bar__fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(232, 206, 122, 0.92), var(--gold) 55%, var(--cyan));
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.65);
  transition: transform 0.12s linear;
}

/* 居中刊头 */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0 12px;
}

.masthead__utility {
  display: flex;
  align-items: center;
  gap: 20px;
}

.masthead__action { display: flex; justify-content: flex-end; }

.masthead__brand { text-align: center; }

.masthead__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-indent: 0.3em;
}

.masthead__wordmark {
  position: relative;
  display: inline-block;
  padding: 2px 10px 6px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--warm);
  text-shadow: 0 0 26px rgba(201, 162, 39, 0.24);
}

.masthead__wordmark::after {
  content: "";
  position: absolute;
  left: 14%; right: 14%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.9;
}

.masthead__sub {
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.utility-link {
  position: relative;
  padding: 4px 0;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  transition: color 0.22s ease;
}

.utility-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transition: right 0.26s ease;
}

.utility-link:hover { color: var(--warm); }
.utility-link:hover::after { right: 0; }

.rule-gold {
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(201, 162, 39, 0.55) 18%,
    rgba(46, 58, 74, 0.85) 50%,
    rgba(201, 162, 39, 0.55) 82%, transparent);
}

/* ---------- 7. 导航 ---------- */
.site-nav {
  background: linear-gradient(180deg, rgba(26, 31, 39, 0.72), rgba(15, 18, 22, 0.5));
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 12px 15px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-list a:hover {
  color: var(--warm);
  background: rgba(46, 58, 74, 0.45);
}

.nav-list a[aria-current="page"] {
  color: var(--gold-glow);
  background: rgba(201, 162, 39, 0.08);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0.18));
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.6);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-steel);
  background: rgba(46, 58, 74, 0.4);
  color: var(--warm);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle__bars::before {
  top: 0;
  box-shadow: 0 5px 0 var(--gold-glow);
}

.nav-toggle__bars::after { bottom: 0; }

.site-nav[data-open] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
  box-shadow: none;
  background: var(--cyan);
}

.site-nav[data-open] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
  background: var(--cyan);
}

/* ---------- 8. 右下常驻设置锚点 / 返回顶部 ---------- */
.dock {
  position: fixed;
  right: var(--dock-r);
  bottom: var(--dock-b);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--dock-size);
  height: var(--dock-size);
  border-radius: 22px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: linear-gradient(150deg, rgba(26, 31, 39, 0.97), rgba(15, 18, 22, 0.99));
  color: var(--gold-glow);
  box-shadow: var(--shadow-panel);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.26s ease;
}

.dock:hover {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.62),
              0 0 0 1px rgba(232, 206, 122, 0.68),
              0 0 34px rgba(201, 162, 39, 0.32);
}

.dock__ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 1px dashed rgba(79, 209, 197, 0.38);
  animation: dockBreath 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dockBreath {
  0%, 100% { opacity: 0.42; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.05); }
}

.dock__sliders {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.dock__sliders i {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.25), var(--gold));
}

.dock__sliders i:nth-child(1) { top: 0; }
.dock__sliders i:nth-child(2) { top: 7px; }
.dock__sliders i:nth-child(3) { top: 14px; }

.dock__sliders i::after {
  content: "";
  position: absolute;
  top: -2.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.9);
}

.dock__sliders i:nth-child(1)::after { left: 13px; }
.dock__sliders i:nth-child(2)::after { left: 3px; }
.dock__sliders i:nth-child(3)::after { left: 15px; }

.dock__label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

.to-top {
  position: fixed;
  right: calc(var(--dock-r) + (var(--dock-size) - 48px) / 2);
  bottom: calc(var(--dock-b) + var(--dock-size) + 14px);
  z-index: 94;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-steel);
  background: rgba(26, 31, 39, 0.94);
  color: var(--cyan);
  font-size: 17px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.26s ease, transform 0.26s ease,
              visibility 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(79, 209, 197, 0.32);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--slate) 46%, var(--ink) 100%);
  border-top: 1px solid var(--line-soft);
}

.footer__glow {
  position: absolute;
  left: 42%;
  right: -14%;
  bottom: -62%;
  height: 360px;
  background: radial-gradient(closest-side, rgba(123, 30, 43, 0.52), transparent 72%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 46px;
  padding: 56px 0 40px;
}

.footer__wordmark {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--warm);
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.footer__tagline {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--gold-glow);
}

.footer__note {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mist);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer__title {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.24);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.footer__list li + li { margin-top: 10px; }

.footer__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__list a:hover {
  color: var(--cyan);
  padding-left: 6px;
}

.footer__contact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 38px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line-soft);
}

.footer__contact-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--mist);
}

.footer__contact-line strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--warm);
}

.footer__base {
  background: rgba(9, 11, 14, 0.74);
  border-top: 1px solid rgba(46, 58, 74, 0.6);
}

.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 22px;
}

.footer__legal,
.footer__copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer__legal { color: rgba(201, 162, 39, 0.88); }

/* ---------- 10. 区块标题 ---------- */
.section-head {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: 34px;
}

.section-head--split {
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: none;
}

.section-head__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--warm);
}

.section-head__note {
  max-width: 46ch;
  font-size: 15px;
  color: var(--mist);
}

/* ---------- 11. 档案卡 / 标签 / 面板 ---------- */
.archive-card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(26, 31, 39, 0.96), rgba(18, 22, 28, 0.9));
  overflow: hidden;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.archive-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), rgba(201, 162, 39, 0) 72%);
  opacity: 0.68;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 209, 197, 0.5);
  box-shadow: var(--shadow-panel);
}

.archive-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.archive-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.archive-card__title {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--warm);
}

.archive-card__body {
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--mist);
}

.archive-card--wine {
  border-color: rgba(201, 162, 39, 0.42);
  background: linear-gradient(150deg, rgba(123, 30, 43, 0.94), rgba(52, 18, 24, 0.96));
}

.archive-card--wine .archive-card__body { color: rgba(251, 243, 228, 0.84); }
.archive-card--wine .archive-card__meta { color: rgba(232, 206, 122, 0.85); }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-steel);
  background: rgba(46, 58, 74, 0.55);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.tag-pill--gold {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-glow);
}

.tag-pill--cyan {
  border-color: rgba(79, 209, 197, 0.45);
  background: rgba(79, 209, 197, 0.1);
  color: var(--cyan);
}

.folio {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.panel {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(26, 31, 39, 0.94), rgba(17, 21, 26, 0.9));
}

.panel--slate { background: linear-gradient(160deg, rgba(46, 58, 74, 0.62), rgba(26, 31, 39, 0.88)); }

.panel--wine {
  border-color: rgba(201, 162, 39, 0.34);
  background: linear-gradient(150deg, rgba(123, 30, 43, 0.9), rgba(38, 13, 18, 0.95));
}

.panel--glow {
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.18), 0 0 40px rgba(123, 30, 43, 0.24);
}

/* ---------- 12. 索引 / 表格 ---------- */
.index-list {
  display: grid;
  border-top: 1px solid var(--line-steel);
}

.index-list__item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-steel);
  transition: background-color 0.2s ease;
}

.index-list__item:hover { background: rgba(46, 58, 74, 0.26); }

.index-list__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--gold);
}

.index-list__title { font-size: 16px; color: var(--warm); }

.index-list__meta {
  font-size: 12.5px;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.data-table {
  width: 100%;
  font-size: 14.5px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(46, 58, 74, 0.85);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.data-table td { color: rgba(237, 233, 227, 0.88); }

.data-table tbody tr:hover { background: rgba(46, 58, 74, 0.24); }

/* 步骤轨 */
.step-rail { display: grid; }

.step-rail__item {
  position: relative;
  padding: 0 0 26px 54px;
  border-left: 1px solid rgba(46, 58, 74, 0.9);
}

.step-rail__item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.step-rail__num {
  position: absolute;
  left: -1px;
  top: 0;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-glow);
}

.step-rail__title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--warm);
}

.step-rail__text {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--mist);
}

/* ---------- 13. 手风琴 / 标签页 / 清单 ---------- */
.accordion { display: grid; gap: 12px; }

.accordion__item {
  border: 1px solid var(--line-steel);
  border-radius: var(--r-md);
  background: rgba(26, 31, 39, 0.72);
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.accordion__item[data-open] { border-color: rgba(79, 209, 197, 0.5); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--warm);
}

.accordion__trigger::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
  transition: transform 0.22s ease;
}

.accordion__item[data-open] .accordion__trigger::after { transform: rotate(45deg); }

.accordion__panel {
  display: none;
  padding: 0 18px 18px;
  font-size: 14.5px;
  color: var(--mist);
}

.accordion__item[data-open] .accordion__panel { display: block; }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-steel);
  background: rgba(46, 58, 74, 0.35);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.tab:hover { color: var(--warm); border-color: rgba(79, 209, 197, 0.45); }

.tab[aria-selected="true"] {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-glow), var(--gold));
  color: #17130A;
  font-weight: 700;
}

.tab-panel[hidden] { display: none; }

.checklist { display: grid; gap: 10px; }

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(237, 233, 227, 0.88);
}

.checklist__item::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  background: linear-gradient(140deg, rgba(201, 162, 39, 0.18), transparent);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.checklist__item[data-done]::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(79, 209, 197, 0.55);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(79, 209, 197, 0.45);
  background: rgba(79, 209, 197, 0.08);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-chip:hover { background: rgba(79, 209, 197, 0.18); }

/* ---------- 14. 正文 / 面包屑 / 目录 / 注释 ---------- */
.prose {
  max-width: 720px;
  font-size: 16.5px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 20px; }

.prose h2 {
  margin-top: 46px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--warm);
}

.prose h3 {
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--warm);
}

.prose p { color: rgba(237, 233, 227, 0.86); }

.prose ul,
.prose ol { display: grid; gap: 10px; }

.prose ul li {
  position: relative;
  padding-left: 20px;
  color: rgba(237, 233, 227, 0.86);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.6);
}

.prose ol { counter-reset: prose-ol; }

.prose ol li {
  position: relative;
  padding-left: 30px;
  color: rgba(237, 233, 227, 0.86);
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(79, 209, 197, 0.42);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.keypath {
  padding-bottom: 1px;
  font-weight: 600;
  color: #FBF3E4;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.keypath--glow { text-shadow: 0 0 14px rgba(232, 206, 122, 0.45); }

.breadcrumb { padding-top: 20px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(154, 166, 178, 0.5);
}

.breadcrumb__list a:hover { color: var(--cyan); }

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

.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  padding-left: 18px;
  border-left: 2px solid rgba(46, 58, 74, 0.9);
}

.toc__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--mist);
}

.toc__list { display: grid; gap: 8px; }

.toc__link {
  display: block;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc__link:hover { color: var(--warm); }

.toc__link.is-current {
  color: var(--gold-glow);
  transform: translateX(4px);
}

.toc__link.is-current::before {
  content: "—";
  margin-right: 6px;
  color: var(--gold);
}

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(154, 166, 178, 0.72);
}

/* ---------- 15. 图片容器 ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--steel), #161B22 72%);
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--angled {
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.media-frame--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(201, 162, 39, 0.07) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 78% 24%, rgba(79, 209, 197, 0.18), transparent 58%),
    radial-gradient(circle at 12% 86%, rgba(123, 30, 43, 0.34), transparent 62%);
}

.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 22px 16px;
  font-size: 13px;
  color: rgba(237, 233, 227, 0.9);
  background: linear-gradient(0deg, rgba(15, 18, 22, 0.94), transparent);
}

.media-frame__tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

/* ---------- 16. 显现与动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--7-5,
  .grid--5-7 { gap: 26px; }
}

@media (max-width: 960px) {
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  :root {
    --header-h: 200px;
    --dock-size: 62px;
    --dock-r: 18px;
    --dock-b: 18px;
  }

  body { font-size: 16px; }

  /* 刊头堆叠 */
  .masthead {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0 10px;
    text-align: center;
  }

  .masthead__brand { order: 1; }
  .masthead__utility { order: 2; justify-content: center; gap: 22px; }
  .masthead__action { order: 3; justify-content: center; }
  .masthead__kicker { font-size: 10.5px; letter-spacing: 0.24em; }
  .masthead__sub { font-size: 11.5px; letter-spacing: 0.14em; }

  /* 导航折叠 */
  .site-nav__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 0 6px;
  }

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

  .nav-list {
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .site-nav[data-open] .nav-list {
    max-height: 440px;
    opacity: 1;
    padding: 6px 0 10px;
  }

  .nav-list a {
    display: block;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    font-size: 15.5px;
  }

  .nav-list a[aria-current="page"] { background: rgba(201, 162, 39, 0.1); }
  .nav-list a[aria-current="page"]::after { left: 14px; right: 14px; bottom: 8px; }

  /* 布局塌陷 */
  .grid--2,
  .grid--3,
  .grid--7-5,
  .grid--5-7 { grid-template-columns: 1fr; gap: 22px; }

  .grid--2 { gap: 20px; }

  .shift-down { margin-top: 0; }
  .shift-up { margin-top: 0; }

  .section { padding: 48px 0; }

  .section-head--split { grid-template-columns: 1fr; align-items: start; }

  .toc {
    position: static;
    padding: 16px 18px;
    border-left: 0;
    border: 1px solid var(--line-steel);
    border-radius: var(--r-md);
    background: rgba(26, 31, 39, 0.6);
  }

  .index-list__item {
    grid-template-columns: 52px 1fr;
    row-gap: 4px;
  }

  .index-list__meta { grid-column: 2; }

  .dock__label { font-size: 9.5px; letter-spacing: 0.1em; }

  .to-top {
    right: calc(var(--dock-r) + (var(--dock-size) - 44px) / 2);
    bottom: calc(var(--dock-b) + var(--dock-size) + 12px);
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__contact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__base-inner { flex-direction: column; gap: 6px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }

  .masthead__wordmark { font-size: 30px; }
  .masthead__utility { gap: 16px; }
  .masthead__utility .utility-link { font-size: 12.5px; }
  .masthead__action .btn { padding: 10px 18px; font-size: 13.5px; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__inner { padding: 44px 0 32px; }

  .data-table { font-size: 13.5px; }
  .data-table th,
  .data-table td { padding: 10px 8px; }

  .media-frame--angled { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
}

/* ---------- 18. 动效降级 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .dock__ring { animation: none; opacity: 0.6; }
}

/* ---------- 19. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .dock,
  .to-top { display: none !important; }

  body { background: #fff; color: #111; }
}
