/* === accessibility.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.2.0 — 无障碍样式
 * ===========================================================================
 * 
 * 1. 高对比度模式
 * 2. 减少动画模式
 * 3. 键盘焦点样式
 * 4. 触摸设备优化
 * 5. 低性能模式
 * 
 * @version 1.2.0
 * ===========================================================================
 */

/* ===== 1. 键盘焦点样式 ===== */
*:focus-visible {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

button:focus-visible,
.mode-btn:focus-visible,
.menu-cat-btn:focus-visible,
.tool-btn:focus-visible,
.quiz-opt:focus-visible,
.choice-btn:focus-visible {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3) !important;
}

/* ===== 2. 高对比度模式 ===== */
.high-contrast {
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --border-color: #ffffff;
  --accent-color: #ffff00;
}

.high-contrast body {
  background: #000000 !important;
  color: #ffffff !important;
}

.high-contrast .page {
  background: #000000 !important;
}

.high-contrast .mode-btn,
.high-contrast .menu-cat-btn,
.high-contrast .tool-btn {
  border: 2px solid #ffffff !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.high-contrast .mode-btn:hover,
.high-contrast .menu-cat-btn:hover,
.high-contrast .tool-btn:hover {
  background: #333333 !important;
  border-color: #ffff00 !important;
}

.high-contrast .quiz-opt,
.high-contrast .choice-btn {
  border: 2px solid #ffffff !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.high-contrast .quiz-opt:hover,
.high-contrast .choice-btn:hover {
  background: #333333 !important;
  border-color: #ffff00 !important;
}

.high-contrast .quiz-opt.correct,
.high-contrast .choice-btn.correct {
  background: #006400 !important;
  border-color: #00ff00 !important;
}

.high-contrast .quiz-opt.wrong,
.high-contrast .choice-btn.wrong {
  background: #640000 !important;
  border-color: #ff0000 !important;
}

.high-contrast .menu-toolbar {
  background: #000000 !important;
  border-top: 2px solid #ffffff !important;
}

.high-contrast .tool-btn {
  color: #ffffff !important;
}

.high-contrast .tool-btn.active {
  color: #ffff00 !important;
}

/* ===== 3. 减少动画模式 ===== */
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.reduced-motion .bg-orb {
  animation: none !important;
}

.reduced-motion .bg-gradient {
  animation: none !important;
}

.reduced-motion .page {
  transition: none !important;
}

/* ===== 4. 触摸设备优化 ===== */
.touch-device .mode-btn,
.touch-device .menu-cat-btn,
.touch-device .tool-btn,
.touch-device .quiz-opt,
.touch-device .choice-btn {
  min-height: 48px; /* Apple HIG 推荐最小触摸目标 */
  min-width: 48px;
}

.touch-device .menu-toolbar {
  padding: 8px !important;
}

.touch-device .tool-btn {
  padding: 8px 12px !important;
}

/* 禁用触摸设备上的 hover 效果 */
.touch-device .mode-btn:hover,
.touch-device .menu-cat-btn:hover,
.touch-device .tool-btn:hover {
  transform: none !important;
}

/* 触摸反馈 */
.touch-device .mode-btn:active,
.touch-device .menu-cat-btn:active,
.touch-device .tool-btn:active,
.touch-device .quiz-opt:active,
.touch-device .choice-btn:active {
  transform: scale(0.95) !important;
  opacity: 0.8 !important;
}

/* ===== 5. 低性能模式 ===== */
.low-perf-mode .bg-orb {
  display: none !important;
}

.low-perf-mode .bg-gradient {
  animation: none !important;
}

.low-perf-mode .bg-grid {
  display: none !important;
}

.low-perf-mode .bg-noise {
  display: none !important;
}

.low-perf-mode .page::before,
.low-perf-mode .page::after {
  display: none !important;
}

.low-perf-mode .mode-btn,
.low-perf-mode .menu-cat-btn {
  animation: none !important;
}

/* ===== 6. 屏幕阅读器专用（视觉隐藏） ===== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== 7. 打印样式 ===== */
@media print {
  .bg-orb,
  .bg-gradient,
  .bg-grid,
  .bg-noise,
  .menu-toolbar,
  .back-float {
    display: none !important;
  }
  
  .page {
    background: white !important;
    color: black !important;
  }
  
  .mode-btn,
  .menu-cat-btn {
    border: 1px solid #ccc !important;
    background: white !important;
    color: black !important;
  }
}

/* ===== 8. 响应式优化 ===== */
@media (max-width: 768px) {
  .menu-category-btns {
    flex-direction: column;
    gap: 12px;
  }
  
  .menu-cat-btn {
    width: 100%;
  }
  
  .menu-grid {
    grid-template-columns: 1fr !important;
  }
  
  .mode-btn {
    width: 100%;
  }
  
  .menu-toolbar {
    padding: 4px !important;
  }
  
  .tool-btn {
    font-size: 10px !important;
    min-width: 40px !important;
  }
  
  .tool-btn .icon {
    font-size: 16px !important;
  }
}

@media (max-width: 360px) {
  .mode-btn { font-size: 12px; padding: 8px; }
  .menu-cat-btn { font-size: 14px; }
  .bottom-nav { height: 56px; }
  .bottom-nav .nav-icon { font-size: 20px; }
}

@media (max-width: 480px) {
  .page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .game-header {
    font-size: 1.2em !important;
  }
  
  .quiz-opt,
  .choice-btn {
    padding: 12px !important;
    font-size: 14px !important;
  }
}/* === ai-float.css === */
/**
 * AI导师浮动按钮 + 浮动面板样式
 * 右下角常驻，点击弹出玻璃态对话面板
 */

/* ===== 浮动按钮 ===== */
.ai-fab{
  position: fixed !important;
  bottom: 80px !important;
  right: 20px !important;
  z-index: 9998 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  border: none !important;
  color: #fff !important;
  font-size: 24px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: auto !important;
  animation: ai-fab-pulse 3s ease-in-out 3 !important;
}

.ai-fab:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.3) !important;
}

.ai-fab:active {
  transform: scale(0.95) !important;
}

.ai-fab-badge {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  width: 16px !important;
  height: 16px !important;
  background: #ef4444 !important;
  border-radius: 50% !important;
  border: 2px solid #0f172a !important;
  animation: ai-fab-badge-pulse 2s ease-in-out 3 !important;
}

/* ===== 浮动面板 ===== */
.ai-float-panel {
  position: fixed !important;
  bottom: 150px !important;
  right: 20px !important;
  width: 380px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: 520px !important;
  z-index: 9997 !important;
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.1) !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  animation: ai-panel-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ai-float-panel.active {
  display: flex !important;
}

/* ===== 面板头部 ===== */
.ai-float-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1)) !important;
}

.ai-float-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ai-float-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
}

.ai-float-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.ai-float-subtitle {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.5) !important;
}.ai-float-close{
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

.ai-float-close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== 面板标签页 ===== */
.ai-float-tabs {
  display: flex !important;
  padding: 8px 12px !important;
  gap: 4px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}.ai-float-tab{
  flex: 1 !important;
  padding: 8px 4px !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  text-align: center !important;
}

.ai-float-tab:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.ai-float-tab.active {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  font-weight: 600 !important;
}

/* ===== 面板内容区 ===== */
.ai-float-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px !important;
  max-height: 360px !important;
}

.ai-float-body::-webkit-scrollbar {
  width: 4px !important;
}


.ai-float-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}


.ai-float-body::-webkit-scrollbar-track {
  background: transparent !important;
}

.ai-float-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 2px !important;
}

/* ===== 对话消息 ===== */
.ai-msg {
  margin-bottom: 12px !important;
  animation: ai-msg-fade-in 0.3s ease !important;
}

.ai-msg-bot {
  display: flex !important;
  gap: 8px !important;
}

.ai-msg-bot .ai-msg-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.ai-msg-bot .ai-msg-bubble {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px 12px 12px 4px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6 !important;
  max-width: 280px !important;
}

.ai-msg-user {
  display: flex !important;
  justify-content: flex-end !important;
}

.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2)) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 12px 12px 4px 12px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.6 !important;
  max-width: 280px !important;
}

/* ===== 快速操作按钮 ===== */
.ai-quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 12px !important;
}.ai-quick-btn{
  padding: 6px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

.ai-quick-btn:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
}

/* ===== 雷达图区域 ===== */
.ai-radar-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 8px 0 !important;
}

.ai-radar-container canvas {
  max-width: 200px !important;
  max-height: 200px !important;
}

.ai-mastery-list {
  width: 100% !important;
  margin-top: 12px !important;
}

.ai-mastery-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 0 !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.ai-mastery-bar {
  flex: 1 !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
}

.ai-mastery-bar-fill {
  height: 100% !important;
  border-radius: 2px !important;
  transition: width 0.5s ease !important;
}/* ===== 推荐卡片 ===== */
.ai-recommend-card{
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin-bottom: 8px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

.ai-recommend-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.ai-recommend-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 4px !important;
}

.ai-recommend-desc {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== 面板底部输入区 ===== */
.ai-float-footer {
  padding: 12px 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  gap: 8px !important;
}.ai-float-input{
  flex: 1 !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13px !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ai-float-input:focus {
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.ai-float-input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}.ai-float-send{
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  color: #fff !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

.ai-float-send:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  .ai-float-panel {
    width: calc(100vw - 24px) !important;
    right: 12px !important;
    bottom: 140px !important;
    max-height: 60vh !important;
  }
  
  .ai-fab {
    bottom: 72px !important;
    right: 12px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
}

/* === ai-tutor.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.2.0 — AI 智能防灾导师样式 (比赛级重制版)
 * ===========================================================================
 * 设计方向：Glass Command Center — 玻璃态指挥中心
 * 参考：Linear / Apple / Vercel 设计语言
 * ===========================================================================
 */

/* ===== 页面容器 ===== */
#page-ai-tutor {
  padding: 0 !important;
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  background: transparent;
}

#aiTutorContent {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== 头部卡片 ===== */
.ai-header-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.08) 0%, 
    rgba(167, 139, 250, 0.06) 50%,
    rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(96, 165, 250, 0.15);
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: cardFadeIn 0.6s ease-out;
}

.ai-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ai-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  position: relative;
}

.ai-avatar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid rgba(15, 23, 42, 0.8);
  animation: pulse-ring 2s ease-in-out 3;
}

.ai-title-group h3 {
  font-size: 15px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0 0 2px 0;
}

.ai-title-group p {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

.ai-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: dotPulse 1.5s ease-in-out 3;
}

/* ===== 统计网格 ===== */
.ai-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}.stat-card{
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  color: #A78BFA; /* fallback for no background-clip support */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
  font-weight: 500;
}

/* ===== 雷达图卡片 ===== */
.radar-card {
  border-radius: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: cardFadeIn 0.6s ease-out 0.1s both;
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.radar-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-legend-toggle {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: color 0.2s;
}

.radar-legend-toggle:hover {
  color: #60A5FA;
}

#radarCanvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.radar-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 16px;
}.legend-item{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.8);
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.legend-label {
  flex: 1;
  white-space: nowrap;
}

.legend-value {
  font-weight: 600;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.7);
}

/* ===== 诊断卡片 ===== */
.diagnosis-card {
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: cardFadeIn 0.6s ease-out 0.2s both;
}

.diagnosis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.diagnosis-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0;
}

.diagnosis-alert {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagnosis-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.diagnosis-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.diagnosis-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #FCA5A5;
  margin: 0 0 4px 0;
}

.diagnosis-content p {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
  line-height: 1.5;
}

.weak-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}.weak-tag{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.weak-tag:hover {
  background: rgba(239, 68, 68, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.weak-tag-icon {
  font-size: 14px;
}

.weak-tag-pct {
  font-weight: 700;
  font-size: 11px;
}

.diagnosis-good {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.diagnosis-good-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.diagnosis-good-text {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
}

.diagnosis-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.diagnosis-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.diagnosis-empty-text {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.6);
  line-height: 1.6;
}

.diagnosis-empty-text strong {
  color: #60A5FA;
  font-weight: 600;
}

/* ===== 对话终端卡片 ===== */
.terminal-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: cardFadeIn 0.6s ease-out 0.3s both;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #F8FAFC;
}

.terminal-title-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.terminal-actions {
  display: flex;
  gap: 6px;
}.terminal-action-btn{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.terminal-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
}

.terminal-body {
  height: 220px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
  width: 4px;
}


.terminal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}


.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.terminal-msg {
  display: flex;
  gap: 8px;
  max-width: 92%;
  animation: msgFadeIn 0.3s ease-out;
}

.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-msg .msg-avatar {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.user-msg .msg-avatar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.85);
}

.ai-msg .msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-left-radius: 4px;
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-top-right-radius: 4px;
}

.terminal-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}.terminal-input{
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #F8FAFC;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.terminal-input:focus {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.terminal-input::placeholder {
  color: rgba(148, 163, 184, 0.4);
}.terminal-send-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.terminal-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.terminal-send-btn:active {
  transform: translateY(0);
}

.terminal-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}.suggestion-btn{
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(148, 163, 184, 0.7);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.suggestion-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60A5FA;
  transform: translateY(-1px);
}

/* ===== 操作按钮卡片 ===== */
.actions-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  animation: cardFadeIn 0.6s ease-out 0.4s both;
}.action-btn{
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.action-btn-icon {
  font-size: 20px;
}

.action-btn-text {
  font-size: 12px;
}

.action-btn-primary {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.2), 
    rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93C5FD;
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.15);
}

.action-btn-primary:hover {
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.28), 
    rgba(167, 139, 250, 0.22));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.25);
}

.action-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(148, 163, 184, 0.8);
}

.action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  transform: translateY(-2px);
}

/* ===== 加载动画 ===== */
.ai-typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.5);
  animation: typingBounce 1.4s ease-in-out 3;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  #aiTutorContent {
    padding: 12px;
  }
  
  .ai-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .stat-card {
    padding: 10px 8px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .radar-legend {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .suggestion-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}
/* ===== LLM / AI 模型相关样式 ===== */

/* LLM 加载状态 */
.ai-llm-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.15);
  animation: msgFadeIn 0.3s ease-out;
}

.ai-llm-loading-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  animation: pulse-ring 2s ease-in-out 3;
}

.ai-llm-loading-text {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
}

.ai-llm-loading-text .llm-progress {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #60A5FA;
  font-weight: 500;
}

/* LLM 消息气泡（AI 生成） */
.ai-msg.ai-llm .msg-bubble {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(167, 139, 250, 0.06));
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-top-left-radius: 4px;
}

/* LLM 消息标识 */
.ai-msg.ai-llm .msg-avatar {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(167, 139, 250, 0.25));
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

/* 知识库消息 */
.ai-msg.ai-kb .msg-bubble {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-top-left-radius: 4px;
}

.ai-msg.ai-kb .msg-avatar {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
}/* LLM 启用按钮 */
.ai-llm-toggle-btn{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  margin-right: 4px;
}

