﻿/* ============================ 英语语法刷题 · 样式（移动端优先） ============================ */
:root {
  --brand: #2f5fd0;
  --brand-d: #1e46a8;
  --ok: #22a06b;
  --ok-bg: #e7f6ef;
  --no: #e5484d;
  --no-bg: #fdecec;
  --bg: #eef3fb;
  --card: #ffffff;
  --text: #1c2740;
  --muted: #6b7690;
  --line: #dde5f2;
  --radius: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body {
  padding-bottom: env(safe-area-inset-bottom);
  background: url("media/bg.jpg") center / cover fixed no-repeat, var(--bg);
}
/* 背景图上的冷调遮罩：暖色背景 ↔ 蓝色 UI 反差对比，保证内容可读 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(238,243,251,.86), rgba(238,243,251,.93));
}

/* ------- 顶栏 ------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-top, 0px));
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  position: relative;
}
.tb-title { font-weight: 600; font-size: 16px; flex: 1; }
.tb-back {
  border: none; background: #eef3fb; color: var(--brand-d);
  width: 34px; height: 34px; border-radius: 10px; font-size: 20px; line-height: 1;
  cursor: pointer; font-weight: 600;
}
.tb-progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: transparent;
}
.tb-progress > div { height: 100%; background: var(--brand); transition: width .3s; border-radius: 0 3px 3px 0; }

/* ------- 通用 ------- */
.app { max-width: 640px; margin: 0 auto; padding: 16px 14px 32px; }
.sec-title { font-size: 13px; color: var(--muted); font-weight: 600; margin: 22px 4px 10px; letter-spacing: .03em; }
.btn {
  border: none; background: var(--brand); color: #fff; font-size: 16px; font-weight: 600;
  padding: 12px 18px; border-radius: 12px; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.btn:active { transform: scale(.97); background: var(--brand-d); }
.btn.ghost { background: #eef3fb; color: var(--brand-d); }
.btn.ghost:active { background: #dde8fb; }
.btn.big { width: 100%; padding: 14px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }

/* ------- 首页 ------- */
.hero {
  position: relative; overflow: hidden;
  background: #f7d02c url("media/hero-pikachu.jpg") right center / cover no-repeat;
  border-radius: 20px; padding: 22px 20px; color: #5a4714;
  box-shadow: 0 8px 24px rgba(240,180,30,.30);
  min-height: 108px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(247,208,44,.94) 0%, rgba(247,208,44,.74) 55%, rgba(247,208,44,.05) 100%);
}
.hero-title { position: relative; z-index: 1; font-size: 24px; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(255,255,255,.5); }
.hero-sub { position: relative; z-index: 1; font-size: 13px; opacity: .95; margin-top: 6px; color: #6b5518; text-shadow: 0 1px 2px rgba(255,255,255,.5); }

.stat-row { display: flex; gap: 10px; margin-top: 14px; }
.stat {
  flex: 1; background: #eaf1fd; border: 1px solid #d5e2f7; border-radius: 14px; padding: 12px 8px; text-align: center;
  box-shadow: 0 2px 8px rgba(28,35,51,.06);
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--brand-d); }
.stat-lb { font-size: 12px; color: var(--muted); margin-top: 2px; }

.level-list { display: flex; flex-direction: column; gap: 10px; }
.level-card {
  display: flex; align-items: center; gap: 12px; background: #eaf1fd; border: 1px solid #d5e2f7;
  border-radius: var(--radius); padding: 14px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(28,35,51,.06); transition: .15s;
}
.level-card:active { transform: scale(.985); border-color: var(--brand); }
.lv-badge {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #4a7ae0, #2f5fd0); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.lv-main { flex: 1; min-width: 0; }
.lv-name { font-weight: 700; font-size: 16px; }
.lv-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lv-topics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.lv-topics span {
  font-size: 11px; background: #eef3fb; color: var(--brand-d);
  padding: 2px 8px; border-radius: 20px;
}
.lv-go { flex: none; color: var(--muted); font-size: 12.5px; }

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

/* ---- 首页卡片式导航 ---- */
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.nav-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 18px 16px; border: 1px solid #d5e2f7; border-radius: var(--radius);
  background: #eaf1fd; box-shadow: 0 2px 10px rgba(28,35,51,.08);
  cursor: pointer; text-align: left; font-family: inherit; position: relative; overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav-card:active { transform: scale(.97); }
.nav-card .nav-ico { font-size: 30px; line-height: 1; position: relative; z-index: 2; }
.nav-card .nav-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 6px; position: relative; z-index: 2; }
.nav-card .nav-desc { font-size: 11.5px; color: var(--muted); position: relative; z-index: 2; }
.nav-card::after { content: ''; position: absolute; right: -26px; top: -26px; width: 86px; height: 86px; border-radius: 50%; opacity: 1; z-index: 1; box-shadow: 0 6px 16px rgba(20,40,80,.22); }
.nav-practice::after { background: #3f7ce0; }
.nav-vocab::after { background: #1aab8a; }
.nav-phonics::after { background: #7c5cf0; }
.nav-review::after { background: #e1546a; }

.nav-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.nav-mini {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px 14px; border: 1px solid #d5e2f7; border-radius: var(--radius);
  background: #eaf1fd; box-shadow: 0 2px 8px rgba(28,35,51,.06); cursor: pointer; font-family: inherit; text-align: left;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .12s ease;
}
.nav-mini:active { background: #dbe7fb; }
.nav-mini { position: relative; overflow: hidden; }
.nav-mini::after { content: ''; position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; opacity: 1; z-index: 1; box-shadow: 0 6px 16px rgba(20,40,80,.22); }
#nav-mixed::after { background: #ef7d4d; }
#nav-syllabus::after { background: #2aa4c4; }
.nav-mini span { font-size: 11px; font-weight: 400; color: var(--muted); position: relative; z-index: 2; }
.nav-mini { position: relative; z-index: 0; }

.menu-head { margin: 8px 2px 4px; }
.menu-title { font-size: 20px; font-weight: 700; }
.menu-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.syllabus { background: #eaf1fd; border: 1px solid #d5e2f7; border-radius: var(--radius); padding: 6px 14px; box-shadow: 0 2px 8px rgba(28,35,51,.06); }
.sy-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sy-item:last-child { border-bottom: none; }
.sy-h { font-weight: 600; font-size: 14.5px; }
.sy-t { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ------- 答题 ------- */
.quiz { background: var(--card); border-radius: var(--radius); padding: 18px 16px; box-shadow: 0 2px 8px rgba(28,35,51,.05); }
.q-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.type-tag { background: #eef3fb; color: var(--brand-d); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.kp-chip { background: #eaf1fd; color: #2b56a8; font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.q-text { font-size: 17px; font-weight: 500; line-height: 1.6; margin-bottom: 16px; }
.q-text.small { font-size: 14px; font-weight: 400; margin-bottom: 8px; color: var(--muted); }
.q-text.zh { font-size: 16px; color: #2a3345; background: #f4f7ff; border-left: 3px solid var(--brand, #3f7ce0); padding: 10px 12px; border-radius: 8px; }

.opt-col { display: flex; flex-direction: column; gap: 10px; }
.opt {
  text-align: left; background: #f7f9fd; border: 1.5px solid var(--line); color: var(--text);
  font-size: 16px; padding: 13px 16px; border-radius: 12px; cursor: pointer; transition: .15s;
  font-family: inherit; line-height: 1.4;
}
.opt:active { transform: scale(.985); }
.opt.correct { background: var(--ok-bg); border-color: var(--ok); color: #16624a; font-weight: 600; }
.opt.wrong { background: var(--no-bg); border-color: var(--no); color: #96262a; }

.input-row { display: flex; gap: 10px; align-items: stretch; }
.ans-input {
  flex: 1; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #f7f9fd; color: var(--text); font-family: inherit; outline: none;
}
.ans-input:focus { border-color: var(--brand); background: #fff; }
.ans-input.correct { background: var(--ok-bg); border-color: var(--ok); }
.ans-input.wrong { background: var(--no-bg); border-color: var(--no); }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.answer-line { font-size: 14px; color: #16624a; background: var(--ok-bg); padding: 10px 14px; border-radius: 10px; margin-top: 10px; }
.answer-line b { color: #0f5138; }

.corr-box { margin-top: 12px; }

/* 连词成句 */
.order-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.word {
  background: #eef3fb; color: var(--brand-d); border: 1.5px solid #dde5f2;
  padding: 8px 14px; border-radius: 10px; font-size: 16px; cursor: pointer; font-family: inherit;
}
.word:active { transform: scale(.95); }
.order-out {
  min-height: 54px; border: 1.5px dashed #d5dfee; border-radius: 12px; padding: 10px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-bottom: 12px; background: #fafbfe;
}
.word.picked { background: #dbe7ff; color: #2b56a8; }
.order-out .ph { color: #a8b3c9; font-size: 14px; }

/* 反馈 */
.feedback { margin-top: 16px; border-radius: 12px; padding: 0 14px; max-height: 0; overflow: hidden; transition: .25s; opacity: 0; }
.feedback.show { max-height: 600px; padding: 14px; opacity: 1; }
.feedback.ok { background: var(--ok-bg); }
.feedback.no { background: var(--no-bg); }
.fb-head { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.feedback.ok .fb-head { color: var(--ok); }
.feedback.no .fb-head { color: var(--no); }
.fb-explain { font-size: 14px; line-height: 1.65; color: #2a3345; }
.fb-kp { font-weight: 700; color: #1c2333; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed rgba(0,0,0,.12); }
.fb-concl { font-weight: 600; color: #1c2333; margin-bottom: 4px; }
.fb-block { margin-top: 10px; }
.fb-label { font-size: 12.5px; font-weight: 700; color: #5a6478; margin-bottom: 3px; letter-spacing: .02em; }
.fb-line { color: #2a3345; }
.fb-ul { margin: 2px 0 0; padding-left: 18px; }
.fb-ul li { margin-bottom: 3px; }
.fb-trap { background: rgba(229,72,77,.08); border-left: 3px solid var(--no); padding: 8px 10px; border-radius: 6px; }
.fb-trap .fb-label { color: var(--no); }
.fb-ex { background: rgba(34,160,107,.07); border-radius: 8px; padding: 8px 10px; }
.fb-ex-line { color: #16624a; font-size: 13.5px; margin: 2px 0; }
.fb-ex-line::before { content: '· '; color: var(--ok); }
.fb-note { font-size: 12.5px; color: var(--no); margin-top: 8px; font-weight: 600; }
.next-btn { width: 100%; margin-top: 14px; }

/* ------- 结果 ------- */
.result { text-align: center; padding-top: 20px; }
.res-ring {
  --p: 0;
  position: relative; isolation: isolate;
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: var(--brand-d);
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #e6eaf3 0);
}
.res-ring::before {
  content: ''; position: absolute; inset: 14px; background: var(--card); border-radius: 50%; z-index: -1;
}

.res-txt { font-size: 17px; font-weight: 600; }
.res-msg { color: var(--muted); font-size: 14px; margin: 8px 0 22px; }

@media (min-width: 480px) {
  .home-actions { flex-direction: row; }
  .home-actions .btn { flex: 1; }
}

/* ============================ 发音实验室 ============================ */
.btn.voice { background: #16a34a; color: #fff; }
.phonics { padding-bottom: 30px; }
.ph-hero { text-align: center; padding: 6px 0 14px; }
.ph-title { font-size: 21px; font-weight: 700; color: var(--brand-d); }
.ph-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tts-note { font-size: 11px; color: #16a34a; margin-top: 6px; }

.ph-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ph-tab {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; border: 1px solid #dfe5f0;
  background: #fff; color: var(--muted); font-size: 13px; font-weight: 600;
}
.ph-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.ph-intro { font-size: 13.5px; color: #4a5468; background: #f4f7ff; border-radius: 12px; padding: 11px 13px; margin-bottom: 14px; line-height: 1.6; }
.ipa-sec, .plan-sec { font-size: 14px; font-weight: 700; color: var(--brand-d); margin: 16px 0 8px; }
.ipa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ipa-card {
  background: #fff; border: 1px solid #e8edf7; border-radius: 12px; padding: 10px 11px;
  cursor: pointer; transition: .15s;
}
.ipa-card:active { transform: scale(.97); border-color: var(--brand); }
.ipa-sym { display:inline-block; background:#f7faff; border:1px solid #dde5f2; border-radius:8px; font-size: 20px; font-weight: 700; color: var(--brand-d); padding:2px 8px; cursor:pointer; }
.ipa-sym:active { transform: scale(.95); }
.ipa-ex { display:inline-block; background:#fff; border:1px solid #dde5f2; border-radius:8px; font-size: 13px; color: #2a3345; font-weight: 600; padding:2px 8px; cursor:pointer; }
.ipa-ex:active { transform: scale(.95); }
.ipa-zh { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ipa-tip { font-size: 11px; color: #6b7691; margin-top: 5px; line-height: 1.5; }

.pair-card, .trap-card, .rhythm-card, .shadow-card, .plan-card {
  background: #fff; border: 1px solid #e8edf7; border-radius: 12px; padding: 12px 13px; margin-bottom: 10px;
}
.pair-focus { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.pair-words { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pair-w {
  background: #eaf1fd; border: 1px solid #d5e2f7; color: #23408a; border-radius: 9px;
  padding: 8px 12px; font-size: 14px; font-weight: 600;
}
.pair-w:active { background: var(--brand); color: #fff; }
.pair-vs { color: var(--muted); font-size: 12px; font-weight: 700; }
.pair-zh { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.pair-tip { font-size: 12.5px; color: #4a5468; margin-top: 4px; }

.trap-name { font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.trap-row { font-size: 13px; margin-bottom: 5px; line-height: 1.5; }
.trap-lb { font-weight: 700; }
.trap-lb.wrong { color: #dc2626; }
.trap-lb.right { color: #16a34a; }
.trap-fix { font-size: 12.5px; color: #4a5468; margin: 6px 0 8px; line-height: 1.5; }

.rhythm-h { font-size: 14px; font-weight: 700; color: var(--brand-d); margin-bottom: 5px; }
.rhythm-desc { font-size: 12.5px; color: #4a5468; line-height: 1.55; }
.rhythm-demo { margin: 8px 0 5px; background: #eaf1fd; border-radius: 9px; padding: 9px 11px; font-size: 14px; font-weight: 600; color: #23408a; cursor: pointer; }
.rhythm-note { font-size: 11.5px; color: var(--muted); }

.shadow-en { font-size: 15.5px; font-weight: 600; color: #1c2740; }
.shadow-zh { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.shadow-focus { font-size: 12px; color: #16a34a; margin-top: 5px; }
.shadow-btns { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.mini-btn { background: #eaf1fd; border: 1px solid #d5e2f7; color: #23408a; border-radius: 8px; padding: 7px 11px; font-size: 12.5px; font-weight: 600; }
.mini-btn:disabled { opacity: .45; }
.mini-btn.recording { background: #dc2626; color: #fff; border-color: #dc2626; }

.plan-time, .plan-week { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 7px; margin-bottom: 5px; }
.plan-task { font-size: 13.5px; font-weight: 700; }
.plan-detail { font-size: 12.5px; color: #4a5468; line-height: 1.55; margin-top: 3px; }

/* ===== 雪梨式课程（48音标课 + 自然拼读） ===== */
.course-chapter { background: linear-gradient(135deg,#eef3fb,#e8f0fc); border: 1px solid #dde5f2; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.course-ch-title { font-weight: 700; color: var(--brand); font-size: 15px; }
.course-ch-desc { font-size: 12.5px; color: #667; margin-top: 4px; line-height: 1.5; }
.course-list { display: flex; flex-direction: column; gap: 12px; }
.course-card { background: #fff; border: 1px solid #dde5f2; border-radius: 14px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.course-card:active { border-color: var(--brand); }
.course-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.course-ipa-btn { background:#f7faff; border:1px solid #dde5f2; border-radius:10px; font-size: 20px; font-weight: 800; color: var(--brand); font-family: 'Segoe UI', system-ui, sans-serif; padding:3px 10px; cursor:pointer; }
.course-ipa-btn:active { transform: scale(.95); }
.course-name { font-size: 13px; font-weight: 600; color: #2a3345; }
.course-zh { font-size: 12px; color: #99a; margin-left: auto; }
.course-row { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 13px; line-height: 1.55; }
.course-lb { flex: 0 0 62px; color: #889; font-size: 12px; padding-top: 1px; }
.course-txt { flex: 1; color: #2a3345; }
.course-txt.rhyme { color: #2f5fd0; font-weight: 600; }
.course-spell { flex: 1; margin: 0; padding-left: 16px; color: #2a3345; }
.course-spell li { margin: 2px 0; font-size: 12.5px; }
.course-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.course-word { background: #f7faff; border: 1px solid #dde5f2; color: #2b56a8; border-radius: 8px; padding: 4px 9px; font-size: 13px; cursor: pointer; }
.course-word:active { transform: scale(.96); background: #e3ebff; }
.phonics-card { background: #fff; border: 1px solid #dde5f2; border-radius: 14px; padding: 13px; margin-bottom: 10px; }
.phonics-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.phonics-group { font-weight: 700; color: #2a3345; font-size: 14px; }
.phonics-sound { color: var(--brand); font-weight: 800; font-size: 16px; }
.phonics-words { display: flex; flex-wrap: wrap; gap: 6px; }
.phonics-note { font-size: 12.5px; color: #667; margin-top: 8px; line-height: 1.5; }
.ph-diag { margin-top: 8px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.ph-diag:active { transform: scale(.96); }

/* ===== 单词背诵模块 ===== */
.vocab-hero { background: linear-gradient(135deg, #5b8def, #2f5fd0); box-shadow: 0 8px 24px rgba(239,138,61,.28); }
.mode-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mode-btn { background: #fff !important; color: var(--text) !important; border: 1px solid var(--line) !important; text-align: left; font-weight: 600; box-shadow: 0 2px 8px rgba(28,35,51,.05); }
.mode-btn:active { background: #eef3fb !important; transform: scale(.985); }
.vocab-word { font-size: 30px; font-weight: 800; color: var(--brand-d); display: flex; align-items: center; gap: 10px; }
.vocab-ipa { color: var(--muted); font-size: 14px; font-weight: 500; font-family: 'Segoe UI', system-ui, sans-serif; }
.mini-speak { border: none; background: #eef3fb; color: var(--brand-d); border-radius: 8px; font-size: 15px; padding: 3px 8px; cursor: pointer; }
.mini-speak:active { transform: scale(.92); background: #dde8fb; }
.spell-mean { font-size: 19px; font-weight: 600; margin: 6px 0 10px; }
.spell-blank { font-size: 26px; letter-spacing: 3px; font-weight: 700; color: var(--brand-d); margin: 8px 0 14px; font-family: 'Courier New', monospace; }
.judge-meaning { font-size: 18px; margin: 8px 0 4px; }
.judge-hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.vocab-fb { margin-top: 16px; border-radius: 14px; padding: 14px; }
.vocab-fb.ok { background: var(--ok-bg); }
.vocab-fb.no { background: var(--no-bg); }
.vocab-fb-h { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.vocab-fb.ok .vocab-fb-h { color: var(--ok); }
.vocab-fb.no .vocab-fb-h { color: var(--no); }
.vocab-fb-a { font-size: 14px; margin-bottom: 8px; }
.vocab-card { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.vc-word { font-size: 20px; font-weight: 800; color: var(--brand-d); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-cn { margin-top: 6px; font-size: 15px; }
.vc-en { margin-top: 4px; font-size: 13.5px; color: #556; }
.vc-ex { margin-top: 8px; font-size: 13.5px; color: #2a3345; border-left: 3px solid var(--brand); padding-left: 10px; }
.vc-ex-cn { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.btn.vocab { background: linear-gradient(135deg,#5b8def,#2f5fd0); }
.btn.vocab:active { background: linear-gradient(135deg,#3f6fd8,#2551b8); }

/* ============================ 语法学堂（学习模块） ============================ */
.nav-grammar::after { background: #f0a020; }

.gram-hero {
  background: #f7d02c url("media/hero-pikachu.jpg") right center / cover no-repeat;
}

.point-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.point-card {
  display: flex; align-items: center; gap: 12px;
  background: #eaf1fd; border: 1px solid #d5e2f7; border-radius: var(--radius);
  padding: 13px 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(28,35,51,.06);
  transition: .15s;
}
.point-card:active { transform: scale(.985); border-color: var(--brand); }
.point-card.is-done { background: #eafaf2; border-color: #bfe9d6; }
.point-idx {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #4a7ae0, #2f5fd0); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.point-card.is-done .point-idx { background: linear-gradient(135deg, #2fb98a, #1a9a6e); }
.point-main { flex: 1; min-width: 0; }
.point-name { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.35; }
.point-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.point-go { flex: none; color: var(--muted); font-size: 20px; }

.pt-head { margin-top: 4px; }
.pt-lv { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.pt-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 4px; line-height: 1.3; }
.pt-concl {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: #eaf1fd; border: 1px solid #d5e2f7; color: var(--brand-d);
  font-size: 14.5px; font-weight: 600; line-height: 1.5;
}
.pt-sec {
  margin-top: 16px; padding: 14px; border-radius: 14px;
  background: #fff; border: 1px solid #e6ecf6; box-shadow: 0 2px 8px rgba(28,35,51,.05);
}
.pt-sec-h { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pt-hint { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.pt-ul { margin: 0; padding-left: 18px; }
.pt-ul li { font-size: 14px; color: #33405c; line-height: 1.7; margin: 4px 0; }
.pt-p { font-size: 14px; color: #33405c; line-height: 1.75; }
.pt-trap { background: #fff7ef; border-color: #f6e0c8; }
.pt-trap .pt-p { color: #8a5a1e; }
.pt-ex { display: flex; flex-direction: column; gap: 8px; }
.pt-ex-line {
  display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
  font-size: 15px; color: var(--ink); line-height: 1.5;
  padding: 8px 10px; border-radius: 10px; background: #f5f8fd; transition: .12s;
}
.pt-ex-line:active { background: #e3edfb; transform: scale(.99); }
.pt-ex-ico { flex: none; font-size: 13px; opacity: .6; }
