/* ==========================================================================
   无光之境：深海热液生命工厂 — 样式表
   ========================================================================== */

/* ===== CSS 变量 ===== */
:root {
  --bg-deep: #00050f;
  --bg-mid: #001525;
  --bg-surface: #002035;

  --glass-bg: rgba(8, 22, 42, 0.55);
  --glass-border: rgba(0, 220, 200, 0.12);
  --glass-hi: rgba(0, 255, 200, 0.04);

  --accent-cyan: #00e5d0;
  --accent-cyan-dim: #008a80;
  --accent-orange: #ff6a1a;
  --accent-orange-dim: #b04510;
  --accent-green: #2cff9e;
  --accent-green-dim: #109060;
  --accent-yellow: #ffd633;
  --accent-red: #ff3a4a;

  --text-primary: #e2f0ff;
  --text-secondary: #8faec8;
  --text-muted: #4a6080;

  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
}

/* ===== 基础重置 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  /* 深海渐变背景 */
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(0, 60, 90, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 30%, rgba(0, 30, 60, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #000510 0%, #000a18 40%, #001020 70%, #001830 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== 背景画布 ===== */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ===== 步骤导航 ===== */
.step-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 20px;
  z-index: 100;
  background: rgba(0, 5, 15, 0.75);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.step-item:hover {
  background: rgba(0, 229, 208, 0.08);
}

.step-item.active {
  background: rgba(0, 229, 208, 0.15);
  box-shadow: 0 0 12px rgba(0, 229, 208, 0.2);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan-dim);
  transition: var(--transition);
}

.step-item.active .step-num {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 208, 0.6);
}

.step-label {
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.step-item.active .step-label {
  color: var(--text-primary);
}

.step-line {
  width: 32px;
  height: 1px;
  background: var(--glass-border);
}

/* ===== 玻璃拟态面板通用样式 ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ===== Hero 标题区 ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
}

.hero-content {
  max-width: 720px;
  animation: heroFadeIn 1.5s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 208, 0.3);
  border-radius: 20px;
  background: rgba(0, 229, 208, 0.05);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: 8px;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #5090b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(0, 229, 208, 0.3);
}

.hero-desc {
  font-size: clamp(15px, 2.5vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 208, 0.4);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--accent-cyan-dim), transparent);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ===== 通用 Section Header ===== */
.section-header {
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent-cyan-dim);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #80a0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ===== 模拟区容器 ===== */
.simulation-section {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.sim-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas:
    "canvas  controls"
    "canvas  data"
    "mechanism mechanism";
  gap: 16px;
}

/* ===== 画布区域 ===== */
.canvas-wrapper {
  grid-area: canvas;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #000510;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  min-height: 500px;
  aspect-ratio: 16 / 11;
}

#ecoCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.depth-indicator {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.depth-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent-cyan-dim), transparent);
}

.depth-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

.depth-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 229, 208, 0.4);
}

