
/* 架构导览参数带 (替代松散胶囊标签) */
.architect-capsule-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 2px;
}

.arch-cap-item {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.arch-cap-item:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.25);
}

.arch-cap-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.3px;
}

.arch-cap-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
}

/* 核心结论轻量条 (仿真页专属高阶排版) */
.deck-insight-strip {
  padding: 9px 16px;
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.06);
  border-radius: 6px;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  border-right: 1px solid rgba(16, 185, 129, 0.15);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e2e8f0;
}

.deck-insight-strip .insight-label {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.deck-insight-strip .insight-text {
  font-weight: 600;
  color: #f1f5f9;
}

/* 常规结论卡片优化 */
.deck-conclusion-card {
  padding: 18px 24px !important;
  border-left: 4px solid #10b981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
  border-radius: 10px !important;
}

.deck-conclusion-card .conclusion-text {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.6;
}
/* 当真题全景实战舱开启时，完全隐藏底部 HUD 避免遮挡 */
body:has(.deck-zhenti-drawer.open) .deck-hud,
.deck-hud.hidden-by-modal {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* TechDeck - 顶级 PPT 交互授课引擎样式表 */

:root {
  --deck-scale: 1;
  --deck-bg-dark: #090d16;
  --deck-bg-gradient-dark: radial-gradient(circle at 50% 20%, #151d30 0%, #090d16 100%);
  --deck-card-dark: rgba(18, 26, 44, 0.85);
  --deck-border-dark: rgba(255, 255, 255, 0.12);
  --deck-text-dark: #f8fafc;
  --deck-sub-dark: #94a3b8;

  --deck-bg-light: #f1f5f9;
  --deck-bg-gradient-light: radial-gradient(circle at 50% 20%, #ffffff 0%, #e2e8f0 100%);
  --deck-card-light: rgba(255, 255, 255, 0.95);
  --deck-border-light: rgba(203, 213, 225, 0.9);
  --deck-text-light: #0f172a;
  --deck-sub-light: #64748b;

  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --indigo: #6366f1;
}

/* 全局与根容器 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--deck-bg-dark);
}

.deck-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deck-bg-gradient-dark);
  transition: background 0.4s ease;
  overflow: hidden;
  z-index: 100;
}

.deck-container.theme-light {
  background: var(--deck-bg-gradient-light);
}

/* 16:9 黄金比例舞台（固定基准分辨率 1600x900） */
.deck-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1600px;
  height: 900px;
  transform: translate(-50%, -50%) scale(var(--deck-scale, 1));
  transform-origin: center center;
  box-sizing: border-box;
  padding: 40px 60px 80px 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 顶部状态与导航条 */
.deck-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-light .deck-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.deck-timeline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
}

.deck-timeline-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #10b981, #06b6d4);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* 幕次快速切换药丸 */
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.stage-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.stage-pill.active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.theme-light .stage-pill {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.theme-light .stage-pill:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.theme-light .stage-pill.active {
  color: #fff;
  background: linear-gradient(135deg, #00b578, #009664);
  border-color: #00b578;
}

/* 幻灯片主体容器 */
.deck-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 24px;
}

.deck-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(40px, 0, 0) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-slide.active {
  opacity: 1;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 10;
}

.deck-slide.prev-slide {
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-40px, 0, 0) scale(0.98);
}

/* 严防非激活幻灯片的子元素穿透拦截鼠标触控事件 */
.deck-slide:not(.active) * {
  pointer-events: none !important;
}

/* 分步推进入场动效 (Step-by-step Reveal) */
.step-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.step-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

/* 顶级毛玻璃卡片 */
.glass-card {
  background: var(--deck-card-dark);
  border: 1px solid var(--deck-border-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.theme-light .glass-card {
  background: var(--deck-card-light);
  border: 1px solid var(--deck-border-light);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 20px rgba(99, 102, 241, 0.15);
}

/* 文字与标题排版（大屏防疲劳与视认性） */
.slide-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 12px;
}

.theme-light .slide-category {
  background: rgba(0, 181, 120, 0.12);
  color: #009664;
  border-color: rgba(0, 181, 120, 0.3);
}

.slide-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--deck-text-dark);
  margin: 0 0 6px 0;
}

.theme-light .slide-title {
  color: var(--deck-text-light);
}

.slide-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--deck-sub-dark);
  margin: 0;
  max-width: 1200px;
}