.ai-llm-toggle-btn:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60A5FA;
}

.ai-llm-toggle-btn.llm-active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.15));
  border-color: rgba(96, 165, 250, 0.4);
  color: #60A5FA;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.2);
}

.ai-llm-toggle-btn.llm-loading {
  animation: pulse-ring 1.5s ease-in-out 3;
  pointer-events: none;
  opacity: 0.7;
}

/* 浮动面板启用 AI 按钮 */
.ai-quick-btn-llm {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(167, 139, 250, 0.08)) !important;
  border-color: rgba(96, 165, 250, 0.25) !important;
  color: #93C5FD !important;
  font-weight: 500;
}

.ai-quick-btn-llm:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.15)) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  color: #BFDBFE !important;
}

/* 终端操作区布局（加入 LLM 按钮） */
.terminal-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* LLM 系统提示消息 */
.ai-llm-system {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin: 4px 0;
}

.ai-llm-system-text {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.5);
  text-align: center;
  padding: 4px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* 知识库引用标记 */
.ai-kb-source {
  display: inline-block;
  font-size: 10px;
  color: rgba(16, 185, 129, 0.6);
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

/* LLM 响应错误/回退提示 */
.ai-llm-fallback {
  font-size: 11px;
  color: rgba(251, 191, 36, 0.7);
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 响应式补充 ===== */
@media (max-width: 480px) {
  .ai-llm-toggle-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .ai-llm-loading {
    padding: 10px 12px;
  }
  
  .ai-llm-loading-text {
    font-size: 11px;
  }
}

/* === bg-premium.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.1.0 Premium — 高级背景系统
 * ===========================================================================
 * 设计方向：Deep Command Center（深邃指挥中心）
 * 美学特征：温暖深空 / 层次光晕 / 呼吸感 / 非纯黑
 * 参考：Linear / Apple / Vercel 背景美学
 * ===========================================================================
 */

/* ===== 0. 强制覆盖旧背景（防止纯黑） ===== */
html, body {
  background: transparent !important;
}

.bg-gradient {
  background: none !important;
}

#bgCanvas {
  background: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===== 1. 基础渐变 — 深空而非纯黑 ===== */
.bg-gradient {
  background: 
    /* 顶部暖蓝光晕 */
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    /* 左下琥珀色光 */
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(251, 146, 60, 0.08) 0%, transparent 50%),
    /* 右上紫罗兰光 */
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(167, 139, 250, 0.10) 0%, transparent 50%),
    /* 中心微暖光 */
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
    /* 基础深蓝渐变（非纯黑！） */
    linear-gradient(180deg, 
      #0F172A 0%,     /* 深蓝灰 */
      #111827 20%,    /* 炭蓝 */
      #0F172A 50%,    /* 深蓝灰 */
      #1A1F2E 80%,    /* 暖灰蓝 */
      #0F172A 100%    /* 深蓝灰 */
    ) !important;
  animation: bgShift 40s ease-in-out 3 !important;
}

/* ===== 2. 动态光球（CSS blur，比 Canvas 柔和 10 倍） ===== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.5;
}

.bg-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
  top: -15%;
  left: 25%;
  animation: orbFloat1 30s ease-in-out 3;
}

.bg-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.09) 0%, rgba(245, 158, 11, 0.03) 40%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: orbFloat2 40s ease-in-out 3;
}

.bg-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.10) 0%, rgba(139, 92, 246, 0.03) 40%, transparent 70%);
  top: 35%;
  left: -10%;
  animation: orbFloat3 35s ease-in-out 3;
}

.bg-orb-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, rgba(14, 165, 233, 0.02) 40%, transparent 70%);
  bottom: 20%;
  left: 30%;
  animation: orbFloat4 25s ease-in-out 3;
}

/* ===== 3. 微妙几何网格 ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* 超细网格 */
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    /* 粗网格（每 4 格一条稍亮的线） */
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 
    40px 40px, 40px 40px,
    160px 160px, 160px 160px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 70%);
}

/* ===== 4. 噪点质感（模拟胶片颗粒） ===== */
.bg-noise {
  opacity: 0.035 !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E") !important;
  background-size: 512px 512px;
  mix-blend-mode: overlay;
}

/* ===== 5. 顶部极光条（Apple 风格发光边） ===== */
.bg-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.5) 15%, 
    rgba(56, 189, 248, 0.6) 35%, 
    rgba(167, 139, 250, 0.5) 65%, 
    rgba(251, 146, 60, 0.4) 85%, 
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.3),
    0 1px 3px rgba(56, 189, 248, 0.2);
  animation: topBarPulse 8s ease-in-out 3;
}

/* ===== 6. 暗角（Vignette）—— 聚焦中心 ===== */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 85% 65% at 50% 45%, transparent 25%, rgba(6, 8, 12, 0.55) 100%);
}

/* ===== 6b. 底部微暖光晕（增加深度感） ===== */
.bg-bottom-glow {
  position: fixed;
  bottom: -5%;
  left: 20%;
  right: 20%;
  height: 200px;
  background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* ===== 7. Canvas 粒子层 ===== */
#bgCanvas {
  opacity: 0.8 !important;
  pointer-events: none;
  z-index: 0;
}

/* ===== 8. 主菜单专属聚光灯 ===== */
#page-menu {
  position: relative;
  z-index: 2;
}

#page-menu::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
  animation: menuSpotlight 12s ease-in-out 3;
}

/* ===== 9. 隐藏旧元素 ===== */
.menu-particles { display: none !important; }
.menu-logo-glow { display: none !important; }

/* ===== 10. 移动端优化 ===== */
@media (max-width: 768px) {
  .bg-orb { filter: blur(80px) !important; opacity: 0.5 !important; }
  .bg-orb-1 { width: 350px; height: 350px; }
  .bg-orb-2 { width: 300px; height: 300px; }
  .bg-orb-3 { width: 250px; height: 250px; }
  .bg-orb-4 { width: 200px; height: 200px; }
  .bg-grid { background-size: 25px 25px, 25px 25px, 100px 100px, 100px 100px; }
}

/* === bg-themes.css === */
/**
 * ===========================================================================
 * 应急小达人 — 背景主题系统（多主题切换）
 * ===========================================================================
 *
 * 6 种主题：
 * 1. deep-space    — 深空指挥官（默认，蓝紫冷色调）
 * 2. starry-night  — 星空极夜（深蓝黑 + 闪烁星星）
 * 3. aurora-flow   — 极光流动（绿/紫/青渐变流动）
 * 4. dawn-light    — 自然晨曦（暖色调，日出渐变）
 * 5. digital-matrix— 数字矩阵（绿色数据流，黑客帝国风格）
 * 6. warm-light    — 温馨暖光（暖白/米色，低饱和度护眼）
 *
 * 切换方式：给 body 添加/移除 class，例如 body.classList.add('theme-aurora-flow')
 * 保存：localStorage.setItem('bg_theme', 'aurora-flow')
 * ===========================================================================
 */

/* ===== 基础层（所有主题共用） ===== */
body, html {
  transition: background 1.2s ease, color 0.8s ease;
}/* 背景过渡层 */
.bg-theme-layer{
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  transition: transform 1.2s ease, opacity 1.2s ease, box-shadow 1.2s ease, background-color 1.2s ease, border-color 1.2s ease;
}

/* ===== 主题 1：深空指挥官（默认） ===== */
body.theme-deep-space .bg-theme-layer {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(251, 146, 60, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(167, 139, 250, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #0F172A 0%, #111827 20%, #0F172A 50%, #1A1F2E 80%, #0F172A 100%);
}

/* 光球 */
body.theme-deep-space .bg-orb-1 { background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%); }
body.theme-deep-space .bg-orb-2 { background: radial-gradient(circle, rgba(251, 146, 60, 0.09) 0%, transparent 70%); }
body.theme-deep-space .bg-orb-3 { background: radial-gradient(circle, rgba(167, 139, 250, 0.10) 0%, transparent 70%); }
body.theme-deep-space .bg-orb-4 { background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, transparent 70%); }

/* ===== 主题 2：星空极夜 ===== */
body.theme-starry-night {
  --text-primary: #E8EAF6;
  --text-secondary: rgba(232, 234, 246, 0.7);
}
body.theme-starry-night .bg-theme-layer {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #020617 0%, #0B1120 30%, #0F172A 60%, #0B1120 100%);
}

/* 星星 */
body.theme-starry-night .bg-stars {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 350px 50px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 450px 100px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 500px 200px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 600px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 700px 180px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 80px 250px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 200px 300px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 400px 280px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 550px 320px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 680px 260px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 750px 350px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 100px 400px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 300px 420px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 500px 450px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 650px 480px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 250px 500px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 450px 520px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 580px 550px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 720px 580px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 150px 600px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 350px 620px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 480px 650px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 620px 680px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 80px 700px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 280px 720px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 420px 750px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 560px 780px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 200px 800px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 380px 820px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 520px 850px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 660px 880px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 120px 900px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 320px 920px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 460px 950px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 600px 980px, rgba(255,255,255,0.5), transparent);
  background-size: 800px 1000px;
  animation: starTwinkle 4s ease-in-out 3 alternate;
}

/* 流星 */
body.theme-starry-night .bg-meteor {
  position: fixed;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.4), 0 0 12px rgba(168, 85, 247, 0.2);
  z-index: -8;
  pointer-events: none;
}
body.theme-starry-night .bg-meteor-1 {
  top: 10%; right: 30%;
  animation: meteorFall1 8s ease-in 3 2s;
}
body.theme-starry-night .bg-meteor-2 {
  top: 20%; right: 60%;
  animation: meteorFall2 12s ease-in 3 5s;
}
body.theme-starry-night .bg-meteor-3 {
  top: 5%; right: 80%;
  animation: meteorFall3 10s ease-in 3 8s;
}

body.theme-starry-night .bg-orb-1 { background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%); }
body.theme-starry-night .bg-orb-2 { background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%); }
body.theme-starry-night .bg-orb-3 { background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, transparent 70%); }
body.theme-starry-night .bg-orb-4 { display: none; }

/* ===== 主题 3：极光流动 ===== */
body.theme-aurora-flow {
  --text-primary: #E0F2F1;
  --text-secondary: rgba(224, 242, 241, 0.7);
}
body.theme-aurora-flow .bg-theme-layer {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 255, 150, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(168, 85, 247, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(0, 212, 255, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #0B1A1A 0%, #0A1F2E 30%, #0B1A2E 60%, #0D1F1F 100%);
}

/* 极光带 */
body.theme-aurora-flow .bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  overflow: hidden;
}
body.theme-aurora-flow .aurora-band {
  position: absolute;
  width: 200%;
  height: 60px;
  left: -50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: auroraWave 8s ease-in-out 3;
}
body.theme-aurora-flow .aurora-band-1 {
  top: 15%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 150, 0.3), rgba(0, 212, 255, 0.2), transparent);
  animation-delay: 0s;
}
body.theme-aurora-flow .aurora-band-2 {
  top: 25%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.25), rgba(0, 255, 150, 0.15), transparent);
  animation-delay: -3s;
  animation-duration: 10s;
}
body.theme-aurora-flow .aurora-band-3 {
  top: 40%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.15), transparent);
  animation-delay: -6s;
  animation-duration: 12s;
}

body.theme-aurora-flow .bg-orb-1 { background: radial-gradient(circle, rgba(0, 255, 150, 0.15) 0%, transparent 70%); }
body.theme-aurora-flow .bg-orb-2 { background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, transparent 70%); }
body.theme-aurora-flow .bg-orb-3 { background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%); }
body.theme-aurora-flow .bg-orb-4 { background: radial-gradient(circle, rgba(0, 255, 150, 0.08) 0%, transparent 70%); }

/* ===== 主题 4：自然晨曦 ===== */
body.theme-dawn-light {
  --text-primary: #1E293B;
  --text-secondary: rgba(30, 41, 59, 0.7);
}
body.theme-dawn-light .bg-theme-layer {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(251, 146, 60, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 30% at 20% 80%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #FFF7ED 0%, #FEF3C7 15%, #FDE68A 35%, #BFDBFE 60%, #93C5FD 80%, #60A5FA 100%);
}
body.theme-dawn-light .bg-orb-1 { background: radial-gradient(circle, rgba(251, 146, 60, 0.20) 0%, transparent 70%); }
body.theme-dawn-light .bg-orb-2 { background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%); }
body.theme-dawn-light .bg-orb-3 { background: radial-gradient(circle, rgba(59, 130, 246, 0.10) 0%, transparent 70%); }
body.theme-dawn-light .bg-orb-4 { background: radial-gradient(circle, rgba(251, 146, 60, 0.08) 0%, transparent 70%); }
body.theme-dawn-light .bg-grid { display: none; }
body.theme-dawn-light .bg-noise { opacity: 0.02 !important; }
body.theme-dawn-light .bg-top-bar {
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.5), rgba(245, 158, 11, 0.6), rgba(59, 130, 246, 0.5), transparent);
}

/* ===== 主题 5：数字矩阵 ===== */
body.theme-digital-matrix {
  --text-primary: #E8F5E9;
  --text-secondary: rgba(232, 245, 233, 0.7);
}
body.theme-digital-matrix .bg-theme-layer {
  background:
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(0, 230, 118, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #001a00 30%, #000a00 60%, #001200 100%);
}

/* 矩阵雨 */
body.theme-digital-matrix .bg-matrix {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.15;
}
body.theme-digital-matrix .matrix-col {
  position: absolute;
  top: -100%;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  color: #00E676;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
  white-space: pre;
  animation: matrixFall linear 3;
}

body.theme-digital-matrix .bg-orb-1 { background: radial-gradient(circle, rgba(0, 230, 118, 0.10) 0%, transparent 70%); }
body.theme-digital-matrix .bg-orb-2 { background: radial-gradient(circle, rgba(0, 230, 118, 0.06) 0%, transparent 70%); }
body.theme-digital-matrix .bg-orb-3 { background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%); }
body.theme-digital-matrix .bg-orb-4 { display: none; }
body.theme-digital-matrix .bg-grid {
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.3;
}
body.theme-digital-matrix .bg-top-bar {
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.5), transparent);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

/* ===== 主题 6：温馨暖光 ===== */
body.theme-warm-light {
  --text-primary: #3E2723;
  --text-secondary: rgba(62, 39, 35, 0.7);
}
body.theme-warm-light .bg-theme-layer {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(251, 191, 36, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 30% at 80% 30%, rgba(251, 146, 60, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FFF8F0 0%, #FFEDD5 20%, #FED7AA 40%, #FDBA74 60%, #FB923C 80%, #F97316 100%);
}
body.theme-warm-light .bg-orb-1 { background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%); }
body.theme-warm-light .bg-orb-2 { background: radial-gradient(circle, rgba(245, 158, 11, 0.10) 0%, transparent 70%); }
body.theme-warm-light .bg-orb-3 { background: radial-gradient(circle, rgba(251, 146, 60, 0.08) 0%, transparent 70%); }
body.theme-warm-light .bg-orb-4 { background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 70%); }
body.theme-warm-light .bg-grid { display: none; }
body.theme-warm-light .bg-noise { opacity: 0.015 !important; }
body.theme-warm-light .bg-top-bar {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 0.6), rgba(251, 146, 60, 0.5), transparent);
}

