:root {
  --blue:#16314f; --blue2:#2f6fd0; --blue3:#5b9bf8;
  --bg:#f2f5f9; --card:#ffffff; --line:#e4eaf2; --line2:#eef2f7;
  --ink:#1b2430; --ink2:#5a6b80; --ink3:#93a3b8;
  --ok:#159c5b; --warn:#c2790a; --bad:#c0392b;
  --r:14px; --r-sm:10px; --sh:0 1px 2px rgba(16,32,56,.04), 0 6px 18px rgba(16,32,56,.06);
  --sh-sm:0 1px 2px rgba(16,32,56,.06);
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.62 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; padding-bottom:calc(20px + env(safe-area-inset-bottom)); -webkit-font-smoothing:antialiased; }
.top { background:linear-gradient(135deg,#12304f 0%,#21538f 55%,var(--blue2) 100%); color:#fff; padding:16px 16px 13px; position:relative; z-index:5; box-shadow:0 6px 20px rgba(16,32,56,.16); }
.title { font-size:19px; font-weight:700; letter-spacing:.2px; }
.sub { font-size:13px; opacity:.92; margin-top:3px; }
main { max-width:760px; margin:0 auto; padding:12px 12px 4px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:14px 15px; margin:11px 0; box-shadow:var(--sh); }
.card h3 { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:16px; font-weight:700; letter-spacing:.1px; }
.card h3::before { content:""; width:4px; height:15px; border-radius:3px; background:linear-gradient(180deg,var(--blue2),var(--blue3)); flex:0 0 auto; }
.slot { border-left:4px solid var(--blue2); }
.slot.done { border-left-color:var(--ok); opacity:.75; }
.task { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-top:1px dashed var(--line); }
.task:first-of-type { border-top:0; }
.task input[type=checkbox] { width:20px; height:20px; margin-top:3px; }
.task .t { flex:1; }
.tag { display:inline-block; font-size:12px; padding:2px 9px; border-radius:999px; background:#eaf1fb; color:#2b4a72; margin-right:6px; font-weight:600; }
.btn { border:0; border-radius:var(--r-sm); padding:10px 15px; min-height:42px; background:linear-gradient(180deg,var(--blue2),#2760bd); color:#fff; font-size:14.5px; font-weight:600; cursor:pointer; box-shadow:0 2px 8px rgba(47,111,208,.28); text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; transition:transform .06s ease, box-shadow .15s ease; }
.btn:active { transform:translateY(1px); box-shadow:0 1px 4px rgba(47,111,208,.24); }
.btn.ghost { background:#fff; color:#28405c; border:1px solid var(--line); box-shadow:var(--sh-sm); }
.btn.ghost:active { background:#f6f9fd; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.muted { color:var(--ink2); font-size:13px; line-height:1.65; }
.bar { height:10px; background:#e7edf5; border-radius:99px; overflow:hidden; box-shadow:inset 0 1px 2px rgba(16,32,56,.06); }
.bar > i { display:block; height:100%; background:linear-gradient(90deg,var(--ok),#3cc57f); width:0; transition:width .3s ease; }
.tabs { position:sticky; top:0; z-index:6; display:flex; gap:6px; padding:8px 10px; background:rgba(255,255,255,.94); backdrop-filter:saturate(180%) blur(8px); border-bottom:1px solid var(--line); box-shadow:0 2px 10px rgba(16,32,56,.05); }
.tabs button { flex:1; padding:13px 0; border:0; background:none; font-size:17px; color:var(--ink2); border-radius:var(--r-sm); font-weight:600; }
.tabs button.active { color:#fff; font-weight:700; background:linear-gradient(180deg,var(--blue2),#2760bd); box-shadow:0 3px 10px rgba(47,111,208,.28); }
.task .stat { font-size:13px; white-space:nowrap; }
.stat.ok { color:var(--ok); font-weight:600; }
.stat.doing { color:#b45309; }
.stat.todo { color:#94a3b8; }
.modal { position:fixed; inset:0; background:rgba(15,23,42,.5); display:none; align-items:flex-end; z-index:20; }
.modal.show { display:flex; }
.sheet { background:#fff; width:100%; max-height:86vh; overflow:auto; border-radius:14px 14px 0 0; padding:16px; }
.word { font-size:30px; font-weight:700; }
.phon { color:var(--ink2); margin:6px 0; }
.meaning { font-size:18px; margin:10px 0 18px; }
.q { margin:12px 0; }
.opt { display:block; width:100%; text-align:left; border:1px solid var(--line); background:#fff; border-radius:var(--r-sm); padding:13px 14px; margin:8px 0; font-size:15px; min-height:46px; color:var(--ink); line-height:1.5; }
.opt:active { background:#f4f8fd; }
.opt.right { border-color:var(--ok); background:#f1fbf5; box-shadow:0 0 0 1px rgba(21,156,91,.18) inset; }
.opt.wrong { border-color:var(--bad); background:#fdf3f2; }
.explain { background:#f7fafd; border-left:3px solid var(--blue2); padding:10px 12px; border-radius:0 8px 8px 0; font-size:14px; white-space:pre-wrap; color:#33455c; }
select { padding:10px 12px; border-radius:var(--r-sm); border:1px solid var(--line); background:#fff; font-size:15px; color:var(--ink); min-height:42px; }
.seg { display:flex; gap:5px; padding:5px; background:#e9eff7; border-radius:12px; margin:8px 0 12px; }
.seg button { flex:1; border:0; background:none; padding:11px 4px; border-radius:9px; font-size:14.5px; color:#42566e; font-weight:600; }
.seg button.active { background:#fff; color:var(--blue2); font-weight:700; box-shadow:var(--sh-sm); }
.plan-row { display:flex; gap:8px; align-items:center; padding:8px 0; border-top:1px dashed var(--line2); font-size:14px; }
.plan-row:first-child { border-top:0; }
.plan-row.today { background:#fffdf5; }
.plan-date { width:96px; color:var(--ink2); font-variant-numeric:tabular-nums; }
/* 背词全屏 */
.wordfull { position:fixed; inset:0; background:radial-gradient(120% 90% at 50% 0%,#183456 0%,#0d1c2e 60%,#0a1622 100%); color:#fff; display:none; flex-direction:column; z-index:30; }
.wordfull.show { display:flex; }
.wf-top { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; font-size:14px; color:#cbd5e1; }
.wf-body { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:0 20px; text-align:center; }
.wf-word { font-size:44px; font-weight:700; line-height:1.2; word-break:break-word; }
.wf-phon { margin-top:8px; color:#94a3b8; font-size:16px; }
.wf-answer { margin-top:22px; font-size:20px; line-height:1.6; color:#e2e8f0; }
.wf-ex { margin-top:16px; font-size:14px; color:#94a3b8; line-height:1.6; max-width:560px; }
.wf-bottom { padding:14px 16px 20px; }
.wf-rate { display:flex; gap:10px; margin-bottom:10px; }
.wf-rate button { flex:1; padding:16px 0; border:0; border-radius:12px; font-size:16px; font-weight:700; box-shadow:0 3px 12px rgba(0,0,0,.25); }
.wf-unknown { background:#7f1d1d; color:#fff; }
.wf-fuzzy { background:#78350f; color:#fff; }
.wf-known { background:#14532d; color:#fff; }
.wf-nav { display:flex; gap:10px; }
.wf-nav button { flex:1; padding:12px 0; border:0; border-radius:12px; background:#1e293b; color:#e2e8f0; font-size:15px; }
.wf-nav button:disabled { opacity:.4; }
.wf-input { margin-top:18px; width:100%; max-width:420px; padding:12px; border-radius:10px; border:1px solid #334155; background:#0b1523; color:#fff; font-size:17px; text-align:center; }
.hint { background:#eef6ff; border-left:3px solid var(--blue2); padding:9px 12px; border-radius:0 8px 8px 0; font-size:13px; color:#274a70; line-height:1.6; }
.dash { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-top:10px; }
.dash > div { background:linear-gradient(180deg,#fbfdff,#f4f8fd); border:1px solid var(--line); border-radius:12px; padding:10px 6px; text-align:center; }
.dash > div:nth-child(3n+1) { background:linear-gradient(180deg,#f6faff,#eef5ff); }
.dash b { display:block; font-size:19px; line-height:1.35; font-weight:800; color:#1b355a; font-variant-numeric:tabular-nums; }
.dash span { display:block; font-size:12px; color:var(--ink3); line-height:1.4; }
.dash button { margin:3px 0 2px; padding:6px 12px; font-size:13px; min-height:34px; }
.passage { background:#fffdf5; border-color:#f1e3b8; }
.passage.stickyPassage { position:sticky; top:6px; z-index:3; box-shadow:0 6px 18px rgba(16,32,56,.10); }
.passage summary { cursor:pointer; font-size:14px; color:#8a6d1f; }
.ptext { margin-top:8px; font-size:15px; line-height:1.8; max-height:46vh; overflow:auto; white-space:normal; }
.ptext.pre { white-space:pre-wrap; }
