/* =============================================================
 * Theme · Prism (10 · Yuhki Yamashita · Figma CPO)
 * 配色：冷白底 + 棱镜光谱（红橙黄绿青蓝紫渐变）+ 墨黑
 * 灵感：白光经过棱镜分解出全光谱——Yuhki 把"产品"这件事拆解成 craft / taste / storytelling / phases 多个独立维度
 * ============================================================= */

:root {
  --pr-bg: #fbfbfd;
  --pr-panel: #ffffff;
  --pr-panel-2: #f3f4f7;
  /* 棱镜光谱 7 色（标准 ROYGBIV） */
  --pr-red:    #e74c3c;
  --pr-red-deep:   #b3372b;
  --pr-orange: #f39c12;
  --pr-orange-deep:#c47a09;
  --pr-yellow: #f1c40f;
  --pr-yellow-deep:#b8930a;
  --pr-green:  #27ae60;
  --pr-green-deep: #1e7c46;
  --pr-cyan:   #17a2b8;
  --pr-cyan-deep:  #0f7281;
  --pr-blue:   #3b82f6;
  --pr-blue-deep:  #1e5dc4;
  --pr-violet: #8b5cf6;
  --pr-violet-deep:#6a3fcf;
  --pr-deep: #1c1f2e;
  --pr-deep-soft: #2a2f44;
  --pr-ink: #1c1f2e;
  --pr-ink-soft: #45495b;
  --pr-ink-dim: #6b6f81;
  --pr-ink-faint: #9b9eaf;
  --pr-border: rgba(28, 31, 46, 0.12);
  --pr-border-soft: rgba(28, 31, 46, 0.06);
  --pr-glow: rgba(139, 92, 246, 0.30);
  /* 棱镜渐变（hero / ending / final-line 用） */
  --pr-prism-grad: linear-gradient(90deg,
    #e74c3c 0%, #f39c12 16%, #f1c40f 32%, #27ae60 48%,
    #17a2b8 64%, #3b82f6 80%, #8b5cf6 100%);
  /* 兼容继承自 canvas 的 purple/teal/amber 命名 */
  --pr-purple: var(--pr-violet);
  --pr-purple-deep: var(--pr-violet-deep);
  --pr-teal: var(--pr-cyan);
  --pr-teal-deep: var(--pr-cyan-deep);
  --pr-amber: var(--pr-orange);
  --pr-amber-deep: var(--pr-orange-deep);
}

/* ============== 全局 ============== */
.theme-prism {
  background: var(--pr-bg);
  color: var(--pr-ink);
  font-family: 'Inter', 'Noto Serif SC', -apple-system, sans-serif;
}
.theme-prism .topnav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--pr-border);
  backdrop-filter: blur(8px);
}
.theme-prism .topnav .back-link { color: var(--pr-ink); }
.theme-prism .topnav .back-link:hover { color: var(--pr-teal); }
.theme-prism .topnav-capsule {
  background: rgba(32, 178, 170, 0.08);
  border-color: rgba(32, 178, 170, 0.25);
  color: var(--pr-deep);
}
.theme-prism .progress-bar {
  background: linear-gradient(90deg, var(--pr-teal), var(--pr-deep));
}

/* ============== Hero ============== */
.hero-prism {
  position: relative;
  padding: 96px 32px 56px;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(32, 178, 170, 0.12) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(26, 58, 82, 0.08) 0%, transparent 60%),
    var(--pr-bg);
  overflow: hidden;
}
.hero-prism .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-prism .hero-spotlight {
  position: absolute;
  top: -60px; right: -40px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(32, 178, 170, 0.18) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-prism .hero-content {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
  text-align: center;
}
.hero-prism .hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: rgba(32, 178, 170, 0.10);
  border: 1px solid rgba(32, 178, 170, 0.30);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--pr-teal-deep);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero-prism .hero-tag .tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pr-teal);
  box-shadow: 0 0 10px var(--pr-glow);
}
.hero-prism .hero-title {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 0 0 24px;
  font-family: 'Noto Serif SC', serif;
}
.hero-prism .title-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--pr-teal);
  letter-spacing: 0.01em;
}
.hero-prism .title-line {
  font-size: 30px;
  font-weight: 700;
  color: var(--pr-ink);
  line-height: 1.3;
}
.hero-prism .title-line-emphasis {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--pr-deep) 0%, var(--pr-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 8px;
}
.hero-prism .hero-deck {
  font-size: 16px;
  line-height: 1.85;
  color: var(--pr-ink-soft);
  max-width: 680px;
  margin: 22px auto 28px;
}
.hero-prism .hero-deck em {
  color: var(--pr-deep); font-style: italic;
}
.hero-prism .hero-deck strong {
  color: var(--pr-ink);
  font-weight: 700;
}
.hero-prism .hero-meta {
  display: flex; gap: 16px; align-items: center;
  justify-content: space-around;
  padding: 22px 0;
  margin-top: 26px;
  border-top: 1px solid var(--pr-border);
  border-bottom: 1px solid var(--pr-border);
}
.hero-prism .hm-item {
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
  flex: 1;
}
.hero-prism .hm-num {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--pr-deep);
}
.hero-prism .hm-num sup {
  font-size: 16px;
  color: var(--pr-teal);
}
.hero-prism .hm-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pr-ink-dim);
  letter-spacing: 0.08em;
}
.hero-prism .hm-label {
  font-size: 13px;
  color: var(--pr-ink-soft);
}
.hero-prism .hm-divider {
  width: 1px;
  height: 36px;
  background: var(--pr-border);
  align-self: center;
}

