/* 人物阅读馆 · LOOK'S READING ROOM
   Tokens locked from PG hub review · zero paid assets */

:root {
  --paper: #f7f4ed;
  --surface: #efebe2;
  --ink: #29251f;
  --muted: #70665c;
  --line: #d9d2c5;
  --accent: #914e37;
  --accent-soft: #ece1d6;
  --serif: "Iowan Old Style", "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --reader-font: var(--serif);
  --reading-size: 18px;
  --reading-leading: 1.85;
  --ui: 16px;
  --ui-sm: 14px;
  --ui-xs: 12px;
  --ui-label: 11px;
  --header-height: 88px;
  --shell: 1120px;
  --shell-pad: 36px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--ui);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.35;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-underline-offset: 5px;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -70px;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  text-decoration: none;
  font-size: var(--ui-sm);
}

.skip-link:focus {
  top: 12px;
}

/* —— Masthead —— */
.masthead {
  max-width: calc(var(--shell) + var(--shell-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  min-height: 44px;
  justify-content: center;
}

.masthead__name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.12em;
}

.masthead__sub {
  font-size: var(--ui-label);
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--ui-sm);
  color: var(--muted);
  position: relative;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link--current {
  color: var(--ink);
}

.nav__link--current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent);
}

/* —— Shell —— */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--ui-xs);
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
}

.accent {
  color: var(--accent);
}

/* —— Links / buttons —— */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--accent);
  font-size: var(--ui-sm);
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

.text-link--muted {
  color: var(--muted);
}

.text-link--muted:hover {
  color: var(--accent);
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  font-size: var(--ui-sm);
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.quiet-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.quiet-button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.quiet-button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.quiet-button--disabled,
.quiet-button:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* —— Page intro (catalog) —— */
.page-intro {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-intro__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.page-intro__rule {
  height: 1px;
  width: 36px;
  background: var(--accent);
}

.page-intro h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.page-intro__lead {
  font-family: var(--reader-font);
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 540px;
  margin: 0;
}

/* —— Filter tabs —— */
.filter-tabs {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 28px 0 8px;
  padding: 0;
}

.filter-tabs__btn {
  min-height: 48px;
  padding: 0 0 10px;
  position: relative;
  font-size: 15px;
  color: var(--muted);
}

.filter-tabs__btn:hover {
  color: var(--accent);
}

.filter-tabs__btn[aria-pressed="true"] {
  color: var(--ink);
}

.filter-tabs__btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.filter-tabs__count {
  font-family: Georgia, serif;
  font-size: var(--ui-xs);
  margin-left: 4px;
  color: var(--muted);
}

/* —— PersonDoor —— */
.person-doors {
  list-style: none;
  padding: 0;
  margin: 0;
}

.person-door {
  border-bottom: 1px solid var(--line);
}

.person-door[hidden] {
  display: none !important;
}

.person-door__link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 40px 0;
  text-decoration: none;
}

.person-door__index {
  font-family: Georgia, serif;
  font-size: var(--ui-sm);
  color: var(--accent);
  padding-top: 10px;
  letter-spacing: 0.06em;
}

.person-door__name {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  transition: color 0.16s;
}

.person-door__link:hover .person-door__name {
  color: var(--accent);
}

.person-door__thesis {
  font-family: var(--reader-font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 16px;
}

.person-door__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-size: 13px;
  color: var(--muted);
}

.person-door__tag {
  color: var(--accent);
  letter-spacing: 0.06em;
}

.person-door__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--ui-sm);
  color: var(--accent);
  padding-top: 12px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.person-door__link:hover .person-door__cta {
  border-bottom-color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  max-width: calc(var(--shell) + var(--shell-pad) * 2);
  margin: 72px auto 0;
  padding: 28px var(--shell-pad) 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.site-footer p {
  margin: 0;
  max-width: 420px;
  text-align: right;
}

/* —— Back row —— */
.back-row {
  padding-top: 28px;
  margin-bottom: 8px;
}

/* —— Person hero —— */
.person-hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.person-hero__top {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 8px;
}

.person-hero__portrait {
  width: 140px;
}

.person-hero__portrait .asset-slot--portrait {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

.person-hero__vol {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: var(--ui-xs);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.person-hero__vol-rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.person-hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}

.person-hero__intro {
  font-family: var(--reader-font);
  font-size: 18px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--ink);
}

.person-hero__note {
  font-size: 13px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 28px;
  line-height: 1.8;
}

.person-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* —— Editorial layout —— */
.editorial-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 40px;
}