.theme-light .slide-subtitle {
  color: var(--deck-sub-light);
}

/* 互动按钮与选项 */
.opt-card {
  cursor: pointer;
  border-radius: 16px;
  padding: 18px 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-light .opt-card {
  border: 2px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

.opt-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.opt-card.correct {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
}

.opt-card.wrong {
  border-color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.15) !important;
}

/* 授课者底部悬浮控制舱 HUD (Apple 风格毛玻璃极简 Dock) */
.deck-hud {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 48px;
  padding: 0 10px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2000;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
}

.deck-hud:hover,
.deck-hud:focus-within {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.theme-light .deck-hud {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.theme-light .deck-hud:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* 基础通用 hud-btn (兼顾顶栏和模态框内的按钮) */
.hud-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hud-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.theme-light .hud-btn {
  color: #64748b;
}

.theme-light .hud-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.hud-btn.active {
  color: #fff;
  background: #2563eb;
}

.theme-light .hud-btn.active {
  background: #00b578;
}

/* 底部 Dock 专用的极简圆形图标按钮 */
.deck-hud .hud-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  gap: 0;
  line-height: 1;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.deck-hud .hud-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.18);
}

.deck-hud .hud-btn:active {
  transform: scale(0.92);
}

.deck-hud .hud-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.65);
  transform: scale(1.08);
}

.theme-light .deck-hud .hud-btn {
  color: #475569;
}

.theme-light .deck-hud .hud-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.08);
}

.theme-light .deck-hud .hud-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* 上一页 / 下一步快捷翻页按钮 */
.deck-hud .hud-nav-btn {
  font-size: 22px;
  font-weight: 800;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.deck-hud .hud-nav-btn:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.3);
}

.theme-light .deck-hud .hud-nav-btn {
  color: #2563eb;
}

.deck-hud .hud-counter {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  padding: 4px 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  white-space: nowrap;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
}

.theme-light .deck-hud .hud-counter {
  color: #1e293b;
}

.deck-hud .hud-divider {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.15);
}

.theme-light .deck-hud .hud-divider {
  background: rgba(0, 0, 0, 0.12);
}

/* 激光笔红点模式 */
#deck-laser {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 16px 6px rgba(255, 42, 42, 0.8), 0 0 35px rgba(255, 0, 0, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 99999;
  display: none;
}

/* 板书涂鸦画布 Canvas */
#deck-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1500;
  pointer-events: none;
  cursor: crosshair;
}

#deck-canvas.drawing {
  pointer-events: auto;
}

/* 讨论倒计时气泡 */
.deck-timer-card {
  position: fixed;
  top: 80px;
  right: 40px;
  padding: 14px 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2100;
  animation: slideInDown 0.3s ease;
}

.theme-light .deck-timer-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.timer-digits {
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #10b981;
}

/* 缩略图大纲抽屉 */
.deck-overview-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(24px);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  padding: 60px 80px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.deck-overview-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  overflow-y: auto;
  padding: 20px 0;
}

.thumb-card {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thumb-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.thumb-card.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* 聚光灯探照灯 */
#deck-spotlight {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle 180px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 1400;
  display: none;
}

/* 黑屏静音 */
#deck-blackout {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99990;
  display: none;
}

/* 动效关键帧 */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes confettiFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 99998;
  pointer-events: none;
  animation: confettiFall 3.5s linear forwards;
}