.status-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 5, 15, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== 控制面板 ===== */
.control-panel {
  grid-area: controls;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.panel-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.sliders {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.temp-icon { background: linear-gradient(135deg, #ff6a1a, #ff2040); box-shadow: 0 0 8px rgba(255, 106, 26, 0.5); }
.h2s-icon { background: linear-gradient(135deg, #ffd633, #ff8800); box-shadow: 0 0 8px rgba(255, 214, 51, 0.5); }
.current-icon { background: linear-gradient(135deg, #00b0ff, #0060ff); box-shadow: 0 0 8px rgba(0, 176, 255, 0.5); }
.symbiosis-icon { background: linear-gradient(135deg, #2cff9e, #00b060); box-shadow: 0 0 8px rgba(44, 255, 158, 0.5); }

.slider-label {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.slider-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 6px rgba(0, 229, 208, 0.3);
  min-width: 56px;
  text-align: right;
}

/* ===== 自定义滑块样式 ===== */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
}

.slider-temp { background: linear-gradient(90deg, rgba(255,106,26,0.15), rgba(255,32,64,0.15)); }
.slider-h2s { background: linear-gradient(90deg, rgba(255,214,51,0.15), rgba(255,136,0,0.15)); }
.slider-current { background: linear-gradient(90deg, rgba(0,176,255,0.15), rgba(0,96,255,0.15)); }
.slider-symbiosis { background: linear-gradient(90deg, rgba(44,255,158,0.15), rgba(0,176,96,0.15)); }

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid #001020;
  box-shadow: 0 0 10px rgba(0, 229, 208, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(0, 229, 208, 0.8);
}

.slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid #001020;
  box-shadow: 0 0 10px rgba(0, 229, 208, 0.6);
  cursor: grab;
}

.slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===== 数据指标卡片 ===== */
.data-panel {
  grid-area: data;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.card-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.card-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 208, 0.4);
  transition: color 0.4s ease;
}

.card-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.card-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease, background 0.4s ease;
}

.bar-chem {
  background: linear-gradient(90deg, var(--accent-green-dim), var(--accent-green));
  box-shadow: 0 0 8px rgba(44, 255, 158, 0.4);
}

.bar-eco {
  background: linear-gradient(90deg, var(--accent-cyan-dim), var(--accent-cyan));
  box-shadow: 0 0 8px rgba(0, 229, 208, 0.4);
}

.card-desc {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ===== 科学机制解读面板 ===== */
.mechanism-status {
  grid-area: mechanism;
  padding: 24px;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 32px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  animation: tagIn 0.4s ease-out;
}

@keyframes tagIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.tag-thrive { background: rgba(44, 255, 158, 0.12); color: var(--accent-green); border: 1px solid rgba(44, 255, 158, 0.3); }
.tag-balance { background: rgba(0, 229, 208, 0.12); color: var(--accent-cyan); border: 1px solid rgba(0, 229, 208, 0.3); }
.tag-energy { background: rgba(255, 214, 51, 0.12); color: var(--accent-yellow); border: 1px solid rgba(255, 214, 51, 0.3); }
.tag-heat { background: rgba(255, 58, 74, 0.12); color: var(--accent-red); border: 1px solid rgba(255, 58, 74, 0.3); }
.tag-current { background: rgba(0, 176, 255, 0.12); color: #4db8ff; border: 1px solid rgba(0, 176, 255, 0.3); }
.tag-collapse { background: rgba(255, 58, 74, 0.15); color: var(--accent-red); border: 1px solid rgba(255, 58, 74, 0.4); }

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.mechanism-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(0, 10, 25, 0.3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan-dim);
  transition: border-color 0.4s ease;
}

.formula-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(0, 10, 25, 0.4);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(0, 229, 208, 0.15);
}

.formula-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.formula-label {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
  white-space: nowrap;
}

.formula-eq {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ===== 科学机制解读打字入场效果 ===== */
.mechanism-status .panel-header,
.mechanism-status .status-tags,
.mechanism-status .formula-box {
  opacity: 0;
  transform: translateY(12px);
}

.mechanism-status.mech-typing-in .panel-header {
  animation: mechFadeIn 0.6s ease-out 0.1s forwards;
}

.mechanism-status.mech-typing-in .status-tags {
  animation: mechFadeIn 0.6s ease-out 0.4s forwards;
}

.mechanism-status.mech-typing-in .formula-box {
  animation: mechFadeIn 0.6s ease-out 0.7s forwards;
}

@keyframes mechFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 打字光标 */
.mechanism-desc.typing-active {
  border-left-color: var(--accent-cyan);
}

.mechanism-desc.typing-active::after {
  content: '|';
  color: var(--accent-cyan);
  animation: typeCursor 0.6s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}

@keyframes typeCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== 机制详解区 ===== */
.mechanism-section {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.mechanism-cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mech-card {
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mech-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 40px rgba(0, 229, 208, 0.1);
}

.mech-card:hover::before {
  opacity: 1;
}

.mech-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 900;
  color: rgba(0, 229, 208, 0.12);
  line-height: 1;
  margin-bottom: 12px;
}

.mech-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.mech-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== 机制卡片动态插图 ===== */
.mech-illustration {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 8, 20, 0.5);
  border: 1px solid rgba(0, 229, 208, 0.06);
}

/* --- 插图1：热液喷口烟囱 + 上升粒子 --- */
.mi-vent-cone {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 50px;
  height: 45px;
  margin-left: -25px;
  background: linear-gradient(180deg, rgba(60,50,45,0.9), rgba(30,25,22,0.95));
  clip-path: polygon(30% 0%, 70% 0%, 90% 100%, 10% 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.5);
}

.mi-vent-cone::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 20px;
  height: 6px;
  margin-left: -10px;
  background: radial-gradient(ellipse, var(--accent-orange), rgba(255,106,26,0.3));
  border-radius: 50%;
  animation: ventFlicker 1.5s ease-in-out infinite;
}

.mi-vent-glow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  background: radial-gradient(circle, rgba(255,106,26,0.15), transparent 70%);
  animation: ventGlowPulse 2.5s ease-in-out infinite;
}

.mi-vent .mi-particle {
  position: absolute;
  border-radius: 50%;
  bottom: 40px;
  left: 50%;
}

.mi-vent .vp1 {
  width: 6px; height: 6px;
  background: radial-gradient(circle, var(--accent-orange), rgba(255,106,26,0.3));
  margin-left: -3px;
  animation: miVentRise 2.5s ease-out infinite;
}
.mi-vent .vp2 {
  width: 4px; height: 4px;
  background: radial-gradient(circle, rgba(255,160,60,0.8), rgba(255,106,26,0.2));
  margin-left: -8px;
  animation: miVentRise 2.5s ease-out infinite 0.5s;
}
.mi-vent .vp3 {
  width: 5px; height: 5px;
  background: radial-gradient(circle, rgba(255,214,51,0.7), rgba(255,106,26,0.15));
  margin-left: 5px;
  animation: miVentRise 2.5s ease-out infinite 1s;
}
.mi-vent .vp4 {
  width: 3px; height: 3px;
  background: radial-gradient(circle, rgba(200,80,30,0.6), transparent);
  margin-left: -12px;
  animation: miVentRise 3s ease-out infinite 1.5s;
}
.mi-vent .vp5 {
  width: 4px; height: 4px;
  background: radial-gradient(circle, rgba(255,140,40,0.6), transparent);
  margin-left: 10px;
  animation: miVentRise 3s ease-out infinite 2s;
}

@keyframes ventFlicker {
  0%, 100% { opacity: 0.6; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes ventGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

@keyframes miVentRise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9; }
  60% { opacity: 0.5; }
  100% { transform: translateY(-80px) translateX(var(--drift, 6px)) scale(0.3); opacity: 0; }
}

.mi-vent .vp1 { --drift: 4px; }
.mi-vent .vp2 { --drift: -8px; }
.mi-vent .vp3 { --drift: 10px; }
.mi-vent .vp4 { --drift: -14px; }
.mi-vent .vp5 { --drift: 16px; }

/* --- 插图2：化能合成微生物 + H₂S分子 + 能量释放 --- */
.mi-microbe-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-green), var(--accent-green-dim));
  box-shadow: 0 0 20px rgba(44,255,158,0.5), inset 0 0 8px rgba(0,80,40,0.3);
  animation: microbeCorePulse 2s ease-in-out infinite;
}

.mi-microbe-core::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(44,255,158,0.2);
  border-radius: 50%;
  animation: microbeCoreRing 2s ease-out infinite;
}