.chapter-rail {
  align-self: start;
  position: sticky;
  top: 32px;
  font-size: 13px;
}

.chapter-rail__label {
  display: block;
  margin-bottom: 18px;
}

.chapter-rail a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.chapter-rail a:hover,
.chapter-rail a[aria-current="true"] {
  color: var(--accent);
  border-left-color: var(--accent);
}

.chapter-rail__num {
  font-family: Georgia, serif;
  font-size: var(--ui-xs);
  color: var(--accent);
  min-width: 18px;
}

.editorial-column {
  min-width: 0;
}

.editorial-section {
  padding-bottom: 56px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.editorial-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.section-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: var(--ui-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label__num {
  font-family: Georgia, serif;
  font-size: 14px;
}

.editorial-section h2 {
  font-size: 28px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.editorial-prose {
  font-family: var(--reader-font);
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
}

.editorial-prose p {
  margin-bottom: 1.25em;
}

.editorial-prose--muted {
  color: var(--muted);
  font-size: 16px;
}

/* —— Questions —— */
.questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.question-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.question-item__num {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.question-item h3 {
  font-size: 20px;
  margin: 0 0 12px;
}

.question-item p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  font-family: var(--reader-font);
  margin: 0;
}

/* —— Timeline —— */
.timeline {
  list-style: none;
  padding: 4px 0 0 2px;
  margin: 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 0 0 28px 22px;
  border-left: 1px solid var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--accent);
  position: absolute;
  left: -4px;
  top: 8px;
}

.timeline__date {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  padding-top: 2px;
}

.timeline__text {
  font-size: 16px;
  line-height: 1.85;
  font-family: var(--reader-font);
  margin: 0;
}

/* —— Reading routes —— */
.reading-routes {
  display: grid;
  gap: 24px;
}

.reading-route {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.reading-route__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.reading-route__head > span {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--accent);
}

.reading-route h3 {
  font-size: 22px;
  margin: 0;
}

.reading-route__desc {
  color: var(--muted);
  font-size: var(--ui-sm);
  line-height: 1.8;
  margin: 0 0 14px 30px;
}

.route-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.route-steps a {
  display: block;
  text-decoration: none;
  padding: 12px 8px 12px 0;
  border-top: 1px solid var(--line);
  min-height: 80px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
}

.route-steps a:hover {
  border-top-color: var(--accent);
  color: var(--accent);
}

.route-steps__label {
  display: block;
  font-family: var(--sans);
  font-size: var(--ui-label);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* —— ResourceRow —— */
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-row {
  border-bottom: 1px solid var(--line);
}

.resource-row__link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 88px;
  gap: 20px;
  align-items: start;
  text-decoration: none;
  padding: 22px 0;
}

.resource-row__link:hover .resource-row__title {
  color: var(--accent);
}

.resource-row__date {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}

.resource-row__title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 8px;
  transition: color 0.16s;
}

.resource-row__desc {
  font-family: var(--reader-font);
  color: var(--muted);
  font-size: var(--ui-sm);
  line-height: 1.8;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.resource-row__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 2px;
}

/* —— StatusChip —— */
.status-chip {
  font-size: var(--ui-label);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.status-chip--translated {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.status-chip--summary {
  color: var(--muted);
}

.status-chip--source-only {
  color: var(--muted);
  border-style: dashed;
}

.status-chip--disabled {
  opacity: 0.45;
}

/* —— Catalogue CTA —— */
.catalogue-cta {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 32px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.catalogue-cta h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.catalogue-cta p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.placeholder-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dotted var(--line);
  line-height: 1.8;
}

/* —— Disclosure —— */
.disclosure {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dotted var(--line);
}

.disclosure summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
  width: fit-content;
  list-style: none;
}

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

.disclosure summary::before {
  content: "＋";
  color: var(--accent);
  font-size: 14px;
}

.disclosure[open] summary::before {
  content: "−";
}

.disclosure__body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  padding: 4px 0 8px;
  max-width: 560px;
}

/* —— PaywallExplain —— */
.paywall {
  padding: 56px 0 40px;
  max-width: 720px;
}

.paywall .page-intro__kicker {
  margin-bottom: 18px;
}

.paywall h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.paywall__lead {
  font-family: var(--reader-font);
  font-size: 18px;
  line-height: 1.85;
  margin: 0 0 40px;
  color: var(--ink);
}

.paywall-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.paywall-block h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

.paywall-block p,
.paywall-block li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  font-family: var(--reader-font);
}