/* ===== 通用：文字颜色适应 ===== */
body.theme-starry-night .game-header .mode-label,
body.theme-aurora-flow .game-header .mode-label,
body.theme-digital-matrix .game-header .mode-label {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
body.theme-dawn-light .game-header .mode-label,
body.theme-warm-light .game-header .mode-label {
  color: #1E293B;
  text-shadow: none;
}
body.theme-dawn-light .mode-desc,
body.theme-warm-light .mode-desc {
  color: rgba(30, 41, 59, 0.6);
}
body.theme-starry-night .mode-desc,
body.theme-aurora-flow .mode-desc,
body.theme-digital-matrix .mode-desc {
  color: rgba(255,255,255,0.6);
}

/* ===== 通用：卡片颜色适应（浅色主题） ===== */
body.theme-dawn-light .mode-btn,
body.theme-warm-light .mode-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.5);
  color: #1E293B;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}
body.theme-dawn-light .mode-btn:hover,
body.theme-warm-light .mode-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}
body.theme-dawn-light .menu-toolbar,
body.theme-warm-light .menu-toolbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%) !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1) !important;
}
body.theme-dawn-light .back-float,
body.theme-warm-light .back-float {
  background: rgba(255,255,255,0.6) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  color: #1E293B !important;
}
body.theme-dawn-light .ai-float-panel,
body.theme-warm-light .ai-float-panel {
  background: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
}
body.theme-dawn-light .ai-float-title,
body.theme-warm-light .ai-float-title {
  color: #1E293B !important;
}
body.theme-dawn-light .ai-float-subtitle,
body.theme-warm-light .ai-float-subtitle {
  color: rgba(30,41,59,0.5) !important;
}
body.theme-dawn-light .ai-msg-bot .ai-msg-bubble,
body.theme-warm-light .ai-msg-bot .ai-msg-bubble {
  background: rgba(0,0,0,0.05) !important;
  color: #1E293B !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
body.theme-dawn-light .ai-msg-user .ai-msg-bubble,
body.theme-warm-light .ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(167,139,250,0.15)) !important;
  color: #1E293B !important;
  border: 1px solid rgba(59,130,246,0.2) !important;
}
body.theme-dawn-light .ai-quick-btn,
body.theme-warm-light .ai-quick-btn {
  background: rgba(0,0,0,0.04) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  color: #1E293B !important;
}
body.theme-dawn-light .ai-quick-btn:hover,
body.theme-warm-light .ai-quick-btn:hover {
  background: rgba(59,130,246,0.1) !important;
  border-color: rgba(59,130,246,0.3) !important;
  color: #3B82F6 !important;
}
body.theme-dawn-light .ai-float-input,
body.theme-warm-light .ai-float-input {
  background: rgba(0,0,0,0.04) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  color: #1E293B !important;
}
body.theme-dawn-light .ai-float-input::placeholder,
body.theme-warm-light .ai-float-input::placeholder {
  color: rgba(30,41,59,0.4) !important;
}

/* ===== 移动端优化 ===== */
@media (max-width: 768px) {
  body.theme-starry-night .bg-stars {
    background-size: 400px 500px;
  }
  body.theme-aurora-flow .aurora-band {
    filter: blur(20px);
  }
  body.theme-digital-matrix .matrix-col {
    font-size: 10px;
  }
}/* === cert-enhance.css === */
/**
 * ===========================================================================
 * 证书打印增强样式
 * ===========================================================================
 */

/* 打印按钮 */
.cert-print-btn{
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  margin-left: 10px;
}

.cert-print-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* 证书弹窗增强 */
.cert-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}/* 批量导出按钮 */
.cert-export-all-btn{
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  margin-top: 15px;
}

.cert-export-all-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* 打印样式优化 */
@media print {
  /* 隐藏所有非证书元素 */
  body * {
    visibility: hidden !important;
  }
  
  .cert-modal-overlay,
  .cert-modal-overlay * {
    visibility: visible !important;
  }
  
  .cert-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: white !important;
    backdrop-filter: none !important;
  }
  
  .cert-modal-content {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    max-height: 100vh !important;
  }
  
  .cert-modal-header,
  .cert-modal-actions {
    display: none !important;
  }
  
  .cert-canvas-wrapper {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  #certificateCanvas {
    max-width: 100% !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
  }
}

/* 证书预览动画 */

.cert-modal-content {
  animation: certModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 证书画布增强 */
#certificateCanvas {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 60px rgba(59, 130, 246, 0.1);
}

/* 响应式 */
@media (max-width: 768px) {
  .cert-modal-actions {
    flex-direction: column;
  }
  
  .cert-download-btn,
  .cert-print-btn {
    width: 100%;
    margin-left: 0;
  }
}

/* === certification.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.2.0 — 能力认证体系样式 (比赛级)
 * ===========================================================================
 */

/* ===== 页面容器 ===== */
#page-certification {
  padding: 0 !important;
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  background: transparent;
}

#certContent {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== 当前等级卡片 ===== */
.cert-current-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.08) 0%, 
    rgba(167, 139, 250, 0.06) 50%,
    rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(96, 165, 250, 0.15);
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: certCardFadeIn 0.6s ease-out;
}

.cert-current-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}.cert-level-badge{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.cert-level-badge.unlocked {
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
  animation: badgePulse 2s ease-in-out 3;
}

.cert-level-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

.cert-level-info p {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
}

.cert-progress-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

#progressRingCanvas {
  display: block;
  margin: 0 auto;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-value {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  color: #A78BFA; /* fallback for no background-clip support */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-label {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
  margin-top: 2px;
}

/* ===== 统计卡片 ===== */
.cert-stats-card {
  border-radius: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: certCardFadeIn 0.6s ease-out 0.1s both;
}

.cert-stats-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}.cert-stat-item{
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.cert-stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.cert-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #60A5FA;
  margin-bottom: 4px;
}

.cert-stat-label {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
}

/* ===== 等级列表卡片 ===== */
.cert-levels-card {
  border-radius: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: certCardFadeIn 0.6s ease-out 0.2s both;
}

.cert-levels-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-levels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}.cert-level-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.cert-level-item.unlocked {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

.cert-level-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}

.cert-level-left {
  display: flex;
  align-items: center;
  gap: 12px;
}.cert-level-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s, opacity 0.2s, filter 0.2s;
}

.cert-level-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0 0 2px 0;
}

.cert-level-details p {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
  margin: 0;
}

.cert-level-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 120px;
}.cert-view-btn{
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.cert-view-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.cert-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cert-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.cert-progress-text {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.5);
  font-weight: 500;
}

/* ===== 证书模态框 ===== */
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease-out;
}

.cert-modal-content {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cert-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0;
}.cert-modal-close{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.cert-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
}

.cert-canvas-wrapper {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

#certificateCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cert-modal-actions {
  display: flex;
  justify-content: center;
}.cert-download-btn{
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.3);
}

.cert-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  #certContent {
    padding: 12px;
  }
  
  .cert-current-header {
    flex-direction: column;
    text-align: center;
  }
  
  .cert-levels-list {
    gap: 8px;
  }
  
  .cert-level-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cert-level-right {
    width: 100%;
    align-items: stretch;
  }
  
  .cert-modal-content {
    padding: 16px;
  }
}

/* === clean-ui.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.1.0 — 简洁版界面优化
 * ===========================================================================
 * 
 * 设计理念：
 * - 去掉赛博朋克霓虹感，改用干净柔和的现代风格
 * - 统一配色，减少花里胡哨的发光
 * - 保留液态玻璃但更克制
 * - 加载界面干净利落
 * 
 * @version 1.1.0-clean
 * @date 2026-06-09
 * ===========================================================================
 */

/* ===== 更干净的全局配色 ===== */
:root {
  /* 柔和的主色调，去掉刺眼的霓虹色 */
  --cyber-blue: #5BA4CF;
  --cyber-blue-hover: #6BB8E0;
  --cyber-blue-dim: rgba(91,164,207,0.12);
  --cyber-blue-glow: rgba(91,164,207,0.2);
  --neon-pink: #D47B9C;
  --neon-green: #6BC47A;
  --gold: #C9A84C;
  --gold-dim: rgba(201,168,76,0.15);
  --bg-deep: #0F1117;
  --bg-card: rgba(25,27,35,0.8);
  --bg-card-solid: #191B23;
  --text-primary: #E8EAED;
  --text-secondary: #9AA0AB;
  --text-dim: #5F6570;
  
  /* 玻璃效果更柔和 */
  --glass-blur: 12px;
  --glass-saturate: 1.2;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-highlight: rgba(255,255,255,0.06);
}

/* ===== 简洁背景 ===== */
.bg-gradient {
  background: 
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(91,164,207,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0F1117 0%, #141620 50%, #0F1117 100%) !important;
  animation: none !important;
}

.bg-noise {
  opacity: 0.015 !important;
}

/* ===== 去掉过度的 3D 透视 ===== */
body {
  perspective: none !important;
}

.page {
  transform: none !important;
  transition: opacity 0.3s ease !important;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}

.page.active {
  transform: none !important;
  animation: none !important;
}

.page.exit {
  transform: none !important;
}

/* ===== 加载界面 — 简洁版 ===== */
#loadingScreen {
  background: linear-gradient(180deg, #0F1117, #141620, #0F1117) !important;
}

.loading-screen {
  background: linear-gradient(180deg, #0F1117, #141620, #0F1117) !important;
}

.ls-particles { display: none !important; }
.ls-ring-outer, .ls-ring-spin, .ls-ring-inner { display: none !important; }
.ls-scanline { display: none !important; }
.ls-glitch-line { display: none !important; }

.ls-icon {
  font-size: 48px;
  filter: none !important;
  animation: none !important;
}

.ls-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--cyber-blue);
  text-shadow: none !important;
  animation: none !important;
}

.ls-title::before, .ls-title::after { display: none !important; }

.ls-subtitle {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-secondary) !important;
  animation: none !important;
}

/* 加载进度条简洁化 */
.ls-progress {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: none !important;
}

.ls-progress-fill {
  background: var(--cyber-blue) !important;
  box-shadow: none !important;
  height: 100%;
  border-radius: 2px;
}

.ls-version {
  font-size: 10px !important;
  color: var(--text-dim) !important;
  animation: none !important;
}

/* ===== 菜单区域 — 简洁统一 ===== */
.menu-particles { display: none !important; }
.menu-logo-glow { display: none !important; }

.menu-logo {
  padding: 48px 0 24px !important;
  margin-bottom: 20px !important;
  margin-top: auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.menu-logo-icon {
  font-size: 32px !important;
  filter: none !important;
  animation: none !important;
}

.menu-logo-title {
  font-size: 64px !important;
  font-weight: 900 !important;
  letter-spacing: 8px !important;
  background: linear-gradient(180deg,#fff 0%,#ffe4a0 25%,#ff9d00 50%,#ff4d00 75%,#ff0000 100%) !important;
  color: #ff9d00 !important; /* fallback for no background-clip support */
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 50px rgba(255,100,0,0.7), 0 0 100px rgba(255,0,0,0.4), 0 6px 16px rgba(0,0,0,0.7) !important;
  animation: titlePulse 2.5s ease-in-out 3 !important;
}

.menu-logo-sub {
  font-size: 16px !important;
  margin: 6px 0 8px !important;
  opacity: 0.9 !important;
  letter-spacing: 2px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  text-shadow: 0 0 15px rgba(255,255,255,0.15) !important;
}

.version-tag {
  font-size: 14px !important;
  padding: 6px 18px !important;
  margin-top: 8px !important;
  border-radius: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(0,212,255,0.15)) !important;
  border: 1px solid rgba(255,215,0,0.3) !important;
  color: #FFD700 !important;
  box-shadow: 0 0 20px rgba(255,215,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  animation: tagPulse 2s ease-in-out 3 !important;
}

/* ===== 分类按钮 — 简洁统一 ===== */
.menu-category-btns {
  gap: 8px !important;
}.menu-cat-btn{
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

.menu-cat-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  transform: none !important;
}

.learn-btn, .battle-btn {
  /* 去掉原有的渐变色 */
}

.cat-icon {
  font-size: 18px !important;
}

.cat-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.cat-count {
  font-size: 11px !important;
  color: var(--text-dim) !important;
}

/* ===== 分区标题 ===== */
.menu-section-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  padding: 8px 0 !important;
}

.menu-section-title::before {
  display: none !important;
}

.menu-section-title::after {
  display: none !important;
}

.collapse-arrow {
  font-size: 10px !important;
  color: var(--text-dim) !important;
}/* ===== 模式按钮 — 统一简洁 ===== */
.mode-btn{
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: var(--glass-bg) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 2px solid var(--glass-border) !important;
  border-radius: 36px !important;
  padding: 48px 24px !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
  position: relative;
  overflow: hidden;
  min-height: 220px !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.mode-btn .mode-icon {
  font-size: 72px !important;
  margin-bottom: 14px !important;
}

.mode-btn .mode-name {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-top: 12px !important;
}

.mode-btn .mode-desc {
  font-size: 15px !important;
  margin-top: 8px !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,0.65) !important;
}

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.mode-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.mode-btn:active {
  transform: scale(0.98) !important;
}

/* 保留 mode-btn 内联样式 — v72 修复 */
/*
.mode-btn[style*="border-color"],
.mode-btn[style*="box-shadow"],
.mode-btn[style*="animation"] {
  border-color: var(--glass-border) !important;
  box-shadow: none !important;
  animation: none !important;
}
*/

.mode-icon {
  font-size: 20px !important;
  display: block;
  margin-bottom: 4px;
}

.mode-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  display: block;
}

.mode-desc {
  font-size: 11px !important;
  color: var(--text-dim) !important;
  display: block;
  margin-top: 2px;
}

.mode-badge {
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,0.08) !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
}

/* ===== 液态玻璃卡片 — 更克制 ===== */
.quiz-opt, .scenario-opt, .quiz-card, .scenario-card,
.survival-hud, .result-box, .scenario-feedback,
.quiz-exp-box, .explanation-box {
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.quiz-opt:hover, .scenario-opt:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  transform: translateX(2px) !important;
}

/* ===== 去掉闪烁动画 ===== */

/* 去掉所有按钮上的 pulse-glow 动画 */
.mode-btn {
  animation: none !important;
}

