:root {
  --navy-deep: #0f172a;
  --navy-light: #1e293b;
  --sky-base: #38bdf8;
  --sky-light: #e0f2fe;
  --sky-accent: #0284c7;
  --mint-base: #10b981;
  --mint-light: #ecfdf5;
  --gold-base: #fbbf24;
  --gold-light: #fefbeb;
  --coral-base: #f87171;
  --coral-light: #fef2f2;
  --purple-base: #8b5cf6;
  --purple-light: #f5f3ff;
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: rgba(15, 23, 42, 0.06);
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--navy-deep);
  background: #f0f7ff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 缓慢柔和的背景气泡 */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: float-blob 35s infinite alternate ease-in-out;
}

.blob-1 {
  width: 50vw;
  height: 50vw;
  background: #bae6fd;
  top: -10vw;
  right: -5vw;
}

.blob-2 {
  width: 40vw;
  height: 40vw;
  background: #ddd6fe;
  bottom: -5vw;
  left: -5vw;
  animation-delay: -8s;
}

.blob-3 {
  width: 35vw;
  height: 35vw;
  background: #ccfbf1;
  top: 40%;
  left: 30%;
  animation-delay: -15s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3vw, 4vw) scale(1.08); }
}

/* 布局外壳 */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* 页眉 */
.glass-header {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px var(--glass-shadow);
  margin-bottom: 24px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand-badge {
  font-size: 28px;
  background: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--navy-deep), var(--sky-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 8px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.star-icon {
  font-size: 20px;
  animation: pulse-star 1.5s infinite alternate;
}

.score-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.score-card strong {
  font-size: 20px;
  color: var(--navy-deep);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* 按钮通用样式 */
.btn {
  border: 0;
  outline: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.btn-secondary {
  background: #fff;
  color: var(--navy-deep);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  background: var(--sky-light);
  color: var(--sky-accent);
}

.btn-accent {
  background: var(--sky-accent);
  color: #fff;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
  background: #0270a8;
}

/* 宣传横幅 */
.hero-section {
  text-align: center;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 38px;
  color: var(--navy-deep);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: #475569;
  font-weight: 500;
}

/* 游戏卡片网格 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.game-tile {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.game-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--sky-base);
  opacity: 0.8;
}

.game-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.tile-icon {
  font-size: 42px;
  margin-bottom: 16px;
  background: #fff;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.game-tile strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.game-tile span {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: rgba(15, 23, 42, 0.04);
  padding: 4px 10px;
  border-radius: 8px;
}

/* 游戏屏幕 */
.game-screen {
  animation: fadeIn 0.4s ease-out;
}

.game-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.game-badge {
  font-size: 14px;
  font-weight: 700;
  color: var(--sky-accent);
  background: var(--sky-light);
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 6px;
}

.game-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--navy-deep);
}

.game-rule {
  font-size: 16px;
  color: #475569;
  font-weight: 500;
  margin-bottom: 16px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 16px;
  border-left: 4px solid var(--sky-base);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

/* 实验室对象切换栏 */
.game-tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #475569;
  padding: 8px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.tab-btn:hover {
  background: #fff;
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--sky-accent);
  color: #fff;
  border-color: var(--sky-accent);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* 播放卡片区 */
.play-card-container {
  perspective: 1000px;
  margin-bottom: 20px;
}

.play-area-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 36px;
  min-height: 460px;
  padding: 32px;
  box-shadow: 0 16px 48px var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* 提示信息框 */
.message-container {
  display: flex;
  justify-content: center;
  height: 48px;
}

.message-toast {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: var(--navy-deep);
  padding: 8px 32px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  background: transparent;
}

.message-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.message-toast.success {
  background: var(--mint-light);
  color: var(--mint-base);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.message-toast.info {
  background: var(--sky-light);
  color: var(--sky-accent);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}

/* === 小游戏专有 CSS 元素 === */

/* 1. 风力实验室 */
.wind-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wind-pond {
  width: 100%;
  max-width: 460px;
  height: 150px;
  background: linear-gradient(#e0f2fe, #bae6fd);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  margin-top: 30px;
}

.sailing-boat {
  position: absolute;
  top: 40px;
  width: 80px;
  height: 70px;
  transition: left 0.1s linear;
  cursor: pointer;
}

.windmill-container {
  position: relative;
  width: 200px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.windmill-blade {
  width: 160px;
  height: 160px;
  transition: transform 0.1s linear;
  cursor: grab;
}

.windmill-stand {
  width: 8px;
  height: 120px;
  background: var(--navy-light);
  border-radius: 4px;
  position: absolute;
  top: 80px;
  z-index: -1;
}

.wind-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 36px;
}

/* 2. 三态展示馆 */
.water-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  gap: 24px;
}

.water-display {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.water-element-svg {
  width: 120px;
  height: 120px;
  transition: all 0.5s ease;
}

.states-gallery {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.state-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 8px;
  border-radius: 16px;
  text-align: center;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.5;
  transition: all 0.3s;
}

.state-card.highlight {
  opacity: 1;
  background: #fff;
  border-color: var(--sky-base);
  box-shadow: 0 4px 12px rgba(15,23,42,0.05);
  transform: translateY(-2px);
}

.state-card-icon {
  font-size: 24px;
}

.state-card-label {
  font-weight: 700;
  color: var(--navy-deep);
}

.state-card-examples {
  font-size: 11px;
  color: #64748b;
}

.temp-control {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.4);
  padding: 14px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.temp-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #64748b;
  font-size: 13px;
}

.temp-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--sky-base), var(--coral-base));
  outline: none;
}

.temp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy-deep);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  transition: transform 0.1s;
}

