/* 修订在阅读位置出现；颜色与书卷底色沿用全站变量。 */
.reading-summary { margin: 18px 0 24px; padding: 13px 17px; border-left: 3px solid var(--accent-fill); background: var(--card); border-radius: 0 9px 9px 0; font-size: 13px; }
.reading-meta { display: flex; flex-wrap: wrap; gap: 5px 20px; color: var(--ink-3); }
.reading-latest { margin: 8px 0 0; color: var(--ink-2); max-width: 85ch; line-height: 1.7; }
.reading-fix { margin: -4px 0 24px; border: 1px solid var(--rule); border-left: 3px solid var(--accent-fill); border-radius: 4px; background: var(--card); font-size: 14px; scroll-margin-top: 12px; }
.reading-fix summary { cursor: pointer; padding: 9px 13px; color: var(--accent); }
.reading-fix summary time { margin-left: 16px; color: var(--ink-3); font-size: 12px; }
.reading-fix-body { padding: 0 16px 14px; }
.reading-fix dl { margin: 8px 0; }
.reading-fix dl > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.reading-fix dt { color: var(--ink-3); font-size: 12px; }
.reading-fix dd { margin: 0; overflow-wrap: anywhere; }
.reading-state { margin: 10px 0; color: var(--ink-3); font-size: 12px; }
.reading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 12px 0; font-size: 13px; }
.reading-backlinks { font-size: 13px; margin-top: 8px !important; }
.reading-basis { margin: 12px 0 24px; padding: 13px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; }
.reading-basis summary { cursor: pointer; font-size: 15px; color: var(--accent); }
.reading-basis .refs { margin-bottom: 0; }
.reading-draft, .reading-law { margin: -2px 0 24px; border-left: 3px solid var(--g6); padding: 9px 14px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; }
.reading-draft b, .reading-law b { display: block; color: var(--ink); }
.reading-stories { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 24px; font-size: 13px; }
.reading-stories > span { color: var(--ink-3); }
.reading-fix:target { box-shadow: 0 0 0 2px var(--accent-fill); }

