/* ============================================================
   国家地理风格 S&OP 演示 · 感知驱动（brand-borrowed / 个人演讲档）
   令牌：style-contract.json（inferred：黄框取景窗 / 编辑黑 / 纸白 /
   Atlas 羊皮纸 / 棕褐细线 / 路线红 / 制图蓝；
   字体 DNA：编辑衬线 600 × 窄体全大写宽字距注记层）
   构图来源：杂志封面公式 / 摄影专题对页 / 特稿对页 /
   Atlas 副刊地图 / 剖面科学图版 / cutaway 图版 / 手记页+封底
   ============================================================ */

:root {
  --yellow: #ffce0a;
  --yellow-deep: #d8a900;
  --ink: #181510;
  --ink-soft: #2a251c;
  --night: #12100d;
  --paper: #f7f2e4;
  --paper-dim: #efe7d3;
  --cream: #efe6ce;
  --cream-hi: #f5eedc;
  --sepia: #b8a379;
  --sepia-strong: #8f7b52;
  --map-ink: #4c4433;
  --red: #b0402a;
  --red-bright: #e56a4b;
  --blue: #33566b;
  --wht: #f7f3e8;
  --wht-dim: rgba(247, 243, 232, 0.74);
  --line-dark: rgba(76, 68, 51, 0.34);
  --line-light: rgba(247, 243, 232, 0.26);

  --serif: Georgia, "Songti SC", "STSong", "Times New Roman", "Noto Serif SC", serif;
  --cond: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", "PingFang SC", sans-serif;
  --sans: -apple-system, system-ui, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;

  --t-title: clamp(44px, 3.55vw, 69px);      /* 内页标题 ≥64 @1920 */
  --t-sub: clamp(26px, 1.85vw, 36px);
  --t-body-lg: clamp(24px, 1.62vw, 31px);    /* 强调正文 */
  --t-body: clamp(22px, 1.5vw, 29px);        /* 正文 ≥28 @1920 */
  --t-note: clamp(16px, 1.15vw, 22px);       /* 注释 ≥18 @1920 */
  --t-meta: clamp(15px, 1vw, 19px);          /* 元数据 ≥18 @1920 */

  --pad-x: clamp(52px, 4.4vw, 86px);
  --pad-top: clamp(64px, 8.4vh, 92px);
  --pad-bottom: clamp(52px, 6.6vh, 74px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.deck { position: fixed; inset: 0; overflow: hidden; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 480ms ease;
  overflow: hidden;
  background: var(--paper);
}

.slide.is-active { opacity: 1; visibility: visible; }

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
}

/* ---------- 双层字阶：编辑衬线大标题 × 窄体大写注记 ---------- */

.slide-heading { margin-bottom: clamp(14px, 2.2vh, 24px); }

.kicker {
  display: flex;
  align-items: center;
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--map-ink);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 5px;
  background: var(--yellow);
  margin-right: 16px;
  flex: none;
}

.k-latin {
  color: var(--sepia-strong);
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid var(--line-dark);
}

.slide-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.slide-dark .slide-heading h2,
.slide-profile .slide-heading h2 { color: var(--wht); }
.slide-dark .kicker,
.slide-profile .kicker { color: var(--wht-dim); }
.slide-dark .k-latin,
.slide-profile .k-latin { color: var(--yellow); border-right-color: var(--line-light); }

.folio {
  position: absolute;
  top: clamp(24px, 3.4vh, 38px);
  right: var(--pad-x);
  z-index: 30;
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--map-ink);
}

.folio::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 5px;
  background: var(--yellow);
  margin-right: 12px;
  vertical-align: middle;
}

.slide-dark .folio, .slide-profile .folio { color: var(--wht-dim); }

/* ---------- 结论带（黄=唯一强调色的大面积许可位） ---------- */

.verdict-band {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(12px, 1.9vh, 20px) clamp(20px, 1.8vw, 34px);
}

.verdict-band svg { width: clamp(26px, 1.75vw, 34px); height: auto; flex: none; }

