/* ============================================================
   /assets/site.css — 拉菲账号注册 · 共享站点样式
   暖纸长卷 / 酒红印刷 / 等宽索引 / 锐利直角
   ============================================================ */

:root {
  --wine: #5C1526;
  --wine-deep: #3A0D18;
  --wine-black: #2A0911;
  --gold: #C79A3B;
  --gold-soft: #E7C97E;
  --ink: #15100F;
  --ink-2: #4A423C;
  --paper: #F4ECDD;
  --ivory: #FBF7EF;
  --slate: #6E8485;
  --slate-soft: #AFC0BE;
  --print: #B33A2B;

  --hairline: rgba(110, 132, 133, 0.42);
  --hairline-strong: rgba(110, 132, 133, 0.72);
  --gold-line: rgba(199, 154, 59, 0.45);

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --step: clamp(48px, 7vw, 96px);

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

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* ---------- base typography ---------- */
body {
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 0.35vw + 14.6px, 17px);
  line-height: 1.85;
  color: var(--ink-2);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

strong, b { font-weight: 600; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
.site-footer :focus-visible { outline-color: var(--gold-soft); }

#main-content { display: block; }

/* ---------- utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono, .num, .mono-label {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.mono-label {
  display: inline-block;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 40px);
  background-color: var(--hairline);
}

.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;
  border: 0;
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 16px;
  background-color: var(--wine);
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: transform 0.18s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.header-strip {
  background-color: var(--wine);
  color: var(--gold-soft);
}
.header-strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding-block: 7px;
}
.header-strip__tag {
  color: rgba(244, 236, 221, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-strip__line {
  flex: 1 1 auto;
  min-width: 16px;
  height: 1px;
  background-color: var(--gold-line);
}
.header-strip__link {
  color: var(--gold-soft);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.header-strip__link:hover {
  color: var(--ivory);
  border-bottom-color: var(--gold-soft);
}

.header-bar { background-color: var(--paper); }
.header-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: 14px;
  min-height: 70px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}
.brand__mark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1;
  letter-spacing: 0.06em;
}
.brand__word {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.3em;
  color: var(--ink-2);
  padding-left: 12px;
  border-left: 1px solid var(--hairline-strong);
}

.brand__badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  color: var(--wine);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.brand__badge:hover {
  background-color: var(--gold);
  color: var(--wine-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  background-color: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--wine); color: var(--wine); }
.nav-toggle__bars { display: grid; gap: 6px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle__text {
  font-size: 12px;
  letter-spacing: 0.22em;
}

.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}
.nav-link:hover { color: var(--wine); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  color: var(--wine);
  font-weight: 500;
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background-color: var(--wine);
}

.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: transparent;
  pointer-events: none;
}
.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--gold);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--gold { background-color: var(--gold); color: var(--wine-deep); }
.btn--gold:hover { background-color: var(--gold-soft); }
.btn--wine { background-color: var(--wine); color: var(--ivory); }
.btn--wine:hover { background-color: var(--wine-deep); }
.btn--ghost {
  background-color: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn--sm { padding: 9px 16px; font-size: 12.5px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: var(--step);
  padding-top: clamp(36px, 5vw, 64px);
  background-color: var(--wine-deep);
  border-top: 3px solid var(--gold);
  color: rgba(244, 236, 221, 0.78);
}
.site-footer a { color: rgba(244, 236, 221, 0.9); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(199, 154, 59, 0.28);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand__kicker {
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-brand__name {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.footer-brand__desc {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(244, 236, 221, 0.7);
}
.footer-brand .btn { margin-top: 22px; }

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.footer-col { min-width: 0; }
.footer-col__label {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 154, 59, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-list li + li { margin-top: 10px; }
.footer-link {
  display: inline-block;
  padding-block: 2px;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: rgba(244, 236, 221, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

.footer-contact { min-width: 0; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; gap: 3px; }
.contact-item__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(231, 201, 126, 0.75);
}
.contact-item__value {
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 236, 221, 0.92);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 14px;
  background-color: transparent;
  border: 1px solid rgba(199, 154, 59, 0.5);
  border-radius: 0;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-btn:hover {
  background-color: rgba(199, 154, 59, 0.16);
  color: var(--ivory);
}
.copy-btn.is-copied {
  border-color: var(--gold-soft);
  color: var(--ivory);
  background-color: rgba(199, 154, 59, 0.24);
}

.footer-coords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 236, 221, 0.55);
}
.footer-coords__mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--gold);
  transform: rotate(45deg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(199, 154, 59, 0.28);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 236, 221, 0.55);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(231, 201, 126, 0.8);
}
.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  transform: rotate(45deg);
}

/* ============================================================
   正文容器与章节
   ============================================================ */
.section {
  padding-block: var(--step);
  border-top: 1px solid var(--hairline);
}
.section--flush { border-top: 0; }
.section--ivory { background-color: var(--ivory); }
.section--wine {
  background-color: var(--wine);
  color: rgba(251, 247, 239, 0.84);
  border-top-color: rgba(199, 154, 59, 0.4);
}
.section--wine h1,
.section--wine h2,
.section--wine h3,
.section--wine h4 { color: var(--ivory); }

.display {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.lede {
  max-width: 46ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: var(--ink);
}

.text-note {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate);
}

.chapter {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}
.chapter__num {
  display: inline-block;
  padding: 5px 9px;
  background-color: var(--slate-soft);
  color: var(--wine-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chapter.is-active .chapter__num {
  background-color: var(--wine);
  color: var(--gold-soft);
}
.chapter__body { min-width: 0; }
.chapter__rule {
  display: block;
  width: 52px;
  height: 2px;
  margin-bottom: 16px;
  background-color: var(--gold);
}
.chapter__title {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}
.chapter.is-active .chapter__title { color: var(--wine); }

.section--wine .chapter__num {
  background-color: rgba(251, 247, 239, 0.18);
  color: var(--gold-soft);
}
.section--wine .chapter.is-active .chapter__num {
  background-color: var(--gold);
  color: var(--wine-deep);
}
.section--wine .chapter.is-active .chapter__title { color: var(--gold-soft); }

/* ---------- 栅格 ---------- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 48px);
}
.grid > * { min-width: 0; }

@media (min-width: 880px) {
  .grid--5-7 { grid-template-columns: 5fr 7fr; }
  .grid--7-5 { grid-template-columns: 7fr 5fr; }
  .grid--4-8 { grid-template-columns: 4fr 8fr; }
  .grid--8-4 { grid-template-columns: 8fr 4fr; }
  .grid--halves { grid-template-columns: 1fr 1fr; }
}

/* ---------- 卡片 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
  background-color: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 0;
}
.card--wine {
  background-color: var(--wine);
  border-color: var(--wine);
  color: rgba(251, 247, 239, 0.85);
}
@media (min-width: 880px) {
  .card--sink { margin-top: 32px; }
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.card--wine .card__meta { color: var(--gold-soft); }
.card__title {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink);
}
.card--wine .card__title { color: var(--ivory); }
.card__text {
  font-size: 14.5px;
  line-height: 1.9;
}
.card__foot { margin-top: auto; padding-top: 8px; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--wine);
  transition: color 0.18s var(--ease);
}
.card__link::after {
  content: "→";
  color: var(--gold);
}
.card__link:hover { color: var(--gold); }

/* ---------- 徽标与标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  color: var(--wine);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--slate-soft);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--wine {
  color: var(--wine);
  border-color: rgba(92, 21, 38, 0.35);
  background-color: rgba(92, 21, 38, 0.06);
}
.tag--alert {
  color: var(--print);
  border-color: rgba(179, 58, 43, 0.45);
  background-color: rgba(179, 58, 43, 0.07);
}

/* ---------- 图例 ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 16px;
  background-color: var(--ivory);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--wine);
}
.legend__dot--gold { background-color: var(--gold); }
.legend__dot--slate { background-color: var(--slate); }

/* ---------- 图片容器 ---------- */
.figure {
  display: grid;
  gap: 10px;
  margin: 0;
}
.figure__frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background-color: var(--wine-black);
  border: 1px solid var(--hairline);
}
.figure__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__frame--wide { aspect-ratio: 16 / 9; }
.figure__frame--tall { aspect-ratio: 4 / 5; }
.figure__frame--square { aspect-ratio: 1 / 1; }
.figure__frame--diagonal { clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.figure__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--slate);
}
.figure--placeholder .figure__frame {
  background-image:
    repeating-linear-gradient(135deg, rgba(199, 154, 59, 0.16) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, var(--wine-deep), var(--wine-black));
}
.figure--placeholder .figure__frame::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 201, 126, 0.85);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid var(--hairline);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--slate-soft);
}
.breadcrumb__item a {
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.breadcrumb__item a:hover {
  color: var(--wine);
  border-bottom-color: var(--gold);
}
.breadcrumb__item[aria-current="page"] { color: var(--ink); }

/* ---------- 长文 ---------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-size: clamp(19px, 2vw, 24px);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.5em;
  margin-top: 0.8em;
}
.prose ul li {
  position: relative;
  padding-left: 16px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background-color: var(--gold);
}
.prose ol { counter-reset: item; }
.prose ol li {
  position: relative;
  padding-left: 26px;
  counter-increment: item;
}
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--wine);
}
.prose a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.prose strong { font-weight: 600; }

/* ---------- 显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__desc { max-width: 46ch; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .site-header[data-open] .site-nav {
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 6px;
    border-top: 1px solid var(--hairline);
  }
  .nav-list li + li { border-top: 1px solid var(--hairline); }
  .nav-link {
    display: block;
    padding: 14px 2px;
    font-size: 15px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    padding-left: 12px;
    border-left: 2px solid var(--wine);
    background-color: rgba(92, 21, 38, 0.05);
  }
  .site-header[data-open] .nav-toggle {
    border-color: var(--wine);
    color: var(--wine);
  }
  .site-header[data-open] .nav-toggle__bars span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  .site-header[data-open] .nav-toggle__bars span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
  .chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .header-strip__tag { display: none; }
  .chapter__rule { margin-bottom: 12px; }
}

@media (max-width: 520px) {
  .brand__word { display: none; }
  .header-bar__inner { padding-block: 12px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .copy-btn { width: 100%; justify-content: center; }
  .footer-brand .btn { width: 100%; }
}

@media (min-width: 1600px) {
  :root { --shell: 1320px; }
}

/* ============================================================
   降低动效
   ============================================================ */
@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;
    transition-delay: 0ms !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .reading-progress__bar { transition: none !important; }
}
