/* 李响GO! · 工作台样式（学生向视觉升级） */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1f2437;
  --ink2: #4e5569;
  --ink3: #8b91a7;
  --line: rgba(31, 36, 55, .09);
  --side-bg: linear-gradient(180deg, #262e63 0%, #171d42 100%);
  --side-ink: #b4bade;
  --side-on: #ffffff;
  --accent: #5b6cff;
  --accent-2: #9d5cff;
  --teal: #10b981;
  --amber: #f59e0b;
  --red: #e5484d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(35, 46, 105, .05), 0 6px 20px rgba(35, 46, 105, .07);
  --shadow-lift: 0 4px 10px rgba(35, 46, 105, .10), 0 14px 34px rgba(35, 46, 105, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.68;
}
::selection { background: rgba(91, 108, 255, .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9cede; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aeb4c9; }
.layout { display: flex; min-height: 100vh; }

/* ---------- 侧栏 ---------- */
.sidebar {
  width: 220px; flex-shrink: 0; background: var(--side-bg);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  box-shadow: 4px 0 24px rgba(23, 29, 66, .18);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 22px 18px 18px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 19px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
img.brand-mark { object-fit: cover; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.brand-text { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: .5px; }
.brand-text small { display: block; font-size: 11px; font-weight: 400; color: #8188b4; letter-spacing: 0; }
.side-nav { flex: 1; padding: 4px 12px; overflow-y: auto; }
.side-label { font-size: 11px; color: #6f76a6; padding: 16px 10px 6px; letter-spacing: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 3px; border-radius: 10px;
  color: var(--side-ink); font-size: 14px; cursor: pointer; transition: all .16s;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.09); color: var(--side-on); }
.nav-item.on { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 4px 14px rgba(91, 108, 255, .4); }
.dot-c { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.dot-c.chinese { background: #ff8a75; }
.dot-c.math { background: #6f9bff; }
.dot-c.english { background: #2fd4bd; }
.dot-c.physics { background: #b18cff; }
.dot-c.chemistry { background: #7ad06d; }
.badge { background: var(--red); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 7px; margin-left: auto; line-height: 17px; font-weight: 600; }
.nav-item.on .badge { background: rgba(255,255,255,.28); }
.side-footer { padding: 12px 16px 18px; display: flex; gap: 8px; }
.side-btn {
  flex: 1; padding: 8px 0; border-radius: 9px; border: 1px solid rgba(255,255,255,.16);
  background: none; color: var(--side-ink); font-size: 12px; cursor: pointer; text-align: center; transition: all .16s;
}
.side-btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- 内容区 ---------- */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-head {
  padding: 26px 32px 24px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: linear-gradient(115deg, #4d63f0 0%, #7d5cff 58%, #9d5cff 100%);
  color: #fff; position: relative; overflow: hidden;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 10px 30px rgba(91, 108, 255, .30);
}
/* 背景光斑装饰（缓慢漂浮动效） */
.page-head::before, .page-head::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .10);
}
.page-head::before { width: 260px; height: 260px; top: -150px; left: 12%; animation: headFloat 9s ease-in-out infinite; }
.page-head::after { width: 190px; height: 190px; bottom: -110px; right: 8%; background: rgba(255, 255, 255, .08); animation: headFloat 7s ease-in-out infinite reverse; }
@keyframes headFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, 12px) scale(1.08); }
}
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: .3px; color: #fff; position: relative; text-shadow: 0 2px 8px rgba(23, 29, 66, .18); }
.page-head .sub { font-size: 13px; margin-top: 3px; color: rgba(255, 255, 255, .78); position: relative; }
.head-chips { display: flex; gap: 8px; align-items: center; position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .30); font-size: 13px;
  color: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); transition: background .15s;
}
.chip:hover { background: rgba(255, 255, 255, .26); }
.chip b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.streak b { color: #ffe08a; }
.main { flex: 1; padding: 24px 32px 48px; }

/* ---------- 工作台 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,.6); transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat-ico { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.stat-card .num { font-size: 25px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card .lbl { font-size: 12px; color: var(--ink3); }
.section-title { font-size: 15px; font-weight: 600; margin: 28px 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.subject-card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); cursor: pointer; transition: all .18s; position: relative; overflow: hidden;
  border: 1px solid rgba(31,36,55,.04);
}
.subject-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sc, var(--accent)), color-mix(in srgb, var(--sc, var(--accent)) 55%, white));
}
.subject-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sc-ico {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
  background: color-mix(in srgb, var(--sc) 12%, white); color: var(--sc);
}
.sc-head h3 { font-size: 17px; font-weight: 600; }
.sc-head .meta { font-size: 12px; color: var(--ink3); }
.progress-track { height: 8px; background: #edf0f7; border-radius: 5px; overflow: hidden; margin: 12px 0 10px; }
.progress-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--sc, var(--accent)), color-mix(in srgb, var(--sc, var(--accent)) 55%, white)); transition: width .5s cubic-bezier(.22,.8,.36,1); }
.sc-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); }
.sc-foot .due { color: var(--amber); font-weight: 600; }

.todo-banner {
  display: flex; align-items: center; gap: 14px; padding: 17px 22px; border-radius: var(--radius);
  background: linear-gradient(115deg, #5b6cff 0%, #7d5cff 55%, #9d5cff 100%); color: #fff; margin-bottom: 22px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(91, 108, 255, .32); transition: transform .18s, box-shadow .18s;
}
.todo-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(91, 108, 255, .42); }
.todo-banner.calm { background: linear-gradient(115deg, #0ea5a0, #0d9488); box-shadow: 0 8px 24px rgba(13, 148, 136, .3); }
.todo-banner .tb-num { font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; }
.todo-banner .go { margin-left: auto; font-size: 13px; background: rgba(255,255,255,.22); padding: 7px 16px; border-radius: 18px; font-weight: 500; }

/* ---------- 科目页 ---------- */
.crumb { font-size: 13px; color: var(--ink3); margin-bottom: 14px; cursor: pointer; display: inline-block; transition: color .15s; }
.crumb:hover { color: var(--accent); }
.chapter { background: var(--card); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(31,36,55,.04); }
.chapter-head { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background .15s; }
.chapter-head:hover { background: #f8f9fe; }
.chapter-head h3 { font-size: 15px; font-weight: 600; }
.chapter-head .ch-meta { font-size: 12px; color: var(--ink3); }
.ch-body { display: none; border-top: 1px solid var(--line); }
.chapter.open .ch-body { display: block; }
.point-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; border-bottom: 1px solid rgba(31,36,55,.045); transition: background .13s; }
.point-row:last-child { border-bottom: none; }
.point-row:hover { background: #f5f7ff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #dde0ea; flex-shrink: 0; }
.dot.s1 { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.dot.s2 { background: var(--teal); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.point-row .pt-title { flex: 1; font-size: 14px; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 9px; flex-shrink: 0; font-weight: 500; }
.tag.high { background: #ffecec; color: var(--red); }
.tag.mid { background: #e9edff; color: var(--accent); }
.tag.low { background: #f0f1f6; color: var(--ink3); }
.tag.arrow { background: none; color: var(--ink3); }

/* ---------- 考点卡 ---------- */
.card-wrap { background: var(--card); border-radius: 20px; padding: 30px; max-width: 780px; margin: 0 auto; box-shadow: var(--shadow); border: 1px solid rgba(31,36,55,.04); }
.card-wrap h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: .3px; }
.card-wrap .card-meta { font-size: 13px; color: var(--ink3); margin-bottom: 20px; }
.sec { margin-bottom: 14px; border-radius: 13px; padding: 15px 18px; border: 1px solid transparent; }
.sec h4 { font-size: 13px; font-weight: 600; margin-bottom: 5px; letter-spacing: 1px; }
.sec p { font-size: 14px; }
.sec-study { background: #f2effe; border-color: #e3ddfb; } .sec-study h4 { color: #7c5cd8; }
.sec-exam { background: #eaf1ff; border-color: #d8e4fd; } .sec-exam h4 { color: #3f6ae0; }
.sec-pit { background: #feefef; border-color: #fcdcdc; } .sec-pit h4 { color: #d94a50; }
.sec-quiz { background: #fff6e8; border-color: #fbe8c4; } .sec-quiz h4 { color: #c07f10; }
.quiz-q { font-size: 14px; font-weight: 500; margin-bottom: 12px; counter-reset: opt; }
#quiz-opts { counter-reset: opt; }
.quiz-opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 11px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--card);
  cursor: pointer; font-size: 14px; transition: all .15s; line-height: 1.55;
}
.quiz-opt::before {
  counter-increment: opt; content: counter(opt, upper-alpha);
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f0f2f8; color: var(--ink2); font-size: 12px; font-weight: 600;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--accent); background: #f5f7ff; }
.quiz-opt:hover:not(:disabled)::before { background: var(--accent); color: #fff; }
.quiz-opt.right { border-color: var(--teal); background: #e9faf3; color: #0e8a5f; }
.quiz-opt.right::before { background: var(--teal); color: #fff; }
.quiz-opt.wrong { border-color: var(--red); background: #feefef; color: var(--red); }
.quiz-opt.wrong::before { background: var(--red); color: #fff; }
.quiz-explain { font-size: 13px; color: var(--ink2); padding: 12px 14px; background: #f6f8fc; border-radius: 11px; margin-top: 8px; border-left: 3px solid var(--accent); }
.status-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn {
  padding: 9px 22px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-size: 14px; transition: all .15s; font-weight: 500;
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: #f5f7ff; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, .28); }
.btn.primary:hover { opacity: .92; color: #fff; }
.btn.primary.active { background: var(--teal); opacity: .8; box-shadow: none; }
.btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(91, 108, 255, .3); }
.status-note { font-size: 13px; color: var(--ink2); margin-top: 10px; padding: 10px 14px; background: #f6f8fc; border-radius: 11px; }

/* ---------- 面板（复习/错题本/方法） ---------- */
.panel { background: var(--card); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow); max-width: 820px; border: 1px solid rgba(31,36,55,.04); }
.panel h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.empty { color: var(--ink3); font-size: 14px; padding: 30px 0; text-align: center; }
.review-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px; cursor: pointer; transition: all .15s;
  background: var(--card);
}
.review-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(2px); }
.review-item .subj { font-size: 12px; color: var(--ink3); flex-shrink: 0; }
.method-step { display: flex; gap: 16px; padding: 17px 0; border-bottom: 1px solid rgba(31,36,55,.05); }
.method-step:last-child { border-bottom: none; }
.method-num {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(91, 108, 255, .3);
}
.method-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.method-step p { font-size: 14px; color: var(--ink2); }

/* ---------- 移动端 ---------- */
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .content { width: 100%; }
  /* 汉堡按钮：放大 + 玻璃质感 + 波浪/X 动效 */
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 52px; height: 46px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 14px; padding: 0; cursor: pointer; backdrop-filter: blur(4px);
    transition: background .2s, transform .2s, box-shadow .2s;
  }
  .menu-toggle:hover { background: rgba(255, 255, 255, .30); box-shadow: 0 4px 14px rgba(23, 29, 66, .22); }
  .menu-toggle:active { transform: scale(.92); }
  .menu-toggle i {
    display: block; width: 24px; height: 3px; background: #fff; border-radius: 2px;
    transition: all .28s cubic-bezier(.4, 0, .2, 1);
  }
  /* 悬停：三根横杠波浪错动 */
  .menu-toggle:hover i:nth-child(1) { transform: translateX(-3px); }
  .menu-toggle:hover i:nth-child(2) { transform: translateX(3px); width: 18px; }
  .menu-toggle:hover i:nth-child(3) { transform: translateX(-3px); }
  /* 侧栏展开：变形为 X */
  .sidebar.open ~ .content .menu-toggle i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .sidebar.open ~ .content .menu-toggle i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .sidebar.open ~ .content .menu-toggle i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main { padding: 16px; }
  .page-head { padding: 18px 16px 20px; border-radius: 0 0 20px 20px; }
  .page-head h1 { font-size: 20px; }
  .head-chips { width: 100%; justify-content: space-between; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wrap { padding: 20px 16px; }
  .panel { padding: 20px 16px; }
}

/* 今日任务 / 热力图 / 成就墙 */
.task-card{background:linear-gradient(135deg,#fffdf6,#fdf4e3);border:1px solid #f5e6bf;border-radius:18px;padding:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.task-chip{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #f2e8d2;border-radius:13px;padding:10px 12px;transition:all .15s}
.task-chip:hover{box-shadow:var(--shadow)}
.task-chip.done{background:#f1fbf4;border-color:#c8ecd2}
.task-chip b{font-size:13px;display:block;font-weight:600}
.task-chip small{color:#9a9468;font-size:12px}
.task-chip.done small{color:#18a05e;font-weight:500}
.tc-ico{width:34px;height:34px;flex-shrink:0;border-radius:11px;background:#f6efdc;display:flex;align-items:center;justify-content:center;font-weight:600;color:#a8821f}
.task-chip.done .tc-ico{background:#dcf5e4;color:#18a05e}
.task-foot{grid-column:1/-1;font-size:12px;color:#9a9468;padding-top:2px}
.heat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;display:grid;grid-template-columns:repeat(7,1fr);gap:6px;max-width:420px;box-shadow:var(--shadow)}
.heat-cell{aspect-ratio:1;border-radius:5px;display:inline-block;background:#edf0f6;transition:transform .12s}
.heat-cell:hover{transform:scale(1.15)}
.heat-cell.lv1{background:#cdebd0}.heat-cell.lv2{background:#7fd28a}.heat-cell.lv3{background:#2fa64f}
.heat-legend{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--ink3);margin-top:8px}
.heat-legend .heat-cell{width:12px;height:12px;aspect-ratio:auto}
.badge-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.badge-item{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px 10px;text-align:center;opacity:.55;filter:grayscale(1);transition:all .15s}
.badge-item.got{opacity:1;filter:none;border-color:#f2e2ab;background:linear-gradient(160deg,#fffdf4,#fdf3dd);box-shadow:0 4px 14px rgba(196,158,60,.16)}
.badge-item.got:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(196,158,60,.24)}
.badge-item b{display:block;font-size:13px;margin-top:6px;font-weight:600}
.badge-item small{color:var(--ink3);font-size:11px}
.bi-ico{font-size:26px}

/* 10 题通关自测 */
.self-prog{height:8px;background:#eef1f7;border-radius:5px;overflow:hidden;margin-bottom:14px}
.self-prog-fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:5px;transition:width .35s cubic-bezier(.22,.8,.36,1)}
.sec-quiz b{color:#c07f10}

/* 成绩中心：趋势图 / 科目条形图 / 试卷卡 */
.chart-panel{max-width:860px}
.trend-svg{width:100%;height:auto;display:block}
.trend-note{font-size:12px;color:var(--ink3);margin-top:6px;text-align:center}
.sbar-row{display:flex;align-items:center;gap:10px;padding:7px 0}
.sbar-name{font-size:13px;font-weight:500;width:34px;flex-shrink:0}
.sbar-track{flex:1;height:12px;background:#eef1f7;border-radius:7px;overflow:hidden}
.sbar-fill{height:100%;border-radius:7px;transition:width .6s cubic-bezier(.22,.8,.36,1)}
.sbar-val{font-size:12px;color:var(--ink2);width:86px;text-align:right;flex-shrink:0;font-variant-numeric:tabular-nums}
.sbar-val small{color:var(--ink3)}
.paper-item{gap:12px}
.paper-go{flex-shrink:0;font-size:13px;color:var(--accent);font-weight:500;opacity:0;transform:translateX(-4px);transition:all .18s}
.paper-item:hover .paper-go{opacity:1;transform:none}
.section-title .dot-c{box-shadow:0 0 0 3px rgba(91,108,255,.10)}
@media (max-width:860px){
  .sbar-val{width:auto;min-width:64px}
  .paper-go{display:none}
}

/* ---------- 云端同步 / 登录弹窗 ---------- */
.side-footer { flex-wrap: wrap; }
#sync-area { flex: 1 0 100%; margin-bottom: 2px; }
.sync-btn { width: 100%; text-align: center; border: 1px dashed rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.sync-on { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.75); padding: 6px 2px; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 6px rgba(53,208,127,.8); flex-shrink: 0; }
.sync-out { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.45); font-size: 12px; cursor: pointer; padding: 2px; }
.sync-out:hover { color: #fff; }
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(24,28,48,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-mask[hidden] { display: none; }
.modal { background: #fff; border-radius: 20px; padding: 28px 26px; width: 100%; max-width: 380px; box-shadow: 0 24px 64px rgba(30,35,80,.35); animation: modalIn .22s cubic-bezier(.34,1.4,.64,1); }
@keyframes modalIn { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 18px; margin-bottom: 6px; }
.auth-hint { font-size: 12px; color: var(--ink3); line-height: 1.6; margin-bottom: 14px; }
.modal input { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; margin-bottom: 10px; outline: none; transition: border-color .15s; }
.modal input:focus { border-color: var(--accent); }
.auth-err { font-size: 12px; color: #e5484d; min-height: 18px; margin-bottom: 4px; }
.auth-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 方案 v2：诊断 / 题型特训 / 错因 / 周报 ---------- */.dot-c.politics { background: #e3a04f; }
.dot-c.history { background: #64a9e8; }
.countdown { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#eef2ff,#f4efff); border: 1px solid #dfe4fb; border-radius: 14px; padding: 10px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.cd-num { font-size: 26px; font-weight: 700; color: #5b6cff; font-variant-numeric: tabular-nums; }
.cd-unit { font-size: 13px; color: #5b6cff; margin-right: 6px; }
.cd-txt { font-size: 13px; color: var(--ink2); }
.cd-stage { margin-left: auto; font-size: 12px; color: #7a5cff; background: #fff; border: 1px solid #e3dcff; padding: 4px 12px; border-radius: 12px; }
.wrong-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wtab { padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink2); font-size: 13px; cursor: pointer; }
.wtab.on { background: linear-gradient(135deg,#5b6cff,#9d5cff); color: #fff; border-color: transparent; }
.wtip { margin-left: auto; font-size: 12px; color: var(--ink3); }
.cause-tag { font-size: 11px; color: #7a5cff; background: #f2efff; border: 1px solid #e3dcff; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.cause-summary { font-size: 13px; color: var(--ink2); background: #f7f8fc; border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.cause-stat b { color: #5b6cff; }
.cause-advice { font-size: 13px; color: #8a6d1f; background: linear-gradient(135deg,#fffdf4,#fdf6e3); border: 1px solid #f0dfae; border-radius: 10px; padding: 8px 14px; margin-bottom: 8px; }
.cause-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cause-lbl { font-size: 12px; color: var(--ink3); }
.cause-chip { font-size: 12px; padding: 4px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink2); cursor: pointer; }
.cause-chip.sel { background: #f2efff; border-color: #9d5cff; color: #7a5cff; font-weight: 600; }
.diag-heat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.diag-chip { font-size: 12px; padding: 5px 10px; border-radius: 10px; border: 1px solid transparent; }
.diag-chip.green { background: #e7f8ef; color: #158a4c; border-color: #bfe8d0; }
.diag-chip.yellow { background: #fff4e0; color: #b06f08; border-color: #f3ddb0; }
.diag-chip.red { background: #ffecec; color: #d43c41; border-color: #f5c6c8; }
.diag-chip.gray { background: #f1f2f6; color: #8b91a7; border-color: #e3e5ec; }
.diag-plan { margin-top: 10px; }
.diag-plan > b { font-size: 12px; color: var(--ink3); display: block; margin-bottom: 4px; }
.nt-q { font-size: 16px; font-weight: 500; line-height: 1.7; margin-bottom: 14px; }
.nt-blank { color: #5b6cff; letter-spacing: 1px; }
.nt-input-row { display: flex; gap: 8px; }
.nt-input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; outline: none; }
.nt-input:focus { border-color: var(--accent); }
.nt-judge { display: flex; gap: 12px; }
.nt-judge .btn { flex: 1; padding: 12px; font-size: 15px; }
.nt-tip { font-size: 12.5px; color: var(--ink3); background: #f7f8fc; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.6; }
.step-list { margin: 12px 0; }
.step-head { font-size: 13px; color: var(--ink2); margin-bottom: 8px; }
.step-item { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; transition: all .15s; }
.step-item.got { border-color: #bfe8d0; background: #f2fbf5; }
.step-item.miss { border-color: #f5c6c8; background: #fff8f8; }
.step-d { font-size: 13.5px; line-height: 1.65; }
.pt-score { font-size: 11px; color: #b06f08; background: #fff4e0; border-radius: 8px; padding: 1px 7px; }
.step-btns { display: flex; gap: 6px; margin-top: 8px; }
.mat-block { background: #f7f8fc; border-left: 3px solid #5b6cff; border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 14px; line-height: 1.8; }
.rep-weak { font-size: 12px; color: var(--ink3); margin: -2px 0 8px 26px; }
@media print {
  .sidebar, .page-head, .status-btns, .menu-toggle { display: none !important; }
  .content, .main { padding: 0 !important; }
}

/* ---------- 作文特训 / 冲刺模式 ---------- */
.essay-step { background: #f8f9fe; border: 1px solid #e3e7f8; border-radius: 16px; padding: 16px 18px; margin-top: 14px; }
.es-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.es-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.es-done { font-size: 12px; color: #118a55; background: #e4f7ee; border-radius: 8px; padding: 2px 9px; }
.es-todo { font-size: 12px; color: #b06f08; background: #fff4e0; border-radius: 8px; padding: 2px 9px; }
.es-goal { font-size: 13.5px; color: var(--ink2); margin: 6px 0 4px; }
.essay-card { background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 10px; box-shadow: 0 2px 8px rgba(80,90,160,.06); }
.essay-card h4 { font-size: 14px; margin-bottom: 4px; color: #4d6bfb; }
.essay-card p { font-size: 13.5px; line-height: 1.7; }
.essay-drill { background: #eef2ff; border: 1px dashed #b9c4f7; border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 13.5px; line-height: 1.7; }
.es-progress { font-size: 12px; color: #4d6bfb; background: #eaf0ff; border-radius: 8px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; }
.essay-weekly { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 13px; }
.es-wk { background: #f2f4fb; border: 1px solid #e3e7f8; border-radius: 9px; padding: 3px 10px; color: var(--ink2); }
.rubric-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.rubric-table th { background: #eef2ff; color: #4d6bfb; text-align: left; padding: 8px 10px; }
.rubric-table td { border-top: 1px solid #eef0f8; padding: 8px 10px; line-height: 1.6; vertical-align: top; }
.rb-range { white-space: nowrap; font-weight: 700; color: #4d6bfb; }
.rb-label { white-space: nowrap; font-weight: 600; }
.rs-dim { background: #f8f9fe; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.rs-dim h4 { color: #4d6bfb; font-size: 14px; }
.rs-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rs-txt { flex: 1; font-size: 13.5px; }
.rs-num { width: 76px; padding: 7px 10px !important; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; text-align: center; }
.rs-total { font-size: 15px; margin-top: 12px; }
.rs-grade { margin-left: 10px; font-size: 13px; color: #4d6bfb; background: #eaf0ff; border-radius: 8px; padding: 2px 10px; }
.es-hist { display: inline-block; font-size: 12px; background: #f2f4fb; border-radius: 8px; padding: 3px 9px; margin: 3px 6px 0 0; }
.essay-pit { margin-top: 16px; background: #fff8f0; border: 1px solid #ffe3ba; border-radius: 12px; padding: 12px 16px; }
.essay-pit h4 { color: #b06f08; }
.essay-pit li { font-size: 13.5px; line-height: 1.7; margin: 4px 0 0 18px; }
.sprint-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sprint-todo { margin: 10px 0 0; }
.sprint-todo li { font-size: 14px; line-height: 1.8; margin-left: 20px; }
.final-panel { border: 1.5px solid #ffd2d4; background: #fff7f7; }
.final-panel h2 { color: #d5494d; }
.final-panel li { font-size: 13.5px; line-height: 1.8; margin-left: 20px; }