/* Portrait —— 明确 margin-top 让出 hero-title 与 hero-deck 的呼吸空间，
   并保持 z-index 不超过文字层（hero-content 内默认 stacking context）*/
.portrait-prism {
  margin: 56px auto 32px;
  max-width: 540px;
  position: relative;
  z-index: 1;
  clear: both;
}
.portrait-frame-prism {
  position: relative;
  padding: 14px 14px 0;
  background: linear-gradient(135deg, var(--pr-teal) 0%, var(--pr-deep) 100%);
  border-radius: 6px;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.25),
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(32, 178, 170, 0.18),
    0 0 60px rgba(32, 178, 170, 0.10);
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: visible;
}
.portrait-frame-prism:hover {
  transform: rotate(0deg) scale(1.02);
}
/* 左上角胶带 —— Prism 蓝绿 */
.portrait-frame-prism::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 30px;
  width: 80px;
  height: 22px;
  background: rgba(32, 178, 170, 0.55);
  border-left: 1px dashed rgba(0, 0, 0, 0.18);
  border-right: 1px dashed rgba(0, 0, 0, 0.18);
  transform: rotate(-4deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 14px rgba(32, 178, 170, 0.35);
  z-index: 3;
}
/* 右上角胶带 —— Prism 深蓝 */
.portrait-frame-prism::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 36px;
  width: 70px;
  height: 22px;
  background: rgba(26, 58, 82, 0.55);
  border-left: 1px dashed rgba(0, 0, 0, 0.18);
  border-right: 1px dashed rgba(0, 0, 0, 0.18);
  transform: rotate(5deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 14px rgba(26, 58, 82, 0.35);
  z-index: 3;
}
.portrait-frame-prism .portrait-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  filter: contrast(1.03) saturate(1.05);
}
.portrait-meta-prism {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 6px 10px;
  text-align: center;
}
.portrait-meta-prism .portrait-name-en {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.portrait-meta-prism .portrait-name-cn {
  font-family: 'Caveat', 'Noto Serif SC', cursive;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.0;
}
.portrait-meta-prism .portrait-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.portrait-prism .portrait-caption {
  margin-top: 14px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--pr-ink-dim);
}
.portrait-prism .caption-mark {
  color: var(--pr-teal);
  font-weight: 700;
}

/* ============== Article 主体 ============== */
.theme-prism .article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px clamp(32px, 5vw, 60px) 60px;
}
.board-prism {
  background: var(--pr-panel);
  border: 1px solid var(--pr-border);
  border-radius: 22px;
  padding: 44px 40px;
  margin: 28px 0;
  box-shadow: 0 6px 22px rgba(26, 58, 82, 0.06);
  position: relative;
}
.board-prism .board-marker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.board-prism .marker-num {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(32, 178, 170, 0.10);
  border: 1px solid rgba(32, 178, 170, 0.30);
  color: var(--pr-teal-deep);
  border-radius: 6px;
  font-weight: 700;
}
.board-prism .marker-label {
  color: var(--pr-ink-dim);
  letter-spacing: 0.04em;
}
.board-prism .board-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.4;
  color: var(--pr-ink);
  margin: 0 0 22px;
}
.board-prism p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--pr-ink-soft);
  margin: 14px 0;
}
.board-prism p strong {
  color: var(--pr-ink);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 80%, var(--pr-amber) 80%);
  padding: 0 3px;
}
.board-prism p em {
  color: var(--pr-deep); font-style: italic;
}
.board-prism .highlight-marker {
  background: linear-gradient(180deg, transparent 78%, rgba(32, 178, 170, 0.22) 78%);
  color: var(--pr-deep);
  padding: 0 4px;
  font-weight: 700;
}
.board-prism .emphasized-line {
  margin: 24px 0;
  padding: 18px 22px;
  background: rgba(32, 178, 170, 0.06);
  border-left: 3px solid var(--pr-teal);
  border-radius: 8px;
  font-family: 'Noto Serif SC', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--pr-ink);
  line-height: 1.7;
}

