/* ============================================================
   小红书风格 S&OP 演示 · 黄金标准版
   设计令牌来源：style-contract.json（verified）+ perception-map.md
   尺度规则：演示舞台尺度（1920 基准：标题≥64px，正文≥28px）
   ============================================================ */

:root {
  /* verified tokens */
  --red: #ff2442;
  --ink: #262626;
  --muted: #999999;
  --canvas: #f2f4f9;            /* 源自 rgb(238,241,248)，微调至暖 */
  --surface: #ffffff;
  --shadow-low: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);

  /* derived tokens（由品牌红衍生，见 material-map 说明） */
  --red-deep: #e01937;
  --pink-soft: #fff0f2;
  --pink-mid: #ffd9df;
  --pink-line: #ffc3cc;
  --ink-soft: #4c4c4c;
  --shadow-card: 0 14px 36px rgba(38, 38, 38, 0.12);
  --shadow-pop: 0 20px 48px rgba(224, 25, 55, 0.18);

  /* 形状 */
  --pill: 999px;
  --r-card: 22px;
  --r-chip: 12px;

  /* 演示尺度（舞台字号，非网页字号） */
  --t-display: clamp(52px, 4.5vw, 86px);
  --t-title: clamp(40px, 3.35vw, 64px);
  --t-sub: clamp(26px, 1.8vw, 34px);
  --t-body-lg: clamp(24px, 1.6vw, 31px);
  --t-body: clamp(22px, 1.45vw, 28px);
  --t-note: clamp(18px, 1.15vw, 22px);
  --t-meta: clamp(15px, 0.95vw, 18px);

  --pad-x: clamp(48px, 4.6vw, 88px);
  --pad-y: clamp(36px, 4.2vh, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(88px, 10vh, 112px) var(--pad-x) var(--pad-y);
}

.slide-cover .slide-content { padding-top: var(--pad-y); }

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

/* ---------- 全局品牌角标与页面控制 ---------- */

.brand-pill {
  position: fixed;
  top: clamp(20px, 2.6vh, 32px);
  left: clamp(24px, 2vw, 40px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: clamp(17px, 1.15vw, 22px);
  letter-spacing: 0.04em;
  padding: 0.5em 0.95em;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(255, 36, 66, 0.28);
}

.brand-tail {
  font-size: var(--t-meta);
  color: var(--muted);
  font-weight: 600;
}

.slide.is-dark ~ nav .brand-tail { color: rgba(255, 255, 255, 0.8); }

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

.deck-controls button {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-low), 0 0 0 1px rgba(38, 38, 38, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deck-controls button:hover { color: var(--red); }
.deck-controls button:disabled { opacity: 0.35; cursor: default; }
.deck-controls svg { width: 20px; height: 20px; }

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

/* ---------- 讲稿面板 ---------- */

.notes-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 44vw);
  background: #fff;
  box-shadow: -18px 0 48px rgba(38, 38, 38, 0.16);
  transform: translateX(105%);
  transition: transform 280ms ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
}

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

@media (prefers-reduced-motion: reduce) {
  .notes-panel { transition: none; }
}

.notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.notes-title {
  font-size: 20px;
  font-weight: 700;
}

.notes-title em {
  font-style: normal;
  color: var(--red);
}

.notes-close {
  border: none;
  background: var(--pink-soft);
  color: var(--red);
  width: 40px;
  height: 40px;
  border-radius: var(--pill);
  font-size: 18px;
  cursor: pointer;
}

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

/* ---------- 通用页头 ---------- */

.slide-heading {
  margin-bottom: clamp(18px, 2.6vh, 30px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-soft);
  color: var(--red);
  font-size: var(--t-meta);
  font-weight: 700;
  padding: 0.42em 1em;
  border-radius: var(--pill);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.kicker svg { width: 1em; height: 1em; }

.slide-heading h2 {
  margin: 0;
  font-size: var(--t-title);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.short-underline {
  display: block;
  width: 64px;
  height: 7px;
  border-radius: var(--pill);
  background: var(--red);
  margin-top: 16px;
}

/* ---------- 通用红色结论横幅 ---------- */

.verdict-band {
  margin-top: auto;
  background: var(--red);
  color: #fff;
  border-radius: 18px;
  padding: clamp(16px, 2.2vh, 24px) clamp(24px, 2vw, 40px);
  font-size: var(--t-body-lg);
  font-weight: 700;
  line-height: 1.5;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  gap: 18px;
}

.verdict-band svg {
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
}

/* ---------- 贴纸 chip ---------- */

.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: clamp(18px, 1.25vw, 24px);
  padding: 0.5em 1.1em;
  border-radius: 14px;
  border: 3px dashed rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-card);
  letter-spacing: 0.06em;
  z-index: 5;
}