/* 方圆市：每件事的进程与人物视角。 */
#stories { position: relative; padding-top: 28px; scroll-margin-top: 0; }
.story-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
#people { padding-top: 28px; scroll-margin-top: 0; }
#people .band-h { position: relative; }
.people-subjects { position: relative; font-size: 14px; }
.people-subjects > summary { cursor: pointer; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-2); background: var(--card); }
.people-subjects .fy-chips { position: absolute; top: calc(100% + 10px); right: 0; z-index: 8; width: min(660px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); box-shadow: var(--shadow); }
#people .fy-group { margin: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 5px; scroll-margin-top: 0; }
#people .fy-group > h3 { font-size: 23px; margin: 0 0 18px; }
#people .fy-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#people .fy-card { min-width: 0; gap: 10px; padding: 10px; border-radius: 4px; background: var(--paper); border: 1px solid var(--rule); box-shadow: none; }
#people .fy-card:hover, #people .fy-card.on { border-color: var(--accent); }
#people .fy-card .fy-face { width: 56px; height: 56px; }
#people .fy-card-t strong { font-size: 16px; }
#people .fy-card-t span { font-size: 13px; }
.people-panels.is-enhanced .fy-card.fy-dim { display: none; }
.people-pages { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 13px; }
.people-pages button { padding: 7px 18px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); cursor: pointer; }
.people-pages button:disabled { opacity: .35; cursor: default; }
.people-pages span { font: 12px var(--mono); color: var(--ink-3); }
.people-relations { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 12px; }
.people-relations > summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.people-relations .fy-kin { margin-top: 12px; box-shadow: none; }
.people-choices .fy-face { width: 34px; height: 34px; flex: none; }
.people-empty { color: var(--ink-3); }
.journey-map-entry { position: absolute; z-index: 3; right: 74px; bottom: 20px; padding: 9px 17px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--rule); border-radius: 3px; font-size: 13px; text-decoration: none; color: var(--ink); cursor: pointer; }
/* 故事选择与正文分开：十二个入口排成网格，正文只保留当前故事。 */
.journey-choices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 20px 0 16px; }
.journey-choices a { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 62px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.5; }
.journey-choices img { width: 48px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; flex: none; }
.journey-choices a[aria-current], .journey-choices a:hover { border-color: var(--accent); color: var(--accent); background: var(--paper-2); }
.hui { display: flex; flex-direction: column; min-width: 0; font-family: var(--serif); letter-spacing: .05em; color: var(--ink); }
.journey-choices a.story-choice { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 10px 14px; }
.journey-choices a.story-choice small { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.journey-choices .hui { font-size: 15px; line-height: 1.6; }
.journey-choices .hui > span { white-space: nowrap; }
.journey-choices a[aria-current] .hui, .journey-choices a:hover .hui { color: var(--accent); }
.hui-line { display: inline-flex; flex-direction: row; flex-wrap: wrap; column-gap: 1em; }
.journey > summary strong small, .journey > .journey-head strong small { margin-right: 1em; font-size: .62em; font-weight: 400; letter-spacing: .12em; color: var(--ink-3); vertical-align: .18em; }
.journey > summary strong, .journey > .journey-head strong { display: flex; align-items: baseline; flex-wrap: wrap; }
.journey { border: 1px solid var(--rule); border-radius: 5px; margin: 12px 0; background: var(--card); overflow: clip; }
.journey > summary, .journey > .journey-head { position: relative; display: flex; align-items: center; margin: 0; padding: 14px 20px; cursor: pointer; list-style: none; border-bottom: 1px solid var(--rule); }
.journey > summary::-webkit-details-marker { display: none; }
.journey > summary strong, .journey > .journey-head strong { font: 700 23px/1.5 var(--serif); }
.journey.is-enhanced > summary, .journey.is-enhanced > .journey-head { cursor: default; }
.journey-body { padding: 18px 20px; }
.journey-story { max-width: 46em; margin: 0 0 20px; font-family: var(--serif); font-size: calc(16.5px * var(--fs, 1)); line-height: 1.9; color: var(--ink-2); text-wrap: pretty; }
.journey-progress, .journey-perspectives { min-width: 0; }
.journey-progress > h3, .journey-perspectives > h3 { font-size: 17px; margin: 0 0 14px; }
.journey-mode { display: flex; width: fit-content; max-width: 100%; gap: 5px; padding: 4px; border-radius: 4px; background: var(--paper-2); margin: 0 0 20px; }
.journey-mode button { border: 0; border-radius: 6px; padding: 8px 18px; background: none; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.journey-mode button[aria-pressed="true"] { color: var(--accent); background: var(--card); box-shadow: var(--shadow); }
.journey-person-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.journey-person-panel.is-single { grid-template-columns: minmax(0, 1fr); }
.journey-outcomes > h3 { font-size: 17px; margin: 0 0 14px; }
.journey-outcomes .fy-whos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.journey-outcomes .fy-who { align-items: flex-start; min-width: 0; }
.journey-outcomes .fy-face { flex: none; }
.journey-outcomes .fy-guest em { max-width: none; }
.journey-lessons .fy-eps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; }
.journey-lessons .fy-eps .fy-ep { width: auto; }
.stories-empty { color: var(--ink-3); }
.journey-steps { display: flex; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; overflow-x: auto; border-bottom: 1px solid var(--rule); }
.journey-steps li { flex: 1 0 auto; }
.journey-steps a { display: flex; gap: 6px; align-items: center; padding: 10px 6px; font-size: 13px; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.journey-steps a span { font: 11px var(--mono); color: var(--ink-3); }
.journey-steps a[data-current], .journey-steps a:hover { border-color: var(--accent-fill); color: var(--accent); background: var(--paper); }
.journey-step, .journey-view { scroll-margin-top: 16px; padding: 12px 0; }
.journey-step h4, .journey-view h4 { font: 700 22px/1.55 var(--serif); margin: 0 0 12px; }
.journey-life-progress .journey-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.journey-life-progress .journey-steps a { padding-inline: 10px; }
.journey-life-step { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; }
.journey-life-face { display: block; border-radius: 50%; overflow: hidden; background: var(--paper-2); }
.journey-life-face img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.journey-life-step p { margin: 0 0 18px; font-size: 16px; color: var(--ink-2); line-height: 1.8; }
.journey-watch { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; max-width: 760px; padding: 12px; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); }
.journey-watch > img { width: 94px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.journey-watch > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.journey-watch small { color: var(--ink-3); font-size: 12px; }
.journey-watch strong { font-size: 14px; }
.journey-watch > b { margin-left: auto; color: var(--accent); }
.journey-watch:hover { border-color: var(--accent); }
.journey-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; font-size: 13px; }
.journey-controls button { border: 1px solid var(--rule); border-radius: 3px; padding: 8px 20px; background: var(--paper); cursor: pointer; }
.journey-controls button:disabled { opacity: .38; cursor: default; }
.journey-position { font: 12px var(--mono); color: var(--ink-3); }
.journey-perspectives { border-left: 1px solid var(--rule); padding-left: 28px; }

.journey-people { display: flex; flex-wrap: wrap; gap: 10px; }
.journey-people a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--rule); border-radius: 3px; padding: 5px 16px 5px 7px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.journey-people img { height: 34px; width: 34px; object-fit: contain; border-radius: 50%; background: var(--paper-2); }
.journey-people a[data-current] { border-color: var(--accent); color: var(--accent); background: var(--paper); }
.journey-view > p { color: var(--ink-2); font-size: 15px; }
.journey-view h4 { font-size: 19px; margin: 8px 0; }
.journey-people { min-height: 58px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.journey-updates { border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 16px; font-size: 14px; }
.journey-updates summary { cursor: pointer; color: var(--accent); }
.journey-updates ul { padding: 0; list-style: none; }
.journey-updates li { display: flex; gap: 16px; margin: 15px 0; }
.journey-updates time { white-space: nowrap; font-size: 12px; color: var(--ink-3); }
.journey-updates p { font-size: 13px; color: var(--ink-2); margin: 5px 0 0; }
@media (min-width: 721px) and (max-width: 1080px) { .journey-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } #people .fy-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .people-subjects { position: static; }
  .people-subjects .fy-chips { top: calc(100% + 10px); right: 0; }
  #people .fy-group { padding: 16px; }
  #people .fy-group > h3 { font-size: 21px; }
  #people .fy-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #people .fy-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  #people .fy-card .fy-face { width: 44px; height: 44px; }
  #people .fy-card-t span { font-size: 12px; }
  .people-relations .fy-kin { margin-inline: 0; border-radius: 4px; padding-inline: 0; }
  .reading-meta { gap: 7px 16px; }
  .reading-fix dl > div { grid-template-columns: 1fr; gap: 2px; }
  .journey-choices { display: flex; overflow-x: auto; gap: 8px; padding: 2px 0 10px; scroll-snap-type: x proximity; }
  .journey-choices a { flex: 0 0 178px; scroll-snap-align: start; }
  .journey-choices img { width: 48px; }
  .journey > summary, .journey > .journey-head { padding: 14px 16px; }
  .journey > summary strong, .journey > .journey-head strong { font-size: 21px; }
  .journey-person-panel { display: block; }
  .journey-person-panel .journey-perspectives { padding: 18px 0 0; margin-top: 18px; border: 0; border-top: 1px solid var(--rule); }
  .journey-lessons .fy-eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-mode { width: 100%; gap: 3px; }
  .journey-mode button { flex: 1; padding: 8px 5px; font-size: 13px; white-space: nowrap; }
  .journey-body { padding: 16px; }
  .journey-step h4 { font-size: 22px; }
  .journey-life-progress .journey-steps { display: flex; }
  .journey-life-step { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .journey-life-step > div { display: contents; }
  .journey-life-step h4 { font-size: 20px; align-self: center; margin: 0; }
  .journey-life-step p, .journey-life-step .journey-watch, .journey-life-step .reading-law { grid-column: 1 / -1; margin-bottom: 0; }
  .journey-watch { gap: 12px; padding: 10px; }
  .journey-watch > img { width: 90px; }
  .journey-watch strong { font-size: 14px; }
  .journey-updates li { flex-direction: column; gap: 3px; }
  .journey-map-entry { right: 64px; bottom: 16px; font-size: 12px; padding: 8px 14px; max-width: calc(100% - 80px); }
}