/* ===== 进度条 — 简洁 ===== */
.quiz-progress-bar, .progress-track {
  height: 4px !important;
  background: rgba(255,255,255,0.06) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

.quiz-progress-fill, .progress-fill {
  background: var(--cyber-blue) !important;
  box-shadow: none !important;
  border-radius: 2px !important;
}

/* ===== 按钮 — 简洁 ===== */
.btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.btn:hover {
  background: rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary {
  background: var(--cyber-blue) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(91,164,207,0.3) !important;
}

.btn-primary:hover {
  background: var(--cyber-blue-hover) !important;
  box-shadow: 0 4px 12px rgba(91,164,207,0.4) !important;
}

.btn-gold {
  background: var(--gold) !important;
  color: #191B23 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(201,168,76,0.3) !important;
}

/* ===== 模态框 — 简洁 ===== */
.modal-box {
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: rgba(20,22,30,0.95) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4) !important;
  border-radius: 16px !important;
}

/* ===== 玻璃卡片通用 ===== */
.glass-card {
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: rgba(25,27,35,0.7) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  border-radius: 10px !important;
}

.glass-card:hover {
  background: rgba(25,27,35,0.8) !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
  transform: translateY(-1px) !important;
}

/* ===== 标题 — 简洁 ===== */
.title-glow {
  font-size: clamp(1.4rem,4vw,2rem) !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--cyber-blue), var(--gold)) !important;
  color: var(--cyber-blue) !important; /* fallback for no background-clip support */
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
  letter-spacing: 1px !important;
}

.title-section {
  font-size: clamp(1rem,2.5vw,1.3rem) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

/* ===== 返回按钮 ===== */
.back-float {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.back-float:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.15) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  transform: none !important;
  color: var(--cyber-blue) !important;
}

/* ===== 滚动条 ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

::-webkit-scrollbar {
  width: 4px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1) !important;
  border-radius: 2px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* ===== BGM 按钮 ===== */
#bgmMuteBtn {
  background: rgba(20,22,30,0.8) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

#bgmMuteBtn:hover {
  border-color: rgba(255,255,255,0.2) !important;
  transform: none !important;
}

/* ===== 吉祥物 ===== */
.mascot-bubble {
  background: rgba(20,22,30,0.85) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* ===== 返回分类 ===== */
.back-to-categories {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  padding: 6px 12px !important;
}

.back-to-categories:hover {
  color: var(--cyber-blue) !important;
}

/* ===== 底部导航栏 ===== */
.nav-bar {
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: rgba(15,17,23,0.95) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2) !important;
  backdrop-filter: blur(12px) !important;
}

.nav-item {
  color: var(--text-secondary) !important;
}

.nav-item.active {
  color: var(--cyber-blue) !important;
}

.nav-item:hover {
  color: var(--cyber-blue) !important;
}

/* ===== 徽章 ===== */
.badge {
  box-shadow: none !important;
}

/* ===== 答题正确/错误反馈 ===== */
.quiz-opt.correct .opt-label {
  background: var(--neon-green) !important;
  box-shadow: none !important;
}

.quiz-opt.wrong .opt-label {
  background: #E57373 !important;
  box-shadow: none !important;
}

/* ===== 故事模式卡片 ===== */
.story-card {
  background: rgba(20,22,30,0.95) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
}

.story-icon {
  filter: none !important;
  animation: none !important;
}

.story-title {
  background: linear-gradient(135deg, var(--cyber-blue), var(--gold)) !important;
  color: var(--cyber-blue) !important; /* fallback for no background-clip support */
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.story-btn {
  background: var(--cyber-blue) !important;
  box-shadow: 0 2px 8px rgba(91,164,207,0.3) !important;
}

.story-btn:hover {
  box-shadow: 0 4px 12px rgba(91,164,207,0.4) !important;
}

/* ===== 成就弹窗 ===== */
.achieve-popup-inner {
  background: rgba(20,22,30,0.95) !important;
  border: 1px solid var(--gold) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}

/* ===== 设置面板 ===== */
.settings-panel {
  background: rgba(20,22,30,0.95) !important;
}

/* ===== 难度选择 ===== */
.diff-btn {
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: transparent !important;
}

.diff-btn.active {
  background: var(--cyber-blue-dim) !important;
  border-color: var(--cyber-blue) !important;
  color: var(--cyber-blue) !important;
}

/* ===== 通用动画简化 ===== */
.cardSlideIn {
  animation: none !important;
}

/* ===== 应急包 ===== */
.kit-item {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

.kit-item:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

.kit-item.selected {
  background: var(--cyber-blue-dim) !important;
  border-color: var(--cyber-blue) !important;
  box-shadow: none !important;
}

/* ===== 战斗 HUD ===== */
.battle-hud {
  background: rgba(15,17,23,0.9) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter: none !important;
}

.hp-bar-container {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* ===== 地图节点 ===== */
.map-node {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.map-node.current {
  box-shadow: 0 0 12px rgba(201,168,76,0.4) !important;
}

/* ===== 分割线 ===== */
.divider {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent) !important;
  box-shadow: none !important;
}

/* ===== 学习卡片 ===== */
.study-card-front, .study-card-back {
  background: var(--bg-card-solid) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

/* ===== 签到日历 ===== */
.daily-day {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

.daily-day.done {
  background: rgba(107,196,122,0.15) !important;
  border-color: rgba(107,196,122,0.25) !important;
}

.daily-day.today {
  background: rgba(201,168,76,0.1) !important;
  border-color: rgba(201,168,76,0.25) !important;
  animation: none !important;
}

/* === disaster-sim.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.2.0 — 灾害情景沉浸模拟样式 (比赛级)
 * ===========================================================================
 */

/* ===== 页面容器 ===== */
#page-disaster-sim {
  padding: 0 !important;
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  background: transparent;
}

#simContent {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Canvas 容器 ===== */
.sim-canvas-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: simFadeIn 0.6s ease-out;
}

#simCanvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

/* ===== 信息卡片 ===== */
.sim-info-card {
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: simFadeIn 0.6s ease-out 0.1s both;
}

.sim-case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.sim-scene {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.6;
  margin-bottom: 8px;
}

.sim-phase {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-phase::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  animation: phasePulse 1.5s ease-in-out 3;
}

/* ===== 操作按钮 ===== */
.sim-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  animation: simFadeIn 0.6s ease-out 0.2s both;
}.sim-action-btn{
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sim-action-btn:active {
  transform: translateY(0);
}

/* ===== 结果卡片 ===== */
#simResult {
  display: none;
  animation: resultSlideIn 0.4s ease-out;
}

.sim-result {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sim-result.correct {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.sim-result.wrong {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.sim-result-icon {
  font-size: 48px;
  margin-bottom: 4px;
}

.sim-result-text {
  text-align: center;
}

.sim-result-text h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.sim-result.correct .sim-result-text h4 {
  color: #34D399;
}

.sim-result.wrong .sim-result-text h4 {
  color: #FCA5A5;
}

.sim-result-text p {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
  line-height: 1.6;
}.sim-continue-btn{
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.3);
}

.sim-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.4);
}

/* ===== 灾害选择器 ===== */
.sim-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  animation: simFadeIn 0.6s ease-out;
}.sim-selector-btn{
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}

.sim-selector-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.sim-selector-btn.active {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.08);
}

.sim-selector-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.sim-selector-name {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.sim-selector-case {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  #simContent {
    padding: 12px;
  }
  
  .sim-actions {
    grid-template-columns: 1fr;
  }
  
  .sim-selector {
    grid-template-columns: 1fr;
  }
}

/* === fix-click.css === */
/* fix-click.css - 点击修复样式 */
/* 占位文件，防止404错误 */

/* === fx-effects.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.1.0 Premium — 高级特效系统
 * ===========================================================================
 * 设计方向：Deep Command Center — 有生命力的界面
 * 特效列表：
 *   1. 光尘漂浮 (Floating Light Dust)
 *   2. 光线扫描 (Light Sweep)
 *   3. 几何装饰环 (Geometric Rings)
 *   4. 呼吸光脉冲 (Pulse Rings)
 *   5. 微流星 (Micro Meteors)
 * ===========================================================================
 */

/* ===== 特效容器 ===== */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fx-layer * {
  pointer-events: none !important;
}

/* ========== 1. 光尘漂浮 ========== */
.dust {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dust::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  filter: blur(2px);
}

.dust-1 {
  width: 4px; height: 4px;
  background: rgba(96, 165, 250, 0.6);
  left: 15%; top: 70%;
  animation: dustRise1 12s ease-in-out 3;
}

.dust-2 {
  width: 3px; height: 3px;
  background: rgba(251, 146, 60, 0.5);
  left: 80%; top: 80%;
  animation: dustRise2 15s ease-in-out 3;
}

.dust-3 {
  width: 5px; height: 5px;
  background: rgba(167, 139, 250, 0.4);
  left: 50%; top: 90%;
  animation: dustRise3 10s ease-in-out 3;
}

.dust-4 {
  width: 3px; height: 3px;
  background: rgba(56, 189, 248, 0.5);
  left: 30%; top: 60%;
  animation: dustRise4 14s ease-in-out 3;
}

.dust-5 {
  width: 4px; height: 4px;
  background: rgba(96, 165, 250, 0.4);
  left: 70%; top: 75%;
  animation: dustRise5 11s ease-in-out 3;
}

.dust-6 {
  width: 2px; height: 2px;
  background: rgba(251, 146, 60, 0.6);
  left: 45%; top: 85%;
  animation: dustRise6 13s ease-in-out 3;
}

.dust-7 {
  width: 3px; height: 3px;
  background: rgba(167, 139, 250, 0.5);
  left: 90%; top: 65%;
  animation: dustRise7 16s ease-in-out 3;
}

.dust-8 {
  width: 4px; height: 4px;
  background: rgba(56, 189, 248, 0.4);
  left: 10%; top: 80%;
  animation: dustRise8 12s ease-in-out 3;
}

/* ========== 2. 光线扫描 ========== */
.light-sweep {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.03) 40%,
    rgba(59, 130, 246, 0.06) 50%,
    rgba(59, 130, 246, 0.03) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: sweep 20s ease-in-out 3;
}

.light-sweep-2 {
  animation-delay: -8s;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.02) 40%,
    rgba(167, 139, 250, 0.04) 50%,
    rgba(167, 139, 250, 0.02) 60%,
    transparent 100%
  );
}

/* ========== 3. 几何装饰环 ========== */
.geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.03);
  pointer-events: none;
}

.geo-ring-1 {
  width: 300px;
  height: 300px;
  top: 20%;
  right: 10%;
  border-color: rgba(59, 130, 246, 0.06);
  animation: geoSpin 60s linear 3;
}

.geo-ring-2 {
  width: 200px;
  height: 200px;
  top: 25%;
  right: 15%;
  border-color: rgba(167, 139, 250, 0.05);
  border-style: dashed;
  animation: geoSpin 40s linear 3 reverse;
}

.geo-ring-3 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: 5%;
  border-color: rgba(251, 146, 60, 0.04);
  animation: geoSpin 80s linear 3;
}

.geo-ring-4 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 12%;
  border-color: rgba(56, 189, 248, 0.06);
  border-style: dotted;
  animation: geoSpin 30s linear 3 reverse;
}

/* 环上的小圆点装饰 */
.geo-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

.geo-ring-1 .geo-dot { top: -1px; left: 50%; }
.geo-ring-2 .geo-dot { bottom: -1px; right: 0; }
.geo-ring-3 .geo-dot { top: 50%; left: -1px; }
.geo-ring-4 .geo-dot { top: 0; left: 50%; }

/* ========== 4. 呼吸光脉冲 ========== */
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  pointer-events: none;
}

.pulse-ring-1 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 20%;
  border-color: rgba(59, 130, 246, 0.3);
  animation: pulseExpand 6s ease-out 3;
}

.pulse-ring-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 25%;
  border-color: rgba(251, 146, 60, 0.25);
  animation: pulseExpand 8s ease-out 3 2s;
}

.pulse-ring-3 {
  width: 60px;
  height: 60px;
  top: 45%;
  left: 60%;
  border-color: rgba(167, 139, 250, 0.3);
  animation: pulseExpand 7s ease-out 3 4s;
}

/* ========== 5. 微流星 ========== */
.meteor {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 
    0 0 6px rgba(96, 165, 250, 0.4),
    0 0 12px rgba(96, 165, 250, 0.2);
}

.meteor::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.3), transparent);
  transform-origin: right center;
  transform: rotate(0deg);
}

.meteor-1 {
  top: 10%;
  right: 20%;
  animation: meteorFall 8s ease-in 3;
}

.meteor-2 {
  top: 25%;
  right: 40%;
  animation: meteorFall 12s ease-in 3 3s;
}

.meteor-3 {
  top: 5%;
  right: 70%;
  animation: meteorFall 10s ease-in 3 6s;
}

/* ========== 6. 渐变流动条 ========== */
.gradient-bar {
  position: absolute;
  height: 2px;
  border-radius: 1px;
  pointer-events: none;
  opacity: 0.15;
}

.gradient-bar-1 {
  top: 35%;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  animation: barFlow1 15s ease-in-out 3;
}

.gradient-bar-2 {
  top: 55%;
  right: 0;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.4), transparent);
  animation: barFlow2 18s ease-in-out 3;
}

.gradient-bar-3 {
  top: 75%;
  left: 10%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.4), transparent);
  animation: barFlow3 12s ease-in-out 3;
}

/* ========== 7. 角落装饰（HUD 风格） ========== */
.corner-decor {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  opacity: 0.15;
}

.corner-decor::before,
.corner-decor::after {
  content: '';
  position: absolute;
  background: rgba(96, 165, 250, 0.4);
}

.corner-tl {
  top: 80px;
  left: 20px;
}

.corner-tl::before {
  top: 0;
  left: 0;
  width: 20px;
  height: 1px;
}

.corner-tl::after {
  top: 0;
  left: 0;
  width: 1px;
  height: 20px;
}

.corner-tr {
  top: 80px;
  right: 20px;
}

.corner-tr::before {
  top: 0;
  right: 0;
  width: 20px;
  height: 1px;
}

.corner-tr::after {
  top: 0;
  right: 0;
  width: 1px;
  height: 20px;
}

.corner-bl {
  bottom: 100px;
  left: 20px;
}

.corner-bl::before {
  bottom: 0;
  left: 0;
  width: 20px;
  height: 1px;
}

.corner-bl::after {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 20px;
}

.corner-br {
  bottom: 100px;
  right: 20px;
}

.corner-br::before {
  bottom: 0;
  right: 0;
  width: 20px;
  height: 1px;
}

.corner-br::after {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 20px;
}

/* ========== 8. 数据流（垂直线条） ========== */
.data-stream {
  position: absolute;
  width: 1px;
  pointer-events: none;
  opacity: 0.06;
}

.data-stream::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  animation: streamFall 4s linear 3;
}

.data-stream-1 { left: 8%; height: 100%; }
.data-stream-1::after { animation-delay: 0s; }

.data-stream-2 { left: 92%; height: 100%; }
.data-stream-2::after { animation-delay: -2s; }

/* ========== 移动端优化 ========== */
@media (max-width: 768px) {
  .geo-ring { display: none; }
  .corner-decor { display: none; }
  .data-stream { display: none; }
}