.mi-h2s-mol {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-yellow);
  background: rgba(255,214,51,0.08);
  border: 1px solid rgba(255,214,51,0.25);
  border-radius: 8px;
  padding: 1px 5px;
  opacity: 0;
}

.mi-microbe .hm1 {
  top: 20%;
  left: 15%;
  animation: h2sApproach 3s ease-in-out infinite;
}
.mi-microbe .hm2 {
  top: 65%;
  left: 70%;
  animation: h2sApproach 3s ease-in-out infinite 1s;
}
.mi-microbe .hm3 {
  top: 15%;
  left: 65%;
  animation: h2sApproach 3s ease-in-out infinite 2s;
}

.mi-energy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  opacity: 0;
}

.mi-microbe .e1 { animation: energyBurst 2s ease-out infinite 0.3s; }
.mi-microbe .e2 { animation: energyBurst 2s ease-out infinite 0.9s; }
.mi-microbe .e3 { animation: energyBurst 2s ease-out infinite 1.5s; }

@keyframes microbeCorePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(44,255,158,0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 28px rgba(44,255,158,0.7); }
}

@keyframes microbeCoreRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes h2sApproach {
  0% { opacity: 0; transform: scale(0.5) translate(0, 0); }
  30% { opacity: 1; transform: scale(1) translate(8px, 4px); }
  70% { opacity: 1; transform: scale(1) translate(16px, 8px); }
  100% { opacity: 0; transform: scale(0.3) translate(24px, 12px); }
}

@keyframes energyBurst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--ex, 20px), var(--ey, -20px)) scale(1.5); }
}