.paywall-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.paywall-block li {
  margin-bottom: 0.5em;
}

.paywall-block li strong {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--sans);
}

/* Timeline diagram */
.window-diagram {
  margin: 28px 0;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.window-diagram__track {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  position: relative;
  margin-bottom: 20px;
}

.window-diagram__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.window-diagram__phase {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 0;
}

.window-diagram__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--accent);
  margin: 9px auto 12px;
}

.window-diagram__phase--active .window-diagram__dot {
  background: var(--accent);
}

.window-diagram__phase--active {
  /* highlight band via label only */
}

.window-diagram__label {
  font-family: var(--serif);
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--ink);
}

.window-diagram__phase--active .window-diagram__label {
  color: var(--accent);
}

.window-diagram__hint {
  font-size: var(--ui-xs);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  padding: 0 6px;
}

.window-diagram__caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.paywall-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.paywall-do-dont h3 {
  font-size: 16px;
  margin: 0 0 12px;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.paywall-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.paywall-footnote {
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 560px;
}

/* —— ReaderShell (spec shell for COMPONENTS; light mock if needed) —— */
.reader-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px;
}

.reader-shell__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  margin: 0 0 20px;
}

.reader-shell__prose {
  font-family: var(--reader-font);
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  :root {
    --shell-pad: 28px;
  }

  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .chapter-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 32px;
  }

  .chapter-rail__label {
    width: 100%;
    margin-bottom: 8px;
  }

  .chapter-rail a {
    border: 0;
    padding: 0;
    gap: 6px;
  }

  .person-door__link {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }

  .person-door__portrait {
    width: 88px;
  }

  .person-door__cta {
    grid-column: 2;
    padding-top: 4px;
  }

  .questions {
    grid-template-columns: 1fr;
  }

  .route-steps {
    grid-template-columns: 1fr;
    margin-left: 0;
    gap: 0;
  }

  .reading-route__desc {
    margin-left: 0;
  }

  .paywall-do-dont {
    grid-template-columns: 1fr;
  }

  .window-diagram__track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .window-diagram__track::before {
    display: none;
  }

  .window-diagram__phase {
    text-align: left;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px 12px;
    align-items: start;
  }

  .window-diagram__dot {
    margin: 4px 0 0;
    grid-row: 1 / span 2;
  }

  .window-diagram__label,
  .window-diagram__hint {
    text-align: left;
    padding: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 76px;
    --shell-pad: 22px;
    --reading-size: 17px;
  }

  .masthead__name {
    font-size: 17px;
    letter-spacing: 0.1em;
  }

  .masthead__sub {
    font-size: 9px;
  }

  .nav {
    gap: 14px;
  }

  .nav__link {
    font-size: 13px;
  }

  .filter-tabs__btn {
    font-size: 14px;
  }

  .status-chip {
    font-size: 10px;
  }

  .page-intro {
    padding: 40px 0 28px;
  }

  .person-door__link {
    grid-template-columns: 1fr;
    padding: 28px 0;
    gap: 12px;
  }

  .person-door__portrait {
    width: 96px;
  }

  .person-door__index {
    padding-top: 0;
  }

  .person-door__name {
    font-size: 34px;
  }

  .person-hero h1 {
    font-size: 52px;
  }

  .resource-row__link {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .resource-row__date {
    grid-column: 1;
    grid-row: 1;
  }

  .resource-row__body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .resource-row__end {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
  }

  .catalogue-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
  }

  .site-footer p {
    text-align: left;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ——— 测环境脚注（不改 token；仅夹具） ——— */
.session-chip {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-self: center;
  white-space: nowrap;
}
.session-chip--on {
  color: var(--ink);
  border-color: var(--accent-soft);
}
.masthead .session-chip {
  margin-left: 8px;
}
.reader-shell {
  max-width: 680px;
  margin: 20px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.reader-shell__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.reader-shell__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.35;
}
.reader-shell__prose {
  font-family: var(--serif);
  font-size: var(--reading-size);
  line-height: var(--reading-leading);
  color: var(--ink);
}
/* P0-2: Markdown HTML 不需要 pre-wrap */
.reader-shell__body h1,
.reader-shell__body h2,
.reader-shell__body h3,
.reader-shell__body h4 {
  font-family: var(--serif);
  margin: 1.2em 0 0.5em;
  line-height: 1.35;
  font-weight: 600;
}
.reader-shell__body h1 { font-size: 1.45em; }
.reader-shell__body h2 { font-size: 1.28em; }
.reader-shell__body h3 { font-size: 1.12em; }
.reader-shell__body ul,
.reader-shell__body ol {
  padding-left: 1.4em;
  margin: 0.6em 0 1em;
}
.reader-shell__body li { margin: 0.25em 0; }
.reader-shell__body a {
  color: var(--accent);
}
.reader-shell__body blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.reader-shell__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.reader-shell__body pre {
  overflow-x: auto;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.88em;
  line-height: 1.5;
}
.near-open-hint {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  margin: 0 0 16px;
  line-height: 1.55;
}
.near-open-hint a {
  color: var(--accent);
}
.resource-row--locked .resource-row__link {
  /* P0-1: 锁行仍可点进诚实预览；视觉由下方 B1 规则负责 */
  cursor: pointer;
}
.resource-row__lock {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  grid-column: 1 / -1;
}
.resource-row__lock a {
  color: var(--accent);
}
.fixture-panel {
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.fixture-panel h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 12px;
}
.fixture-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 12px 0;
}
.fixture-row label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fixture-row input {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-width: 160px;
}
.tier-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.tier-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tier-card h4 {
  font-family: var(--serif);
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.tier-card p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.55;
}
.tier-card--active {
  border-color: var(--accent);
}
.agent-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  max-height: 360px;
  overflow: auto;
  background: var(--surface);
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.test-banner {
  font-family: var(--sans);
  font-size: var(--ui-xs);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* 分析包（测站） */
.pack-block {
  margin: 28px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pack-block h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pack-html {
  font-family: var(--serif);
  font-size: var(--reading-size, 18px);
  line-height: var(--reading-leading, 1.85);
  color: var(--ink);
}
.pack-html h1,
.pack-html h2,
.pack-html h3 {
  font-family: var(--serif);
  margin: 1.2em 0 0.5em;
}
.pack-html ul,
.pack-html ol {
  padding-left: 1.4em;
  margin: 0.6em 0;
}
.pack-html a {
  color: var(--accent);
}
.pack-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.pack-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--ui-sm);
}
.pack-table th,
.pack-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.pack-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}