/* === guide-enhance.css === */
/**
 * ===========================================================================
 * 新手引导增强样式 — 玻璃态设计
 * ===========================================================================
 */

/* 遮罩层 — z-index 低于底部栏(100)但高于页面内容(1-2)，确保不遮挡底部栏 */
.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: guideFadeIn 0.3s ease;
}

/* 高亮元素 — 不改变已有定位方式（fixed/absolute/sticky 保持原样） */
.guide-highlight {
  z-index: 99999 !important;
  animation: guidePulse 1.5s ease-in-out 3;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5), 
              0 0 20px rgba(59, 130, 246, 0.3) !important;
}

/* 非定位元素需要 position: relative 才能生效 z-index */
.guide-highlight:not([style*="position: fixed"]):not([style*="position: absolute"]):not([style*="position: sticky"]) {
  position: relative;
}

/* 已定位元素的高亮（JS 动态添加） */
.guide-highlight-positioned {
  z-index: 99999 !important;
  animation: guidePulse 1.5s ease-in-out 3;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5), 
              0 0 20px rgba(59, 130, 246, 0.3) !important;
}

/* 提示气泡滚动条美化 */
.guide-tooltip::-webkit-scrollbar {
  width: 4px;
}



.guide-tooltip::-webkit-scrollbar-track {
  background: transparent;
}
.guide-tooltip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.guide-tooltip::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 提示气泡 */
.guide-tooltip {
  position: fixed;
  z-index: 9990;
  max-width: 320px;
  min-width: 260px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(59, 130, 246, 0.2);
  animation: guideTooltipIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 居中定位 */
.guide-tooltip-center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* 箭头 */
.guide-tooltip::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  transform: rotate(45deg);
}

.guide-tooltip-bottom::before {
  top: -7px;
  left: 50%;
  margin-left: -6px;
  border-right: none;
  border-bottom: none;
}

.guide-tooltip-top::before {
  bottom: -7px;
  left: 50%;
  margin-left: -6px;
  border-left: none;
  border-top: none;
}

.guide-tooltip-left::before {
  right: -7px;
  top: 50%;
  margin-top: -6px;
  border-left: none;
  border-bottom: none;
}

.guide-tooltip-right::before {
  left: -7px;
  top: 50%;
  margin-top: -6px;
  border-right: none;
  border-top: none;
}

.guide-tooltip-center::before {
  display: none;
}

/* 标题 */
.guide-tooltip-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}

/* 描述 */
.guide-tooltip-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* 底部区域 */
.guide-tooltip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 进度 */
.guide-tooltip-progress {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* 按钮组 */
.guide-tooltip-btns {
  display: flex;
  gap: 8px;
}/* 按钮 */
.guide-btn{
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: none;
}

.guide-btn-skip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-btn-skip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.guide-btn-next {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.guide-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* 移动端适配 */
@media (max-width: 480px) {
  .guide-tooltip {
    max-width: calc(100vw - 40px);
    min-width: auto;
    padding: 16px;
  }
  
  .guide-tooltip-title {
    font-size: 15px;
  }
  
  .guide-tooltip-desc {
    font-size: 12px;
  }
}

/* === i18n.css === */
/**
 * ===========================================================================
 * 多语言切换样式
 * ===========================================================================
 */

/* 语言切换器 */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.lang-switcher label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.lang-buttons {
  display: flex;
  gap: 8px;
}.lang-btn{
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
  .lang-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .lang-buttons {
    width: 100%;
  }
  
  .lang-btn {
    flex: 1;
    text-align: center;
  }
}

/* === layout-fix.css === */
/**
 * 综合布局修复 — 图鉴/成就/角色/设置
 */

/* ===== 图鉴网格 ===== */
.codex-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 12px !important;
  padding: 16px !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}.codex-card{
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 8px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
  min-height: 140px !important;
}

.codex-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* ===== 成就网格 ===== */
#page-achievements .preview-header ~ div:not(.menu-toolbar) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 12px !important;
  padding: 16px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}.achievement-card{
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

.achievement-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.achievement-card.locked {
  opacity: 0.5 !important;
  filter: grayscale(0.8) !important;
}

.achievement-icon {
  font-size: 32px !important;
  flex-shrink: 0 !important;
}

.achievement-info {
  flex: 1 !important;
}

.achievement-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 4px !important;
}

.achievement-desc {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ===== 角色卡片 ===== */
.character-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
  padding: 16px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}.character-card{
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}

.character-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-4px) !important;
}

.character-card.selected {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2) !important;
}/* ===== 设置页美化 ===== */
#page-settings .feature-item{
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

#page-settings .feature-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* ===== 缺失页面样式 ===== */
#page-pet.page.active, #page-diary.page.active, #page-workshop.page.active, #page-gacha.page.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 60px 20px !important;
  min-height: 100% !important;
}

.placeholder-page {
  text-align: center !important;
  max-width: 400px !important;
}

.placeholder-icon {
  font-size: 64px !important;
  margin-bottom: 20px !important;
}

.placeholder-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 12px !important;
}

.placeholder-desc {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}.placeholder-btn{
  padding: 12px 32px !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2)) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 12px !important;
  color: #60a5fa !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

.placeholder-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3)) !important;
  transform: translateY(-2px) !important;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .codex-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 8px !important;
  }
  
  #page-achievements .preview-header ~ div:not(.menu-toolbar) {
    grid-template-columns: 1fr !important;
  }
  
  .character-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === loading.css === */
/**
 * ===========================================================================
 * 加载动画样式 — 品牌展示
 * ===========================================================================
 */

#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0F172A 0%, #111827 50%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loadingFadeIn 0.5s ease;
}

#loadingScreen.loading-fade-out {
  animation: loadingFadeOut 0.5s ease forwards;
}

.loading-container {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Logo 区域 */
.loading-logo {
  margin-bottom: 40px;
  animation: loadingLogoEnter 0.8s ease-out;
}

.loading-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: loadingIconPulse 2s ease-in-out 3;
  filter: drop-shadow(0 0 30px rgba(59,130,246,0.5));
}

.loading-title {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #fbbf24 100%);
  color: #fbbf24; /* fallback for no background-clip support */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
  letter-spacing: 4px;
}

.loading-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* 进度条 */
.loading-bar-container {
  width: 280px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f59e0b);
  border-radius: 2px;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

/* 加载提示文字 */
.loading-tip {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  transition: opacity 0.15s ease;
  min-height: 20px;
}

/* 浮动粒子 */
.loading-particles {
  position: absolute;
  inset: -100px;
  pointer-events: none;
  overflow: hidden;
}

.loading-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(99,102,241,0.6);
  border-radius: 50%;
  animation: loadingParticleFloat 4s ease-in-out 3;
}

.loading-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; background: rgba(59,130,246,0.6); }
.loading-particles span:nth-child(2) { left: 20%; top: 60%; animation-delay: 0.5s; background: rgba(167,139,250,0.6); }
.loading-particles span:nth-child(3) { left: 35%; top: 30%; animation-delay: 1s; background: rgba(251,191,36,0.6); }
.loading-particles span:nth-child(4) { left: 50%; top: 70%; animation-delay: 1.5s; background: rgba(52,211,153,0.6); }
.loading-particles span:nth-child(5) { left: 65%; top: 25%; animation-delay: 2s; background: rgba(244,114,182,0.6); }
.loading-particles span:nth-child(6) { left: 75%; top: 55%; animation-delay: 2.5s; background: rgba(59,130,246,0.6); }
.loading-particles span:nth-child(7) { left: 85%; top: 35%; animation-delay: 3s; background: rgba(167,139,250,0.6); }
.loading-particles span:nth-child(8) { left: 90%; top: 65%; animation-delay: 3.5s; background: rgba(251,191,36,0.6); }

/* 背景光晕 */
#loadingScreen::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loadingGlow 3s ease-in-out 3;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .loading-icon { font-size: 60px; }
  .loading-title { font-size: 28px; letter-spacing: 2px; }
  .loading-subtitle { font-size: 12px; }
  .loading-bar-container { width: 220px; }
}

/* === menu-enhance.css === */
/**
 * ===========================================================================
 * 主菜单视觉优化样式
 * ===========================================================================
 */

/* 鼠标跟随光晕 */
.menu-mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}/* 菜单卡片增强 */
.menu-card,
.mode-card{
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 卡片内部光晕 */
.menu-card::before,
.mode-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-card:hover::before,
.mode-card:hover::before {
  opacity: 1;
}

/* 卡片边框光效 */
.menu-card::after,
.mode-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.5), 
    rgba(139, 92, 246, 0.5), 
    rgba(59, 130, 246, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-card:hover::after,
.mode-card:hover::after {
  opacity: 1;
}

/* 分类标题增强 */
.menu-section-title,
.section-header {
  position: relative;
  overflow: visible;
}

.section-header-glow {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.5), 
    rgba(139, 92, 246, 0.5), 
    rgba(59, 130, 246, 0.5), 
    transparent);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-section-title:hover .section-header-glow,
.section-header:hover .section-header-glow {
  opacity: 1;
}

/* 图标动画 */
.section-icon,
.menu-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}/* 菜单项悬浮效果增强 */
.menu-item{
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
  transform: translateX(5px);
  background: rgba(59, 130, 246, 0.1);
}

/* 分类展开动画 */
.menu-section-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

/* 菜单卡片图标悬浮 */
.menu-card:hover .menu-card-icon,
.mode-card:hover .mode-card-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 10px currentColor);
}.menu-card-icon,
.mode-card-icon{
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 菜单标题文字光效 */
.menu-card:hover .menu-card-title,
.mode-card:hover .mode-card-title {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #8b5cf6; /* fallback for no background-clip support */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}.menu-card-title,
.mode-card-title{
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* 菜单描述文字 */
.menu-card:hover .menu-card-desc,
.mode-card:hover .mode-card-desc {
  color: rgba(255, 255, 255, 0.8);
}

.menu-card-desc,
.mode-card-desc {
  transition: color 0.3s ease;
}

/* 菜单徽章闪烁 */
.menu-badge,
.mode-badge {
  animation: badgePulse 2s ease-in-out 3;
}

/* 响应式 */
@media (max-width: 768px) {
  .menu-mouse-glow {
    display: none;
  }
  
  .menu-card::before,
  .mode-card::before {
    display: none;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .menu-card,
  .mode-card,
  .menu-item,
  .section-icon,
  .menu-icon {
    transition: none !important;
  }
  
  .menu-mouse-glow {
    display: none;
  }
}/* === menu-premium.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.1.0 Premium — 高级菜单样式
 * ===========================================================================
 * 设计理念：简洁、现代、有质感
 * ===========================================================================
 */

/* ===== 分类按钮增强 ===== */
.menu-cat-btn{
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.menu-cat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-cat-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%) !important;
  border-color: rgba(255,255,255,0.15) !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.3),
    0 0 20px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.menu-cat-btn:hover::before {
  opacity: 1;
}

.menu-cat-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

.cat-icon {
  font-size: 24px !important;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.cat-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #E8EAED !important;
  display: block;
  letter-spacing: 0.5px;
}

.cat-count {
  font-size: 12px !important;
  color: #9AA0AB !important;
  display: block;
  margin-top: 4px;
}

/* ===== 学习区/挑战区标题 ===== */
.menu-section-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #9AA0AB !important;
  padding: 12px 0 8px !important;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
  margin-left: 12px;
}

.collapse-arrow {
  font-size: 12px !important;
  color: #5F6570 !important;
  transition: transform 0.3s ease;
}/* ===== 模式按钮增强 ===== */
.mode-btn{
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 2px solid rgba(255,255,255,0.08) !important;
  border-radius: 36px !important;
  padding: 48px 24px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
  min-height: 220px !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.mode-btn .mode-icon {
  font-size: 72px !important;
  margin-bottom: 14px !important;
}

.mode-btn .mode-name {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-top: 12px !important;
}

.mode-btn .mode-desc {
  font-size: 15px !important;
  margin-top: 8px !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,0.65) !important;
}

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mode-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%) !important;
  border-color: rgba(255,255,255,0.12) !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.25),
    0 0 12px rgba(59, 130, 246, 0.08) !important;
}

.mode-btn:hover::before {
  opacity: 1;
}

.mode-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

.mode-icon {
  font-size: 22px !important;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mode-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #E8EAED !important;
  display: block;
  letter-spacing: 0.3px;
}

.mode-desc {
  font-size: 11px !important;
  color: #5F6570 !important;
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}

.mode-badge {
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #9AA0AB !important;
  box-shadow: none !important;
  position: absolute;
  top: 8px;
  right: 8px;
}

/* ===== 徽章特殊样式 ===== */
.mode-badge[style*="linear-gradient"] {
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,107,0,0.2)) !important;
  color: #FFD700 !important;
  border: 1px solid rgba(255,215,0,0.3);
}/* ===== 返回分类按钮 ===== */
.back-to-categories{
  font-size: 13px !important;
  color: #9AA0AB !important;
  padding: 8px 16px !important;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-to-categories:hover {
  color: #5BA4CF !important;
}

.back-to-categories span {
  transition: transform 0.2s ease;
}

.back-to-categories:hover span {
  transform: translateX(-2px);
}

/* ===== 底部状态栏 ===== */
.status-bar {
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%) !important;
  backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 12px 16px !important;
}

/* ===== 进度条增强 ===== */
.xp-bar-container {
  background: rgba(0,0,0,0.3) !important;
  border-radius: 4px !important;
  overflow: hidden;
  height: 6px !important;
}

.xp-bar-fill {
  background: linear-gradient(90deg, #5BA4CF, #8B5CF6) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 8px rgba(91, 164, 207, 0.4) !important;
}

/* ===== 移动端优化 ===== */
@media (max-width: 768px) {
  .menu-cat-btn {
    padding: 16px 20px !important;
  }
  
  .mode-btn {
    padding: 14px 10px !important;
  }
  
  .cat-icon {
    font-size: 20px !important;
  }
  
  .cat-title {
    font-size: 14px !important;
  }
}

/* === real-cases.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.2.0 — 真实案例还原模式样式 (比赛级)
 * ===========================================================================
 */

/* ===== 页面容器 ===== */
#page-real-cases {
  padding: 0 !important;
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  background: transparent;
}

#realCasesContent {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== 案例介绍 ===== */
.cases-intro {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: rcFadeIn 0.6s ease-out;
}

.cases-intro h3 {
  font-size: 20px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 8px 0;
}