.sticker svg { width: 1.05em; height: 1.05em; }
.sticker-red { background: var(--red); color: #fff; transform: rotate(-6deg); }
.sticker-ink { background: var(--ink); color: #fff; transform: rotate(4deg); }

/* ============================================================
   P1 封面 · 母题「生活方式拼贴 + 深色幕布 + 中央主张」
   ============================================================ */

.slide-cover { background: #1c1114; }

.cover-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 10px;
  padding: 10px;
}

.cover-wall figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pink-mid), var(--pink-soft));
}

.cover-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.w-a { grid-row: span 3; }
.w-b { grid-row: span 4; }
.w-c { grid-row: span 2; }

.cover-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 62% at 50% 46%, rgba(26, 12, 15, 0.62) 0%, rgba(26, 12, 15, 0.45) 55%, rgba(26, 12, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(26, 12, 15, 0.55) 0%, rgba(26, 12, 15, 0.18) 34%, rgba(26, 12, 15, 0.2) 62%, rgba(26, 12, 15, 0.66) 100%);
}

.cover-center {
  position: relative;
  z-index: 3;
  margin: auto;
  text-align: center;
  color: #fff;
  max-width: 82vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3.4vh, 36px);
}

.cover-kicker .brand-logo {
  font-size: clamp(20px, 1.5vw, 28px);
  border-radius: 16px;
}

.cover-kicker span.tail {
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
}

.slide-cover h1 {
  margin: 0;
  font-size: var(--t-display);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.stroke-word {
  position: relative;
  white-space: nowrap;
}

.stroke-word svg {
  position: absolute;
  left: 2%;
  bottom: -0.18em;
  width: 96%;
  height: 0.34em;
  overflow: visible;
}

.stroke-word svg path {
  fill: none;
  stroke: var(--red);
  stroke-width: 10;
  stroke-linecap: round;
}

.cover-lead {
  margin: clamp(22px, 3.4vh, 38px) 0 0;
  font-size: var(--t-sub);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.04em;
}

.cover-pills {
  display: flex;
  gap: clamp(14px, 1.2vw, 22px);
  margin-top: clamp(24px, 3.8vh, 42px);
}

.cover-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  font-size: var(--t-body);
  font-weight: 700;
  padding: 0.62em 1.35em;
  border-radius: var(--pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.cover-pills .pill svg { width: 1.1em; height: 1.1em; color: var(--red); }

.cover-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 2.6vh, 28px);
  text-align: center;
  z-index: 3;
  font-size: var(--t-meta);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
}

/* ============================================================
   P2 · 母题「瀑布流笔记卡片」三份各自最优的笔记
   ============================================================ */

.note-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 1.8vw, 34px);
  align-items: start;
  flex: 1;
  min-height: 0;
  padding-top: 6px;
}

.note-card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.note-card.tilt-l { transform: rotate(-1.6deg); }
.note-card.tilt-r { transform: rotate(1.2deg); }
.note-card.tilt-s { transform: rotate(-0.5deg) translateY(10px); }

.note-cover {
  position: relative;
  aspect-ratio: 4 / 2.55;
  overflow: hidden;
  background: linear-gradient(150deg, var(--pink-mid), var(--pink-soft));
}

.note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-cover .cover-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: rgba(255, 36, 66, 0.92);
  color: #fff;
  font-size: clamp(17px, 1.2vw, 23px);
  font-weight: 800;
  padding: 0.38em 0.9em;
  border-radius: 10px;
  letter-spacing: 0.08em;
}

.note-body {
  padding: clamp(16px, 1.5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.note-title {
  margin: 0;
  font-size: var(--t-body-lg);
  line-height: 1.42;
  font-weight: 700;
  color: var(--ink);
}

.note-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--t-meta);
  font-weight: 600;
}

