/* ============================================================
   本簡報主題 — 「深色科技簡約 / Dark Tech Minimal」
   每份簡報各自擁有一份 theme.css，可獨立調整、互不影響。
   （範本帶一份做為預設起點，新簡報複製後即可自由修改。）
   想換強調色：改下方 --accent / --accent-2。
   ============================================================ */
:root {
  --bg:        #0a0e16;
  --bg-2:      #0f1622;
  --fg:        #e6edf3;
  --fg-dim:    #9aa7b4;
  --accent:    #22d3ee;   /* cyan  */
  --accent-2:  #2dd4bf;   /* teal  */
  --accent-grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --card:   rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --font-sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC",
               "Hiragino Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
}

/* ---- Backdrop --------------------------------------------------------- */
html,
.reveal-viewport {
  background:
    radial-gradient(1200px 800px at 78% -12%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(1000px 700px at -5% 112%, rgba(45, 212, 191, 0.08), transparent 55%),
    var(--bg);
}

/* ---- Base type ------------------------------------------------------- */
.reveal {
  font-family: var(--font-sans);
  font-size: 32px;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
.reveal .slides { text-align: left; }
.reveal .slides section { line-height: 1.5; }

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-transform: none;
}
.reveal h1 { font-size: 2.1em; }
.reveal h2 { font-size: 1.5em; }
.reveal h3 { font-size: 1.15em; color: var(--fg); }

.reveal p  { margin: 0 0 0.6em; }
.reveal strong { color: #fff; }
.reveal em { color: var(--accent-2); font-style: normal; }

/* gradient-fill text helper: <span class="accent">…</span> */
.reveal .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Lists ----------------------------------------------------------- */
.reveal ul, .reveal ol { margin: 0 0 0.6em 1.1em; }
.reveal li { margin: 0.25em 0; }
.reveal ul li::marker { color: var(--accent); }
.reveal ol li::marker { color: var(--accent); font-weight: 700; }

/* ---- Links ----------------------------------------------------------- */
.reveal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}
.reveal a:hover { color: var(--accent-2); }

/* ---- Images ---------------------------------------------------------- */
.reveal section img {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: var(--card);
}

/* ---- Code ------------------------------------------------------------ */
.reveal code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--card);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  color: var(--accent-2);
}
.reveal pre {
  width: 100%;
  font-size: 0.6em;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.reveal pre code {
  background: #0c1119;
  color: #e6edf3;
  padding: 1.1em 1.3em;
  border-radius: 14px;
  max-height: 520px;
}

/* ---- Blockquote ------------------------------------------------------ */
.reveal blockquote {
  width: auto;
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 0.7em 1em;
  box-shadow: none;
  font-style: normal;
  color: var(--fg);
}

/* ---- Tables ---------------------------------------------------------- */
.reveal table { border-collapse: collapse; margin: 0.4em 0; font-size: 0.8em; }
.reveal table th {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 0.4em 0.8em;
  text-align: left;
}
.reveal table td { border-bottom: 1px solid var(--border); padding: 0.4em 0.8em; }

/* ---- Chrome (progress / controls / page number) ---------------------- */
.reveal .slide-number { background: transparent; color: var(--fg-dim); font-size: 16px; }
.reveal .controls { color: var(--accent); }
.reveal .progress { color: var(--accent); height: 3px; }

/* ====================================================================== */
/*  Layout helpers — 在投影片中用這些 class 排版                          */
/* ====================================================================== */

/* 封面：<!-- .slide: class="cover" --> */
.reveal section.cover { text-align: left; }
.reveal section.cover h1 { font-size: 2.6em; margin-bottom: 0.3em; }
.reveal section.cover .kicker {
  display: inline-block;
  font-size: 0.55em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4em 1.1em;
  margin-bottom: 0.7em;
}
.reveal section.cover .subtitle { color: var(--fg-dim); font-size: 1.05em; }
.reveal section.cover .meta { margin-top: 1.4em; color: var(--fg-dim); font-size: 0.65em; }

/* 章節分隔：<!-- .slide: class="section-divider" --> */
.reveal section.section-divider { text-align: center; }
.reveal section.section-divider h2 { font-size: 2.3em; }

/* 兩欄：<div class="cols"> 左 / 右 </div> */
.reveal .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2em; align-items: center; }

