/* zilearn — 儿童识字（iPad 优先，大字号大按钮，暖色） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[v-cloak] { display: none; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #fff7e8 0%, #ffe9d6 50%, #e3f2fd 100%);
  color: #4a3728; min-height: 100vh;
}
#app { max-width: 760px; margin: 0 auto; padding: 16px; }

/* ---------- 登录 ---------- */
.login-wrap { display: flex; min-height: 90vh; align-items: center; justify-content: center; }
.login-card { background: #fff; border-radius: 28px; padding: 40px 32px; width: min(90vw, 380px);
  box-shadow: 0 12px 40px rgba(200,120,60,.15); text-align: center; }
.logo { font-size: 42px; font-weight: 800; letter-spacing: 4px; }
.sub { color: #9b8977; margin: 8px 0 20px; }
input { width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid #f0e0cc;
  font-size: 18px; margin: 8px 0; background: #fffbf5; }
input:focus { outline: none; border-color: #ffb74d; }
.err { color: #e53935; font-size: 14px; margin: 4px 0; }

/* ---------- 按钮 ---------- */
.btn { border: none; border-radius: 18px; padding: 14px 28px; font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, #ffb74d, #ff9800); color: #fff; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,152,0,.35); transition: transform .08s; }
.btn:active { transform: scale(.96); }
.btn.big { padding: 18px 40px; font-size: 22px; border-radius: 24px; }
.btn.ghost { background: #fff; color: #ff9800; border: 2px solid #ffe0b2; box-shadow: none; }
.btn:disabled { opacity: .4; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.04);} }

/* ---------- 向导页 ---------- */
.wizard { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 6vh; }
.wizard.wide { width: 100%; }
.wizard h2 { font-size: 26px; margin: 0; }
.field { width: min(90vw, 420px); background: #fff; border-radius: 20px; padding: 18px; }
.field label { font-weight: 700; display: block; margin-bottom: 8px; }
.hint { color: #a1887f; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { border: 2px solid #ffe0b2; background: #fff; border-radius: 999px; padding: 10px 22px;
  font-size: 18px; font-weight: 700; color: #8d6e63; }
.chip.on { background: #ff9800; color: #fff; border-color: #ff9800; }
.est { background: #e8f5e9; color: #2e7d32; padding: 12px 20px; border-radius: 16px; text-align: center; font-weight: 700; }
.est.warn { background: #fff3e0; color: #ef6c00; }

/* ---------- 年级九宫格 ---------- */
.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(90vw, 480px); }
.grade { padding: 18px 8px; border-radius: 18px; border: 2px solid #ffe0b2; background: #fff;
  font-size: 18px; font-weight: 700; color: #8d6e63; }
.grade.on { background: #ff9800; color: #fff; border-color: #ff9800; transform: scale(1.05); }

/* ---------- 摸底字格 ---------- */
.char-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; }
.char-chip { background: #fff; border: 2px solid #f5e6d3; border-radius: 16px; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; }
.char-chip b { font-size: 30px; line-height: 1.2; color: #5d4037; }
.char-chip small { color: #bcaaa4; font-size: 12px; }
.char-chip.on { background: #fff8e1; border-color: #ffb300; box-shadow: 0 0 0 3px #ffe082; }
.char-chip.on b { color: #ff8f00; }
.char-chip.small { flex-direction: row; gap: 4px; padding: 6px 10px; }
.char-chip.small b { font-size: 18px; }
.progress-bar { width: 100%; height: 10px; background: #f5e6d3; border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb74d, #ff9800);
  border-radius: 99px; transition: width .3s; }

/* ---------- 今日开始页 ---------- */
.hello { font-size: 30px; font-weight: 800; }
.date { color: #a1887f; }
.day-card { background: #fff; border-radius: 26px; padding: 28px 36px; display: flex;
  flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(200,120,60,.12); }
.row-of-stats { display: flex; gap: 24px; font-size: 20px; font-weight: 700; }
.big-emoji { font-size: 64px; }

/* ---------- 学习会话 ---------- */
.session { display: flex; flex-direction: column; gap: 12px; padding-top: 2vh; }
.sess-top { display: flex; align-items: center; gap: 12px; }
.home { border: none; background: #ffffffaa; border-radius: 12px; font-size: 22px; padding: 6px 12px; }
.sess-label { flex: 1; font-weight: 800; color: #ff9800; font-size: 18px; }
.sess-progress { font-weight: 700; color: #8d6e63; }

.card { background: #fff; border-radius: 26px; padding: 26px 22px; display: flex;
  flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 10px 30px rgba(200,120,60,.12); }

/* 新字卡 */
.etym-badge { align-self: flex-start; background: #e3f2fd; color: #1565c0; font-size: 13px;
  font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.zi-row { display: flex; align-items: flex-start; gap: 20px; width: 100%; justify-content: center; flex-wrap: wrap; }
.zi-big { font-size: 150px; line-height: 1.05; font-weight: 900; color: #3e2723; font-family: "Kaiti SC", KaiTi, STKaiti, serif; }
.zi-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 16px; }
.pinyin { font-size: 30px; color: #1565c0; font-weight: 700; letter-spacing: 2px; }
.emoji { font-size: 44px; }
.alt-reading span { color: #8d6e63; font-size: 14px; border-bottom: 1px dashed #bcaaa4; cursor: pointer; }
.hanzi-wrap { width: 220px; height: 220px; background: #fffdf7; border: 3px dashed #ffe0b2; border-radius: 20px; position: relative; }
.etym-story { background: #fff8e1; border-radius: 16px; padding: 14px 18px; font-size: 19px;
  line-height: 1.6; color: #6d4c41; width: 100%; }
.words-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.word-chip { background: #e8f5e9; color: #2e7d32; padding: 8px 18px; border-radius: 999px;
  font-size: 20px; font-weight: 700; }
.sentence { font-size: 21px; color: #5d4037; text-align: center; }
.trace-tip { color: #8d6e63; font-size: 15px; }

/* 题卡 */
.quiz-stem { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.zi-xl { font-size: 110px; line-height: 1.1; font-weight: 900; color: #3e2723; font-family: "Kaiti SC", KaiTi, STKaiti, serif; }
.cloze-xl { font-size: 56px; font-weight: 900; color: #3e2723; letter-spacing: 4px; }
.speak, .speak-xl { border: none; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg,#42a5f5,#1e88e5);
  color: #fff; box-shadow: 0 6px 14px rgba(30,136,229,.35); }
.speak { width: 52px; height: 52px; font-size: 20px; }
.speak-xl { width: 96px; height: 96px; font-size: 38px; }
.speak:active, .speak-xl:active { transform: scale(.92); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; padding: 0 8px; }
.opt { background: #fffbf5; border: 3px solid #ffe0b2; border-radius: 20px; padding: 18px 10px;
  font-size: 26px; font-weight: 700; color: #5d4037; min-height: 84px; }
.opt.char-opt { font-size: 46px; font-family: "Kaiti SC", KaiTi, STKaiti, serif; }
.opt.good { background: #e8f5e9; border-color: #66bb6a; color: #2e7d32; }
.opt.bad { background: #ffebee; border-color: #ef5350; color: #c62828; animation: shake .3s; }
@keyframes shake { 25% {transform: translateX(-6px);} 75% {transform: translateX(6px);} }
.good-note { font-size: 26px; font-weight: 800; color: #43a047; }
.wrong-note { display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 20px; background: #fff3e0; padding: 14px 22px; border-radius: 16px; }

/* 完成页 */
.done-stats { display: flex; flex-direction: column; gap: 10px; font-size: 22px; font-weight: 700;
  background: #fff; padding: 24px 40px; border-radius: 24px; text-align: center; }
.score-xl { font-size: 56px; font-weight: 900; color: #ff9800; }
.stars-line { font-size: 28px; }
.loading { color: #bcaaa4; padding: 40px; }
.break-card { min-height: 50vh; justify-content: center; font-size: 26px; font-weight: 700; }

/* ---------- 家长页 ---------- */
.parent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.p-card { background: #fff; border-radius: 20px; padding: 18px; display: flex;
  flex-direction: column; gap: 6px; align-items: center; }
.p-card.wide { grid-column: 1 / -1; }
.p-card b { color: #a1887f; font-size: 14px; }
.p-card span { font-size: 26px; font-weight: 800; color: #5d4037; }
.wr-row { padding: 6px 0; border-bottom: 1px dashed #f0e0cc; width: 100%; text-align: center; font-size: 18px; }
.wrong-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