.mi-microbe .e1 { --ex: 22px; --ey: -18px; }
.mi-microbe .e2 { --ex: -20px; --ey: -16px; }
.mi-microbe .e3 { --ex: 18px; --ey: 20px; }

/* --- 插图3：管虫—细菌共生 --- */
.mi-sym-tube {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 14px;
  height: 70px;
  margin-left: -7px;
  background: linear-gradient(180deg, rgba(180,170,160,0.6), rgba(120,110,100,0.8));
  border-radius: 4px 4px 0 0;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.3);
}

.mi-sym-plume {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 32px;
  height: 22px;
  margin-left: -16px;
  background: radial-gradient(ellipse at center bottom, rgba(255,58,74,0.7), rgba(200,40,60,0.3) 60%, transparent);
  border-radius: 50% 50% 30% 30%;
  transform-origin: bottom center;
  animation: symPlumeOpen 3s ease-in-out infinite;
}

.mi-sym-body {
  position: absolute;
  top: 35px;
  left: 50%;
  width: 18px;
  height: 30px;
  margin-left: -9px;
  background: radial-gradient(ellipse at center, rgba(255,160,80,0.15), transparent 70%);
  border-radius: 50%;
  animation: symBodyGlow 2.5s ease-in-out infinite;
}

.mi-sym-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(44,255,158,0.5);
  left: 50%;
  margin-left: -2.5px;
}

.mi-symbiosis .sd1 { top: 42px; animation: symDotFlow 3s ease-in-out infinite; }
.mi-symbiosis .sd2 { top: 50px; animation: symDotFlow 3s ease-in-out infinite 0.7s; }
.mi-symbiosis .sd3 { top: 46px; animation: symDotFlow 3s ease-in-out infinite 1.4s; }
.mi-symbiosis .sd4 { top: 54px; animation: symDotFlow 3s ease-in-out infinite 2.1s; }

@keyframes symPlumeOpen {
  0%, 100% { transform: scaleX(0.6) scaleY(0.8); opacity: 0.5; }
  50% { transform: scaleX(1.1) scaleY(1); opacity: 0.9; }
}

@keyframes symBodyGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes symDotFlow {
  0% { transform: translateX(-16px) scale(0.5); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(16px) scale(0.5); opacity: 0; }
}

/* --- 插图4：物质循环与平衡（旋转环 + 节点） --- */
.mi-cycle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border-style: dashed;
}

.mi-cycle-ring.outer {
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  border: 1.5px dashed rgba(0, 229, 208, 0.2);
  animation: cycleRotate 8s linear infinite;
}

.mi-cycle-ring.middle {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1.5px dashed rgba(255, 106, 26, 0.2);
  animation: cycleRotate 6s linear infinite reverse;
}

.mi-cycle-ring.inner {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px dashed rgba(44, 255, 158, 0.2);
  animation: cycleRotate 4s linear infinite;
}

.mi-cycle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan), var(--accent-cyan-dim));
  box-shadow: 0 0 12px rgba(0,229,208,0.5);
  animation: cycleCorePulse 2s ease-in-out infinite;
}

.mi-cycle-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -4px 0 0 -4px;
}

.mi-cycle .n1 {
  background: var(--accent-orange);
  box-shadow: 0 0 8px rgba(255,106,26,0.5);
  animation: cycleOrbit1 8s linear infinite;
}

.mi-cycle .n2 {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(44,255,158,0.5);
  animation: cycleOrbit2 6s linear infinite reverse;
}

.mi-cycle .n3 {
  background: var(--accent-yellow);
  box-shadow: 0 0 8px rgba(255,214,51,0.5);
  animation: cycleOrbit3 4s linear infinite;
}

@keyframes cycleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cycleCorePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(0,229,208,0.4); }
  50% { transform: scale(1.2); box-shadow: 0 0 18px rgba(0,229,208,0.7); }
}