/* big-quote - 引用链接卡片样式 */
.board-prism .big-quote {
  margin: 26px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.06), rgba(26, 58, 82, 0.04));
  border: 1px solid rgba(32, 178, 170, 0.22);
  border-radius: 14px;
  position: relative;
}
.board-prism .big-quote::before {
  content: "[ source ]";
  position: absolute;
  top: -10px; left: 18px;
  padding: 2px 10px;
  background: var(--pr-panel);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pr-teal-deep);
  border: 1px solid rgba(32, 178, 170, 0.30);
  border-radius: 4px;
}
.board-prism .big-quote p {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--pr-ink);
  margin: 6px 0 8px;
}
.board-prism .big-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--pr-ink-dim);
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.board-prism .big-quote-teal { border-color: var(--pr-teal); background: rgba(32, 178, 170, 0.08); }
.board-prism .big-quote-deep { border-color: var(--pr-deep-soft); background: rgba(26, 58, 82, 0.06); }
.board-prism .big-quote-amber { border-color: var(--pr-amber-deep); background: rgba(253, 224, 71, 0.18); }
.board-prism .big-quote-amber::before { color: var(--pr-amber-deep); border-color: var(--pr-amber-deep); }

/* callout */
.board-prism .callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--pr-panel-2);
  border: 1px dashed var(--pr-border);
  border-radius: 12px;
}
.board-prism .callout p {
  margin: 0;
  font-size: 15px;
  color: var(--pr-ink-soft);
}
.board-prism .callout-key {
  background: rgba(32, 178, 170, 0.06);
  border-color: rgba(32, 178, 170, 0.30);
}
.board-prism .callout-key p strong { color: var(--pr-teal-deep); }
.board-prism .callout-insight {
  background: rgba(253, 224, 71, 0.18);
  border-color: rgba(202, 138, 4, 0.30);
}

/* insight-list */
.board-prism .insight-list {
  list-style: none; padding: 0; margin: 20px 0;
}
.board-prism .insight-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  color: var(--pr-ink-soft);
  border-bottom: 1px dashed var(--pr-border);
  line-height: 1.7;
  counter-increment: pp-li;
}
.board-prism .insight-list {
  counter-reset: pp-li;
}
.board-prism .insight-list li::before {
  content: "[" counter(pp-li, decimal-leading-zero) "]";
  position: absolute; left: 0; top: 12px;
  color: var(--pr-teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

/* pair-grid */
.board-prism .pair-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  margin: 24px 0;
}
.board-prism .pair-side {
  padding: 20px;
  border-radius: 14px;
  background: var(--pr-panel-2);
  border: 1px solid var(--pr-border);
}
.board-prism .pair-old { background: rgba(107, 114, 128, 0.06); }
.board-prism .pair-new {
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.08), rgba(26, 58, 82, 0.04));
  border-color: rgba(32, 178, 170, 0.25);
}
.board-prism .pair-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pr-ink-dim);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.board-prism .pair-headline {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--pr-ink);
  margin-bottom: 8px;
}
.board-prism .pair-detail {
  font-size: 13px;
  line-height: 1.7;
  color: var(--pr-ink-soft);
}
.board-prism .pair-vs {
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--pr-teal);
}

/* metrics-row */
.board-prism .metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.board-prism .metric-mini {
  padding: 14px;
  background: var(--pr-panel-2);
  border: 1px solid var(--pr-border);
  border-radius: 12px;
}
.board-prism .metric-mini .mm-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--pr-deep);
}
.board-prism .metric-mini .mm-label {
  font-size: 12px;
  color: var(--pr-ink-dim);
  margin-top: 4px;
}

/* connector */
.theme-prism .connector {
  text-align: center;
  padding: 16px 0;
  font-size: 16px;
  letter-spacing: 12px;
  color: var(--pr-teal);
  opacity: 0.55;
}