/* —— List assets (LIST-ASSETS.md) —— */
.asset-slot--portrait {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  background: var(--surface);
  border: 1px solid var(--line);
}

.asset-slot--cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.asset-ph {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  line-height: 1.35;
  padding: 10px;
  box-sizing: border-box;
}

.asset-ph--person {
  aspect-ratio: 3 / 4;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.asset-ph--book {
  aspect-ratio: 2 / 3;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.asset-ph--book .asset-ph__title {
  color: var(--ink);
  font-size: 13px;
}

.asset-ph--book .asset-ph__author {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}

.person-door__portrait {
  width: 120px;
  flex-shrink: 0;
}

.person-door__portrait-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* —— Book entry as resource-row (no cover wall) —— */
.resource-row__link--cover {
  grid-template-columns: 40px minmax(0, 1fr) 88px;
  gap: 16px;
  align-items: center;
}

.resource-row__cover {
  width: 40px;
  flex-shrink: 0;
}

.resource-row__cover .asset-slot--cover,
.resource-row__cover .asset-ph--book {
  width: 40px;
  border-radius: 0;
}

.resource-row__cover .asset-ph--book {
  padding: 4px;
  font-size: 9px;
}

.resource-row__cover .asset-ph__title {
  font-size: 9px;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .person-hero__top {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 20px;
  }

  .person-hero__portrait {
    width: 100px;
  }

  .resource-row__link--cover {
    grid-template-columns: 36px minmax(0, 1fr) 72px;
  }
}

@media (max-width: 600px) {
  .person-hero__top {
    grid-template-columns: 1fr;
  }

  .person-hero__portrait {
    width: 112px;
  }
}


/* —— SITE-NEXT A/B：人物页列表可读性 + 门控减噪 —— */
.gate-bar {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  margin: 0 0 20px;
  font-size: var(--ui-sm);
  line-height: 1.7;
  color: var(--ink);
}
.gate-bar strong {
  font-weight: 600;
}

.person-filters {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-tabs--person {
  flex-wrap: wrap;
}
.person-filters__search {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.person-filters__search input {
  flex: 1;
  max-width: 280px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 10px;
  font: inherit;
  font-size: var(--ui-sm);
  color: var(--ink);
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--line);
}
.year-nav__link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.year-nav__link:hover {
  color: var(--accent);
}

.year-group {
  margin-bottom: 8px;
}
.year-group__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0 8px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.year-group__label {
  letter-spacing: 0.02em;
}
.year-group__count {
  font-family: var(--sans, inherit);
  font-size: var(--ui-xs);
  font-weight: 400;
  color: var(--muted);
}

.resource-row__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  margin-bottom: 6px;
}
.resource-row__title {
  flex: 1 1 220px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.resource-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 4px;
}
.resource-row__desc--one {
  -webkit-line-clamp: 1;
  margin-bottom: 4px;
}
.resource-row__desc--full {
  -webkit-line-clamp: unset;
  display: block;
}
.resource-row__blurb {
  margin: 0 0 4px;
}
.resource-row__blurb > summary {
  cursor: pointer;
  font-size: var(--ui-xs);
  color: var(--accent);
  list-style: none;
}
.resource-row__blurb > summary::-webkit-details-marker {
  display: none;
}

/* B1 锁行视觉：虚线左边线，仍可点 */
.resource-row--locked .resource-row__link {
  border-left: 1px dashed var(--line);
  padding-left: 12px;
  margin-left: -12px;
  opacity: 1;
  cursor: pointer;
}
.resource-row--stub {
  opacity: 0.82;
}
.resource-row--stub .resource-row__title {
  font-size: 18px;
}
.resource-row--partial .resource-row__title {
  font-size: 20px;
}

.status-chip--dual {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}
.status-chip--stub {
  color: var(--muted);
  border-style: dashed;
}
.status-chip--partial {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

/* 列表行不再把 chip 挤到远右列为主；保留 grid 但 end 列可空 */
.resource-row__link {
  grid-template-columns: 72px minmax(0, 1fr);
}

.reader-shell__honest {
  margin-top: 12px;
  padding: 16px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}
.reader-shell__bound {
  margin: 0 0 6px;
  font-size: var(--ui-sm);
}
.reader-shell__bound--no {
  color: var(--muted);
}
.reader-shell__sub {
  font-family: var(--serif);
  font-size: 16px;
  margin: 16px 0 8px;
}

.fixture-details {
  margin: 28px 0 8px;
}
.fixture-details > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}

.pack-html h1,
.pack-html h2:first-child {
  font-size: 1.25rem;
}

@media (max-width: 720px) {
  .resource-row__link {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .year-group__head {
    font-size: 16px;
  }
}

.resource-row__link--split {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
}
.resource-row__hit {
  text-decoration: none;
  color: inherit;
  display: block;
}
.resource-row__hit:hover .resource-row__title {
  color: var(--accent);
}
.resource-row--locked .resource-row__link--split {
  border-left: 1px dashed var(--line);
  padding-left: 12px;
  margin-left: -12px;
}
