/* ==========================================================================
   小初高数学对象演进全景知识地图 (5条底层逻辑链 × 4层认知台阶 × 44模块)
   web-3d-lab / math-map.css
   ========================================================================== */

/* 顶部导航栏入口按钮 */
.btn-math-map {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  white-space: nowrap;
}

.btn-math-map:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}

/* 数学学科列表上方快捷全景图横幅 */
.math-banner-entry {
  margin: 10px 10px 6px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(219, 39, 119, 0.18) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.math-banner-entry:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.3) 0%, rgba(219, 39, 119, 0.3) 100%);
  border-color: rgba(219, 39, 119, 0.55);
}

.math-banner-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.math-banner-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* 全屏知识地图主视窗 */
.math-map-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 20%, #0d1527 0%, #060913 70%, #03050a 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.math-map-view.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 顶部操作与标题栏 */
.math-map-header {
  height: 64px;
  min-height: 64px;
  padding: 0 20px;
  background: rgba(13, 21, 39, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 179, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.math-map-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.math-map-logo {
  font-size: 26px;
  line-height: 1;
}

.math-map-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.math-map-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.math-map-title {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(90deg, #f8fafc 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.math-map-meta-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

.math-map-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.math-map-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sieve-mode {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-sieve-mode:hover, .btn-sieve-mode.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-map-control {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-map-control:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-close-map {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-close-map:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
}

/* 逻辑链过滤工具栏 */
.math-map-toolbar {
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  background: rgba(10, 16, 30, 0.85);
  border-bottom: 1px solid rgba(99, 179, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9;
}

.chain-filters-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chain-filters-wrap::-webkit-scrollbar {
  display: none;
}

.chain-filter-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.chain-pill {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
}

.chain-pill:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #e2e8f0;
}

.chain-pill.active {
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chain-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chain-pill-all.active {
  background: #3b82f6;
  border-color: #60a5fa;
}

.map-zoom-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-zoom {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-zoom:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

/* 主画布容器（支持全向拖拽平移与滚轮/双指捏合缩放） */
.math-map-canvas-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.math-map-canvas-container.grabbing {
  cursor: grabbing;
}

/* 可无限平移缩放的地图世界坐标根节点 */
.math-map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 2400px;
  height: 1800px;
  transform-origin: 0 0;
  pointer-events: auto;
}

/* 4 层台阶高度背景带 */
.map-layer-bands {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column-reverse; /* 自下而上：Layer 1 在底，Layer 4 在顶 */
  pointer-events: none;
}

.layer-band {
  flex: 1;
  position: relative;
  border-top: 1px dashed rgba(99, 179, 237, 0.15);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.layer-band:first-child {
  border-top: none;
}

.layer-band-1 { background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 185, 129, 0.01) 100%); }
.layer-band-2 { background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.01) 100%); }
.layer-band-3 { background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, rgba(168, 85, 247, 0.01) 100%); }
.layer-band-4 { background: linear-gradient(180deg, rgba(244, 63, 94, 0.06) 0%, rgba(244, 63, 94, 0.01) 100%); }

.layer-band-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.layer-band-step-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.layer-band-1 .layer-band-step-badge { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.layer-band-2 .layer-band-step-badge { background: rgba(14, 165, 233, 0.2); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.4); }
.layer-band-3 .layer-band-step-badge { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.layer-band-4 .layer-band-step-badge { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); }

.layer-band-title {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}

.layer-band-sub {
  font-size: 12px;
  color: #64748b;
}

/* SVG 贝塞尔连线层 */
.map-svg-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.map-connection-path {
  fill: none;
  stroke-width: 2.2px;
  stroke-linecap: round;
  transition: stroke-width 0.2s ease, opacity 0.25s ease;
  opacity: 0.45;
}

.map-connection-path.highlighted {
  opacity: 1;
  stroke-width: 3.8px;
  filter: drop-shadow(0 0 6px currentColor);
}

.map-connection-path.dimmed {
  opacity: 0.12;
}

/* 44 个模块卡片容器层 */
.map-modules-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* 单个模块卡片样式 */
.module-card {
  position: absolute;
  width: 210px;
  min-height: 110px;
  background: rgba(19, 30, 54, 0.92);
  border: 1.5px solid rgba(99, 179, 237, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.module-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
  z-index: 5;
}

.module-card.selected {
  border-color: #f59e0b !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.55), 0 8px 25px rgba(0, 0, 0, 0.7) !important;
  transform: translateY(-4px) scale(1.04);
  z-index: 6;
}

.module-card.dimmed {
  opacity: 0.22;
  filter: grayscale(0.5);
}

.module-card.chain-highlight {
  opacity: 1;
  box-shadow: 0 0 18px currentColor;
}

.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.module-id-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid currentColor;
}

.module-chain-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.module-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin-bottom: 5px;
}

.module-object-tag {
  font-size: 10.5px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 2px solid #f59e0b;
}

.module-badges-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.intuition-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.intuition-badge.badge-数感 { color: #f59e0b; border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.12); }
.intuition-badge.badge-量感 { color: #10b981; border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.12); }
.intuition-badge.badge-结构感 { color: #c084fc; border-color: rgba(192, 132, 252, 0.35); background: rgba(192, 132, 252, 0.12); }
.intuition-badge.badge-方向感 { color: #f43f5e; border-color: rgba(244, 63, 94, 0.35); background: rgba(244, 63, 94, 0.12); }
.intuition-badge.badge-变化感 { color: #06b6d4; border-color: rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.12); }
.intuition-badge.badge-空间感 { color: #3b82f6; border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.12); }

/* 筛子掉队效应粒子流 Canvas 层 */
.sieve-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* 筛子模式悬浮控制浮窗 */
.sieve-floating-panel {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
  z-index: 20;
  display: none; /* 默认隐藏，开启筛子模式时才展示 */
  flex-direction: column;
  gap: 8px;
  width: 320px;
  animation: slideUpFade 0.3s ease;
}

.sieve-floating-panel.active,
.sieve-floating-panel.visible {
  display: flex !important;
}

.sieve-floating-panel.hidden,
.sieve-floating-panel[hidden] {
  display: none !important;
}

.sieve-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sieve-panel-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
}

.sieve-stats-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.sieve-stat-item {
  flex: 1;
  background: rgba(30, 41, 59, 0.6);
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
}

.sieve-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.sieve-stat-label {
  font-size: 10px;
  color: #94a3b8;
}

/* 右侧详情抽屉 / 破障交互沙盒面板 */
.math-map-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 580px;
  max-width: 90vw;
  height: 100%;
  background: rgba(13, 21, 39, 0.96);
  border-left: 1px solid rgba(99, 179, 237, 0.25);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.math-map-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(99, 179, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 16, 30, 0.8);
  position: sticky;
  top: 0;
  z-index: 5;
}

.drawer-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-id-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.drawer-title {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
}

.drawer-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 核心对象与直觉徽章横幅 */
.object-hero-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.object-hero-label {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 700;
  text-transform: uppercase;
}

.object-hero-name {
  font-size: 15px;
  font-weight: 800;
  color: #f1f5f9;
}

/* “原来 vs 后来” 对比卡片 */
.transition-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.transition-card {
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transition-card-before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.transition-card-after {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.transition-card-tag {
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.transition-card-before .transition-card-tag { color: #f87171; }
.transition-card-after .transition-card-tag { color: #34d399; }

.transition-card-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* 交互式沙盒容器 */
.sandbox-card {
  background: #090e1a;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sandbox-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sandbox-canvas-wrap {
  width: 100%;
  height: 240px;
  background: #050811;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#sandbox-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sandbox-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sandbox-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sandbox-slider-label {
  font-size: 11.5px;
  color: #94a3b8;
  min-width: 80px;
}

.sandbox-slider {
  flex: 1;
  accent-color: #38bdf8;
  cursor: pointer;
}

.sandbox-slider-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  font-weight: 700;
  min-width: 45px;
  text-align: right;
}

.sandbox-btn-row {
  display: flex;
  gap: 8px;
}

.btn-sandbox-action {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sandbox-action:hover {
  background: #38bdf8;
  color: #04101e;
}

/* 破障名师开窍心法卡 */
.breakthrough-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakthrough-label {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakthrough-quote {
  font-size: 13px;
  font-weight: 700;
  color: #fef08a;
  line-height: 1.5;
  font-style: italic;
}

/* 筛子卡壳剖析卡 */
.sieve-issue-card {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sieve-issue-label {
  font-size: 12px;
  font-weight: 800;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sieve-issue-text {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* 开窍随堂一问 */
.quiz-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quiz-question {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.45;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quiz-option-btn {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.4);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  font-weight: 700;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

.quiz-feedback-box {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.9);
  border-left: 3px solid #38bdf8;
  color: #cbd5e1;
}

/* 3D 实验室深度联动按钮 */
.deep-link-3d-box {
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(99, 179, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deep-link-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deep-link-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.deep-link-desc {
  font-size: 11px;
  color: #94a3b8;
}

.btn-goto-3d {
  padding: 8px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-goto-3d:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

/* 前后递进演进链按钮 */
.module-navigation-row {
  display: flex;
  gap: 10px;
}

.btn-nav-module {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-nav-module:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

/* 动效 */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