.cases-intro p {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* ===== 案例卡片列表 ===== */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rcFadeIn 0.6s ease-out 0.1s both;
}.case-card{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.case-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.case-card-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.case-card-info {
  flex: 1;
  min-width: 0;
}

.case-card-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

.case-card-info p {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.case-card-arrow{
  font-size: 18px;
  color: rgba(148, 163, 184, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.case-card:hover .case-card-arrow {
  color: #60A5FA;
  transform: translateX(4px);
}

/* ===== 案例头部 ===== */
.case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: rcFadeIn 0.5s ease-out;
}

.case-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.case-title-group h3 {
  font-size: 20px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

.case-title-group p {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
}

/* ===== 影响信息 ===== */
.case-impact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  animation: rcFadeIn 0.5s ease-out 0.1s both;
}

.impact-label {
  font-size: 11px;
  font-weight: 600;
  color: #FCA5A5;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-text {
  font-size: 13px;
  color: rgba(248, 250, 252, 0.8);
}

/* ===== 时间线 ===== */
.case-timeline {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rcFadeIn 0.5s ease-out 0.2s both;
}

.case-timeline h4 {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0 0 14px 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 43px;
  top: 30px;
  bottom: -10px;
  width: 2px;
  background: rgba(96, 165, 250, 0.2);
}

.timeline-time {
  font-size: 12px;
  font-weight: 600;
  color: #60A5FA;
  min-width: 56px;
  padding-top: 2px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60A5FA;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.timeline-event {
  font-size: 13px;
  color: rgba(248, 250, 252, 0.7);
  line-height: 1.5;
  flex: 1;
}

/* ===== 数据来源 ===== */
.case-source {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  animation: rcFadeIn 0.5s ease-out 0.3s both;
}

/* ===== 情景模拟 ===== */
.scenario-header {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: rcFadeIn 0.5s ease-out;
}

.scenario-setting {
  font-size: 16px;
  font-weight: 600;
  color: #F8FAFC;
}

.scenario-desc {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.7;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rcFadeIn 0.5s ease-out 0.1s both;
}

/* ===== 选择按钮 ===== */
.scenario-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rcFadeIn 0.5s ease-out 0.2s both;
}.choice-btn{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.8);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.choice-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-1px);
}

.choice-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.choice-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.choice-text {
  flex: 1;
}

.choice-btn.correct-choice {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

.choice-btn.correct-choice .choice-letter {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.choice-btn.wrong-choice {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}

.choice-btn.wrong-choice .choice-letter {
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}

.choice-btn.highlight-correct {
  border-color: rgba(16, 185, 129, 0.3);
}

/* ===== 结果反馈 ===== */
.choice-result {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  animation: rcSlideIn 0.4s ease-out;
}

.choice-result.correct {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.choice-result.wrong {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.result-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.result-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.choice-result.correct .result-text h4 {
  color: #34D399;
}

.choice-result.wrong .result-text h4 {
  color: #FCA5A5;
}

.result-text p {
  font-size: 13px;
  color: rgba(248, 250, 252, 0.7);
  margin: 0;
  line-height: 1.6;
}

/* ===== 知识总结 ===== */
.knowledge-header {
  text-align: center;
  padding: 20px;
  animation: rcFadeIn 0.5s ease-out;
}

.knowledge-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 6px 0;
}

.knowledge-header p {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.6);
  margin: 0;
}

.knowledge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rcFadeIn 0.5s ease-out 0.1s both;
}

.knowledge-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.knowledge-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.knowledge-text {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.6;
}/* ===== 按钮 ===== */
.case-next-btn{
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.3);
  animation: rcFadeIn 0.5s ease-out 0.4s both;
}

.case-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.4);
}

.knowledge-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  animation: rcFadeIn 0.5s ease-out 0.2s both;
}.case-action-btn{
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.case-action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.7);
}

.case-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.case-action-btn.primary {
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  border: none;
  color: white;
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.3);
}

.case-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.4);
}

/* ===== 动画 ===== */

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  #realCasesContent {
    padding: 12px;
  }
  
  .case-header {
    flex-direction: column;
    text-align: center;
  }
  
  .knowledge-actions {
    flex-direction: column;
  }
}

/* === settings.css === */
/**
 * ===========================================================================
 * 设置页样式 — 现代卡片式布局
 * ===========================================================================
 */

/* ===== 设置页容器 ===== */
#page-settings {
  padding: 0 16px 100px !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  overflow-y: auto !important;
}

/* ===== 头部 ===== */
.settings-header {
  text-align: center;
  padding: 24px 0 20px;
  margin-bottom: 8px;
}
.settings-header-icon {
  font-size: 48px;
  margin-bottom: 8px;
  animation: settingsIconFloat 4s ease-in-out 3;
}
.settings-title {
  font-size: 24px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 4px;
}
.settings-subtitle {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
}

/* ===== 容器 ===== */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== 分组标题 ===== */
.settings-section {
  animation: settingsFadeIn 0.4s ease backwards;
}
.settings-section:nth-child(1) { animation-delay: 0s; }
.settings-section:nth-child(2) { animation-delay: 0.05s; }
.settings-section:nth-child(3) { animation-delay: 0.1s; }
.settings-section:nth-child(4) { animation-delay: 0.15s; }
.settings-section:nth-child(5) { animation-delay: 0.2s; }

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-left: 4px;
}
.settings-section-icon {
  font-size: 14px;
}/* ===== 设置卡片 ===== */
.settings-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  margin-bottom: 8px;
}
.settings-card:last-child {
  margin-bottom: 0;
}
.settings-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.settings-card:active {
  transform: scale(0.995);
}

/* 危险卡片 */
.settings-card-danger {
  border-color: rgba(239, 68, 68, 0.1);
}
.settings-card-danger:hover {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.03);
}

/* 左侧 */
.settings-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.settings-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.settings-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.settings-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.4;
}
.settings-card-desc {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  line-height: 1.4;
}

/* 右侧 */
.settings-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}
.settings-card-value {
  font-size: 12px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.7);
  white-space: nowrap;
}
.settings-chevron {
  font-size: 18px;
  color: rgba(148, 163, 184, 0.4);
  font-weight: 300;
  transition: color 0.2s, transform 0.2s;
}
.settings-card:hover .settings-chevron {
  color: rgba(148, 163, 184, 0.7);
  transform: translateX(2px);
}

/* ===== Toggle 开关 ===== */
.settings-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}
.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}.settings-toggle-slider{
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}.settings-toggle-slider::before{
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.settings-toggle input:checked + .settings-toggle-slider {
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  border-color: rgba(59, 130, 246, 0.3);
}
.settings-toggle input:checked + .settings-toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}
.settings-toggle input:focus + .settings-toggle-slider {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ===== 音量滑块 ===== */
.settings-volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.settings-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}
.settings-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.settings-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  border: none;
}
.settings-volume-value {
  font-size: 12px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.7);
  min-width: 36px;
  text-align: right;
}

/* ===== 浅色主题适配 ===== */
body.theme-dawn-light .settings-title,
body.theme-warm-light .settings-title {
  color: #1E293B;
}
body.theme-dawn-light .settings-subtitle,
body.theme-warm-light .settings-subtitle {
  color: rgba(30, 41, 59, 0.5);
}
body.theme-dawn-light .settings-section-title,
body.theme-warm-light .settings-section-title {
  color: rgba(30, 41, 59, 0.4);
}
body.theme-dawn-light .settings-card,
body.theme-warm-light .settings-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}
body.theme-dawn-light .settings-card:hover,
body.theme-warm-light .settings-card:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}
body.theme-dawn-light .settings-card-name,
body.theme-warm-light .settings-card-name {
  color: #1E293B;
}
body.theme-dawn-light .settings-card-desc,
body.theme-warm-light .settings-card-desc {
  color: rgba(30, 41, 59, 0.5);
}
body.theme-dawn-light .settings-card-value,
body.theme-warm-light .settings-card-value {
  color: rgba(30, 41, 59, 0.5);
}
body.theme-dawn-light .settings-chevron,
body.theme-warm-light .settings-chevron {
  color: rgba(30, 41, 59, 0.3);
}
body.theme-dawn-light .settings-toggle-slider,
body.theme-warm-light .settings-toggle-slider {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}
body.theme-dawn-light .settings-toggle-slider::before,
body.theme-warm-light .settings-toggle-slider::before {
  background: rgba(0, 0, 0, 0.3);
}
body.theme-dawn-light .settings-volume-slider,
body.theme-warm-light .settings-volume-slider {
  background: rgba(0, 0, 0, 0.08);
}
body.theme-dawn-light .settings-volume-value,
body.theme-warm-light .settings-volume-value {
  color: rgba(30, 41, 59, 0.5);
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  .settings-header {
    padding: 16px 0 12px;
  }
  .settings-header-icon {
    font-size: 36px;
  }
  .settings-title {
    font-size: 20px;
  }
  .settings-card {
    padding: 12px 14px;
  }
  .settings-card-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .settings-card-name {
    font-size: 13px;
  }
  .settings-card-desc {
    font-size: 11px;
  }
  .settings-volume-slider {
    width: 80px;
  }
}

/* === share.css === */
/**
 * ===========================================================================
 * 社交分享样式
 * ===========================================================================
 */

/* 分享弹窗 */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shareOverlayIn 0.3s ease;
}

.share-modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(59, 130, 246, 0.1);
  animation: shareModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.share-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #f8fafc;
}.share-modal-close{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.share-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.share-modal-body {
  margin-bottom: 20px;
}

/* 模板选择器 */
.share-template-selector {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}.share-template-btn{
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.share-template-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.share-template-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

/* 操作按钮 */
.share-modal-actions {
  display: flex;
  gap: 10px;
}.share-download-btn{
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.share-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}/* 浮动分享按钮 */
.share-btn-float{
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9998;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  color: #60a5fa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-btn-float:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

/* 响应式 */
@media (max-width: 768px) {
  .share-modal-content {
    padding: 16px;
    max-width: 95%;
  }
  
  .share-template-selector {
    flex-direction: column;
  }
  
  .share-template-btn {
    min-width: auto;
  }
  
  .share-btn-float {
    bottom: 80px;
    right: 15px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* === transitions.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.2.0 — 转场动画增强
 * ===========================================================================
 * 
 * 优化内容：
 * 1. 更流畅的页面切换动画（淡入淡出 + 轻微缩放）
 * 2. 高级毛玻璃转场效果
 * 3. 页面进入/退出的差异化动画
 * 4. 更柔和的光晕过渡
 * 
 * @version 1.2.0
 * ===========================================================================
 */

/* ===== 页面切换基础动画 ===== */
.page {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* 已移除重复的 .page:not(.active) 定义，该规则已在 index.html 中以 !important 形式定义 */

.page.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ===== 菜单页专属动画 ===== */
#page-menu.active .mode-btn {
  animation: menuItemSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#page-menu.active .mode-btn:nth-child(1) { animation-delay: 0.05s; }
#page-menu.active .mode-btn:nth-child(2) { animation-delay: 0.1s; }
#page-menu.active .mode-btn:nth-child(3) { animation-delay: 0.15s; }
#page-menu.active .mode-btn:nth-child(4) { animation-delay: 0.2s; }
#page-menu.active .mode-btn:nth-child(5) { animation-delay: 0.25s; }
#page-menu.active .mode-btn:nth-child(6) { animation-delay: 0.3s; }
#page-menu.active .mode-btn:nth-child(7) { animation-delay: 0.35s; }
#page-menu.active .mode-btn:nth-child(8) { animation-delay: 0.4s; }
#page-menu.active .mode-btn:nth-child(9) { animation-delay: 0.45s; }
#page-menu.active .mode-btn:nth-child(10) { animation-delay: 0.5s; }
#page-menu.active .mode-btn:nth-child(11) { animation-delay: 0.55s; }
#page-menu.active .mode-btn:nth-child(12) { animation-delay: 0.6s; }/* ===== 分类按钮切换动画 ===== */
.menu-cat-btn{
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-cat-btn.active {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3),
              inset 0 0 20px rgba(59, 130, 246, 0.1);
}

/* ===== 卡片进入动画 ===== */
.case-card,
.cert-level-card {
  animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }
.case-card:nth-child(4) { animation-delay: 0.4s; }
.case-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== 弹窗进入动画 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-overlay:not(.active) {
  opacity: 0;
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-content {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.35s ease;
}

.modal-overlay:not(.active) .modal-content {
  transform: scale(0.85) translateY(30px);
  opacity: 0;
}

.modal-overlay.active .modal-content {
  animation: modalElasticIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalElasticIn {
  0% { transform: scale(0.85) translateY(30px); opacity: 0; }
  55% { transform: scale(1.04) translateY(-4px); opacity: 1; }
  75% { transform: scale(0.98) translateY(2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.correct-pulse {
  animation: correctPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes correctPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(0, 230, 118, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.wrong-shake {
  animation: wrongShake 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

/* ===== 按钮点击反馈 ===== */
.mode-btn:active,
.tool-btn:active,
button:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* ===== 底部导航栏切换高亮 ===== */
.menu-toolbar .tool-btn {
  position: relative;
  overflow: hidden;
}.menu-toolbar .tool-btn::before{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.menu-toolbar .tool-btn.active::before {
  width: 60%;
}

.menu-toolbar .tool-btn:hover::before {
  width: 40%;
}

/* ===== 标题进入动画 ===== */
.game-header,
.page-header {
  animation: headerSlideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* ===== 列表项交错动画 ===== */
.quiz-opt,
.scenario-opt,
.choice-btn {
  animation: optionFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.quiz-opt:nth-child(1),
.choice-btn:nth-child(1) { animation-delay: 0.1s; }
.quiz-opt:nth-child(2),
.choice-btn:nth-child(2) { animation-delay: 0.2s; }
.quiz-opt:nth-child(3),
.choice-btn:nth-child(3) { animation-delay: 0.3s; }
.quiz-opt:nth-child(4),
.choice-btn:nth-child(4) { animation-delay: 0.4s; }

/* ===== 进度条动画 ===== */
.hp-bar,
.exp-bar,
.level-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 数字变化动画 ===== */
.score-display,
.coin-display {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-display.updated,
.coin-display.updated {
  transform: scale(1.2);
}

/* ===== 加载状态脉冲 ===== */

.loading {
  animation: loadingPulse 1.5s ease-in-out 3;
}

/* ===== 成功/失败反馈增强 ===== */

.correct {
  animation: successBounce 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wrong {
  animation: errorShake 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}/* ===== 悬浮卡片效果 ===== */
.mode-btn:hover,
.case-card:hover{
  transform: translateY(-4px) scale(1.02);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 滚动条美化 ===== */
.page::-webkit-scrollbar {
  width: 6px;
}


.page {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.02);
}


.page::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.page::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.page::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === ui-ultimate.css === */
/**
 * ===========================================================================
 * 界面终极优化 v2.0 — 设置/成就/角色/统计 全面美化
 * ===========================================================================
 */

/* ===== 通用页面容器优化 ===== */
.page-content {
  padding-top: 20px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

.page-content .game-header {
  text-align: center !important;
  margin-bottom: 24px !important;
  padding: 20px 0 !important;
}

.page-content .game-header .mode-label {
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

/* ===== 设置页 — 卡片式布局 ===== */
#page-settings {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}

#page-settings .game-header {
  text-align: center !important;
  margin-bottom: 24px !important;
  padding: 20px 0 !important;
}

#page-settings .game-header > div:first-child {
  font-size: 48px !important;
  margin-bottom: 8px !important;
}

#page-settings .game-header h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.9) !important;
  margin: 0 !important;
}

/* 设置项容器 */
#page-settings > div:not(.game-header):not(.back-float) {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}/* 每个设置项 */
#page-settings h4{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

#page-settings h4:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(59,130,246,0.3) !important;
  transform: translateY(-1px) !important;
}

/* 设置项描述 — v72 修复：保留副标题和弹窗说明 */
#page-settings h4 + p,
#page-settings .settings-card-desc {
  display: none !important;
}
#page-settings .settings-subtitle,
#page-settings #themeModal p {
  display: block !important;
}/* 设置项右侧按钮/状态 */
#page-settings .btn,
#page-settings button,
#page-settings [onclick]{
  margin-left: auto !important;
  padding: 6px 16px !important;
  background: rgba(59,130,246,0.15) !important;
  border: 1px solid rgba(59,130,246,0.2) !important;
  border-radius: 8px !important;
  color: #60a5fa !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

#page-settings .btn:hover,
#page-settings button:hover {
  background: rgba(59,130,246,0.25) !important;
}

/* 开关状态 */
#page-settings .toggle-on,
#page-settings [data-on="true"] {
  color: #34d399 !important;
}

/* 音量滑块 */
#page-settings input[type="range"] {
  width: 120px !important;
  margin-left: auto !important;
  accent-color: #3b82f6 !important;
}

/* ===== 成就页 — 网格卡片布局 ===== */
#page-achievements {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

#page-achievements .game-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}

#page-achievements .game-header > div:first-child {
  font-size: 48px !important;
  margin-bottom: 8px !important;
}

/* 成就列表容器 — 强制网格 */
#page-achievements > div:not(.game-header):not(.back-float):not(.menu-toolbar) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
}/* 每个成就卡片 */
#page-achievements .achievement-item,
#page-achievements [class*="achievement"]{
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

#page-achievements .achievement-item:hover,
#page-achievements [class*="achievement"]:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(59,130,246,0.3) !important;
  transform: translateY(-2px) !important;
}

/* 已解锁成就 */
#page-achievements .achievement-item.unlocked,
#page-achievements [class*="achievement"].unlocked {
  border-color: rgba(52,211,153,0.3) !important;
  background: rgba(52,211,153,0.05) !important;
}

/* 成就图标 */
#page-achievements .achievement-icon {
  font-size: 28px !important;
  flex-shrink: 0 !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.05) !important;
  border-radius: 12px !important;
}

/* 成就信息 */
#page-achievements .achievement-info {
  flex: 1 !important;
  min-width: 0 !important;
}

#page-achievements .achievement-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 4px !important;
}

#page-achievements .achievement-desc {
  font-size: 12px !important;
  color: rgba(255,255,255,0.5) !important;
}

/* ===== 角色页 — 网格卡片布局 ===== */
#page-character {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

#page-character .game-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}

/* 角色列表容器 */
#page-character > div:not(.game-header):not(.back-float):not(.menu-toolbar) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
}/* 每个角色卡片 */
#page-character .character-card,
#page-character [class*="character"]{
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}

#page-character .character-card:hover,
#page-character [class*="character"]:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(59,130,246,0.3) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}

/* 已选择角色 */
#page-character .character-card.selected,
#page-character [class*="character"].selected {
  border-color: rgba(59,130,246,0.5) !important;
  background: rgba(59,130,246,0.08) !important;
  box-shadow: 0 0 20px rgba(59,130,246,0.2) !important;
}