/* ============== 金句卡片区 ============== */
.theme-prism .quotes-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 40px clamp(32px, 5vw, 60px);
  background: var(--pr-panel);
  border-radius: 24px;
  border: 1px solid var(--pr-border);
}
.theme-prism .quotes-section-marker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--pr-ink-dim);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.theme-prism .quotes-section-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--pr-ink);
  text-align: center;
  margin: 0 0 8px;
}
.theme-prism .quotes-section-deck {
  text-align: center;
  font-size: 14px;
  color: var(--pr-ink-soft);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.theme-prism .quote-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.theme-prism .quote-card {
  background: var(--pr-panel);
  border: 1px solid var(--pr-border);
  border-radius: 14px;
  padding: 24px 22px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: default;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.theme-prism .quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(32, 178, 170, 0.18);
  border-color: var(--pr-teal);
}
.theme-prism .quote-card .card-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.03) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}
.theme-prism .quote-card .card-num {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--pr-teal-deep);
  letter-spacing: 0.1em;
}
.theme-prism .quote-card .card-mark {
  position: absolute;
  top: 12px; right: 18px;
  font-family: 'Noto Serif SC', serif;
  font-size: 56px;
  color: rgba(32, 178, 170, 0.18);
  line-height: 1;
}
.theme-prism .quote-card .card-tag {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 3px 10px;
  background: rgba(32, 178, 170, 0.10);
  color: var(--pr-teal-deep);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
}
.theme-prism .quote-card .card-quote-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pr-ink);
  margin: 8px 0;
  position: relative;
}
.theme-prism .quote-card .card-quote-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pr-ink-soft);
  font-style: italic;
  margin: 8px 0;
  position: relative;
}
.theme-prism .quote-card .card-context {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pr-ink-dim);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--pr-border);
  position: relative;
}
.theme-prism .quote-card .card-source { color: var(--pr-ink-faint); }
.theme-prism .card-teal { background: linear-gradient(155deg, rgba(32, 178, 170, 0.08), var(--pr-panel) 60%); border-color: rgba(32, 178, 170, 0.30); }
.theme-prism .card-teal .card-mark { color: rgba(32, 178, 170, 0.30); }
.theme-prism .card-deep { background: linear-gradient(155deg, rgba(26, 58, 82, 0.08), var(--pr-panel) 60%); border-color: rgba(26, 58, 82, 0.25); }
.theme-prism .card-deep .card-mark { color: rgba(26, 58, 82, 0.22); }
.theme-prism .card-deep .card-num, .theme-prism .card-deep .card-tag { color: var(--pr-deep); }
.theme-prism .card-deep .card-tag { background: rgba(26, 58, 82, 0.08); }
.theme-prism .card-amber { background: linear-gradient(155deg, rgba(253, 224, 71, 0.30), var(--pr-panel) 60%); border-color: rgba(202, 138, 4, 0.35); }
.theme-prism .card-amber .card-mark { color: rgba(202, 138, 4, 0.30); }
.theme-prism .card-amber .card-num, .theme-prism .card-amber .card-tag { color: var(--pr-amber-deep); }
.theme-prism .card-amber .card-tag { background: rgba(253, 224, 71, 0.40); }
.theme-prism .quotes-section-tip {
  text-align: center;
  font-size: 13px;
  color: var(--pr-ink-dim);
  margin-top: 22px;
}

/* ============== Ending ============== */
.theme-prism .ending {
  max-width: 1100px;
  margin: 60px auto;
  padding: 50px clamp(32px, 5vw, 60px);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(32, 178, 170, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, var(--pr-panel) 0%, var(--pr-panel-2) 100%);
  border-radius: 20px;
  border: 1px solid var(--pr-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.theme-prism .ending-marker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--pr-teal-deep);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.theme-prism .ending-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.35;
  color: var(--pr-ink);
  margin-bottom: 20px;
}
.theme-prism .ending p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--pr-ink-soft);
  max-width: 620px;
  margin: 12px auto;
  text-align: left;
}
.theme-prism .ending p strong {
  color: var(--pr-ink);
  background: linear-gradient(180deg, transparent 80%, var(--pr-amber) 80%);
  padding: 0 3px;
}
.theme-prism .ending p em { color: var(--pr-deep); font-style: italic; }
.theme-prism .ending-mantra {
  margin: 30px auto;
  max-width: 600px;
  padding: 22px;
  background: rgba(32, 178, 170, 0.06);
  border: 1px solid rgba(32, 178, 170, 0.25);
  border-radius: 16px;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--pr-ink);
  line-height: 1.85;
  text-align: left;
}
.theme-prism .ending-mantra strong { color: var(--pr-teal-deep); }
.theme-prism .ending-pulse {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.theme-prism .ending-final-line {
  font-family: 'JetBrains Mono', monospace;
  color: var(--pr-deep);
  font-size: 17px;
  font-weight: 700;
  padding: 10px 20px;
  background: rgba(32, 178, 170, 0.10);
  border: 1px solid rgba(32, 178, 170, 0.30);
  border-radius: 999px;
}
.theme-prism .ending-sub-line {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--pr-ink-soft);
  line-height: 1.8;
}