.verdict-band p {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ============================================================
   P1 · 杂志封面
   ============================================================ */

.slide-cover { background: var(--night); }

.cover-photo { position: absolute; inset: 0; overflow: hidden; }

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform-origin: 50% 42%;
  animation: cover-push 12s ease-in-out infinite alternate;
}

@keyframes cover-push {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.66) 0%, rgba(10, 12, 16, 0.18) 24%, rgba(10, 12, 16, 0) 42%),
    linear-gradient(0deg, rgba(10, 11, 14, 0.78) 0%, rgba(10, 11, 14, 0.34) 22%, rgba(10, 11, 14, 0) 46%);
}

.cover-frame {
  position: absolute;
  inset: clamp(16px, 2.2vh, 26px);
  border: clamp(10px, 1.5vh, 16px) solid var(--yellow);
  z-index: 3;
  pointer-events: none;
}

.cover-content { z-index: 4; padding: clamp(48px, 7vh, 76px) clamp(64px, 5.4vw, 104px); }

.masthead { text-align: center; }

.masthead-kicker {
  margin: 0 0 clamp(8px, 1.4vh, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--cond);
  font-size: var(--t-note);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wht);
}

.masthead-kicker .mk-latin { color: var(--yellow); }

.masthead-kicker .mk-cn { letter-spacing: 0.3em; }

.masthead-kicker::before,
.masthead-kicker::after {
  content: "";
  height: 1px;
  width: clamp(60px, 7vw, 140px);
  background: rgba(247, 243, 232, 0.5);
}

.masthead-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(96px, 8.6vw, 166px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--wht);
  text-shadow: 0 4px 34px rgba(8, 10, 14, 0.55);
}

.masthead-sub {
  margin: clamp(8px, 1.4vh, 16px) 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 2.9vw, 56px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--wht);
  text-shadow: 0 3px 24px rgba(8, 10, 14, 0.6);
}

.cover-lines { margin-top: auto; }

.cover-lead {
  margin: 0 0 clamp(12px, 2vh, 20px);
  font-family: var(--sans);
  font-size: var(--t-body-lg);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--wht);
  text-shadow: 0 2px 16px rgba(8, 10, 14, 0.7);
}

.cover-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(18px, 2vw, 38px);
}

.cover-tags li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--wht);
  padding: 0.36em 0;
  border-top: 3px solid var(--yellow);
}

.cover-tags svg { width: 1.05em; height: 1.05em; color: var(--yellow); }

.cover-issue {
  position: absolute;
  right: clamp(64px, 5.4vw, 104px);
  top: clamp(52px, 7.4vh, 82px);
  display: none;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-family: var(--cond);
  font-size: var(--t-meta);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wht-dim);
}

.cover-credit {
  position: absolute;
  right: clamp(64px, 5.4vw, 104px);
  bottom: clamp(88px, 12.5vh, 134px);
  margin: 0;
  font-family: var(--cond);
  font-size: var(--t-meta);
  letter-spacing: 0.2em;
  color: rgba(247, 243, 232, 0.62);
}

.cover-foot {
  position: absolute;
  left: 50%;
  bottom: clamp(34px, 4.8vh, 52px);
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: var(--t-meta);
  letter-spacing: 0.08em;
  color: rgba(247, 243, 232, 0.78);
}

/* ============================================================
   P2 · 摄影专题三联页（暗部编辑页）
   ============================================================ */

.slide-dark {
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, #1d1a15 0%, var(--night) 66%);
}

.essay-row {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 1.8vw, 34px);
  margin-bottom: clamp(12px, 1.9vh, 20px);
}

.essay-card {
  margin: 0;
  width: clamp(360px, 26vw, 520px);
  display: flex;
  flex-direction: column;
  background: #201c16;
  border: 1px solid rgba(184, 163, 121, 0.28);
}

.essay-media {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.essay-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.essay-card:nth-child(2) .essay-media img { object-position: 50% 22%; }
.essay-card:nth-child(3) .essay-media img { object-position: 50% 42%; }

.essay-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.34em 0.9em;
  background: rgba(14, 13, 10, 0.78);
  border-left: 5px solid var(--yellow);
  font-family: var(--cond);
  font-size: var(--t-note);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--wht);
}