/* 角色图标 */
#page-character .character-icon {
  font-size: 48px !important;
  margin-bottom: 12px !important;
}

/* 角色名称 */
#page-character .character-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 8px !important;
}

/* 角色技能 */
#page-character .character-skill {
  font-size: 12px !important;
  color: rgba(255,255,255,0.5) !important;
  line-height: 1.5 !important;
}

/* ===== 统计页 — 数据卡片布局 ===== */
#page-stats {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

#page-stats .game-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}

/* 等级进度条 */
#page-stats .level-bar,
#page-stats [class*="level"] {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

/* 统计数据网格 */
#page-stats > div:not(.game-header):not(.back-float):not(.menu-toolbar):not(.level-bar) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
}/* 每个统计卡片 */
#page-stats .stat-card,
#page-stats [class*="stat"]{
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  text-align: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

#page-stats .stat-card:hover,
#page-stats [class*="stat"]:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(59,130,246,0.2) !important;
}

/* 统计数值 */
#page-stats .stat-value {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 4px !important;
}

/* 统计标签 */
#page-stats .stat-label {
  font-size: 12px !important;
  color: rgba(255,255,255,0.5) !important;
}

/* ===== 商城页优化 ===== */
#page-shop {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

#page-shop .game-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}

/* 商品网格 */
#page-shop > div:not(.game-header):not(.back-float):not(.menu-toolbar) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
}/* 商品卡片 */
#page-shop .shop-item,
#page-shop [class*="shop-item"]{
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  text-align: center !important;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

#page-shop .shop-item:hover,
#page-shop [class*="shop-item"]:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(59,130,246,0.3) !important;
  transform: translateY(-2px) !important;
}

/* ===== 百科页优化 ===== */
/* 商城商品文字颜色 — v73 修复 */
#page-shop .shop-name { color: rgba(255,255,255,0.9) !important; }
#page-shop .shop-desc { color: rgba(255,255,255,0.6) !important; }
#page-shop .shop-price { color: #FFD700 !important; }
#page-shop .shop-icon { font-size: 2rem !important; margin-bottom: 8px !important; }
#page-encyclopedia {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

/* ===== 日历页优化 ===== */
#page-calendar {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}

/* ===== 排行榜优化 ===== */
#page-leaderboard {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  #page-achievements > div:not(.game-header):not(.back-float):not(.menu-toolbar) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
  
  #page-character > div:not(.game-header):not(.back-float):not(.menu-toolbar) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  #page-stats > div:not(.game-header):not(.back-float):not(.menu-toolbar):not(.level-bar) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  #page-shop > div:not(.game-header):not(.back-float):not(.menu-toolbar) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  #page-character > div:not(.game-header):not(.back-float):not(.menu-toolbar) {
    grid-template-columns: 1fr !important;
  }
  
  #page-stats > div:not(.game-header):not(.back-float):not(.menu-toolbar):not(.level-bar) {
    grid-template-columns: 1fr !important;
  }
}

/* ===== 通用动画 ===== */
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > * {
  animation: fadeInUp 0.3s ease backwards;
}

/* 交错动画 */
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(1) { animation-delay: 0.02s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(2) { animation-delay: 0.04s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(3) { animation-delay: 0.06s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(4) { animation-delay: 0.08s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(5) { animation-delay: 0.10s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(6) { animation-delay: 0.12s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(7) { animation-delay: 0.14s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(8) { animation-delay: 0.16s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(9) { animation-delay: 0.18s; }
.page-content > div:not(.game-header):not(.back-float):not(.menu-toolbar) > *:nth-child(10) { animation-delay: 0.20s; }/* ===== 返回按钮美化 ===== */
.back-float{
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 100 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
  padding: 0 !important;
  min-width: auto !important;
}

.back-float:hover {
  background: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.9) !important;
  transform: scale(1.05) !important;
}

/* === v5-glass-3d.css === */
/**
 * ===========================================================================
 * 应急小达人 v1.1.0 — 液态玻璃 + 3D 沉浸系统
 * ===========================================================================
 * 
 * 【模块说明】
 * v5-glass-3d.css 是游戏的核心视觉增强样式表，
 * 实现了苹果风格的液态玻璃(Glassmorphism)效果和 3D 透视交互。
 * 
 * 【设计灵感】
 * 参考 Apple iOS 26+ Liquid Glass 设计语言：
 * - 毛玻璃模糊背景 (backdrop-filter: blur)
 * - 半透明渐变边框
 * - 内发光高光效果 (inset box-shadow)
 * - 微妙的光泽反射 (::before 伪元素)
 * 
 * 【核心样式类】
 * 1. 液态玻璃核心材质
 *    - .quiz-opt, .scenario-opt: 答题选项玻璃卡片
 *    - .quiz-card, .scenario-card: 题目/情景卡片
 *    - .mode-btn: 模式选择按钮
 *    - .survival-hud: 生存模式 HUD
 * 
 * 2. 3D 透视效果
 *    - transform-style: preserve-3d
 *    - perspective: 1000px
 *    - rotateX/Y + translateZ 组合
 * 
 * 3. 动画系统
 *    - @keyframes glassShimmer: 玻璃光泽扫过
 *    - @keyframes float3D: 3D 悬浮漂浮
 *    - @keyframes neonPulse: 霓虹脉冲发光
 * 
 * 4. 交互状态
 *    - :hover 3D 倾斜 + 光晕增强
 *    - :active 按下缩放反馈
 *    - .active 选中状态高亮
 * 
 * 【浏览器兼容】
 * - backdrop-filter: -webkit- 前缀兼容 Safari
 * - 降级方案: 不支持时回退到半透明背景
 * 
 * 【性能优化】
 * - 使用 will-change 提示浏览器优化渲染
 * - 限制 blur 半径在 20-30px 范围内
 * - 避免在动画元素上使用 backdrop-filter
 * 
 * @version 5.0 (glass-3d-unified)
 * @date 2026-06-05
 * @author 应急小达人开发团队
 * ===========================================================================
 */
/* ============================================
   应急小达人 — 液态玻璃 + 3D 沉浸系统
   v5-glass-3d-unified
   ============================================ */

:root {
  --glass-blur: 20px;
  --glass-saturate: 1.6;
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --glass-highlight: rgba(255,255,255,0.15);
  --glass-shadow: rgba(0,0,0,0.3);
  --accent-cyan: #00d4ff;
  --accent-purple: #a855f7;
  --accent-green: #00e676;
  --accent-red: #ff1744;
  --accent-orange: #ff9800;
  --perspective: 1000px;
}

body {
  perspective: 1200px;
  perspective-origin: 50% 40%;
  overflow-x: hidden;
}

.page { transform-style: preserve-3d; }

/* ===== 液态玻璃核心材质 ===== */
.quiz-opt, .scenario-opt, .quiz-card, .quiz-content,
.scenario-card, .quiz-exp-box, .explanation-box,
.mode-btn, .survival-hud, .result-box, .scenario-feedback {
  position: relative;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.06) 100%);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(1.05);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--glass-shadow), inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 rgba(255,255,255,0.03);
  transform-style: preserve-3d;
}

/* 液态玻璃内反光层 */
.quiz-opt::before, .scenario-opt::before, .quiz-card::before,
.quiz-content::before, .scenario-card::before, .mode-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 60%, transparent 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
  z-index: -1;
}

/* 液态玻璃边缘高光 */
.quiz-opt::after, .scenario-opt::after, .quiz-card::after,
.quiz-content::after, .scenario-card::after {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 30%, rgba(0,212,255,0.3) 50%, rgba(255,255,255,0.4) 70%, transparent 100%);
  border-radius: 2px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.3s;
}

/* ===== 3D 选项卡片 ===== */
.quiz-options, .scenario-options, .pk-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
}.quiz-opt, .scenario-opt{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  color: #e0e0e0;
  font-size: 0.95em;
  line-height: 1.5;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: perspective(var(--perspective)) rotateX(0deg) rotateY(0deg) translateZ(0px);
  will-change: transform, box-shadow;
}

.quiz-opt .opt-label, .scenario-opt .opt-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(168,85,247,0.15));
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent-cyan);
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  text-shadow: 0 0 8px rgba(0,212,255,0.5);
  transform: translateZ(8px);
  position: relative; z-index: 3;
}

.quiz-opt .opt-text, .scenario-opt .opt-text {
  transform: translateZ(4px);
  position: relative; z-index: 3;
}

/* 悬停 — 3D 翘起 + 液态玻璃高亮 */
.quiz-opt:hover, .scenario-opt:hover {
  transform: perspective(var(--perspective)) rotateX(-3deg) rotateY(2deg) translateZ(16px) scale(1.02);
  border-color: rgba(0,212,255,0.4);
  background: linear-gradient(135deg, rgba(0,212,255,0.12) 0%, rgba(168,85,247,0.08) 50%, rgba(0,212,255,0.06) 100%);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,255,0.12), 0 0 80px rgba(0,212,255,0.06), inset 0 1px 0 rgba(255,255,255,0.2);
}

.quiz-opt:hover::after, .scenario-opt:hover::after {
  opacity: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.6) 30%, rgba(168,85,247,0.5) 50%, rgba(0,212,255,0.6) 70%, transparent 100%);
}

.quiz-opt:active, .scenario-opt:active {
  transform: perspective(var(--perspective)) rotateX(1deg) rotateY(-1deg) translateZ(-4px) scale(0.98);
  transition-duration: 0.1s;
}

/* 正确 — 液态玻璃绿光 */
.quiz-opt.correct, .scenario-opt.correct {
  background: linear-gradient(135deg, rgba(0,230,118,0.18) 0%, rgba(0,230,118,0.06) 100%) !important;
  border-color: rgba(0,230,118,0.5) !important;
  box-shadow: 0 12px 40px rgba(0,230,118,0.25), 0 0 60px rgba(0,230,118,0.12), 0 0 120px rgba(0,230,118,0.06), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: perspective(var(--perspective)) translateZ(30px) scale(1.03) !important;
  color: #69f0ae;
}

.quiz-opt.correct .opt-label {
  background: linear-gradient(135deg, rgba(0,230,118,0.35), rgba(0,230,118,0.15));
  border-color: rgba(0,230,118,0.5);
  color: #00e676;
}

.quiz-opt.correct::after {
  background: linear-gradient(90deg, transparent, rgba(0,230,118,0.6), transparent) !important;
  opacity: 1;
}

/* 错误 — 液态玻璃红光 + 抖动 */
.quiz-opt.wrong, .scenario-opt.wrong {
  background: linear-gradient(135deg, rgba(255,23,68,0.18) 0%, rgba(255,23,68,0.06) 100%) !important;
  border-color: rgba(255,23,68,0.5) !important;
  box-shadow: 0 8px 30px rgba(255,23,68,0.25), 0 0 50px rgba(255,23,68,0.1), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  transform: perspective(var(--perspective)) rotateX(2deg) rotateY(-3deg) translateZ(-8px) scale(0.97) !important;
  color: #ff5252;
  animation: wrongShake3D 0.6s ease;
}

.quiz-opt.wrong .opt-label {
  background: linear-gradient(135deg, rgba(255,23,68,0.35), rgba(255,23,68,0.15));
  border-color: rgba(255,23,68,0.5);
  color: #ff1744;
}

.quiz-opt.wrong::after {
  background: linear-gradient(90deg, transparent, rgba(255,23,68,0.6), transparent) !important;
  opacity: 1;
}