/* ============== References ============== */
.theme-prism .references {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 32px clamp(32px, 5vw, 60px);
  background: var(--pr-panel);
  border: 1px solid var(--pr-border);
  border-radius: 16px;
}
.theme-prism .references h3 {
  color: var(--pr-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(32, 178, 170, 0.30);
}
.theme-prism .references ul { list-style: none; padding: 0; margin: 0; }
.theme-prism .references li {
  padding: 12px 0;
  border-bottom: 1px solid var(--pr-border-soft);
  font-size: 14px;
}
.theme-prism .references a { color: var(--pr-teal-deep); text-decoration: none; }
.theme-prism .references a:hover { color: var(--pr-deep); text-decoration: underline; }
.theme-prism .ref-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pr-ink-dim);
  background: var(--pr-panel-2);
  border-radius: 4px;
}
.theme-prism .ref-meta {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--pr-ink-dim);
  line-height: 1.7;
}

/* ============== Modal ============== */
.theme-prism .modal-overlay { background: rgba(31, 41, 55, 0.78); }
.theme-prism .modal-content { background: var(--pr-panel); border: 1px solid var(--pr-border); }
.theme-prism .modal-close { color: var(--pr-ink); }
.theme-prism .modal-btn {
  background: var(--pr-panel-2);
  color: var(--pr-ink);
  border: 1px solid var(--pr-border);
}
.theme-prism .modal-btn:hover { background: rgba(32, 178, 170, 0.10); border-color: var(--pr-teal); color: var(--pr-teal-deep); }
.theme-prism .modal-counter { color: var(--pr-ink-dim); }
.theme-prism .modal-download-btn {
  background: linear-gradient(135deg, var(--pr-teal), var(--pr-deep));
  color: #fff;
  font-weight: 700;
}

/* hero 标题渐变升级为棱镜光谱 */
.hero-prism .title-line-emphasis {
  background: var(--pr-prism-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============== 10 专属：棱镜配色 big-quote（覆盖继承自 canvas 的颜色） ============== */
.board-prism .big-quote-blue {
  border-color: var(--pr-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(59, 130, 246, 0.02));
}
.board-prism .big-quote-blue::before { color: var(--pr-blue-deep); border-color: var(--pr-blue); }

.board-prism .big-quote-purple {
  border-color: var(--pr-violet);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(139, 92, 246, 0.02));
}
.board-prism .big-quote-purple::before { color: var(--pr-violet-deep); border-color: var(--pr-violet); }

.board-prism .big-quote-green {
  border-color: var(--pr-green);
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.10), rgba(39, 174, 96, 0.02));
}
.board-prism .big-quote-green::before { color: var(--pr-green-deep); border-color: var(--pr-green); }

.board-prism .big-quote-red {
  border-color: var(--pr-red);
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.10), rgba(231, 76, 60, 0.02));
}
.board-prism .big-quote-red::before { color: var(--pr-red-deep); border-color: var(--pr-red); }

.board-prism .big-quote-orange {
  border-color: var(--pr-orange);
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.12), rgba(243, 156, 18, 0.02));
}
.board-prism .big-quote-orange::before { color: var(--pr-orange-deep); border-color: var(--pr-orange); }

/* 棱镜专属：full-spectrum big-quote（关键金句用 — 与其他 big-quote 风格统一，去掉彩虹边） */
.board-prism .big-quote-spectrum {
  border-color: var(--pr-violet);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(139, 92, 246, 0.02));
}
.board-prism .big-quote-spectrum::before { color: var(--pr-violet-deep); border-color: var(--pr-violet); }

/* ============== 09 专属：5 色 big-quote ============== */
.board-prism .big-quote-blue {
  border-color: var(--pr-blue);
  background: linear-gradient(135deg, rgba(26, 188, 254, 0.10), rgba(26, 188, 254, 0.02));
}
.board-prism .big-quote-blue::before { color: var(--pr-blue-deep); border-color: var(--pr-blue); }

.board-prism .big-quote-purple {
  border-color: var(--pr-purple);
  background: linear-gradient(135deg, rgba(162, 89, 255, 0.10), rgba(162, 89, 255, 0.02));
}
.board-prism .big-quote-purple::before { color: var(--pr-purple-deep); border-color: var(--pr-purple); }

.board-prism .big-quote-green {
  border-color: var(--pr-green);
  background: linear-gradient(135deg, rgba(10, 207, 131, 0.10), rgba(10, 207, 131, 0.02));
}
.board-prism .big-quote-green::before { color: var(--pr-green-deep); border-color: var(--pr-green); }

