/* theme-kids.css v6 — 温暖纸质感 · 高级童趣
 *
 * 设计方向：暖白基底 + 克制配色 + 充裕留白 + 精致动效。
 * 告别灰暗霓虹，拥抱温暖、明亮、呼吸感。
 */

:root {
  /* ==== 暖白基底 ==== */
  --bg: #faf7f2;
  --bg-soft: #f3efe7;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --border: rgba(180, 150, 120, 0.18);
  --border-strong: rgba(160, 120, 80, 0.28);
  --text-1: #2c2416;
  --text-2: #6b5d4a;
  --text-3: #9b8e7a;

  /* ==== 克制暖色 accent ==== */
  --accent: #e8734a;
  --accent-2: #e8a840;
  --accent-3: #2d8a7e;
  --good: #5b9e6f;
  --warn: #e8a840;
  --bad: #d95555;

  /* ==== 柔和渐变 ==== */
  --grad: linear-gradient(135deg, #e8734a, #e8a840 45%, #2d8a7e);
  --grad-soft: linear-gradient(180deg, #faf7f2 0%, #f3efe7 50%, #faf7f2 100%);

  /* ==== 圆角 (略收) ==== */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* ==== 柔和阴影 ==== */
  --shadow: 0 4px 20px rgba(120, 90, 50, 0.08), 0 1px 4px rgba(120, 90, 50, 0.04);
  --shadow-lg: 0 12px 40px rgba(120, 90, 50, 0.12), 0 4px 12px rgba(120, 90, 50, 0.06);

  /* ==== 字体 ==== */
  --font-sans: 'Noto Sans SC','Microsoft YaHei','PingFang SC',sans-serif;
  --font-display: 'Noto Sans SC','Microsoft YaHei','PingFang SC',sans-serif;
  --letter-tight: -0.01em;
  --letter-normal: 0em;
}

/* ================================================================
   GLOBAL
   ================================================================ */
html, body {
  background:
    radial-gradient(ellipse at 30% 10%, rgba(232, 168, 64, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(45, 138, 126, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(232, 115, 74, 0.04) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  opacity: 0.03;
  background: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(180,150,120,0.5) 30px, rgba(180,150,120,0.5) 31px);
}

/* ===== 幻灯片 ===== */
.slide { padding: 64px 88px; }

/* ===== 标题 ===== */
.h1, h1.title {
  font-size: clamp(44px, 5.5vw, 78px); font-weight: 900; line-height: 1.04;
  color: #2c2416; text-shadow: none;
}
.h2, h2.title {
  font-size: clamp(32px, 4vw, 54px); font-weight: 800; line-height: 1.08;
  color: #2c2416;
}

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #e8734a;
  letter-spacing: 0.08em; text-transform: none;
  background: rgba(232,115,74,0.06); padding: 6px 16px; border-radius: 999px;
}

.lede { font-size: 18px; color: #6b5d4a; max-width: 54ch; line-height: 1.65; }
.lede-lg { font-size: 21px; font-weight: 300; color: #6b5d4a; line-height: 1.7; max-width: 48ch; }

/* ===== 卡片 ===== */
.card {
  background: #ffffff; border: 1px solid rgba(180,150,120,0.15);
  border-radius: var(--radius); padding: 28px 28px;
  box-shadow: 0 3px 16px rgba(120,90,50,0.06), 0 1px 3px rgba(120,90,50,0.03);
  transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1.2), box-shadow 0.35s ease;
  color: #2c2416;
}
.card h4 { color: #2c2416; font-weight: 700; }
.card .dim { color: #6b5d4a; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(120,90,50,0.12), 0 2px 8px rgba(120,90,50,0.06);
}

/* 色调卡 */
.card-sun  { border-top: 3px solid #e8a840; background: #fffdf7; }
.card-sea  { border-top: 3px solid #2d8a7e; background: #f8fcfa; }
.card-leaf { border-top: 3px solid #5b9e6f; background: #f8fcf9; }
.card-coral{ border-top: 3px solid #e8734a; background: #fefaf8; }
.card-ink  { border-top: 3px solid #6b5d4a; background: #faf8f5; }

/* Emoji */
.card-emoji { font-size: 38px; line-height: 1; margin-bottom: 8px; display: block; }
.card-emoji-big {
  font-size: 44px; line-height: 1; margin-bottom: 10px; display: block;
  transition: transform 0.3s ease;
}
.card:hover .card-emoji-big { transform: scale(1.1) rotate(-3deg); }

/* ===== 时间轴 ===== */
.timeline-row {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.6); border: 1px solid rgba(180,150,120,0.1);
  margin-bottom: 8px; transition: all 0.3s ease;
}
.timeline-row:hover {
  background: #ffffff; border-color: rgba(180,150,120,0.2);
  transform: translateX(4px);
}
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: #e8734a; box-shadow: 0 0 0 4px rgba(232,115,74,0.1);
}
.timeline-time {
  font-weight: 600; font-size: 15px; color: #e8734a;
  white-space: nowrap; min-width: 120px;
}
.timeline-body { flex: 1; }
.timeline-title { font-weight: 700; font-size: 17px; color: #2c2416; }
.timeline-detail { font-size: 14px; color: #9b8e7a; }

/* ===== 周表 ===== */
.week-grid {
  display: grid; grid-template-columns: 50px repeat(3, 1fr); gap: 6px; align-items: center;
}
.week-header {
  font-weight: 700; font-size: 13px; color: #e8734a; text-align: center;
  padding: 8px 4px; background: rgba(232,115,74,0.05); border-radius: 8px;
}
.week-day {
  font-weight: 800; font-size: 17px; text-align: center;
  padding: 10px 4px; background: rgba(232,168,64,0.08); border-radius: 10px;
  color: #c7852a;
}
.week-cell {
  text-align: center; padding: 8px 4px; font-size: 13px;
  color: #6b5d4a; background: rgba(255,255,255,0.5);
  border-radius: 8px; border: 1px solid rgba(180,150,120,0.08);
}

/* ===== 引用 ===== */
.quote-block {
  font-size: 22px; font-weight: 500; color: #c7852a;
  padding: 16px 24px; border-left: 3px solid #e8a840;
  background: rgba(232,168,64,0.05); border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
}

/* ===== 印章 ===== */
.stamp {
  display: inline-block; font-size: 28px; font-weight: 900;
  color: #e8734a; padding: 10px 24px;
  border: 2px dashed #e8734a; border-radius: 999px;
  transform: rotate(-4deg); letter-spacing: 0.06em;
}

/* ===== 步骤条 ===== */
.step-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; background: rgba(255,255,255,0.55);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  transition: all 0.3s ease; border: 1px solid rgba(180,150,120,0.08);
}
.step-row:hover {
  background: #ffffff; border-color: rgba(180,150,120,0.18);
  transform: translateX(4px);
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #e8734a, #e8a840);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content { flex: 1; }
.step-title { font-weight: 700; font-size: 16px; color: #2c2416; }
.step-desc { font-size: 13px; color: #9b8e7a; margin-top: 2px; }

/* ===== 渐变文字 ===== */
.gradient-text {
  background: linear-gradient(90deg, #e8734a, #e8a840, #2d8a7e);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: warm-grad-flow 5s linear infinite;
}
@keyframes warm-grad-flow { to { background-position: 300% 0; } }

/* ===== 高亮 ===== */
.highlight {
  background: linear-gradient(180deg, transparent 55%, rgba(232,168,64,0.3) 55%);
  padding: 0 3px;
}

/* ===== 页脚/进度条 ===== */
.deck-footer { font-size: 13px; color: rgba(120,90,50,0.3); }
.progress-bar > span { background: linear-gradient(90deg, #e8734a, #e8a840, #2d8a7e); }

/* ===== 注 ===== */
.notes { display: none !important; }

/* ================================================================
   BACKGROUND DECORATIONS (极简)
   ================================================================ */
.bg-dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.08;
  background-image:
    radial-gradient(circle, #e8a840 1.5px, transparent 1.5px),
    radial-gradient(circle, #2d8a7e 1.5px, transparent 1.5px);
  background-size: 90px 90px, 110px 110px;
  background-position: 0 0, 40px 30px;
}

/* 光斑 */
.bg-glow {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(100px); opacity: 0.08;
}
.bg-glow.g1 { width: 280px; height: 280px; background: #e8a840; top: -60px; right: -60px; }
.bg-glow.g2 { width: 220px; height: 220px; background: #2d8a7e; bottom: -50px; left: -50px; }

/* 四角 */
.corner-deco {
  position: absolute; pointer-events: none; z-index: 0; opacity: 0.1;
}
.corner-deco.tl { top: 16px; left: 16px; }
.corner-deco.tr { top: 16px; right: 16px; }
.corner-deco.bl { bottom: 16px; left: 16px; }
.corner-deco.br { bottom: 16px; right: 16px; }

/* 分割线 */
.deco-divider {
  display: flex; align-items: center; gap: 14px; margin: 18px 0;
}
.deco-divider::before, .deco-divider::after {
  content: ''; flex: 1; height: 1.5px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, #e8a840, transparent);
}
.deco-divider .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8734a; flex-shrink: 0;
}

/* 卡片角标 */
.card-icon-badge {
  position: absolute; top: -8px; right: -8px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #faf7f2; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1.5px solid rgba(180,150,120,0.15);
}

/* ================================================================
   ANIMATIONS (克制)
   ================================================================ */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.float { animation: float 3.5s ease-in-out infinite; }

@keyframes bounce {
  0%,100%{transform:translateY(0)scale(1)}
  30%{transform:translateY(-14px)scale(1.04)}
  50%{transform:translateY(0)scale(.98)}
  70%{transform:translateY(-6px)scale(1.01)}
}
.bounce { animation: bounce 1.8s ease-in-out infinite; }

@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
.pulse { animation: pulse 2.5s ease-in-out infinite; }

@keyframes blur-up {
  from { opacity:0; transform:translateY(24px); filter:blur(4px) }
  to { opacity:1; transform:translateY(0); filter:blur(0) }
}
.blur-up { animation: blur-up 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.blur-up-d1 { animation: blur-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.blur-up-d2 { animation: blur-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.2s both; }

@keyframes fade-up {
  from { opacity:0; transform:translateY(28px) }
  to { opacity:1; transform:translateY(0) }
}
.anim-fade-up { animation: fade-up 0.65s cubic-bezier(0.16,1,0.3,1) both; }

@keyframes letter-in {
  from { opacity:0; letter-spacing:.2em }
  to { opacity:1; letter-spacing:normal }
}
.letter-in { animation: letter-in 0.7s cubic-bezier(0.16,1,0.3,1) both; }

@keyframes line-grow { from{transform:scaleX(0)} to{transform:scaleX(1)} }
.line-grow { display:block; height:2px; background:var(--grad); transform-origin:left;
  animation:line-grow 0.7s cubic-bezier(0.16,1,0.3,1) both; }

@keyframes pop-in {
  0%{opacity:0;transform:scale(.7)translateY(16px)}
  70%{transform:scale(1.03)translateY(-3px)}
  100%{opacity:1;transform:scale(1)translateY(0)}
}
.pop-in { animation: pop-in 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }

.bounce-list > * { animation: pop-in 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }
.bounce-list > *:nth-child(1){animation-delay:.04s}
.bounce-list > *:nth-child(2){animation-delay:.12s}
.bounce-list > *:nth-child(3){animation-delay:.20s}
.bounce-list > *:nth-child(4){animation-delay:.28s}
.bounce-list > *:nth-child(5){animation-delay:.36s}
.bounce-list > *:nth-child(6){animation-delay:.44s}
.bounce-list > *:nth-child(7){animation-delay:.50s}
.bounce-list > *:nth-child(8){animation-delay:.56s}

.slide.is-active { animation: slide-enter 0.45s cubic-bezier(0.16,1,0.3,1); }
@keyframes slide-enter { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }

/* ===== 排版工具 ===== */
.tag {
  display:inline-block;font-size:11px;font-weight:700;letter-spacing:.08em;
  padding:3px 10px;border-radius:5px;background:rgba(232,115,74,.08);color:#e8734a;
  text-transform:uppercase;
}
.text-loud { font-size:19px;font-weight:700;color:#2c2416; }
.text-quiet { font-size:14px;color:#9b8e7a; }
.prose-relaxed { line-height:1.75;font-size:16px; }
.card-spacious { padding:32px 30px; }

/* ===== 导航箭头 ===== */
.nav-arrow {
  opacity: 0.3 !important;
  background: rgba(255,255,255,0.8) !important;
  border-color: rgba(180,150,120,0.2) !important;
  color: #9b8e7a !important;
}
.nav-arrow:hover { opacity: 1 !important; color: #2c2416 !important; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .slide { padding: 36px 40px; }
  .h1, h1.title { font-size: clamp(28px, 5vw, 46px); }
  .h2, h2.title { font-size: clamp(22px, 3.5vw, 34px); }
  .card-emoji { font-size: 28px; }
  .card-emoji-big { font-size: 34px; }
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
}