/* ---------- 交互微实验与模拟器专属样式 ---------- */

.sim-container {
  width: 100%;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  box-sizing: border-box;
  display: flex;
  gap: 24px;
}

.theme-light .sim-container {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.sim-canvas {
  border-radius: 14px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.theme-light .sim-canvas {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 现代科技感滑块 */
.tech-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.tech-slider-group label {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

.tech-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: background 0.2s;
}

.tech-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  transition: transform 0.1s;
}

.tech-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 虚拟装配零件气泡 */
.part-chip {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.part-chip:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
}

.part-chip.assembled {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  cursor: default;
}

.part-chip.error-flash {
  animation: shake 0.4s ease;
  border-color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.2) !important;
  color: #f43f5e !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 模拟器控制栏与实时遥测指标面板 */
.sim-telemetry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-light .sim-telemetry {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.sim-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-light .sim-metric {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.sim-metric-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

.theme-light .sim-metric-label {
  color: #64748b;
}

.sim-metric-val {
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sim-metric-val.green {
  color: #10b981;
}

.sim-metric-val.warn {
  color: #f59e0b;
}

.sim-metric-val.danger {
  color: #f43f5e;
}

.sim-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #fff;
}

.sim-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* 结项证书与雷达专属美化样式 */
.cert-card-wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 3px double #d97706;
  border-radius: 20px;
  padding: 32px 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(217, 119, 6, 0.1);
}

.theme-light .cert-card-wrapper {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 3px double #b45309;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.15);
}

.cert-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  color: #fbbf24;
  padding: 4px 12px;
  font-weight: 800;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.cert-input:focus {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

.theme-light .cert-input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed #b45309;
  color: #92400e;
}

.cert-seal {
  position: absolute;
  right: 48px;
  bottom: 36px;
  width: 110px;
  height: 110px;
  border: 3px dashed #ef4444;
  border-radius: 50%;
  color: #ef4444;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: rotate(-12deg);
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
}

/* 打印证书专属样式 */
@media print {
  body * {
    visibility: hidden;
  }
  .cert-printable-box, .cert-printable-box * {
    visibility: visible;
  }
  .cert-printable-box {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #fff !important;
    color: #000 !important;
    border: 8px double #b45309 !important;
    padding: 60px !important;
    box-sizing: border-box;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================
   工程视听档案放映舱 (Media Modal)
   ========================================== */
.deck-media-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(24px);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-media-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.deck-media-box {
  width: 960px;
  max-width: 94vw;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-media-modal.open .deck-media-box {
  transform: scale(1);
}

/* ==========================================
   教学核心板书导图抽屉 (Notes Drawer)
   ========================================== */
.deck-notes-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  z-index: 9200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.deck-notes-drawer.open {
  transform: translateX(0);
}



/* ==========================================

   学业水平考试真题实战舱 · 居中全景单题推进实战舱 (Central Arena Modal)

   ========================================== */

.deck-zhenti-drawer {

  position: fixed;

  inset: 0;

  background: rgba(7, 11, 20, 0.88);

  backdrop-filter: blur(20px);

  z-index: 9250;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 24px;

  opacity: 0;

  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}



.deck-zhenti-drawer.open {

  display: flex;

  opacity: 1;

}



/* 居中剧场视窗容器 (16:9 黄金适配，最大 1220px) */

.zhenti-arena-container {
  width: 100%;
  max-width: 1220px;
  max-height: 94vh;
  background: #0d1322;
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zhentiModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}



@keyframes zhentiModalPop {

  0% { transform: scale(0.96) translateY(10px); opacity: 0; }

  100% { transform: scale(1) translateY(0); opacity: 1; }

}



/* 顶部全景控制栏 */

.zhenti-arena-header {

  padding: 16px 28px;

  background: rgba(15, 23, 42, 0.95);

  border-bottom: 1px solid rgba(245, 158, 11, 0.25);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  flex-shrink: 0;

}



.zhenti-arena-title-box {

  display: flex;

  align-items: center;

  gap: 12px;

}



.zhenti-arena-icon {

  font-size: 24px;

  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));

}



.zhenti-arena-title {

  font-size: 17px;

  font-weight: 800;

  color: #fbbf24;

  letter-spacing: 0.5px;

}



.zhenti-arena-module {

  font-size: 12px;

  color: #94a3b8;

  background: rgba(255, 255, 255, 0.05);

  padding: 2px 10px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  display: inline-block;

  margin-top: 2px;

}



/* 顶部题号切换 Pills */

.zhenti-arena-nav-pills {

  display: flex;

  align-items: center;

  gap: 8px;

  background: rgba(0, 0, 0, 0.35);

  padding: 4px 8px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);

}



.zhenti-nav-pill {

  min-width: 44px;

  height: 32px;

  padding: 0 10px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #94a3b8;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 4px;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}



.zhenti-nav-pill:hover {

  background: rgba(245, 158, 11, 0.15);

  color: #fde68a;

  border-color: rgba(245, 158, 11, 0.4);

}



.zhenti-nav-pill.active {

  background: #f59e0b;

  color: #0f172a;

  font-weight: 900;

  border-color: #f59e0b;

  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);

}



.zhenti-nav-pill.correct-ans {

  border-color: rgba(16, 185, 129, 0.6);

  color: #34d399;

}



.zhenti-nav-pill.correct-ans.active {

  background: #10b981;

  color: #0f172a;

  border-color: #10b981;

}



.zhenti-nav-pill.wrong-ans {

  border-color: rgba(239, 68, 68, 0.6);

  color: #f87171;

}



.zhenti-nav-pill.wrong-ans.active {

  background: #ef4444;

  color: #fff;

  border-color: #ef4444;

}



.zhenti-arena-close-btn {

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.2);

  color: #e2e8f0;

  border-radius: 8px;

  padding: 6px 14px;

  font-size: 13px;

  font-weight: 600;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 6px;

  transition: all 0.2s;

}



.zhenti-arena-close-btn:hover {

  background: rgba(239, 68, 68, 0.25);

  border-color: #ef4444;

  color: #fca5a5;

}



/* 核心作答视区 */

.zhenti-arena-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 26px;
  display: flex;
  flex-direction: column;
}



.zhenti-arena-body::-webkit-scrollbar {

  width: 6px;

}

.zhenti-arena-body::-webkit-scrollbar-thumb {

  background: rgba(245, 158, 11, 0.3);

  border-radius: 3px;

}



/* 题目元信息标头 */

.zhenti-meta-bar {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 16px;

  flex-wrap: wrap;

  gap: 10px;

}



.zhenti-meta-tags {

  display: flex;

  align-items: center;

  gap: 10px;

}



.zhenti-badge-origin {

  font-size: 12px;

  font-weight: 800;

  padding: 3px 10px;

  border-radius: 12px;

  background: rgba(245, 158, 11, 0.18);

  color: #fbbf24;

  border: 1px solid rgba(245, 158, 11, 0.4);

}



.zhenti-badge-stars {

  font-size: 12px;

  color: #f59e0b;

}



.zhenti-badge-score {

  font-size: 12px;

  color: #34d399;

  font-weight: 800;

  background: rgba(16, 185, 129, 0.15);

  border: 1px solid rgba(16, 185, 129, 0.3);

  padding: 2px 8px;

  border-radius: 8px;

}



.zhenti-progress-tag {

  font-size: 13px;

  color: #94a3b8;

  font-weight: 600;

}



/* 题干排版（剧场级大字号） */

.zhenti-stem-text {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  white-space: pre-line;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}



/* 选项网格（双列大胶囊） */

.zhenti-options-arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}