.board-prism .big-quote-red {
  border-color: var(--pr-red);
  background: linear-gradient(135deg, rgba(242, 78, 30, 0.10), rgba(242, 78, 30, 0.02));
}
.board-prism .big-quote-red::before { color: var(--pr-red-deep); border-color: var(--pr-red); }

.board-prism .big-quote-orange {
  border-color: var(--pr-orange);
  background: linear-gradient(135deg, rgba(255, 114, 98, 0.12), rgba(255, 114, 98, 0.02));
}
.board-prism .big-quote-orange::before { color: var(--pr-orange-deep); border-color: var(--pr-orange); }

/* ============== 09 专属：pair-grid 的 adobe / figma 标签 + pair-cell 重写 ============== */
.board-prism .pair-grid {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.board-prism .pair-cell {
  padding: 22px;
  border-radius: 14px;
  background: var(--pr-panel);
  border: 1px solid var(--pr-border);
  display: flex; flex-direction: column; gap: 10px;
}
.board-prism .pair-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pr-ink-dim);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  background: var(--pr-panel-2);
}
.board-prism .pair-tag.adobe-tag {
  background: rgba(225, 33, 39, 0.10);
  color: #b81d23;
}
.board-prism .pair-tag.figma-tag {
  background: linear-gradient(90deg, rgba(26,188,254,0.12), rgba(162,89,255,0.12));
  color: var(--pr-purple-deep);
}
.board-prism .pair-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--pr-ink);
  margin: 0;
}
.board-prism .pair-list {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.board-prism .pair-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--pr-ink-soft);
}
.board-prism .pair-list li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--pr-purple);
  font-weight: 700;
}

/* ============== 10 专属：metrics-row 重写（仅桌面端生效）==============
   原本这块写在根级（无 @media 包裹），导致 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))
   在移动端也强制生效，覆盖了 @media (max-width: 720px) 内的 1fr 单列规则；
   现在用 @media (min-width: 721px) 包起来，让它只在桌面端生效。
   移动端的 padding/字号 在 @media (max-width: 720px) 块内单独定义。 */
@media (min-width: 721px) {
  .board-prism .metrics-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .board-prism .metric-cell {
    padding: 22px 20px;
    border-radius: 14px;
    background: linear-gradient(160deg, var(--pr-panel), var(--pr-panel-2));
    border: 1px solid var(--pr-border);
    display: flex; flex-direction: column; gap: 6px;
  }
  .board-prism .metric-cell .metric-num {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 44px;
    line-height: 1;
    background: linear-gradient(135deg, var(--pr-blue), var(--pr-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .board-prism .metric-cell .metric-label {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--pr-ink);
    margin-top: 6px;
  }
  .board-prism .metric-cell .metric-desc {
    font-size: 12.5px;
    color: var(--pr-ink-dim);
    line-height: 1.6;
  }
}

/* 移动端 .board-prism .metric-cell 基础样式 */
.board-prism .metric-cell {
  padding: 18px 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--pr-panel), var(--pr-panel-2));
  border: 1px solid var(--pr-border);
  display: flex; flex-direction: column; gap: 6px;
}
.board-prism .metric-cell .metric-num {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  background: linear-gradient(135deg, var(--pr-blue), var(--pr-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.board-prism .metric-cell .metric-label {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--pr-ink);
  margin-top: 6px;
}
.board-prism .metric-cell .metric-desc {
  font-size: 12.5px;
  color: var(--pr-ink-dim);
  line-height: 1.6;
}

/* ============== 09 专属：insight-list 重写（章节 07 用 ============== */
.board-prism .insight-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex; flex-direction: column; gap: 14px;
  counter-reset: none;
}
.board-prism .insight-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: var(--pr-panel);
  border: 1px solid var(--pr-border);
  border-radius: 12px;
  border-bottom: 1px solid var(--pr-border);
}
.board-prism .insight-list li::before { content: none; }
.board-prism .insight-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 0;
  height: fit-content;
  text-align: left;
}
.board-prism .insight-tag.tag-blue   { color: var(--pr-blue-deep);   border-left: 3px solid var(--pr-blue);   padding-left: 8px; }
.board-prism .insight-tag.tag-purple { color: var(--pr-purple-deep); border-left: 3px solid var(--pr-purple); padding-left: 8px; }
.board-prism .insight-tag.tag-green  { color: var(--pr-green-deep);  border-left: 3px solid var(--pr-green);  padding-left: 8px; }
.board-prism .insight-tag.tag-red    { color: var(--pr-red-deep);    border-left: 3px solid var(--pr-red);    padding-left: 8px; }
.board-prism .insight-tag.tag-orange { color: var(--pr-orange-deep); border-left: 3px solid var(--pr-orange); padding-left: 8px; }
.board-prism .insight-body {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--pr-ink);
}
.board-prism .insight-body strong { color: var(--pr-ink); }
.board-prism .insight-detail {
  font-size: 13.5px;
  color: var(--pr-ink-soft);
  line-height: 1.7;
}