.temp-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* 3. 光影配对 */
.shadow-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 300px;
  background: #0f172a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

.screen-wall {
  position: absolute;
  right: 0;
  top: 0;
  width: 160px;
  height: 100%;
  background: #1e293b;
  border-left: 2px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shadow-cast {
  transition: transform 0.1s ease, filter 0.1s ease;
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shadow-svg-element {
  fill: rgba(0,0,0,0.92);
  width: 90px;
  height: 90px;
}

.toy-block {
  position: absolute;
  left: 260px;
  top: 100px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.toy-svg-element {
  width: 90px;
  height: 90px;
}

.flashlight-drag {
  position: absolute;
  left: 40px;
  top: 115px;
  width: 90px;
  height: 70px;
  cursor: grab;
  touch-action: none;
}

.light-beam {
  position: absolute;
  left: 110px;
  top: 115px;
  height: 70px;
  background: linear-gradient(to right, rgba(253, 224, 71, 0.45) 0%, rgba(253, 224, 71, 0.02) 100%);
  clip-path: polygon(0 25px, 600px 0, 600px 70px, 0 45px);
  pointer-events: none;
}

/* 4. 种子成长 */
.growth-pot {
  width: 160px;
  height: 160px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M25 65 L30 85 L70 85 L75 65 Z' fill='%23b45309'/><rect x='20' y='57' width='60' height='8' rx='4' fill='%2392400e'/></svg>") no-repeat center/contain;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.growth-pot:active {
  transform: scale(0.95);
}

.plant-stem {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 140px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plant-svg-element {
  width: 100%;
  height: 100%;
}

.care-tools {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.tool-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.tool-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

/* 5. 磁力沙盒 */
.magnet-arena {
  position: relative;
  width: 100%;
  height: 330px;
  background: rgba(255,255,255,0.3);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
}

.magnet-toy {
  position: absolute;
  left: 40px;
  top: 110px;
  width: 90px;
  height: 90px;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 6px 12px rgba(15,23,42,0.15));
}

.sandbox-item {
  position: absolute;
  width: 64px;
  height: 74px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(15,23,42,0.04);
  transition: transform 0.1s ease;
}

.sandbox-item-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

/* 6. 打击乐团 */
.instrument-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 250px;
}

.chime-rack {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  align-items: flex-end;
}

.chime-bar {
  flex: 1;
  max-width: 80px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}

.chime-bar:active, .chime-bar.active {
  transform: scaleY(0.92);
  filter: brightness(1.2);
  box-shadow: 0 0 20px currentColor;
}

.xylophone-rack {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  align-items: center;
}

.xylo-bar {
  width: 44px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}

.xylo-bar:active, .xylo-bar.active {
  transform: scale(0.92);
  box-shadow: 0 0 16px currentColor;
}

.beaker-rack {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  align-items: flex-end;
}

.beaker-cup {
  width: 50px;
  height: 180px;
  border-radius: 0 0 12px 12px;
  border: 3px solid #64748b;
  border-top: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.15s;
}

.beaker-water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(56, 189, 248, 0.85);
  border-radius: 0 0 8px 8px;
  transition: height 0.3s;
}

.beaker-cup:active .beaker-water, .beaker-cup.active .beaker-water {
  background: rgba(56, 189, 248, 1);
  box-shadow: 0 0 12px #38bdf8;
}

/* 7. 色彩调色室 */
.color-mixer-stage {
  position: relative;
  width: 100%;
  height: 320px;
  background: rgba(255,255,255,0.25);
  border-radius: 24px;
  overflow: hidden;
  filter: contrast(12); /* 开启高对比度以实现流体胶质融合效果 */
}

.color-droplet {
  position: absolute;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  filter: blur(6px); /* 边缘模糊以产生融合粘性 */
  cursor: grab;
  touch-action: none;
  box-shadow: inset -6px -6px 12px rgba(0,0,0,0.15), inset 6px 6px 12px rgba(255,255,255,0.25);
}

/* 8. 沉浮测试池 */
.water-tank {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(to bottom, #f0f9ff 0%, #e0f2fe 48%, #7dd3fc 48%, #38bdf8 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 30px rgba(2, 132, 199, 0.1);
}

.water-surface {
  position: absolute;
  top: 154px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.4);
  pointer-events: none;
}

.aquatic-toy {
  position: absolute;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: grab;
  touch-action: none;
}

.bubble-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  pointer-events: none;
  animation: bubble-rise 1.3s ease-out forwards;
}

@keyframes bubble-rise {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  20% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { transform: translateY(-90px) scale(1.1); opacity: 0; }
}

/* 9. 推拉小车 */
.track-area {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 200px;
  background: rgba(255,255,255,0.4);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.track-line {
  width: 100%;
  height: 6px;
  background: var(--navy-light);
  border-radius: 999px;
  position: relative;
}

.slider-car {
  position: absolute;
  top: -37px;
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(15,23,42,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  cursor: grab;
  touch-action: none;
  transition: transform 0.05s ease;
}

/* 10. 昆虫昆虫园 */
.detective-garden {
  position: relative;
  width: 100%;
  height: 330px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.5);
  overflow: hidden;
}

.garden-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  padding: 30px;
  height: 100%;
}

.target-bug-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 100px;
  position: relative;
}