@media (max-width: 860px) {

  .zhenti-options-arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

}



.zhenti-arena-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



.zhenti-arena-opt-btn:hover:not(:disabled) {

  background: rgba(245, 158, 11, 0.12);

  border-color: rgba(245, 158, 11, 0.5);

  transform: translateY(-2px);

  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);

}



.zhenti-arena-opt-btn:disabled {

  cursor: default;

}



.zhenti-opt-circle {

  width: 28px;

  height: 28px;

  border-radius: 50%;

  border: 1.5px solid rgba(255, 255, 255, 0.25);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 13px;

  font-weight: 800;

  flex-shrink: 0;

  transition: all 0.2s;

}



.zhenti-arena-opt-btn.correct {

  background: rgba(16, 185, 129, 0.18) !important;

  border-color: #10b981 !important;

  color: #34d399 !important;

  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;

}



.zhenti-arena-opt-btn.correct .zhenti-opt-circle {

  background: #10b981;

  border-color: #10b981;

  color: #0f172a;

}



.zhenti-arena-opt-btn.wrong {

  background: rgba(239, 68, 68, 0.18) !important;

  border-color: #ef4444 !important;

  color: #f87171 !important;

  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35) !important;

}



.zhenti-arena-opt-btn.wrong .zhenti-opt-circle {

  background: #ef4444;

  border-color: #ef4444;

  color: #fff;

}



