:root {
  --paper: #fcf5e7;
  --wine: #68222e;
  --ink: #261e1b;
  --muted: #64544e;
  --line: #dacdc0;
  --radius: 16px;
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: only light;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.wrap { width: min(100% - 72px, 1240px); margin-inline: auto; }
.masthead { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead .wrap { min-height: 65px; }
.masthead a, .toc a, .pager a { text-decoration: none; }
.masthead a:hover, .toc a:hover, .pager a:hover { text-decoration: underline; text-underline-offset: 4px; }
.masthead-start { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); }
.wordmark { font-size: 26px; letter-spacing: -.075em; font-weight: 700; color: var(--wine); }
nav { display: flex; gap: clamp(14px, 3vw, 36px); font-size: 14px; }
.back { color: var(--wine); font-size: 14px; white-space: nowrap; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 84px); align-items: center; padding-block: clamp(42px, 7vw, 106px) 38px; }
.hero.hero-no-cover { grid-template-columns: minmax(0, 1fr); }
.hero-no-cover .deck { max-width: 48ch; margin-bottom: 12px; }
.hero-tags { margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.eyebrow { margin: 0 0 15px; font-size: 12px; letter-spacing: .085em; font-weight: 650; color: var(--wine); }
h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(35px, 5.4vw, 74px); line-height: 1.07; letter-spacing: -.065em; font-weight: 650; text-wrap: balance; }
h1 span { display: block; margin-bottom: 9px; color: var(--wine); font-size: .45em; letter-spacing: -.03em; }
.deck { margin-block: 22px 26px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.7; color: var(--muted); }
.cta { display: inline-flex; align-items: center; gap: 20px; border-radius: 9px; padding: 11px 17px; background: var(--wine); color: var(--paper); text-decoration: none; font-size: 14px; }
.cta:hover { background: #4d1620; }
.cover img { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); }
.cover img { display: block; object-fit: cover; }
figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-block: 1px solid var(--line); }
.stats--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stats--right > div:first-child { grid-column: 2; }
@media (max-width: 600px) {
  .stats--right { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats--right > div:first-child { grid-column: auto; }
}
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 7px; padding: 19px clamp(8px, 2.6vw, 32px); }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; line-height: 1.5; color: var(--muted); }
.stats dd { margin: 0; color: var(--wine); font-size: clamp(20px, 4vw, 49px); line-height: 1.12; font-weight: 650; letter-spacing: -.05em; overflow-wrap: anywhere; }
.story { display: grid; grid-template-columns: minmax(135px, 1fr) minmax(0, 4fr); gap: clamp(26px, 6vw, 92px); padding-block: 60px 72px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc a { display: block; padding-block: 11px; border-top: 1px solid var(--line); font-size: 14px; }
.toc a span { margin-right: 10px; color: var(--wine); font-size: 11px; }
.chapter { scroll-margin-top: 95px; }
.chapter + .chapter { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 32px; }
h2 { margin-bottom: 20px; font-size: clamp(26px, 3.7vw, 44px); line-height: 1.16; letter-spacing: -.05em; font-weight: 650; }
.chapter-copy { max-width: 72ch; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.9; }
.chapter-copy p + p, .chapter-copy blockquote { margin-top: 1em; }
.chapter-copy li + li { margin-top: .85em; }
.chapter-copy strong { color: var(--wine); font-weight: 650; }
.chapter-copy u { text-decoration-color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: .24em; }
blockquote { margin-inline: 0; padding-inline-start: 18px; border-inline-start: 1px solid var(--wine); font-style: italic; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gallery-toolbar[hidden] { display: none; }
.gallery-toolbar p { font-size: 13px; color: var(--muted); }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); background: transparent; cursor: pointer; }
.gallery-controls button:hover:not(:disabled) { background: var(--wine); color: var(--paper); }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border: 1px solid var(--line); border-radius: var(--radius); scrollbar-color: var(--wine) transparent; }
.gallery-track figure { flex: 0 0 100%; min-width: 0; padding: 12px; scroll-snap-align: start; }
.gallery-track img { display: block; width: 100%; height: clamp(220px, 44vw, 540px); object-fit: contain; background: #f0e7d9; border-radius: 8px; }
.gallery-track figcaption { padding-inline: 4px; }
.records { display: grid; gap: 16px; margin-top: 24px; }
.records ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.records a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--wine); text-decoration: none; }
.records a:hover { text-decoration: underline; }
.records video { display: block; width: 100%; max-height: 440px; background: var(--paper); border-radius: 9px; }
.records .douyin-video { margin: 0; min-width: 0; }
.records .douyin-video--portrait { width: min(100%, 360px); justify-self: center; }
.douyin-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 9px; background: var(--paper); }
.douyin-video--portrait iframe { aspect-ratio: 9 / 16; }
.records .douyin-link { display: inline; padding: 0; border: 0; margin-inline-start: .5em; text-decoration: underline; text-underline-offset: 3px; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; margin-top: 44px; border-top: 1px solid var(--line); color: var(--wine); font-size: 14px; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .hero, .story { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 24px; }
  .story { padding-block: 35px 48px; gap: 26px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 7px 15px; }
  .toc .eyebrow { width: 100%; margin: 0; }
  .toc a { border: 0; padding-block: 4px; }
  .toc a span { margin-right: 4px; }
}
@media (max-width: 380px) { .masthead nav a:nth-child(2) { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.case-language { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.case-language [aria-current] { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 520px) {
  .masthead nav { gap: 10px; font-size: 12px; }
  html[lang="en"] .masthead .wrap { gap: 10px; }
  html[lang="en"] .masthead-start { gap: 10px; }
}
