/* ========================================
   OpenRouter 知识图解 — 9:16 视觉样式
   规格:1080×1920 / 米黄 #FCF6E0 + 黑 #1A1A1A + 芥末黄 #FFD700
   派生自 knowledge-visual-cartographer + frontend-dev
   ======================================== */

:root {
  --bg-cream: #FCF6E0;
  --bg-black: #1A1A1A;
  --bg-yellow: #FFD700;
  --text-white: #FFFFFF;
  --text-black: #1A1A1A;
  --text-muted: rgba(26, 26, 26, 0.55);
  --text-muted-inv: rgba(255, 255, 255, 0.55);
  --divider: rgba(26, 26, 26, 0.12);
  --divider-inv: rgba(255, 255, 255, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #2a2a2a;
  color: var(--text-black);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.slide {
  width: 1080px;
  min-height: 1920px;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
  background: var(--bg-cream);
  color: var(--text-black);
  display: flex;
  flex-direction: column;
  /* 默认 left-align 已是 cartographer 锁死规则 */
}

/* 黑底/黄底变体 */
.slide--black {
  background: var(--bg-black);
  color: var(--text-white);
}

/* 水印 */
.watermark {
  position: absolute;
  top: 40px;
  right: 56px;
  font-size: 180px;
  font-weight: 900;
  letter-spacing: -10px;
  color: rgba(26, 26, 26, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}
.slide--black .watermark {
  color: rgba(255, 255, 255, 0.06);
}

/* 页码 */
.page-num {
  position: absolute;
  bottom: 40px;
  right: 64px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.slide--black .page-num {
  color: var(--text-muted-inv);
}

/* kicker 顶部小字 */
.kicker {
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 700;
}
.slide--black .kicker {
  color: var(--text-muted-inv);
}

/* 标题层级 */
.h1 {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 32px;
}
.h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

/* 正文 */
.lead {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
}
.body {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}
.body-sm {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}
.slide--black .body-sm {
  color: var(--text-muted-inv);
}

/* 块:黑底/黄底 */
.block-black {
  background: var(--bg-black);
  color: var(--text-white);
  padding: 28px 32px;
  border-radius: 4px;
}
.block-yellow {
  background: var(--bg-yellow);
  color: var(--text-black);
  padding: 28px 32px;
  border-radius: 4px;
}

/* 代码块 */
.code {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
  background: var(--bg-black);
  color: #f0f0f0;
  padding: 24px 28px;
  border-radius: 4px;
  white-space: pre;
  overflow-x: auto;
}
.code-comment { color: #6a6a6a; }
.code-string  { color: #FFD700; }
.code-key     { color: #88c0d0; }

/* 标签 chip */
.chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--bg-yellow);
  color: var(--text-black);
}

/* 分割线 */
.divider {
  height: 1px;
  background: var(--divider);
  margin: 24px 0;
  border: 0;
}
.divider-inv {
  background: var(--divider-inv);
}

/* 列表 */
.list {
  list-style: none;
  padding: 0;
}
.list li {
  position: relative;
  padding-left: 32px;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.slide--black .list li::before {
  color: var(--text-muted-inv);
}

/* 工具卡片 */
.tool-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--divider);
}
.tool-row:last-child { border-bottom: 0; }
.tool-name {
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 180px;
}
.tool-path {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 14px;
  color: var(--text-muted);
}
.slide--black .tool-path { color: var(--text-muted-inv); }

/* 大数字 */
.big-num {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: var(--bg-yellow);
  font-variant-numeric: tabular-nums;
  letter-spacing: -4px;
}

/* footer note */
.foot {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.slide--black .foot {
  color: var(--text-muted-inv);
}

/* 间距工具 */
.stack > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }
.stack-xl > * + * { margin-top: 64px; }
.stack-sm > * + * { margin-top: 12px; }

/* 让主要内容不被水印压住 */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* 封面/金句页:顶/中/底按 space-between 自然分布到全屏 */
.slide--hero {
  justify-content: space-between;
}

.slide--hero .hero-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.slide--hero .content {
  flex: 0 0 auto;
}

/* 封面/金句页中心装饰:一条贯穿的细黄线 + 巨大背景数字 */
.hero-center {
  position: relative;
}

.hero-accent {
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--bg-yellow);
}

.hero-bg-num {
  position: absolute;
  right: -40px;
  bottom: -120px;
  font-size: 480px;
  font-weight: 900;
  color: rgba(255, 215, 0, 0.08);
  line-height: 1;
  letter-spacing: -20px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-variant-numeric: tabular-nums;
}

.slide--black .hero-bg-num {
  color: rgba(255, 215, 0, 0.06);
}

.hero-center > * {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 84px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
}
.hero-sub {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.8;
  margin-top: 24px;
}

/* 步骤序号 */
.step-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--bg-yellow);
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}

/* Q&A 块 */
.qa-q {
  background: var(--bg-yellow);
  color: var(--text-black);
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 4px 4px 0 0;
}
.qa-a {
  background: var(--bg-black);
  color: var(--text-white);
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  margin-bottom: 24px;
}

/* 工具分类标题 */
.cat-label {
  display: inline-block;
  background: var(--bg-yellow);
  color: var(--text-black);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* 成本档位卡 */
.tier {
  padding: 32px;
  border-radius: 4px;
}
.tier-free { background: var(--bg-yellow); color: var(--text-black); }
.tier-paid { background: var(--bg-black); color: var(--text-white); }
.tier-fee  { background: #fff7d6; color: var(--text-black); border: 2px solid var(--bg-black); }

.tier-num {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
}
.tier-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tier-desc {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 12px;
}