/* 作答后展开的【双翼展台】：左翼深度解构，右翼学情大数据 */

.zhenti-dual-wings {

  display: flex;

  gap: 20px;

  margin-top: 10px;

  animation: zhentiWingsSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);

}



@keyframes zhentiWingsSlideUp {

  0% { transform: translateY(16px); opacity: 0; }

  100% { transform: translateY(0); opacity: 1; }

}



@media (max-width: 960px) {

  .zhenti-dual-wings {

    flex-direction: column;

  }

}



.zhenti-analysis-wing {
  flex: 1.25;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}



.zhenti-stats-wing {

  flex: 1;

  display: flex;

  flex-direction: column;

}



.zhenti-verdict-banner {

  font-size: 15px;

  font-weight: 800;

  padding: 8px 14px;

  border-radius: 8px;

  margin-bottom: 4px;

  display: flex;

  align-items: center;

  gap: 8px;

}



.zhenti-verdict-banner.correct {

  background: rgba(16, 185, 129, 0.15);

  border: 1px solid rgba(16, 185, 129, 0.4);

  color: #34d399;

}



.zhenti-verdict-banner.wrong {

  background: rgba(239, 68, 68, 0.15);

  border: 1px solid rgba(239, 68, 68, 0.4);

  color: #f87171;

}



.zhenti-layer-card {
  font-size: 12px;
  line-height: 1.5;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}



.zhenti-layer-point {

  color: #38bdf8;

}



.zhenti-layer-analysis {

  color: #cbd5e1;

}



.zhenti-layer-trap {

  color: #fca5a5;

  background: rgba(239, 68, 68, 0.06);

  border-color: rgba(239, 68, 68, 0.25);

}



.zhenti-layer-mnemonic {

  color: #34d399;

  background: rgba(16, 185, 129, 0.1);

  border-color: rgba(16, 185, 129, 0.3);

  font-weight: 700;

}



/* 全景底部导航工具条 */

.zhenti-arena-footer {

  padding: 14px 28px;

  background: rgba(11, 16, 28, 0.98);

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  flex-shrink: 0;

}



.zhenti-footer-left {

  display: flex;

  align-items: center;

  gap: 12px;

}



.zhenti-nav-btn {

  padding: 8px 18px;

  border-radius: 8px;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 6px;

  transition: all 0.2s;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #e2e8f0;

}



.zhenti-nav-btn:hover:not(:disabled) {

  background: rgba(245, 158, 11, 0.2);

  border-color: #f59e0b;

  color: #fbbf24;

}