@keyframes cycleOrbit1 {
  from { transform: rotate(0deg) translateX(45px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(45px) rotate(-360deg); }
}

@keyframes cycleOrbit2 {
  from { transform: rotate(0deg) translateX(32px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(32px) rotate(-360deg); }
}

@keyframes cycleOrbit3 {
  from { transform: rotate(0deg) translateX(19px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(19px) rotate(-360deg); }
}

/* ===== 问答区 ===== */
.quiz-section {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px;
}

.quiz-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.quiz-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 229, 208, 0.12);
  border: 1px solid rgba(0, 229, 208, 0.3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.quiz-text {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0, 10, 25, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-size: 14px;
  width: 100%;
}

.quiz-option:hover:not(.disabled) {
  background: rgba(0, 229, 208, 0.06);
  border-color: rgba(0, 229, 208, 0.2);
  transform: translateX(4px);
}

.quiz-option.correct {
  background: rgba(44, 255, 158, 0.08);
  border-color: rgba(44, 255, 158, 0.4);
}

.quiz-option.wrong {
  background: rgba(255, 58, 74, 0.08);
  border-color: rgba(255, 58, 74, 0.4);
}

.quiz-option.disabled {
  cursor: default;
  opacity: 0.7;
}

.option-label {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.quiz-option.correct .option-label {
  background: rgba(44, 255, 158, 0.2);
  color: var(--accent-green);
}

.quiz-option.wrong .option-label {
  background: rgba(255, 58, 74, 0.2);
  color: var(--accent-red);
}

.option-text {
  flex: 1;
  line-height: 1.5;
}

.option-result {
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quiz-option.correct .option-result::before { content: '\2713'; color: var(--accent-green); }
.quiz-option.wrong .option-result::before { content: '\2717'; color: var(--accent-red); }
.quiz-option.correct .option-result,
.quiz-option.wrong .option-result { opacity: 1; }

.quiz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.7;
  display: none;
  animation: tagIn 0.4s ease-out;
}

.quiz-feedback.show { display: block; }

.quiz-feedback.correct {
  background: rgba(44, 255, 158, 0.06);
  border: 1px solid rgba(44, 255, 158, 0.2);
  color: var(--accent-green);
}

.quiz-feedback.wrong {
  background: rgba(255, 214, 51, 0.06);
  border: 1px solid rgba(255, 214, 51, 0.2);
  color: var(--accent-yellow);
}

/* ===== 问答进度条 & 导航 ===== */
.quiz-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan-dim), var(--accent-cyan));
  border-radius: 2px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(0, 229, 208, 0.4);
}

.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

#quizScoreText {
  color: var(--accent-cyan);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.quiz-nav-btn {
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 208, 0.08);
  border: 1px solid rgba(0, 229, 208, 0.2);
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.quiz-nav-btn:hover:not(:disabled) {
  background: rgba(0, 229, 208, 0.15);
  border-color: rgba(0, 229, 208, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 229, 208, 0.1);
}

.quiz-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== 问答结果页 ===== */
.quiz-result {
  text-align: center;
  padding: 20px 0;
  animation: tagIn 0.5s ease-out;
}

.quiz-result-score {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: 0 0 24px rgba(0, 229, 208, 0.3);
  line-height: 1.2;
}

.quiz-result-label {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.quiz-result-comment {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-result-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  text-align: left;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-mono);
}

.review-item.correct {
  background: rgba(44, 255, 158, 0.06);
  border: 1px solid rgba(44, 255, 158, 0.15);
  color: var(--text-secondary);
}

.review-item.wrong {
  background: rgba(255, 58, 74, 0.06);
  border: 1px solid rgba(255, 58, 74, 0.15);
  color: var(--text-secondary);
}

.review-q {
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 32px;
}

.review-a {
  flex: 1;
}

.review-c {
  flex: 1;
}

.review-item.correct .review-icon {
  color: var(--accent-green);
  font-size: 16px;
  font-weight: 700;
}

.review-item.wrong .review-icon {
  color: var(--accent-red);
  font-size: 16px;
  font-weight: 700;
}

.quiz-restart-btn {
  padding: 12px 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 229, 208, 0.12), rgba(0, 138, 128, 0.08));
  border: 1px solid rgba(0, 229, 208, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 2px;
}

