/* ============================================
   Sales Seminar Theme v3.0
   AI 超級大腦陪跑課 — Reveal.js Custom Theme
   品牌識別 + 圖像系統 + 6 新版型 + 暗色系統
   ============================================ */

/* === Reset & Base === */
:root {
  --color-bg-dark: #0B1120;
  --color-bg-deeper: #080E1A;
  --color-bg-wangxing: #0E1328;
  --color-bg-chatgpt: #2A2B36;
  --color-bg-chatgpt-ai: #353644;
  --color-white: #F0F0F5;
  --color-neon-blue: #00D4FF;
  --color-gold: #FFD700;
  --color-neon-pink: #FF006E;
  --color-green: #19C37D;
  --color-purple: #AB68FF;
  --color-text-light: #F0F0F5;
  --color-text-dim: #9CA3B0;
  --font-main: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

.reveal {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--color-white);
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--font-main);
  font-weight: 900;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.reveal section {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 32px 48px;
  box-sizing: border-box;
  position: relative;
}

/* === Bottom Gradient Border — every slide === */
.reveal section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00D4FF, #FFD700);
  z-index: 10;
}

/* === F1: 忘形流 — 白底 → 深色漸層（統一暗色） === */
.slide-f1-white {
  background: linear-gradient(180deg, var(--color-bg-wangxing) 0%, var(--color-bg-dark) 100%) !important;
  color: var(--color-white) !important;
}

.slide-f1-white h2 {
  font-size: 160px;
  font-weight: 900;
  color: var(--color-white);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 0 80px rgba(0, 212, 255, 0.2);
}

.slide-f1-white .subtitle {
  font-size: 80px;
  color: var(--color-text-dim);
  margin-top: 20px;
  font-weight: 400;
}

.slide-f1-white .wangxing-icon {
  margin-bottom: 24px;
  position: relative;
}

.slide-f1-white .wangxing-icon .material-icons-outlined {
  font-size: 176px;
  color: var(--color-neon-blue);
  position: relative;
  z-index: 1;
}

/* F1 Icon — PNG images (hero size) */
.slide-f1-white .wangxing-icon img {
  height: clamp(280px, 40vh, 480px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.2));
}

/* F1 Icon 光圈 */
.slide-f1-white .wangxing-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.wangxing-content {
  max-width: 1100px;
}

/* === F1: 忘形流 — 黑底 === */
.slide-f1-black {
  background: var(--color-bg-dark) !important;
  color: var(--color-white) !important;
}

.wangxing-quote {
  max-width: 1100px;
}

.wangxing-quote .quote-top {
  font-size: 144px;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 0 80px rgba(0, 212, 255, 0.2);
}

.wangxing-quote .quote-bottom {
  font-size: 144px;
  font-weight: 900;
  color: var(--color-neon-blue);
  line-height: 1.2;
}

/* === F2: 銷講結構頁 === */
.slide-f2 {
  background: var(--color-bg-dark) !important;
  color: var(--color-white) !important;
}

.slide-f2 h2 {
  font-size: 64px;
  margin-bottom: 32px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.structure-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  width: 100%;
  text-align: left;
}

.structure-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(0, 212, 255, 0.06);
  border-radius: 12px;
  border-left: 4px solid var(--color-neon-blue);
}

.structure-item .item-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-neon-blue);
  min-width: 56px;
  text-align: center;
}

.structure-item .item-text {
  font-size: 40px;
  font-weight: 500;
}

/* Big Number Callout */
.big-number {
  font-size: 144px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

/* Testimonial Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
}

.testimonial-card {
  background: rgba(0, 212, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.testimonial-name {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 20px;
  color: var(--color-text-dim);
  margin-bottom: 12px;
}

.testimonial-quote {
  font-size: 26px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Price */
.slide-price .price-original {
  font-size: 40px;
  color: var(--color-text-dim);
  margin-bottom: 12px;
}

.slide-price .price-original s {
  color: var(--color-text-dim);
}

.slide-price .price-final {
  font-size: 160px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.slide-price .price-note {
  font-size: 34px;
  color: var(--color-neon-blue);
}

/* Value Stack */
.value-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1000px;
  width: 100%;
  text-align: left;
}

.value-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.value-item .value-name {
  font-size: 34px;
}

.value-item .value-price {
  font-size: 34px;
  color: var(--color-gold);
  font-weight: 700;
}

.value-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 2px solid var(--color-neon-blue);
  margin-top: 8px;
  font-size: 40px;
  font-weight: 700;
}