.essay-caption {
  padding: clamp(12px, 1.8vh, 20px) clamp(16px, 1.3vw, 24px);
  border-top: 3px solid var(--yellow);
  background: #241f18;
}

.cap-name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.35;
  color: var(--wht);
}

.cap-meta {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-meta);
  letter-spacing: 0.04em;
  color: var(--wht-dim);
}

.cap-ai {
  flex: none;
  font-family: var(--cond);
  letter-spacing: 0.18em;
  color: rgba(247, 243, 232, 0.48);
}

.conflict-strip {
  margin: 0 0 clamp(10px, 1.6vh, 16px);
  padding: clamp(10px, 1.7vh, 18px) clamp(18px, 1.6vw, 30px);
  border-left: 5px solid var(--red);
  background: rgba(176, 64, 42, 0.12);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--wht);
}

.conflict-strip em {
  font-style: normal;
  font-weight: 700;
  color: var(--red-bright);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ============================================================
   P3 · 编辑对页（特稿 drop cap + 深底边栏）
   ============================================================ */

.slide-paper {
  background:
    linear-gradient(90deg, rgba(184, 163, 121, 0.12) 0, rgba(184, 163, 121, 0) 3%),
    var(--paper);
}

.edit-spread {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(28px, 2.6vw, 48px);
  margin-bottom: clamp(14px, 2.2vh, 22px);
}

.edit-main {
  flex: 1.35;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: clamp(24px, 2.2vw, 42px);
  border-right: 1px solid var(--line-dark);
}

.edit-label {
  margin: 0 0 clamp(12px, 2vh, 20px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: var(--t-sub);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.edit-label svg { width: 1.1em; height: 1.1em; padding: 0.18em; flex: none; }

.edit-label.yes { color: var(--ink); }
.edit-label.yes svg { background: var(--yellow); color: var(--ink); }

.edit-label.no { color: var(--wht); }
.edit-label.no svg { background: var(--red); color: var(--wht); }

.edit-def {
  margin: 0 0 clamp(18px, 3vh, 32px);
  font-size: clamp(25px, 1.72vw, 33px);
  line-height: 1.78;
  color: var(--ink-soft);
  text-wrap: balance;
}

.dropcap {
  float: left;
  font-family: var(--serif);
  font-size: clamp(72px, 5.5vw, 106px);
  line-height: 0.86;
  font-weight: 600;
  padding: 0.08em 0.16em 0 0;
  color: var(--ink);
}

.edit-sub {
  margin: 0 0 clamp(10px, 1.6vh, 16px);
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 700;
  color: var(--ink);
}

.edit-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.edit-tasks li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--ink-soft);
  padding: clamp(6px, 1vh, 12px) 0 clamp(12px, 2vh, 20px);
  border-bottom: 1px dotted var(--line-dark);
}

.edit-tasks li:last-child { border-bottom: 0; }

.tk {
  flex: none;
  width: 1.7em;
  height: 1.7em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sepia-strong);
  color: var(--map-ink);
}

.tk svg { width: 68%; height: 68%; }

.edit-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--wht);
  padding: clamp(22px, 3.2vh, 36px) clamp(24px, 2.2vw, 40px);
}

.edit-nots {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.edit-nots li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--wht);
}

.nk {
  flex: none;
  width: 1.6em;
  height: 1.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(229, 106, 75, 0.55);
  color: var(--red-bright);
}

.nk svg { width: 62%; height: 62%; }

/* ============================================================
   P4 · 远征路线图（Atlas 羊皮纸）
   ============================================================ */

.slide-map { background: var(--cream); }

.map-sheet {
  position: absolute;
  inset: clamp(12px, 1.7vh, 18px);
  border: 2px solid rgba(143, 123, 82, 0.55);
  outline: 1px solid rgba(143, 123, 82, 0.4);
  outline-offset: 5px;
  pointer-events: none;
  z-index: 5;
}

.map-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.map-contours path {
  fill: none;
  stroke: var(--sepia);
  stroke-width: 1.4;
}

.slide-map .slide-content { z-index: 6; }

