/* ============================================================
   夢想攝影家 · 共用課堂樣式
   所有 lesson-XX.html 共用呢個檔案。
   想轉全站色調／字體／動畫？改呢一個檔案就得。
   ============================================================ */

/* 🎨 顏色設定（想轉色調？改呢度） */
:root {
  --bg: #f5f0e6;
  --bg-2: #fffdf7;
  --bg-3: #ede5d3;
  --ink: #3d3428;
  --muted: #6f6352;
  --accent: #e08a2e;
  --accent-2: #2e9e8f;
  --accent-3: #e06b80;
  --accent-4: #7cb342;
  --accent-soft: rgba(224, 138, 46, 0.12);
  --line: #e0d5c0;
  --shadow: #d8cdb8;
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  overflow: hidden;
  height: 100vh;
}

/* ===== 浮動背景裝飾 ===== */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-item {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-20px) rotate(6deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.08); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(24px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 頂欄 ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: rgba(245, 240, 230, 0.94);
  border-bottom: 3px solid var(--accent);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mascot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  animation: wiggle 3s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}

.brand strong {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.slide-counter-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-family: "Fraunces", serif;
}

.btn {
  padding: 0.4rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fffdf7;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--bounce);
  box-shadow: 0 3px 0 var(--shadow);
}

.btn:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 6px 0 var(--shadow);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.workspace {
  display: flex;
  height: 100vh;
  padding-top: 3.6rem;
  position: relative;
  z-index: 1;
}

/* ===== 左索引 ===== */
.index-panel {
  width: 280px;
  border-right: 3px solid var(--line);
  overflow-y: auto;
  padding: 1.4rem;
  background: var(--bg-2);
}

.panel-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.chapter { margin-bottom: 1.4rem; }

.chapter h2 {
  font-family: "Fraunces", serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.chapter ol { list-style: none; padding: 0; }
.chapter li { margin-bottom: 0.3rem; }

.chapter a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.6rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  border: 2px solid transparent;
  transition: all 0.25s var(--bounce);
}

.chapter a:hover {
  background: var(--bg-3);
  color: var(--ink);
  transform: translateX(4px);
}

.chapter a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.chapter a .num {
  font-family: "Fraunces", serif;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.5rem;
}

.chapter a .read-indicator {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.3s var(--bounce);
}

.chapter a.read .read-indicator {
  color: var(--accent-4);
  transform: scale(1.2);
}

/* ===== 中間內容 ===== */
.slide-panel {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.5rem 5rem;
  position: relative;
}

.slide-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.slide-meta .chapter-tag {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  font-weight: 700;
  color: var(--accent-2);
}

.slide-content {
  max-width: 780px;
  margin: 0 auto;
}

.slide-content.anim-next {
  animation: slideInRight 0.45s var(--bounce) both;
}

.slide-content.anim-prev {
  animation: slideInLeft 0.45s var(--bounce) both;
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(60px) rotate(1deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-60px) rotate(-1deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

.slide-number {
  font-family: "Fraunces", serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.slide-content h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.slide-content .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ============================================================
   🧩 PPT 板塊組件
   ============================================================ */

/* 大標語 */
.big-statement {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-2);
  border: 3px solid var(--accent);
  border-radius: 1.5rem;
  box-shadow: 6px 6px 0 var(--shadow);
  margin: 1.5rem 0;
  animation: popIn 0.55s var(--bounce) both;
}

.big-statement .big {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.3;
  display: block;
}

.big-statement .big .hl { color: var(--accent); }
.big-statement .big .hl2 { color: var(--accent-2); }
.big-statement .big .hl3 { color: var(--accent-3); }

.big-statement .sub {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

/* 左右對比 */
.compare-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.compare-2 .side {
  border: 3px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-2);
  animation: fadeUp 0.5s var(--bounce) both;
  transition: all 0.3s var(--bounce);
}

.compare-2 .side:nth-child(2) { animation-delay: 0.12s; }

.compare-2 .side:hover {
  transform: translateY(-4px);
  box-shadow: 5px 6px 0 var(--shadow);
}

.compare-2 .side.good { border-color: var(--accent-4); }
.compare-2 .side.bad { border-color: var(--accent-3); }

.compare-2 .side .side-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.compare-2 .side.good .side-label {
  background: rgba(124, 179, 66, 0.15);
  color: var(--accent-4);
  border: 1.5px solid var(--accent-4);
}

.compare-2 .side.bad .side-label {
  background: rgba(224, 107, 128, 0.12);
  color: var(--accent-3);
  border: 1.5px solid var(--accent-3);
}

.compare-2 .side ul { list-style: none; padding: 0; }

.compare-2 .side li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 步驟流程 */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.step-flow .step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-2);
  border: 3px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  animation: fadeUp 0.5s var(--bounce) both;
  transition: all 0.3s var(--bounce);
}