.value-total .value-price {
  color: var(--color-gold);
}

/* === F3: ChatGPT Mock UI === */
.slide-f3 {
  background: var(--color-bg-chatgpt) !important;
  padding: 0 !important;
  align-items: stretch !important;
  text-align: left !important;
}

.chatgpt-header {
  padding: 16px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-name {
  font-size: 48px;
  color: var(--color-text-light);
  font-weight: 500;
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.chat-message {
  display: flex;
  gap: 20px;
  padding: 32px 80px;
  align-items: flex-start;
}

.chat-message.chat-ai {
  background: var(--color-bg-chatgpt-ai);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.avatar-user {
  background: var(--color-purple);
}

.avatar-ai {
  background: var(--color-green);
}

.message-content {
  font-size: 56px;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 1400px;
}

.message-content strong {
  color: var(--color-white);
}

.message-content ol, .message-content ul {
  padding-left: 24px;
  margin: 12px 0;
}

.message-content li {
  margin-bottom: 8px;
}

/* Typewriter cursor */
.typing-cursor::after {
  content: '\25CA';
  animation: blink 1s step-end infinite;
  color: var(--color-neon-blue);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === F4: Chart.js === */
.slide-f4 {
  background: var(--color-bg-dark) !important;
}

.slide-f4 h2 {
  font-size: 52px;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.chart-container {
  max-width: 1350px;
  width: 100%;
  height: 630px;
  margin: 0 auto;
}

.callout-number {
  font-size: 144px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

/* === F5: 對比面板 === */
.slide-f5 {
  background: var(--color-bg-dark) !important;
  padding: 32px !important;
}

.compare-container {
  display: flex;
  width: 100%;
  max-width: 1300px;
  gap: 0;
  align-items: stretch;
}

.panel-left, .panel-right {
  flex: 1;
  padding: 32px;
  text-align: left;
}

.panel-left {
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.panel-left.active {
  opacity: 1;
}

.panel-right {
  border-left: 3px solid var(--color-neon-blue);
}

.panel-right.highlight {
  background: rgba(0, 212, 255, 0.08);
  border-radius: 0 12px 12px 0;
}

.panel-label {
  font-size: 26px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.panel-content {
  font-size: 34px;
  line-height: 1.6;
}

.panel-content h3 {
  font-size: 38px;
  margin-bottom: 12px;
  color: var(--color-white);
}

.panel-left .panel-content {
  color: var(--color-text-dim);
}

.panel-right .panel-content {
  color: var(--color-white);
}

/* Compare Title */
.compare-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 32px;
  width: 100%;
  text-align: center;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

/* === Countdown Timer === */
.countdown-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.countdown-value {
  font-size: 108px;
  font-weight: 900;
  color: var(--color-neon-pink);
  font-family: var(--font-mono);
}

.countdown-label {
  font-size: 30px;
  color: var(--color-text-dim);
}

/* === Progress Bar === */
.progress-bar {
  width: 100%;
  max-width: 700px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-top: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-neon-blue), var(--color-green));
  border-radius: 6px;
  transition: width 1.5s ease-out;
}

/* === QR Code === */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-image {
  width: 280px;
  height: 280px;
  border-radius: 16px;
  border: 4px solid var(--color-white);
}

.qr-label {
  font-size: 34px;
  color: var(--color-neon-blue);
}

/* === Guarantee Badge === */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
}

.guarantee-card {
  background: rgba(0, 212, 255, 0.06);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.guarantee-card .guarantee-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.guarantee-card .guarantee-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guarantee-card .guarantee-desc {
  font-size: 24px;
  color: var(--color-text-dim);
  line-height: 1.5;
}

/* === Keyboard Effects Overlay === */
.keyword-overlay {
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 160px;
  font-weight: 900;
  font-family: var(--font-main);
  color: var(--color-white);
  text-shadow:
    0 0 20px rgba(0, 212, 255, 0.8),
    0 0 40px rgba(0, 212, 255, 0.6),
    0 0 80px rgba(0, 212, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  animation: keyword-pop 3s ease-out forwards;
}

@keyframes keyword-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  25% {
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  pointer-events: none;
}

/* === Reveal.js Overrides === */
.reveal .slides {
  text-align: center;
}

.reveal .slide-number {
  font-size: 16px;
  color: var(--color-text-dim);
  background: transparent;
  right: 16px;
  bottom: 16px;
}

.reveal .progress {
  height: 4px;
  color: var(--color-neon-blue);
}

.reveal .controls {
  color: var(--color-neon-blue);
}

/* === Brand Identity Overlay — persistent on all slides === */
/* S Logo: 左上角（原版微調：往下往左）*/
.reveal .slides::before {
  content: 'S';
  position: fixed;
  top: 48px;
  left: 32px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  pointer-events: none;
}

/* 粉紅裝飾條：右下角（加粗上移至頁碼上方）*/
.reveal .slides::after {
  content: '';
  position: fixed;
  bottom: 72px;
  right: 48px;
  width: 60px;
  height: 5px;
  background: var(--color-neon-pink);
  border-radius: 2px;
  z-index: 1000;
  pointer-events: none;
}

/* === Utility Classes === */
.text-gold { color: #FFD700 !important; }
.text-blue { color: #00D4FF !important; }
.text-pink { color: #FF006E !important; }
.text-dim  { color: #9CA3B0 !important; }

/* === Image Reset === */
.reveal section img {
  max-width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
  margin: 0;
}

/* === F1-Hero: 大圖 + 大字 === */
.slide-f1-hero {
  background: linear-gradient(180deg, var(--color-bg-wangxing) 0%, var(--color-bg-dark) 100%) !important;
}

.slide-f1-hero .hero-icon {
  margin-bottom: 32px;
}

.slide-f1-hero .hero-icon img {
  height: clamp(280px, 40vh, 480px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.2));
}

.slide-f1-hero h2 {
  font-size: 120px;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.2;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

/* === F8: 50/50 Split — v3.4 穩定版 === */
.slide-f1-split {
  background: var(--color-bg-dark) !important;
  display: flex !important;
  flex-direction: row !important;
  padding: 0 !important;
  gap: 0;
  overflow: hidden;
}

/* 圖片側：flex:1 均分 + 防溢出 */
.slide-f1-split .split-image {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.04) 0%, transparent 100%);
}

/* PNG 圖片 */
.slide-f1-split .split-image img {
  max-height: 70vh;
  max-width: 85%;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
}

/* Material Icon 後備 */
.slide-f1-split .split-image .wangxing-icon {
  position: relative;
  z-index: 1;
}

.slide-f1-split .split-image .wangxing-icon .material-icons-outlined {
  font-size: 240px;
  color: var(--color-neon-blue);
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.15));
}

/* 垂直分隔線 */
.slide-f1-split .split-image::after {
  content: '';
  position: absolute;
  top: 15%; right: 0; bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* 文字側：flex:1 均分 + 居中 */
.slide-f1-split .split-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 56px;
  text-align: center;
  overflow: hidden;
}

.slide-f1-split .split-text h2 {
  font-size: 96px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 100%;
  word-break: keep-all;
}

.slide-f1-split .split-text .subtitle {
  font-size: 40px;
  color: var(--color-text-dim);
  margin-top: 16px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  max-width: 100%;
}

/* 反轉 */
.slide-f1-split.split-reverse {
  flex-direction: row-reverse !important;
}

.slide-f1-split.split-reverse .split-image::after {
  right: auto; left: 0;
}

/* === F1-Photo: 全幅照片背景 === */
.slide-f1-photo {
  padding: 0 !important;
}

.slide-f1-photo .photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 48px;
}

.slide-f1-photo .photo-logo {
  max-width: 200px;
  height: auto;
}

.slide-f1-photo .photo-caption {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

/* === F10: Photo + Quote — Redesigned with depth + accent === */
.slide-f1-photo-quote {
  background: var(--color-bg-dark) !important;
  flex-direction: row !important;
  padding: 48px 56px !important;
  gap: 48px;
  overflow: hidden;
}

.slide-f1-photo-quote .pq-photo {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-f1-photo-quote .pq-photo img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 62vh;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s ease;
}

/* Subtle glow behind photo */
.slide-f1-photo-quote .pq-photo::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; height: 85%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.slide-f1-photo-quote .pq-caption {
  font-size: 28px;
  color: var(--color-text-dim);
  margin-top: 16px;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.slide-f1-photo-quote .pq-quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  position: relative;
  padding-left: 8px;
}

/* Decorative quote mark */
.slide-f1-photo-quote .pq-bubble::before {
  content: '\201C';
  position: absolute;
  top: -24px; left: -8px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: rgba(0, 212, 255, 0.12);
  line-height: 1;
  pointer-events: none;
}

.slide-f1-photo-quote .pq-bubble {
  position: relative;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--color-neon-blue), var(--color-gold)) 1;
  padding-left: 32px;
  margin-bottom: 32px;
}

.slide-f1-photo-quote .pq-bubble p {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.4;
}

.slide-f1-photo-quote .pq-stat {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.3;
  padding-left: 32px;
}

/* Gold underline on stat number */
.slide-f1-photo-quote .pq-stat .text-gold {
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.25);
}

/* === F1-Dual: 雙圖並排 === */
.slide-f1-dual {
  background: linear-gradient(180deg, var(--color-bg-wangxing) 0%, var(--color-bg-dark) 100%) !important;
}

.slide-f1-dual h2 {
  font-size: 80px;
  font-weight: 900;
  margin-bottom: 40px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.slide-f1-dual .dual-container {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
}

.slide-f1-dual .dual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.slide-f1-dual .dual-item img {
  height: clamp(200px, 30vh, 360px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.15));
}

.slide-f1-dual .dual-label {
  font-size: 64px;
  font-weight: 900;
  color: var(--color-white);
}

/* === F1-Grid: 多欄數字 === */
.slide-f1-grid {
  background: var(--color-bg-dark) !important;
}

.slide-f1-grid h2 {
  font-size: 80px;
  font-weight: 900;
  margin-bottom: 48px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.slide-f1-grid .grid-columns {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.slide-f1-grid .grid-col {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
}

.slide-f1-grid .grid-number {
  font-size: 96px;
  font-weight: 900;
  color: var(--color-text-dim);
  line-height: 1;
  margin-bottom: 12px;
}

.slide-f1-grid .grid-text {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

/* === F13: Iframe Embed — Redesigned with window chrome + glow === */
.slide-f1-iframe {
  background: var(--color-bg-dark) !important;
  padding: 24px 32px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.slide-f1-iframe .iframe-chrome {
  width: 100%;
  max-width: 1760px;
  height: 48px;
  background: linear-gradient(180deg, #1E2638 0%, #171D2E 100%);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  flex-shrink: 0;
}

.slide-f1-iframe .iframe-chrome .chrome-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.slide-f1-iframe .iframe-chrome .chrome-dot:nth-child(1) { background: #FF5F57; }
.slide-f1-iframe .iframe-chrome .chrome-dot:nth-child(2) { background: #FEBC2E; }
.slide-f1-iframe .iframe-chrome .chrome-dot:nth-child(3) { background: #28C840; }

.slide-f1-iframe .iframe-chrome .chrome-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

.slide-f1-iframe .iframe-wrapper {
  width: 100%;
  max-width: 1760px;
  flex: 1;
  position: relative;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(0, 212, 255, 0.04);
}

.slide-f1-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Fallback: no chrome wrapper — direct iframe */
.slide-f1-iframe > iframe {
  border-radius: 12px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* === F14: Video Landscape 16:9 — Redesigned with frame + glow === */
.slide-video-landscape {
  background: var(--color-bg-dark) !important;
  padding: 32px 48px !important;
}

.slide-video-landscape h2 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.slide-video-landscape .video-container {
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(0, 212, 255, 0.05);
  transition: box-shadow 0.3s ease;
}

/* Gradient border frame via padding trick */
.slide-video-landscape .video-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 215, 0, 0.1), rgba(255, 0, 110, 0.08));
  z-index: -1;
}

.slide-video-landscape .video-container video,
.slide-video-landscape .video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Play button overlay (when video is paused) */
.slide-video-landscape .video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.slide-video-landscape .video-play-overlay::after {
  content: '';
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
}

/* === F15: Video Portrait 9:16 + Text — v3.3 全面重構 === */
.slide-video-portrait {
  background: var(--color-bg-dark) !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 32px 64px !important;
  gap: 64px;
  overflow: hidden;
}

/* 手機框：放大到 480px，佔 slide 25% */
.slide-video-portrait .video-container {
  flex: 0 0 auto;
  width: 480px;
  aspect-ratio: 9 / 16;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 0 0 6px rgba(11, 17, 32, 0.8),
    0 0 0 8px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(0, 212, 255, 0.06);
}

/* Dynamic Island 風格瀏海 */
.slide-video-portrait .video-container::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 32px;
  background: #000;
  border-radius: 16px;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.slide-video-portrait .video-container video,
.slide-video-portrait .video-container iframe {
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
}

/* 文字側：對齊手機中心 */
.slide-video-portrait .video-text {
  flex: 0 1 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  position: relative;
}

.slide-video-portrait .video-text h2 {
  font-size: 96px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.10);
}

.slide-video-portrait .video-text .video-desc {
  font-size: 44px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.slide-video-portrait .video-text .video-desc strong {
  color: var(--color-white);
}

/* 文字底部裝飾線 */
.slide-video-portrait .video-text::after {
  content: '';
  display: block;
  width: 64px; height: 3px;
  margin-top: 32px;
  background: linear-gradient(90deg, var(--color-neon-blue), var(--color-gold));
  border-radius: 2px;
  opacity: 0.5;
}

/* === F16: Countdown / Counter Effects === */
.slide-countdown {
  background: var(--color-bg-dark) !important;
}

.slide-countdown h2 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 32px;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.slide-countdown .counter-row {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.slide-countdown .counter-item {
  text-align: center;
}

.slide-countdown .counter-value {
  font-size: 200px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  font-family: var(--font-mono);
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.slide-countdown .counter-label {
  font-size: 36px;
  color: var(--color-text-dim);
  margin-top: 12px;
}

.slide-countdown .countdown-value {
  font-size: 200px;
}

/* Fragment animations */
.reveal .fragment.fade-up {
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.5s ease;
}

.reveal .fragment.fade-up.visible {
  transform: translateY(0);
  opacity: 1;
}

/* === Responsive for 1440x900 sharing === */
@media (max-width: 1440px) {
  /* F1 Icon+Title (2x base) */
  .slide-f1-white h2 { font-size: 128px; }
  .slide-f1-white .subtitle { font-size: 64px; }
  .slide-f1-white .wangxing-icon .material-icons-outlined { font-size: 140px; }
  .slide-f1-white .wangxing-icon img { height: clamp(220px, 32vh, 380px); }
  /* F2 Quote (2x base) */
  .wangxing-quote .quote-top,
  .wangxing-quote .quote-bottom { font-size: 112px; }
  /* F3 Structure */
  .slide-f2 h2 { font-size: 54px; }
  .structure-item .item-text { font-size: 34px; }
  .structure-item .item-number { font-size: 40px; }
  /* F4 ChatGPT (2x base) */
  .model-name { font-size: 36px; }
  .message-content { font-size: 44px; }
  /* F5 Chart (1.5x base) */
  .slide-f4 h2 { font-size: 44px; }
  .chart-container { max-width: 1100px; height: 500px; }
  /* Shared components */
  .big-number, .callout-number, .slide-price .price-final { font-size: 120px; }
  .keyword-overlay { font-size: 136px; }
  .compare-title { font-size: 44px; }
  .panel-content { font-size: 28px; }
  .panel-label { font-size: 22px; }
  .countdown-value { font-size: 160px; }
  .countdown-label { font-size: 26px; }
  .testimonial-name { font-size: 26px; }
  .testimonial-quote { font-size: 22px; }
  .guarantee-card .guarantee-title { font-size: 28px; }
  .guarantee-card .guarantee-desc { font-size: 20px; }
  .value-item .value-name,
  .value-item .value-price { font-size: 28px; }
  .value-total { font-size: 34px; }
  .slide-price .price-original { font-size: 34px; }
  .slide-price .price-note { font-size: 28px; }
  .qr-label { font-size: 28px; }
  /* F7 Hero */
  .slide-f1-hero h2 { font-size: 96px; }
  .slide-f1-hero .hero-icon img { height: clamp(220px, 35vh, 400px); }
  /* F8 Split */
  .slide-f1-split .split-text h2 { font-size: 76px; }
  .slide-f1-split .split-text .subtitle { font-size: 34px; }
  .slide-f1-split .split-image img { max-height: 60vh; }
  .slide-f1-split .split-image .wangxing-icon .material-icons-outlined { font-size: 200px; }
  /* F10 Photo-Quote */
  .slide-f1-photo-quote .pq-bubble p { font-size: 44px; }
  .slide-f1-photo-quote .pq-stat { font-size: 40px; }
  .slide-f1-photo-quote .pq-bubble::before { font-size: 80px; }
  /* F11 Dual */
  .slide-f1-dual h2 { font-size: 64px; }
  .slide-f1-dual .dual-label { font-size: 52px; }
  /* F12 Grid */
  .slide-f1-grid h2 { font-size: 64px; }
  .slide-f1-grid .grid-number { font-size: 80px; }
  .slide-f1-grid .grid-text { font-size: 56px; }
  /* F14 Video Landscape */
  .slide-video-landscape .video-container { max-width: 1100px; border-radius: 12px; }
  /* F15 Video Portrait */
  .slide-video-portrait .video-container { width: 380px; border-radius: 32px; }
  .slide-video-portrait .video-container::before { width: 96px; height: 26px; }
  .slide-video-portrait .video-text { flex: 0 1 480px; }
  .slide-video-portrait .video-text h2 { font-size: 76px; }
  .slide-video-portrait .video-text .video-desc { font-size: 36px; }
  /* F16 Counter */
  .slide-countdown .counter-value { font-size: 160px; }
  .slide-countdown .countdown-value { font-size: 160px; }
  /* Brand */
  .reveal .slides::before { top: 32px; left: 32px; width: 40px; height: 40px; }
  .reveal .slides::after { bottom: 32px; right: 40px; width: 48px; }
}

/* === F4-2: Animated ChatGPT Mock (data-typing="auto") === */
[data-typing="auto"] .chat-message.chat-user {
  display: none;
  background: rgba(255, 255, 255, 0.03);
}

[data-typing="auto"] .chat-message.chat-ai {
  display: none;
}

[data-typing="auto"] .ai-content {
  display: none;
}

[data-typing="auto"] .ai-thinking {
  display: block;
}

[data-typing="auto"] .chat-user .message-content {
  white-space: nowrap;
  font-size: 44px;
}

/* F4-2 typing cursor */
.f4v2-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--color-white);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: f4v2-blink 0.6s step-end infinite;
}

@keyframes f4v2-blink {
  50% { opacity: 0; }
}

/* F4-2 thinking dots */
[data-typing="auto"] .thinking-dots {
  display: inline-flex;
  gap: 8px;
  padding: 16px 0;
}

[data-typing="auto"] .thinking-dots span {
  width: 12px;
  height: 12px;
  background: var(--color-text-dim);
  border-radius: 50%;
  animation: f4v2-dot-pulse 1.4s ease-in-out infinite;
}

[data-typing="auto"] .thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

[data-typing="auto"] .thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes f4v2-dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* === F13-Full: 滿版 iframe（無 chrome 裝飾、無 padding） === */
.slide-f1-iframe-full {
  background: var(--color-bg-dark) !important;
  padding: 0 !important;
  overflow: hidden;
}

.slide-f1-iframe-full > iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* F13-Full: 隱藏底部漸層邊框 + 品牌標記 */
.slide-f1-iframe-full::after {
  display: none !important;
}

/* === F13-Live: Fallback UI（iframe 被擋時顯示） === */
.slide-f1-iframe-full .iframe-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  z-index: 10;
}

.slide-f1-iframe-full .iframe-fallback p {
  font-size: 32px;
  color: var(--color-text-dim);
  margin-top: 16px;
}

.open-external-btn {
  margin-top: 24px;
  padding: 16px 48px;
  font-size: 28px;
  font-family: var(--font-main);
  background: linear-gradient(135deg, #00D4FF, #AB68FF);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.open-external-btn:hover {
  transform: scale(1.05);
}

/* Print / PDF export */
@media print {
  .keyword-overlay, .fireworks-canvas { display: none; }
  .reveal section::after { display: none; }
}