.quiz-restart-btn:hover {
  background: linear-gradient(135deg, rgba(0, 229, 208, 0.2), rgba(0, 138, 128, 0.12));
  border-color: rgba(0, 229, 208, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 208, 0.12);
}

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 5, 15, 0.5);
  backdrop-filter: blur(10px);
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
  .sim-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "canvas"
      "controls"
      "data"
      "mechanism";
  }

  .data-panel {
    flex-direction: row;
  }

  .data-card {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .step-nav {
    padding: 8px 10px;
  }

  .step-item {
    padding: 4px 10px;
  }

  .step-label {
    font-size: 11px;
  }

  .step-num {
    font-size: 11px;
  }

  .step-line {
    width: 16px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-val {
    font-size: 22px;
  }

  .canvas-wrapper {
    aspect-ratio: 4 / 3;
    min-height: 320px;
  }

  .data-panel {
    flex-direction: column;
  }

  .mechanism-cards {
    grid-template-columns: 1fr;
  }

  .quiz-container {
    padding: 24px 18px;
  }

  .quiz-option {
    padding: 14px 16px;
    font-size: 13px;
  }

  .formula-eq {
    font-size: 11px;
  }

  .section-header {
    padding: 60px 16px 30px;
  }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 4px; }
  .hero-subtitle { letter-spacing: 3px; }
  .hero-stat-divider { display: none; }
  .hero-stats { gap: 12px; }
  .hero-stat-val { font-size: 18px; }

  .step-label { display: none; }
  .step-item { padding: 4px 8px; }
  .step-line { width: 10px; }

  .canvas-wrapper {
    aspect-ratio: 1 / 1;
    min-height: 280px;
  }

  .control-panel, .mechanism-status { padding: 16px; }
  .data-card { padding: 14px; }
  .card-value { font-size: 22px; }
}

/* ===== 颜色状态变化 ===== */
.card-value.warning { color: var(--accent-yellow); text-shadow: 0 0 12px rgba(255, 214, 51, 0.4); }
.card-value.danger { color: var(--accent-red); text-shadow: 0 0 12px rgba(255, 58, 74, 0.4); }
.card-value.healthy { color: var(--accent-green); text-shadow: 0 0 12px rgba(44, 255, 158, 0.4); }