.step-flow .step:nth-child(1) { animation-delay: 0.05s; }
.step-flow .step:nth-child(2) { animation-delay: 0.12s; }
.step-flow .step:nth-child(3) { animation-delay: 0.19s; }
.step-flow .step:nth-child(4) { animation-delay: 0.26s; }
.step-flow .step:nth-child(5) { animation-delay: 0.33s; }
.step-flow .step:nth-child(6) { animation-delay: 0.4s; }

.step-flow .step:hover {
  border-color: var(--accent);
  transform: translateX(8px);
  box-shadow: 4px 5px 0 var(--shadow);
}

.step-flow .step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffdf7;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 0 var(--shadow);
}

.step-flow .step:nth-child(2) .step-num { background: var(--accent-2); }
.step-flow .step:nth-child(3) .step-num { background: var(--accent-3); }
.step-flow .step:nth-child(4) .step-num { background: var(--accent-4); }
.step-flow .step:nth-child(5) .step-num { background: var(--accent); }
.step-flow .step:nth-child(6) .step-num { background: var(--accent-2); }

.step-flow .step-body strong {
  display: block;
  font-size: 1.05rem;
}

.step-flow .step-body span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* 數字卡 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: var(--bg-2);
  border: 3px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  text-align: center;
  animation: popIn 0.5s var(--bounce) both;
  transition: all 0.3s var(--bounce);
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.12s; }
.stat-card:nth-child(3) { animation-delay: 0.19s; }
.stat-card:nth-child(4) { animation-delay: 0.26s; }

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 5px 6px 0 var(--shadow);
}

.stat-card .stat-num {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-card:nth-child(2) .stat-num { color: var(--accent-2); }
.stat-card:nth-child(3) .stat-num { color: var(--accent-3); }
.stat-card:nth-child(4) .stat-num { color: var(--accent-4); }

.stat-card .stat-label {
  font-weight: 700;
  margin-top: 0.4rem;
}

.stat-card .stat-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* 語錄泡泡 */
.quote-bubble {
  position: relative;
  background: var(--bg-2);
  border: 3px solid var(--accent-2);
  border-radius: 1.25rem;
  padding: 1.1rem 1.4rem;
  margin: 0.9rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
  animation: fadeUp 0.5s var(--bounce) both;
  transition: all 0.3s var(--bounce);
}

.quote-bubble:nth-child(2) { animation-delay: 0.1s; border-color: var(--accent); }
.quote-bubble:nth-child(3) { animation-delay: 0.2s; border-color: var(--accent-3); }
.quote-bubble:nth-child(4) { animation-delay: 0.3s; border-color: var(--accent-4); }

.quote-bubble:hover {
  transform: rotate(-0.7deg) scale(1.01);
  box-shadow: 5px 6px 0 var(--shadow);
}

.quote-bubble::before {
  content: "💬";
  position: absolute;
  top: -14px;
  left: 16px;
  font-size: 1.3rem;
  background: var(--bg);
  padding: 0 0.3rem;
}

/* 提示框 */
.callout {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  border: 3px solid var(--accent);
  background: var(--accent-soft);
  animation: fadeUp 0.5s var(--bounce) both;
}

.callout.tip { border-color: var(--accent-4); background: rgba(124, 179, 66, 0.1); }
.callout.warn { border-color: var(--accent-3); background: rgba(224, 107, 128, 0.1); }
.callout.info { border-color: var(--accent-2); background: rgba(46, 158, 143, 0.1); }

.callout .callout-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.callout:hover .callout-icon {
  animation: wiggle 0.5s ease-in-out;
}

.callout strong { color: var(--accent); }
.callout.tip strong { color: var(--accent-4); }
.callout.warn strong { color: var(--accent-3); }
.callout.info strong { color: var(--accent-2); }

/* 關鍵字 chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.chip {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  animation: popIn 0.4s var(--bounce) both;
  transition: all 0.25s var(--bounce);
}

.chip:nth-child(odd):hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--accent); color: var(--accent); }
.chip:nth-child(even):hover { transform: translateY(-4px) rotate(2deg); border-color: var(--accent-2); color: var(--accent-2); }

/* 時間軸 */
.timeflow {
  position: relative;
  margin: 1.5rem 0 1.5rem 1.2rem;
  padding-left: 1.8rem;
  border-left: 4px dashed var(--line);
}

.timeflow .t-item {
  position: relative;
  margin-bottom: 1rem;
  background: var(--bg-2);
  border: 3px solid var(--line);
  border-radius: 1.25rem;
  padding: 0.9rem 1.2rem;
  animation: fadeUp 0.5s var(--bounce) both;
  transition: all 0.3s var(--bounce);
}

.timeflow .t-item:nth-child(1) { animation-delay: 0.05s; }
.timeflow .t-item:nth-child(2) { animation-delay: 0.12s; }
.timeflow .t-item:nth-child(3) { animation-delay: 0.19s; }
.timeflow .t-item:nth-child(4) { animation-delay: 0.26s; }
.timeflow .t-item:nth-child(5) { animation-delay: 0.33s; }
.timeflow .t-item:nth-child(6) { animation-delay: 0.4s; }

.timeflow .t-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 1.1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeflow .t-item:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: 4px 5px 0 var(--shadow);
}

