/* ==========================================================================
   社区现场课：PPT 交互沉浸版 (v6) - 现代幻灯片设计系统
   设计美学：高阶大屏演示 · 3D 翻牌 RPG · 激光沙盘推演 · 原生声效反馈
   ========================================================================== */

:root {
  /* 基础主色彩体系 */
  --color-primary: #1e3a8a;
  --color-primary-dark: #0f172a;
  --color-primary-light: #eff6ff;
  --color-accent: #047857;
  --color-accent-light: #ecfdf5;
  --color-amber: #92400e;
  --color-amber-light: #fffbeb;
  --color-rose: #e11d48;
  --color-rose-light: #fff1f2;

  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

button, input, select, textarea {
  font: inherit;
}

button:focus-visible,
[href]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b1120;
  color: var(--color-slate-800);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   主应用容器
   ========================================================================== */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0b1120 100%);
  color: #fff;
  position: relative;
}

/* 顶部自动隐藏悬浮控制栏 */
.top-bar-hover-zone {
  display: none;
}

.top-menu-hint-pill {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-slate-200);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 151;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.top-menu-hint-pill:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateX(-50%) translateY(2px);
}

.slide-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 2rem;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 160;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
  box-shadow: var(--shadow-xl);
}

.slide-top-bar.revealed {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.brand-badge-icon {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.scenario-pill-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.scenario-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.scenario-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.scenario-btn.active {
  background: #fff;
  color: var(--color-slate-900);
  box-shadow: var(--shadow-sm);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-btn-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}

.action-btn-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.action-btn-pill.primary {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  border-color: transparent;
}

/* ==========================================================================
   幻灯片主视口
   ========================================================================== */
.slide-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  overflow: hidden;
  position: relative;
}

.slide-card {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  max-height: 740px;
  background: #ffffff;
  color: var(--color-slate-900);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide-header {
  padding: 1.15rem 2rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-slate-100);
}

.slide-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-slate-900);
  line-height: 1.2;
}

.slide-body {
  flex: 1;
  padding: 1.25rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   幻灯片 1：案例速览卡 (Briefing Slide)
   ========================================================================== */
.briefing-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.briefing-headline {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.briefing-headline h2 {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--color-slate-900);
  margin-bottom: 0.5rem;
}

.briefing-headline p {
  font-size: 1.05rem;
  color: var(--color-slate-600);
  line-height: 1.5;
}

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

.stat-card {
  background: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-slate-800);
  margin-bottom: 0.25rem;
}

.stat-tip {
  font-size: 0.8rem;
  color: var(--color-slate-500);
}

.constraints-pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.constraint-pill-item {
  background: var(--color-amber-light);
  border: 1px solid #fde68a;
  color: var(--color-amber);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
}

.btn-start-quest {
  margin: 0.5rem auto 0;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #fff;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
}

.btn-start-quest:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   幻灯片 2：游戏 1【现场找线索 · 时空侦探】
   ========================================================================== */
.detective-workbench {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  height: 100%;
}

.scene-canvas-box {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.scene-canvas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.05) 50%, rgba(15, 23, 42, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.timeline-tabs {
  display: flex;
  gap: 0.6rem;
  z-index: 10;
  position: relative;
}

.timeline-tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-slate-800);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.timeline-tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.interactive-hotspots-area {
  flex: 1;
  position: relative;
  margin: 1rem 0;
  min-height: 240px;
  z-index: 10;
}

.hotspot-pin {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2.5px solid var(--color-accent);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-slate-900);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all var(--transition);
  animation: pulsePin 2s infinite;
}

