/* ============================================================
   儿童益智游戏 —— 样式表
   设计原则：大按钮 / 大字体 / 高对比 / 圆润 / 明亮活泼
   ============================================================ */
:root {
  --bg: #f0f8ff;
  --ink: #2b2d42;
  --muted: #7a8ba6;
  --card: #ffffff;
  --line: #e3ecf7;
  --primary: #ff6b6b;
  --yellow: #ffd166;
  --green: #06d6a0;
  --blue: #4cc9f0;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(80, 120, 180, 0.14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Comic Sans MS", sans-serif;
  background: linear-gradient(160deg, #e8f4ff 0%, #fef6ff 100%);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.page { padding: 18px 18px 32px; min-height: 100vh; }

/* ---------- 首页 ---------- */
.home-header { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 16px; }
.greeting { font-size: 20px; font-weight: 800; }
.home-stars { background: #fff7e0; color: #b8860b; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); }
.home-banner {
  background: linear-gradient(120deg, #ffd166, #ff9f68);
  border-radius: var(--radius); padding: 22px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow); margin-bottom: 22px; color: #7a3b00;
}
.banner-text { font-size: 22px; font-weight: 800; line-height: 1.4; }
.banner-text small { font-size: 14px; font-weight: 600; opacity: .8; }
.banner-deco { font-size: 52px; }

.game-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.game-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--card); border: 3px solid var(--line); border-left: 8px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.game-card:active { transform: scale(.97); }
.game-card:hover { box-shadow: 0 12px 30px rgba(80,120,180,.22); }
.game-icon { font-size: 46px; width: 64px; text-align: center; }
.game-name { font-size: 20px; font-weight: 800; }
.game-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }

.home-footer { display: flex; gap: 8px; margin: 20px 0 14px; flex-wrap: wrap; }
.mini-stat { background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.parent-entry {
  display: block; width: 100%; background: transparent; border: 2px dashed #c9d6e8; color: #8fa3bd;
  padding: 12px; border-radius: 14px; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ---------- 答题页 ---------- */
.quiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.icon-btn { background: #fff; border: none; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; cursor: pointer; box-shadow: var(--shadow); }
.star-count { background: #fff7e0; color: #b8860b; padding: 8px 14px; border-radius: 999px; font-weight: 800; }
.progress-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #dfe7f2; }
.dot.done { background: var(--green); }
.dot.cur { background: var(--yellow); transform: scale(1.2); }

.quiz-prompt { text-align: center; font-size: 19px; font-weight: 800; margin: 6px 0 14px; padding: 10px 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.quiz-stage { text-align: center; margin: 6px 0 20px; }
.big-emoji, .big-zi { font-size: 96px; line-height: 1.1; }
.big-zi { font-weight: 800; color: var(--primary); }
.word-label { font-size: 20px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.pinyin { font-size: 22px; color: var(--blue); font-weight: 700; margin-top: 6px; }
.poem-emoji { font-size: 64px; }
.poem-upper { font-size: 28px; font-weight: 800; margin-top: 8px; color: #6a4c93; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option-btn {
  background: #fff; border: 3px solid var(--line); border-radius: 18px; min-height: 88px;
  font-size: 18px; cursor: pointer; box-shadow: var(--shadow); transition: transform .1s ease;
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.option-btn:active { transform: scale(.95); }
.option-btn .zi { font-size: 44px; font-weight: 800; }
.option-btn .match-emoji { font-size: 46px; }
.option-btn .poem-line { font-size: 17px; font-weight: 700; }
.option-btn.correct { border-color: var(--green); background: #e6fff7; animation: pop .35s ease; }
.option-btn.wrong { border-color: #ffb3b3; background: #fff0f0; }
.quiz-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; min-height: 20px; }

.float-score { position: fixed; top: 45%; left: 50%; font-size: 34px; font-weight: 900; color: #e6a400; pointer-events: none; animation: floatUp 1s ease forwards; z-index: 50; text-shadow: 0 2px 8px #fff; }
.confetti { position: fixed; top: 44%; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; z-index: 49; animation: burst 1s ease forwards; }

/* ---------- 结算页 ---------- */
.result { text-align: center; padding-top: 40px; }
.result-emoji { font-size: 100px; animation: pop .5s ease; }
.result h2 { font-size: 26px; margin: 10px 0 18px; }
.result-stars, .result-total { font-size: 18px; margin: 8px 0; }
.result-stars b, .result-total b { color: #e6a400; font-size: 24px; }
.result-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.badge-earned { margin-top: 18px; }
.badge-pop { background: #fff7e0; border: 2px solid var(--yellow); border-radius: 14px; padding: 12px; margin: 8px 0; font-weight: 700; animation: pop .5s ease; }
.badge-pop span { font-size: 30px; margin-right: 8px; }

/* ---------- 按钮 ---------- */
.big-btn { background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 16px; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.big-btn:active { transform: scale(.97); }
.big-btn.primary { background: linear-gradient(120deg, #ff8a5b, #ff6b6b); color: #fff; border-color: #ff6b6b; }
.text-btn { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; margin-top: 14px; }

/* ---------- 家长门 / 面板 ---------- */
.gate { text-align: center; padding-top: 60px; }
.gate-icon { font-size: 64px; }
.gate h2 { font-size: 24px; }
.gate p { font-size: 18px; }
.gate input[type=number] { width: 180px; font-size: 24px; text-align: center; padding: 12px; border: 3px solid var(--line); border-radius: 14px; margin: 10px 0; }
.gate .big-btn { width: 200px; }
.gate-err { color: var(--primary); font-size: 14px; min-height: 20px; }

.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head h2 { font-size: 22px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.stat-card { background: #fff; border-radius: 18px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: 34px; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.panel-section { background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel-section h3 { margin: 0 0 12px; font-size: 17px; }
.usage-bar { background: #eef3fa; border-radius: 999px; height: 14px; overflow: hidden; }
.usage-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 999px; }
.usage-text { font-size: 13px; color: var(--muted); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 15px; border-top: 1px solid var(--line); }
.setting-row select, .setting-row input[type=text] { font-size: 15px; padding: 8px; border: 2px solid var(--line); border-radius: 10px; }
.setting-row input[type=text] { width: 130px; }
.toggle-row input { width: 22px; height: 22px; }
.panel-section details { margin: 8px 0; }
.panel-section summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.learned-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.learned-tag { background: #eef8ff; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.empty { color: var(--muted); font-size: 13px; }
.badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge-item { display: flex; gap: 10px; align-items: center; background: #f5f7fa; border-radius: 14px; padding: 10px; opacity: .5; }
.badge-item.got { opacity: 1; background: #fff7e0; }
.badge-item span { font-size: 28px; }
.badge-item b { display: block; font-size: 14px; }
.badge-item small { display: block; font-size: 11px; color: var(--muted); }
.panel-actions { display: flex; gap: 12px; }
.panel-admin-link { text-align: center; margin: 18px 0 0; }
.panel-admin-link a { color: #9aabc2; font-size: 13px; text-decoration: none; }
.panel-admin-link a:hover { color: var(--muted); text-decoration: underline; }

/* ---------- 动画 ---------- */
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes floatUp { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 30% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); } 100% { transform: translate(-50%, -80px) scale(1); opacity: 0; } }
@keyframes burst { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; } }

/* ---------- 平板/大屏 ---------- */
@media (min-width: 640px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
  .options { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   创作类小游戏（蒙特梭利：有准备的环境 · 自由选择 · 亲手操作）
   ============================================================ */
.home-group { margin-bottom: 20px; }
.home-group-head { display: flex; align-items: baseline; gap: 8px; margin: 4px 2px 10px; }
.home-group-title { font-size: 17px; font-weight: 800; }
.home-group-sub { font-size: 12px; color: var(--muted); }

.creative-page {
  display: flex; flex-direction: column; gap: 9px;
  height: 100vh; min-height: 100vh; padding: 12px 14px 14px;
}
.creative-top { display: flex; align-items: center; justify-content: space-between; flex: none; }
.creative-title { font-size: 17px; font-weight: 800; }
.hint-bar {
  flex: none; background: #fff; border-radius: 12px; padding: 7px 12px;
  font-size: 12.5px; color: var(--muted); text-align: center; box-shadow: var(--shadow);
}

.creative-stage {
  position: relative; flex: 1; min-height: 240px; overflow: hidden;
  border-radius: 20px; border: 3px solid #fff; background: #fff;
  box-shadow: var(--shadow); touch-action: none;
}
.paper-dot {
  background-color: #fffdf7;
  background-image: radial-gradient(#e7dcc6 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.paper-kraft {
  background-color: #fbf3e4;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, .65), rgba(233, 215, 183, .35));
}
.paper-white { background: #fff; }

.trash-zone {
  position: absolute; right: 10px; bottom: 10px; z-index: 30;
  width: 54px; height: 54px; border-radius: 50%; font-size: 24px; cursor: pointer;
  border: 2px dashed #cbd5e1; background: rgba(255, 255, 255, .85);
  opacity: .5; transition: transform .15s, opacity .15s, border-color .15s, background .15s;
}
.trash-zone.hot { opacity: 1; transform: scale(1.15); border-color: var(--primary); background: #fff0f0; }

.stage-item { position: absolute; touch-action: none; cursor: grab; }
.stage-item .fit {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  transform-origin: center; transition: transform .2s ease;
}
/* 让整个元素盒子都能接住指针，避免线稿 SVG 的透明区域穿透导致拖不动 */
.stage-item .fit, .stage-item .fit * { pointer-events: none; }
.stage-item.selected { outline: 3px dashed #9db4d0; outline-offset: 3px; border-radius: 6px; }
.stage-item.dragging { cursor: grabbing; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .18)); }
.stage-item.poof { animation: poof .18s ease forwards; }
@keyframes poof { to { transform: scale(.2); opacity: 0; } }

.creative-tools { flex: none; display: flex; flex-direction: column; gap: 8px; }
.tool-row { display: flex; gap: 8px; align-items: center; }
.actions { justify-content: space-between; }

.tray { overflow-x: auto; padding-bottom: 2px; }
.tray::-webkit-scrollbar { display: none; }
.tray-item {
  flex: none; width: 64px; padding: 6px 4px 5px; cursor: pointer; touch-action: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 4px 10px rgba(80, 120, 180, .10);
}
.tray-item:active { transform: scale(.95); }
.tray-preview { height: 34px; display: flex; align-items: center; justify-content: center; }
.tray-name { font-size: 11px; font-weight: 700; color: var(--muted); }
.pblock { display: block; background: #e0c58f; border-radius: 4px; }

.tray-ghost {
  position: fixed; z-index: 999; pointer-events: none; opacity: .92;
  display: flex; align-items: center; justify-content: center;
}
.tray-ghost > div, .tray-ghost .fit { width: 100%; height: 100%; }
.tray-ghost .ico { display: block; }

.palette { gap: 10px; overflow-x: auto; }
.color-dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 3px 8px rgba(80, 120, 180, .25); opacity: .75;
}
.color-dot.on { opacity: 1; transform: scale(1.14); border-color: #2b2d42; }

.tool-btn {
  flex: 1; background: #fff; border: 2px solid var(--line); border-radius: 14px;
  padding: 10px 8px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
}
.tool-btn:active { transform: scale(.97); }
.tool-btn.on { background: #ffe8e8; border-color: var(--primary); }

/* 02 色彩实验室 */
.mix-row { justify-content: space-between; }
.cups { display: flex; gap: 6px; }
.cup { background: none; border: none; padding: 0; width: 46px; cursor: pointer; touch-action: none; }
.cup i {
  display: block; width: 40px; height: 40px; margin: 0 auto;
  border-radius: 12px 12px 16px 16px; border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(80, 120, 180, .25);
}
.cup b { font-size: 11px; color: var(--muted); }
.cup:active { transform: scale(.94); }
.mixed-well { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.well-color {
  display: block; width: 56px; height: 44px; border-radius: 14px;
  border: 3px solid #fff; box-shadow: inset 0 0 0 1px #dbe4ef;
}
.mixed-well b { font-size: 11px; color: var(--muted); }
.paint-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }

/* 03 小小建筑师 */
.builder-stage { background: linear-gradient(#f3f8ff, #e7f1fb); }
.ground-line {
  position: absolute; left: 0; right: 0; bottom: 6px; height: 6px;
  background: linear-gradient(90deg, #d7c4a3, #c9b391); border-radius: 3px;
}
.stage-item.block { transition: top .28s cubic-bezier(.34, 1.3, .64, 1); }
.stage-item.block.dragging { transition: none; }
.stage-item.block .fit { display: block; }
.block-face {
  width: 100%; height: 100%; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 3px 6px rgba(0, 0, 0, .10);
}
.stage-item.tipped .fit { animation: tipWobble .5s ease; }
@keyframes tipWobble {
  0% { transform: rotate(-10deg); }
  50% { transform: rotate(8deg); }
  100% { transform: rotate(0); }
}
.builder-stage.shake { animation: stageShake .4s ease; }
@keyframes stageShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* 05 声音实验室 */
.sound-stage {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eaf6ff, #fdf2ff);
}
.sound-board { width: 100%; padding: 8px; text-align: center; }
.sound-hero { font-size: 84px; line-height: 1.15; }
.sound-hero.pulse { animation: heroPulse .28s ease; }
@keyframes heroPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-3deg); }
  100% { transform: scale(1); }
}
.beat-lane { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; min-height: 34px; }
.beat { font-size: 20px; animation: beatIn .3s ease; }
@keyframes beatIn {
  from { transform: scale(.2) translateY(10px); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.inst-row { overflow-x: auto; gap: 8px; }
.inst-btn {
  flex: none; min-width: 64px; padding: 6px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow);
}
.inst-btn span { font-size: 22px; }
.inst-btn b { font-size: 11px; color: var(--muted); }
.inst-btn.on { border-color: var(--blue); background: #eaf8ff; }
.keys { align-items: flex-end; justify-content: center; gap: 6px; }
.key {
  flex: 1; max-width: 54px; height: var(--h); cursor: pointer; touch-action: none;
  border: none; border-radius: 10px 10px 14px 14px; font-size: 14px; font-weight: 800;
  color: #5a6b82; background: linear-gradient(#ffffff, #dce9f6); box-shadow: 0 4px 0 #b9cde2;
}
.key.active { transform: translateY(4px); box-shadow: none; background: linear-gradient(#ffe9a8, #ffd166); }

/* ---------- SVG 图标排版（全站零 emoji） ---------- */
.ico { display: inline-block; vertical-align: -0.18em; flex: none; }
.icon-btn { display: flex; align-items: center; justify-content: center; color: #5a6b82; }
.game-icon { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 0; }
.game-info { flex: 1 1 auto; min-width: 0; }
.game-name { line-height: 1.25; }
.home-stars { display: inline-flex; align-items: center; gap: 4px; }
.home-group-title .ico { color: var(--muted); }
.banner-deco { display: flex; align-items: center; }
.home-group-title { display: inline-flex; align-items: center; gap: 6px; }
.mini-stat { display: inline-flex; align-items: center; gap: 5px; }
.parent-entry { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gate-icon { display: flex; justify-content: center; color: #94a3b8; font-size: 0; }
.panel-head h2 { display: flex; align-items: center; gap: 8px; }
.star-count { display: inline-flex; align-items: center; gap: 4px; }
.result-icon { display: flex; justify-content: center; animation: pop .5s ease; }
.result-stars b { display: inline-flex; align-items: center; gap: 4px; }
.badge-pop .badge-icon { display: inline-flex; align-items: center; margin-right: 8px; color: #c98a3e; vertical-align: middle; }
.badge-item .badge-icon { display: flex; align-items: center; color: #c98a3e; }
.big-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.creative-title { display: flex; align-items: center; gap: 6px; }
.tool-btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tray-preview svg { display: block; }
.trash-zone { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0; }
.trash-zone.hot { color: var(--primary); }
.inst-btn span { display: flex; align-items: center; justify-content: center; font-size: 0; }
.beat { display: inline-flex; line-height: 0; }
.sound-hero { display: flex; justify-content: center; line-height: 0; }
.float-score { display: flex; align-items: center; justify-content: center; gap: 4px; }

/* ---------- 防误触缩放：小手连点 / 双指不放大界面 ---------- */
html, body { touch-action: manipulation; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { -webkit-touch-callout: none; }
button, .tray-item, .key, .color-dot, .cup { touch-action: manipulation; }
.creative-page { touch-action: manipulation; overscroll-behavior: none; }
.stage-item, .tray-ghost { -webkit-user-drag: none; }
/* iOS Safari 地址栏收起会让 100vh 突然变高、看起来像被放大，改用 dvh 固定视觉高度 */
@supports (height: 100dvh) {
  #app { min-height: 100dvh; }
  .creative-page { height: 100dvh; min-height: 100dvh; }
}

/* ---------- 全屏自适应：铺满一屏、无需上下滚动 ---------- */
#app { max-width: 1180px; min-height: 100dvh; }
.home {
  display: flex; flex-direction: column; height: 100dvh; min-height: 0;
  padding: 10px 14px; overflow: hidden;
}
.home-header { margin: 2px 2px 8px; }
.home-banner { margin-bottom: 10px; padding: 12px 16px; }
.banner-text { font-size: 18px; }
.home-games {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.home-games::-webkit-scrollbar { display: none; }
.home-group { margin-bottom: 10px; }
.home-group-head { margin: 2px 2px 6px; }
.game-grid { gap: 8px; }
.game-card { padding: 8px 10px; gap: 8px; }
.game-icon svg { width: 38px; height: 38px; }
.game-name { font-size: 15.5px; }
.game-desc { font-size: 11px; margin-top: 1px; }
.home-footer { margin-top: 6px; padding-top: 6px; }
.home-footer .mini-stat { font-size: 12px; }
.parent-entry { margin-top: 6px; padding: 8px; }

@media (min-width: 760px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }

/* 创作页紧凑排版，保证整屏放下所有工具 */
.creative-page {
  position: fixed; inset: 0; height: auto; min-height: 0; overflow: hidden;
  padding: 8px 12px 10px; gap: 6px;
}
.creative-stage { min-height: 0; }
.hint-bar { padding: 5px 10px; font-size: 12px; }
.tray-item { width: 60px; padding: 4px 3px; }
.tray-preview { height: 30px; }
.tool-btn { padding: 8px 6px; font-size: 13.5px; }
.color-dot { width: 30px; height: 30px; }
.cup i { width: 34px; height: 34px; }

@media (max-height: 700px) {
  .hint-bar { display: none; }
  .home-banner { display: none; }
  .home-group-sub { display: none; }
  .tray-preview { height: 26px; }
  .tool-btn { padding: 6px 4px; }
}

/* ============================================================
   识字小能手 · 主题任务
   ============================================================ */
.play-page.reading-host {
  height: 100dvh; min-height: 0; padding: 10px 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.read-home, .read-quiz {
  width: 100%; max-width: 760px; margin: 0 auto;
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px;
}
.read-home .quiz-top, .read-quiz .quiz-top { flex: none; }

/* 主题选择 */
.read-hero {
  flex: none; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, #fff5e6, #eef9ff);
  border: 3px solid #fff; border-top: 8px solid var(--accent);
  border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow);
}
.read-hero-icon { display: flex; align-items: center; justify-content: center; flex: none; }
.read-hero-info { min-width: 0; }
.read-hero-title { font-size: 23px; font-weight: 800; }
.read-hero-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.read-hero-progress { font-size: 12px; color: #7a8ba6; margin-top: 5px; }
.read-start { flex: none; padding: 20px; font-size: 22px; }
.read-theme-label { flex: none; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.theme-chips {
  flex: 1; min-height: 0; overflow-y: auto; align-content: flex-start;
  display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px;
}
.theme-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 12px; font-size: 13px; font-weight: 700; color: #5a6b82;
  cursor: pointer; box-shadow: 0 4px 10px rgba(80, 120, 180, .1);
}
.theme-chip:active { transform: scale(.96); }
.theme-chip.on { border-color: var(--primary); background: #fff0f0; color: var(--primary); }

/* 开场字卡 */
.read-intro-head { flex: none; text-align: center; font-size: 18px; font-weight: 800; margin: 2px 0 4px; }
.read-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.read-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 10px 6px; overflow: hidden; cursor: pointer;
  background: #fff; border: 3px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.read-card:active { transform: scale(.97); }
.read-card.on { border-color: var(--primary); background: #fff8f8; animation: pop .35s ease; }
.card-emoji { font-size: clamp(38px, 11vh, 78px); line-height: 1.05; }
.card-char { font-size: clamp(34px, 9vh, 64px); font-weight: 800; color: var(--primary); line-height: 1.05; }
.card-pinyin { font-size: 15px; color: var(--blue); font-weight: 700; }
.card-word { font-size: 16px; font-weight: 700; }
.card-sentence { font-size: 11px; color: var(--muted); text-align: center; margin-top: 2px; }
.read-intro-actions { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.read-intro-actions .big-btn { padding: 14px; }
.read-intro-actions .text-btn { margin-top: 0; }

/* 普通题 */
.read-quiz .read-prompt { flex: none; margin: 0; padding: 8px 12px; font-size: 17px; }
.read-prompt b { color: var(--primary); }
.read-stage {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; position: relative;
}
.read-big-emoji { font-size: clamp(56px, 17vh, 120px); line-height: 1.05; }
.read-big-zi { font-size: clamp(68px, 21vh, 142px); font-weight: 800; color: var(--primary); line-height: 1; }
.read-answer-word { font-size: 18px; font-weight: 700; color: var(--muted); }
.read-answer-pinyin { font-size: 20px; font-weight: 700; color: var(--blue); }
.read-speaker {
  width: 104px; height: 104px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(140deg, #4cc9f0, #4361ee);
  box-shadow: 0 10px 24px rgba(67, 97, 238, .35);
  animation: speakPulse 2s ease-in-out infinite;
}
.read-speaker.small {
  width: 50px; height: 50px; animation: none;
  background: #fff; color: #4361ee; box-shadow: var(--shadow);
  border: 2px solid var(--line);
}
.read-speaker:active { transform: scale(.94); }
.read-switch {
  margin-top: 4px; padding: 8px 18px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #5a6b82; box-shadow: var(--shadow);
}
.read-switch:active { transform: scale(.96); }
.read-speaker[hidden], .read-switch[hidden], .read-big-emoji[hidden],
.read-answer-word[hidden], .read-answer-pinyin[hidden] { display: none; }
@keyframes speakPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.read-options { flex: none; }
.read-options .option-btn { min-height: 72px; }
.read-options .read-option-emoji { font-size: clamp(34px, 8vh, 52px); line-height: 1; }
.read-options .option-btn.spent { opacity: .25; }
.read-next-wrap { flex: none; }
.read-next-wrap .read-next { width: 100%; padding: 14px; }
.read-quiz .quiz-hint { flex: none; margin-top: 4px; font-size: 13px; }

/* 场景挂字牌 */
.scene-wrap { align-items: stretch; justify-content: stretch; }
.scene-stage {
  position: relative; flex: 1; min-height: 0; width: 100%;
  border-radius: 20px; overflow: hidden; border: 3px solid #fff;
  background: linear-gradient(#eaf7ff 0%, #f8fff4 68%, #e6f6d6 100%);
  box-shadow: var(--shadow);
}
.scene-deco { position: absolute; inset: 0; pointer-events: none; }
.scene-deco-item { position: absolute; font-size: clamp(22px, 5.5vh, 42px); opacity: .95; }
.scene-place-tag {
  position: absolute; left: 10px; top: 8px; z-index: 3;
  background: rgba(255, 255, 255, .86); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-weight: 700; color: #5a6b82;
}
.scene-signs { position: absolute; left: 0; right: 0; bottom: 10%; height: 38%; }
.scene-sign {
  position: absolute; bottom: 0; width: 25%; min-width: 68px; max-width: 110px;
  padding: 10px 6px; cursor: grab; touch-action: none; user-select: none;
  background: linear-gradient(#ffeccd, #ffdca8); border: 3px solid #b08968;
  border-radius: 12px; box-shadow: 0 6px 0 #a97c52, 0 10px 18px rgba(0, 0, 0, .12);
  transition: transform .15s ease, opacity .2s ease, border-color .15s ease;
}
.scene-sign.s0 { left: 8%; }
.scene-sign.s1 { left: 36%; }
.scene-sign .sign-char { font-size: clamp(28px, 7vh, 46px); font-weight: 800; color: #6b4a32; }
.scene-sign.selected {
  transform: translateY(-8px) scale(1.06);
  border-color: var(--primary); outline: 3px dashed rgba(255, 107, 107, .6); outline-offset: 3px;
}
.scene-sign.dragging { opacity: .32; transform: scale(.96); }
.scene-sign.wrong { opacity: .3; filter: grayscale(1); }
.scene-sign.docked { opacity: 0; transform: scale(.6); }
.scene-hook {
  position: absolute; right: 5%; top: 16%; width: 86px; height: 86px;
  border-radius: 50%; border: 4px dashed #9db4d0; cursor: pointer;
  background: rgba(255, 255, 255, .82); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  box-shadow: var(--shadow); touch-action: manipulation;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.hook-ring { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #9db4d0; }
.hook-label { font-size: 10px; color: #7a8ba6; font-weight: 700; }
.scene-hook.ready { border-color: var(--primary); background: #fff4ef; }
.scene-hook.drop-ready {
  border-color: var(--green); background: #e6fff7;
  transform: scale(1.1); box-shadow: 0 0 0 8px rgba(6, 214, 160, .14), var(--shadow);
}
.scene-hook.pulse { animation: hookPulse .9s ease-in-out infinite; border-color: var(--primary); }
@keyframes hookPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, .35); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(255, 107, 107, 0); }
}
.scene-hook.filled {
  border-style: solid; border-color: var(--green); background: #e6fff7;
  animation: pop .35s ease;
}
.docked-char { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; }
.docked-emoji { font-size: 20px; line-height: 1.1; }
.scene-drag-ghost {
  position: fixed; z-index: 200; width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: .96;
  background: linear-gradient(#ffeccd, #ffdca8); border: 3px solid #b08968;
  border-radius: 12px; box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
  transform: translate(-50%, -50%) rotate(-3deg) scale(1.06);
}
.scene-drag-ghost .sign-char { font-size: 38px; font-weight: 800; color: #6b4a32; }

/* 结算 */
.reading-result {
  width: 100%; max-width: 620px; margin: 0 auto;
  height: 100%; overflow-y: auto; padding: 10px 4px 20px;
}
.reading-result h2 { font-size: 23px; margin: 4px 0 8px; }
.reading-result .result-icon svg { width: 76px; height: 76px; }
.reading-result .result-stars, .reading-result .result-total { font-size: 16px; margin: 4px 0; }
.reading-result .result-stars b, .reading-result .result-total b { font-size: 20px; }
.reading-result .result-actions { margin-top: 14px; gap: 8px; }
.reading-result .result-actions .big-btn { padding: 12px; font-size: 16px; }
.read-met { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.read-met-card {
  position: relative; width: 86px; padding: 8px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.read-met-card.got { border-color: var(--yellow); background: #fffdf3; }
.read-met-card .m-emoji { font-size: 24px; line-height: 1.1; }
.read-met-card .m-char { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.read-met-card .m-word { font-size: 10px; color: var(--muted); }
.read-met-card .m-star { position: absolute; top: 3px; right: 3px; color: #e6a400; line-height: 0; }

/* 家长中心：识字练习 */
.read-status { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.read-status-block { min-width: 0; }
.read-status-block h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.read-status-block h4 b { color: var(--ink); font-size: 15px; }
.read-status .learned-list { margin-top: 0; }
.review-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff4e6; border-radius: 10px; padding: 6px 10px; font-size: 13px;
}
.review-tag.wrong { background: #ffecec; }
.review-tag small { font-size: 10px; color: #b45309; }

@media (max-width: 420px) {
  .read-status { grid-template-columns: 1fr; }
  .card-sentence { display: none; }
  .reading-result .result-actions .big-btn { padding: 11px; }
}
@media (max-height: 620px) {
  .card-sentence { display: none; }
  .read-hero { padding: 10px 14px; }
  .read-hero-title { font-size: 20px; }
  .read-start { padding: 14px; font-size: 19px; }
  .read-intro-head { font-size: 15px; }
}
@supports (height: 100dvh) {
  .play-page.reading-host { height: 100dvh; }
}

/* ============================================================
   小熊水果店 · 儿童美语口语练习
   ============================================================ */
.play-page.english-host {
  height: 100dvh; min-height: 0; padding: 10px 14px; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fff8ef, #eef9ff);
}
.english-host .en-screen {
  width: 100%; max-width: 760px; margin: 0 auto; flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.en-top .en-round { font-size: 13px; font-weight: 800; color: #7a8ba6; }
.en-top .en-basket-count {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
  border-radius: 999px; background: #fff3d6; color: #8a5a00; font-size: 13px; font-weight: 800;
}
.en-stand {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  border-radius: 24px; border: 3px solid #fff; box-shadow: var(--shadow);
  background: linear-gradient(#fff4e6, #ffe6bd);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px;
}
.en-stand::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(#d9a45f, #b98244); opacity: .3;
}
.en-bear { position: relative; z-index: 1; font-size: clamp(54px, 13vh, 100px); line-height: 1; }
.en-stand-counter {
  position: relative; z-index: 2; width: 100%; display: flex; gap: 8px; justify-content: center;
}
.en-fruit {
  flex: 1; max-width: 112px; padding: 8px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #fff; border: 3px solid var(--line); border-radius: 18px;
  box-shadow: 0 6px 14px rgba(120, 80, 30, .14);
}
.en-fruit:active { transform: scale(.95); }
.en-fruit-emoji { font-size: clamp(30px, 7vh, 48px); line-height: 1.1; }
.en-fruit-en { font-size: 14px; font-weight: 800; color: #1d3557; }
.en-fruit-cn { font-size: 11px; color: var(--muted); }
.en-welcome { flex: none; text-align: center; }
.en-line { font-size: clamp(18px, 3.1vh, 26px); font-weight: 800; color: #1d3557; line-height: 1.25; }
.en-cn { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.en-center { text-align: center; }
.en-main-btn { flex: none; padding: 16px; font-size: 20px; }
.en-bear-row { flex: none; display: flex; align-items: center; gap: 10px; }
.en-bear-small { font-size: clamp(40px, 9vh, 68px); }
.en-bubble {
  position: relative; background: #fff; border-radius: 18px; padding: 10px 12px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.en-question { flex: 1; flex-direction: row; align-items: center; gap: 8px; }
.en-question .en-line { flex: 1; }
.en-replay {
  flex: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: #4361ee;
  display: flex; align-items: center; justify-content: center;
}
.en-choices { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.en-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 8px; cursor: pointer; background: #fff;
  border: 4px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.en-choice:active { transform: scale(.96); }
.en-choice .en-fruit-emoji { font-size: clamp(56px, 15vh, 110px); }
.en-choice .en-fruit-en { font-size: clamp(18px, 3vh, 26px); }
.en-choice .en-fruit-cn { font-size: 12px; }
.en-speak-scene { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.en-selected-fruit { font-size: clamp(70px, 20vh, 140px); line-height: 1; }
.en-demo { flex: none; align-items: center; text-align: center; }
.en-actions { flex: none; display: flex; gap: 10px; }
.en-actions .big-btn { flex: 1; padding: 14px; }
.en-give-scene { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.en-basket {
  position: relative; width: 150px; height: 110px;
  border-radius: 0 0 26px 26px; border: 3px solid #a97c52;
  background: repeating-linear-gradient(90deg, #e0c58f 0 12px, #d4b57c 12px 24px);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, .25), var(--shadow);
}
.en-basket.big { width: 190px; height: 130px; }
.en-basket-fruits {
  position: absolute; left: 0; right: 0; top: -24px;
  display: flex; justify-content: center; gap: 2px;
}
.en-basket-fruit { font-size: clamp(26px, 6vh, 38px); line-height: 1; }
.en-basket-fruit.just { animation: pop .4s ease; }
.en-finish { overflow-y: auto; align-items: center; text-align: center; gap: 8px; padding: 4px 2px 16px; }
.en-finish-bear { font-size: clamp(46px, 10vh, 80px); line-height: 1; }
.en-finish-title { margin: 0; font-size: clamp(21px, 4vh, 30px); color: #1d3557; }
.en-parent-tip {
  width: 100%; padding: 12px 14px; text-align: left;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.6; color: var(--ink);
}
.en-parent-tip b { color: var(--primary); }
.en-parent-tip p { margin: 4px 0 0; color: var(--muted); }
.en-finish-actions { width: 100%; display: flex; gap: 8px; margin-top: 4px; }
.en-finish-actions .big-btn { flex: 1; padding: 13px; }
.en-audio-hint {
  flex: none; padding: 8px 12px; border-radius: 12px;
  background: #fff4e6; color: #8a5a00; font-size: 12px; text-align: center;
}
.en-rest { height: 100%; }
@media (max-height: 640px) {
  .en-cn { display: none; }
  .en-stand { gap: 6px; }
  .en-choices { gap: 8px; }
  .en-choice .en-fruit-cn { display: none; }
}
@media (max-width: 380px) {
  .en-basket { width: 120px; }
  .en-basket.big { width: 150px; }
  /* 小熊是第二关的“顾客”，窄屏也保留，只缩小一点 */
  .en-bear-small { font-size: 38px; }
}
@supports (height: 100dvh) {
  .play-page.english-host { height: 100dvh; }
}

/* ---------- 小熊水果店：引导层与第二关 ---------- */
.en-top .en-round {
  flex: 1; min-width: 0; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.en-top-right { flex: none; display: flex; align-items: center; gap: 6px; }
.en-help-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: #4361ee;
  font-size: 17px; font-weight: 900; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.en-help-btn:active { transform: scale(.94); }

.en-guide {
  flex: none; display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-radius: 14px; background: #fff;
  border: 2px solid #fff3e2; box-shadow: var(--shadow);
}
.en-guide-bear { flex: none; font-size: 19px; line-height: 1; }
.en-guide-text { flex: 1; font-size: 12.5px; line-height: 1.35; font-weight: 700; color: #5a6b82; }

.en-steps { flex: none; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.en-step {
  font-size: 10.5px; font-weight: 700; color: #9aa8bd;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px;
}
.en-step.on { color: #fff; background: #ff8a5b; border-color: #ff8a5b; }
.en-step.done { color: #0aa678; background: #effcf7; border-color: #bdeedc; }

.en-pointer {
  flex: none; text-align: center; font-size: 12.5px; font-weight: 800;
  color: #ff6b6b; animation: enBounce 1s ease-in-out infinite;
}
.en-tap-tip { font-size: 9px; font-weight: 800; color: #ff8a5b; line-height: 1.2; }

.en-stand-bubble {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 3; padding: 4px 10px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow); white-space: nowrap;
}
.en-stand-bubble .en-line { font-size: 12px; }

.en-levels { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.en-level {
  display: flex; flex-direction: column; gap: 1px; text-align: left; cursor: pointer;
  padding: 8px 10px; border: 3px solid var(--line); border-radius: 16px;
  background: #fff; box-shadow: 0 4px 10px rgba(120, 80, 30, .12);
}
.en-level.on { border-color: #ff8a5b; background: #fff6ef; }
.en-level-no { font-size: 10px; font-weight: 800; color: #ff8a5b; }
.en-level-name { font-size: 13px; font-weight: 800; color: #1d3557; }
.en-level-desc { font-size: 10px; line-height: 1.3; color: var(--muted); }

.en-turn {
  flex: none; align-self: center; padding: 4px 12px; border-radius: 999px;
  background: #fff3d6; color: #8a5a00; font-size: 12px; font-weight: 800;
}
.en-order-label {
  display: block; font-size: 10px; font-weight: 800; color: #ff8a5b; margin-bottom: 1px;
}
.en-selected-fruit.small { font-size: clamp(34px, 8vh, 56px); }
.en-hand-bubble { border: 2px solid #ffe0b5; }
.en-finish-sub { font-size: 13px; color: var(--muted); }

.en-choices.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.en-choices.three .en-choice { padding: 8px 4px; border-width: 3px; border-radius: 18px; }
.en-choices.three .en-fruit-emoji { font-size: clamp(38px, 10vh, 72px); }
.en-choices.three .en-fruit-en { font-size: clamp(12px, 2.1vh, 17px); }
.en-choices.three .en-fruit-cn { font-size: 11px; }

.en-choice.en-glow { border-color: #ffd166; background: #fffdf3; animation: enPulse 1.2s ease-in-out infinite; }
.en-choice.en-shake { animation: enShake .35s ease; }

.en-pulse { animation: enPulse 1.2s ease-in-out infinite; }

@keyframes enPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 91, .5); }
  50% { box-shadow: 0 0 0 9px rgba(255, 138, 91, 0); }
}
@keyframes enBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes enShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-height: 640px) {
  .en-guide { padding: 6px 9px; }
  .en-guide-text { font-size: 11.5px; }
  .en-steps { display: none; }
  .en-levels { gap: 6px; }
  .en-level { padding: 6px 8px; }
}
@media (max-width: 360px) {
  .en-top .en-basket-count { padding: 4px 7px; font-size: 12px; }
  .en-help-btn { width: 32px; height: 32px; }
  .en-level-desc { display: none; }
}

/* ============================================================
   汉字演变动画
   ============================================================ */
.evo-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(24, 34, 54, .42);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: evoFade .18s ease;
}
.evo-card {
  width: min(420px, 100%); max-height: 92dvh; overflow: auto;
  background: #fff; border-radius: 24px; padding: 14px 16px 16px;
  box-shadow: 0 22px 60px rgba(20, 30, 60, .32);
  text-align: center; animation: evoPop .22s ease;
}
.evo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.evo-title { font-size: 17px; font-weight: 900; color: var(--ink); }
.evo-skip {
  flex: none; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 800; color: var(--muted);
}
.evo-big {
  position: relative; height: clamp(140px, 30vh, 210px);
  display: flex; align-items: center; justify-content: center;
  margin: 4px 0 2px;
}
.evo-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transform: scale(.94);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.evo-frame.on { opacity: 1; transform: scale(1); }
.evo-frame-modern { display: flex; align-items: center; justify-content: center; }
.evo-modern { font-size: clamp(92px, 24vh, 150px); line-height: 1; font-weight: 900; color: var(--ink); }
.evo-caption { min-height: 48px; }
.evo-caption.in { animation: evoCaptionIn .45s ease; }
.evo-label {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: #fff3d6; color: #8a5a00; font-size: 12px; font-weight: 900;
}
.evo-note { margin-top: 4px; font-size: 14px; color: var(--muted); }
.evo-progress {
  height: 5px; margin: 8px auto 0; max-width: 240px;
  background: #eef3f9; border-radius: 999px; overflow: hidden;
}
.evo-progress span {
  display: block; width: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ffd166, #ff8a5b);
  transition: width .6s ease;
}
.evo-track { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.evo-thumb {
  width: 54px; height: 54px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; font: inherit;
  border: 2px solid var(--line); border-radius: 12px; background: #fbfdff;
  opacity: .55; transition: opacity .2s ease, border-color .2s ease, transform .12s ease;
}
.evo-thumb:active { transform: scale(.94); }
.evo-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.evo-thumb-char { font-size: 24px; font-weight: 900; line-height: 1; color: var(--ink); }
.evo-thumb.on { opacity: 1; border-color: #ff8a5b; box-shadow: 0 0 0 3px rgba(255, 138, 91, .18); }
.evo-thumb.done { opacity: .82; border-color: #bdeedc; }
.evo-tip { margin-top: 6px; font-size: 11.5px; color: #9aa8bd; }
.evo-done { width: 100%; margin-top: 10px; padding: 12px; font-size: 16px; }
.evo-done[hidden], .evo-skip[hidden] { display: none; }
.evo-story { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: #7a8ba6; }

@keyframes evoFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes evoPop { from { transform: scale(.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes evoCaptionIn {
  from { opacity: .25; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 620px) {
  .evo-big { height: 120px; }
  .evo-story, .evo-tip { display: none; }
  .evo-thumb { width: 46px; height: 46px; }
  .evo-done { margin-top: 6px; padding: 9px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .evo-overlay, .evo-card, .evo-caption.in { animation: none; }
  .evo-thumb, .evo-frame, .evo-progress span { transition: none; }
}

/* ============ 家长账号（邮箱验证码登录） ============ */
.account-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.account-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.account-line span {
  color: #36506b;
  word-break: break-all;
}
.account-muted {
  margin: 0;
  color: #61788f;
  font-size: 13px;
  line-height: 1.6;
}
.account-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(19, 45, 68, .46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.account-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: 90dvh;
  overflow: auto;
  padding: 26px 22px 20px;
  border-radius: 22px;
  background: #fffef9;
  box-shadow: 0 24px 60px rgba(12, 40, 62, .32);
}
.account-modal h2 {
  margin: 0 0 8px;
  color: #23425e;
  font-size: 21px;
}
.account-lead {
  margin: 0 0 16px;
  color: #5c7388;
  font-size: 13px;
  line-height: 1.6;
}
.account-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4f7;
  color: #45627b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  color: #36506b;
  font-size: 13px;
  font-weight: 700;
}
.account-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 2px solid #d9e6ee;
  border-radius: 12px;
  background: #fff;
  color: #1f3c55;
  font-size: 16px;
  outline: none;
}
.account-field input:focus {
  border-color: #59a7d8;
  box-shadow: 0 0 0 3px rgba(89, 167, 216, .16);
}
.account-code[hidden] {
  display: none;
}
.account-code {
  margin-top: 12px;
}
.account-message {
  min-height: 20px;
  margin: 10px 0 4px;
  color: #2f8060;
  font-size: 13px;
  line-height: 1.5;
}
.account-message.error {
  color: #c14b4b;
}
.account-privacy {
  margin: 10px 0 0;
  color: #8a9aa8;
  font-size: 12px;
  line-height: 1.5;
}