.zhenti-nav-btn:disabled {

  opacity: 0.35;

  cursor: not-allowed;

}



.zhenti-nav-btn.primary {

  background: #f59e0b;

  border-color: #f59e0b;

  color: #0f172a;

  font-weight: 800;

  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);

}



.zhenti-nav-btn.primary:hover:not(:disabled) {

  background: #fbbf24;

  border-color: #fbbf24;

  color: #090d16;

}



.zhenti-reset-btn {

  background: none;

  border: 1px dashed rgba(255, 255, 255, 0.25);

  color: #94a3b8;

  border-radius: 6px;

  padding: 6px 12px;

  font-size: 12px;

  cursor: pointer;

  transition: all 0.2s;

}



.zhenti-reset-btn:hover {

  border-color: #fbbf24;

  color: #fbbf24;

  background: rgba(245, 158, 11, 0.1);

}



.zhenti-footer-right {

  display: flex;

  align-items: center;

  gap: 16px;

}



.zhenti-keyboard-hints {

  font-size: 12px;

  color: #64748b;

  display: flex;

  align-items: center;

  gap: 8px;

}



.zhenti-keyboard-hints kbd {

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 4px;

  padding: 2px 6px;

  font-size: 11px;

  color: #cbd5e1;

}



/* 兼容旧样式别名 */

.zhenti-card {

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  padding: 18px;

  margin-bottom: 16px;

}



.zhenti-opt-btn {

  display: flex;

  align-items: center;

  gap: 12px;

  width: 100%;

  padding: 10px 14px;

  margin-bottom: 8px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: #e2e8f0;

  font-size: 13px;

  text-align: left;

  cursor: pointer;

  transition: all 0.2s;

}



.zhenti-opt-btn.correct {

  background: rgba(16, 185, 129, 0.15) !important;

  border-color: #10b981 !important;

  color: #34d399 !important;

  font-weight: 700;

}



.zhenti-opt-btn.wrong {

  background: rgba(239, 68, 68, 0.15) !important;

  border-color: #ef4444 !important;

  color: #f87171 !important;

}



@keyframes zhentiPulse {

  0%, 100% {

    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);

    border-color: rgba(245, 158, 11, 0.4);

  }

  50% {

    box-shadow: 0 0 14px 2px rgba(245, 158, 11, 0.3);

    border-color: rgba(245, 158, 11, 0.85);

  }

}



.zhenti-badge-callout {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 5px 12px;

  border-radius: 20px;

  background: rgba(245, 158, 11, 0.14);

  border: 1px solid rgba(245, 158, 11, 0.4);

  color: #fbbf24;

  font-size: 12px;

  font-weight: 800;

  cursor: pointer;

  animation: zhentiPulse 3s infinite ease-in-out;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}



.zhenti-badge-callout:hover {

  background: rgba(245, 158, 11, 0.3);

  border-color: #f59e0b;

  transform: translateY(-2px) scale(1.03);

}

/* 沙盘全屏弹出模式 */
.sim-container.sim-modal-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(24px);
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  overflow: auto;
  animation: simFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 沙盘弹窗里的内容容器限制最大宽度 */
.sim-container.sim-modal-open > * {
  max-width: 1200px;
  width: 100%;
}

@keyframes simFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);

}


/* ==========================================================================
   Apple Keynote 中央引力场架构 · 灵动胶囊 + 景深模态弹窗系统 (V2026.04)
   ========================================================================== */