@keyframes pulsePin {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hotspot-pin.captured {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  animation: none;
}

.hotspot-pin:hover {
  transform: scale(1.12) translateY(-3px);
  z-index: 20;
}

.scene-footer-tip {
  position: relative;
  z-index: 10;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
  font-weight: 700;
}

.evidence-dossier-panel {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.evidence-items-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.evidence-card-item {
  background: #fff;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   幻灯片 3：游戏 2【角色心声探秘 · 访谈 RPG】
   ========================================================================== */
.rpg-interview-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  height: 100%;
}

.character-roster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.character-card {
  border: 2px solid var(--color-slate-200);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}

.character-card:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.character-card.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.char-avatar {
  font-size: 2.2rem;
}

.char-info h4 {
  font-size: 1rem;
  font-weight: 800;
}

.char-info p {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

.dialogue-workbench {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.speech-bubble {
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.speech-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-slate-900);
}

.secret-need-reveal {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-slate-200);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.5;
  animation: popIn 0.3s ease-out;
}

.probing-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.probing-card-btn {
  background: #fff;
  border: 1.5px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.probing-card-btn:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.probing-card-btn.used {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ==========================================================================
   幻灯片 4：真实游戏 3【关系连连看 · 交互匹配游戏】
   ========================================================================== */
.real-matching-game-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  height: 100%;
}

.match-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-column-header {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-slate-500);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.match-card {
  background: #fff;
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}

.match-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.match-card.selected-active {
  border-color: var(--color-amber);
  background: var(--color-amber-light);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
  transform: scale(1.02);
}

.match-card.matched-done {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  cursor: default;
}

.match-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.2rem;
}

.match-card-tag {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

.match-status-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-slate-100);
  color: var(--color-slate-600);
}

.match-card.matched-done .match-status-badge {
  background: var(--color-accent);
  color: #fff;
}

.matched-results-dock {
  margin-top: 1rem;
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.result-bond-pill {
  background: #fff;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  color: var(--color-slate-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: popIn 0.25s ease-out;
}

/* ==========================================================================
   幻灯片 5：游戏 4【方案积木沙盘 · 物理推演模拟器】
   ========================================================================== */
.block-simulator-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  height: 100%;
}

.blocks-selection-area {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.block-category-group h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-slate-500);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.blocks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.block-brick-btn {
  background: #fff;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 52px;
}

.block-brick-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-slate-50);
}

.block-brick-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.simulation-dock-panel {
  background: var(--color-slate-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* 激光扫描动态效果 */
.simulation-dock-panel.scanning::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #10b981, #3b82f6, transparent);
  box-shadow: 0 0 15px #10b981;
  animation: laserScan 1.2s infinite ease-in-out;
}

@keyframes laserScan {
  0% { top: 0%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.simulation-dock-panel h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.sim-checks-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.85rem 0;
}

.sim-constraint-note {
  color: var(--color-slate-200);
  font-size: 0.75rem;
  line-height: 1.45;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
}

.sim-check-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-run-sim {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-run-sim:disabled {
  background: var(--color-slate-600);
  cursor: not-allowed;
  opacity: 0.8;
}

.btn-run-sim:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   幻灯片 6：成果归档与学习证据规则诊断
   ========================================================================== */
.dossier-final-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  height: 100%;
}

.certificate-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-slate-50) 100%);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.cert-header {
  border-bottom: 2px solid var(--color-slate-100);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.cert-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-slate-900);
}

.cert-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cert-item-row strong {
  color: var(--color-accent);
}

.ai-spark-panel {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-spark-panel h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ai-inquiries-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--color-slate-800);
  line-height: 1.6;
}

/* ==========================================================================
   底部翻页与进度导航条
   ========================================================================== */
.slide-bottom-nav {
  padding: 0.85rem 2rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

.nav-arrow-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.nav-arrow-btn:hover:not(:disabled) {
  background: #fff;
  color: var(--color-slate-900);
  transform: translateY(-1px);
}

.nav-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stepper-dots-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-dot-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--transition);
  border: 0;
  background: transparent;
  color: inherit;
}

.step-dot-item.active {
  opacity: 1;
}

