/* ============================================================
 * 单词小勇士 · 儿童英语背单词 H5
 * 明快暖色系 + 大圆角贴纸卡片 + Q 弹动效
 * ============================================================ */

@import url("https://fonts.googleapis.cn/css2?family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@400;500;700&family=Fredoka:wght@500;600;700&display=swap");

:root {
  --cream: #fff9ec;
  --sun: #ffc93c;
  --orange: #ff8a3d;
  --sky: #4da6ff;
  --mint: #35c787;
  --berry: #ff6b81;
  --purple: #9b6bff;
  --ink: #3d3550;
  --ink-soft: #7a7290;
  --card: #ffffff;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 8px 24px rgba(61, 53, 80, 0.1);
  --shadow-pop: 0 12px 32px rgba(255, 138, 61, 0.35);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 201, 60, 0.35), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(77, 166, 255, 0.28), transparent 40%),
    radial-gradient(circle at 80% 88%, rgba(155, 107, 255, 0.18), transparent 42%),
    radial-gradient(circle at 18% 85%, rgba(53, 199, 135, 0.2), transparent 40%),
    var(--cream);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.6;
}

/* 背景漂浮装饰 */
body::before, body::after {
  content: "☁️";
  position: fixed;
  font-size: 64px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}
body::before { top: 8%; left: 4%; }
body::after { top: 22%; right: 5%; animation-delay: 2.5s; font-size: 48px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 16px 48px;
}

.screen {
  animation: screenIn 0.4s var(--bounce);
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 14px;
}
.topbar--sub { padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo {
  font-size: 34px;
  filter: drop-shadow(0 3px 4px rgba(255, 138, 61, 0.3));
  animation: peek 3s ease-in-out infinite;
}
@keyframes peek {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(6deg); }
}
.brand-name {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 1px;
}
.top-actions { display: flex; gap: 8px; }
.topbar-title { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 22px; }
.icon-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.15s var(--bounce);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { transform: scale(0.9); }
.icon-btn--ghost { background: transparent; box-shadow: none; }

