/* ============================================================
 * 每日英语 15 分钟 · v0
 * 设计原则：大按钮、少文字、有语音、无广告、无外链
 * ============================================================ */

:root {
  --blue: #2f6fed;
  --blue-dark: #1f4fc4;
  --blue-soft: #eaf0ff;
  --yellow: #ffcc4d;
  --yellow-soft: #fff6dd;
  --green: #2fbf71;
  --green-soft: #e6f8ee;
  --red: #ff6b6b;
  --red-soft: #ffecec;
  --purple: #7a5cf0;
  --ink: #1f2a44;
  --muted: #6b7890;
  --line: #e3e9f5;
  --bg: #f4f7ff;
  --card: #ffffff;
  --shadow: 0 6px 20px rgba(31, 42, 68, 0.08);
  --radius: 20px;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button { font-family: inherit; }

.app {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px 96px;
}

/* ---------------- 顶部栏 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 10px;
  position: sticky;
  top: 0;
  background: linear-gradient(var(--bg) 70%, rgba(244, 247, 255, 0));
  z-index: 20;
}
.topbar-title { flex: 1; font-size: 20px; font-weight: 700; text-align: center; }
.topbar-right { min-width: 44px; display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn {
  border: 0; background: transparent; font-size: 30px; line-height: 1;
  width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn:active { background: var(--blue-soft); }
.icon-btn.ghost { visibility: hidden; }

/* ---------------- 通用 ---------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 14px; }

.btn {
  border: 0; border-radius: 16px; padding: 15px 22px;
  font-size: 19px; font-weight: 700; cursor: pointer;
  background: var(--blue-soft); color: var(--blue-dark);
  transition: transform 0.06s ease, filter 0.15s ease;
  min-height: 52px;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(47, 111, 237, 0.28); }
.btn.white { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12); }
.btn.green { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(47, 191, 113, 0.26); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; }
.btn.danger { background: var(--red-soft); color: #c22; }
.btn.small { padding: 10px 16px; font-size: 16px; min-height: 44px; border-radius: 12px; }
.btn:disabled { opacity: 0.45; }
.btn-block { display: block; width: 100%; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.mt { margin-top: 14px; }

.hbar { height: 12px; background: #e9eefb; border-radius: 999px; overflow: hidden; }
.hbar > i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width 0.3s ease; }
.hbar.green > i { background: var(--green); }

/* ---------------- 首页 ---------------- */
.home-head {
  display: flex; align-items: center; gap: 12px; padding: 6px 0 14px;
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: var(--blue-soft);
  border: 2px solid #fff; box-shadow: var(--shadow);
}
.home-name { font-size: 21px; font-weight: 800; }
.home-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--yellow-soft); color: #8a5b00;
  border-radius: 999px; padding: 6px 12px; font-size: 15px; font-weight: 700;
}
.pill.blue { background: var(--blue-soft); color: var(--blue-dark); }