.avatar {
  width: 1.9em;
  height: 1.9em;
  border-radius: var(--pill);
  background: var(--pink-mid);
  color: var(--red);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95em;
}

.note-meta .likes {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.note-meta .likes svg { width: 1.15em; height: 1.15em; color: var(--red); }

.conflict-strip {
  margin-top: clamp(18px, 2.4vh, 28px);
  background: var(--pink-soft);
  border-left: 8px solid var(--red);
  border-radius: 14px;
  padding: clamp(14px, 1.8vh, 20px) clamp(20px, 1.8vw, 32px);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

.conflict-strip em {
  font-style: normal;
  color: var(--red);
  font-weight: 800;
}

/* ============================================================
   P3 · 母题「种草 / 避雷」边界对比
   ============================================================ */

.boundary-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 2vw, 40px);
  align-items: stretch;
}

.boundary-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 2.4vh, 36px) clamp(24px, 2vw, 38px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vh, 20px);
}

.boundary-card.is-yes { border-top: 10px solid var(--red); }
.boundary-card.is-no { border-top: 10px solid var(--ink); background: #fbfbfc; }

.boundary-head {
  font-size: var(--t-sub);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.boundary-head .mark {
  width: 1.5em;
  height: 1.5em;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

.is-yes .boundary-head .mark { background: var(--red); }
.is-no .boundary-head .mark { background: var(--ink); }
.boundary-head .mark svg { width: 0.85em; height: 0.85em; }

.boundary-intro {
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.58;
  color: var(--ink-soft);
  font-weight: 500;
}

.boundary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.boundary-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(10px, 1.4vh, 16px) 2px;
  font-size: var(--t-body);
  line-height: 1.5;
  font-weight: 600;
}

.boundary-list li + li { border-top: 1.5px solid #f0f0f3; }

.boundary-list .dot {
  flex: 0 0 auto;
  margin-top: 0.32em;
  width: 0.95em;
  height: 0.95em;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.is-yes .boundary-list .dot { background: var(--pink-soft); color: var(--red); }
.is-no .boundary-list .dot { background: #ececef; color: var(--ink-soft); }
.boundary-list .dot svg { width: 0.62em; height: 0.62em; }

.boundary-sub {
  font-size: var(--t-note);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ============================================================
   P4 · 母题「四步攻略 + 回流」核心架构
   ============================================================ */

.arch-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 26px);
}

.arch-steps {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  align-items: stretch;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.arch-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.6vh, 34px) clamp(20px, 1.6vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 22px);
  overflow: hidden;
}

.arch-card .ghost-num {
  position: absolute;
  right: 6px;
  bottom: -0.24em;
  font-size: clamp(110px, 8.6vw, 168px);
  font-weight: 800;
  line-height: 1;
  color: var(--pink-soft);
  z-index: 0;
  pointer-events: none;
}

.arch-card > :not(.ghost-num) { position: relative; z-index: 1; }

.arch-num {
  width: clamp(40px, 2.8vw, 54px);
  height: clamp(40px, 2.8vw, 54px);
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: clamp(20px, 1.45vw, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 36, 66, 0.32);
}

.arch-card h3 {
  margin: 2px 0 0;
  font-size: clamp(24px, 1.75vw, 34px);
  font-weight: 800;
}

.arch-card p {
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.58;
  color: var(--ink-soft);
  font-weight: 500;
}

.arch-arrow {
  align-self: center;
  color: var(--red);
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-arrow svg { width: 34px; height: 34px; }

.arch-loop {
  position: relative;
  height: clamp(48px, 6.2vh, 64px);
  margin: 0 clamp(30px, 3vw, 60px);
}

.arch-loop .loop-line {
  position: absolute;
  inset: 0;
  border: 3.5px dashed #ff8fa2;
  border-top: none;
  border-radius: 0 0 26px 26px;
}

.arch-loop .loop-line::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -14px;
  border: 10px solid transparent;
  border-bottom: 16px solid var(--red);
  transform: rotate(0deg);
}

.arch-loop .loop-label {
  position: absolute;
  left: 50%;
  bottom: -0.72em;
  transform: translateX(-50%);
  background: var(--canvas);
  padding: 0 22px;
  color: var(--red);
  font-size: var(--t-note);
  font-weight: 800;
  white-space: nowrap;
}

/* ============================================================
   P5 · 母题「月度打卡循环 + 周度异常」决策循环
   ============================================================ */

.slide-cycle .slide-content { flex-direction: row; gap: clamp(24px, 2.4vw, 48px); }

.cycle-left {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cycle-left .slide-heading h2 { font-size: clamp(36px, 2.9vw, 56px); }

.cycle-photo {
  margin: auto 0;
  align-self: flex-start;
  width: 66%;
  transform: rotate(-3deg);
  border: 12px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cycle-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cycle-rhythm {
  margin-top: auto;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.2vh, 28px) clamp(20px, 1.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cycle-rhythm .chip {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-size: var(--t-meta);
  font-weight: 800;
  padding: 0.35em 0.95em;
  border-radius: var(--pill);
  letter-spacing: 0.1em;
}

.cycle-rhythm p {
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 600;
}

.cycle-rhythm p em {
  font-style: normal;
  color: var(--red);
  font-weight: 800;
}

.cycle-stage {
  position: relative;
  flex: 1;
  min-width: 0;
}

.cycle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ring-size, min(66vh, 34vw));
  height: var(--ring-size, min(66vh, 34vw));
  transform: translate(-50%, -50%);
}

.cycle-ring .ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-svg circle {
  fill: none;
  stroke: #ff8fa2;
  stroke-width: 3.5;
  stroke-dasharray: 0.5 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.cycle-ring { --r: calc(var(--ring-size, min(66vh, 34vw)) / 2); }

.cycle-chev {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a, 0deg)) translate(var(--r));
}

.cycle-chev svg {
  position: absolute;
  width: clamp(26px, 2vw, 38px);
  height: clamp(26px, 2vw, 38px);
  color: var(--red);
  transform: translate(-50%, -50%) rotate(90deg);
}

.cycle-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--a, 0deg)) translate(var(--r)) rotate(calc(-1 * var(--a, 0deg)));
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: clamp(12px, 1.5vh, 18px) clamp(16px, 1.25vw, 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  z-index: 4;
}

.cycle-node .n {
  width: clamp(34px, 2.3vw, 44px);
  height: clamp(34px, 2.3vw, 44px);
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: clamp(18px, 1.2vw, 24px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cycle-node .t {
  font-size: clamp(20px, 1.4vw, 27px);
  font-weight: 700;
}

.cycle-node.is-exec { background: var(--ink); }
.cycle-node.is-exec .t { color: #fff; }
.cycle-node.is-exec .n { background: #fff; color: var(--ink); }

.cycle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cycle-center .big {
  font-size: clamp(30px, 2.3vw, 44px);
  font-weight: 800;
  color: var(--red);
}

.cycle-center .small {
  font-size: var(--t-note);
  font-weight: 600;
  color: var(--ink-soft);
}

.cycle-weekly {
  position: absolute;
  right: max(1.5vw, 12px);
  bottom: 7vh;
  background: var(--pink-soft);
  border: 3px dashed var(--red);
  border-radius: var(--r-card);
  padding: clamp(14px, 1.8vh, 20px) clamp(16px, 1.3vw, 26px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  max-width: 21vw;
}

.cycle-weekly svg {
  width: clamp(26px, 1.9vw, 36px);
  height: clamp(26px, 1.9vw, 36px);
  color: var(--red);
  flex: 0 0 auto;
}

.cycle-weekly .w-title {
  font-size: clamp(19px, 1.3vw, 25px);
  font-weight: 800;
  color: var(--red);
}

.cycle-weekly .w-sub {
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--ink-soft);
}

/* ============================================================
   P6 · 母题「置顶笔记 + 升级测评 + 效果标签」
   ============================================================ */

.keep-card {
  background: var(--red);
  color: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  padding: clamp(16px, 2vh, 24px) clamp(22px, 1.9vw, 36px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.4vw, 26px);
}

.keep-card .pin {
  flex: 0 0 auto;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  font-size: var(--t-meta);
  padding: 0.4em 1em;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
}

.keep-card .pin svg { width: 1.05em; height: 1.05em; }

.keep-card p {
  margin: 0;
  font-size: var(--t-body-lg);
  font-weight: 700;
  line-height: 1.5;
}

.upgrade-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 0.82fr;
  gap: clamp(18px, 1.6vw, 30px);
  margin-top: clamp(16px, 2vh, 24px);
}

.tech-card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.2vh, 28px) clamp(20px, 1.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-card h3 {
  margin: 0 0 4px;
  font-size: clamp(23px, 1.6vw, 31px);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-card h3 .t-chip {
  font-size: 0.62em;
  background: var(--pink-soft);
  color: var(--red);
  border-radius: var(--pill);
  padding: 0.28em 0.85em;
  letter-spacing: 0.08em;
}

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

.tech-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-note);
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.45;
}

.tech-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: var(--pill);
  background: var(--red);
}

.effect-card {
  background: var(--pink-soft);
  border-radius: var(--r-card);
  padding: clamp(18px, 2.2vh, 28px) clamp(18px, 1.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.effect-card h3 {
  margin: 0;
  font-size: clamp(21px, 1.5vw, 29px);
  font-weight: 800;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}

.effect-card h3 svg { width: 1em; height: 1em; }

.effect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.effect-tags span {
  background: #fff;
  color: var(--red);
  font-size: var(--t-note);
  font-weight: 700;
  padding: 0.5em 1em;
  border-radius: var(--pill);
  box-shadow: var(--shadow-low);
}

/* ============================================================
   P7 · 母题「码住自查清单 + 金句收束」
   ============================================================ */

.slide-check .slide-content { flex-direction: column; }

.check-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: clamp(24px, 2vw, 40px);
}

.check-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.6vh, 34px) clamp(24px, 2vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(8px, 1.2vh, 14px) 0;
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.5;
}

.check-row + .check-row { border-top: 1.5px solid #f0f0f3; }

.check-row .qicon {
  flex: 0 0 auto;
  margin-top: 0.02em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-row .qicon svg { width: 1.02em; height: 1.02em; }

.check-side {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vh, 28px);
  min-height: 0;
}

.gap-card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2vh, 26px) clamp(20px, 1.6vw, 30px);
}

.gap-card h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.4vw, 27px);
  font-weight: 800;
}