.map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 clamp(4px, 0.6vw, 12px) clamp(12px, 2vh, 20px);
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line {
  fill: none;
  stroke: var(--map-ink);
  stroke-width: 3.4;
  stroke-dasharray: 1.35 0.95;
  stroke-linecap: round;
}

.route-return {
  fill: none;
  stroke: var(--sepia-strong);
  stroke-width: 2.4;
  stroke-dasharray: 0.5 0.9;
  stroke-linecap: round;
  opacity: 0.85;
}

.return-arrow { stroke: var(--sepia-strong); stroke-width: 2.4; stroke-linejoin: round; }

.slide.is-active .route-svg { animation: route-reveal 1400ms ease-out both; }

@keyframes route-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.camp-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid var(--ink);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.camp-card {
  position: absolute;
  width: 23%;
  background: var(--cream-hi);
  border: 1.5px solid var(--sepia-strong);
  box-shadow: 6px 6px 0 rgba(76, 68, 51, 0.12);
  padding: clamp(12px, 1.9vh, 20px) clamp(16px, 1.4vw, 26px);
  z-index: 2;
}

.camp-no {
  margin: 0 0 6px;
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sepia-strong);
}

.camp-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(26px, 1.85vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.camp-card p {
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink-soft);
}

.return-note {
  position: absolute;
  left: 50%;
  bottom: -1.2%;
  transform: translate(-50%, 50%);
  margin: 0;
  padding: 0.3em 1.1em;
  background: var(--cream);
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--sepia-strong);
  z-index: 3;
}

.map-compass {
  position: absolute;
  top: -3%;
  right: 0.6%;
  width: clamp(74px, 5.4vw, 104px);
  z-index: 2;
}

.map-compass svg { width: 100%; height: auto; display: block; }
.map-compass circle { stroke: var(--sepia-strong); stroke-width: 1.6; }
.map-compass .cn { fill: var(--ink); }
.map-compass .cs { fill: none; stroke: var(--sepia-strong); stroke-width: 1.2; }
.map-compass text {
  font-family: var(--cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--map-ink);
}

.map-scale {
  position: absolute;
  left: 0.6%;
  bottom: 0.5%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.ms-bar { display: flex; height: 9px; border: 1.5px solid var(--map-ink); }
.ms-bar i { width: 34px; }
.ms-bar i:nth-child(odd) { background: var(--map-ink); }
.ms-bar i:nth-child(even) { background: var(--cream-hi); }

.ms-cap {
  font-family: var(--cond);
  font-size: var(--t-meta);
  letter-spacing: 0.2em;
  color: var(--map-ink);
}

/* ============================================================
   P5 · 登山剖面图（摄影底景 + 制图浮层）
   ============================================================ */

.slide-profile { background: var(--night); }

.profile-photo { position: absolute; inset: 0; }

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.profile-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 15, 0.8) 0%, rgba(10, 11, 15, 0.42) 32%, rgba(10, 11, 15, 0.52) 78%, rgba(10, 11, 15, 0.84) 100%);
}

.profile-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: clamp(12px, 2vh, 20px);
}

.profile-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.pf-ridge {
  fill: rgba(247, 243, 232, 0.07);
  stroke: rgba(247, 243, 232, 0.4);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.pf-route {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.slide.is-active .pf-route { animation: profile-draw 1400ms ease-out both; }

@keyframes profile-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.pf-return {
  fill: none;
  stroke: rgba(247, 243, 232, 0.62);
  stroke-width: 2.4;
  stroke-dasharray: 0.5 0.9;
  stroke-linecap: round;
}

.pf-flag { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linejoin: round; }

.station {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.st-no {
  width: clamp(40px, 2.9vw, 54px);
  height: clamp(40px, 2.9vw, 54px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--yellow);
  font-family: var(--serif);
  font-size: clamp(20px, 1.4vw, 27px);
  font-weight: 600;
  color: var(--wht);
}

.station.is-summit .st-no { background: var(--yellow); color: var(--ink); }

.st-name {
  margin-top: 10px;
  padding: 0.28em 0.85em;
  background: rgba(14, 13, 10, 0.82);
  border-left: 4px solid var(--yellow);
  white-space: nowrap;
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--wht);
}

.station.is-summit .st-name {
  position: absolute;
  bottom: calc(100% + 12px);
  margin-top: 0;
}

.pf-return-note {
  position: absolute;
  left: 50%;
  top: 96.5%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.28em 1.1em;
  background: rgba(14, 13, 10, 0.85);
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--wht-dim);
  z-index: 2;
}

.pf-credit {
  position: absolute;
  right: 0;
  top: -4.5%;
  margin: 0;
  font-family: var(--cond);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  color: rgba(247, 243, 232, 0.5);
}

.rhythm-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(12px, 1.9vh, 20px) clamp(18px, 1.6vw, 30px);
  background: rgba(24, 21, 16, 0.86);
  border: 1px solid var(--line-light);
  border-left: 5px solid var(--yellow);
}