/* ---------------- 卡片 ---------------- */
.card, .hero-card, .celebrate-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  margin-bottom: 18px;
}
.hero-card {
  background: linear-gradient(160deg, #eaf6ff 0%, #fff7e0 70%);
  text-align: center;
  padding-top: 28px;
}
.hero-emoji { font-size: 68px; animation: floaty 3s ease-in-out infinite; }
.hero-title {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 30px;
  margin: 8px 0 6px;
  color: var(--ink);
}
.hero-title-sub { font-size: 18px; color: var(--ink-soft); }
.hero-text { color: var(--ink-soft); margin: 0 0 18px; font-size: 17px; }
.hero-chip {
  display: inline-block;
  background: rgba(77, 166, 255, 0.14);
  color: var(--sky);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.hero-banner {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 10px 0 16px;
  font-size: 18px;
  font-weight: 700;
}
.hero-banner b { font-size: 22px; color: var(--orange); }
.hero-banner--today { background: #fff2d9; color: #b25e00; }
.hero-banner--done { background: #e2f8ee; color: #128a56; }
.hero-banner--future { background: #ece8ff; color: #5c3fc4; }

.card-title {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 22px;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.card-title__tag {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  background: var(--sun);
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
}

/* ---------------- 按钮 ---------------- */
.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 19px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 6px 0 #e0702a, var(--shadow-pop);
  transition: transform 0.12s var(--bounce), box-shadow 0.12s;
}
.btn:active { transform: translateY(4px) scale(0.98); box-shadow: 0 2px 0 #e0702a; }
.btn--primary { background: linear-gradient(135deg, var(--orange), var(--sun)); box-shadow: 0 6px 0 #dd8a1f, 0 12px 28px rgba(255, 166, 60, 0.4); }
.btn--primary:active { box-shadow: 0 2px 0 #dd8a1f; }
.btn--orange { background: var(--orange); box-shadow: 0 5px 0 #d66f29; }
.btn--soft {
  background: #f2efff;
  color: var(--purple);
  box-shadow: 0 4px 0 #ddd6f5;
}
.btn--soft:active { box-shadow: 0 1px 0 #ddd6f5; }
.btn--danger { background: var(--berry); box-shadow: 0 5px 0 #d84f64; }
.btn--danger-ghost {
  background: #fff0f3;
  color: var(--berry);
  box-shadow: none;
  font-size: 16px;
  padding: 10px 18px;
}
.btn--danger-ghost:active { transform: scale(0.96); }
.btn--huge { width: 100%; padding: 17px; font-size: 22px; margin-top: 4px; }
.btn--block { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.mini-btn {
  border: none;
  background: #f3f0ff;
  border-radius: 10px;
  font-size: 16px;
  padding: 6px 9px;
  cursor: pointer;
  transition: transform 0.12s var(--bounce);
}
.mini-btn:active { transform: scale(0.88); }
.mini-btn--danger { background: #ffe9ee; }

/* ---------------- 进度 ---------------- */
.plan-progress { margin: 6px 0 14px; }
.plan-progress__bar {
  height: 16px;
  background: #eee8f7;
  border-radius: 999px;
  overflow: hidden;
}
.plan-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), #7be0b0);
  transition: width 0.6s var(--bounce);
}
.plan-progress__text { font-size: 14px; color: var(--ink-soft); margin-top: 6px; font-weight: 700; }

.study-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 14px;
}
.study-progress { flex: 1; display: flex; align-items: center; gap: 10px; }
.study-progress__bar {
  flex: 1;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: inset 0 2px 5px rgba(61, 53, 80, 0.08);
  overflow: hidden;
}
.study-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--sun));
  transition: width 0.5s var(--bounce);
}
.study-progress__num { font-weight: 700; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }

/* ---------------- 日期选择 ---------------- */
.day-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 2px;
  margin-top: 14px;
  scrollbar-width: none;
}
.day-chips::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto;
  border: 3px solid transparent;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.15s var(--bounce);
  font-family: inherit;
}
.day-chip:active { transform: scale(0.93); }
.day-chip--active { border-color: var(--orange); background: #fff6ea; }
.day-chip--done .day-chip__icon { filter: none; }
.day-chip__icon { font-size: 20px; display: block; }
.day-chip__num { display: block; font-weight: 700; font-size: 15px; }
.day-chip__count { display: block; font-size: 12px; color: var(--ink-soft); }

/* ---------------- 单词贴纸 ---------------- */
.word-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.word-chip {
  position: relative;
  background: #fffdf5;
  border: 2px dashed #ffe1a8;
  border-radius: var(--radius-md);
  padding: 14px 10px 10px;
  text-align: center;
}
.word-chip__speak {
  position: absolute;
  top: 8px; right: 8px;
  border: none;
  background: #e7f3ff;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.12s var(--bounce);
}
.word-chip__speak:active { transform: scale(0.85); }
.word-chip__en {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--sky);
  word-break: break-word;
}
.word-chip__cn { font-size: 15px; color: var(--ink); font-weight: 500; margin-top: 2px; }
.word-chip__dots { margin-top: 8px; display: flex; justify-content: center; gap: 5px; }

.dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.dot--on { background: var(--mint); color: #fff; box-shadow: 0 2px 6px rgba(53, 199, 135, 0.4); }
.dot--mid { background: var(--sun); color: #fff; }
.dot--off { background: #ece8f5; color: #cfc8e0; }
.dim-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 12px;
  font-size: 13px; color: var(--ink-soft);
}
.dim-legend span { display: inline-flex; align-items: center; gap: 3px; }

/* ---------------- 统计 / 徽章 ---------------- */
.stats-card { display: flex; gap: 10px; }
.stats-card--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box {
  flex: 1;
  text-align: center;
  background: #fbf9ff;
  border-radius: var(--radius-md);
  padding: 12px 6px;
}
.stat-box__num { font-family: "Fredoka", "ZCOOL KuaiLe", sans-serif; font-size: 22px; font-weight: 700; color: var(--orange); }
.stat-box__label { font-size: 13px; color: var(--ink-soft); }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge-item {
  text-align: center;
  padding: 12px 6px;
  border-radius: var(--radius-md);
}
.badge-item--got { background: linear-gradient(160deg, #fff4d6, #ffe9f0); }
.badge-item--locked { background: #f4f2f8; opacity: 0.75; }
.badge-item__icon { font-size: 34px; }
.badge-item--locked .badge-item__icon { filter: grayscale(1); opacity: 0.6; }
.badge-item__name { font-size: 13px; font-weight: 700; margin-top: 4px; }
.badge-item--pop { animation: badgePop 0.5s var(--bounce); }
@keyframes badgePop {
  0% { transform: scale(0.3); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ---------------- 练习页 ---------------- */
.question-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 18px 24px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
.question-card.card--wrong { animation: shake 0.42s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.q-type {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  background: #ece8ff;
  color: var(--purple);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 8px 18px;
}
.q-type__icon { font-size: 20px; }
.q-type__extra {
  background: var(--berry);
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
}

.speak-big {
  align-self: center;
  margin: 22px auto 10px;
  border: none;
  background: radial-gradient(circle at 35% 30%, #8ec9ff, var(--sky));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 50%;
  width: 130px; height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(77, 166, 255, 0.45), inset 0 -6px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.15s var(--bounce);
}
.speak-big:active { transform: scale(0.92); }
.speak-big__icon { font-size: 42px; line-height: 1; }
.speak-big--small { width: 92px; height: 92px; font-size: 15px; margin: 14px auto; }
.speak-big--small .speak-big__icon { font-size: 30px; }

.word-display {
  text-align: center;
  font-weight: 700;
  margin: 10px 0 4px;
  word-break: break-word;
}
.word-display--en {
  font-family: "Fredoka", sans-serif;
  font-size: 46px;
  color: var(--ink);
  letter-spacing: 1px;
}
.word-display--cn { font-size: 38px; font-family: "ZCOOL KuaiLe", sans-serif; color: var(--ink); }
.word-phonetic {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  margin-bottom: 8px;
}
.word-mystery {
  text-align: center;
  font-size: 44px;
  letter-spacing: 8px;
  margin: 18px 0;
  color: var(--sky);
}
.q-hint { text-align: center; color: var(--ink-soft); font-size: 16px; margin: 8px 0 14px; }

/* 选项 */
.options { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.options--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.option {
  border: 3px solid #ece8f7;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 10px;
  font-size: 21px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  min-height: 64px;
  box-shadow: 0 4px 0 #e6e0f2;
  transition: transform 0.14s var(--bounce), border-color 0.14s, background 0.14s;
}
.option:not(:disabled):hover { transform: translateY(-3px); }
.option:not(:disabled):active { transform: scale(0.95); }
.option--correct {
  border-color: var(--mint);
  background: #e3f9ef;
  color: #0e8a55;
  animation: correctPop 0.45s var(--bounce);
}
.option--wrong {
  border-color: var(--berry);
  background: #ffedf0;
  color: #d94d66;
  animation: shake 0.42s ease;
}
@keyframes correctPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.option:disabled { cursor: default; }

/* 拼写题 */
.spell-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 6px;
}
.spell-letter {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--ink);
  width: 34px;
  text-align: center;
}
.spell-slot {
  width: 40px; height: 52px;
  border: none;
  border-bottom: 5px dotted var(--orange);
  border-radius: 8px 8px 4px 4px;
  background: #fff6ea;
  font-family: "Fredoka", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  transition: transform 0.12s var(--bounce), background 0.12s;
}
.spell-slot--filled { background: #ffe8c7; animation: correctPop 0.3s var(--bounce); }
.spell-slot--done { border-bottom-color: var(--mint); background: #e3f9ef; color: #0e8a55; }
.spell-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 4px;
}
.spell-chip {
  width: 52px; height: 52px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #b78dff, var(--purple));
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #7c4fd1;
  transition: transform 0.12s var(--bounce);
}
.spell-chip:active { transform: translateY(3px) scale(0.95); box-shadow: 0 1px 0 #7c4fd1; }
.spell-chip--used { opacity: 0; pointer-events: none; }
.spell-chip--lock { pointer-events: none; }

/* 跟读自评 */
.speak-actions { display: flex; gap: 12px; margin-top: 20px; }
.speak-actions .btn { flex: 1; font-size: 18px; padding: 16px 10px; }

/* 反馈区 */
.feedback {
  margin-top: 20px;
  border-radius: var(--radius-md);
  padding: 18px;
}
.feedback--correct { background: #e3f9ef; border: 2px solid #b4ecd2; }
.feedback--wrong { background: #ffedf0; border: 2px solid #ffc8d2; }
.feedback__title {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 12px;
}
.feedback--correct .feedback__title { color: #0e8a55; }
.feedback--wrong .feedback__title { color: #d94d66; }
.pop-in { animation: popIn 0.4s var(--bounce); }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.answer-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.answer-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.answer-card__head b { font-family: "Fredoka", sans-serif; font-size: 26px; color: var(--sky); }
.answer-card__cn { font-size: 19px; font-weight: 700; margin-top: 4px; }
.answer-card__ex {
  margin-top: 8px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 16px;
}
.answer-card__ex span { display: block; font-style: normal; font-size: 14px; }

/* ---------------- 结算页 ---------------- */
.celebrate-card { text-align: center; }
.stars-row { display: flex; justify-content: center; gap: 16px; margin: 10px 0 4px; }
.big-star {
  font-size: 56px;
  display: inline-block;
}
.big-star--lit { animation: starJump 0.6s var(--bounce) both; filter: drop-shadow(0 4px 10px rgba(255, 201, 60, 0.7)); }
.big-star--dim { filter: grayscale(1); opacity: 0.35; }
@keyframes starJump {
  0% { transform: scale(0) translateY(20px); }
  60% { transform: scale(1.35) translateY(-8px); }
  100% { transform: scale(1) translateY(0); }
}
.celebrate-title { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 30px; margin: 10px 0 18px; }
.result-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.new-badges {
  background: linear-gradient(160deg, #fff4d6, #ffe9f0);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.new-badges__title { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 20px; margin-bottom: 10px; }
.weak-box {
  background: #fff7ea;
  border: 2px dashed #ffd98e;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 14px;
}
.weak-box__title { font-weight: 700; margin-bottom: 10px; }
.weak-words { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.weak-word {
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.weak-word em { font-style: normal; font-family: "Noto Sans SC", sans-serif; color: var(--ink-soft); font-size: 14px; }
.all-good {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 22px;
  color: var(--mint);
  background: #e3f9ef;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
}
.all-good--big { font-size: 24px; }
.result-actions { display: flex; gap: 10px; }
.result-actions .btn { flex: 1; font-size: 17px; padding: 14px 10px; }

/* ---------------- 家长管理 ---------------- */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-card);
}
.tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 10px 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.12s var(--bounce);
}
.tab:active { transform: scale(0.95); }
.tab--active { background: var(--orange); color: #fff; box-shadow: 0 4px 10px rgba(255, 138, 61, 0.35); }

.form-row { display: flex; gap: 8px; }
.form-row .input { flex: 1; }
.input {
  width: 100%;
  border: 2.5px solid #e6e0f2;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfaff;
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--sky); background: #fff; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.field i { font-style: normal; color: var(--berry); }
.form-hint { font-size: 13px; color: var(--ink-soft); margin: 8px 2px 0; }

.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.accordion__title { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 20px; flex: 1; }
.accordion__meta { font-size: 13px; color: var(--ink-soft); background: #f2efff; border-radius: 999px; padding: 3px 10px; }
.accordion__arrow { font-size: 18px; color: var(--ink-soft); }
.accordion__body { margin-top: 14px; }

.word-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.word-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfaff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.word-row__main { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.word-row__en { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 19px; color: var(--sky); }
.word-row__cn { font-size: 15px; font-weight: 500; }
.word-row__ph { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.word-row__acts { display: flex; gap: 5px; flex-shrink: 0; }

.word-editor {
  background: #f5f2ff;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.word-editor__title { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 20px; margin-bottom: 12px; }
.word-editor__acts { display: flex; gap: 10px; }
.word-editor__acts .btn { flex: 1; }

.empty-tip { color: var(--ink-soft); text-align: center; padding: 10px 0; }

.plan-card {
  background: #fbfaff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.plan-card__title { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.plan-card__meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.plan-card .btn { width: 100%; margin-top: 10px; }

/* ---------------- 单元报告 ---------------- */
.report-head { text-align: center; }
.report-ring {
  width: 130px; height: 130px;
  margin: 10px auto 6px;
  border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--acc, 0) * 1%), #ece8f7 0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.report-ring__inner {
  width: 98px; height: 98px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--mint);
  box-shadow: inset 0 2px 8px rgba(61, 53, 80, 0.08);
}
.report-ring__inner span { font-size: 16px; }
.report-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.report-rows { display: flex; flex-direction: column; gap: 8px; }
.report-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfaff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.report-row__main { flex: 1; }
.report-row__word { font-size: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.report-row__word b { font-family: "Fredoka", sans-serif; font-size: 19px; color: var(--sky); }
.report-row__word span { color: var(--ink-soft); font-size: 14px; }
.report-row__dots { margin-top: 4px; display: flex; gap: 5px; }
.report-row__dots .dot { width: 17px; height: 17px; font-size: 10px; }
.tag { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag--mint { background: #d8f5e7; color: #0e8a55; }
.tag--sun { background: #ffecc2; color: #b26a00; }
.tag--gray { background: #ece8f5; color: #8d85a3; }

/* ---------------- 弹窗 / Toast / 彩带 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(61, 53, 80, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  animation: popIn 0.35s var(--bounce);
}
.modal-icon { font-size: 52px; }
.modal-card h3 { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 24px; margin: 8px 0; }
.modal-desc { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; font-size: 17px; padding: 13px 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(61, 53, 80, 0.92);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s var(--bounce);
  z-index: 200;
  pointer-events: none;
  max-width: 86vw;
  text-align: center;
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

#confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 90;
}
.confetti {
  position: absolute;
  top: -24px;
  animation-name: confettiFall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.8; }
}

/* ---------------- 响应式 ---------------- */
@media (min-width: 700px) {
  #app { max-width: 640px; padding-top: 26px; }
  .word-display--en { font-size: 52px; }
}
@media (max-width: 360px) {
  .options--grid { grid-template-columns: 1fr; }
  .word-display--en { font-size: 38px; }
  .word-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .speak-actions { flex-direction: column; }
}