/* 禁用态 */
.quiz-opt.disabled, .scenario-opt.disabled {
  pointer-events: none;
  opacity: 0.4;
  filter: grayscale(0.5) brightness(0.8);
  transform: none !important;
}

.quiz-opt.disabled.correct, .scenario-opt.disabled.correct {
  opacity: 1 !important;
  filter: none !important;
}

/* ===== 3D 题目卡片 ===== */
.quiz-card, .quiz-content, .scenario-card {
  padding: 28px 24px;
  width: 100%;
  max-width: 500px;
  animation: card3DGlassIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-card::after, .quiz-content::after, .scenario-card::after {
  bottom: -10px; left: 5%; right: 5%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.35) 0%, transparent 70%);
  filter: blur(10px);
  transform: translateZ(-15px);
  z-index: -1;
}

/* ===== 3D 灾害图标 ===== */
.disaster-icon, .quiz-disaster-icon, .scenario-icon {
  font-size: 3.2em;
  text-align: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  transform-style: preserve-3d;
  animation: icon3DGlassFloat 5s ease-in-out 3;
}

/* ===== 题目文字 ===== */
.quiz-question {
  font-size: 1.15em;
  font-weight: 600;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transform: translateZ(6px);
  position: relative; z-index: 3;
}

/* ===== 解析框 ===== */
.quiz-exp-box, .explanation-box {
  padding: 20px;
  width: 100%;
  max-width: 500px;
  animation: exp3DGlassIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exp-text {
  font-size: 0.95em;
  color: #b0bec5;
  line-height: 1.6;
  margin-bottom: 10px;
  transform: translateZ(4px);
  position: relative; z-index: 3;
}

.tip-text {
  font-size: 0.9em;
  color: #80cbc4;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,212,255,0.04));
  border-radius: 12px;
  border-left: 3px solid rgba(0,212,255,0.5);
  backdrop-filter: blur(10px);
  transform: translateZ(4px);
  position: relative; z-index: 3;
}

/* ===== 进度条 ===== */
.quiz-progress-bar {
  width: 100%; max-width: 500px; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
  transform: translateZ(4px);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 16px rgba(0,212,255,0.4), 0 0 40px rgba(0,212,255,0.15);
  transform: translateZ(4px);
}

.quiz-timer {
  width: 100%; max-width: 500px; height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  transform: translateZ(4px);
}

.quiz-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e676, #ffea00, #ff1744);
  border-radius: 4px;
  transition: width 0.3s linear;
  box-shadow: 0 0 12px rgba(255,234,0,0.3);
}

/* ===== 头部信息栏 ===== */
.quiz-header, .scenario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; max-width: 500px;
  padding: 10px 0;
  margin-bottom: 8px;
}

.quiz-progress-text, .quiz-score-text {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.85em;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transform: translateZ(4px);
}

.quiz-streak {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.85em;
  color: var(--accent-orange);
  text-shadow: 0 0 12px rgba(255,152,0,0.5);
  animation: streakPulse 1.2s ease-in-out 3;
  transform: translateZ(6px);
}/* ===== 3D 按钮 ===== */
.btn-primary, .quiz-next-btn{
  position: relative;
  padding: 14px 36px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(0,212,255,0.3), 0 0 40px rgba(0,212,255,0.1), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover, .quiz-next-btn:hover {
  transform: perspective(800px) rotateX(-6deg) translateZ(12px) scale(1.06);
  box-shadow: 0 18px 40px rgba(0,212,255,0.4), 0 0 60px rgba(0,212,255,0.2), 0 0 100px rgba(168,85,247,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:active, .quiz-next-btn:active {
  transform: perspective(800px) rotateX(2deg) translateZ(-5px) scale(0.95);
}

.btn-primary::before, .quiz-next-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before, .quiz-next-btn:hover::before { left: 100%; }/* ===== 3D 菜单按钮 ===== */
.mode-btn{
  padding: 48px 24px !important;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(0px);
  min-height: 220px !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.mode-btn:hover {
  transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) translateZ(16px) scale(1.06);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 40px rgba(0,212,255,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
}

.mode-btn:active {
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateZ(-5px) scale(0.97);
}

/* ===== 血条 HUD ===== */
.survival-hud {
  width: 100%; max-width: 500px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-color: rgba(255,23,68,0.2);
  background: linear-gradient(135deg, rgba(255,23,68,0.1), rgba(255,23,68,0.03));
}

.hp-bar-container {
  width: 100%; height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 8px;
  transform: perspective(600px) rotateX(2deg) translateZ(4px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.hp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff1744, #ff5252, #ff8a80);
  border-radius: 5px;
  transition: width 0.5s ease;
  box-shadow: 0 0 16px rgba(255,23,68,0.4), 0 0 30px rgba(255,23,68,0.15);
  transform: translateZ(4px);
}

/* ===== 连击庆祝 ===== */
.combo-celebration {
  position: fixed;
  top: 50%; left: 50%;
  font-size: 2.8em;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(0,212,255,0.8), 0 0 40px rgba(0,212,255,0.4), 0 0 80px rgba(168,85,247,0.3);
  pointer-events: none;
  z-index: 9999;
  animation: combo3DGlassExplode 1.6s ease-out forwards;
}

/* ===== 情景反馈 ===== */
.scenario-feedback {
  padding: 16px;
  margin-top: 12px;
  font-size: 0.95em;
  line-height: 1.5;
  animation: feedback3DGlassIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scenario-feedback.correct {
  background: linear-gradient(135deg, rgba(0,230,118,0.12), rgba(0,230,118,0.04));
  border-color: rgba(0,230,118,0.35);
  color: #69f0ae;
}

.scenario-feedback.wrong {
  background: linear-gradient(135deg, rgba(255,23,68,0.12), rgba(255,23,68,0.04));
  border-color: rgba(255,23,68,0.35);
  color: #ff5252;
}

/* ===== 结果框 ===== */
.result-box {
  text-align: center;
  padding: 28px;
  animation: result3DGlassIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== 背景视差 ===== */
#bgCanvas {
  transform: translateZ(-200px) scale(1.2);
}

/* ===== 响应式 ===== */
@media (max-width: 420px) {
  .quiz-opt, .scenario-opt { padding: 14px 16px; font-size: 0.88em; gap: 10px; }
  .quiz-opt .opt-label, .scenario-opt .opt-label { width: 28px; height: 28px; min-width: 28px; font-size: 0.8em; }
  .quiz-card, .quiz-content, .scenario-card { padding: 20px 16px; border-radius: 16px; }
  .disaster-icon, .quiz-disaster-icon, .scenario-icon { font-size: 2.5em; }
  .quiz-question { font-size: 1.05em; }
  .quiz-opt:hover, .scenario-opt:hover { transform: perspective(var(--perspective)) rotateX(-1deg) rotateY(1deg) translateZ(8px) scale(1.01); }
  .mode-btn:hover { transform: perspective(1000px) rotateX(-2deg) rotateY(2deg) translateZ(8px) scale(1.03); }
}

/* ===== 无障碍 ===== */
@media (prefers-reduced-motion: reduce) {
  .quiz-opt, .scenario-opt, .mode-btn, .btn-primary, .quiz-next-btn,
  .disaster-icon, .quiz-disaster-icon, .scenario-icon, .menu-logo-title {
    transform: none !important;
    animation: none !important;
  }
  .quiz-card, .quiz-content, .scenario-card, .quiz-exp-box, .explanation-box,
  .result-box, .scenario-feedback, .combo-celebration { animation: none !important; }
}

/* ============================================
   液态玻璃 + 3D 增强 v2.0 — 新增
   ============================================ */

/* 菜单 Logo 3D 悬浮 */
.menu-logo {
  transform-style: preserve-3d;
  animation: menuLogoFloat 8s ease-in-out 3;
}

/* 分区标题液态玻璃条 */
.menu-section-title {
  position: relative;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), rgba(168, 85, 247, 0.08), rgba(0, 230, 118, 0.08));
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 网格布局增强 */
.menu-grid {
  gap: 14px;
}

/* 底部导航栏液态玻璃增强 */
.menu-toolbar {
  background: rgba(15, 23, 42, 0.95) !important; /* fallback for no backdrop-filter */
  background: linear-gradient(180deg, rgba(12, 12, 35, 0.92) 0%, rgba(8, 8, 24, 0.96) 100%) !important;
  backdrop-filter: blur(28px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(220%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5), 0 -10px 50px rgba(0, 212, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.menu-toolbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.2) 50%, transparent 100%);
  z-index: 1;
}/* 工具按钮 3D 增强 */
.tool-btn{
  position: relative;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 12px !important;
}
.tool-btn:hover {
  transform: translateY(-3px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.tool-btn:active {
  transform: translateY(0) scale(0.95) !important;
}
.tool-btn.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(124, 77, 255, 0.1) 100%) !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 3D 页面切换过渡 */
.page {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}
.page.active {
  transform: perspective(1000px) translateZ(0) rotateX(0);
  opacity: 1;
}

/* 答题选项 3D 翻转 hover */
.quiz-opt:hover {
  transform: perspective(800px) rotateX(-3deg) rotateY(2deg) translateZ(8px) scale(1.01);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 212, 255, 0.12);
}

/* 情景卡片 3D 深度 */
.scenario-card {
  transform-style: preserve-3d;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.scenario-card:hover {
  transform: perspective(800px) rotateX(-2deg) translateY(-4px);
}

/* 进度条液态玻璃 */
.quiz-progress-bar {
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.quiz-progress-fill {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 加载条 3D 增强 */
.ls-bar-fill {
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* HP 血条液态玻璃 */
.hp-bar-container {
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.hp-bar-fill {
  background: linear-gradient(90deg, #ff1744, #ff9800, #4caf50);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* 结果面板 3D 弹出 */
.result-box {
  transform-style: preserve-3d;
  animation: resultPop3D 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}/* 成就/统计卡片 3D */
.stat-card{
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stat-card:hover {
  transform: perspective(800px) rotateY(-5deg) translateZ(15px) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}

/* 版本标签 3D 霓虹 */
.version-tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  animation: versionPulse 2s ease-in-out 3;
}/* 返回按钮液态玻璃 */
.back-float{
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.back-float:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(-4px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
}

/* 模态弹窗 3D 液态玻璃 */
#modalContent > div, #themeModal > div, .modal-overlay-content {
  transform-style: preserve-3d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* === wrong-book.css === */
/**
 * ===========================================================================
 * 错题本样式 — 玻璃态设计
 * ===========================================================================
 */

/* 统计区 */
.wrong-book-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
  padding: 20px;
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.wb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 25px;
}

.wb-stat-num {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  color: #a78bfa; /* fallback for no background-clip support */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wb-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
}

/* 操作按钮区 */
.wrong-book-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}.wb-btn{
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(15, 23, 42, 0.95); /* fallback for no backdrop-filter */
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(5px);
}

.wb-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.wb-btn-primary {
  background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(139,92,246,0.4));
  border-color: rgba(99,102,241,0.3);
}

.wb-btn-primary:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.6), rgba(139,92,246,0.6));
}

.wb-btn-danger {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.3);
}

.wb-btn-danger:hover {
  background: rgba(239,68,68,0.4);
}

.wb-btn-small {
  padding: 6px 12px;
  font-size: 12px;
  margin-top: 8px;
  margin-right: 8px;
}

.wb-btn-del {
  background: rgba(255,255,255,0.05);
  opacity: 0.7;
}

/* 错题列表 */
.wrong-book-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px;
  max-height: 500px;
  overflow-y: auto;
}.wb-item{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wb-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
}

.wb-item.mastered {
  opacity: 0.6;
  border-color: rgba(34,197,94,0.3);
}

.wb-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.wb-item-status {
  font-size: 12px;
  font-weight: 600;
}

.wb-item-count {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  background: rgba(239,68,68,0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

.wb-item.mastered .wb-item-count {
  background: rgba(34,197,94,0.2);
  color: rgba(34,197,94,0.8);
}

.wb-item-question {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 8px;
}

.wb-item-answer {
  font-size: 13px;
  color: rgba(34,197,94,0.9);
  padding: 8px 12px;
  background: rgba(34,197,94,0.1);
  border-radius: 8px;
  margin-bottom: 8px;
}

.wb-item-exp {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 8px;
}

/* 复习模式 */
.wb-review {
  padding: 20px;
  text-align: center;
}

.wb-review h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.wb-review-question {
  font-size: 16px;
  color: rgba(255,255,255,0.95);
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.wb-review-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}.wb-review-opt{
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wb-review-opt:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  border-color: rgba(99,102,241,0.4);
}

.wb-review-opt:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.wb-review-opt.correct {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.5);
  color: rgba(34,197,94,1);
}

.wb-review-opt.wrong {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
  color: rgba(239,68,68,1);
}

/* 错题本角标 */
#wrongBookBadge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}

/* 滚动条 */
.wrong-book-list::-webkit-scrollbar {
  width: 6px;
}


.wrong-book-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) rgba(255,255,255,0.03);
}


.wrong-book-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}

.wrong-book-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

.wrong-book-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}


/* ===== 触摸设备 hover 粘滞修复 ===== */
@media (hover: none) {
  .mode-btn:hover, .menu-cat-btn:hover, .tool-btn:hover, .quiz-opt:hover, .choice-btn:hover, .btn:hover, .back-float:hover, .settings-card:hover, .wb-btn:hover, .menu-toolbar .tool-btn:hover, .sim-action-btn:hover, .wb-btn:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: inherit !important;
    border-color: inherit !important;
  }
}


/* ===== v72 修复：页面标题强制高对比度 ===== */
h2, .game-header h2, .settings-title, .preview-title, [class*="title"] {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
.calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px !important;
  padding: 16px !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}
.calendar-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
  text-align: center !important;
  color: rgba(255,255,255,0.5) !important;
  font-size: 13px !important;
}
.calendar-day {
  aspect-ratio: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.8) !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.calendar-day:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(0,212,255,0.3) !important;
}
.calendar-day.empty {
  background: transparent !important;
  border-color: transparent !important;
  cursor: default !important;
}
.calendar-day.today {
  background: rgba(0,212,255,0.15) !important;
  border-color: rgba(0,212,255,0.5) !important;
  color: #00D4FF !important;
  font-weight: 700 !important;
}
.calendar-day.checked {
  background: rgba(34,197,94,0.15) !important;
  border-color: rgba(34,197,94,0.5) !important;
  color: #22C55E !important;
}

.minigame-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  padding: 16px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}
.minigame-card {
  padding: 20px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

/* 文字对比度 */
.menu-card-desc,
.mode-card-desc {
  color: rgba(255,255,255,0.7) !important;
}
.ai-float-input::placeholder {
  color: rgba(255,255,255,0.55) !important;
}
.settings-card-desc {
  color: rgba(148,163,184,0.85) !important;
}

/* 空状态 */
.empty-state,
.leaderboard-empty,
.wrong-book-empty {
  text-align: center !important;
  padding: 48px 20px !important;
  color: rgba(255,255,255,0.5) !important;
}