.bar-chem.warning { background: linear-gradient(90deg, #b08010, var(--accent-yellow)); box-shadow: 0 0 8px rgba(255, 214, 51, 0.4); }
.bar-chem.danger { background: linear-gradient(90deg, #801020, var(--accent-red)); box-shadow: 0 0 8px rgba(255, 58, 74, 0.4); }
.bar-eco.warning { background: linear-gradient(90deg, #b08010, var(--accent-yellow)); box-shadow: 0 0 8px rgba(255, 214, 51, 0.4); }
.bar-eco.danger { background: linear-gradient(90deg, #801020, var(--accent-red)); box-shadow: 0 0 8px rgba(255, 58, 74, 0.4); }

.mechanism-desc.heat { border-left-color: var(--accent-red); }
.mechanism-desc.current { border-left-color: #4db8ff; }
.mechanism-desc.energy { border-left-color: var(--accent-yellow); }
.mechanism-desc.thrive { border-left-color: var(--accent-green); }

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 208, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 208, 0.4);
}

/* ===== 选中文字 ===== */
::selection {
  background: rgba(0, 229, 208, 0.25);
  color: var(--text-primary);
}

/* ===== 氛围音乐控制按钮 ===== */
.audio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 24px;
  background: rgba(0, 8, 20, 0.7);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  -webkit-user-select: none;
}

.audio-toggle:hover {
  background: rgba(0, 20, 40, 0.85);
  border-color: rgba(0, 229, 208, 0.3);
  color: var(--text-primary);
}

.audio-toggle.playing {
  border-color: rgba(0, 229, 208, 0.35);
  color: var(--accent-cyan);
}

/* 音波图标 */
.audio-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.audio-wave {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.aw1 { height: 5px; }
.aw2 { height: 10px; }
.aw3 { height: 7px; }

/* 播放时音波动画 */
.audio-toggle.playing .audio-wave {
  opacity: 1;
  animation: audioWave 0.9s ease-in-out infinite;
}

.audio-toggle.playing .aw1 { animation-delay: 0s; }
.audio-toggle.playing .aw2 { animation-delay: 0.2s; }
.audio-toggle.playing .aw3 { animation-delay: 0.4s; }

@keyframes audioWave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ===== 模拟元素介绍卡片 ===== */
.element-intro-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.element-intro-header {
  text-align: center;
  margin-bottom: 28px;
}

.element-intro-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.element-intro-sub {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.element-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.element-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.element-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.element-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 44px rgba(0, 229, 208, 0.12);
}

.element-card:hover::before {
  opacity: 1;
}

/* 图标区域 */
.element-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  flex-shrink: 0;
}

.element-card-icon .ec-icon-shape {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
}

.element-card:hover .element-card-icon {
  filter: brightness(1.25);
  transition: filter 0.3s ease;
}

/* ===== 各元素图标配色 + 动态动画 ===== */

/* --- 1. 热液喷口：脉冲发光 + 扩散波纹 --- */
.ec-vent {
  background: radial-gradient(circle, rgba(255,106,26,0.18), transparent 70%);
}
.ec-vent .ec-icon-shape {
  background: radial-gradient(circle at 50% 70%, var(--accent-orange), var(--accent-orange-dim));
  box-shadow: 0 0 16px rgba(255,106,26,0.5);
  animation: ventPulse 2.5s ease-in-out infinite;
}
.ec-vent .ec-ripple {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-orange);
  border-radius: 50%;
  opacity: 0;
  animation: ventRipple 2.5s ease-out infinite;
}
@keyframes ventPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255,106,26,0.4); }
  50% { transform: scale(1.12); box-shadow: 0 0 24px rgba(255,106,26,0.7); }
}
@keyframes ventRipple {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- 2. 热液羽流：粒子上升 --- */
.ec-plume {
  background: radial-gradient(circle, rgba(255,106,26,0.12), transparent 70%);
  overflow: hidden;
}
.ec-plume .ec-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 40% 40%;
  bottom: 6px;
  left: 50%;
  margin-left: -4px;
}
.ec-plume .p1 {
  background: radial-gradient(circle, var(--accent-orange), rgba(255,106,26,0.3));
  animation: plumeRise 2.8s ease-in infinite;
}
.ec-plume .p2 {
  background: radial-gradient(circle, rgba(255,160,60,0.8), rgba(255,106,26,0.2));
  width: 6px;
  height: 6px;
  margin-left: -3px;
  animation: plumeRise 2.8s ease-in infinite 0.9s;
}
.ec-plume .p3 {
  background: radial-gradient(circle, rgba(255,214,51,0.7), rgba(255,106,26,0.15));
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  animation: plumeRise 2.8s ease-in infinite 1.8s;
}
@keyframes plumeRise {
  0% { transform: translateY(0) scale(1); opacity: 0.9; }
  60% { opacity: 0.5; }
  100% { transform: translateY(-36px) scale(0.3); opacity: 0; }
}

/* --- 3. 硫化氢扩散：扩散涟漪 + 核心呼吸 --- */
.ec-h2s {
  background: radial-gradient(circle, rgba(255,214,51,0.12), transparent 70%);
}
.ec-h2s .ec-icon-shape {
  background: radial-gradient(circle, var(--accent-yellow), rgba(255,214,51,0.2));
  opacity: 0.7;
  box-shadow: 0 0 14px rgba(255,214,51,0.3);
  animation: h2sBreathe 3s ease-in-out infinite;
}
.ec-h2s .ec-ripple {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent-yellow);
  border-radius: 50%;
  opacity: 0;
  animation: h2sRipple 3s ease-out infinite;
}
.ec-h2s .ec-ripple.delay {
  animation-delay: 1.5s;
}
@keyframes h2sBreathe {
  0%, 100% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
@keyframes h2sRipple {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* --- 4. 化能合成微生物：脉冲发光 + 轨道粒子 --- */
.ec-microbe {
  background: radial-gradient(circle, rgba(44,255,158,0.15), transparent 70%);
}
.ec-microbe .ec-icon-shape {
  background: radial-gradient(circle, var(--accent-green), var(--accent-green-dim));
  box-shadow: 0 0 16px rgba(44,255,158,0.5);
  animation: microbePulse 2s ease-in-out infinite;
}
.ec-microbe .ec-orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(44,255,158,0.6);
  top: 50%;
  left: 50%;
  margin: -3px 0 0 -3px;
  transform-origin: center;
  animation: microbeOrbit 3s linear infinite;
}
@keyframes microbePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(44,255,158,0.4); }
  50% { transform: scale(1.15); box-shadow: 0 0 24px rgba(44,255,158,0.75); }
}
@keyframes microbeOrbit {
  from { transform: rotate(0deg) translateX(18px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(18px) rotate(-360deg); }
}

/* --- 5. 管虫—细菌共生：摇摆 + 羽冠舒展 --- */
.ec-worm {
  background: radial-gradient(circle, rgba(255,58,74,0.12), transparent 70%);
}
.ec-worm .ec-icon-shape {
  background: radial-gradient(circle at 50% 30%, var(--accent-red), rgba(200,60,80,0.4));
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 0 14px rgba(255,58,74,0.4);
  transform-origin: bottom center;
  animation: wormSway 3s ease-in-out infinite;
}
.ec-worm .ec-feather {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 20px;
  height: 10px;
  margin-left: -10px;
  background: radial-gradient(ellipse at center, rgba(255,80,90,0.5), transparent 70%);
  border-radius: 50%;
  transform-origin: bottom center;
  animation: featherOpen 2.5s ease-in-out infinite;
}
@keyframes wormSway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
@keyframes featherOpen {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* --- 6. 深海洋流：旋转流线 --- */
.ec-current {
  background: radial-gradient(circle, rgba(0,229,208,0.12), transparent 70%);
}
.ec-current .ec-icon-shape {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0,229,208,0.3), inset 0 0 8px rgba(0,229,208,0.2);
  animation: currentSpin 4s linear infinite;
}
.ec-current .ec-icon-shape::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transform: translateY(-50%);
  box-shadow: 0 -5px 0 -1px var(--accent-cyan-dim), 0 5px 0 -1px var(--accent-cyan-dim);
}
@keyframes currentSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 7. 生态压力环：脉冲警示 + 扩散环 --- */
.ec-stress {
  background: radial-gradient(circle, rgba(255,58,74,0.12), transparent 70%);
}
.ec-stress .ec-icon-shape {
  background: transparent;
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 12px rgba(255,58,74,0.35), inset 0 0 6px rgba(255,58,74,0.15);
  animation: stressBlink 1.2s ease-in-out infinite;
}
.ec-stress .ec-icon-shape::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,58,74,0.5);
  border-radius: 50%;
}
.ec-stress .ec-ripple {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  opacity: 0;
  animation: stressRipple 1.6s ease-out infinite;
}
.ec-stress .ec-ripple.delay {
  animation-delay: 0.8s;
}
@keyframes stressBlink {
  0%, 100% { box-shadow: 0 0 8px rgba(255,58,74,0.25), inset 0 0 4px rgba(255,58,74,0.1); }
  50% { box-shadow: 0 0 20px rgba(255,58,74,0.6), inset 0 0 10px rgba(255,58,74,0.25); }
}
@keyframes stressRipple {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* --- 8. 海洋雪：飘落粒子 --- */
.ec-snow {
  background: radial-gradient(circle, rgba(143,174,200,0.1), transparent 70%);
  overflow: hidden;
}
.ec-snow .ec-snowflake {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  top: -6px;
}
.ec-snow .s1 {
  background: var(--text-secondary);
  left: 25%;
  animation: snowFall 3.5s linear infinite;
}
.ec-snow .s2 {
  background: var(--text-muted);
  width: 3px;
  height: 3px;
  left: 60%;
  animation: snowFall 3.5s linear infinite 1s;
}
.ec-snow .s3 {
  background: var(--text-secondary);
  width: 3px;
  height: 3px;
  left: 40%;
  animation: snowFall 3.5s linear infinite 2s;
}
.ec-snow .s4 {
  background: var(--text-muted);
  width: 2.5px;
  height: 2.5px;
  left: 75%;
  animation: snowFall 3.5s linear infinite 2.7s;
}
@keyframes snowFall {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(52px) translateX(6px); opacity: 0; }
}

/* 卡片文本 */
.element-card-body {
  flex: 1;
  min-width: 0;
}

.element-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: 1px;
}

.element-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan-dim);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}

.element-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* 响应式 */
@media (max-width: 1024px) {
  .element-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .element-cards {
    grid-template-columns: 1fr;
  }

  .element-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 14px;
  }

  .element-card-icon {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
  }

  .element-card-icon .ec-icon-shape {
    width: 24px;
    height: 24px;
  }

  .ec-ripple,
  .ec-stress .ec-ripple,
  .ec-h2s .ec-ripple,
  .ec-vent .ec-ripple {
    width: 24px;
    height: 24px;
  }
}

/* 移动端适配 */
@media (max-width: 480px) {
  .audio-toggle {
    bottom: 12px;
    right: 12px;
    padding: 6px 12px 6px 10px;
    font-size: 11px;
  }

  .audio-toggle .audio-text {
    display: none;
  }
}
