/* ============================================
   Cat Wu × 白板 · 主题样式
   设计语言：手绘白板 → 最后切换到岩石质感
   ============================================ */

/* ---------- 基础 reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #fafaf6;
  --paper-deep: #f3f1e8;
  --grid-line: rgba(180, 170, 145, 0.18);
  --ink: #2b2a26;
  --ink-soft: #4a463d;
  --ink-light: #7a7368;
  --marker-yellow: rgba(255, 220, 90, 0.45);
  --marker-pink: rgba(255, 165, 180, 0.4);
  --marker-blue: rgba(140, 195, 230, 0.35);
  --accent-red: #c75555;
  --accent-orange: #d68a4f;
  --accent-green: #5a8a4a;
  --line-pencil: #b8a98a;
  --rock-bg: #2a2825;
  --rock-text: #d8d2c4;
  --rock-stone: #6b6258;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: 0.01em;
  /* 白板上的细微方格 */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}

/* ---------- 顶部进度条 ---------- */
.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0,0,0,0.05);
  z-index: 100;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-green));
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px rgba(200, 100, 100, 0.4);
}

/* ---------- 顶部导航 ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250, 250, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 170, 145, 0.2);
  z-index: 99;
  padding: 14px 0 10px;
}
.topnav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}
.topnav-brand { font-weight: 600; color: var(--ink-soft); }

/* ---------- 顶栏胶囊按钮（小红书） ---------- */
.topnav-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-soft, #5a5347);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.topnav-capsule:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--ink, #2c2a25);
  transform: translateY(-1px);
}
.topnav-capsule:active {
  transform: translateY(0);
}
.topnav-capsule .xhs-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}
.back-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover { color: #c75555; }

/* ============================================
   HERO 区
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 32px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 220, 90, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(140, 195, 230, 0.1), transparent 40%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(180, 170, 145, 0.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  margin-bottom: 28px;
}
.title-line {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}
.title-sub {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 32px;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-deck {
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 56px;
  font-weight: 300;
}
.hero-deck em {
  font-style: normal;
  background: var(--marker-yellow);
  padding: 1px 6px;
}

/* ---------- 文章页人物头像 ---------- */
.hero-portrait {
  margin: 48px auto 24px;
  max-width: 540px;
}
.portrait-frame {
  position: relative;
  background: #fff;
  padding: 14px 14px 64px;
  border-radius: 6px;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.12);
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.portrait-frame:hover {
  transform: rotate(0deg) scale(1.02);
}
.portrait-frame::before {
  /* 左上角胶带 */
  content: '';
  position: absolute;
  top: -10px;
  left: 30px;
  width: 80px;
  height: 22px;
  background: rgba(255, 220, 90, 0.65);
  border-left: 1px dashed rgba(0, 0, 0, 0.08);
  border-right: 1px dashed rgba(0, 0, 0, 0.08);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.portrait-frame::after {
  /* 右上角胶带 */
  content: '';
  position: absolute;
  top: -8px;
  right: 36px;
  width: 70px;
  height: 22px;
  background: rgba(255, 220, 90, 0.65);
  border-left: 1px dashed rgba(0, 0, 0, 0.08);
  border-right: 1px dashed rgba(0, 0, 0, 0.08);
  transform: rotate(5deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.portrait-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.portrait-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  font-family: 'Caveat', cursive;
}
.portrait-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.portrait-role {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.portrait-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.6;
}
.caption-mark {
  display: inline-block;
  margin-right: 6px;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--accent-red);
  font-weight: 700;
}

@media (max-width: 720px) {
  .hero-portrait { margin: 36px auto 12px; max-width: 92%; }
  .portrait-frame { padding: 10px 10px 52px; }
  .portrait-name { font-size: 22px; }
  .portrait-role { font-size: 11px; }
}
/* ---------- Excalidraw Demo ---------- */
.excalidraw-demo {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow:
    4px 4px 0 var(--paper-deep),
    8px 8px 24px rgba(0,0,0,0.08);
  margin: 0 auto 56px;
  max-width: 560px;
  text-align: left;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
}

.exc-header {
  background: #f5f3ec;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.exc-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.exc-dot-r { background: #ff5f56; }
.exc-dot-y { background: #ffbd2e; }
.exc-dot-g { background: #27c93f; }
.exc-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--ink-light);
  font-weight: 500;
}

.exc-body {
  padding: 24px 24px 20px;
}

.exc-canvas {
  position: relative;
  height: 160px;
  background:
    linear-gradient(rgba(180, 170, 145, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 170, 145, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  background-color: #fcfbf6;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}
.exc-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.exc-stage.active {
  opacity: 1;
  transform: scale(1);
}
.exc-stage svg {
  width: 80%;
  height: 80%;
}

.exc-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.exc-btn {
  flex: 1;
  background: transparent;
  border: 1.5px solid rgba(180, 170, 145, 0.4);
  border-radius: 6px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font-family: inherit;
  transition: all 0.2s;
}
.exc-btn:hover { border-color: var(--ink-soft); background: var(--paper); }
.exc-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.exc-btn-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-light);
}
.exc-btn.active .exc-btn-num { color: rgba(255,255,255,0.7); }
.exc-btn-label {
  font-size: 13px;
  font-weight: 500;
}

.exc-caption {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
  min-height: 20px;
  transition: opacity 0.3s;
}

.hero-prologue {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 24px;
}
.hero-emphasis {
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
  color: var(--ink);
  border-top: 1px solid rgba(180, 170, 145, 0.3);
  padding-top: 10px;
}

.scroll-hint {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  margin-top: 24px;
  animation: float 2s ease-in-out infinite;
}
.scroll-arrow {
  font-size: 20px;
  font-weight: 300;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================
   章节区 · Article
   ============================================ */
.article {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px) 80px;
}

/* ---------- 章节卡片 (Board) ---------- */
.board {
  background: #fff;
  border-radius: 12px;
  padding: 56px 56px 48px;
  margin-bottom: 0;
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 4px 32px rgba(0,0,0,0.04),
    0 0 0 1px rgba(180, 170, 145, 0.12);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.board.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 白板装饰：左上角的图钉 */
.board::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 60px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 35% 35%, #ff8888, #c44);
  border-radius: 50%;
  box-shadow:
    inset -2px -2px 4px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.2);
}

.board-marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(180, 170, 145, 0.3);
}
.marker-num {
  font-family: 'Caveat', cursive;
  font-size: 38px;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1;
}
.marker-label {
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
}

.board-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.board-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.board-content > p {
  margin-bottom: 22px;
}
.board-content .lead {
  font-size: 19px;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 28px;
}
.board-content strong {
  color: var(--ink);
  font-weight: 600;
}
.board-content em {
  font-style: italic;
  color: var(--ink);
}

/* ---------- 马克笔高亮 ---------- */
.highlight-marker {
  background: linear-gradient(180deg, transparent 55%, var(--marker-yellow) 55%, var(--marker-yellow) 92%, transparent 92%);
  padding: 0 4px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- 引用 inline ---------- */
.quote-inline {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  padding: 24px 32px;
  border-left: 3px solid var(--accent-red);
  background: linear-gradient(90deg, rgba(199, 85, 85, 0.04), transparent);
  margin: 32px 0;
  font-style: italic;
}

/* ---------- Callout ---------- */
.callout {
  padding: 24px 28px;
  border-left: 4px solid var(--accent-orange);
  background: rgba(214, 138, 79, 0.06);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.callout p {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}
.callout p:last-child { margin-bottom: 0; }
.callout-insight { border-left-color: var(--accent-orange); background: rgba(214, 138, 79, 0.06); }
.callout-key { border-left-color: var(--accent-red); background: rgba(199, 85, 85, 0.06); }
.callout-paradox {
  border-left-color: #6a4a8a;
  background: rgba(106, 74, 138, 0.05);
}

/* ---------- 时间线 ---------- */
.timeline {
  margin: 36px 0;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--line-pencil), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 22px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink-light);
  z-index: 1;
}
.timeline-item.highlight::before {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 0 4px rgba(199, 85, 85, 0.15);
}
.timeline-year {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--ink-light);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.timeline-card {
  background: var(--paper);
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid rgba(180, 170, 145, 0.2);
}
.timeline-item.highlight .timeline-card {
  background: rgba(199, 85, 85, 0.05);
  border-color: rgba(199, 85, 85, 0.25);
}
.timeline-org {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 15px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.closing {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(180, 170, 145, 0.2);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.8;
}
.closing-bold {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 500;
}

/* ---------- 章节连接箭头 ---------- */
.connector {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
  opacity: 0.7;
}
.connector svg { width: 50px; height: 70px; }

/* ---------- 41× 数字冲击 ---------- */
.metric-bombshell {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #fff8e1, #fff3d0);
  border: 1px solid rgba(214, 138, 79, 0.3);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
}
.metric-num {
  font-family: 'Caveat', cursive;
  font-size: 96px;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 0.9;
  flex-shrink: 0;
}
.metric-x {
  font-size: 56px;
  margin-left: -4px;
}
.metric-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.metric-desc strong { color: var(--ink); }

/* ---------- 强调行 ---------- */
.emphasized-line {
  font-family: 'Noto Serif SC', serif;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.8;
  margin: 28px 0;
  padding: 18px 24px;
  background: rgba(255, 220, 90, 0.12);
  border-radius: 4px;
}

/* ---------- 大引用 ---------- */
.big-quote {
  margin: 36px 0;
  padding: 32px 36px;
  background: var(--paper-deep);
  border-radius: 12px;
  border: 1px solid rgba(180, 170, 145, 0.25);
  position: relative;
}
.big-quote::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 24px;
  font-family: 'Caveat', cursive;
  font-size: 80px;
  color: var(--accent-red);
  line-height: 1;
}
.big-quote p {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 12px;
}
.big-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}
.big-quote cite a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(180, 170, 145, 0.5);
}