/* 卡片網格：<div class="cards"><div class="card">…</div>…</div> */
.reveal .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.reveal .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1em 1.1em;
}
.reveal .card h3 { color: #fff; margin-bottom: 0.3em; }
.reveal .card .big { font-size: 1.8em; font-weight: 800; line-height: 1.1; }
.reveal .card .big.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 圖片佔位框：<div class="placeholder">圖片放這裡</div> */
.reveal .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--fg-dim);
  font-size: 0.8em;
}

/* 弱化說明文字 */
.reveal .muted { color: var(--fg-dim); font-size: 0.7em; }

/* ============================================================ */
/*  武俠氣口：封面與章節大標改用楷/明體，營造古典「江湖」感       */
/*  （科技深色底 × 古典標題字 的反差，正是 AI×武林 的視覺主軸）   */
/* ============================================================ */
:root {
  --font-display: "Kaiti TC", "STKaiti", "BiauKai", "DFKai-SB",
                  "Songti TC", "STSong", "Noto Serif TC", serif;
}
.reveal section.cover h1,
.reveal section.section-divider h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
}
.reveal section.cover h1 { font-size: 2.9em; }
.reveal section.cover .kicker { letter-spacing: 0.4em; font-family: var(--font-display); }
.reveal section.cover .subtitle { line-height: 1.7; }

/* —— 封面背景圖：左暗右亮的漸層遮罩，確保左側文字清楚、右側畫面鮮明 ——
   背景圖由 slides.md 的 data-background-image 帶入（assets/images/cover-bg.jpg）。 */
.reveal section.cover { position: relative; }
.reveal section.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7, 10, 16, 0.92) 0%, rgba(7, 10, 16, 0.6) 34%, rgba(7, 10, 16, 0) 64%);
  z-index: 0;
  pointer-events: none;
}
.reveal section.cover > * { position: relative; z-index: 1; }
.reveal section.cover h1,
.reveal section.cover .subtitle,
.reveal section.cover .kicker,
.reveal section.cover .meta { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }

/* 章節分隔頁的「章回」標籤（沿用封面 kicker 的膠囊樣式） */
.reveal section.section-divider .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.5em;
  letter-spacing: 0.4em;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35em 1.2em;
  margin-bottom: 0.7em;
}

/* —— 小型組織架構圖（「員工 → 主管」頁用，純 CSS、吃主題配色） —— */
.reveal .org { display: flex; flex-direction: column; align-items: center; gap: 0.3em; }
.reveal .org .node {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.32em 0.9em; font-size: 0.82em; font-weight: 700; color: #fff; white-space: nowrap;
}
.reveal .org .node.boss  { color: var(--fg-dim); font-weight: 600; }
.reveal .org .node.peer  { color: var(--fg-dim); font-weight: 600; }
.reveal .org .node.you   { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.reveal .org .node.ai    { font-size: 0.72em; padding: 0.28em 0.7em; color: var(--accent-2); }
.reveal .org .node.tasks { font-weight: 400; color: var(--fg-dim); font-size: 0.7em; }
.reveal .org .link { color: var(--fg-dim); font-size: 0.68em; line-height: 1; }
.reveal .org .row  { display: flex; gap: 0.5em; }
.reveal .org-label { text-align: center; color: var(--fg); font-size: 0.72em; letter-spacing: 0.08em; margin-bottom: 0.5em; font-weight: 700; }
.reveal .org-cap   { text-align: center; color: var(--fg-dim); font-size: 0.68em; margin-top: 0.5em; }

/* —— 圖片縮圖化（固定最大高度，版面乾淨）+ 點擊放大（lightbox） —— */
.reveal section img { max-height: 380px; max-width: 100%; display: block; margin: 0 auto; cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 12, 0.92); cursor: zoom-out; padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 96vw; max-height: 92vh; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); background: transparent;
}