.deck-topbar {
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.topbar-back {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s;
}
.topbar-back:hover { background: rgba(51, 65, 85, 0.9); color: #fff; }

.part-tab {
  padding: 4px 12px;
  border-radius: 999px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}
.part-tab.active { background: #38bdf8; color: #fff; font-weight: 700; }

.vote-clash-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.4);
  transition: transform 0.15s;
}
.vote-clash-btn:hover { transform: scale(1.04); }

.deck-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 54px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keynote-gravity-stage {
  position: relative;
  width: min(92%, 1240px); /* 居中定宽黄金视觉舱，左右留白通透，大屏极稳 */
  margin: 0 auto;
  height: 100%;
  padding: 24px 20px 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 舱内严格沿着左侧垂直基准线对齐 */
  justify-content: center;
  text-align: left; /* 杂志风左对齐，彻底消除眼球左右跳跃寻找起点的疲劳 */
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

/* 弹窗激活时，中央主标题景深虚化后退 */
.keynote-gravity-stage.is-recessed {
  transform: scale(0.92) translateY(-16px);
  filter: blur(22px) brightness(0.38);
  pointer-events: none;
}

/* 顶部微标 (Category Breadcrumb Tag) */
.keynote-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.8);
  color: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 1.25rem;
  animation: floatIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* 主标题：紧凑字间距，强视觉锚定，text-wrap balance 语义智能平衡断行 */
.keynote-hero-title {
  font-size: clamp(2.3rem, 3.8vw, 4.0rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 960px;
  text-wrap: balance; /* 智能语意均衡换行，绝不单字掉行 */
  margin: 0 0 0.95rem 0; /* 主副标题垂直间距收紧至 15px，形成紧密认知单元 */
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65));
  animation: floatIn 0.55s 0.05s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* 副标题：行高宽阔舒适(1.75)，浅青银灰通透质感，与下方胶囊拉开 36px 呼吸空间 */
.keynote-hero-subtitle {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  color: #94a3b8;
  max-width: 820px; /* 限制最大阅读宽度，保证长句自然折行并易于扫描 */
  line-height: 1.75;
  margin: 0 0 2.25rem 0; /* 副标题到底部交互区留白充足 (36px)，区域划分明晰 */
  font-weight: 400;
  text-align: left;
  animation: floatIn 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* 交互胶囊群：齐左侧基准线延展 */
.keynote-trigger-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start; /* 严格对齐左基准线 */
  gap: 12px;
  width: 100%;
  max-width: 100%;
  animation: floatIn 0.65s 0.15s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.pill-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background:
    radial-gradient(120px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14), transparent 100%),
    rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
  font-size: 0.96rem;
  font-weight: 600;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill-trigger:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: #38bdf8;
  box-shadow: 0 14px 34px -6px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.pill-trigger.pill-primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(15, 23, 42, 0.85));
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}
.pill-trigger.pill-media {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(15, 23, 42, 0.85));
  border-color: rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
}
.pill-trigger.pill-insight {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.85));
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

/* 已读状态绿点指示灯 */
.pill-trigger.is-visited::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  margin-left: 2px;
}

.pill-shortcut {
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   声画同步跟随导览引擎 (Follow-along Highlighting Engine)
   ========================================================================== */
.keynote-hero-title {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.keynote-hero-title.is-narrating-highlight {
  color: #ffffff !important;
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.75), 0 0 60px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-2px);
}

.keynote-hero-subtitle {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.keynote-hero-subtitle.is-narrating-highlight {
  color: #f1f5f9 !important;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.6) !important;
}

/* 被导读节点靶向聚光高亮 (Follow-along Pill Pulse) */
.pill-trigger.is-narrating-highlight {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.24) !important;
  box-shadow: 0 0 0 1px #38bdf8, 0 0 32px rgba(56, 189, 248, 0.55), inset 0 0 16px rgba(56, 189, 248, 0.25) !important;
  transform: translateY(-3px) scale(1.04) !important;
  color: #ffffff !important;
  animation: narratePulse 2s ease-in-out infinite alternate !important;
  z-index: 5;
}

@keyframes narratePulse {
  0% {
    box-shadow: 0 0 0 1px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.35);
  }
  100% {
    box-shadow: 0 0 0 1.5px #7dd3fc, 0 0 36px rgba(56, 189, 248, 0.7), inset 0 0 20px rgba(56, 189, 248, 0.3);
  }
}