/* 放大镜显微缩放的平滑变焦特效 */
.target-bug-card.zoomed {
  transform: scale(1.15);
  border-color: var(--sky-accent);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.16);
  background: #ffffff;
  z-index: 5;
}

.target-bug-card .bug-emoji {
  font-size: 42px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.target-bug-card.zoomed .bug-emoji {
  transform: scale(2.2); /* 镜下显微放大 */
}

.target-bug-card .sandbox-item-label {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.target-bug-card.zoomed .sandbox-item-label {
  transform: translateY(6px);
  opacity: 0.8;
}

.target-bug-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.target-bug-card.selected-correct {
  border-color: var(--mint-base);
  background: var(--mint-light);
}

.target-bug-card.selected-wrong {
  border-color: var(--coral-base);
  background: var(--coral-light);
}

.magnifier-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid var(--navy-deep);
  box-shadow: 0 8px 32px rgba(15,23,42,0.25), inset 0 0 10px rgba(0,0,0,0.2);
  pointer-events: none;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  z-index: 10;
  display: none;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.magnifier-handle {
  position: absolute;
  width: 8px;
  height: 60px;
  background: var(--navy-deep);
  bottom: -40px;
  right: -10px;
  transform: rotate(-45deg);
  transform-origin: top center;
}

/* === 核心动效与微交互 === */

/* 正弦浮力上下摇摆动效 */
@keyframes floating-bob {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.floating-bob {
  animation: floating-bob 3.2s infinite ease-in-out;
}

/* 植物成长弹性萌发特效 */
@keyframes scaleUpBounce {
  0% { transform: scale(0.3); opacity: 0; }
  65% { transform: scale(1.15); opacity: 1; }
  85% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.scaleUpBounce {
  animation: scaleUpBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

@keyframes pulse-star {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3)); }
  100% { transform: scale(1.25); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8)); }
}

/* 媒体查询 */
@media (max-width: 768px) {
  .hero-title { font-size: 30px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .glass-header { padding: 12px 16px; margin-bottom: 24px; }
  .brand-text { font-size: 18px; }
  .play-area-card { min-height: 400px; padding: 16px; }
  .garden-grid { grid-template-columns: repeat(2, 1fr); padding: 16px; overflow-y: auto; }
  .beaker-rack { gap: 10px; }
}

@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr; }
  .score-label { display: none; }
}