.rh-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-size: var(--t-note);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--yellow);
}

.rh-chip svg { width: 1.3em; height: 1.3em; }

.rhythm-strip p { margin: 0; font-size: var(--t-body); line-height: 1.5; color: var(--wht); }

.rhythm-strip em { font-style: normal; font-weight: 700; }
.rhythm-strip em.g { color: var(--yellow); }
.rhythm-strip em.r { color: var(--red-bright); }

/* ============================================================
   P6 · 地层剖面科学图版
   ============================================================ */

.slide-strata { background: var(--paper); }

.strata-plate {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(18px, 1.7vw, 30px);
  margin-bottom: clamp(14px, 2.2vh, 22px);
}

.strata-left {
  flex: none;
  width: clamp(64px, 4.8vw, 92px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bracket {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px solid var(--sepia-strong);
}

.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 14px;
  height: 2px;
  background: var(--sepia-strong);
}

.bracket::before { top: 0; }
.bracket::after { bottom: 0; }

.bracket span {
  writing-mode: vertical-rl;
  font-family: var(--cond);
  font-size: var(--t-note);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--map-ink);
}

.br-upper { flex: 1.72; }
.br-core { flex: 1; }
.br-core span { color: var(--red); }
.br-core { border-right-color: var(--red); }
.br-core::before, .br-core::after { background: var(--red); }

.strata-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stratum {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 1.8vh, 20px) clamp(20px, 1.8vw, 34px);
  border: 1.5px solid var(--sepia-strong);
}

.stratum.st-ai {
  background:
    repeating-linear-gradient(-48deg, rgba(51, 86, 107, 0.07) 0 12px, rgba(51, 86, 107, 0) 12px 26px),
    var(--cream-hi);
}

.stratum.st-it {
  background:
    repeating-linear-gradient(0deg, rgba(143, 123, 82, 0.1) 0 2px, rgba(143, 123, 82, 0) 2px 16px),
    var(--cream);
}

.stratum.st-core {
  flex: 1.18;
  background:
    repeating-linear-gradient(52deg, rgba(247, 243, 232, 0.05) 0 3px, rgba(247, 243, 232, 0) 3px 18px),
    var(--ink);
  border-color: var(--ink);
  color: var(--wht);
}

.st-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(8px, 1.3vh, 14px);
}

.st-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 1.85vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.st-tag {
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 0.2em 0.8em;
  border: 1.5px solid rgba(51, 86, 107, 0.5);
}

.st-tag.keep {
  color: var(--yellow);
  border-color: rgba(255, 206, 10, 0.6);
  background: rgba(255, 206, 10, 0.1);
}

.st-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(12px, 1.1vw, 20px);
}

.st-items li {
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.3;
  padding: 0.22em 0.75em;
  background: rgba(247, 242, 228, 0.72);
  border: 1px solid var(--line-dark);
  color: var(--ink-soft);
}

.st-core .st-items li {
  background: rgba(247, 243, 232, 0.1);
  border-color: var(--line-light);
  color: var(--wht);
  font-weight: 600;
}

.effect-column {
  flex: none;
  width: clamp(300px, 21vw, 400px);
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--sepia-strong);
  background: var(--cream-hi);
  padding: clamp(14px, 2.2vh, 24px) clamp(18px, 1.6vw, 30px);
}