/* ============== 09 专属：5 色 quote-card ============== */
.theme-prism .card-blue {
  background: linear-gradient(155deg, rgba(26, 188, 254, 0.14), var(--pr-panel) 60%);
  border-color: rgba(26, 188, 254, 0.30);
}
.theme-prism .card-blue .card-mark { color: rgba(26, 188, 254, 0.32); }
.theme-prism .card-blue .card-num,
.theme-prism .card-blue .card-tag { color: var(--pr-blue-deep); }
.theme-prism .card-blue .card-tag { background: rgba(26, 188, 254, 0.12); }

.theme-prism .card-purple {
  background: linear-gradient(155deg, rgba(162, 89, 255, 0.14), var(--pr-panel) 60%);
  border-color: rgba(162, 89, 255, 0.30);
}
.theme-prism .card-purple .card-mark { color: rgba(162, 89, 255, 0.30); }
.theme-prism .card-purple .card-num,
.theme-prism .card-purple .card-tag { color: var(--pr-purple-deep); }
.theme-prism .card-purple .card-tag { background: rgba(162, 89, 255, 0.12); }

.theme-prism .card-green {
  background: linear-gradient(155deg, rgba(10, 207, 131, 0.14), var(--pr-panel) 60%);
  border-color: rgba(10, 207, 131, 0.30);
}
.theme-prism .card-green .card-mark { color: rgba(10, 207, 131, 0.32); }
.theme-prism .card-green .card-num,
.theme-prism .card-green .card-tag { color: var(--pr-green-deep); }
.theme-prism .card-green .card-tag { background: rgba(10, 207, 131, 0.12); }

.theme-prism .card-red {
  background: linear-gradient(155deg, rgba(242, 78, 30, 0.12), var(--pr-panel) 60%);
  border-color: rgba(242, 78, 30, 0.30);
}
.theme-prism .card-red .card-mark { color: rgba(242, 78, 30, 0.30); }
.theme-prism .card-red .card-num,
.theme-prism .card-red .card-tag { color: var(--pr-red-deep); }
.theme-prism .card-red .card-tag { background: rgba(242, 78, 30, 0.12); }

.theme-prism .card-orange {
  background: linear-gradient(155deg, rgba(255, 114, 98, 0.14), var(--pr-panel) 60%);
  border-color: rgba(255, 114, 98, 0.30);
}
.theme-prism .card-orange .card-mark { color: rgba(255, 114, 98, 0.32); }
.theme-prism .card-orange .card-num,
.theme-prism .card-orange .card-tag { color: var(--pr-orange-deep); }
.theme-prism .card-orange .card-tag { background: rgba(255, 114, 98, 0.14); }