.today-card {
  background: linear-gradient(135deg, #3a7bff, #2f5fe0);
  color: #fff; border-radius: 24px; padding: 24px;
  box-shadow: 0 14px 30px rgba(47, 95, 224, 0.30);
}
.today-card h2 { margin: 0 0 6px; font-size: 26px; }
.today-card p { margin: 0; opacity: 0.9; font-size: 16px; }

.steps { display: flex; gap: 10px; margin: 20px 0 6px; }
.step {
  flex: 1; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.85);
}
.step i {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22); font-size: 17px; font-style: normal;
}
.step.on i { background: #fff; color: var(--blue-dark); }
.step.on { color: #fff; font-weight: 700; }

.done-card { text-align: center; padding: 30px 20px; }
.done-emoji { font-size: 64px; }
.done-card h2 { margin: 10px 0 4px; font-size: 26px; }
.big-points { font-size: 40px; font-weight: 800; color: #8a5b00; }

/* ---------------- 题面 ---------------- */
.q-head { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.q-title { font-size: 23px; font-weight: 800; line-height: 1.45; }
.q-sentence {
  font-size: 26px; font-weight: 800; line-height: 1.5;
  background: var(--blue-soft); border-radius: 16px; padding: 18px; margin: 12px 0;
}
.emoji-big { font-size: 96px; text-align: center; line-height: 1.2; padding: 8px 0 4px; }

.speaker-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 88px; border-radius: 18px; border: 2px dashed var(--blue);
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 22px; font-weight: 800; cursor: pointer; margin: 14px 0;
}
.speaker-btn:active { transform: scale(0.99); }
.speaker-btn .spk { font-size: 34px; }

.options { display: grid; gap: 12px; margin-top: 8px; }
.options.wide { grid-template-columns: 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); background: #fff; border-radius: 16px;
  padding: 16px 18px; font-size: 21px; font-weight: 600; text-align: left;
  cursor: pointer; min-height: 64px; color: var(--ink);
}
.opt:active { background: var(--blue-soft); }
.opt.selected { border-color: var(--blue); background: var(--blue-soft); }
.opt .idx {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: #eef2fb; color: var(--muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.opt.selected .idx { background: var(--blue); color: #fff; }
.opt.correct { border-color: var(--green); background: var(--green-soft); }
.opt.correct .idx { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.opt.wrong .idx { background: var(--red); color: #fff; }

.q-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.q-progress .hbar { flex: 1; }

/* ---------------- 翻卡 ---------------- */
.flash-card {
  background: #fff; border-radius: 24px; box-shadow: var(--shadow);
  padding: 28px 20px; text-align: center;
}
.flash-emoji { font-size: 110px; line-height: 1.1; }
.flash-en { font-size: 42px; font-weight: 800; letter-spacing: 0.5px; margin-top: 8px; }
.flash-zh { font-size: 20px; color: var(--muted); margin-top: 6px; }
.flash-tip {
  margin-top: 16px; background: var(--yellow-soft); border-radius: 14px;
  padding: 12px 16px; font-size: 16px; color: #8a5b00; text-align: left;
}
.sound-btn {
  margin: 16px auto 0; display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: var(--blue-soft); color: var(--blue-dark);
  font-size: 18px; font-weight: 700; padding: 12px 22px; border-radius: 999px; cursor: pointer;
}

/* ---------------- 讲解 ---------------- */
.explain-card { border-left: 6px solid var(--red); }
.explain-card.ok { border-left-color: var(--green); }
.explain-q { font-size: 18px; font-weight: 700; line-height: 1.5; }
.answer-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; font-size: 15px; }
.tag { border-radius: 8px; padding: 4px 10px; font-weight: 700; background: #f2f5fb; color: var(--muted); }
.tag.bad { background: var(--red-soft); color: #b22; }
.tag.good { background: var(--green-soft); color: #176d3d; }

.explain-block { margin-top: 12px; }
.explain-block .lab {
  font-size: 14px; font-weight: 800; color: var(--blue-dark);
  display: inline-block; background: var(--blue-soft);
  border-radius: 8px; padding: 3px 10px; margin-bottom: 6px;
}
.explain-block p { margin: 0; font-size: 17px; line-height: 1.65; }

.ai-btn {
  margin-top: 14px; width: 100%; border: 2px dashed var(--purple);
  background: #f5f1ff; color: var(--purple); border-radius: 14px;
  padding: 13px; font-size: 17px; font-weight: 700; cursor: pointer;
}

/* ---------------- 列表 ---------------- */
.list-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 16px 18px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.list-item .li-main { flex: 1; min-width: 0; }
.li-title { font-size: 17px; font-weight: 700; }
.li-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.li-emoji { font-size: 30px; }

/* ---------------- 家长端 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.stat .v { font-size: 30px; font-weight: 800; line-height: 1.2; }
.stat .k { font-size: 13px; color: var(--muted); margin-top: 4px; }

.week-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 10px; }
.wbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.wbar i {
  display: block; width: 100%; border-radius: 8px 8px 4px 4px;
  background: #dfe7fb; min-height: 6px;
}
.wbar i.on { background: var(--blue); }
.wbar span { font-size: 11px; color: var(--muted); }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field label { font-size: 16px; font-weight: 600; }
.field select, .field input[type="number"], .field input[type="text"] {
  font-size: 16px; padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-width: 110px;
}

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}
.tabbar button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 14px; cursor: pointer; border-radius: 12px;
}
.tabbar button .t { font-size: 22px; }
.tabbar button.on { color: var(--blue-dark); font-weight: 700; }

/* ---------------- 弹层 / 提示 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 30, 55, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
}
.modal {
  background: #fff; border-radius: 22px; padding: 24px;
  width: min(420px, 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.modal h3 { margin: 0 0 8px; font-size: 21px; }
.modal p { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.modal-btns { display: flex; gap: 10px; }
.modal-btns .btn { flex: 1; }

.pin-modal { text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 20px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; background: #e3e9f5; }
.pin-dots i.on { background: var(--blue); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-pad button {
  border: 0; background: #f2f5fb; border-radius: 14px;
  font-size: 24px; font-weight: 700; height: 60px; cursor: pointer; color: var(--ink);
}
.pin-pad button:active { background: var(--blue-soft); }
.pin-pad button.ok { background: var(--green); color: #fff; }
.pin-cancel { margin-top: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(10px);
  background: rgba(31, 42, 68, 0.94); color: #fff; padding: 12px 20px;
  border-radius: 999px; font-size: 16px; z-index: 200; opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 弟弟端 ---------------- */
.tiny-hero {
  display: grid; gap: 16px; margin-top: 8px;
}
.tiny-big {
  border: 0; border-radius: 26px; padding: 34px 20px;
  font-size: 30px; font-weight: 800; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow); color: var(--ink);
}
.tiny-big .e { font-size: 70px; }
.tiny-big.story { background: var(--yellow-soft); color: #7a5200; }
.tiny-big.cards { background: var(--green-soft); color: #176d3d; }

.story-text { font-size: 26px; line-height: 2; letter-spacing: 1px; }
.story-emoji { text-align: center; font-size: 110px; }

.tiny-card-big { text-align: center; padding: 20px; }
.tiny-char { font-size: 150px; line-height: 1.15; font-weight: 800; }
.tiny-pinyin { font-size: 26px; color: var(--muted); }
.tiny-word { font-size: 24px; margin-top: 6px; }

/* ---------------- 选人 ---------------- */
.picker { display: grid; gap: 16px; margin-top: 20px; }
.pick-card {
  border: 0; border-radius: 24px; padding: 26px 20px; cursor: pointer;
  background: #fff; box-shadow: var(--shadow); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pick-card .e { font-size: 64px; }
.pick-card .n { font-size: 24px; font-weight: 800; }
.pick-card .g { font-size: 15px; color: var(--muted); }

/* ---------------- 小屏适配 ---------------- */
@media (max-width: 420px) {
  .q-title { font-size: 21px; }
  .flash-en { font-size: 36px; }
  .flash-emoji { font-size: 90px; }
  .tiny-char { font-size: 120px; }
  .stat .v { font-size: 26px; }
}

@media (min-width: 720px) {
  .home-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
  .options { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
 * v1 学习台：顶部导航 / 三栏 / 学科卡 / 菜园 / 成就 / 环节
 * ============================================================ */
:root {
  --nav-a: #25306b;
  --nav-b: #3a3f8f;
  --soft: #f6f8fd;
}

/* ---------- 顶部导航 ---------- */
.topnav {
  background: linear-gradient(135deg, var(--nav-a), var(--nav-b));
  color: #fff;
  border-radius: 0 0 22px 22px;
  padding: 16px 22px 18px;
  margin: 0 -16px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 130px;
  gap: 16px;
  align-items: center;
}
.tn-left .brand { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; }
.tn-search {
  margin-top: 8px; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px; padding: 7px 10px; font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.tn-mid h1 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.tn-mid p { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.tn-right { text-align: right; }
.tn-reset {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border-radius: 10px; padding: 8px 14px; font-size: 13px; cursor: pointer;
}

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #fff; border-radius: 14px; padding: 9px 12px;
  margin-top: 12px; box-shadow: 0 3px 10px rgba(31, 42, 68, 0.06);
  font-size: 13px;
}
.toolbar .who { font-weight: 800; margin-right: 4px; }
.tool {
  border: 0; background: #f2f5fb; color: var(--ink);
  border-radius: 9px; padding: 7px 11px; font-size: 13px; cursor: pointer;
}
.tool:active { background: #e6ecfa; }
.tool.timer { background: #eef3ff; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.tool.timer.on { background: var(--blue); color: #fff; }
.tool.gold { background: var(--yellow-soft); color: #8a5b00; font-weight: 700; }
.coins { margin-left: auto; font-size: 13px; color: var(--muted); }
.coins b { color: #8a5b00; font-size: 16px; }

/* ---------- 三栏 ---------- */
.main-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 232px;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.side { position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow: auto; }
.side-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 800; color: var(--ink);
  padding: 4px 2px 8px;
}
.side-head em { font-style: normal; color: var(--muted); font-weight: 700; }

.ach {
  background: #fff; border-radius: 12px; padding: 9px 11px; margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(31, 42, 68, 0.05);
}
.ach.got { background: #eefaf3; border: 1px solid #c9eeda; }
.ach-top { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 700; }
.ach-top .ach-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-coin { font-style: normal; color: #b8860b; font-size: 11.5px; white-space: nowrap; }
.ach-tip { font-size: 11px; color: var(--muted); margin: 3px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach .hbar { height: 6px; }
.ach-num { font-size: 10.5px; color: var(--muted); margin-top: 4px; text-align: right; }

/* ---------- 中间 ---------- */
.sec-head h2 { margin: 0; font-size: 21px; }
.sec-head p { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }

.subject-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.subject-card {
  text-align: left; border: 0; background: #fff; border-radius: 18px;
  padding: 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(31, 42, 68, 0.07);
  transition: transform 0.08s ease, box-shadow 0.15s ease;
  border-top: 4px solid var(--c, var(--blue));
  display: flex; flex-direction: column; gap: 10px;
}
.subject-card:active { transform: scale(0.99); box-shadow: 0 3px 10px rgba(31, 42, 68, 0.1); }
.sc-top { display: flex; align-items: center; gap: 10px; }
.sc-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--c, var(--blue));
  color: #fff; font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.sc-name { font-size: 20px; font-weight: 800; }
.sc-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; min-height: 40px; }
.sc-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sc-tag { background: var(--yellow-soft); color: #8a5b00; border-radius: 999px; padding: 2px 9px; font-weight: 700; }
.sc-progress { font-size: 11.5px; color: var(--muted); }
.sc-progress .hbar { margin-top: 5px; height: 7px; }

/* ---------- 菜园卡 ---------- */
.garden-card {
  background: linear-gradient(160deg, #eefbf2, #f6fdf8);
  border: 1px solid #d7f0e0; border-radius: 20px; padding: 18px;
  margin-top: 16px; box-shadow: 0 6px 18px rgba(31, 120, 70, 0.06);
}
.gc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gc-head h3 { margin: 0; font-size: 19px; }
.gc-head p { margin: 5px 0 0; font-size: 12.5px; color: #4b7a61; }
.gc-water { font-size: 15px; color: #2f7a52; font-weight: 800; white-space: nowrap; }
.gc-water b { font-size: 20px; }
.plots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 14px; }
.plot {
  border: 0; background: #fff; border-radius: 14px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; box-shadow: 0 2px 6px rgba(31, 42, 68, 0.05);
}
.plot-icon { font-size: 30px; line-height: 1.2; }
.plot-name { font-size: 11.5px; font-weight: 700; }
.plot-stage { font-size: 10px; color: var(--muted); }
.plot-bar { width: 80%; height: 4px; background: #e3efe8; border-radius: 999px; overflow: hidden; margin-top: 3px; }
.plot-bar i { display: block; height: 100%; background: #34b36f; }
.plot.mature { background: #fffbe9; box-shadow: 0 0 0 2px #ffd75e inset; }
.plot.mature .plot-icon { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.quick-row { display: flex; gap: 10px; margin-top: 16px; }
.quick {
  flex: 1; border: 0; background: #fff; border-radius: 14px; padding: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink);
  box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05);
}

/* ---------- 页头 ---------- */
.page-head { display: flex; align-items: center; gap: 8px; padding: 14px 0 12px; }
.page-head h2 { margin: 0; font-size: 21px; }
.page-head p { margin: 3px 0 0; }

/* ---------- 单元列表 ---------- */
.unit-list { display: grid; gap: 12px; }
.unit-card { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(31, 42, 68, 0.06); }
.uc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.uc-badge {
  width: 40px; height: 40px; border-radius: 11px; color: #fff;
  font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex: 0 0 40px;
}
.uc-title { flex: 1; min-width: 0; }
.uc-title b { display: block; font-size: 16px; }
.uc-title em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.uc-pct { font-size: 18px; font-weight: 800; color: var(--blue-dark); }
.uc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* ---------- 单元页 ---------- */
.unit-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.unit-progress .hbar { flex: 1; }
.step-list { display: grid; gap: 10px; }
.step-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 0; background: #fff; border-radius: 15px; padding: 14px 16px;
  cursor: pointer; box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05);
  border-left: 4px solid var(--c, var(--blue));
}
.step-item.done { background: #f3fcf7; }
.si-no {
  width: 26px; height: 26px; border-radius: 50%; background: #eef2fb; color: var(--muted);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex: 0 0 26px;
}
.si-icon { font-size: 22px; }
.si-main { flex: 1; min-width: 0; }
.si-main b { display: block; font-size: 15px; }
.si-main em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-status { font-size: 12.5px; font-weight: 700; color: var(--blue-dark); }
.step-item.done .si-status { color: #1c7a45; }

/* ---------- 环节：卡片 ---------- */
.learn-card {
  background: #fff; border-radius: 20px; padding: 26px 22px; text-align: center;
  box-shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
  border-top: 5px solid var(--c, var(--blue));
}
.lc-emoji { font-size: 84px; line-height: 1.15; }
.lc-en { font-size: 34px; font-weight: 800; margin-top: 6px; }
.lc-zh { font-size: 18px; color: var(--muted); margin-top: 6px; }
.lc-tip { margin-top: 16px; background: var(--yellow-soft); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: #7a5200; text-align: left; line-height: 1.6; }
.lc-rule-title { font-size: 19px; font-weight: 800; text-align: left; }
.lc-rule-text { font-size: 17px; line-height: 1.9; text-align: left; margin-top: 12px; color: var(--ink); }

/* ---------- 结果 ---------- */
.result-card { text-align: center; }
.result-emoji { font-size: 62px; }
.result-card h2 { margin: 8px 0 4px; font-size: 30px; }
.result-tags { display: flex; gap: 8px; justify-content: center; margin: 12px 0 18px; }
.result-card .explain-card { text-align: left; margin-top: 12px; }

/* ---------- 菜园页 ---------- */
.garden-bar { display: flex; gap: 14px; font-size: 14px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.garden-bar b { color: var(--ink); font-size: 17px; }
.garden-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plot-card {
  background: #fff; border-radius: 18px; padding: 16px; text-align: center;
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.06); border-top: 4px solid #34b36f;
}
.plot-card.mature { background: #fffbe9; border-top-color: #f2b705; }
.pc-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.pc-name { font-weight: 800; color: var(--ink); }
.pc-art { font-size: 76px; line-height: 1.3; }
.pc-bar { height: 6px; background: #e3efe8; border-radius: 999px; overflow: hidden; margin: 8px 0 12px; }
.pc-bar i { display: block; height: 100%; background: #34b36f; }
.plot-card.mature .pc-art { animation: bob 1.4s ease-in-out infinite; }
.howto { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }

/* ---------- 自适应 ---------- */
@media (max-width: 1120px) {
  .main-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; }
  .side { order: 2; }
  .center { order: 1; }
  .topnav { grid-template-columns: 1fr; gap: 10px; }
  .tn-right { display: none; }
}
@media (max-width: 700px) {
  .subject-grid { grid-template-columns: 1fr; }
  .plots { grid-template-columns: repeat(2, 1fr); }
  .garden-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * v2 三栏（无表头）：左表彰 / 中学科 / 右奖励
 * ============================================================ */
.stage3 {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  padding-top: 18px;
}

/* ---------- 左：表彰成绩（夸张） ---------- */
.col-praise {
  background: linear-gradient(165deg, #241d58 0%, #3b2f86 55%, #4a3a9e 100%);
  color: #fff;
  border-radius: 26px;
  padding: 20px 18px 18px;
  box-shadow: 0 18px 40px rgba(36, 29, 88, 0.28);
  position: sticky;
  top: 16px;
}
.who-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.avatar.small { width: 42px; height: 42px; font-size: 22px; }
.who-name { font-size: 16px; font-weight: 800; }
.who-sub { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.who-pts { margin-left: auto; font-size: 12px; color: #ffe08a; }
.who-pts b { font-size: 17px; }

.praise-hero {
  position: relative;
  text-align: center;
  padding: 6px 0 12px;
}
.praise-hero::before {
  content: "";
  position: absolute;
  inset: -10px 10% auto;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(255, 213, 102, 0.35), transparent 70%);
  pointer-events: none;
}
.ph-crown { font-size: 30px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(255, 200, 60, 0.5)); }
.ph-num {
  font-size: 92px; font-weight: 900; line-height: 0.95; letter-spacing: -2px;
  background: linear-gradient(180deg, #fff3c4, #ffcc4d 45%, #f0a500);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(255, 190, 40, 0.45));
}
.ph-num span { font-size: 40px; }
.ph-label { font-size: 13px; color: rgba(255, 255, 255, 0.82); margin-top: 2px; font-weight: 700; }
.ph-stars { font-size: 17px; letter-spacing: 2px; margin-top: 8px; }
.ph-hint { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin: 8px 0 0; }

.praise-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 10px 6px; margin: 6px 0 14px;
}
.praise-stats div { text-align: center; }
.praise-stats b { display: block; font-size: 22px; color: #fff; }
.praise-stats span { font-size: 10.5px; color: rgba(255, 255, 255, 0.6); }

.medal-wall { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 14px; }
.medal {
  flex: 1; text-align: center; font-size: 20px; padding: 8px 0;
  border-radius: 12px; background: rgba(255, 255, 255, 0.06);
  filter: grayscale(1); opacity: 0.45;
}
.medal.on { filter: none; opacity: 1; background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 1px rgba(255, 213, 102, 0.45) inset; }
.medal em { display: block; font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.8); margin-top: 2px; }

.praise-feed { border-top: 1px dashed rgba(255, 255, 255, 0.16); padding-top: 12px; }
.pf-title { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; font-weight: 700; }
.pf-item {
  font-size: 12.5px; line-height: 1.5; color: #ffe9b0;
  background: rgba(255, 255, 255, 0.07); border-radius: 10px;
  padding: 7px 10px; margin-bottom: 6px;
}

/* ---------- 中：学科（最大） ---------- */
.col-subject { min-width: 0; }
.subj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.subj-head h2 { margin: 0; font-size: 24px; }
.subj-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.subj-tools { display: flex; gap: 6px; }
.tool {
  border: 0; background: #fff; color: var(--ink); border-radius: 11px;
  padding: 8px 11px; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(31, 42, 68, 0.07);
  font-variant-numeric: tabular-nums;
}
.tool.timer.on { background: var(--blue); color: #fff; }

.subject-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.subject-card.big { padding: 20px; gap: 12px; border-radius: 20px; }
.subject-card.big .sc-icon { width: 54px; height: 54px; font-size: 26px; border-radius: 14px; }
.subject-card.big .sc-name { font-size: 24px; }
.sc-go { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.subject-card.big .sc-desc { font-size: 13px; }
.subject-card.big .sc-progress .hbar { height: 8px; }

.ach-mini { margin-top: 16px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05); }
.am-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.am-title span { color: var(--muted); font-weight: 600; }
.am-list { display: flex; flex-wrap: wrap; gap: 6px; }
.am-chip { font-size: 11.5px; background: #f2f5fb; color: var(--muted); border-radius: 999px; padding: 4px 10px; }
.am-chip.got { background: #eefaf3; color: #1c7a45; }

/* ---------- 右：奖励 / 菜园 ---------- */
.col-reward {
  background: linear-gradient(170deg, #effbf3, #e6f8ee);
  border: 1px solid #d3efdd;
  border-radius: 24px;
  padding: 16px;
  position: sticky;
  top: 16px;
}
.rwd-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 800; }
.rwd-water { font-size: 13px; color: #2f7a52; }
.rwd-water b { font-size: 20px; }

.water-rule { background: #fff; border-radius: 14px; padding: 12px; margin: 12px 0; }
.wr-title { font-size: 12px; font-weight: 800; color: #2f7a52; margin-bottom: 6px; }
.wr-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; }
.wr-note { font-size: 10.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.plots.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.plots.mini .plot { padding: 8px 4px; border-radius: 12px; }
.plots.mini .plot-icon { font-size: 26px; }

.gift-row { margin-top: 12px; }
.gift-title { font-size: 11.5px; color: #4b7a61; font-weight: 700; }
.gift-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.gift-chip { font-size: 10.5px; background: #fff; border-radius: 999px; padding: 3px 8px; color: #3f6b52; }

.gift-list { display: grid; gap: 10px; margin: 6px 0 12px; }
.gift-btn {
  border: 0; background: #f2f8f4; border-radius: 14px; padding: 14px;
  font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; color: var(--ink);
}
.gift-btn .ge { font-size: 26px; margin-right: 10px; }

@media (max-width: 1150px) {
  .stage3 { grid-template-columns: 1fr; }
  .col-praise { position: static; order: 2; }
  .col-subject { order: 1; }
  .col-reward { position: static; order: 3; }
}
@media (max-width: 720px) {
  .subject-stack { grid-template-columns: 1fr; }
  .plots.mini { grid-template-columns: repeat(2, 1fr); }
  .ph-num { font-size: 74px; }
}

/* ============================================================
 * v3 三区域：无小字 / 荣誉墙+成就 / 种菜游戏
 * ============================================================ */
.stage3 { padding-top: 16px; }

/* ---------- 左：成就列表 ---------- */
.ach-box {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ach-box-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}
.ach-box-head em { font-style: normal; color: #ffe08a; }
.ach-rows { max-height: 300px; overflow: auto; padding-right: 2px; }
.ach-line {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 4px; border-radius: 8px;
  font-size: 10.5px; color: rgba(255, 255, 255, 0.55);
}
.ach-line.got { color: #ffe9b0; background: rgba(255, 255, 255, 0.07); }
.al-icon { font-size: 11px; }
.al-name { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-bar { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; overflow: hidden; min-width: 18px; }
.al-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd75e, #ffb703); }
.al-coin { font-style: normal; color: #ffd75e; font-size: 9.5px; white-space: nowrap; }

/* ---------- 中：学科（无说明） ---------- */
.subject-card.big { min-height: 148px; justify-content: space-between; }
.subject-card.big .sc-desc { display: none; }
.subject-card.big .sc-top { align-items: center; }
.sc-num { font-size: 11px; color: var(--muted); }
.subject-card.big .sc-progress { display: flex; align-items: center; gap: 8px; }
.subject-card.big .sc-progress .hbar { flex: 1; }

/* ---------- 右：种菜游戏 ---------- */
.farm {
  position: relative;
  background: linear-gradient(180deg, #cdeedd 0%, #9fdcb5 55%, #85cf9e 100%);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(46, 120, 78, 0.18);
  overflow: hidden;
}
.farm::before {
  content: "";
  position: absolute; inset: auto -20% -30% -20%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.35), transparent 70%);
  pointer-events: none;
}
.farm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; z-index: 1; }
.farm-name { font-size: 14px; font-weight: 800; color: #1f5c3a; }
.farm-water { font-size: 12px; color: #1f5c3a; background: rgba(255,255,255,.55); border-radius: 999px; padding: 3px 9px; }
.farm-water b { font-size: 15px; }

.field {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  position: relative; z-index: 1;
}
.soil {
  position: relative; border: 0; cursor: pointer;
  height: 104px; border-radius: 16px;
  background: radial-gradient(circle at 50% 120%, #7b5132 0%, #59391f 70%);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.22), inset 0 4px 10px rgba(0, 0, 0, 0.18);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: visible;
}
.soil .plant {
  font-size: 48px; line-height: 1;
  transform: translateY(-10px);
  animation: growPop 0.45s cubic-bezier(.2,1.4,.5,1);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25));
}
.soil.st0 .plant, .soil.st1 .plant { font-size: 34px; }
.soil.st2 .plant { font-size: 40px; }
.soil.ripe {
  box-shadow: inset 0 0 0 3px #ffd75e, 0 0 22px rgba(255, 215, 90, 0.75);
  animation: ripeGlow 1.3s ease-in-out infinite;
}
.ripe-tag {
  position: absolute; top: -8px; right: -6px;
  background: #ffd75e; color: #6b4400;
  font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 2px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.drop {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  font-size: 20px; animation: dropFall 0.42s ease-in forwards; pointer-events: none;
}
.soil.pouring { filter: brightness(1.06); }

@keyframes growPop {
  0% { transform: translateY(-10px) scale(0.55); opacity: 0.6; }
  70% { transform: translateY(-10px) scale(1.12); }
  100% { transform: translateY(-10px) scale(1); }
}
@keyframes dropFall {
  0% { top: -10px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 56px; opacity: 0; }
}
@keyframes ripeGlow {
  0%, 100% { box-shadow: inset 0 0 0 3px #ffd75e, 0 0 16px rgba(255, 215, 90, 0.55); }
  50% { box-shadow: inset 0 0 0 3px #fff0a8, 0 0 26px rgba(255, 215, 90, 0.9); }
}

.farm-gifts {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 10px; font-size: 20px; opacity: 0.9;
  position: relative; z-index: 1;
}
.farm-history {
  margin-top: 10px; width: 100%;
  border: 0; background: rgba(255, 255, 255, 0.75);
  color: #1f5c3a; font-size: 12px; font-weight: 700;
  border-radius: 12px; padding: 9px; cursor: pointer;
}

@media (max-width: 720px) {
  .field { grid-template-columns: repeat(2, 1fr); }
  .soil { height: 90px; }
}

/* ---------- v3 微调：学科卡单列撑满、成就行放大、田块可点提示 ---------- */
.col-subject { display: flex; flex-direction: column; }
.subject-stack {
  grid-template-columns: 1fr;
  flex: 1;
  align-content: start;
  gap: 14px;
}
.subject-card.big { min-height: 190px; }
.subject-card.big .sc-name { font-size: 26px; }
.subject-card.big .sc-icon { width: 58px; height: 58px; font-size: 28px; }
.subject-card.big .sc-progress { margin-top: 6px; }

.ach-rows { max-height: 330px; }
.ach-line { font-size: 11.5px; padding: 6.5px 4px; }
.al-coin { font-size: 10px; }

.soil::after {
  content: "💧";
  position: absolute; right: 7px; bottom: 5px;
  font-size: 12px; opacity: 0.6;
}
.soil.ripe::after { content: ""; }

@media (max-width: 720px) {
  .subject-card.big { min-height: 150px; }
}

/* ---------- v4：错题集 / 课纲预习 / AI 讲解 ---------- */
.outline-card { border-top: 5px solid var(--c, var(--blue)); }
.oc-head { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.oc-list { margin: 0; padding-left: 22px; font-size: 16.5px; line-height: 2.05; }
.oc-list li::marker { color: var(--c, var(--blue)); font-weight: 800; }

.ai-answer { margin-top: 12px; background: #f5f1ff; border-radius: 14px; padding: 12px 14px; text-align: left; }
.ai-seg { margin-bottom: 8px; }
.ai-seg:last-child { margin-bottom: 0; }
.ai-seg b { font-size: 12px; color: #5b3f8c; }
.ai-seg p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ink); }

.mistake-box {
  margin-top: 14px; background: #fff; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05);
}
.mb-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 800; }
.mb-head em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.mb-subjects { display: flex; gap: 10px; margin-top: 10px; }
.mb-sub {
  flex: 1; border: 0; background: #f7f9fe; border-radius: 14px; padding: 10px 6px;
  cursor: pointer; text-align: center; border-top: 3px solid var(--c);
}
.mb-sub:active { background: #eef2fc; }
.mbs-name { display: block; font-size: 12.5px; color: var(--muted); }
.mb-sub b { font-size: 24px; line-height: 1.2; }

.subj-mistakes { margin-bottom: 18px; }
.sm-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin: 12px 0 8px; }
.sm-icon {
  width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: #fff;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.sm-head em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sm-empty { font-size: 12.5px; color: var(--muted); padding: 4px 2px 8px; }

/* ============================================================
 * v5 整齐化：统一宽度 / 等高 / 固定卡片高度
 * ============================================================ */
.app.narrow { max-width: 940px; }

/* 三栏等高 */
.stage3 { align-items: stretch; min-height: calc(100vh - 132px); }
.col-praise, .col-reward { display: flex; flex-direction: column; height: 100%; }
.col-praise .ach-box { flex: 1; min-height: 0; }
.col-praise .ach-rows { flex: 1; max-height: none; }
.col-subject { height: 100%; }
.col-subject .subject-stack { flex: 1; }
.col-subject .mistake-box { margin-top: auto; }

/* 学习卡统一高度，翻页不跳 */
.learn-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.learn-card .lc-emoji { margin: 0 auto; }

/* 菜园 4 块地等高 */
.garden-grid { align-items: stretch; }
.plot-card { display: flex; flex-direction: column; }
.pc-art { height: 104px; display: flex; align-items: center; justify-content: center; }
.pc-actions { margin-top: auto; }
.pc-bar { margin: 8px 0 14px; }

/* 列表条目统一高度、标题单行 */
.list-item { min-height: 74px; }
.list-item .li-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subj-mistakes .sm-head { min-height: 34px; }

/* 内页卡片与页头间距统一 */
.page-head { padding: 12px 0 10px; min-height: 58px; }
.page-head h2 { line-height: 1.3; }

/* 首页右栏内容分布更均匀 */
.col-reward .farm { flex: 0 0 auto; }
.col-reward .farm-history { margin-top: auto; }

/* 预习目标卡与按钮对齐 */
.outline-card { margin-top: 4px; }
.outline-card .oc-list { margin-bottom: 4px; }

@media (max-width: 1150px) {
  .stage3 { min-height: auto; }
  .learn-card { min-height: 380px; }
}

/* ============================================================
 * v6 分层：目录 → 子项 → 内容
 * ============================================================ */
.catalog { display: grid; gap: 10px; margin-top: 12px; }
.cat-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 0; background: #fff; border-radius: 16px; padding: 16px 18px;
  cursor: pointer; box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05);
}
.cat-item:active { background: #f7f9fe; }
.ci-icon { font-size: 26px; width: 34px; text-align: center; }
.ci-main { flex: 1; min-width: 0; }
.ci-main b { display: block; font-size: 17px; }
.ci-main em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ci-num {
  font-size: 13px; color: var(--muted); background: #f2f5fb;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.ci-go { font-size: 22px; color: var(--muted); }

.word-list, .sent-list { display: grid; gap: 10px; }
.word-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(31, 42, 68, 0.05);
}
.word-row:active { background: #f7f9fe; }
.wr-emoji { font-size: 28px; width: 40px; text-align: center; }
.wr-main { flex: 1; min-width: 0; }
.wr-main b { display: block; font-size: 20px; }
.wr-main em { font-style: normal; font-size: 13px; color: var(--muted); }
.wr-spk { font-size: 20px; opacity: 0.55; }

.sent-card { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05); }
.sc-en { font-size: 22px; font-weight: 800; line-height: 1.4; }
.sc-zh { font-size: 15px; color: var(--muted); margin-top: 4px; }

.unit-card.todo { opacity: 0.55; background: #f4f6fb; }
.uc-badge.off { background: #c9d2e3 !important; }
.outline-card + .catalog { margin-top: 14px; }

/* ============================================================
 * v8 听写 / 作文 / 阅读 / 练习卷 / 专项入口
 * ============================================================ */
.tool-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; background: #fff; border-radius: 16px; padding: 14px 18px;
  cursor: pointer; box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05); text-align: left;
  margin-top: 10px;
}
.tool-card:active { background: #f7f9fe; }
.tc-icon { font-size: 24px; }
.tc-main { flex: 1; min-width: 0; }
.tc-main b { display: block; font-size: 16px; }
.tc-main em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.unit-tools { margin-top: 14px; }

.special-entry {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border: 0; border-radius: 18px; padding: 18px 20px; cursor: pointer;
  background: linear-gradient(135deg, #fff, #f2f7ff);
  box-shadow: 0 4px 14px rgba(31, 42, 68, 0.06);
  border-left: 5px solid var(--c, var(--blue));
  text-align: left; margin-bottom: 14px;
}
.se-icon { font-size: 30px; }
.se-main { flex: 1; }
.se-main b { display: block; font-size: 18px; }
.se-main em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.se-go { font-size: 22px; color: var(--muted); }

/* 听写 */
.dict-card {
  background: #fff; border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(31, 42, 68, 0.06);
}
.dict-hint { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.dict-play {
  width: 100%; border: 0; border-radius: 14px; padding: 14px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 18px; font-weight: 800; cursor: pointer;
}
.dict-pad {
  width: 100%; height: 220px; margin-top: 12px;
  background: #fbfcff; border: 2px dashed #c9d6f0; border-radius: 14px;
  touch-action: none; cursor: crosshair;
}
.dict-tools { display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end; }

/* 作文 */
.comp-title { font-size: 22px; font-weight: 800; }
.comp-prompt { font-size: 15px; line-height: 1.8; color: #333; margin: 10px 0; }
.comp-tips { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.comp-sample { margin-top: 12px; }
.comp-sample summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue-dark); }
.comp-sample p { font-size: 15px; line-height: 1.9; background: var(--yellow-soft); border-radius: 12px; padding: 12px; margin: 8px 0 0; }
.comp-input {
  width: 100%; min-height: 160px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px; font-size: 15px; line-height: 1.8; font-family: inherit; resize: vertical;
}
.grade-card { margin-top: 14px; background: #f7fbff; border-radius: 14px; padding: 14px; }
.grade-score { font-size: 34px; font-weight: 900; color: var(--blue-dark); }
.grade-score span { font-size: 14px; margin-left: 2px; }
.grade-seg { margin-top: 10px; }
.grade-seg b { font-size: 12px; color: var(--blue-dark); }
.grade-seg p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.75; }

/* 阅读 */
.read-passage {
  font-size: 15.5px; line-height: 2; color: #222;
  background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05);
}
.read-q { margin-bottom: 12px; }
.read-q .opt { font-size: 16px; }

/* 练习卷 */
.paper-list { display: grid; gap: 10px; }
.paper-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 3px 10px rgba(31, 42, 68, 0.05);
}
.paper-card.done { background: #f3fcf7; }
.pc-no { font-size: 15px; font-weight: 800; width: 70px; }
.pc-info { flex: 1; }
.pc-info b { display: block; font-size: 15px; }
.pc-info em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============================================================
 * v9 知识点深度精讲卡 / 当堂小测 / 举一反三变式 / 知识点标签
 * ============================================================ */
.kp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-tag {
  background: #f2f5fb; color: var(--ink); font-size: 13px;
  border-radius: 999px; padding: 5px 12px; font-weight: 600;
}
.kp-tag.done { background: var(--green-soft); color: #176d3d; }

.learn-card.rich {
  text-align: left;
  justify-content: flex-start;
  gap: 12px;
  padding: 22px 24px;
}
.kp-card-head {
  display: flex; justify-content: space-between; align-items: center;
}
.kp-badge {
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 4px 12px;
}
.kp-title-row {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.kp-emoji { font-size: 46px; line-height: 1; flex: 0 0 auto; }
.kp-sub { font-size: 14px; color: var(--muted); margin-top: 3px; }

.kp-sec-tag {
  font-size: 12.5px; font-weight: 800; margin-bottom: 6px;
  color: var(--blue-dark); letter-spacing: 0.3px;
}
.kp-section {
  background: #f8faff; border-radius: 14px; padding: 14px 16px;
  border-left: 4px solid var(--c, var(--blue));
}
.kp-section .lc-rule-text { margin-top: 0; font-size: 16px; line-height: 1.85; }

.kp-formula {
  background: #eef6ff; border: 1px solid #cfe2ff;
  border-radius: 14px; padding: 12px 16px;
  font-size: 15.5px; line-height: 1.75; color: #173f7a; font-weight: 600;
}
.kp-formula .kp-sec-tag { color: #173f7a; }

.kp-ex-main { font-size: 15.5px; font-weight: 700; color: #5c3d00; margin-bottom: 6px; }
.kp-steps {
  margin: 6px 0 0; padding-left: 20px;
  font-size: 14.5px; line-height: 1.8; color: #5c3d00;
}
.kp-steps li { margin-bottom: 3px; }

.kp-pitfall {
  background: #fff3f3; border: 1px solid #ffd6d6;
  border-radius: 14px; padding: 12px 16px;
  font-size: 14.5px; line-height: 1.7; color: #9c1f1f;
}
.kp-pitfall .kp-sec-tag { color: #b51d1d; }

.kp-check {
  background: #f6faf7; border: 1.5px solid #cdebd6;
  border-radius: 16px; padding: 14px 16px; margin-top: 4px;
}
.kp-check .kp-sec-tag { color: #1c7a45; }
.kp-check-q { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.kp-check .opt { min-height: 50px; padding: 11px 14px; font-size: 16px; }
.kp-check-res {
  margin-top: 10px; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.6;
}
.kp-check-res.ok { background: var(--green-soft); color: #155e34; }
.kp-check-res.bad { background: var(--red-soft); color: #9c1f1f; }
.kp-check-res p { margin: 4px 0 0; }

/* 单词表增强 */
.wr-ph { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 6px; }
.wr-tip { display: block; font-size: 12.5px; color: #8a5b00; margin-top: 4px; }
.wr-sample { display: block; font-size: 12.5px; color: var(--blue-dark); margin-top: 2px; }
.lc-step-box {
  margin-top: 8px; background: #eef6ff; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: #1f4fc4; line-height: 1.6;
}

/* 结果页举一反三互动 */
.var-box {
  margin-top: 14px; background: #f8faff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
}
.var-title { font-size: 13px; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.var-item { padding: 8px 0; border-top: 1px dashed var(--line); }
.var-item:first-of-type { border-top: 0; padding-top: 0; }
.var-q { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.var-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.var-opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.var-opt.correct { border-color: var(--green); background: var(--green-soft); color: #155e34; }
.var-opt.wrong { border-color: var(--red); background: var(--red-soft); color: #9c1f1f; }