.ef-head {
  margin: 0 0 clamp(10px, 1.6vh, 16px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cond);
  font-size: var(--t-note);
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--map-ink);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--yellow);
}

.ef-head svg { width: 1.35em; height: 1.35em; color: var(--sepia-strong); }

.ef-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.ef-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--ink-soft);
}

.ei {
  flex: none;
  width: 1.55em;
  height: 1.55em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sepia-strong);
}

.ei svg { width: 100%; height: 100%; }

/* ============================================================
   P7 · 田野手记清单 + 封底告别帧
   ============================================================ */

.slide-check { background: var(--paper); }

.slide-check .slide-content { padding: 0; }

.check-spread { flex: 1; min-height: 0; display: flex; }

.check-notebook {
  flex: 1.78;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--pad-top) clamp(30px, 2.5vw, 50px) clamp(78px, 9.8vh, 106px) var(--pad-x);
  background:
    linear-gradient(90deg, rgba(176, 64, 42, 0) calc(var(--pad-x) - 26px), rgba(176, 64, 42, 0.4) calc(var(--pad-x) - 26px), rgba(176, 64, 42, 0.4) calc(var(--pad-x) - 24px), rgba(176, 64, 42, 0) calc(var(--pad-x) - 24px)),
    var(--paper);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(8px, 1.3vh, 14px) 0;
  border-bottom: 1px dotted var(--line-dark);
}

.check-list li:last-child { border-bottom: 0; }

.slide-check .slide-heading h2 { font-size: clamp(42px, 3.4vw, 65px); }

.check-list p { margin: 0; font-size: var(--t-body); line-height: 1.5; color: var(--ink-soft); }

.cq {
  flex: none;
  width: 1.75em;
  height: 1.75em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sepia-strong);
  color: var(--map-ink);
  font-size: var(--t-body);
}

.cq svg { width: 64%; height: 64%; }

.gap-strip {
  margin-top: clamp(10px, 1.7vh, 18px);
  padding: clamp(12px, 1.9vh, 20px) clamp(16px, 1.4vw, 26px);
  background: var(--cream);
  border: 1.5px solid var(--sepia-strong);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gap-label {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 700;
  color: var(--ink);
}

.gap-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gap-tags li {
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--ink);
  padding: 0.2em 0.8em;
  background: rgba(255, 206, 10, 0.24);
  border: 1.5px solid var(--yellow-deep);
}

.check-foot {
  margin: clamp(10px, 1.7vh, 18px) 0 0;
  font-size: var(--t-meta);
  letter-spacing: 0.05em;
  color: var(--sepia-strong);
}

.farewell {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.farewell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
}

.farewell-corner {
  position: absolute;
  top: clamp(20px, 3vh, 32px);
  left: clamp(20px, 2vw, 32px);
  width: clamp(96px, 8.5vw, 150px);
  height: clamp(96px, 8.5vw, 150px);
  border-top: clamp(8px, 1.2vh, 12px) solid var(--yellow);
  border-left: clamp(8px, 1.2vh, 12px) solid var(--yellow);
  z-index: 2;
}

.farewell-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(120px, 16vh, 180px) clamp(28px, 2.6vw, 48px) clamp(58px, 7.6vh, 84px);
  background: linear-gradient(0deg, rgba(10, 11, 14, 0.9) 0%, rgba(10, 11, 14, 0.58) 55%, rgba(10, 11, 14, 0) 100%);
}

.fw-quote {
  margin: 0 0 clamp(14px, 2.2vh, 24px);
  font-family: var(--serif);
  font-size: clamp(24px, 1.57vw, 30px);
  font-weight: 600;
  line-height: 1.66;
  color: var(--wht);
}

.fw-quote mark {
  background: transparent;
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.fw-meta {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--wht-dim);
}

.fw-meta .fw-ai { color: rgba(247, 243, 232, 0.5); letter-spacing: 0.16em; }

/* ============================================================
   全局角标 · 控制 · 讲稿
   ============================================================ */