/* ============== 09 专属：ending 内嵌 mantra 颜色重定义 ============== */
.theme-prism .ending {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(26, 188, 254, 0.12) 0%, transparent 55%),
    radial-gradient(80% 80% at 90% 100%, rgba(162, 89, 255, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--pr-panel) 0%, var(--pr-panel-2) 100%);
}
.theme-prism .ending p strong {
  background: linear-gradient(180deg, transparent 80%, rgba(255, 114, 98, 0.30) 80%);
}
.theme-prism .ending-mantra {
  background: linear-gradient(135deg, rgba(26, 188, 254, 0.06), rgba(162, 89, 255, 0.06));
  border-color: rgba(162, 89, 255, 0.25);
}
.theme-prism .ending-mantra strong { color: var(--pr-purple-deep); }
.theme-prism .ending-final-line {
  background: linear-gradient(90deg, var(--pr-blue), var(--pr-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============== 移动端 ============== */
@media (max-width: 720px) {
  .hero-prism { padding: 88px 18px 40px; }
  .hero-prism .title-line-emphasis { font-size: 40px; }
  .hero-prism .title-line { font-size: 22px; }
  .hero-prism .title-eyebrow { font-size: 18px; }
  .hero-prism .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
  }
  .hero-prism .hm-item {
    flex: 0 0 auto;
    width: auto;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .hero-prism .hm-num { font-size: 34px; line-height: 1; }
  .hero-prism .hm-unit { font-size: 11px; letter-spacing: 0.14em; }
  .hero-prism .hm-label {
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
  }
  .hero-prism .hm-divider {
    width: 48px;
    height: 1px;
    background: var(--pr-border);
    align-self: center;
  }
  .board-prism { padding: 32px 22px; border-radius: 18px; }
  .board-prism .board-title { font-size: 22px; }
  .board-prism .pair-grid { grid-template-columns: 1fr; }
  .board-prism .pair-vs { justify-content: center; }
  .board-prism .insight-list li { grid-template-columns: 1fr; gap: 8px; }
  .board-prism .metric-cell .metric-num { font-size: 36px; }
  .portrait-prism { max-width: 92%; }
  .portrait-frame-prism { padding: 10px 10px 0; }
  .portrait-frame-prism::before { width: 68px; left: 20px; }
  .portrait-frame-prism::after { width: 58px; right: 24px; }
  .portrait-meta-prism { padding: 12px 4px 8px; }
  .theme-prism .ending { padding: 36px 24px; }
  .theme-prism .ending-title { font-size: 24px; }

  /* 数据 stat 区移动端单列竖排，避免高度参差不齐 */
  .board-prism .metrics-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .board-prism .metric-mini,
  .board-prism .metric-cell {
    padding: 16px 18px;
  }

  /* 金句区 / 尾声区 / 参考资料区不能贴视口左右边缘 */
  .theme-prism .quotes-section {
    margin: 40px 16px;
    padding: 32px 22px 40px;
    border-radius: 16px;
  }
  .theme-prism .quotes-section-title { font-size: 24px; }
  .theme-prism .ending {
    margin: 40px 16px;
    padding: 36px 22px;
    border-radius: 16px;
  }
  .theme-prism .references {
    margin: 32px 16px 48px;
    padding: 28px 22px;
    border-radius: 14px;
  }
}

/* ============== 10 专属：棱镜光谱补色 class（violet / cyan / yellow） ============== */
/* big-quote-violet（章节 01、06 用） */
.board-prism .big-quote-violet {
  border-color: var(--pr-violet);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(139, 92, 246, 0.02));
}
.board-prism .big-quote-violet::before { color: var(--pr-violet-deep); border-color: var(--pr-violet); }

/* insight-tag 补色：violet / yellow / cyan */
.board-prism .insight-tag.tag-violet { color: var(--pr-violet-deep); border-left: 3px solid var(--pr-violet); padding-left: 8px; }
.board-prism .insight-tag.tag-yellow { color: var(--pr-yellow-deep); border-left: 3px solid var(--pr-yellow); padding-left: 8px; }
.board-prism .insight-tag.tag-cyan   { color: var(--pr-cyan-deep);   border-left: 3px solid var(--pr-cyan);   padding-left: 8px; }

/* quote-card 补色：violet / cyan / yellow */
.theme-prism .card-violet {
  background: linear-gradient(155deg, rgba(139, 92, 246, 0.14), var(--pr-panel) 60%);
  border-color: rgba(139, 92, 246, 0.30);
}
.theme-prism .card-violet .card-mark { color: rgba(139, 92, 246, 0.32); }
.theme-prism .card-violet .card-num,
.theme-prism .card-violet .card-tag { color: var(--pr-violet-deep); }
.theme-prism .card-violet .card-tag { background: rgba(139, 92, 246, 0.12); }

.theme-prism .card-cyan {
  background: linear-gradient(155deg, rgba(23, 162, 184, 0.14), var(--pr-panel) 60%);
  border-color: rgba(23, 162, 184, 0.30);
}
.theme-prism .card-cyan .card-mark { color: rgba(23, 162, 184, 0.32); }
.theme-prism .card-cyan .card-num,
.theme-prism .card-cyan .card-tag { color: var(--pr-cyan-deep); }
.theme-prism .card-cyan .card-tag { background: rgba(23, 162, 184, 0.12); }

.theme-prism .card-yellow {
  background: linear-gradient(155deg, rgba(241, 196, 15, 0.16), var(--pr-panel) 60%);
  border-color: rgba(241, 196, 15, 0.30);
}
.theme-prism .card-yellow .card-mark { color: rgba(184, 147, 10, 0.32); }
.theme-prism .card-yellow .card-num,
.theme-prism .card-yellow .card-tag { color: var(--pr-yellow-deep); }
.theme-prism .card-yellow .card-tag { background: rgba(241, 196, 15, 0.18); }

/* 10 专属：ending mantra / final-line 改用棱镜渐变 */
.theme-prism .ending-mantra {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05), rgba(39, 174, 96, 0.05));
  border-color: rgba(139, 92, 246, 0.25);
}
.theme-prism .ending-mantra strong { color: var(--pr-violet-deep); }
.theme-prism .ending-final-line {
  background: var(--pr-prism-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-prism .ending p strong {
  background: linear-gradient(180deg, transparent 80%, rgba(241, 196, 15, 0.40) 80%);
}