.dot-circle {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.step-dot-item.active .dot-circle {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.dot-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   全屏弹窗与 Toast
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  max-height: min(90dvh, 820px);
  color: var(--color-slate-900);
}

.quest-secondary {
  color: var(--color-slate-800);
  border-color: var(--color-slate-300);
  background: #fff;
}

.toast-container {
  position: fixed;
  top: 4.5rem;
  right: 2rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-item {
  background: var(--color-slate-900);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   窄屏与超星 iframe 自适应
   ========================================================================== */
@media (max-width: 1100px) {
  .slide-top-bar {
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
    max-height: 85dvh;
    overflow-y: auto;
  }

  .scenario-pill-selector {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .slide-viewport {
    padding-inline: 1.25rem;
  }

  .stepper-dots-row {
    gap: 0.45rem;
  }

  .dot-label {
    display: none;
  }
}

@media (max-width: 800px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-container {
    width: 100%;
    height: auto;
    min-height: 100dvh;
  }

  .top-bar-hover-zone {
    display: none;
  }

  .top-menu-hint-pill {
    top: 5px;
    max-width: calc(100vw - 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slide-top-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-pill,
  .top-bar-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .top-bar-actions .action-btn-pill {
    flex: 1 1 130px;
    justify-content: center;
  }

  .scenario-pill-selector {
    order: initial;
  }

  .scenario-btn {
    flex: 1 1 145px;
  }

  .slide-viewport {
    flex: 1 0 auto;
    align-items: flex-start;
    padding: 3rem 0.75rem 4.6rem;
    overflow: visible;
  }

  .slide-card {
    height: auto;
    min-height: calc(100dvh - 8.5rem);
    max-height: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .slide-header {
    padding: 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .slide-eyebrow {
    flex-wrap: wrap;
    font-size: 0.72rem;
  }

  .slide-title {
    font-size: 1.25rem;
  }

  .slide-body {
    padding: 1rem;
    overflow: visible;
    justify-content: flex-start;
  }

  .briefing-headline h2 {
    font-size: 1.65rem;
  }

  .briefing-headline p {
    font-size: 0.95rem;
  }

  .stats-grid,
  .detective-workbench,
  .rpg-interview-layout,
  .real-matching-game-layout,
  .block-simulator-layout,
  .dossier-final-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .stats-grid {
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.85rem 1rem;
  }

  .stat-number {
    font-size: 1.85rem;
  }

  .timeline-tabs {
    flex-wrap: wrap;
  }

  .scene-canvas-box {
    min-height: 500px;
    padding: 0.85rem;
  }

  .interactive-hotspots-area {
    min-height: 330px;
  }

  .hotspot-pin {
    max-width: 46%;
    padding: 0.45rem 0.65rem;
    white-space: normal;
    font-size: 0.76rem;
  }

  .dossier-header,
  .result-bond-pill,
  .sim-check-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .probing-deck,
  .blocks-row {
    grid-template-columns: 1fr;
  }

  .character-roster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .dialogue-workbench,
  .certificate-card,
  .ai-spark-panel {
    padding: 1rem;
  }

  .matched-results-dock {
    margin-bottom: 0.5rem;
  }

  .slide-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .nav-arrow-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
  }

  .nav-shortcut {
    display: none;
  }

  .stepper-dots-row {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
    padding: 0.25rem;
    scrollbar-width: none;
  }

  .stepper-dots-row::-webkit-scrollbar {
    display: none;
  }

  .step-dot-item {
    flex: 0 0 auto;
  }

  .modal-overlay {
    padding: 0.6rem;
  }

  .modal-window {
    padding: 1rem !important;
    max-height: 94dvh;
  }

  .toast-container {
    top: 3.25rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .toast-item {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .slide-viewport {
    padding-inline: 0.4rem;
  }

  .slide-card {
    border-radius: var(--radius-md);
  }

  .slide-header,
  .slide-body {
    padding-inline: 0.8rem;
  }

  .nav-label {
    font-size: 0.72rem;
  }

  .dot-circle {
    width: 22px;
    height: 22px;
  }

  .scene-canvas-box {
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }

  html, body,
  .app-container {
    width: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #fff !important;
  }

  .top-bar-hover-zone,
  .top-menu-hint-pill,
  .slide-top-bar,
  .slide-bottom-nav,
  .toast-container,
  .modal-overlay,
  .certificate-card .action-btn-pill {
    display: none !important;
  }

  .slide-viewport {
    display: block;
    padding: 0;
    overflow: visible;
  }

  .slide-card {
    max-width: none;
    max-height: none;
    min-height: 0;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .slide-header,
  .slide-body {
    padding-inline: 0;
  }

  .slide-body {
    overflow: visible;
  }

  .dossier-final-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .certificate-card,
  .ai-spark-panel {
    break-inside: avoid;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