.timeflow .t-time {
  font-family: "Fraunces", serif;
  font-weight: 900;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.timeflow .t-body {
  font-size: 0.98rem;
  margin-top: 0.15rem;
}

/* 圖片 */
.slide-img {
  width: 100%;
  max-width: 420px;
  border-radius: 1.5rem;
  border: 3px solid var(--accent);
  box-shadow: 6px 6px 0 var(--shadow);
  display: block;
  margin: 0 auto 1.5rem;
  animation: popIn 0.6s var(--bounce) 0.1s both;
  transition: transform 0.3s var(--bounce);
}

.slide-img:hover {
  transform: rotate(-2deg) scale(1.03);
}

.slide-img.wide { max-width: 640px; }

/* 一般列表 */
.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.25s var(--bounce);
  animation: fadeUp 0.4s var(--bounce) both;
}

.detail-list li:nth-child(1) { animation-delay: 0.05s; }
.detail-list li:nth-child(2) { animation-delay: 0.1s; }
.detail-list li:nth-child(3) { animation-delay: 0.15s; }
.detail-list li:nth-child(4) { animation-delay: 0.2s; }
.detail-list li:nth-child(5) { animation-delay: 0.25s; }
.detail-list li:nth-child(6) { animation-delay: 0.3s; }

.detail-list li:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}

.detail-list li strong { color: var(--accent); }

.detail-list li code {
  background: var(--bg-3);
  padding: 0.1rem 0.45rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-2);
}

/* 挑戰卡 */
.challenge-card {
  border: 3px solid var(--accent);
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: linear-gradient(160deg, var(--accent-soft), transparent 65%);
  margin: 1.5rem 0;
  box-shadow: 6px 6px 0 var(--shadow);
  animation: popIn 0.55s var(--bounce) both;
  transition: transform 0.3s var(--bounce);
}

.challenge-card:hover {
  transform: rotate(-0.7deg) scale(1.01);
}

.challenge-card .tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fffdf7;
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
  animation: wiggle 2.5s ease-in-out infinite;
}

.challenge-card h2 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.challenge-card p {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* 通用卡片格 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-2);
  border: 3px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem;
  transition: all 0.3s var(--bounce);
  animation: fadeUp 0.5s var(--bounce) both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }

.card:hover {
  border-color: var(--accent);
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 5px 6px 0 var(--shadow);
}