/* 正在播报态的语音导读灵动胶囊 */
.pill-trigger.is-playing-audio {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(99, 102, 241, 0.25)) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
  cursor: pointer;
}

.pill-narrate-status {
  font-size: 11px;
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  animation: narrateFadeIn 0.3s ease;
}

@keyframes narrateFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 动态声波等化器动画 */
.audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-right: 4px;
}
.audio-wave span {
  width: 3px;
  background: #38bdf8;
  border-radius: 2px;
  animation: soundBounce 0.8s ease-in-out infinite alternate;
}
.audio-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.audio-wave span:nth-child(3) { height: 65%; animation-delay: 0.4s; }
.audio-wave span:nth-child(4) { height: 85%; animation-delay: 0.15s; }

/* Apple Popover 模态卡片 */
.apple-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-popover-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.apple-popover-card {
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.15), transparent 55%),
    rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(32px) saturate(190%);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.apple-popover-backdrop.is-open .apple-popover-card {
  transform: scale(1) translateY(0);
}

.popover-size-sm { width: min(680px, 92vw); }
.popover-size-md { width: min(940px, 92vw); }
.popover-size-lg { width: min(1200px, 94vw); }

.apple-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.35);
}

.popover-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.popover-close-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fda4af;
  transform: rotate(90deg);
}

.apple-popover-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

/* ==========================================================================
   交互工程仿真实验舱模态弹窗 (对齐视听放映舱的高端 Bento 质感)
   ========================================================================== */
.deck-sim-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(24px);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-sim-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.deck-sim-box {
  width: min(1420px, 96vw);
  max-height: 88vh;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.32s ease;
}

.deck-sim-box.is-maximized {
  width: calc(100vw - 32px) !important;
  max-width: none !important;
  height: calc(100vh - 32px) !important;
  max-height: none !important;
  border-radius: 16px !important;
}

.deck-sim-modal.open .deck-sim-box {
  transform: scale(1);
}

.deck-sim-max-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-sim-max-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.deck-sim-header {
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.deck-sim-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-sim-icon-badge {
  font-size: 24px;
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-sim-title-row {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-sim-tag-badge {
  font-size: 11px;
  background: #0284c7;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: normal;
}

.deck-sim-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.deck-sim-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-sim-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.deck-sim-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

/* 弹窗内的 sim-container 消除冗余边框与内边距，完全融入弹窗 */
.deck-sim-modal .sim-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  height: auto !important;
  position: static !important;
  display: flex !important;
  gap: 20px !important;
}

/* 画布原生沉浸视口 + 浮动字幕气泡 HUD */
.sim-canvas-viewport {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.sim-canvas-viewport .sim-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 820 / 300;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.sim-caption-hud {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-caption-hud.is-faded {
  opacity: 0.18;
  transform: translateY(3px);
}

.sim-caption-hud:hover,
.sim-canvas-viewport:hover .sim-caption-hud {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.sim-caption-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  max-width: 100%;
}

.sim-caption-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  white-space: nowrap;
}

.sim-caption-text {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-canvas-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  z-index: 11;
}

/* 遥测面板折叠交互 */
.sim-telemetry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sim-telemetry.is-collapsed {
  min-width: 44px !important;
  max-width: 44px !important;
  width: 44px !important;
  padding: 14px 4px !important;
  align-items: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.25);
}

.sim-telemetry.is-collapsed:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
}

.sim-telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.sim-telemetry.is-collapsed .sim-telemetry-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  flex-direction: column;
  gap: 12px;
}

.sim-telemetry-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.sim-telemetry.is-collapsed .sim-telemetry-title {
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

.sim-telemetry-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s;
}

.sim-telemetry-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}

.sim-telemetry-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.2s ease;
}

.sim-telemetry.is-collapsed .sim-telemetry-content {
  display: none !important;
}
