﻿/* 英语乐园样式：明快、圆角、大按钮，适合小朋友点按 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --ink: #333;
  --muted: #777;
  --card: #ffffff;
  --learn: #ff9f43;
  --read: #54a0ff;
  --game: #2ed573;
  --good: #2ed573;
  --bad: #ff6b6b;
  --radius: 20px;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #cfe9ff 0%, #ece1ff 45%, #ffe9d6 100%);
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 32px;
}
/* 柔和的装饰光斑背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(255,183,77,.35), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(116,185,255,.35), transparent 30%),
    radial-gradient(circle at 85% 92%, rgba(126,214,223,.30), transparent 30%),
    radial-gradient(circle at 5% 88%, rgba(255,159,218,.25), transparent 30%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* 顶栏 */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 6px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, #ff9f43, #ff6b6b 45%, #54a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.star-badge {
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-right { display: flex; align-items: center; gap: 8px; }
.sound-btn {
  border: none;
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* 标签栏 */
.tabbar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tabbar button {
  flex: 1;
  border: none;
  background: rgba(255,255,255,.6);
  border-radius: 14px;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s;
}
.tabbar button.active {
  background: linear-gradient(135deg, #54a0ff, #a29bfe);
  color: #fff;
  box-shadow: 0 4px 12px rgba(84,160,255,.35);
}

/* 年级选择 */
.grade-row {
  display: flex;
  gap: 6px;
  padding: 4px 12px 8px;
  overflow-x: auto;
}
.grade-pill {
  flex-shrink: 0;
  border: 2px solid transparent;
  border: none;
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.grade-pill.active {
  background: #fff;
  color: #1e90ff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

main { padding: 8px 14px; }

.hidden { display: none !important; }

/* 页面切换淡入动效 */
.view { display: none; }
.view.active { display: block; animation: viewIn .28s ease; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* 首页 */
.welcome { text-align: center; color: var(--muted); margin: 10px 0 18px; font-size: 15px; }
.home-cards { display: grid; gap: 14px; }
.home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: none;
  border-radius: var(--radius);
  padding: 20px 22px;
  color: #fff;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  transition: transform .15s, box-shadow .15s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.home-card:active { transform: scale(.98); }
.c-learn { background: linear-gradient(135deg, #ffb142, #ff9f43); }
.c-read  { background: linear-gradient(135deg, #74b9ff, #54a0ff); }
.c-games { background: linear-gradient(135deg, #7bed9f, #2ed573); }
.hc-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-icon img { width: 44px; height: 44px; }
.mascot { width: 30px; height: 30px; vertical-align: -8px; margin-right: 2px; }
.hc-title { font-size: 22px; font-weight: 800; }
.hc-desc { font-size: 14px; opacity: .92; }

/* 通用卡片列表 */
.card-list { display: grid; gap: 12px; }
.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: none;
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.game-card:active { transform: scale(.98); }
.hc-best { font-size: 13px; color: var(--muted); }

/* 学一学 */
.learn-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.lc-emoji { font-size: 84px; display: block; margin-bottom: 6px; }
.lc-en { font-size: 34px; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 10px; }
.lc-say {
  border: none;
  background: #ffeaa7;
  border-radius: 999px;
  font-size: 20px;
  padding: 8px 14px;
}
.lc-zh { font-size: 20px; color: var(--muted); margin-top: 4px; }
.lc-sentence {
  margin-top: 16px;
  background: linear-gradient(135deg, #eef5ff, #f3efff);
  border-radius: 14px;
  padding: 12px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lc-zs { margin-top: 8px; font-size: 14px; color: var(--muted); }
.learn-nav { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; }
.learn-count { color: var(--muted); font-size: 14px; }

/* 按钮 */
.btn {
  border: none;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.btn:active { transform: scale(.97); }
.big-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ffa502, #ff7f50);
  box-shadow: 0 4px 12px rgba(255,127,80,.35);
}
.big-btn:disabled { background: #ccc; box-shadow: none; }
.big-btn:active { transform: scale(.98); }

/* 读一读 */
.read-card {
  border: none;
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.rc-badge {
  display: inline-block;
  background: #dfe9ff;
  color: #3742fa;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.rc-title { font-size: 20px; font-weight: 800; }
.rc-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rc-section { font-weight: 800; font-size: 16px; color: #556; margin: 6px 4px 0; }
.book-img {
  width: 100%;
  max-width: 420px;
  max-height: 46vh;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  margin: 14px auto 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.book-text { font-size: 18px; line-height: 1.55; text-align: left; padding: 8px 4px 2px; }
.book-nav { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.read-lines { display: grid; gap: 8px; margin: 14px 0; }
.read-line {
  border: none;
  background: #f1f6ff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 17px;
  text-align: left;
}
.read-line.speaking { background: #ffeaa7; font-weight: 700; }
.quiz-q { margin-top: 14px; font-size: 16px; font-weight: 700; }
.quiz-opts { display: grid; gap: 8px; margin: 8px 0 4px; }
.quiz-opt {
  border: 2px solid #e6eefc;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 15px;
  text-align: left;
}
.quiz-opt.good { border-color: var(--good); background: #eafaf0; font-weight: 700; }
.quiz-opt.bad { border-color: var(--bad); background: #ffefef; }
.quiz-opt:disabled { color: var(--ink); }

/* 游戏通用 */
.game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}
.game-head h2 { font-size: 20px; color: var(--ink); }
.game-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.opt {
  border: 2px solid #e6eefc;
  background: #fff;
  border-radius: 16px;
  padding: 14px 8px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.opt .big { font-size: 32px; }
.opt.good { border-color: var(--good); background: #eafaf0; }
.opt.bad { border-color: var(--bad); background: #ffefef; }

.listen-box { text-align: center; }
.listen-box .big-btn { width: auto; display: inline-block; padding: 12px 28px; }

/* 翻翻乐 */
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mem {
  border: none;
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  border-radius: 14px;
  min-height: 72px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 2px;
}
.mem.open { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mem.done { background: #dfe6ff; color: #5352ed; opacity: .8; }
.mem-face { display: block; }

/* 拼一拼 */
.spell-hint { text-align: center; font-size: 44px; margin-bottom: 4px; }
.spell-hint span { font-size: 18px; color: var(--muted); display: block; }
.s-answer {
  min-height: 46px;
  margin: 12px 0;
  background: #f1f6ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}
.s-answer.good { background: #eafaf0; outline: 2px solid var(--good); }
.s-answer.bad { background: #ffefef; outline: 2px solid var(--bad); }
.s-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile {
  border: none;
  background: #ffeaa7;
  border-radius: 12px;
  min-width: 44px;
  min-height: 46px;
  font-size: 19px;
  font-weight: 800;
}
.tile.used { opacity: .25; }
.spell-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* 中英快选 */
.speed-box { text-align: center; }
.sp-word {
  font-size: 40px;
  font-weight: 800;
  padding: 18px 0;
}
.shake { animation: shake .35s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }

/* 句子排队 */
.sc-zh { text-align: center; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sc-slots {
  min-height: 52px;
  background: #f1f6ff;
  border-radius: 14px;
  padding: 10px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
}
.sc-slots.good { background: #eafaf0; outline: 2px solid var(--good); }
.sc-slots.bad { background: #ffefef; outline: 2px solid var(--bad); }

/* 打地鼠 */
.wk-target { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hole {
  background: #f3e6d0;
  border-radius: 14px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mole {
  border: none;
  background: linear-gradient(135deg, #ffb142, #ff6b6b);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 800;
}
.good-hit, .bad-hit { font-size: 26px; font-weight: 800; }
.good-hit { color: var(--good); }
.bad-hit { color: var(--bad); }

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 26px 22px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}
.modal-emoji { font-size: 52px; margin-bottom: 8px; }
.modal-actions { display: grid; gap: 10px; margin-top: 18px; }

@media (min-width: 560px) {
  .opt-grid { grid-template-columns: repeat(4, 1fr); }
  .home-cards { grid-template-columns: repeat(3, 1fr); }
}

/* 开源配图（Twemoji SVG） */
.emoji-img {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  display: inline-block;
}
.hc-emoji .emoji-img, .lc-emoji .emoji-img, .modal-emoji .emoji-img { width: 1em; height: 1em; }

/* 素材来源 */
.credits-btn {
  display: block;
  margin: 18px auto 0;
  border: none;
  background: rgba(255,255,255,.8);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.dl-link {
  display: block;
  margin: 10px auto 0;
  width: fit-content;
  background: linear-gradient(135deg, #54a0ff, #a29bfe);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(84,160,255,.35);
}
.credits-title { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.credits-list { text-align: left; font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--ink); }
.credits-list p { margin-bottom: 6px; }

/* ===== 单元筛选 / 掌握度 / 新题型（2026-12 扩充） ===== */
.unit-row { padding-top: 0; }
.unit-row .grade-pill { font-size: 13px; padding: 6px 12px; }

.lc-mastery {
  margin-top: 10px; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,.65); border-radius: 999px;
  display: inline-block; padding: 4px 12px;
}

/* 拼写填空 */
.fill-box { text-align: center; }
.fill-hint { font-size: 22px; font-weight: 700; margin: 6px 0 10px; }
.fill-hint .emoji-img { width: 48px; height: 48px; vertical-align: middle; margin-right: 8px; }
.fill-pattern { margin: 6px 0 14px; }
.fp-words {
  font-size: 26px; font-weight: 800; letter-spacing: 3px;
  color: #3742fa; font-family: "Courier New", monospace;
}
.fill-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.fill-input {
  flex: 1 1 180px; min-width: 150px; max-width: 260px;
  padding: 10px 14px; font-size: 18px; border-radius: 12px;
  border: 2px solid #dfe4ff; outline: none; text-align: center;
  font-family: inherit;
}
.fill-input:focus { border-color: #54a0ff; }
.fill-input.good { border-color: #2ecc71; background: #eafaf1; }
.fill-input.bad { border-color: #ff6b6b; background: #fff0f0; animation: shake .3s; }
.fill-row .big-btn { flex: 0 0 auto; width: auto; padding: 10px 20px; }

/* 语法 / 随堂测 */
.gq-text { font-size: 19px; font-weight: 700; line-height: 1.5; margin: 8px 0 14px; text-align: left; }
.grammar-opt { justify-content: center; }
.grammar-opt .big { display: none; }

/* 听力判断 */
.tf-choices { display: flex; gap: 14px; justify-content: center; margin: 6px 0 4px; }
.tf-big {
  flex: 1; max-width: 140px; padding: 16px 0; font-size: 20px; font-weight: 800;
  border: none; border-radius: 16px; color: #fff; cursor: pointer;
}
.tf-big:first-child { background: linear-gradient(135deg, #54a0ff, #6ec1ff); }
.tf-big:last-child { background: linear-gradient(135deg, #ff9f43, #ffbe76); }

.tf-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tf-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tf-play { border: none; background: #eef4ff; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; color: #2b6cb0; }
.tf-btn { border: none; background: #f3f4f6; border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.tf-btn:hover { background: #e5e7eb; }
.tf-mark { font-size: 13px; font-weight: 700; }
.tf-mark.good { color: #2ecc71; }
.tf-mark.bad { color: #ff6b6b; }

/* 首字母填空 */
.cloze-text {
  font-size: 16px; line-height: 2.2; margin-top: 8px; text-align: left;
}
.cloze-input {
  width: 92px; padding: 4px 8px; font-size: 15px; border-radius: 8px;
  border: 2px solid #dfe4ff; outline: none; text-align: center; font-family: inherit;
}
.cloze-input:focus { border-color: #54a0ff; }
.cloze-input.good { border-color: #2ecc71; background: #eafaf1; }
.cloze-input.bad { border-color: #ff6b6b; background: #fff0f0; }



/* ===== 单词配图缺省占位（无 AI 插画时） ===== */
.wpic-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffeaa7, #ffbe76);
  color: #8a6d3b;
  font-size: 34px;
  font-weight: 800;
  vertical-align: middle;
}

/* ---------- 读一读：每句中文翻译 ---------- */
.read-line-item { margin-bottom: 10px; }
.read-line-zh {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 0 8px; font-size: 14px; color: #7a8aa0; line-height: 1.5;
}
.read-line-zh .line-zh-btn {
  border: none; border-radius: 10px; padding: 2px 8px; font-size: 13px;
  background: #eef4ff; color: #3b6fd4; flex: 0 0 auto;
}


/* ---------- 界面整理：筛选区 / 分段控件 / 游戏分类 ---------- */
.filters {
  margin: 4px 12px 10px;
  padding: 6px 2px;
  background: rgba(255,255,255,.55);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.filters:not(:has(> .grade-row:not(.hidden))) { display: none; }
.filters .grade-row { padding: 3px 10px; }
.filters .grade-row + .grade-row:not(.hidden) {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0,0,0,.07);
}
.filters .grade-pill { padding: 6px 12px; font-size: 13px; }
.filters .grade-pill.active { background: linear-gradient(135deg, #54a0ff, #a29bfe); color: #fff; box-shadow: 0 2px 8px rgba(84,160,255,.35); }

/* 读一读：分段控件 */
.seg {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255,255,255,.6);
  border-radius: 16px;
  margin-bottom: 12px;
}
.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  transition: all .18s;
}
.seg-btn.active {
  background: #fff;
  color: #1e90ff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.grade-row.compact { padding: 0 2px 8px; }

/* 卡片列表里的分类标题 */
.rc-section {
  font-size: 15px;
  font-weight: 800;
  color: #4a5568;
  margin: 8px 4px 0;
  letter-spacing: .3px;
}
.card-list > .rc-section:first-child { margin-top: 0; }

/* 游戏卡片：图标 + 文字两栏 */
.game-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.gc-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef5ff, #f3efff);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-icon .emoji-img { width: 30px; height: 30px; }
.gc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-body .hc-title { font-size: 18px; }

/* 阅读理解进度 */
.quiz-count {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #54a0ff;
}


/* ---------- 读一读：每句英文朗读按钮 ---------- */
.read-line-row { display: flex; align-items: center; gap: 8px; }
.read-line-row .read-line { flex: 1 1 auto; }
.line-say-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #ffeaa7;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.line-say-btn:active { transform: scale(.94); }

/* 顶栏稍微加一点底色，滚动时不与内容糊在一起 */
.tabbar { background: rgba(247, 250, 255, .72); }


/* 翻翻乐：翻开后中文面里的配图尺寸 */
.mem .mem-face .emoji-img { width: 26px; height: 26px; vertical-align: -6px; }
.mem.open .mem-face { line-height: 1.35; display: block; padding: 2px 0; word-break: break-word; }


/* ---------- 界面图标：用 OpenMoji 图片代替系统 emoji ---------- */
.logo-ico { width: 30px; height: 30px; vertical-align: -7px; margin-right: 4px; }
.tab-ico { width: 21px; height: 21px; vertical-align: -5px; margin-right: 4px; }
.btn-ico { width: 18px; height: 18px; vertical-align: -4px; margin-right: 5px; }
.tabbar button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.tabbar button .tab-ico { margin-right: 0; }
.seg-btn .emoji-img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 3px; }
.rc-section .emoji-img { width: 19px; height: 19px; vertical-align: -4px; margin-right: 5px; }
.game-head h2 .emoji-img { width: 22px; height: 22px; vertical-align: -4px; margin-right: 4px; }
.quiz-title .emoji-img { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }


/* 翻翻乐：牌面文字不拆行，长单词自动缩小 */
.mem .mem-face { display: block; line-height: 1.3; font-size: 15px; word-break: normal; overflow-wrap: normal; }
.mem { font-size: 15px; padding: 6px 3px; }


/* 绘本插图场景（OpenMoji 组合插画） */
.book-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 150px;
  margin: 12px 0 4px;
  padding: 20px 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, #eaf4ff, #f7efff 55%, #fff3e6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.book-scene .scene-icon {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.12));
}
@media (max-width: 420px) {
  .book-scene .scene-icon { width: 54px; height: 54px; }
}



/* ============================================================
   界面美化 v2：统一设计令牌 + 顶栏 / 标签栏 / 卡片 / 按钮 / 弹窗
   （放在最后，覆盖前面的同名样式）
   ============================================================ */
:root {
  --ink: #1f2a44;
  --ink-soft: #5b6785;
  --line: rgba(31, 42, 68, .09);
  --card: #ffffff;
  --brand-1: #5b8cff;
  --brand-2: #8b5cf6;
  --accent: #ffb703;
  --shadow-sm: 0 2px 8px rgba(31, 42, 68, .07);
  --shadow-md: 0 10px 26px rgba(31, 42, 68, .11);
  --radius-l: 22px;
  --radius-m: 16px;
  --radius-s: 12px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -12%, #e6f1ff 0%, transparent 60%),
    radial-gradient(900px 480px at 108% -6%, #ffeede 0%, transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #fbf7ff 48%, #fff8f1 100%);
  background-attachment: fixed;
}

/* 统一宽度容器 */
.app { max-width: 720px; margin: 0 auto; padding: 0 12px 30px; }

/* ---------- 顶栏 ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px 10px;
  background: rgba(248, 251, 255, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand .logo-ico { width: 34px; height: 34px; margin: 0; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.16; min-width: 0; }
.brand-title {
  font-size: 19px; font-weight: 900; letter-spacing: .4px;
  background: linear-gradient(118deg, #4f7cff, #8b5cf6 58%, #ff8a3d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub {
  font-size: 11px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .14s, box-shadow .14s;
}
.icon-btn:active { transform: scale(.93); }
.icon-btn .icon-ico { width: 20px; height: 20px; margin: 0; }
.icon-btn.off { opacity: .42; filter: grayscale(1); }

.star-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 900; color: #8a5a00;
  background: linear-gradient(135deg, #fff5d6, #ffe7ba);
  border: 1px solid rgba(255, 183, 3, .38);
  box-shadow: 0 6px 14px rgba(255, 183, 3, .2);
}
.star-badge .icon-ico { width: 18px; height: 18px; margin: 0; }

/* ---------- 标签栏 ---------- */
.tabbar {
  position: sticky; top: 62px; z-index: 25;
  display: flex; gap: 6px; padding: 6px;
  margin: 8px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tabbar button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 4px;
  border: none; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 800; color: var(--ink-soft);
  transition: all .18s;
}
.tabbar button .tab-ico { width: 20px; height: 20px; margin: 0; }
.tabbar button.active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(91, 140, 255, .34);
}
.tabbar button.active .tab-ico { filter: brightness(0) invert(1); }

/* ---------- 页面切换 ---------- */
.view.active { animation: viewIn .26s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 首页 ---------- */
.welcome {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 12px 14px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
}
.welcome .mascot { width: 34px; height: 34px; flex: 0 0 auto; }

.home-cards { display: grid; gap: 12px; margin-top: 12px; }
.home-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; padding: 16px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #ffffff, #f7fbff 70%, #fff6ee);
  box-shadow: var(--shadow-md);
  transition: transform .16s, box-shadow .16s;
}
.home-card:active { transform: scale(.985); box-shadow: var(--shadow-sm); }
.home-card .hc-icon { flex: 0 0 auto; display: grid; place-items: center; }
.home-card .hc-icon img { width: 46px; height: 46px; }
.hc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hc-title { font-size: 17px; font-weight: 900; color: var(--ink); }
.hc-desc { font-size: 12px; color: var(--ink-soft); }

.home-actions {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 18px;
}

/* ---------- 筛选区 ---------- */
.filters {
  margin: 10px 0 2px; padding: 10px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .62);
  border: 1px dashed rgba(91, 140, 255, .3);
}
.grade-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 1px; }
.grade-pill {
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 800; color: var(--ink-soft);
  transition: all .16s;
}
.grade-pill.active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px rgba(91, 140, 255, .3);
}

/* ---------- 小标题（分组胶囊） ---------- */
.rc-section {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 16px 2px 8px; padding: 6px 12px;
  border-radius: 999px;
  background: rgba(91, 140, 255, .11);
  color: #3557b7; font-size: 13px; font-weight: 800;
}
.rc-section .emoji-img { width: 17px; height: 17px; vertical-align: -3px; margin-right: 2px; }

/* ---------- 列表卡片 ---------- */
.read-card, .game-card {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s;
}
.read-card:active, .game-card:active { transform: scale(.99); }
.game-card .gc-icon .emoji-img { width: 30px; height: 30px; }

/* ---------- 按钮层级 ---------- */
.btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .14s, box-shadow .14s;
}
.btn:active { transform: scale(.96); }
.btn-soft { background: rgba(91, 140, 255, .1); border-color: transparent; color: #3557b7; }
.btn:disabled { opacity: .45; box-shadow: none; }

.big-btn {
  border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; font-weight: 900; padding: 14px 20px;
  box-shadow: 0 10px 22px rgba(91, 140, 255, .32);
  transition: transform .14s, box-shadow .14s;
}
.big-btn:active { transform: scale(.97); }

/* 图标与文字对齐 */
.logo-ico, .tab-ico, .btn-ico, .icon-ico { vertical-align: middle; }
.btn .btn-ico, .big-btn .btn-ico { width: 18px; height: 18px; margin-right: 6px; }
.btn .btn-ico-r, .big-btn .btn-ico-r { margin: 0 0 0 6px; }
.grade-pill .emoji-img, .seg-btn .emoji-img { width: 17px; height: 17px; vertical-align: -4px; }

/* ---------- 弹窗 ---------- */
.modal { background: rgba(22, 30, 48, .38); backdrop-filter: blur(3px); }
.modal-box {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: linear-gradient(170deg, #ffffff, #f9fbff 65%, #fff7f0);
  box-shadow: 0 24px 54px rgba(31, 42, 68, .24);
}
.modal-emoji { width: 56px; height: 56px; margin: 0 auto 6px; display: block; }
.credits-title { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.credits-box { max-height: 80vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.credits-list p { font-size: 12.5px; line-height: 1.7; color: #4a5674; }

/* ---------- 绘本 / 阅读 ---------- */
.book-img {
  border-radius: 18px;
  background: #f2f5fb;
  box-shadow: 0 12px 28px rgba(31, 42, 68, .16);
}
.book-text { font-size: 19px; font-weight: 800; line-height: 1.6; }
.lc-zs { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.read-line-row { display: flex; align-items: center; gap: 8px; }
.line-say-btn, .line-zh-btn, .lc-say {
  border-radius: 999px;
  background: rgba(255, 183, 3, .16);
  border: 1px solid rgba(255, 183, 3, .3);
}
.read-line.speaking { background: rgba(255, 183, 3, .22); border-radius: 10px; }

/* ---------- 学一学 ---------- */
.learn-card {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.learn-nav { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.learn-count { font-size: 13px; font-weight: 800; color: var(--ink-soft); min-width: 56px; text-align: center; }

/* 小屏微调 */
@media (max-width: 360px) {
  .tabbar button { font-size: 12px; gap: 4px; }
  .tabbar button .tab-ico { width: 18px; height: 18px; }
  .brand-sub { display: none; }
  .home-card { padding: 14px; gap: 12px; }
  .home-card .hc-icon img { width: 40px; height: 40px; }
}


/* 界面内联小图标（文字 emoji 统一换成 OpenMoji 后的尺寸） */
.inline-ico {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -.16em;
  margin: 0 2px;
  display: inline-block;
}
.btn .inline-ico, .big-btn .inline-ico, .line-say-btn .inline-ico,
.line-zh-btn .inline-ico, .lc-say .inline-ico { width: 1.1em; height: 1.1em; margin: 0 1px; }


/* 内联 SVG 小图标（按钮里的朗读/中文/箭头等，不依赖图片文件） */
.ui-svg { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.ui-svg svg { width: 1.15em; height: 1.15em; display: block; }
.btn .ui-svg svg, .big-btn .ui-svg svg { width: 18px; height: 18px; margin: 0 1px; }
.line-say-btn .ui-svg svg, .line-zh-btn .ui-svg svg, .lc-say .ui-svg svg { width: 1.1em; height: 1.1em; }


/* ---------- 词库（可搜索的日常话题词） ---------- */
.dict-search {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 10px; padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.dict-search-ico { width: 20px; height: 20px; flex: 0 0 auto; opacity: .8; }
#dictInput {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--ink); padding: 4px 0;
  -webkit-appearance: none; appearance: none;
}
#dictInput::placeholder { color: #9aa6bf; }
#dictInput::-webkit-search-cancel-button { -webkit-appearance: none; }
.dict-search .icon-btn { width: 32px; height: 32px; box-shadow: none; border-color: transparent; }
.dict-search .icon-btn .icon-ico { width: 16px; height: 16px; }

.dict-item {
  padding: 12px 14px; margin: 8px 0;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.dict-head { display: flex; align-items: center; gap: 12px; }
.dict-img { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(91,140,255,.08); }
.dict-img .dict-pic, .dict-img .emoji-img { width: 32px; height: 32px; }
.dict-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dict-en { font-size: 18px; font-weight: 900; color: var(--ink); word-break: break-word; }
.dict-zh { font-size: 12.5px; color: var(--ink-soft); }
.dict-s { margin-top: 8px; font-size: 14px; font-weight: 700; color: #33415c; }
.dict-zs { margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
.dict-say { width: 36px; height: 36px; flex: 0 0 auto; }

/* 话题很多：一行横向滑动，不占太多高度 */
#dictTopics {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 6px;
  margin: 0 -2px 4px;
}
#dictTopics::-webkit-scrollbar { display: none; }
#dictTopics .grade-pill { flex: 0 0 auto; white-space: nowrap; }
.dict-hint { font-size: 12px; color: var(--ink-soft); margin: 2px 4px 8px; }



/* ============================================================
   标签栏 & 首页卡片对齐修正
   （5 个栏目一行放得下：图标在上、文字在下，不换行、不挤歪）
   ============================================================ */
.tabbar {
  gap: 3px;
  padding: 5px;
}
.tabbar button {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  font-size: 11.5px;
  line-height: 1.15;
  letter-spacing: -.2px;
  white-space: nowrap;
}
.tabbar button span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.tabbar button .tab-ico { width: 19px; height: 19px; margin: 0; }
.tabbar button.active { box-shadow: 0 6px 14px rgba(91, 140, 255, .3); }

/* 首页三张卡片：图标居中在上，标题和说明跟着居中，不再左右错位 */
.home-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px 16px;
}
.home-card .hc-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-body {
  align-items: center;
  text-align: center;
  gap: 4px;
}
.hc-title { font-size: 18px; line-height: 1.2; }
.hc-desc { font-size: 12.5px; line-height: 1.45; }

@media (min-width: 420px) {
  .tabbar button { font-size: 12.5px; gap: 4px; padding: 9px 4px; }
  .tabbar button .tab-ico { width: 21px; height: 21px; }
}


/* 词库：配图自检提示 */
.dict-check {
  margin: 2px 2px 10px;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  background: rgba(91, 140, 255, .08);
  border: 1px dashed rgba(91, 140, 255, .3);
  font-size: 12.5px;
  line-height: 1.6;
  color: #3a4c74;
}
.dict-check b { color: #2b3c60; }


/* 词库：音标 + 中英文双朗读按钮 */
.dict-phon {
  font-size: 12.5px;
  color: #6b7a99;
  font-family: "SF Pro Text", -apple-system, "Helvetica Neue", sans-serif;
  letter-spacing: .2px;
  line-height: 1.3;
}
.dict-btns { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.dict-btns .icon-btn { width: 34px; height: 34px; box-shadow: none; }
.dict-btns .dict-say { background: rgba(255, 183, 3, .14); border-color: rgba(255, 183, 3, .28); }
.dict-btns .dict-zh {
  background: rgba(91, 140, 255, .12);
  border-color: rgba(91, 140, 255, .28);
  color: #3557b7;
}


/* 词库：按大类分组，每个大类一个小标题 */
.dict-group { margin: 4px 0 16px; }
.dict-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 6px 8px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(31, 42, 68, .14);
}
.dict-group-name {
  font-size: 17px;
  font-weight: 900;
  color: #2b3c60;
  letter-spacing: .3px;
}
.dict-group-count { font-size: 12px; color: var(--ink-soft); flex: 0 0 auto; }


/* 词库：例句也带英文 / 中文朗读按钮 */
.dict-s, .dict-zs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dict-s span, .dict-zs span { flex: 1 1 auto; min-width: 0; }
.dict-s .icon-btn, .dict-zs .icon-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  box-shadow: none;
}
.dict-s .icon-btn { background: rgba(255, 183, 3, .14); border-color: rgba(255, 183, 3, .28); }
.dict-zs .icon-btn { background: rgba(91, 140, 255, .12); border-color: rgba(91, 140, 255, .28); color: #3557b7; }
.dict-s .icon-btn .ui-svg svg, .dict-zs .icon-btn .ui-svg svg { width: 16px; height: 16px; }


/* 词库：机器翻译开关 */
.dict-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 2px 10px;
}
.dict-tools .btn { font-size: 12.5px; padding: 7px 12px; }
.dict-tools .btn.on {
  background: rgba(91, 140, 255, .16);
  border-color: rgba(91, 140, 255, .35);
  color: #2b4d9b;
}
.dict-tools-tip { font-size: 11.5px; color: var(--ink-soft); }


/* ---------- 语法小课堂 ---------- */
.gram-card {
  margin: 10px 0;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.gram-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}
.gram-head::-webkit-details-marker { display: none; }
.gram-emoji { font-size: 24px; line-height: 1; }
.gram-title { flex: 1 1 auto; font-size: 17px; font-weight: 900; color: var(--ink); }
.gram-tag {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 800;
  color: #3557b7;
  background: rgba(91, 140, 255, .12);
  border-radius: 999px;
  padding: 4px 10px;
}
.gram-body { padding: 0 16px 16px; }
.gram-lead {
  font-size: 13.5px;
  line-height: 1.7;
  color: #3a4c74;
  background: rgba(91, 140, 255, .07);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.gram-sec { margin-bottom: 12px; }
.gram-h { font-size: 14.5px; font-weight: 900; color: #2b3c60; margin: 12px 0 4px; }
.gram-p { font-size: 13.5px; line-height: 1.75; color: #45536f; }
.gram-ex {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 12px;
  background: #f7faff;
  border: 1px solid rgba(91, 140, 255, .14);
}
.gram-en { font-size: 15px; font-weight: 800; color: #22304d; line-height: 1.5; }
.gram-ex .icon-btn { width: 32px; height: 32px; box-shadow: none; }
.gram-ex .gram-say { background: rgba(255, 183, 3, .16); border-color: rgba(255, 183, 3, .3); }
.gram-ex .gram-zh { background: rgba(91, 140, 255, .12); border-color: rgba(91, 140, 255, .28); color: #3557b7; }
.gram-z { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); }
.gram-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px dashed rgba(255, 183, 3, .4);
  font-size: 12.5px;
  line-height: 1.6;
  color: #7a5a12;
}

/* 音标速查表 */
.ipa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin:10px 0 6px}
.ipa-chip{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;border:2px solid #e3e8f0;border-radius:12px;background:#fff;cursor:pointer;transition:transform .12s,border-color .12s}
.ipa-chip:active{transform:scale(.96)}
.ipa-chip.on{border-color:#ffb300;background:#fff7e0}
.ipa-sym{font-size:15px;font-weight:700;color:#2b3a55}
.ipa-ex{font-size:12px;color:#445}
.ipa-zh{font-size:11px;color:#889}
.ipa-hint{font-size:12px;color:#667;line-height:1.6;margin-top:2px}

/* 首页年级选择 + 新增入口卡 */
.home-grade { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.hg-label { font-size: 13px; color: var(--muted, #7a8699); font-weight: 600; }
.home-grade .grade-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.c-dict    { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.c-grammar { background: linear-gradient(135deg, #ff9ff3, #f368e0); }
@media (min-width: 560px) { .home-cards { grid-template-columns: repeat(3, 1fr); } }

/* 音标可点 */
.dict-phon.sayable { cursor: pointer; text-decoration: underline dotted; }
.dict-phon.sayable:hover { color: #54a0ff; }
.lc-phon { font-size: 15px; color: #7a8699; margin: 2px 0 6px; cursor: pointer; }
.lc-phon:hover { color: #54a0ff; }

/* 学一学：英文单词真正居中（喇叭挪到右侧，不占位） */
.lc-en { position: relative; justify-content: center; padding: 0 48px; }
.lc-en .lc-say { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