.card .num {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.card h3 {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* 三角格 */
.triangle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.tri-item {
  text-align: center;
  padding: 1.4rem 0.8rem;
  border: 3px solid var(--accent);
  border-radius: 1.25rem;
  background: var(--accent-soft);
  transition: all 0.3s var(--bounce);
  animation: popIn 0.5s var(--bounce) both;
}

.tri-item:nth-child(1) { animation-delay: 0.05s; }
.tri-item:nth-child(2) { animation-delay: 0.15s; border-color: var(--accent-2); background: rgba(46, 158, 143, 0.1); }
.tri-item:nth-child(3) { animation-delay: 0.25s; border-color: var(--accent-3); background: rgba(224, 107, 128, 0.1); }

.tri-item:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 5px 6px 0 var(--shadow);
}

.tri-item .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.tri-item:hover .emoji {
  animation: wiggle 0.5s ease-in-out;
}

.tri-item .zh {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.tri-item .en {
  color: var(--muted);
  font-size: 0.8rem;
}

/* 比喻方程式 */
.analogy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-2);
  border: 3px dashed var(--accent);
  border-radius: 1.5rem;
  animation: popIn 0.5s var(--bounce) both;
}

/* ============================================================
   🔒 撳吓揭曉（答案／問題預設遮住，撳一下先開）
   用法：
   <div class="reveal">
     <div class="reveal-q">❓ 問題：想凍結動作用咩？</div>
     <div class="reveal-a">✅ 答案：高速快門</div>
   </div>
   ============================================================ */
.reveal {
  position: relative;
  background: var(--bg-2);
  border: 3px solid var(--accent-2);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  margin: 0.9rem 0;
  cursor: pointer;
  animation: fadeUp 0.5s var(--bounce) both;
  transition: all 0.3s var(--bounce);
  overflow: hidden;
}

.reveal:nth-child(2) { animation-delay: 0.1s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.reveal:nth-child(4) { animation-delay: 0.3s; }

.reveal:hover {
  transform: translateY(-3px);
  box-shadow: 5px 6px 0 var(--shadow);
}

.reveal .reveal-q {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
}

.reveal .reveal-a {
  margin-top: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--accent);
  font-weight: 700;
  filter: blur(10px);
  opacity: 0.4;
  transition: filter 0.45s ease, opacity 0.45s ease;
  user-select: none;
}

.reveal.revealed .reveal-a {
  filter: blur(0);
  opacity: 1;
  user-select: auto;
}

.reveal .reveal-hint {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--accent-2);
  background: var(--bg);
  border: 2px solid var(--accent-2);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  animation: hintPulse 1.8s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s var(--bounce);
  pointer-events: none;
}

.reveal.revealed .reveal-hint {
  opacity: 0;
  transform: scale(0.6);
}

.reveal.revealed {
  border-color: var(--accent-4);
  cursor: default;
}

@keyframes hintPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.analogy .a-box {
  text-align: center;
  padding: 0.9rem 1.3rem;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 1rem;
  font-weight: 900;
  font-size: 1.15rem;
}

.analogy .a-box .a-emoji {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.analogy .a-eq {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--muted);
}

/* ===== 上下頁 ===== */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 780px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 3px dashed var(--line);
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(180deg, transparent, var(--bg) 28%);
  padding-bottom: 0.4rem;
}

.pager a,
.pager span.pg,
.pager button.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  min-height: 3rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  border: 2px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  transition: all 0.25s var(--bounce);
}

.pager a:hover,
.pager button.pg:hover:not(.disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 0 var(--shadow);
}

.pager button.pg.next-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf7;
  font-size: 1.12rem;
  padding: 0.9rem 1.8rem;
  min-width: 10.5rem;
  box-shadow: 0 4px 0 var(--shadow);
}

.pager button.pg.next-primary:hover:not(.disabled) {
  color: #fffdf7;
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--shadow);
}

.pager span.pg.disabled,
.pager button.pg.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ===== 右進度欄 ===== */
.progress-panel {
  width: 260px;
  border-left: 3px solid var(--line);
  padding: 1.4rem;
  background: var(--bg-2);
  overflow-y: auto;
}

.progress-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.progress-value strong {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  display: inline-block;
}

.progress-value strong.bump {
  animation: bump 0.4s var(--bounce);
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4) rotate(-6deg); }
  100% { transform: scale(1); }
}

.progress-track {
  height: 12px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid var(--line);
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: 999px;
  transition: width 0.5s var(--bounce);
}

.reading-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.checklist-preview {
  background: var(--bg-3);
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem;
  margin-bottom: 1.4rem;
  transition: all 0.3s var(--bounce);
}

