/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #4caf50;
  --green-dark: #388e3c;
  --orange: #ff9800;
  --pink: #ff6b9d;
  --blue: #4fc3f7;
  --purple: #9c88ff;
  --yellow: #ffd54f;
  --bg: #e8f7ff;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.6) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,.5) 0%, transparent 40%);
}

/* ===== 屏幕切换 ===== */
.screen { display: none; min-height: 100vh; padding: 20px; position: relative; }
.screen.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ===== 主菜单 ===== */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sun {
  position: absolute; top: 30px; right: 60px; width: 80px; height: 80px;
  background: radial-gradient(circle, #fff7c0 30%, var(--yellow) 60%, transparent 70%);
  border-radius: 50%; animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cloud {
  position: absolute; background: rgba(255,255,255,.85); border-radius: 50px;
  animation: drift linear infinite;
}
.c1 { width: 120px; height: 40px; top: 70px; left: -150px; animation-duration: 40s; }
.c1::before { content: ''; position: absolute; width: 50px; height: 50px; background: inherit; border-radius: 50%; top: -25px; left: 20px; }
.c1::after { content: ''; position: absolute; width: 35px; height: 35px; background: inherit; border-radius: 50%; top: -15px; left: 60px; }
.c2 { width: 90px; height: 30px; top: 180px; left: -120px; animation-duration: 55s; animation-delay: -20s; }
.c2::before { content: ''; position: absolute; width: 40px; height: 40px; background: inherit; border-radius: 50%; top: -20px; left: 15px; }
.c2::after { content: ''; position: absolute; width: 28px; height: 28px; background: inherit; border-radius: 50%; top: -12px; left: 45px; }
@keyframes drift { to { transform: translateX(calc(100vw + 200px)); } }

.title {
  text-align: center; font-size: clamp(2rem, 6vw, 3.2rem);
  color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.15), 0 6px 12px rgba(0,0,0,.1);
  padding-top: 40px; position: relative; z-index: 1;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { text-align: center; color: #7a8ba3; font-size: 1.1rem; margin: 6px 0 18px; position: relative; z-index: 1; }
.star-total {
  text-align: center; font-size: 1.2rem; color: #8a6d00; background: rgba(255,213,79,.3);
  display: inline-block; padding: 6px 18px; border-radius: 30px; margin: 0 auto 24px;
  position: relative; z-index: 1; left: 50%; transform: translateX(-50%);
  border: 2px dashed var(--yellow);
}

.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto; position: relative; z-index: 1;
}
.card {
  background: #fff; border-radius: 20px; padding: 24px 16px; text-align: center;
  box-shadow: 0 8px 20px rgba(76,175,80,.12); cursor: pointer;
  transition: transform .2s, box-shadow .2s; border: 3px solid transparent;
  position: relative;
}
.card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 14px 30px rgba(76,175,80,.25); }
.card:active { transform: scale(.96); }
.card-icon { font-size: 3.4rem; margin-bottom: 8px; animation: bounce 2s infinite; }
.card:nth-child(1) .card-icon { animation-delay: 0s; }
.card:nth-child(2) .card-icon { animation-delay: .3s; }
.card:nth-child(3) .card-icon { animation-delay: .6s; }
.card:nth-child(4) .card-icon { animation-delay: .9s; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.card-name { font-size: 1.3rem; font-weight: 700; color: #333; margin-bottom: 4px; }
.card-desc { color: #94a3b8; font-size: .9rem; margin-bottom: 10px; }
.card-stars { font-size: 1.5rem; color: #ffb300; letter-spacing: 3px; }
.card[data-game="math"] { border-top: 6px solid var(--orange); }
.card[data-game="count"] { border-top: 6px solid var(--blue); }
.card[data-game="pinyin"] { border-top: 6px solid var(--green); }
.card[data-game="memory"] { border-top: 6px solid var(--purple); }
.card[data-game="clock"] { border-top: 6px solid #26c6da; }
.card[data-game="spot"] { border-top: 6px solid #ff7043; }
.card[data-game="hanzi"] { border-top: 6px solid #d81b60; }
.card[data-game="money"] { border-top: 6px solid #fdd835; }
.card[data-game="pattern"] { border-top: 6px solid #26a69a; }
.card[data-game="season"] { border-top: 6px solid #ff8a65; }
.card[data-game="shadow"] { border-top: 6px solid #7e57c2; }
.card[data-game="shapes"] { border-top: 6px solid #ffca28; }
.card[data-game="direction"] { border-top: 6px solid #29b6f6; }
.card[data-game="family"] { border-top: 6px solid #ec407a; }
.card[data-game="behavior"] { border-top: 6px solid #66bb6a; }
.card[data-game="animal"] { border-top: 6px solid #8d6e63; }
.card[data-game="safety"] { border-top: 6px solid #f57c00; }
.card[data-game="calendar"] { border-top: 6px solid #5c6bc0; }
.card[data-game="poem"] { border-top: 6px solid #a1887f; }
.card[data-game="map"] { border-top: 6px solid #66bb6a; }
.card[data-game="colors"] { border-top: 6px solid #ff7043; }

.reset-btn {
  display: block; margin: 30px auto 0; background: #fff; color: #94a3b8;
  border: 2px dashed #cbd5e1; border-radius: 20px; padding: 8px 22px;
  cursor: pointer; font-size: .9rem; transition: .2s; position: relative; z-index: 1;
}
.reset-btn:hover { background: #fff5f5; color: var(--pink); border-color: var(--pink); }

/* ===== 游戏顶栏 ===== */
.game-topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 800px; margin: 0 auto 16px; gap: 12px; flex-wrap: wrap;
}
.game-title { font-size: 1.5rem; font-weight: 800; color: #333; }
.game-score {
  background: linear-gradient(135deg, #fff3c4, #ffe082); padding: 6px 16px;
  border-radius: 30px; font-weight: 700; color: #8a6d00; box-shadow: 0 3px 8px rgba(255,213,79,.4);
}

/* ===== 按钮 ===== */
.btn {
  border: none; border-radius: 30px; padding: 10px 24px; font-size: 1rem;
  cursor: pointer; transition: transform .15s, box-shadow .15s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.94); }
.back-btn { background: #fff; color: #64748b; box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.primary-btn {
  background: linear-gradient(135deg, var(--orange), #ff7043); color: #fff;
  font-size: 1.15rem; padding: 12px 34px; box-shadow: 0 6px 16px rgba(255,112,67,.4);
}
.ghost-btn { background: #f1f5f9; color: #64748b; margin-left: 10px; }

/* ===== 游戏区 ===== */
#gameArea { max-width: 800px; margin: 0 auto; }
.game-hint { text-align: center; font-size: 1.4rem; color: #475569; margin: 10px 0 20px; font-weight: 600; }
.option-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px; max-width: 560px; margin: 0 auto;
}
.option-btn {
  background: #fff; border: 3px solid #e2e8f0; border-radius: 18px;
  font-size: 1.6rem; font-weight: 700; color: #334155; padding: 22px 10px;
  cursor: pointer; transition: all .18s; box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.option-btn:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(79,195,247,.25); }
.option-btn:active { transform: scale(.93); }
.option-btn.correct { background: #e8f5e9; border-color: var(--green); animation: pop .4s; }
.option-btn.correct-highlight { background: #e8f5e9; border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.25); animation: pop .4s; }
.option-btn.wrong { background: #ffebee; border-color: #ef5350; animation: shake .4s; }
.option-btn.disabled { pointer-events: none; opacity: .75; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* 数一数 */
.fish-pond {
  background: linear-gradient(180deg, #b3e5fc, #e1f5fe 70%, #c8e6c9);
  border-radius: 24px; padding: 30px 20px; margin: 0 auto 20px;
  max-width: 600px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  min-height: 200px; box-shadow: inset 0 -8px 20px rgba(76,175,80,.15);
}
.fish {
  font-size: 2.6rem; cursor: pointer; transition: transform .2s;
  animation: swim 3s ease-in-out infinite;
}
.fish:hover { transform: scale(1.2) rotate(10deg); }
.fish.selected { transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(255,213,79,.9)); animation: none; }
.fish.answered { opacity: .35; cursor: default; pointer-events: none; }
@keyframes swim { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.count-input-row { text-align: center; margin: 10px 0; }
.count-input {
  width: 120px; padding: 12px; font-size: 1.6rem; text-align: center;
  border: 3px solid var(--blue); border-radius: 16px; outline: none; font-family: inherit;
}
.count-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,152,0,.15); }
.count-check {
  background: linear-gradient(135deg, var(--green), #66bb6a); color: #fff;
  font-size: 1.2rem; padding: 12px 30px; border-radius: 30px; cursor: pointer;
  border: none; box-shadow: 0 5px 12px rgba(76,175,80,.35); transition: .2s; margin-left: 10px;
}
.count-check:hover { transform: translateY(-2px); }
.count-check:active { transform: scale(.94); }

/* 拼音配对 */
.match-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 640px; margin: 0 auto;
}
.match-col { display: flex; flex-direction: column; gap: 14px; }
.match-col-label { text-align: center; font-weight: 800; font-size: 1.1rem; color: #64748b; margin-bottom: 2px; }
.match-slot {
  background: #fff; border: 3px dashed #cbd5e1; border-radius: 16px; padding: 16px;
  text-align: center; font-size: 1.7rem; font-weight: 700; color: #475569;
  min-height: 64px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .2s; position: relative;
}
.match-slot:hover { border-color: var(--purple); }
.match-slot.selected { border-color: var(--purple); border-style: solid; background: #f3f0ff; box-shadow: 0 0 0 4px rgba(156,136,255,.2); }
.match-slot.matched { border-color: var(--green); border-style: solid; background: #e8f5e9; color: var(--green-dark); pointer-events: none; }
.match-slot.wrong-flash { border-color: #ef5350; background: #ffebee; animation: shake .4s; }
.match-slot .badge {
  position: absolute; top: -10px; right: -10px; background: var(--green); color: #fff;
  font-size: .8rem; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}

/* 记忆翻牌 */
.memory-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 480px; margin: 0 auto;
}
.mem-card {
  aspect-ratio: 1 / 1.1; perspective: 600px; cursor: pointer;
}
.mem-inner {
  position: relative; width: 100%; height: 100%; transition: transform .45s;
  transform-style: preserve-3d; border-radius: 16px;
}
.mem-card.flipped .mem-inner { transform: rotateY(180deg); }
.mem-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.mem-back {
  background: linear-gradient(135deg, var(--purple), #b388ff); color: #fff; font-size: 2.2rem;
  box-shadow: 0 4px 10px rgba(156,136,255,.35);
}
.mem-front {
  background: #fff; transform: rotateY(180deg); border: 3px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.mem-card.matched .mem-inner { animation: pop .5s; }
.mem-card.matched .mem-front { border-color: var(--green); background: #e8f5e9; cursor: default; }
.mem-card.matched { pointer-events: none; }

/* ===== 弹窗 ===== */
.modal {
  position: fixed; inset: 0; background: rgba(30,41,59,.55); display: flex;
  align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px);
}
.modal-box {
  background: #fff; border-radius: 28px; padding: 36px 44px; text-align: center;
  max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-emoji { font-size: 4rem; animation: bounce 1.2s infinite; }
.modal-title { font-size: 1.8rem; font-weight: 800; color: #333; margin: 12px 0 6px; }
.modal-text { color: #64748b; font-size: 1.05rem; margin-bottom: 22px; line-height: 1.6; }
.modal-stars { font-size: 2.2rem; color: #ffb300; margin-bottom: 16px; letter-spacing: 6px; }

/* ===== 浮动星星动画 ===== */
.float-star {
  position: fixed; font-size: 1.8rem; pointer-events: none; z-index: 200;
  animation: floatUp 1.2s ease-out forwards;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(.6); opacity: 1; }
  100% { transform: translateY(-120px) scale(1.3); opacity: 0; }
}

/* ===== 认识钟表 ===== */
.clock-wrap { text-align: center; margin: 10px 0 20px; }
.clock-svg { width: 240px; height: 240px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.15)); }
.clock-face { fill: #fff; stroke: #334155; stroke-width: 4; }
.clock-tick { stroke: #94a3b8; stroke-width: 2; }
.clock-tick.major { stroke: #334155; stroke-width: 3.5; }
.clock-hand-h { stroke: #334155; stroke-width: 7; stroke-linecap: round; }
.clock-hand-m { stroke: #475569; stroke-width: 4; stroke-linecap: round; }
.clock-center { fill: #ff7043; }

/* ===== 找不同 ===== */
.spot-scene {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 10px 0;
}
.spot-panel { position: relative; }
.spot-label { text-align: center; font-weight: 700; color: #64748b; margin-bottom: 4px; }
.spot-canvas {
  background: #fff; border: 3px solid #e2e8f0; border-radius: 16px;
  cursor: crosshair; display: block;
}
.spot-canvas.selected { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,152,0,.2); }
.spot-bubble {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(76,175,80,.9); color: #fff; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: popIn .3s; pointer-events: none; z-index: 2;
}

/* ===== 汉字启蒙 ===== */
.hanzi-quiz { text-align: center; }
.hanzi-big {
  font-size: 6rem; font-weight: 800; color: #334155; margin: 8px 0 4px;
  text-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.hanzi-pic { font-size: 3.6rem; margin-bottom: 14px; animation: bounce 2s infinite; }
.hanzi-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; max-width: 480px; margin: 0 auto; }
.hanzi-opt {
  background: #fff; border: 3px solid #f3d1e0; border-radius: 16px; padding: 16px 8px;
  font-size: 1.2rem; font-weight: 700; color: #4a4a4a; cursor: pointer; transition: .18s;
}
.hanzi-opt .hz { display: block; font-size: 2.4rem; margin-bottom: 4px; }
.hanzi-opt:hover { border-color: #d81b60; transform: translateY(-3px); }
.hanzi-opt.correct { background: #e8f5e9; border-color: var(--green); animation: pop .4s; }
.hanzi-opt.wrong { background: #ffebee; border-color: #ef5350; animation: shake .4s; }
.hanzi-opt.disabled { pointer-events: none; opacity: .7; }

/* ===== 认识人民币 ===== */
.money-display { text-align: center; margin: 10px 0 20px; }
.money-question {
  display: inline-block; background: linear-gradient(135deg, #fff9c4, #fff3cd);
  border: 3px solid #fdd835; border-radius: 20px; padding: 18px 34px;
  font-size: 1.8rem; font-weight: 800; color: #8d6e00; box-shadow: 0 6px 16px rgba(253,216,53,.3);
}
.money-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; max-width: 560px; margin: 0 auto; }
.money-opt {
  background: #fff; border: 3px solid #e2e8f0; border-radius: 16px; padding: 14px 10px;
  font-size: 1.1rem; font-weight: 700; color: #334155; cursor: pointer; transition: .18s;
  text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.money-opt .coin { display: block; font-size: 2.2rem; margin-bottom: 4px; }
.money-opt:hover { border-color: #fdd835; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(253,216,53,.3); }
.money-opt.correct { background: #e8f5e9; border-color: var(--green); animation: pop .4s; }
.money-opt.wrong { background: #ffebee; border-color: #ef5350; animation: shake .4s; }
.money-opt.disabled { pointer-events: none; opacity: .7; }

/* ===== 找规律 ===== */
.pattern-seq {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 16px 0 22px; padding: 20px; background: #fff; border-radius: 20px;
  border: 3px dashed #b2dfdb; max-width: 620px; margin-left: auto; margin-right: auto;
}
.pattern-item {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2); border-radius: 14px;
  font-size: 1.8rem; font-weight: 800; color: #00695c; box-shadow: 0 3px 8px rgba(38,166,154,.25);
  animation: popIn .3s;
}
.pattern-item.emoji-item { background: #fff3e0; font-size: 2rem; color: #e65100; }
.pattern-item.blank { background: #fff; border: 3px dashed #26a69a; color: #26a69a; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.pattern-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; max-width: 480px; margin: 0 auto; }
.pattern-opt {
  background: #fff; border: 3px solid #b2dfdb; border-radius: 14px; padding: 12px 6px;
  font-size: 1.5rem; font-weight: 700; color: #334155; cursor: pointer; transition: .18s;
  box-shadow: 0 3px 8px rgba(0,0,0,.05);
}
.pattern-opt:hover { border-color: #26a69a; transform: translateY(-3px); }
.pattern-opt.correct { background: #e0f2f1; border-color: #26a69a; animation: pop .4s; }
.pattern-opt.wrong { background: #ffebee; border-color: #ef5350; animation: shake .4s; }
.pattern-opt.disabled { pointer-events: none; opacity: .7; }

/* ===== 响应式 ===== */
@media (max-width: 520px) {
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .memory-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mem-face { font-size: 1.5rem; }
  .match-grid { grid-template-columns: 1fr; gap: 12px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-icon { font-size: 2.4rem; }
  .card-name { font-size: 1.05rem; }
  .fish { font-size: 2rem; }
  .clock-svg { width: 200px; height: 200px; }
  .spot-scene { flex-direction: column; align-items: center; }
  .hanzi-big { font-size: 4.5rem; }
}

/* ===== 认识四季 ===== */
.season-quiz { text-align: center; }
.season-big { font-size: 5.5rem; margin: 6px 0 8px; display: block; animation: bounce 2s infinite; }
.season-desc { font-size: 1.3rem; color: #475569; margin-bottom: 18px; }
.season-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; max-width: 500px; margin: 0 auto; }
.season-opt {
  background: #fff; border: 3px solid #e2e8f0; border-radius: 18px; padding: 16px 8px;
  cursor: pointer; transition: .18s; box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.season-opt:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(255,138,101,.3); }
.season-opt .se-icon { display: block; font-size: 2.6rem; margin-bottom: 4px; }
.season-opt .se-name { font-size: 1.1rem; font-weight: 700; color: #334155; }
.season-opt.correct { background: #e8f5e9; border-color: var(--green); animation: pop .4s; }
.season-opt.wrong { background: #ffebee; border-color: #ef5350; animation: shake .4s; }
.season-opt.disabled { pointer-events: none; opacity: .7; }

/* ===== 找影子 ===== */
.shadow-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 620px; margin: 0 auto;
}
.shadow-col { display: flex; flex-direction: column; gap: 12px; }
.shadow-col-label { text-align: center; font-weight: 800; font-size: 1.1rem; color: #64748b; }
.shadow-item {
  background: #fff; border: 3px dashed #cbd5e1; border-radius: 16px; min-height: 72px;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  cursor: pointer; transition: .2s;
}
.shadow-item:hover { border-color: #7e57c2; }
.shadow-item.selected { border-color: #7e57c2; border-style: solid; background: #f3e5f5; box-shadow: 0 0 0 4px rgba(126,87,194,.2); }
.shadow-item.matched { border-color: var(--green); border-style: solid; background: #e8f5e9; pointer-events: none; opacity: .6; }
.shadow-item.shadow { background: #f5f3f0; color: #6b7280; filter: drop-shadow(0 0 0) grayscale(1); }
.shadow-item.wrong-flash { border-color: #ef5350; background: #ffebee; animation: shake .4s; }
.shadow-item .badge {
  position: absolute; top: -10px; right: -10px; background: var(--green); color: #fff;
  font-size: .8rem; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.shadow-item { position: relative; }

/* ===== 菜单按钮组 ===== */
.menu-actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.report-btn {
  background: linear-gradient(135deg, #42a5f5, #7e57c2); color: #fff;
  padding: 10px 24px; border-radius: 30px; box-shadow: 0 5px 14px rgba(126,87,194,.35);
}

/* ===== 认图形/颜色 ===== */
.shape-quiz { text-align: center; }
.shape-big { display: flex; gap: 16px; justify-content: center; margin: 12px 0; }
.shape-symbol { width: 90px; height: 90px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.shape-symbol .fig { width: 56px; height: 56px; }
.shape-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; max-width: 540px; margin: 0 auto; }
.shape-opt {
  background: #fff; border: 3px solid #e2e8f0; border-radius: 18px; padding: 14px 8px;
  cursor: pointer; transition: .18s; box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.shape-opt:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(255,202,40,.3); }
.shape-opt .swatch { width: 34px; height: 34px; border-radius: 8px; display: inline-block; margin-bottom: 4px; border: 2px solid rgba(0,0,0,.1); }
.shape-opt .sh-name { display: block; font-size: 1.05rem; font-weight: 700; color: #334155; }
.shape-opt.correct { background: #e8f5e9; border-color: var(--green); animation: pop .4s; }
.shape-opt.wrong { background: #ffebee; border-color: #ef5350; animation: shake .4s; }
.shape-opt.disabled { pointer-events: none; opacity: .7; }

/* ===== 找方向 ===== */
.dir-grid-wrap { text-align: center; margin: 10px 0 20px; }
.dir-grid {
  display: inline-grid; grid-template-columns: repeat(3, 84px); gap: 8px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb); padding: 14px; border-radius: 20px;
  box-shadow: inset 0 -4px 12px rgba(41,182,246,.25);
}
.dir-cell {
  width: 84px; height: 84px; background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  box-shadow: 0 3px 8px rgba(0,0,0,.08);
}
.dir-cell.center { background: #fff9c4; border: 3px dashed #ffca28; }
.dir-cell.spotlight { animation: spotlight .8s ease; }
@keyframes spotlight { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,87,34,.6); } 100% { transform: scale(1.05); box-shadow: 0 0 0 18px rgba(255,87,34,0); } }
.dir-question { font-size: 1.5rem; font-weight: 700; color: #334155; margin-bottom: 16px; }

/* ===== 家长报告 ===== */
.report-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
  max-width: 800px; margin: 0 auto 22px;
}
.report-stat {
  background: #fff; border-radius: 18px; padding: 16px; text-align: center;
  box-shadow: 0 5px 14px rgba(0,0,0,.07); border-top: 5px solid var(--blue);
}
.report-stat:nth-child(2) { border-top-color: var(--green); }
.report-stat:nth-child(3) { border-top-color: var(--orange); }
.report-stat:nth-child(4) { border-top-color: var(--purple); }
.report-stat .num { font-size: 2rem; font-weight: 800; color: #334155; }
.report-stat .lbl { font-size: .85rem; color: #94a3b8; margin-top: 4px; }
.report-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 0 auto;
}
.report-panel {
  background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 5px 14px rgba(0,0,0,.07);
}
.report-panel-title { font-size: 1.15rem; font-weight: 800; color: #334155; margin-bottom: 12px; text-align: center; }
#radarCanvas { display: block; margin: 0 auto; max-width: 100%; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.radar-legend span { font-size: .8rem; color: #64748b; display: inline-flex; align-items: center; gap: 4px; }
.radar-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.report-list { max-height: 380px; overflow-y: auto; }
.report-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.report-row:last-child { border-bottom: none; }
.report-row .g-icon { font-size: 1.5rem; }
.report-row .g-name { flex: 1; font-weight: 600; color: #334155; }
.report-row .g-rate { font-weight: 800; color: var(--green); }
.report-row .g-time { font-size: .8rem; color: #94a3b8; }
.report-row .g-bar { width: 70px; height: 8px; background: #e2e8f0; border-radius: 5px; overflow: hidden; }
.report-row .g-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #66bb6a); border-radius: 5px; }
.report-row.noplay { opacity: .55; }
.report-actions { text-align: center; margin-top: 20px; }
@media (max-width: 640px) {
  .report-body { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: repeat(3, 68px); }
  .dir-cell { width: 68px; height: 68px; font-size: 1.8rem; }
}
/* ===== 答错高亮正确答案 ===== */
.season-opt.correct-highlight { background: #e8f5e9; border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.25); animation: pop .4s; }
.shape-opt.correct-highlight { background: #e8f5e9; border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.25); animation: pop .4s; }
.hanzi-opt.correct-highlight { background: #e8f5e9; border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.25); animation: pop .4s; }
.money-opt.correct-highlight { background: #e8f5e9; border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.25); animation: pop .4s; }
.pattern-opt.correct-highlight { background: #e0f2f1; border-color: #26a69a; box-shadow: 0 0 0 4px rgba(38,166,154,.25); animation: pop .4s; }
.match-slot.matched-highlight { border-color: var(--green); border-style: solid; background: #e8f5e9; color: var(--green-dark); }
.shadow-item.matched-highlight { border-color: var(--green); border-style: solid; background: #e8f5e9; }

/* ===== 动物叫声 ===== */
.animal-display { text-align: center; margin: 6px 0 16px; }
.animal-demo {
  display: inline-block; font-size: 4.5rem; background: #fff3e0;
  border-radius: 24px; padding: 14px 30px; border: 3px solid #ffcc80;
  box-shadow: 0 8px 20px rgba(255,152,0,.25); animation: bounce 2s infinite;
}

/* ===== 安全标识 ===== */
.safety-sign {
  display: inline-block; font-size: 4rem; width: 100px; height: 100px; line-height: 100px;
  background: #fff; border: 4px solid #f57c00; border-radius: 50%;
  box-shadow: 0 8px 20px rgba(245,124,0,.3); margin: 6px 0 10px;
}

/* ===== 古诗词 ===== */
.poem-line {
  display: inline-block; font-size: 2rem; font-weight: 800; color: #4e342e;
  background: linear-gradient(135deg, #fdf6e3, #f5e6c8); border-radius: 16px;
  padding: 16px 30px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.08);
  border-left: 6px solid #8d6e63;
}

/* ===== 认识颜色 - 色块选择 ===== */
.color-pick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 400px; margin: 0 auto 16px;
}
.color-pick {
  width: 100%; aspect-ratio: 1; border-radius: 18px; border: 3px solid rgba(0,0,0,.12);
  cursor: pointer; transition: .18s; box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.color-pick:hover { transform: scale(1.08); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.color-pick:active { transform: scale(.92); }
.color-pick.correct { border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.3); animation: pop .4s; }
.color-pick.wrong { border-color: #ef5350; box-shadow: 0 0 0 4px rgba(239,83,80,.3); animation: shake .4s; }
.color-pick.disabled { pointer-events: none; opacity: .7; }
.color-pick.correct-highlight { border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.3); animation: pop .4s; }

/* ===== 认识地图 ===== */
.map-emoji { font-size: 4rem; display: block; margin: 6px 0; }
@media (max-width: 520px) {
  .color-pick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ===== 菜单分类区块 ===== */
.menu-section { max-width: 960px; margin: 0 auto 30px; position: relative; z-index: 1; }
.menu-section-title {
  text-align: center; font-size: 1.5rem; font-weight: 800; color: #fff;
  padding: 8px 24px; border-radius: 30px; display: inline-block;
  margin: 0 auto 4px; background: linear-gradient(135deg, #ff8a65, #ff7043);
  box-shadow: 0 5px 14px rgba(255,112,67,.3);
}
.menu-section:nth-of-type(2) .menu-section-title {
  background: linear-gradient(135deg, #42a5f5, #5c6bc0);
  box-shadow: 0 5px 14px rgba(92,107,192,.3);
}
.menu-section-title { display: block; width: fit-content; }
.menu-section-desc { text-align: center; color: #8a9bb5; font-size: .9rem; margin-bottom: 16px; }

/* ===== 分类首页入口 ===== */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 780px; margin: 0 auto 28px; position: relative; z-index: 1;
}
.category-card {
  background: #fff; border-radius: 24px; padding: 32px 24px; text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.1); cursor: pointer; display: block;
  transition: transform .2s, box-shadow .2s; text-decoration: none; position: relative; overflow: hidden;
}
.category-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.category-card:active { transform: scale(.97); }
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px;
}
.cat-preschool::before { background: linear-gradient(90deg, #ff8a65, #ff7043); }
.cat-primary::before { background: linear-gradient(90deg, #42a5f5, #5c6bc0); }
.category-emoji { font-size: 4.5rem; animation: bounce 2s infinite; }
.cat-primary .category-emoji { animation-delay: .3s; }
.category-name { font-size: 1.7rem; font-weight: 800; color: #333; margin: 10px 0 4px; }
.category-desc { color: #94a3b8; font-size: 1rem; margin-bottom: 10px; }
.category-games { color: #64748b; font-size: .9rem; margin-bottom: 18px; line-height: 1.6; }
.category-btn {
  display: inline-block; color: #fff; padding: 10px 28px; border-radius: 30px;
  font-size: 1.05rem; font-weight: 700; box-shadow: 0 5px 14px rgba(0,0,0,.15);
}
.cat-preschool .category-btn { background: linear-gradient(135deg, #ff8a65, #ff7043); }
.cat-primary .category-btn { background: linear-gradient(135deg, #42a5f5, #5c6bc0); }

/* ===== 分类页顶部操作 ===== */
.page-actions {
  display: flex; justify-content: center; gap: 12px; margin: 0 auto 24px;
  flex-wrap: wrap; position: relative; z-index: 1;
}

@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; gap: 16px; }
  .category-emoji { font-size: 3.4rem; }
}

/* ===== 首页头部 ===== */
.home-header { position: relative; z-index: 1; text-align: center; padding-top: 30px; }
.home-logo { font-size: 3.2rem; animation: bounce 2s infinite; }
.home-header .title {
  padding-top: 8px;
  background: linear-gradient(135deg, #ff8a65, #ec407a, #ab47bc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-header .subtitle { color: #7a8ba3; }
.home-stars {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fff9c4, #ffe082); border: 2px solid #ffd54f;
  border-radius: 40px; padding: 8px 22px; margin-top: 6px;
  box-shadow: 0 6px 18px rgba(255,213,79,.4);
}
.home-stars-icon { font-size: 1.5rem; }
.home-stars-num { font-size: 1.6rem; font-weight: 800; color: #8a6d00; }
.home-stars-label { font-size: .9rem; color: #b58900; }

/* ===== 分类大卡片（增强） ===== */
.category-grid { margin-top: 26px; }
.category-card { border-radius: 26px; padding: 0; overflow: hidden; }
.category-card-inner { padding: 34px 26px; position: relative; }
.category-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%);
  pointer-events: none;
}
.cat-preschool { background: linear-gradient(160deg, #fff5f2, #ffe3d6); }
.cat-primary { background: linear-gradient(160deg, #eef4ff, #dbe9ff); }
.category-card::before { height: 10px; border-radius: 26px 26px 0 0; }
.cat-preschool::before { background: linear-gradient(90deg, #ff8a65, #ff7043); }
.cat-primary::before { background: linear-gradient(90deg, #42a5f5, #5c6bc0); }
.category-name { font-size: 1.8rem; }
.category-desc {
  display: inline-block; color: #fff; font-size: .85rem; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px;
}
.cat-preschool .category-desc { background: #ff7043; }
.cat-primary .category-desc { background: #5c6bc0; }
.category-games { font-size: .88rem; line-height: 1.8; background: rgba(255,255,255,.65); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }

/* ===== 首页底部 ===== */
.home-footer { text-align: center; margin-top: 26px; position: relative; z-index: 1; }
/* ICP 备案号（悬挂于页面底部，链接至工信部备案官网） */
.icp-wrap { text-align: center; margin-top: 14px; padding-bottom: 16px; }
.icp-wrap a {
  color: #8a94a6; font-size: 12px; text-decoration: none;
  transition: color .2s;
}
.icp-wrap a:hover { color: #42a5f5; }
.parent-btn {
  background: linear-gradient(135deg, #42a5f5, #7e57c2); color: #fff;
  padding: 12px 34px; border-radius: 40px; font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(126,87,194,.4);
}

/* ===== 家长中心弹层 ===== */
.parent-menu {
  position: fixed; inset: 0; background: rgba(30,41,59,.55); z-index: 300;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.parent-menu-box {
  background: #fff; border-radius: 24px; padding: 26px 22px; width: 320px; max-width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
}
.parent-menu-title { text-align: center; font-size: 1.4rem; font-weight: 800; color: #334155; margin-bottom: 18px; }
.parent-menu-item {
  display: block; width: 100%; padding: 13px 18px; margin-bottom: 10px;
  background: #f1f5f9; border: none; border-radius: 14px; font-size: 1.05rem;
  cursor: pointer; color: #334155; font-family: inherit; text-align: center; transition: .15s;
}
.parent-menu-item:hover { background: #e2e8f0; transform: translateY(-2px); }
.parent-menu-item.danger { background: #fff1f0; color: #d32f2f; }
.parent-menu-item.danger:hover { background: #ffd7d6; }
.parent-menu-item.cancel { background: transparent; color: #94a3b8; margin-bottom: 0; }
.parent-menu-item.cancel:hover { background: #f8fafc; transform: none; }