.brand-pill {
  position: fixed;
  top: clamp(22px, 3.2vh, 36px);
  left: clamp(24px, 2vw, 40px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
}

body[data-current="p1"] .brand-pill { display: none; }

.brand-bar { width: 8px; height: 26px; background: var(--yellow); }

.brand-name {
  font-family: var(--cond);
  font-size: clamp(17px, 1.15vw, 22px);
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--ink);
}

.brand-tail {
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--sepia-strong);
}

body[data-current="p2"] .brand-name,
body[data-current="p5"] .brand-name { color: var(--wht); }
body[data-current="p2"] .brand-tail,
body[data-current="p5"] .brand-tail { color: var(--wht-dim); }

.deck-controls {
  position: fixed;
  left: clamp(24px, 2vw, 40px);
  bottom: clamp(18px, 2.6vh, 28px);
  z-index: 40;
  display: flex;
  gap: 10px;
}

.deck-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(143, 123, 82, 0.6);
  border-radius: 2px;
  background: rgba(24, 21, 16, 0.82);
  color: rgba(247, 243, 232, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deck-controls button:hover { color: var(--yellow); border-color: var(--yellow); }
.deck-controls button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.deck-controls button:disabled { opacity: 0.35; cursor: default; }
.deck-controls svg { width: 19px; height: 19px; }

.slide-counter {
  position: fixed;
  right: clamp(24px, 2vw, 40px);
  bottom: clamp(20px, 3vh, 32px);
  z-index: 40;
  font-family: var(--serif);
  font-size: clamp(16px, 1.1vw, 21px);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--map-ink);
}

body[data-current="p1"] .slide-counter,
body[data-current="p2"] .slide-counter,
body[data-current="p5"] .slide-counter { color: var(--wht-dim); }
body[data-current="p7"] .slide-counter { color: var(--wht-dim); }

.notes-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 46vw);
  background: var(--paper);
  color: var(--ink);
  border-left: 4px solid var(--yellow);
  box-shadow: -20px 0 48px rgba(10, 10, 8, 0.4);
  transform: translateX(105%);
  transition: transform 300ms ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
}

.notes-panel.is-open { transform: translateX(0); }

.notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.notes-title { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.notes-title em { font-style: normal; color: var(--yellow-deep); margin-right: 4px; }

.notes-close {
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 2px;
  font-size: 17px;
  cursor: pointer;
}

.notes-close:hover { border-color: var(--yellow-deep); color: var(--yellow-deep); }
.notes-close:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.notes-copy {
  overflow: auto;
  font-size: 19px;
  line-height: 1.9;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

/* ---------- P1 封面上的控制区内收（避免压在黄框上） ---------- */

body[data-current="p1"] .deck-controls {
  left: auto;
  right: clamp(150px, 11vw, 210px);
  bottom: clamp(46px, 6vh, 62px);
}

body[data-current="p1"] .slide-counter {
  right: clamp(56px, 4.2vw, 80px);
  bottom: clamp(56px, 7.2vh, 76px);
}

/* ---------- 降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .notes-panel { transition: none; }
  .cover-photo img { animation: none; transform: scale(1.04); }
  .slide.is-active .route-svg { animation: none; clip-path: none; }
  .slide.is-active .pf-route { animation: none; stroke-dashoffset: 0; }
}

/* ---------- 窄窗兜底（演示以 16:9 优先） ---------- */

@media (max-width: 1100px) {
  .slide-content { overflow-y: auto; }
  .essay-row { flex-direction: column; align-items: center; }
  .essay-card { width: min(92%, 560px); min-height: 420px; }
  .edit-spread, .strata-plate, .check-spread { flex-direction: column; }
  .edit-main { border-right: 0; padding-right: 0; }
  .strata-left { flex-direction: row; width: auto; height: 40px; }
  .bracket { border-right: 0; border-bottom: 2px solid var(--sepia-strong); }
  .bracket span { writing-mode: horizontal-tb; }
  .map-stage, .profile-stage { min-height: 480px; }
  .farewell { min-height: 460px; }
  .cover-foot { white-space: normal; width: 86%; }
}