/* ---------- 子标题 ---------- */
.sub-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}

/* ---------- 方法论网格 ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.method-card {
  background: var(--paper);
  border: 1px solid rgba(180, 170, 145, 0.3);
  border-radius: 8px;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: center;
  transition: all 0.3s;
}
.method-card:hover {
  background: #fff;
  border-color: var(--ink-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.method-cross {
  font-size: 24px;
  color: var(--accent-red);
  font-weight: 300;
  line-height: 1;
}
.method-old {
  font-size: 14px;
  color: var(--ink-light);
  text-decoration: line-through;
  text-decoration-color: rgba(199, 85, 85, 0.5);
  text-decoration-thickness: 2px;
}
.method-arrow {
  color: var(--accent-green);
  font-size: 18px;
  font-weight: 600;
}
.method-new {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.method-new strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--ink);
}
.method-detail {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px dashed rgba(180, 170, 145, 0.4);
  font-style: italic;
}

/* ============================================
   第三章 · 戏剧化
   ============================================ */
.board-dramatic {
  background: linear-gradient(180deg, #fff, #fcf9f3);
}
.board-dramatic::before { background: radial-gradient(circle at 35% 35%, #ffd07a, #d68a4f); }
.board-dramatic .marker-num { color: var(--accent-orange); }

.boomerang {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 36px 0;
}
.boomerang-step {
  width: 100%;
  background: #fff;
  border: 2px solid rgba(180, 170, 145, 0.3);
  border-radius: 10px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.3s;
}
.bm-date {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-light);
  flex-shrink: 0;
  width: 140px;
  text-align: center;
  border-right: 2px dashed rgba(180, 170, 145, 0.3);
  padding-right: 20px;
}
.bm-event { flex: 1; }
.bm-event strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--ink);
}
.bm-event p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.bm-arrow {
  font-size: 28px;
  color: var(--ink-light);
  font-weight: 300;
}
.bm-shock {
  background: linear-gradient(90deg, #fff5f5, #fff);
  border-color: rgba(199, 85, 85, 0.4);
}
.bm-shock .bm-date { color: var(--accent-red); }
.bm-return {
  background: linear-gradient(90deg, #f0f8ed, #fff);
  border-color: rgba(90, 138, 74, 0.4);
}
.bm-return .bm-date { color: var(--accent-green); }
.bm-emphasize {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink);
  background: var(--marker-yellow);
  padding: 2px 6px;
}

/* ============================================
   第四章
   ============================================ */
.hero-quote {
  margin: 32px auto;
  text-align: center;
  padding: 40px 32px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  position: relative;
}
.hero-quote-mark {
  font-family: 'Caveat', cursive;
  font-size: 100px;
  color: var(--accent-orange);
  line-height: 0.5;
  display: block;
  margin-bottom: 8px;
}
.hero-quote p {
  font-size: 38px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.hero-quote-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  display: block;
  letter-spacing: 0.1em;
}

.agi-pilled {
  background: linear-gradient(135deg, #f7f4ef, #fff);
  border: 1px solid rgba(180, 170, 145, 0.3);
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}
.agi-pilled p { margin-bottom: 14px; }
.agi-imagine {
  font-family: 'Noto Serif SC', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  text-align: center;
  padding: 16px 24px;
  background: rgba(140, 195, 230, 0.12);
  border-radius: 6px;
  margin: 16px 0;
}
.agi-quote {
  text-align: center;
  margin: 28px 0;
  padding: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.agi-quote p:first-child {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.agi-quote-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin: 0 !important;
}

.agi-balance {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  padding: 24px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.agi-side {
  text-align: center;
}
.agi-side-tag {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 6px 12px;
  background: var(--paper-deep);
  border-radius: 4px;
  display: inline-block;
}
.agi-left .agi-side-tag { background: rgba(199, 85, 85, 0.15); color: var(--accent-red); }
.agi-right .agi-side-tag { background: rgba(140, 195, 230, 0.2); color: #4080a0; }
.agi-side-result {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.agi-fulcrum {
  font-size: 36px;
  color: var(--ink);
  font-weight: 700;
}

/* ============================================
   第五章 · 岩石质感（视觉反差）
   ============================================ */
.rocks {
  position: relative;
  margin: 60px -32px 0;
  padding: 100px 32px 120px;
  background:
    linear-gradient(180deg, rgba(42, 40, 37, 0.95), rgba(42, 40, 37, 0.98)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.4'/></svg>");
  background-size: cover, 200px 200px;
  color: var(--rock-text);
  border-radius: 16px;
  overflow: hidden;
}
.rocks-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(120, 100, 80, 0.2), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(80, 70, 60, 0.3), transparent 60%);
  pointer-events: none;
}
.rocks-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
}

.rocks-marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(216, 210, 196, 0.25);
}
.rocks-marker .marker-num {
  color: #d4a86a;
  font-size: 38px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
}
.rocks-marker .marker-label {
  color: rgba(216, 210, 196, 0.6);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.rocks-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.rocks-body {
  font-size: 17px;
  line-height: 1.85;
}
.rocks-body p { margin-bottom: 22px; color: var(--rock-text); }
.rocks-body strong { color: #fff; font-weight: 600; }

.rocks-magic-num {
  margin: 32px 0;
  padding: 32px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(216, 210, 196, 0.15);
  border-radius: 12px;
  text-align: center;
}
.rmn-num {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 96px;
  font-weight: 700;
  color: #d4a86a;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(212, 168, 106, 0.3);
}
.rmn-unit {
  display: block;
  font-size: 22px;
  color: #fff;
  margin: 8px 0 4px;
  font-weight: 500;
  font-family: 'Noto Serif SC', serif;
}
.rmn-desc {
  display: block;
  font-size: 15px;
  color: rgba(216, 210, 196, 0.7);
  font-family: 'Noto Serif SC', serif;
}

.rocks-emphasis {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  text-align: center;
  font-style: italic;
  color: #fff;
  padding: 20px 0;
  margin: 24px 0 !important;
  border-top: 1px solid rgba(216, 210, 196, 0.2);
  border-bottom: 1px solid rgba(216, 210, 196, 0.2);
}

.rocks-realization {
  margin: 36px 0;
  padding: 24px 28px;
  background: rgba(212, 168, 106, 0.08);
  border-left: 3px solid #d4a86a;
  border-radius: 0 8px 8px 0;
}
.rocks-realization p { margin-bottom: 8px; }
.rocks-realization p:last-child { margin-bottom: 0; }

.rocks-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 40px 0 0;
}
.rcm-side {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 22px 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.rcm-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(216, 210, 196, 0.6);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(216, 210, 196, 0.2);
}
.rcm-whiteboard ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rcm-whiteboard li {
  font-size: 13px;
  color: rgba(216, 210, 196, 0.85);
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.5;
}
.rcm-whiteboard li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: #d4a86a;
  font-weight: 700;
}
.rcm-arrow {
  font-size: 28px;
  color: rgba(216, 210, 196, 0.5);
  text-align: center;
}
.rcm-rock {
  background: rgba(107, 98, 88, 0.4);
  border: 1px solid rgba(212, 168, 106, 0.3);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rcm-rock-quote {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  margin: auto 0 !important;
  font-style: italic;
}

/* ============================================
   尾声
   ============================================ */
.ending {
  background: #fff;
  margin: 32px 0;
  padding: 60px 56px;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.04), 0 0 0 1px rgba(180, 170, 145, 0.12);
}
.ending-inner {
  max-width: 100%;
}
.ending-marker {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--accent-red);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
}
.ending-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.ending p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.ending strong { color: var(--ink); }

.ending-final {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px dashed rgba(180, 170, 145, 0.4);
}
.ending-mantra {
  font-family: 'Noto Serif SC', serif;
  font-size: 19px;
  line-height: 2.2;
  color: var(--ink);
  background: var(--paper);
  padding: 28px 32px;
  border-radius: 10px;
  margin: 24px 0;
  border-left: 4px solid var(--accent-red);
}
.ending-mantra strong {
  background: var(--marker-yellow);
  padding: 1px 4px;
  font-weight: 600;
}
.ending-conclusion {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  padding: 24px 0;
}
.ending-pulse {
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(180, 170, 145, 0.2);
}
.ending-final-line {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.02em;
}

/* ============================================
   参考资料
   ============================================ */
.references {
  margin-top: 48px;
  padding: 40px 32px;
  background: var(--paper-deep);
  border-radius: 12px;
}
.references h3 {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.references ul { list-style: none; }
.references li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(180, 170, 145, 0.2);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.references li:last-child { border-bottom: none; }
.references a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px dotted var(--ink-light);
  transition: all 0.2s;
}
.references a:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}
.ref-tag {
  font-size: 12px;
  color: var(--ink-light);
  background: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.ref-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(180, 170, 145, 0.3);
  text-align: center;
  font-size: 13px;
  color: var(--ink-light);
}
.ref-meta p { margin: 4px 0; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 100px 20px 60px; }
  .title-line { font-size: 38px; }
  .title-sub { font-size: 24px; }
  .hero-deck { font-size: 18px; }
  .article { padding: 24px 16px 60px; }
  .board { padding: 36px 28px 32px; }
  .board::before { left: 36px; }
  .board-title { font-size: 26px; }
  .rocks-title { font-size: 28px; }
  .rocks { padding: 60px 24px 80px; margin: 40px -16px 0; }
  .ending { padding: 40px 28px; }
  .ending-title { font-size: 24px; }
  .method-grid { grid-template-columns: 1fr; }
  .metric-bombshell { flex-direction: column; text-align: center; gap: 16px; }
  .metric-num { font-size: 72px; }
  .boomerang-step { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bm-date {
    width: auto;
    border-right: none;
    border-bottom: 1px dashed rgba(180, 170, 145, 0.3);
    padding-right: 0;
    padding-bottom: 8px;
    text-align: left;
  }
  .agi-balance { grid-template-columns: 1fr; }
  .agi-fulcrum { transform: rotate(90deg); }
  .rocks-comparison { grid-template-columns: 1fr; }
  .rcm-arrow { transform: rotate(90deg); }
  .hero-quote p { font-size: 28px; }
  .rmn-num { font-size: 72px; }
  .exc-controls { flex-direction: column; }
  .topnav-inner { padding: 0 20px; font-size: 11px; }
}

/* ============================================
   金句卡片合集（嵌入文章页）
   ============================================ */
.quotes-section {
  margin: 60px 0 48px;
  padding: 56px 48px 48px;
  background: linear-gradient(180deg, #fff, var(--paper));
  border-radius: 16px;
  border: 1px solid rgba(180, 170, 145, 0.2);
  scroll-margin-top: 80px;
}

.quotes-section-header {
  text-align: center;
  margin-bottom: 36px;
}
.quotes-section-marker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(199, 85, 85, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.quotes-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.quotes-section-deck {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}

.quotes-controls {
  display: inline-flex;
  background: #fff;
  border: 1px solid rgba(180, 170, 145, 0.3);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.ctrl-btn {
  padding: 8px 22px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  font-weight: 500;
}
.ctrl-btn.active {
  background: var(--ink);
  color: #fff;
}
.ctrl-btn:hover:not(.active) {
  background: var(--paper-deep);
  color: var(--ink);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ---------- 单张卡片 ---------- */
.quote-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(180, 170, 145, 0.2);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.03),
    0 6px 20px rgba(0, 0, 0, 0.06);
}
.quote-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 12px 36px rgba(214, 138, 79, 0.15);
}
.quote-card.card-dark:hover { border-color: var(--accent-orange); box-shadow: 0 12px 36px rgba(214, 138, 79, 0.18); }
.quote-card.card-paper:hover { border-color: var(--accent-red); box-shadow: 0 12px 36px rgba(199, 85, 85, 0.15); }
.quote-card.card-warm:hover { border-color: #8a4a2a; box-shadow: 0 12px 36px rgba(138, 74, 42, 0.18); }
.quote-card.card-mint:hover { border-color: #5a7042; box-shadow: 0 12px 36px rgba(90, 112, 66, 0.18); }
.quote-card.card-cream:hover { border-color: var(--accent-orange); box-shadow: 0 12px 36px rgba(214, 138, 79, 0.15); }
.quote-card.card-rose:hover { border-color: #8a3030; box-shadow: 0 12px 36px rgba(138, 48, 48, 0.18); }

.card-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.6;
}

.card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
}

/* 色系 */
.card-dark {
  background: linear-gradient(135deg, #2b2a26 0%, #1a1916 100%);
  color: #fafaf6;
}
.card-dark .card-mark { color: var(--accent-orange); }
.card-dark .card-num,
.card-dark .card-brand,
.card-dark .card-tag,
.card-dark .card-source { color: rgba(216, 210, 196, 0.7); }
.card-dark .card-tag { opacity: 1; color: var(--accent-orange); }
.card-dark .card-bg-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.card-paper {
  background: linear-gradient(135deg, #fafaf6 0%, #f3f1e8 100%);
  color: var(--ink);
}
.card-paper .card-mark { color: var(--accent-red); }

.card-warm {
  background: linear-gradient(135deg, #f7e8d3 0%, #e8c896 100%);
  color: var(--ink);
}
.card-warm .card-mark { color: #8a4a2a; }

.card-mint {
  background: linear-gradient(135deg, #e8f0e3 0%, #c8d8be 100%);
  color: #2c3a26;
}
.card-mint .card-mark { color: #5a7042; }

.card-cream {
  background: linear-gradient(135deg, #fff8e1 0%, #f5e9b8 100%);
  color: var(--ink);
}
.card-cream .card-mark { color: var(--accent-orange); }

.card-rose {
  background: linear-gradient(135deg, #f7d8d8 0%, #e8b8b8 100%);
  color: #4a2828;
}
.card-rose .card-mark { color: #8a3030; }

/* 卡片 Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--ink-light);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px dashed currentColor;
  opacity: 0.95;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 0;
  position: relative;
}
.card-mark {
  font-family: 'Caveat', cursive;
  font-size: 90px;
  line-height: 0.4;
  margin-bottom: 14px;
  font-weight: 700;
  height: 32px;
}
.card-quote-en {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card-quote-en-large {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.card-quote-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 12px;
}
.card-quote-cn-large {
  font-family: 'Noto Serif SC', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.card-quote-cn-small {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
  opacity: 0.85;
}
.card-quote-cn-small strong {
  background: rgba(255, 220, 90, 0.5);
  padding: 1px 4px;
  font-weight: 600;
}

.card-context {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  line-height: 1.65;
  opacity: 0.7;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  border-image: linear-gradient(90deg, currentColor, transparent) 1;
}

.emphasis-yellow {
  background: var(--marker-yellow);
  color: var(--ink);
  padding: 0 6px;
  display: inline-block;
}
.card-dark .emphasis-yellow { background: rgba(255, 220, 90, 0.85); }

.emphasis-mark {
  background: rgba(255, 220, 90, 0.7);
  color: inherit;
  padding: 0 4px;
}

.emphasis-stroke {
  position: relative;
  display: inline-block;
  font-style: italic;
}
.emphasis-stroke::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 4px; height: 12px;
  background: var(--marker-yellow);
  z-index: -1;
  transform: skewX(-3deg);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding-top: 12px;
  border-top: 1px dashed currentColor;
  opacity: 0.85;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tag {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 1;
}
.card-source {
  font-size: 11px;
  font-style: italic;
  opacity: 0.85;
}

.quotes-section-tip {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-light);
  font-style: italic;
}

/* 轮播视图：一屏显示约 2.3 张卡片，露出右侧第三张暗示可滑动 */
.quotes-grid.view-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 16px 4px 28px;
  -webkit-overflow-scrolling: touch;
  /* 自定义滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 170, 145, 0.5) transparent;
  /* 用 mask 让右边缘有渐隐效果，进一步暗示"还有更多" */
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 60px), transparent 100%);
}
.quotes-grid.view-carousel::-webkit-scrollbar {
  height: 6px;
}
.quotes-grid.view-carousel::-webkit-scrollbar-track {
  background: rgba(180, 170, 145, 0.1);
  border-radius: 3px;
}
.quotes-grid.view-carousel::-webkit-scrollbar-thumb {
  background: rgba(180, 170, 145, 0.5);
  border-radius: 3px;
}
.quotes-grid.view-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--ink-light);
}
/* 卡片宽度按容器宽度的比例计算：
   容器约 800px - 48px*2 padding = 704px (article inner-max 减去 padding)
   2.3 张卡片 + 间隙：(704 - 20*2.3) / 2.3 ≈ 286px
   用 calc 让它在不同屏幕都自适应 */
.quotes-grid.view-carousel .quote-card {
  flex: 0 0 calc((100% - 20px * 2.3) / 2.3);
  min-width: 240px;
  max-width: 320px;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
}
.quotes-grid.view-carousel .quote-card:first-child {
  margin-left: 4px;
}
.quotes-grid.view-carousel .quote-card:last-child {
  margin-right: 60px; /* 给最后一张留出空间，配合 mask 渐隐 */
}
.quotes-grid.view-carousel .quote-card:hover { transform: scale(1.02); }

/* 轮播提示：滑动手势的小图标 */
.quotes-section .quotes-grid.view-carousel + .quotes-section-tip::before {
  content: '👉 ';
  margin-right: 4px;
}
.quotes-section .quotes-grid.view-carousel ~ .quotes-section-tip {
  animation: hintSlide 2s ease-in-out infinite;
}
@keyframes hintSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

/* ---------- 模态框 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  /* 关键：用 100dvh 确保移动端视口准确 */
  height: 100dvh;
}
.modal.active { display: flex; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  z-index: 2;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 关键：让整个内容（卡片+按钮+下载键）适应视口高度
     视口高度减去：上下 padding 32px，按钮区估算 110px = 142px
     卡片宽高比 3:4，所以宽度按 (视口高度 - 142) * 3/4 与 max-width 取小 */
  max-height: calc(100dvh - 32px);
}
.modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.3); }
.modal-card-wrap {
  /* 让卡片以高度为基准约束，宽度 = 高度 * 3/4
     可用高度 = 100dvh - 32px (padding) - 110px (按钮区) */
  width: auto;
  height: calc(100dvh - 200px);
  max-height: calc(100dvh - 200px);
  aspect-ratio: 3 / 4;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}
.modal-card-wrap > .quote-card {
  width: 100%;
  height: 100%;
  cursor: default;
  border-radius: 16px;
  aspect-ratio: auto;
}
.modal-card-wrap > .quote-card:hover {
  transform: none;
  box-shadow: none;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-shrink: 0;
}
.modal-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-btn:hover { background: rgba(255, 255, 255, 0.2); }
.modal-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.modal-counter {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Caveat', cursive;
  font-size: 18px;
  letter-spacing: 0.05em;
}

/* ---------- 下载按钮（主操作） ---------- */
.modal-download-btn {
  margin-top: 12px;
  background: var(--accent-orange, #d68a4f);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(214, 138, 79, 0.3);
  flex-shrink: 0;
}
.modal-download-btn:hover {
  background: var(--accent-red, #c75555);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(199, 85, 85, 0.4);
}
.modal-download-btn:active {
  transform: translateY(0);
}
.modal-download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.download-icon {
  font-size: 16px;
}

@media (max-width: 960px) {
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .quotes-section { padding: 36px 24px; margin: 40px -8px; }
  .quotes-section-title { font-size: 24px; }
  .quotes-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-quote-en, .card-quote-cn { font-size: 18px; }
  .card-quote-en-large, .card-quote-cn-large { font-size: 26px; }
  .card-mark { font-size: 72px; }
  .modal { padding: 12px; }
  .modal-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 22px; }
  .modal-card-wrap { height: calc(100dvh - 220px); }
  .modal-download-btn { padding: 9px 20px; font-size: 13px; }
  /* 移动端：一屏 1.3 张，露出右边一点暗示可滑动 */
  .quotes-grid.view-carousel .quote-card {
    flex: 0 0 calc(100% - 80px);
    min-width: 220px;
    max-width: 280px;
  }
  .quotes-grid.view-carousel { mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); }
}