.checklist-preview:hover {
  border-color: var(--accent-2);
  transform: rotate(-0.5deg);
}

.checklist-preview h2 {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 900;
  margin: 0.4rem 0 0.4rem;
}

.checklist-preview p {
  font-size: 0.8rem;
  color: var(--muted);
}

.mascot-mini {
  width: 100%;
  border-radius: 1rem;
  border: 2px solid var(--line);
  margin-bottom: 1rem;
  animation: floaty 5s ease-in-out infinite;
}

/* ===== 底欄 ===== */
.footer-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: rgba(245, 240, 230, 0.94);
  border-top: 3px solid var(--accent);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  color: var(--muted);
  z-index: 100;
}

.keyboard-hint {
  display: flex;
  gap: 1rem;
}

.keyboard-hint kbd {
  padding: 0.2rem 0.5rem;
  border: 2px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-family: inherit;
  background: var(--bg-2);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .index-panel, .progress-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .triangle, .compare-2, .stat-grid {
    grid-template-columns: 1fr;
  }
  .slide-panel {
    padding: 1.25rem 1.25rem 5rem;
  }
}


/* ============================================================
   P0 · 投影／講師模式、減動、固定欄積木
   ============================================================ */

body.present-mode .index-panel,
body.present-mode .progress-panel {
  display: none !important;
}

body.present-mode .slide-panel {
  padding: 1.75rem 3rem 5.5rem;
}

body.present-mode .slide-meta,
body.present-mode .slide-content,
body.present-mode .pager {
  max-width: 1100px;
}

body.present-mode .slide-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

body.present-mode .slide-content .lede {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  color: var(--ink);
  opacity: 0.88;
}

body.present-mode .slide-content,
body.present-mode .slide-content p,
body.present-mode .card p,
body.present-mode .callout,
body.present-mode .side p {
  font-size: 1.28rem;
  line-height: 1.65;
}

body.present-mode .panel-label,
body.present-mode .eyebrow,
body.present-mode .slide-number {
  opacity: 0.75;
}

body.hide-decor .bg-decor,
body.present-mode.hide-decor .bg-decor {
  display: none !important;
}

body.hide-decor .bg-decor {
  display: none !important;
}

/* 減動：系統偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .float-item,
  .brand-mascot,
  .mascot-mini {
    animation: none !important;
  }

  .slide-content.anim-next,
  .slide-content.anim-prev {
    animation: none !important;
  }
}

/* 投影模式亦減裝飾動畫 */
body.present-mode .float-item,
body.present-mode .brand-mascot,
body.present-mode .mascot-mini {
  animation: none !important;
}

body.present-mode .bg-decor {
  opacity: 0.35;
}

/* ----- 固定欄積木（作者貼喺 slide.content）----- */
.lesson-block {
  margin: 1.25rem 0;
  padding: 1.15rem 1.35rem;
  border-radius: 1.25rem;
  border: 3px solid var(--line);
  background: var(--bg-2);
  box-shadow: 4px 4px 0 var(--shadow);
}

.lesson-block .block-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 0.7rem;
}

.lesson-block.timebox { border-color: var(--accent); }
.lesson-block.safety { border-color: var(--accent-3); }
.lesson-block.phone-tip { border-color: var(--accent-2); }
.lesson-block.wrap-clock { border-color: var(--accent-4); text-align: center; }
.lesson-block.demo-follow { border-color: var(--accent); }

.lesson-block ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.lesson-block ul li,
.lesson-block .check-list li {
  font-size: 1.05rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  background: var(--bg-3);
}

.lesson-block .check-list li::before {
  content: "☐ ";
  font-weight: 900;
  color: var(--accent-3);
}

.lesson-block .tip-one {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0;
}

.lesson-block .clock-big {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin: 0.4rem 0;
}

.lesson-block .clock-big strong {
  color: var(--accent);
}

.lesson-block .clock-sub {
  color: var(--muted);
  font-size: 1rem;
}

.lesson-block .steps-3 {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 1.1rem;
}

body.present-mode .lesson-block ul li,
body.present-mode .lesson-block .tip-one,
body.present-mode .lesson-block .steps-3 {
  font-size: 1.28rem;
}

#present-btn:not(.ghost),
body.present-mode #present-btn {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fffdf7;
}