.gap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gap-tags span {
  background: var(--pink-soft);
  color: var(--red);
  font-size: var(--t-note);
  font-weight: 700;
  padding: 0.45em 1em;
  border-radius: var(--pill);
}

.quote-card {
  position: relative;
  flex: 1;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  padding: clamp(22px, 3vh, 38px) clamp(24px, 2vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}

.quote-card .qmark {
  position: absolute;
  top: -0.12em;
  right: 0.12em;
  font-size: clamp(120px, 9vw, 180px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.14);
  line-height: 1;
  font-family: Georgia, serif;
}

.quote-card p {
  margin: 0;
  font-size: clamp(24px, 1.75vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.quote-card p mark {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: 6px;
  padding: 0 0.18em;
}

.quote-card .quote-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--t-meta);
  font-weight: 600;
}

.quote-card p { padding-right: clamp(96px, 7vw, 142px); }

.quote-mascot {
  position: absolute;
  right: clamp(16px, 1.3vw, 26px);
  bottom: clamp(14px, 1.8vh, 24px);
  width: clamp(132px, 9.6vw, 186px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: var(--pill);
  border: 6px solid rgba(255, 255, 255, 0.95);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: rotate(6deg);
  z-index: 3;
  background: var(--pink-soft);
}

.quote-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.3);
  transform-origin: 50% 44%;
}

.quote-card .quote-meta svg { width: 1.3em; height: 1.3em; }

/* ---------- 收尾角标 ---------- */

.page-note {
  position: absolute;
  right: var(--pad-x);
  top: var(--pad-y);
  font-size: var(--t-meta);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- 窄窗兜底（1024 以下简单纵排） ---------- */

@media (max-width: 1024px) {
  .slide-content { overflow-y: auto; }
  .note-feed, .boundary-grid, .upgrade-grid, .check-grid { grid-template-columns: 1fr; }
  .arch-steps { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); }
  .slide-cycle .slide-content { flex-direction: column; }
  .cycle-stage { min-height: 120vh; }
}