/* —— 流程圖（AI 整理 → 程式處理） —— */
.reveal .flow { display: flex; align-items: stretch; justify-content: center; gap: 0.5em; flex-wrap: wrap; margin: 1em 0; }
.reveal .flow .step {
  display: flex; align-items: center; justify-content: center; min-width: 150px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 0.7em 0.9em; font-weight: 700; color: #fff; text-align: center; font-size: 0.76em; line-height: 1.3;
}
.reveal .flow .step.data { color: var(--fg-dim); font-weight: 600; border-style: dashed; background: transparent; }
.reveal .flow .step.key { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.reveal .flow .op {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.56em; line-height: 1.25; text-align: center; padding: 0 0.1em;
}
.reveal .flow .op b { font-size: 2.2em; line-height: 0.7; margin-bottom: 0.15em; }
.reveal .flow .op.ai { color: var(--accent); }
.reveal .flow .op.code { color: var(--accent-2); }

/* —— 太極頁：「都記得了嗎」靜態刪除線（與「都忘記了嗎」並存） —— */
.reveal .struck {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
  color: var(--fg-dim);
}

/* —— 「名號」標籤（也用於對應表左欄） —— */
.reveal .tags { display: flex; flex-wrap: wrap; gap: 0.55em; justify-content: center; margin: 1.2em 0; }

/* —— 收尾對句（天下武功，唯快不破 ／ 江湖招式，唯問不背） —— */
.reveal .couplet { text-align: center; font-family: var(--font-display); letter-spacing: 0.08em; margin: 0 0 0.7em; }
.reveal .couplet p { font-size: 1.7em; font-weight: 700; color: #fff; line-height: 1.5; margin: 0.08em 0; }
.reveal .center { text-align: center; }

/* —— 片尾「江湖再見」：把亮底水墨圖壓暗去飽和，融進深色調 —— */
/* 只鎖定行內樣式含 "jianghu" 的那張背景；改 brightness 數值可調明暗 */
.reveal .slide-background-content[style*="jianghu"] {
  filter: brightness(0.4) saturate(0.72) contrast(1.05);
  opacity: 0.9;           /* 透出底色 #0a0e16，色調更統一 */
}
/* 黑字 + 再下移到山腳雲霧空曠處（改 translateY 數值可上下挪、translateX 可左右挪） */
.reveal section.end-card h2 {
  color: #fff;
  transform: translateY(400px);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.9);
}

/* 「全忘了」：被劃掉的名號（虛線框 + 刪除線 + 灰掉） */
.reveal .tag.struck {
  color: var(--fg-dim);
  border-style: dashed;
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  opacity: 0.85;
}
.reveal .tag {
  font-size: 0.72em; font-weight: 700; color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4em 1.05em; background: var(--card); white-space: nowrap;
}

/* —— 名詞 → 職場類比 對應表 —— */
.reveal .maplist { display: flex; flex-direction: column; gap: 0.38em; margin-top: 0.45em; }
.reveal .maprow { display: grid; grid-template-columns: 190px 1fr; gap: 1.1em; align-items: center; text-align: left; }
.reveal .maprow .tag { justify-self: start; }
.reveal .maprow b { color: #fff; font-size: 0.82em; line-height: 1.3; }
.reveal .maprow .muted { font-size: 0.66em; line-height: 1.3; }

/* —— 收尾 FAQ：把四句真心話濃縮成常見問答（這頁不走武俠，純實話） —— */
.reveal .faq { display: flex; flex-direction: column; gap: 0.6em; margin-top: 0.6em; }
.reveal .faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 0.55em 1em; text-align: left;
}
.reveal .faq-item p { margin: 0; }
.reveal .faq-item .q { color: #fff; font-weight: 800; font-size: 0.9em; }
.reveal .faq-item .a { color: var(--fg-dim); font-size: 0.74em; line-height: 1.5; margin-top: 0.3em; }
.reveal .faq-item .q span,
.reveal .faq-item .a span {
  display: inline-block; width: 1.6em; margin-right: 0.55em;
  font-weight: 800; text-align: center; border-radius: 6px;
  border: 1px solid var(--border);
}
.reveal .faq-item .q span { color: var(--accent); }
.reveal .faq-item .a span { color: var(--accent-2); }

