/* K12分析网 · 学生端样式 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1a2032;
  --ink2: #3c455c;
  --muted: #8a92a6;
  --line: #e8ebf3;
  --line2: #f1f3f9;
  --brand: #4f46e5;
  --brand2: #7c5cfc;
  --brand-soft: #eef0ff;
  --teal: #0e9f9a;
  --teal-soft: #e4f7f5;
  --amber: #dd8f12;
  --amber-soft: #fff3df;
  --red: #e5484d;
  --red-soft: #fdecec;
  --green: #12a150;
  --green-soft: #e7f8ee;
  --violet: #7c3aed;
  --violet-soft: #f2ecff;
  --radius: 20px;
  --shadow: 0 12px 32px -18px rgba(26, 32, 55, .35);
  --shadow-sm: 0 4px 14px -8px rgba(26, 32, 55, .25);
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -12%, #e8eaff 0%, rgba(232, 234, 255, 0) 60%),
    radial-gradient(900px 460px at 96% -6%, #e2f7f4 0%, rgba(226, 247, 244, 0) 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  background: #f1f3fa; border-radius: 6px; padding: 1px 6px; font-size: .92em;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d9ddeb; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c6cbdd; }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== 通用按钮 / 表单 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 15px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--ink2);
  font-size: 13.5px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: .18s ease; user-select: none;
}
.btn:hover { border-color: #c9c9f5; color: var(--brand); background: #fbfbff; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, #5b52ea, #7c5cfc);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .75);
}
.btn.primary:hover { color: #fff; filter: brightness(1.04); }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.btn.soft:hover { background: #e5e8ff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #f5f6fb; color: var(--brand); }
.btn.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.btn.danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn.block { width: 100%; }
.btn.lg { height: 50px; font-size: 16px; border-radius: 14px; letter-spacing: 2px; }
.btn.mini { height: 29px; padding: 0 10px; font-size: 12px; border-radius: 9px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; color: #9aa1b5; display: grid; place-items: center; cursor: pointer;
  transition: .18s;
}
.icon-btn:hover { color: var(--red); border-color: #f6c9ca; background: #fff8f8; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  background: #fbfcff; padding: 0 12px; font-size: 14px; color: var(--ink);
  outline: none; transition: .18s; appearance: none;
}
.field textarea { height: auto; padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #b9b5fb; background: #fff; box-shadow: 0 0 0 4px rgba(99, 91, 255, .09);
}
.field input::placeholder { color: #b3b9c9; }
select { background-image: linear-gradient(45deg, transparent 50%, #9aa1b5 50%), linear-gradient(135deg, #9aa1b5 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ==================== 登录 ==================== */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.06fr .94fr; }
.login-brand {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #191733 0%, #2a2160 45%, #452f8f 100%);
  padding: 36px 56px 30px; display: flex; flex-direction: column;
}
.lb-glow { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.lb-glow.a { width: 520px; height: 520px; right: -180px; top: -160px; background: radial-gradient(circle, rgba(124, 92, 252, .55), transparent 65%); }
.lb-glow.b { width: 460px; height: 460px; left: -180px; bottom: -180px; background: radial-gradient(circle, rgba(14, 159, 154, .4), transparent 65%); }
.lb-top { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .5px; position: relative; z-index: 1; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6f63ff, #9a7bff); color: #fff; font-weight: 800;
  font-size: 13px; letter-spacing: .5px; box-shadow: 0 8px 18px -6px rgba(111, 99, 255, .8);
}
.logo-mark.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.lb-main { position: relative; z-index: 1; margin-top: auto; margin-bottom: auto; padding: 40px 0 24px; }
.lb-main h1 { font-size: 46px; line-height: 1.24; margin: 0 0 20px; letter-spacing: 1px; font-weight: 700; }
.lb-main p { color: #c9c5ec; font-size: 15px; line-height: 1.9; margin: 0 0 26px; }
.lb-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.lb-feats li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #e5e2fa; }
.lb-feats .dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 255, 255, .07); }
.dot.d1 { background: #8f7bff; } .dot.d2 { background: #4bd6c8; } .dot.d3 { background: #ffc36b; }
.lb-mock {
  position: relative; z-index: 1; width: 330px; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}
.lm-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.lm-ava { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #ffd36b, #ff9f5a); display: grid; place-items: center; color: #5a3211; font-weight: 700; }
.lm-head small { display: block; color: #a9a4d6; font-size: 11px; margin-top: 2px; }
.lm-pill { margin-left: auto; font-size: 11px; padding: 3px 9px; border-radius: 20px; background: rgba(255, 255, 255, .14); color: #ddd8ff; }
.lm-bars { display: grid; gap: 8px; margin: 16px 0 14px; }
.lm-bars div { height: 7px; border-radius: 6px; background: linear-gradient(90deg, #8f7bff, #58d8c9); opacity: .9; }
.lm-bars div:nth-child(2) { background: linear-gradient(90deg, #ffb75e, #ff8a65); }
.lm-bars div:nth-child(3) { background: linear-gradient(90deg, #4bd6c8, #6fd3ff); }
.lm-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: #b7b2dd; }
.lb-foot { position: relative; z-index: 1; font-size: 12px; color: #77719f; margin-top: 26px; }
.login-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: rgba(255, 255, 255, .55); }
.login-card {
  width: min(410px, 100%); background: #fff; border-radius: 24px; padding: 34px 34px 28px;
  box-shadow: 0 30px 70px -40px rgba(40, 34, 95, .45), 0 0 0 1px rgba(255, 255, 255, .8);
}
.lc-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); margin-bottom: 26px; }
.login-card h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: .5px; }
.lc-sub { margin: 0 0 24px; color: var(--muted); font-size: 13.5px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 58px; }
.pw-eye {
  position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 10px; border: 0;
  background: transparent; color: var(--muted); font-size: 12px; border-radius: 8px; cursor: pointer;
}
.pw-eye:hover { background: #f3f4fb; color: var(--brand); }
.lc-err { background: var(--red-soft); color: #c92a2f; font-size: 13px; padding: 9px 12px; border-radius: 10px; margin-bottom: 14px; }
.lc-tip { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted); }
.lc-tip b { color: var(--ink2); font-weight: 600; }
.lc-tip code { margin: 0 2px; }
.login-note { margin-top: 18px; font-size: 12px; color: #9aa1b3; text-align: center; }
.teacher-link { display: block; margin-top: 10px; font-size: 11.5px; color: #a2a8ba; text-align: center; }
.teacher-link:hover { color: var(--brand); }

/* ==================== 顶栏 ==================== */
.app { padding-bottom: 40px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 28px; background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(232, 235, 243, .9);
  backdrop-filter: saturate(160%) blur(14px);
}
.tb-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tb-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.tb-brand-txt b { font-size: 15px; letter-spacing: .3px; }
.tb-brand-txt span { font-size: 10.5px; color: var(--muted); letter-spacing: 2px; }
.tb-welcome { flex: 1; min-width: 0; }
.tb-welcome .hi { font-size: 17px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-welcome .hi em { font-style: normal; background: linear-gradient(90deg, #5b52ea, #0e9f9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-welcome .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tb-right { display: flex; align-items: center; gap: 12px; }
.topbar .tabs {
  flex: none; width: auto; max-width: none; margin: 0; padding: 0;
  gap: 8px; align-self: center;
}
.topbar .tab {
  flex: 0 0 auto; width: auto; min-width: 108px;
  padding: 7px 11px; gap: 8px; border-radius: 12px;
}
.topbar .tab .ic { width: 30px; height: 30px; border-radius: 9px; }
.topbar .tab .ic svg { width: 16px; height: 16px; }
.topbar .tab .tt b { font-size: 12.5px; }
.topbar .tab .tt small { display: none; }
.topbar .tab .num { font-size: 10px; padding: 1px 6px; }
.topbar .tab:hover { transform: none; }
.recharge {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px;
  border-radius: 10px; border: 1px dashed #d7d9e8; background: #fbfbff; color: #6b7280;
  font-size: 12.5px; cursor: pointer; transition: .18s;
}
.recharge:hover { border-color: #b9b5fb; color: var(--brand); background: #f6f5ff; }
.rc-plus { font-size: 15px; line-height: 1; }
.userbox {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 14px 6px 7px; box-shadow: var(--shadow-sm);
}
.ub-ava {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, #6f63ff, #a07bff);
}
.ub-info { line-height: 1.25; }
.ub-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ub-grade { font-size: 10px; padding: 1px 6px; border-radius: 20px; background: #f1f3fa; color: #6b7280; font-weight: 500; }
.ub-pills { display: flex; gap: 10px; margin-top: 3px; font-size: 11px; color: var(--muted); }
.ub-pills i { font-style: normal; }
.ub-pills b { color: var(--ink2); font-size: 12px; }
.ub-pills .bal b { color: #c77b0a; }
.ub-recharge {
  height: 27px; padding: 0 10px; border-radius: 8px; border: 1px solid #e2ddff;
  background: #f7f5ff; color: var(--brand); font-size: 11.5px; cursor: pointer;
  transition: .18s; flex: none;
}
.ub-recharge:hover { background: #efecff; border-color: #c9c3fb; }

/* ==================== 三个大按钮 ==================== */
.tabs { display: flex; gap: 14px; padding: 22px 28px 0; max-width: 1720px; margin: 0 auto; }
.tab {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 13px; padding: 13px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; cursor: pointer;
  text-align: left; transition: .2s ease; position: relative; overflow: hidden;
}
.tab::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(120deg, rgba(99, 91, 255, .07), rgba(14, 159, 154, .06)); opacity: 0; transition: .2s; }
.tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #dcd9fb; }
.tab.on { border-color: transparent; box-shadow: 0 0 0 2px #6a5cf0 inset, var(--shadow); }
.tab.on::after { opacity: 1; }
.tab .ic { width: 40px; height: 40px; border-radius: 12px; background: #f2f3fa; display: grid; place-items: center; color: #6b7280; flex: none; }
.tab .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on .ic { background: linear-gradient(135deg, #6f63ff, #8f7bff); color: #fff; box-shadow: 0 8px 18px -8px rgba(111, 99, 255, .9); }
.tab .tt { position: relative; z-index: 1; line-height: 1.3; }
.tab .tt b { display: block; font-size: 14.5px; font-weight: 600; }
.tab .tt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tab .num { margin-left: auto; font-size: 12px; color: var(--muted); background: #f4f5fb; border-radius: 20px; padding: 3px 9px; position: relative; z-index: 1; }
.tab.on .num { background: #fff; color: var(--brand); }

.view { max-width: 1720px; margin: 0 auto; padding: 18px 28px 0; }
.page-head { display: flex; align-items: flex-end; gap: 18px; margin: 6px 2px 16px; }
.page-head h2 { margin: 0; font-size: 21px; letter-spacing: .3px; }
.page-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.page-head .grow { flex: 1; }

/* ==================== 三栏 ==================== */
.grid3 { display: grid; grid-template-columns: 300px minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.grid3.wrong-page { grid-template-columns: 2fr 4fr 4fr; gap: 14px; }
.view.view-wrong { max-width: none; padding-left: 12px; padding-right: 12px; }
.col {
  background: var(--card); border: 1px solid rgba(232, 235, 243, .9); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 14px 40px -32px rgba(30, 40, 80, .4);
}
.col.scroll { max-height: calc(100vh - 250px); overflow: auto; }
.col-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 13px; }
.col-head .sub { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.col-head .grow { flex: 1; }
.col-head .btn { font-weight: 500; }

/* ==================== 知识点页 ==================== */
.subject-switch { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 13px; box-shadow: var(--shadow-sm); }
.subject-switch button {
  height: 34px; padding: 0 16px; border: 0; background: transparent; border-radius: 9px;
  font-size: 13.5px; color: var(--ink2); cursor: pointer; transition: .18s;
}
.subject-switch button.on { background: linear-gradient(135deg, #5b52ea, #7c5cfc); color: #fff; box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .9); }

.week-list { display: grid; gap: 8px; }
.week-item { border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; cursor: pointer; transition: .18s; background: #fdfdff; }
.week-item:hover { border-color: #d5d1fb; background: #fafaff; }
.week-item.on { border-color: #c9c3fb; background: linear-gradient(135deg, #f4f2ff, #fbfaff); box-shadow: 0 8px 20px -16px rgba(79, 70, 229, .7); }
.week-top { display: flex; align-items: center; gap: 8px; }
.week-label { font-size: 13px; font-weight: 600; }
.week-range { font-size: 11px; color: var(--muted); margin-left: auto; }
.week-stats { display: flex; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 7px; }
.week-stats b { color: var(--ink2); font-weight: 600; }
.week-bar { height: 5px; border-radius: 4px; background: #eef0f8; margin-top: 9px; overflow: hidden; }
.week-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6f63ff, #8f7bff); }
.week-detail { margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); display: grid; gap: 10px; animation: fade .2s ease; }
.day-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ddot { text-align: center; font-size: 9.5px; color: var(--muted); }
.ddot i { display: block; height: 26px; border-radius: 7px; background: #f2f3fa; margin-bottom: 3px; position: relative; overflow: hidden; }
.ddot i.on { background: linear-gradient(180deg, #cfc9ff, #8f7bff); }
.ddot i.full { background: linear-gradient(180deg, #a9f0e6, #0e9f9a); }
.wd-line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.wd-line b { color: var(--ink2); }
.wd-kps { display: flex; flex-wrap: wrap; gap: 5px; }

.seg { display: inline-flex; padding: 3px; background: #f4f5fb; border-radius: 10px; gap: 2px; }
.seg button { height: 28px; padding: 0 12px; border: 0; background: transparent; border-radius: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px -3px rgba(30, 40, 80, .3); font-weight: 600; }

.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.kp-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; background: #fff;
  transition: .18s; position: relative; overflow: hidden;
}
.kp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #e5e7f0; }
.kp-card.weak::before { background: var(--red); }
.kp-card.apply::before { background: var(--amber); }
.kp-card.good::before { background: var(--green); }
.kp-card.learned::before { background: #8f7bff; }
.kp-card:hover { border-color: #dcd9fb; box-shadow: var(--shadow-sm); }
.kc-top { display: flex; align-items: flex-start; gap: 8px; }
.kc-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.kc-chap { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.kc-status { margin-left: auto; flex: none; font-size: 10px; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.kc-status.weak { background: var(--red-soft); color: #c92a2f; }
.kc-status.apply { background: var(--amber-soft); color: #a76a05; }
.kc-status.good { background: var(--green-soft); color: #0c7c3d; }
.kc-status.learned { background: var(--violet-soft); color: #6d30d4; }
.kc-status.new { background: #f2f3fa; color: #8a92a6; }
.kc-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.kc-bar { height: 4px; background: #f1f2f9; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.kc-bar i { display: block; height: 100%; border-radius: 4px; background: #8f7bff; }
.kc-bar.weak i { background: var(--red); }
.kc-bar.apply i { background: var(--amber); }
.kc-bar.good i { background: var(--green); }

.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; line-height: 1;
  padding: 4px 8px; border-radius: 20px; background: #f4f5fb; color: #69718a; white-space: nowrap;
}
.chip b { font-weight: 600; }
.chip.violet { background: var(--violet-soft); color: #6d30d4; }
.chip.red { background: var(--red-soft); color: #c92a2f; }
.chip.green { background: var(--green-soft); color: #0c7c3d; }
.chip.amber { background: var(--amber-soft); color: #a76a05; }
.chip.teal { background: var(--teal-soft); color: #087b77; }
.chip.line { background: #fff; border: 1px solid var(--line); }

.hidden-panel {
  border: 1px dashed #d9d5f7; border-radius: 16px; padding: 42px 24px; text-align: center;
  background: repeating-linear-gradient(135deg, #fbfaff, #fbfaff 12px, #f7f5ff 12px, #f7f5ff 24px);
}
.kp-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.kp-foot .btn { margin-left: auto; color: #8a92a6; }
.kp-foot .btn:hover { color: var(--brand); }
.kp-foot .btn svg { width: 14px; height: 14px; }
.hidden-panel .lock-ico { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.empty .eico svg, .hidden-panel .lock-ico svg, .file-chip .fi svg {
  width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.hidden-panel h4 { margin: 0 0 6px; font-size: 15px; }
.hidden-panel p { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ==================== 学习建议 ==================== */
.advice-list { display: grid; gap: 10px; }
.advice-card { border: 1px solid var(--line); border-radius: 15px; padding: 13px 13px 12px; background: #fff; position: relative; }
.advice-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: #e5e7f0; }
.advice-card.high::before { background: var(--red); }
.advice-card.mid::before { background: var(--amber); }
.advice-card.good::before { background: var(--green); }
.ac-top { display: flex; align-items: center; gap: 8px; }
.ac-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: #f4f5fb; }
.advice-card.high .ac-ico { background: var(--red-soft); }
.advice-card.mid .ac-ico { background: var(--amber-soft); }
.advice-card.good .ac-ico { background: var(--green-soft); }
.ac-title { font-size: 12.8px; font-weight: 600; line-height: 1.35; }
.ac-desc { font-size: 11.8px; color: var(--muted); line-height: 1.65; margin: 7px 0 10px; }
.ac-act { font-size: 11.5px; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.ac-act:hover { text-decoration: underline; }

/* ==================== 错题页 ==================== */
.drop {
  display: block; border: 1.5px dashed #cfd3e6; border-radius: 15px; padding: 24px 14px;
  text-align: center; cursor: pointer; background: #fbfbff; transition: .2s;
}
.drop:hover, .drop.over { border-color: #a79ffb; background: #f7f6ff; }
.drop .drop-ico { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 10px; display: grid; place-items: center; background: linear-gradient(135deg, #eef0ff, #f6f4ff); color: var(--brand); }
.drop .drop-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-size: 13.5px; font-weight: 600; }
.drop-sub { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.up-slot { margin-top: 10px; }
.up-slot-head { display: flex; align-items: center; gap: 6px; margin: 0 2px 6px; font-size: 12.5px; }
.up-slot-head b { color: #1d2129; }
.up-slot-head em { font-style: normal; font-size: 10.5px; color: #fff; background: #7c6cf6; border-radius: 4px; padding: 1px 5px; }
.up-slot-head span { font-size: 10.5px; color: #9aa3b2; }
.drop.up-drop { display: flex; align-items: center; text-align: left; gap: 10px; padding: 11px 12px; border-radius: 11px; }
.up-drop .drop-ico { width: 36px; height: 36px; border-radius: 10px; margin: 0; flex: none; }
.up-drop .drop-ico svg { width: 18px; height: 18px; }
.up-drop .drop-title { font-size: 12.5px; }
.up-drop .drop-sub { margin-top: 2px; font-size: 10.5px; }
.up-chip .file-chip { margin-top: 4px; }
.file-chip {
  margin-top: 10px; display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid #d9d5fb; background: #f7f6ff; border-radius: 12px; font-size: 12px;
}
.file-chip .fi { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; color: var(--brand); flex: none; }
.file-chip .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-chip .fs { color: var(--muted); font-size: 10.5px; }
.file-chip .fx { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; }
.file-list { margin-top: 10px; border: 1px solid #d9d5fb; background: #f7f6ff; border-radius: 12px; overflow: hidden; }
.file-list-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-size: 11px; color: var(--ink2); border-bottom: 1px solid #e9e7ff; }
.file-list-head span { color: var(--muted); font-size: 9.5px; }
.file-item { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-bottom: 1px solid #efedff; }
.file-item b { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-size: 9px; display: grid; place-items: center; }
.file-item .fi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.file-item .fi-size { color: var(--muted); font-size: 9px; flex: none; }
.fi-actions { display: flex; gap: 1px; flex: none; }
.fi-actions button { border: 0; background: #fff; color: var(--ink2); width: 19px; height: 18px; border-radius: 4px; cursor: pointer; font-size: 11px; line-height: 1; padding: 0; }
.fi-actions button:hover { background: #e9e6ff; color: var(--brand); }
.fi-actions button:disabled { opacity: .25; cursor: default; }
.file-list-total { padding: 6px 10px; text-align: right; color: var(--muted); font-size: 9.5px; }

.form-box { margin-top: 14px; border: 1px solid var(--line); border-radius: 13px; padding: 4px 12px 2px; }
.form-box > summary { list-style: none; cursor: pointer; font-size: 12.5px; color: var(--ink2); padding: 9px 0; display: flex; align-items: center; gap: 6px; }
.form-box > summary::-webkit-details-marker { display: none; }
.form-box > summary::after { content: "展开"; margin-left: auto; font-size: 10.5px; color: var(--brand); }
.form-box[open] > summary::after { content: "收起"; }
.form-box[open] > summary { border-bottom: 1px dashed var(--line); margin-bottom: 11px; }
.form-box .field { margin-bottom: 10px; }
.form-box .field > span { font-size: 11px; margin-bottom: 5px; }
.form-box .field input, .form-box .field select { height: 36px; font-size: 12.5px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.up-hint { font-size: 10.5px; color: var(--muted); line-height: 1.7; margin: 11px 2px 0; }
.up-hint code { font-size: 10px; }

.proc-card { border: 1px solid #ddd9fb; background: linear-gradient(135deg, #f7f6ff, #fff); border-radius: 14px; padding: 13px 14px; margin-bottom: 12px; }
.proc-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.proc-top .spin { width: 14px; height: 14px; border: 2px solid #d9d3ff; border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
.proc-bar { height: 6px; border-radius: 4px; background: #eceafa; margin: 10px 0 6px; overflow: hidden; }
.proc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6f63ff, #9a7bff); border-radius: 4px; transition: width .5s ease; }
.proc-msg { font-size: 11px; color: var(--muted); }

.day-group { margin-bottom: 16px; }
.day-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); margin: 0 2px 8px; }
.day-label b { color: var(--ink2); font-size: 12px; font-weight: 600; }
.day-label .ln { flex: 1; height: 1px; background: var(--line2); }
.paper-row {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer;
  text-align: left; transition: .16s; margin-bottom: 7px;
}
.paper-row:hover { border-color: #d5d1fb; background: #fbfaff; transform: translateX(2px); }
.pr-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; flex: none; }
.pr-ico.math { background: var(--brand-soft); color: var(--brand); }
.pr-ico.sci { background: var(--teal-soft); color: var(--teal); }
.pr-ico.chn { background: var(--amber-soft); color: var(--amber); }
.pr-ico.default { background: #f2f3fa; color: #69718a; }
.pr-main { flex: 1; min-width: 0; display: block; }
.pr-reason { display: block; font-size: 11px; color: #d84a3a; margin-top: 3px; line-height: 1.35; }
.pr-title { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-meta { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.pr-right { display: block; text-align: right; flex: none; }
.pr-count { font-size: 11px; color: var(--muted); }
.pr-count b { color: var(--ink2); font-size: 12px; }
.chap { margin-bottom: 18px; }
.chap-title { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .4px; margin: 0 2px 9px; }
.chap-title::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.badge-mini { font-size: 9.5px; padding: 2px 6px; border-radius: 20px; background: #f4f5fb; color: var(--muted); }
.badge-mini.analyzing { background: var(--amber-soft); color: var(--amber); }
.badge-mini.pending { background: var(--amber-soft); color: #a76a05; }
.badge-mini.error { background: var(--red-soft); color: var(--red); }
.badge-mini.demo { background: #f2f3fa; color: #9aa1b5; }

/* 待分析 */
.pending-card { background: linear-gradient(135deg, #fffaf0 0%, #ffffff 60%, #f7f6ff 100%); border-color: #f2e2c4; }
.pending-meta { display: grid; gap: 8px; margin: 14px 0; background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 12px 14px; }
.pending-meta div { display: flex; gap: 10px; font-size: 12px; line-height: 1.6; }
.pending-meta span { color: var(--muted); width: 72px; flex: none; }
.pending-meta b { color: var(--ink2); font-weight: 500; word-break: break-all; }
.pending-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pending-note { font-size: 11px; color: var(--muted); line-height: 1.75; padding: 0 4px; }

/* 下载 Word */
.word-panel { max-width: 540px; margin: 24px auto; text-align: center; }
.wp-ico { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, #eef0ff, #f6f4ff); color: var(--brand); }
.wp-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.word-panel h3 { margin: 0 0 6px; font-size: 20px; }
.wp-sub { margin: 0 0 18px; font-size: 12.5px; color: var(--muted); }
.wp-list { text-align: left; margin: 0 auto 22px; padding: 16px 18px 16px 34px; max-width: 440px; background: #fbfbfe; border: 1px solid var(--line2); border-radius: 14px; }
.wp-list li { font-size: 12.5px; color: var(--ink2); line-height: 1.9; }

/* 试卷详情 */
.detail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.detail-title { font-size: 13.5px; font-weight: 600; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-top .back { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.detail-top .back:hover { color: var(--brand); }
.detail-top .grow { flex: 1; }
.summary-card {
  border: 1px solid #e3e0fd; border-radius: 16px; padding: 16px 17px;
  background: linear-gradient(135deg, #f7f6ff 0%, #ffffff 55%, #f4fbfa 100%);
  margin-bottom: 14px;
}
.sum-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sum-head h3 { margin: 0; font-size: 15px; }
.sum-head .badge-mini { margin-left: auto; }
.sum-stats { display: flex; gap: 26px; margin: 15px 0 12px; }
.sum-stat b { display: block; font-size: 22px; letter-spacing: .5px; line-height: 1.1; }
.sum-stat span { font-size: 11px; color: var(--muted); }
.sum-stat.red b { color: var(--red); }
.sum-stat.green b { color: #0c7c3d; }
.sum-stat.violet b { color: var(--violet); }
.sum-comment { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink2); background: rgba(255, 255, 255, .75); border-radius: 10px; padding: 10px 12px; }
.kp-bars { margin-top: 12px; display: grid; gap: 6px; }
.kp-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink2); }
.kp-bar span { width: 92px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-bar i { height: 6px; border-radius: 4px; background: linear-gradient(90deg, #6f63ff, #b3a6ff); }
.kp-bar em { font-style: normal; color: var(--muted); font-size: 10.5px; }

.q-list { display: grid; gap: 12px; }
.qcard { border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; background: #fff; transition: .2s; }
.qcard:hover { border-color: #e0ddfb; box-shadow: var(--shadow-sm); }
.qcard.flash { animation: flash 1.6s ease; }
.qhead { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.qno { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 8px; }
.qtype { font-size: 10.5px; color: var(--muted); }
.qdiff { margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 20px; background: #f4f5fb; color: var(--muted); }
.qdiff.易 { background: var(--green-soft); color: #0c7c3d; }
.qdiff.难 { background: var(--red-soft); color: #c92a2f; }
.qdiff.中 { background: var(--amber-soft); color: #a76a05; }
.qstem { font-size: 13.5px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.qimg { display: block; width: 100%; max-height: 560px; object-fit: contain; border: 1px solid var(--line2); border-radius: 10px; background: #fafbfc; }
.qres { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.qres.ok { color: #087f3d; background: #e8f8ef; }
.qres.bad { color: #c62828; background: #fff1f0; }
.qres.wait { color: #8a6d00; background: #fff8e5; }
.qnote { margin-top: 10px; }
.qblocks { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; margin-top: 12px; }
.qblock { background: #fbfbfe; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }
.qblock h4 { margin: 0 0 6px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .5px; display: flex; align-items: center; gap: 5px; }
.qblock h4::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: #a79ffb; }
.qblock p { margin: 0; font-size: 12.2px; line-height: 1.75; color: var(--ink2); }
.qblock .chip { margin: 0 4px 4px 0; }
.answer-box { margin-top: 10px; }
.answer-box summary { cursor: pointer; font-size: 11.5px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.answer-box summary::-webkit-details-marker { display: none; }
.answer-box summary::before { content: "▸"; transition: .2s; }
.answer-box[open] summary::before { transform: rotate(90deg); }
.answer-box .ans { margin-top: 7px; font-size: 12.5px; line-height: 1.7; color: #0c7c3d; background: var(--green-soft); border-radius: 10px; padding: 8px 11px; white-space: pre-wrap; }
.qacts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.qretrain { margin-top: 10px; padding: 10px 12px; border: 1px dashed #c9c5fb; border-radius: 12px; background: #f8f7ff; }
.qr-head { display: flex; align-items: center; gap: 8px; }
.qr-head b { font-size: 12px; color: var(--brand); }
.qr-head span { font-size: 10.5px; color: var(--muted); }
.qr-acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.qacts .btn { height: 32px; font-size: 12px; }

/* 错题重练 */
.basket-list { display: grid; gap: 8px; }
.basket-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; background: #fff; position: relative; }
.bi-top { display: flex; align-items: center; gap: 7px; }
.bi-no { font-size: 10.5px; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.bi-src { font-size: 9.5px; color: var(--muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-stem { font-size: 12px; line-height: 1.6; color: var(--ink2); margin: 7px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bi-img { display: block; width: 100%; max-height: 260px; object-fit: contain; margin-top: 7px; border: 1px solid var(--line2); border-radius: 8px; background: #fafbfc; }
.bi-noimg { margin-top: 7px; padding: 8px 10px; border: 1px dashed #e6c98a; border-radius: 8px; background: #fffbf0; font-size: 10.5px; color: #9a6a00; }
.pb-qimg { display: block; width: 100%; max-height: 220px; object-fit: contain; margin-top: 6px; border: 1px solid var(--line2); border-radius: 8px; background: #fafbfc; }
.pb-noimg { margin-top: 6px; padding: 7px 9px; border: 1px dashed #e6c98a; border-radius: 8px; background: #fffbf0; font-size: 10px; color: #9a6a00; }
.bi-x { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: #b6bccb; cursor: pointer; font-size: 14px; line-height: 1; }
.bi-x:hover { background: var(--red-soft); color: var(--red); }
.bi-chips { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.bi-bottom { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; flex-wrap: nowrap; }
.bi-tags { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.bi-kp { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-ops { display: flex; gap: 4px; margin-top: 0; flex: none; }
.bi-op { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 4px 7px; font-size: 10px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.bi-op:hover { border-color: #b9b5fb; color: var(--brand); }
.bi-op:disabled { opacity: .35; cursor: not-allowed; }
.bi-op.danger { color: var(--red); }
.bi-op.danger:hover { border-color: #ffb3ad; background: var(--red-soft); }
.basket-foot { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line); }
.basket-stat { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 9px; }
.basket-stat b { color: var(--ink); }

.empty { text-align: center; padding: 38px 18px; color: var(--muted); }
.empty .eico { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; background: #f5f6fb; color: #a8afc2; }
.empty h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--ink2); }
.empty p { margin: 0; font-size: 12px; line-height: 1.7; }
.empty .btn { margin-top: 14px; }

/* ==================== 打卡 ==================== */
.checkin-head { margin-bottom: 16px; }
.checkin-head h3 { margin: 0 0 6px; font-size: 18px; }
.checkin-head p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.ck-list { display: grid; gap: 10px; }
.ck-item { border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; }
.ck-row { display: flex; align-items: center; gap: 10px; }
.ck-mask { font-size: 17px; letter-spacing: 3px; font-weight: 600; color: var(--ink); font-family: "KaiTi", "STKaiti", serif; }
.ck-hint { font-size: 10.5px; color: var(--muted); }
.ck-input { margin-left: auto; width: 150px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; font-size: 13.5px; background: #fbfcff; outline: none; }
.ck-input:focus { border-color: #b9b5fb; box-shadow: 0 0 0 4px rgba(99, 91, 255, .09); }
.ck-res { margin-top: 8px; font-size: 12px; padding: 8px 10px; border-radius: 9px; display: flex; align-items: center; gap: 6px; }
.ck-res.ok { background: var(--green-soft); color: #0c7c3d; }
.ck-res.no { background: var(--red-soft); color: #c92a2f; }
.ck-sum { margin: 16px 0; padding: 14px; border-radius: 13px; background: #f7f6ff; text-align: center; }
.ck-sum b { font-size: 26px; color: var(--brand); }
.ck-sum span { font-size: 12.5px; color: var(--muted); }

/* 相似题 */
.sim-list { display: grid; gap: 11px; }
.sim-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.sim-top { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.sim-stem { font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.sim-ans { margin-top: 9px; font-size: 12px; line-height: 1.7; color: var(--green); background: var(--green-soft); border-radius: 9px; padding: 8px 10px; white-space: pre-wrap; }
.sim-act { margin-top: 10px; display: flex; gap: 8px; }

/* ==================== 练习 ==================== */
.practice-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.practice-main { min-height: 320px; }
.practice-card { border: 1px solid #e3e0fd; border-radius: 18px; padding: 22px; background: linear-gradient(160deg, #fbfaff, #fff 60%); }
.practice-card .pno { font-size: 12px; color: var(--muted); }
.practice-card .pstem { font-size: 15px; line-height: 1.9; margin: 12px 0 18px; white-space: pre-wrap; }
.practice-ans { background: var(--green-soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.8; color: #0c7c3d; margin-bottom: 16px; white-space: pre-wrap; }
.practice-ans h5 { margin: 0 0 6px; font-size: 11px; color: #0c7c3d; opacity: .8; letter-spacing: 1px; }
.practice-done { text-align: center; padding: 40px 20px; }
.practice-done .big { font-size: 44px; font-weight: 700; color: var(--brand); }
.practice-done p { color: var(--muted); font-size: 13px; }

/* ==================== 弹窗 ==================== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(18, 21, 38, .45); backdrop-filter: blur(6px); animation: fade .18s ease; }
.modal-panel {
  position: relative; width: min(820px, calc(100vw - 32px)); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 22px; padding: 26px 26px 24px; box-shadow: 0 40px 100px -30px rgba(18, 21, 60, .5);
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-x { position: sticky; float: right; top: 0; margin: -8px -8px 0 10px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f5f6fb; color: #8a92a6; font-size: 19px; line-height: 1; cursor: pointer; z-index: 2; }
.modal-x:hover { background: #eceef7; color: var(--ink); }
.modal-panel h3 { margin: 0 0 6px; font-size: 19px; }
.modal-sub { margin: 0 0 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: #20243a; color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); z-index: 120; animation: toastin .22s ease;
  max-width: 80vw;
}
.toast.ok { background: #0f7a45; }
.toast.err { background: #b3252b; }

/* ==================== 其他 ==================== */
.skeleton { background: linear-gradient(90deg, #f2f3f9 25%, #f8f9fd 37%, #f2f3f9 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
.loading-row { height: 58px; margin-bottom: 8px; }
.small-muted { font-size: 11px; color: var(--muted); }
.divider { height: 1px; background: var(--line2); margin: 14px 0; }
.mono { font-variant-numeric: tabular-nums; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes flash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 3px rgba(124, 92, 252, .35); } }

@media (min-width: 901px) {
  .kp-page > .week-col { position: sticky; top: 88px; }
  body.wrong-fixed { overflow: hidden; }
  #view.view-wrong {
    height: calc(100vh - var(--topbar-h, 76px)); display: flex; flex-direction: column;
    overflow: hidden; box-sizing: border-box;
  }
  #view.view-wrong .page-head { flex: none; }
  #view.view-wrong .grid3.wrong-page {
    flex: 1; min-height: 0; height: auto; overflow: hidden; align-items: stretch;
  }
  #view.view-wrong .grid3.wrong-page > .col {
    height: 100%; max-height: 100%; overflow-y: auto;
  }
  body.kp-fixed { overflow-y: auto; }
  #view.view-kp {
    height: auto; min-height: calc(100vh - var(--topbar-h, 76px)); display: block;
    overflow: visible; box-sizing: border-box; padding-bottom: 28px;
  }
  #view.view-kp .page-head { flex: none; }
  #view.view-kp .grid3.kp-page2 {
    flex: 1; min-height: 0; height: auto; overflow: hidden; align-items: stretch;
  }
  #view.view-kp .grid3.kp-page2 > .col {
    height: 100%; max-height: 100%; overflow-y: auto;
  }
}
@media (min-width: 1241px) {
  .kp-page > .advice-col { position: sticky; top: 88px; }
}
@media (max-width: 1240px) {
  .grid3 { grid-template-columns: 270px minmax(0, 1fr); }
  .grid3 > .col:last-child { grid-column: 1 / -1; }
  .col.scroll { max-height: none; }
  .practice-wrap { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-side { min-height: 100vh; }
  .topbar { padding: 10px 14px; gap: 12px; }
  .tb-welcome .sub { display: none; }
  .tabs { padding: 14px 14px 0; gap: 8px; }
  .tab { padding: 10px 11px; gap: 9px; }
  .tab .ic { width: 34px; height: 34px; }
  .tab .tt small { display: none; }
  .tab .num { display: none; }
  .view { padding: 14px 14px 0; }
  .grid3 { grid-template-columns: 1fr; }
  .grid3.wrong-page { grid-template-columns: 1fr; }
  .grid3 > .col:last-child { grid-column: auto; }
  .grid3.kp-page { display: flex; flex-direction: column; }
  .kp-page > .col { width: 100%; }
  .kp-page > .kp-col { order: 1; }
  .kp-page > .week-col { order: 2; }
  .kp-page > .advice-col { order: 3; }
  .page-head { flex-wrap: wrap; align-items: center; }
  .qblocks { grid-template-columns: 1fr; }
  .sum-stats { gap: 18px; }
  .practice-wrap { grid-template-columns: 1fr; }
  .uk-name { display: none; }
}
@media (max-width: 560px) {
  .tb-brand-txt { display: none; }
  .recharge { display: none; }
  .userbox { padding: 5px 9px; gap: 7px; }
  .ub-ava { display: none; }
  .ub-pills { display: flex; gap: 6px; margin-top: 2px; font-size: 9.5px; }
  .ub-pills i { display: none; }
  .ub-pills b { font-size: 10.5px; }
  .ub-grade { display: inline; font-size: 9px; padding: 1px 5px; }
  .ub-name { font-size: 12px; }
  .ub-recharge { height: 24px; padding: 0 7px; font-size: 10.5px; }
  .tb-welcome .hi { font-size: 13px; }
  .tb-right { gap: 8px; }
}

/* ==================== 知识点看板 v2 ==================== */
.kp-page2 { grid-template-columns: 305px minmax(0, 1fr) 345px; }
.kp-range { display: flex; width: 100%; margin-bottom: 12px; }
.kp-range button { flex: 1; padding: 0 4px; }

/* ---------- 家长一眼看的体检卡 ---------- */
.kp-summary {
  flex: none; display: flex; align-items: center; gap: 18px;
  padding: 13px 18px; margin: 0 0 14px; border-radius: 16px;
  background: linear-gradient(110deg, #fff8f3, #f7f9ff 65%);
  border: 1px solid #f0dfd2; box-shadow: 0 10px 28px -26px rgba(80, 50, 30, .45);
}
.ks-main { flex: 1 1 auto; min-width: 0; }
.ks-eyebrow { font-size: 10px; letter-spacing: 1.2px; color: #b47b4d; font-weight: 700; }
.ks-main h3 { margin: 3px 0 4px; font-size: 17px; line-height: 1.4; color: var(--ink); }
.ks-main h3 b { color: #e04b3f; font-size: 22px; padding: 0 2px; }
.ks-main p { margin: 0; font-size: 11.5px; color: #7b8194; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-stats { display: flex; gap: 22px; flex: none; padding-left: 18px; border-left: 1px dashed #ead9cb; }
.ks-stats div { text-align: center; min-width: 50px; }
.ks-stats b { display: block; font-size: 24px; line-height: 1.1; }
.ks-stats span { font-size: 10.5px; color: var(--muted); }
.ks-stats .red { color: #e04b3f; }
.ks-stats .amber { color: #d28a1c; }
.ks-stats .green { color: #12805a; }
.kp-summary-empty { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 13px 18px; margin: 0 0 14px; background: #f4fbf7; border: 1px solid #d8eddf; border-radius: 16px; }
.kp-summary-empty b { font-size: 14px; color: #12805a; }
.kp-summary-empty span { font-size: 11.5px; color: var(--muted); }

/* ---------- 左侧薄弱知识点排行 ---------- */
.kp-rank-wrap { margin: 2px 0 4px; }
.kp-rank { display: grid; gap: 7px; }
.kr-row {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  padding: 8px 9px; cursor: pointer; font-family: inherit; transition: .15s;
}
.kr-row:hover { border-color: #e6b8ae; background: #fffdfc; }
.kr-no {
  flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: #f2f3f8; color: #8a91a4; font-size: 11px; font-weight: 700;
}
.kr-row.hot .kr-no { background: #fde8e4; color: #d6453a; }
.kr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kr-name { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-chapter { font-size: 9.5px; color: #9aa1b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-bar { height: 4px; border-radius: 4px; background: #f1f2f7; overflow: hidden; margin-top: 3px; }
.kr-bar i { display: block; height: 100%; border-radius: 4px; background: #d9b28c; }
.kr-row.hot .kr-bar i { background: #e77663; }
.kr-num { flex: none; text-align: right; min-width: 38px; }
.kr-num b { display: block; font-size: 16px; line-height: 1.1; color: #d6453a; }
.kr-num small { font-size: 9px; color: var(--muted); }
.kr-note { font-size: 9.5px; color: #a0a6b5; line-height: 1.5; margin: 7px 2px 0; }
.kp-calendar { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 9px; }
.kp-calendar summary { cursor: pointer; font-size: 10.5px; color: var(--muted); list-style: none; }
.kp-calendar summary::-webkit-details-marker { display: none; }
.kp-calendar summary::before { content: "▸"; display: inline-block; margin-right: 4px; transition: .15s; }
.kp-calendar[open] summary::before { transform: rotate(90deg); }

/* ---------- 右侧家长建议 ---------- */
.parent-card { padding: 12px 13px; border-radius: 13px; border: 1px solid #f0dfc8; background: #fffbf4; }
.pc-title { font-size: 11px; font-weight: 700; color: #b47b4d; letter-spacing: .5px; margin-bottom: 7px; }
.parent-card p { margin: 0 0 7px; font-size: 11.5px; line-height: 1.7; color: #5c6376; }
.parent-card p:last-child { margin-bottom: 0; }
.parent-card b { color: #c94f3d; }
.adv-more { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.adv-more summary { cursor: pointer; font-size: 10.5px; color: var(--muted); list-style: none; }
.adv-more summary::-webkit-details-marker { display: none; }
.adv-more summary::before { content: "▸"; display: inline-block; margin-right: 4px; transition: .15s; }
.adv-more[open] summary::before { transform: rotate(90deg); }
.adv-more > .adv-sec:first-of-type { margin-top: 10px; }

.period-title { display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: var(--muted); margin: 10px 2px 7px; }
.period-title b { font-size: 12px; }
.all-chip {
  width: 100%; height: 27px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--muted); font-size: 11px; cursor: pointer; transition: .16s;
}
.all-chip.on { background: var(--brand-soft); border-color: #d5d1fb; color: var(--brand); font-weight: 600; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dchip {
  border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 5px 1px;
  text-align: center; cursor: pointer; transition: .16s; min-width: 0; line-height: 1.2;
}
.dchip b { display: block; font-size: 13px; color: var(--ink2); font-weight: 600; }
.dchip span { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; }
.dchip i { display: block; font-size: 8px; color: var(--muted); font-style: normal; margin-top: 2px; min-height: 9px; white-space: nowrap; overflow: hidden; }
.dchip.has { border-color: #ddd9fb; background: #fcfbff; }
.dchip.future { opacity: .35; cursor: default; background: #fafbfe; }
.dchip.on { background: linear-gradient(135deg, #5b52ea, #7c5cfc); border-color: transparent; box-shadow: 0 6px 14px -8px rgba(79,70,229,.8); }
.dchip.on b, .dchip.on span, .dchip.on i { color: #fff; }
.dchip.sm { padding: 4px 0; border-radius: 7px; }
.dchip.sm b { font-size: 10.5px; }
.dchip.sm i { font-size: 7px; min-height: 0; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.term-months { display: grid; gap: 6px; }
.mchip {
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 8px 10px; cursor: pointer; transition: .16s; line-height: 1.3;
}
.mchip b { font-size: 12.5px; color: var(--ink2); }
.mchip span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.mchip.on { border-color: #cfc9fb; background: linear-gradient(135deg, #f4f2ff, #fff); }
.mchip.on b { color: var(--brand); }

.day-head { display: flex; gap: 8px; align-items: baseline; margin: 14px 2px 9px; }
.day-head b { font-size: 13px; }
.day-head span { font-size: 11px; color: var(--muted); }
.cat-block { border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; background: #fff; }
.cat-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.cat-head b { margin-left: auto; font-size: 10.5px; color: var(--muted); background: #f4f5fb; border-radius: 20px; padding: 1px 8px; font-weight: 500; }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cat-dot.mastered { background: var(--green); }
.cat-dot.unmastered { background: var(--red); }
.cat-dot.apply { background: var(--amber); }
.cat-dot.forgotten { background: var(--violet); }
.cat-item { display: flex; align-items: center; gap: 6px; padding: 7px 0 2px; border-top: 1px dashed #f2f3f9; }
.cat-head + .cat-item { border-top: 0; }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 12.5px; color: var(--ink); line-height: 1.4; word-break: break-all; }
.ci-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.src { font-size: 9.5px; color: var(--muted); background: #f5f6fb; border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.src.red { color: #c92a2f; background: var(--red-soft); }
.cat-empty { font-size: 10.5px; color: #b3b9c9; padding: 4px 0 1px; }
.lvl { font-size: 9px; line-height: 1; padding: 3px 6px; border-radius: 5px; white-space: nowrap; flex: none; }
.lvl.hard { background: var(--red-soft); color: #c92a2f; }
.lvl.mid { background: var(--amber-soft); color: #a76a05; }
.lvl.easy { background: var(--teal-soft); color: #087b77; }

.kp-list { margin-top: 4px; }
.kl-head { font-size: 11px; color: var(--muted); margin: 12px 2px 7px; }
.kl-head b { color: var(--ink2); }
.wkp { border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; margin-bottom: 7px; }
.wkp-top { display: flex; align-items: flex-start; gap: 6px; }
.wkp-top b { font-size: 12.5px; flex: 1; line-height: 1.4; }
.kst { font-size: 9px; padding: 3px 6px; border-radius: 5px; white-space: nowrap; flex: none; }
.kst.mastered { background: var(--green-soft); color: #0c7c3d; }
.kst.unmastered { background: var(--red-soft); color: #c92a2f; }
.kst.apply { background: var(--amber-soft); color: #a76a05; }
.kst.forgotten { background: var(--violet-soft); color: #6d30d4; }
.wkp-meta { font-size: 10px; color: var(--muted); margin-top: 5px; }
.wkp-meta b { color: var(--ink2); }
.wkp-foot { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.wkp-foot .lvl { margin-left: auto; }

.focus-sum { font-size: 12px; color: var(--ink2); margin-bottom: 10px; line-height: 1.6; }
.focus-sum b { font-size: 18px; color: var(--brand); }
.focus-sum span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.focus-list { display: grid; gap: 7px; }
.focus-item { display: flex; align-items: flex-start; gap: 13px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .15s; }
.focus-item:hover { border-color: #c9c5fb; background: #fdfcff; }
.fi-no { width: 29px; height: 29px; border-radius: 9px; background: #f1efff; color: #6a5cf0; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px; }
.fi-main { flex: 1; min-width: 0; }
.fi-content { font-size: 16px; line-height: 1.9; color: #30364a; font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.fi-reason { font-size: 10px; color: var(--muted); margin-top: 2px; }
.focus-tip { font-size: 10.5px; color: var(--muted); margin: 10px 2px 0; }
.focus-actions { display: flex; gap: 8px; margin-top: 14px; }
.focus-check { display: grid; gap: 8px; }
@media (min-width: 901px) {
  .focus-check.two-col { grid-template-columns: 1fr 1fr; }
  .focus-check.one-col { grid-template-columns: 1fr; }
}
.fc-item { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; }
.fc-title { font-size: 10.5px; font-weight: 700; color: var(--brand); margin-bottom: 6px; letter-spacing: .3px; }
.fc-q { display: flex; align-items: center; gap: 8px; }
.fc-q .ck-mask { font-size: 15px; }
.fc-item.has-content .fc-q { display: block; line-height: 1.9; }
.fc-item.has-content .ck-mask { font-family: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: .5px; color: var(--ink); }
.fc-item.has-content .ck-hint { margin-top: 5px; }
.ck-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.ck-top { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; font-size: 11px; color: var(--muted); }
.ck-prog { flex: 1; height: 6px; border-radius: 6px; background: #f0f1f7; overflow: hidden; }
.ck-prog i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6f63ff, #9b8cff); transition: width .25s; }
.ck-card { padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.ck-card .fc-title { font-size: 11.5px; }
.ck-card .fc-q { margin: 6px 0 4px; line-height: 1.9; }
.ck-card .ck-mask { font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: .4px; }
.ck-opt {
  display: flex; align-items: center; gap: 8px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 12.5px; color: var(--ink2); cursor: pointer; transition: .15s;
  font-family: inherit; text-align: left;
}
.ck-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid #c8ccd8; background: #fff; }
.ck-opt:hover { border-color: #c9c5fb; background: #fbfaff; }
.ck-opt.ok { border-color: #7fd4a2; background: #eefbf3; color: #0c7c3d; font-weight: 600; }
.ck-opt.ok .ck-dot { border-color: #23a461; background: #23a461; box-shadow: inset 0 0 0 3px #eefbf3; }
.ck-opt.bad { border-color: #f0a49c; background: #fff5f4; color: #c62828; font-weight: 600; }
.ck-opt.bad .ck-dot { border-color: #e05b4f; background: #e05b4f; box-shadow: inset 0 0 0 3px #fff5f4; }
.ck-opt:disabled { cursor: default; }
.ck-fb { margin-top: 10px; padding: 8px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; }
.ck-fb.ok { background: #eefbf3; color: #0c7c3d; }
.ck-fb.no { background: #fff5f4; color: #c62828; }
.ck-tip { margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.word-modes { display: grid; gap: 8px; margin-top: 12px; }
.word-mode {
  text-align: left; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 11px 13px; cursor: pointer; font-family: inherit;
  transition: .15s;
}
.word-mode:hover { border-color: #b9b5fb; background: #fbfaff; }
.word-mode b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.word-mode span { display: block; font-size: 11px; line-height: 1.55; color: var(--muted); }
.focus-check .ck-input { width: 100%; margin: 7px 0 0; height: 36px; }
.ck-sum { margin-bottom: 12px; }

.adv-sec { display: flex; align-items: baseline; gap: 7px; font-size: 13px; font-weight: 600; margin: 4px 0 9px; }
.adv-sec:not(:first-child) { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line2); }
.adv-sec span { font-size: 9.5px; color: var(--muted); font-weight: 400; }
.adv-sub { display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: var(--ink2); font-weight: 600; margin: 14px 0 7px; }
.adv-sub span { font-size: 9px; color: var(--muted); font-weight: 400; }
.adv-empty { font-size: 10.5px; color: #aeb4c4; padding: 2px 2px 6px; }
.adv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.adv-chips .chip { font-size: 10px; }
.rank-card { border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; margin-bottom: 7px; background: #fff; }
.rc-top { display: flex; align-items: center; gap: 5px; }
.rc-top b { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-rate { font-size: 9.5px; color: var(--red); background: var(--red-soft); border-radius: 5px; padding: 2px 5px; white-space: nowrap; }
.rc-meta { font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.rc-tag { font-size: 10px; color: var(--amber); margin-top: 5px; }
.rc-tag.warn { color: #c92a2f; }
.adv-row {
  width: 100%; display: flex; align-items: center; gap: 6px; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 9px;
  margin-bottom: 5px; cursor: pointer; transition: .16s;
}
.adv-row:hover { border-color: #d5d1fb; background: #fbfaff; }
.adv-row > span:first-child { flex: 1; min-width: 0; }
.adv-row b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-row .src { margin-top: 3px; display: inline-block; }
.hidden-mini { text-align: center; padding: 26px 12px; color: var(--muted); }
.hidden-mini svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; display: block; margin: 0 auto 8px; color: var(--brand); }
.hidden-mini b { display: block; font-size: 12.5px; color: var(--ink2); margin-bottom: 4px; }
.hidden-mini span { display: block; font-size: 10.5px; margin-bottom: 12px; }

@media (min-width: 901px) {
  .kp-page2 > .kp-left, .kp-page2 > .kp-right { position: sticky; top: 88px; }
}
@media (max-width: 1240px) {
  .kp-page2 { grid-template-columns: 280px minmax(0, 1fr); }
  .kp-page2 > .kp-right { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 900px) {
  .kp-page2 { display: flex; flex-direction: column; }
  .kp-page2 > .col { width: 100%; position: static; max-height: none; }
  .kp-page2 > .kp-mid { order: 1; }
  .kp-page2 > .kp-left { order: 2; }
  .kp-page2 > .kp-right { order: 3; }
  .month-grid { gap: 2px; }
}

/* ==================== 错题重练（手写 PDF） ==================== */
.practice-wrap2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: start; }
.pdf-range { width: 100%; margin-bottom: 12px; }
.pdf-range button { flex: 1; padding: 0 4px; }
.pdf-card { display: flex; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 9px; background: #fff; }
.pdf-thumb {
  width: 92px; height: 120px; border-radius: 10px; overflow: hidden; background: #f4f5fb;
  display: grid; place-items: center; flex: none; color: #9aa1b5; font-size: 10px;
}
.pdf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdf-question .pdf-thumb { background: #fafbfc; }
.pdf-question .pdf-thumb img { object-fit: contain; background: #fff; }
.pdf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pdf-top { display: flex; align-items: flex-start; gap: 6px; }
.pdf-top b { flex: 1; font-size: 12.5px; line-height: 1.4; word-break: break-all; }
.pdf-meta { font-size: 10px; color: var(--muted); }
.pdf-meta b { color: var(--ink2); }
.pdf-dates { display: flex; flex-direction: column; gap: 1px; font-size: 10px; color: var(--muted); margin: 2px 0; }
.pdf-dates i { font-style: normal; color: #aeb4c4; }
.pdf-dates .pdate { color: var(--ink2); }
.pdf-card .btn { margin-top: auto; align-self: flex-start; }
.pb-list { display: grid; gap: 7px; }
.pb-item { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 9px 22px 9px 10px; background: #fff; position: relative; }
.pb-item .bi-x { top: 4px; right: 4px; }
.pb-main { flex: 1; min-width: 0; }
.pb-main b { font-size: 12px; line-height: 1.4; word-break: break-all; }
.pb-meta { font-size: 10px; color: var(--muted); margin-top: 3px; }
.pb-dates { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; }
.pb-dates .pdate { font-size: 10px; color: var(--ink2); }
.pb-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pb-foot .small-muted { margin: 10px 2px 0; line-height: 1.7; }

@media (max-width: 900px) {
  .practice-wrap2 { grid-template-columns: 1fr; }
}


/* 知识点范围选择 / 文档 / 打卡 */
.kp-ctx-bar { display: flex; justify-content: center; margin: -2px 0 10px; }
.kp-ctx-inner { display: flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; box-shadow: 0 4px 16px rgba(50,60,90,.05); }
.kp-ctx-sub { border: 0; background: transparent; color: #6b7280; font-size: 13px; padding: 7px 18px; border-radius: 10px; cursor: pointer; font-family: inherit; }
.kp-ctx-sub.on { background: #6c5ce7; color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(108,92,231,.3); }
.kp-ctx-pick { border: 0; border-right: 1px solid #eef0f5; background: transparent; color: #4e5969; font-size: 11.5px; padding: 7px 12px; cursor: pointer; font-family: inherit; }
.kp-ctx-pick span { color: #9aa3b2; margin-left: 4px; }
.kp-ctx-form { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 4px; }
.kp-ctx-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #6b7280; }
.kp-ctx-form select { height: 34px; border: 1px solid #e1e5ee; border-radius: 7px; padding: 0 7px; font-size: 12px; background: #fff; }
.kp-doc { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 9px; margin-bottom: 10px; }
.kp-doc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.kp-doc-head b { font-size: 13px; color: #30364a; }
.kp-doc-head span { font-size: 10.5px; color: #8a93a6; }
.kp-doc-pages { display: grid; gap: 6px; }
.kp-doc-pages img { width: 100%; height: auto; display: block; border: 1px solid #f0f2f7; border-radius: 6px; background: #fff; }
.kp-my-checks { margin-top: 12px; border-top: 1px solid #eef0f5; padding-top: 9px; }
.kp-check-title { font-size: 11px; color: #8a93a6; margin-bottom: 6px; }
.kp-check-row { border: 1px solid #eef0f5; border-radius: 8px; padding: 7px 9px; margin-bottom: 5px; font-size: 11px; color: #6b7280; }
.kp-check-row > span { margin-right: 10px; }
.kp-check-row .ok { color: #0f7b45; font-weight: 700; }
.kp-check-row .wait { color: #b17a00; }
.kp-check-items { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: #30364a; }
.kp-check-items .right { color: #0f7b45; }
.kp-check-items .wrong { color: #cf3e36; }
.kp-questions { max-height: 42vh; overflow: auto; display: grid; gap: 6px; margin: 8px 0; }
.kp-q { display: flex; gap: 8px; padding: 8px 9px; background: #fbfcff; border: 1px solid #eef0f5; border-radius: 8px; }
.kq-no { width: 22px; height: 22px; flex: none; border-radius: 6px; background: #f1efff; color: #6c5ce7; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.kp-q b { font-size: 12px; }
.kp-q p { margin: 3px 0 0; font-size: 11px; line-height: 1.6; color: #6b7280; white-space: pre-wrap; }
.kp-upload-box { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px dashed #c8d3e8; border-radius: 10px; padding: 15px; cursor: pointer; background: #fbfcff; }
.kp-upload-box .kp-upload-ico { font-size: 22px; color: #6c5ce7; }
.kp-upload-box b { font-size: 12px; }
.kp-upload-box small { font-size: 10px; color: #8a93a6; }
.kp-ans-name { font-size: 10.5px; color: #0f7b45; }
@media (max-width: 900px) { .kp-ctx-form { grid-template-columns: repeat(2, 1fr); } .kp-ctx-inner { flex-wrap: wrap; } }

/* 知识点双统计 / 全宽 / 打卡记录 */
.kp-main-full { margin-top: 10px; }
.kp-main-full .kp-mid { width: 100%; }
.kp-summary .kp-stat-grid { flex: 1 1 100%; width: 100%; }
.kp-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kp-stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; box-shadow: 0 4px 16px rgba(50,60,90,.04); }
.kp-stat-card .ks-eyebrow { font-size: 10.5px; letter-spacing: 1px; color: #8a93a6; margin-bottom: 4px; }
.kp-stat-card .ks-big { font-size: 15px; color: #30364a; font-weight: 600; }
.kp-stat-card .ks-big b { font-size: 24px; color: #6c5ce7; margin: 0 2px; }
.kp-stat-card .ks-nums { display: flex; gap: 16px; margin-top: 5px; font-size: 12px; color: #6b7280; }
.kp-stat-card .ks-nums b { font-size: 17px; }
.kp-stat-card .ks-nums .ok { color: #0f7b45; }
.kp-stat-card .ks-nums .bad { color: #cf3e36; }
.kp-stat-card .ks-repeat { margin-top: 4px; font-size: 10.5px; color: #8a93a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-history { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; }
.kp-hist-head { font-size: 13px; font-weight: 700; color: #30364a; margin-bottom: 8px; }
.kp-hist-head span { font-weight: 400; font-size: 10.5px; color: #8a93a6; margin-left: 6px; }
.kp-hist-empty { color: #8a93a6; font-size: 11.5px; padding: 6px 0; }
.kp-hist-list { display: grid; gap: 5px; max-height: 240px; overflow: auto; }
.kp-hist-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid #eef0f5; background: #fbfcff; border-radius: 8px; padding: 7px 10px; font-size: 11px; cursor: pointer; color: #4e5969; }
.kp-hist-row:hover { border-color: #c9c5fb; background: #f6f4ff; }
.kh-date { color: #8a93a6; }
.kh-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-status.ok { color: #0f7b45; font-weight: 700; }
.kh-status.wait { color: #b17a00; }
.kh-count { color: #8a93a6; }
.kp-check-detail { display: grid; grid-template-columns: 1fr; gap: 12px; max-height: 70vh; overflow: auto; }
.kcd-system { overflow: visible; }
.kcd-system h4, .kcd-answer h4 { margin: 0 0 6px; font-size: 12px; color: #6b7280; }
.kcd-kp { border: 1px solid #eef0f5; border-radius: 8px; padding: 7px 9px; margin-bottom: 5px; background: #fbfcff; }
.kcd-kp b { font-size: 12px; }
.kcd-kp p { margin: 3px 0; font-size: 11px; line-height: 1.6; color: #6b7280; white-space: pre-wrap; }
.kcd-res { font-size: 10px; color: #8a93a6; }
.kcd-res.ok { color: #0f7b45; }
.kcd-res.bad { color: #cf3e36; }
.kcd-answer { min-height: 280px; background: #f4f6fa; border-radius: 8px; overflow: hidden; }
.kcd-answer iframe { width: 100%; height: 100%; min-height: 300px; border: 0; background: #fff; }
@media (max-width: 900px) { .kp-stat-grid { grid-template-columns: 1fr; } .kp-check-detail { grid-template-columns: 1fr; } }

.kcd-answer-body { height: 100%; overflow: auto; padding: 5px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.kcd-answer-body img { width: 100%; max-width: 800px; height: auto; display: block; background: #fff; }

/* 今日知识点 / 历史知识点 并排 */
.kp-two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: 12px; align-items: start; margin-top: 12px; }
.kp-today, .kp-history-col { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; min-width: 0; }
.kp-today .col-head, .kp-history-col .col-head { margin-bottom: 8px; }
.kp-history-col #kpHistory { margin: 0; border: 0; background: transparent; padding: 0; }
.kp-history-col .kp-hist-list { max-height: calc(100vh - 310px); }
.kp-history-col .kp-hist-row { flex-wrap: wrap; }
.kp-history-col .kh-sub { flex-basis: 100%; }
@media (max-width: 1100px) { .kp-two-col { grid-template-columns: 1fr; } .kp-history-col .kp-hist-list { max-height: 320px; } }

/* 顶栏知识点范围按钮：在知识点标签左侧 */
.kp-top-ctx { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 17px; margin-right: 7px; border: 1.5px solid #6c5ce7; border-radius: 13px; background: #f4f1ff; color: #4b3fc4; font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 14px rgba(108,92,231,.14); }
.kp-top-ctx:hover { background: #ece7ff; }
.kp-top-ctx span { color: #7b6ee8; font-size: 12px; }
.kp-top-ctx[hidden] { display: none !important; }
@media (max-width: 1200px) { .kp-top-ctx { max-width: 330px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 48px; padding: 0 12px; font-size: 12px; } }

/* 一个知识点一张卡片 */
.kp-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.kp-card { background: #fff; border: 1px solid #e7eaf2; border-radius: 12px; padding: 12px 14px; box-shadow: 0 3px 12px rgba(50,60,90,.035); }
.kp-card-title { font-size: 18px; font-weight: 800; color: #4f63d8; letter-spacing: .5px; margin-bottom: 5px; font-family: "KaiTi", "Microsoft YaHei", sans-serif; }
.kp-card-content { font-size: 14px; line-height: 1.85; color: #30364a; white-space: pre-wrap; word-break: break-word; }
.kp-card-ch { margin-top: 7px; padding-top: 6px; border-top: 1px dashed #eef0f5; font-size: 10px; color: #9aa3b2; }

.kq-src { display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 10px; background: #f1efff; color: #6c5ce7; font-size: 9.5px; vertical-align: 1px; }

.kp-card-src { display: inline-block; padding: 1px 6px; border-radius: 9px; background: #f1efff; color: #6c5ce7; margin-right: 2px; }

/* 会员 */
.kp-member-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(100deg,#f4f1ff,#fbfcff); border: 1px solid #ded8ff; border-radius: 12px; padding: 9px 14px; margin: 0 0 10px; }
.km-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 11.5px; color: #6b7280; }
.km-left b { color: #30364a; font-size: 12.5px; }
.km-badge { background: #6c5ce7; color: #fff; border-radius: 9px; padding: 2px 8px; font-size: 10px; font-weight: 700; }
.km-badge.off { background: #e8e6f5; color: #6c5ce7; }
.km-date { color: #9aa3b2; }
.km-btn { border: 0; background: #6c5ce7; color: #fff; border-radius: 8px; padding: 7px 13px; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.km-btn:hover { background: #5b4bd6; }
.kp-member-form { grid-template-columns: 1fr 1fr !important; }
.member-balance { margin: 9px 0; font-size: 12px; color: #6b7280; }
.member-balance b { color: #6c5ce7; font-size: 15px; }
.recharge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0; }
.recharge-amt { height: 44px; border: 1px solid #d9d5fb; border-radius: 9px; background: #f7f6ff; color: #4b3fc4; font-size: 12px; font-weight: 700; cursor: pointer; }
.recharge-amt:hover { background: #ece7ff; }
.lc-tip a { color: #6c5ce7; font-weight: 700; text-decoration: none; }

.recharge-sub { font-size: 10.5px; color: #8a93a6; margin: 12px 0 6px; }

/* 我的班级 */
.class-join { display:flex; gap:8px; background:#fff; border:1px solid #e8ebf2; border-radius:10px; padding:10px; margin-bottom:12px; }
.class-join input { flex:1; border:1px solid #e1e5ee; border-radius:8px; padding:8px 10px; font-size:13px; }
.cls-card { background:#fff; border:1px solid #e8ebf2; border-radius:10px; padding:12px; margin-bottom:12px; }
.cls-card-head b { font-size:14px; }
.cls-card-head span { display:block; color:#86909c; font-size:11px; margin-top:3px; }
.cls-assign { border-top:1px solid #f0f2f6; padding:9px 0; display:flex; gap:8px; align-items:center; }
.cls-assign-main { flex:1; min-width:0; }
.cls-assign-main b { display:block; font-size:12.5px; }
.cls-assign-main span { display:block; color:#6b7280; font-size:11px; margin-top:2px; }
.cls-assign-main a { display:inline-block; font-size:11px; color:#1a6feb; margin-top:3px; }
.cls-submitted { color:#16803c; font-size:11px; background:#e8f7ee; padding:2px 7px; border-radius:4px; }
.cls-foot { margin-top:5px; }
.cls-analysis { margin-top:8px; }
.cls-analysis-title { font-size:12px; font-weight:600; margin-bottom:5px; }
.cls-an-table { width:100%; border-collapse:collapse; font-size:11.5px; }
.cls-an-table th,.cls-an-table td { border-bottom:1px solid #f0f2f6; padding:5px 3px; text-align:left; }
.cls-an-status { padding:1px 5px; border-radius:4px; font-size:10.5px; }
.cls-an-status.master { background:#e8f7ee; color:#16803c; }
.cls-an-status.uncertain { background:#fff6e6; color:#b76e00; }
.cls-an-status.weak { background:#ffefef; color:#d4380d; }
.cls-loading { color:#9aa3b2; font-size:12px; padding:14px; text-align:center; }

#view { box-sizing: border-box; overflow-x: hidden; }
.class-join, .cls-card { box-sizing: border-box; }

.class-msg { background:#fff4f2; border:1px solid #ffc9bd; color:#b42318; border-radius:9px; padding:9px 11px; font-size:12px; line-height:1.6; margin-bottom:10px; }
.cls-return-note { color:#d4380d; font-size:11px; margin-top:5px; background:#fff6f4; border-radius:5px; padding:4px 6px; }

/* 试卷知识点掌握分组 */
.kp-mastery { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.km-cat { border: 1px solid #e8ebf2; border-radius: 10px; padding: 9px 11px; background: #fff; }
.km-cat.weak { border-left: 3px solid #e5484d; }
.km-cat.apply { border-left: 3px solid #d89614; }
.km-cat.master { border-left: 3px solid #1f9d55; }
.km-cat-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 6px; }
.km-cat-head span { margin-left: auto; font-size: 10.5px; color: #86909c; }
.km-level { display: flex; gap: 7px; align-items: flex-start; padding: 3px 0; }
.km-lv { flex: none; width: 34px; font-size: 10.5px; color: #86909c; padding-top: 3px; }
.km-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.km-chip { font-size: 11px; padding: 3px 7px; border-radius: 5px; background: #f4f5f8; color: #1d2129; }
.km-chip.weak { background: #fff0f0; color: #c62828; }
.km-chip.apply { background: #fff8e7; color: #9a6700; }
.km-chip.master { background: #eaf8ef; color: #16794a; }
.km-chip em { font-style: normal; font-size: 9.5px; margin-left: 3px; opacity: .75; }
.km-none { font-size: 10.5px; color: #c0c6d0; padding-top: 3px; }
.kp-mastery-empty { font-size: 12px; color: #86909c; padding: 12px 0; }

.pr-src { display:inline-block; font-size:10px; line-height:1; padding:3px 5px; border-radius:4px; margin-right:5px; vertical-align:1px; }
.pr-src.class { color:#1a6feb; background:#eaf2ff; }
.pr-src.self { color:#6b7280; background:#f1f3f6; }

.hist-tabs { display:flex; gap:4px; padding:0 2px 7px; }
.hist-tabs button { border:1px solid #e2e6ef; background:#fff; border-radius:6px; padding:4px 8px; font-size:10.5px; color:#4e5969; cursor:pointer; }
.hist-tabs button.on { background:#1a6feb; border-color:#1a6feb; color:#fff; }
.hist-summary { padding:0 2px 8px; }
.hs-suggest { background:#f5f9ff; border:1px solid #d9e6ff; color:#1a4d9e; border-radius:7px; padding:6px 8px; font-size:11px; line-height:1.6; margin-bottom:6px; }
.hs-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.hs-card { border:1px solid #e8ebf2; border-radius:8px; padding:6px 7px; font-size:10.5px; }
.hs-card.weak { border-top:2px solid #d4380d; }
.hs-card.apply { border-top:2px solid #d89614; }
.hs-card.master { border-top:2px solid #1f9d55; }
.hs-card.forgotten { border-top:2px solid #7c3aed; background:#faf7ff; }
.hs-card > b { display:block; font-size:11px; margin-bottom:4px; }
.hs-card > b em { font-style:normal; color:#86909c; font-weight:400; margin-left:4px; }
.hs-line { display:flex; gap:4px; align-items:flex-start; margin-top:2px; }
.hs-line span { color:#86909c; flex:none; width:24px; }
.hs-line i, .hs-forgot i { font-style:normal; color:#1d2129; background:#f4f5f8; border-radius:4px; padding:1px 4px; margin:0 3px 3px 0; display:inline-block; }
.hs-line u, .hs-forgot u { text-decoration:none; color:#c0c6d0; }
.hs-forgot { line-height:1.8; }

.kp-hist-tabs { display:flex; gap:4px; margin:0 2px 7px; }
.kp-hist-tabs button { border:1px solid #e2e6ef; background:#fff; border-radius:6px; padding:4px 10px; font-size:10.5px; color:#4e5969; cursor:pointer; }
.kp-hist-tabs button.on { background:#6d5efc; border-color:#6d5efc; color:#fff; }
.kp-check-summary { padding:0 2px 8px; }
.kp-check-tip { background:#f6f4ff; border:1px solid #e1dbff; color:#5646d6; border-radius:7px; padding:6px 8px; font-size:11px; margin-bottom:6px; }
.kp-check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.kp-check-card { border:1px solid #e8ebf2; border-radius:8px; padding:6px 7px; }
.kp-check-card.weak { border-top:2px solid #d4380d; }
.kp-check-card.mid { border-top:2px solid #d89614; }
.kp-check-card.good { border-top:2px solid #1f9d55; }
.kp-check-card > b { display:block; font-size:11px; margin-bottom:4px; }
.kp-check-card > b em { font-style:normal; color:#86909c; font-weight:400; margin-left:4px; }
.kp-check-card span { display:flex; justify-content:space-between; gap:3px; font-size:10px; color:#4e5969; padding:1px 0; }
.kp-check-card span i { font-style:normal; color:#86909c; flex:none; }
.kp-check-card u { text-decoration:none; color:#c0c6d0; font-size:10px; }
.kp-check-empty { font-size:11px; color:#86909c; padding:5px 0 8px; }
.kp-hist-row { display:flex; align-items:center; gap:9px; width:100%; border:1px solid #e8ebf2; background:#fff; border-radius:9px; padding:9px 10px; margin-bottom:6px; text-align:left; cursor:pointer; }
.kp-hist-row:hover { border-color:#b9adff; background:#fbfaff; }
.kp-hist-row .kh-date { flex:none; width:42px; border-right:1px solid #eef0f4; padding-right:7px; }
.kp-hist-row .kh-date b { display:block; font-size:12.5px; color:#1d2129; }
.kp-hist-row .kh-date em { font-style:normal; font-size:9.5px; color:#86909c; }
.kp-hist-row .kh-main { flex:1; min-width:0; }
.kp-hist-row .kh-main b { display:block; font-size:11.5px; color:#1d2129; }
.kp-hist-row .kh-main span { display:block; font-size:10.5px; color:#86909c; margin-top:2px; }
.kp-hist-row .kh-status { flex:none; font-size:10px; padding:3px 6px; border-radius:5px; }
.kp-hist-row .kh-status.ok { background:#eaf8ef; color:#16803c; }
.kp-hist-row .kh-status.wait { background:#fff7e8; color:#b26a00; }

.quiz-head { display:flex; align-items:center; gap:10px; }
.quiz-head > div b { display:block; font-size:16px; }
.quiz-head > div span { display:block; color:#86909c; font-size:11px; }
.quiz-head > em { margin-left:auto; font-style:normal; color:#6d5efc; font-weight:600; font-size:12px; }
.quiz-progress { height:4px; background:#eef0f4; border-radius:4px; overflow:hidden; margin:10px 0 14px; }
.quiz-progress i { display:block; height:100%; background:#6d5efc; transition:width .2s; }
.quiz-q h3 { margin:6px 0 12px; font-size:15px; line-height:1.5; }
.quiz-kp { display:inline-block; background:#f0edff; color:#5646d6; border-radius:5px; padding:3px 7px; font-size:11px; }
.quiz-opts { display:grid; gap:8px; }
.quiz-opt { display:flex; gap:9px; text-align:left; border:1px solid #e4e7f0; border-radius:9px; background:#fff; padding:10px; cursor:pointer; line-height:1.55; }
.quiz-opt b { flex:none; width:22px; height:22px; border-radius:50%; background:#f2f4f8; color:#6b7280; display:flex; align-items:center; justify-content:center; font-size:11px; }
.quiz-opt span { flex:1; font-size:12px; }
.quiz-opt:hover { border-color:#b9adff; }
.quiz-opt.on { border-color:#6d5efc; background:#f8f6ff; }
.quiz-opt.on b { background:#6d5efc; color:#fff; }
.quiz-result { text-align:center; padding:10px 4px; }
.quiz-result .qres-num { font-size:42px; font-weight:700; color:#6d5efc; }
.quiz-result .qres-num span { font-size:18px; color:#86909c; }
.quiz-result h3 { margin:8px 0 4px; }
.quiz-result p { color:#6b7280; font-size:12px; }
.quiz-review-row { border-bottom:1px solid #f0f2f6; padding:8px 0; }
.quiz-review-row b { font-size:12px; }
.quiz-review-row span { float:right; font-size:11px; }
.quiz-review-row.ok span { color:#16803c; }
.quiz-review-row.bad span { color:#d4380d; }
.quiz-review-row p { margin:4px 0; font-size:11px; color:#6b7280; }

.word-card { background:linear-gradient(180deg,#fbfaff,#fff); border-color:#e4defc; cursor:pointer; }
.word-top { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.word-top b { font-size:18px; color:#3b2fa3; letter-spacing:.2px; }
.word-top span { font-size:11px; color:#7c6fe0; }
.word-pos { display:inline-block; margin-top:5px; background:#f0edff; color:#5646d6; border-radius:4px; padding:2px 6px; font-size:10px; }
.word-cn { margin-top:7px; font-size:13px; color:#1d2129; }

.word-say { margin-left:auto; border:1px solid #ded7ff; background:#f7f5ff; border-radius:50%; width:27px; height:27px; line-height:1; padding:0; cursor:pointer; font-size:13px; }
.word-say:hover { background:#ece7ff; }

.quiz-input { width:100%; border:1px solid #d9d3f8; border-radius:9px; padding:11px 12px; font-size:15px; outline:none; background:#fbfaff; }
.quiz-input:focus { border-color:#6d5efc; box-shadow:0 0 0 3px #eeeaff; }

.concept-card { background:#fffdf8; border-color:#f0e5ca; }
.concept-tag { display:inline-block; border-radius:5px; padding:3px 7px; font-size:10px; margin-bottom:6px; }
.concept-tag.grammar { background:#fff2df; color:#a15c00; }
.concept-tag.sentence { background:#e9f5ff; color:#1668a8; }

.poem-card { background:linear-gradient(180deg,#fffdf7,#fff); border-color:#efe3c2; }
.poem-tag { display:inline-block; background:#fff2d9; color:#9a6500; border-radius:5px; padding:3px 7px; font-size:10px; margin-bottom:6px; }
.poem-title { font-size:16px; font-weight:700; color:#3b2f1c; }
.poem-author { font-size:11px; color:#8a7655; margin:3px 0 7px; }
.poem-lines { font-size:12.5px; line-height:1.9; color:#4a3b24; }

.letter-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; }
.letter-chip { border:1px solid #e3dff7; border-radius:10px; background:#fbfaff; padding:10px 4px; cursor:pointer; position:relative; }
.letter-chip b { display:block; font-size:24px; color:#4f46e5; }
.letter-chip span { display:block; font-size:11px; color:#8a93a6; }
.letter-chip em { position:absolute; right:5px; top:4px; font-style:normal; font-size:8px; color:#c0c6d0; }
.letter-chip:hover { background:#f1edff; border-color:#b9adff; }
.phoneme-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
.phoneme-chip { border:1px solid #e3dff7; border-radius:9px; background:#fbfaff; padding:8px 3px; cursor:pointer; }
.phoneme-chip b { display:block; color:#4f46e5; font-size:14px; }
.phoneme-chip span { display:block; color:#8a93a6; font-size:10px; margin-top:2px; }
.phoneme-chip:hover { background:#f1edff; border-color:#b9adff; }
.study-preview { max-height:58vh; overflow:auto; padding:2px 1px; }
.study-poem { border:1px solid #efe3c2; background:#fffdf7; border-radius:9px; padding:10px 12px; margin-bottom:7px; }
.study-poem b { font-size:14px; }
.study-poem em { font-style:normal; color:#8a7655; font-size:10.5px; margin-left:5px; }
.study-poem p { margin:6px 0 0; line-height:1.9; font-size:12.5px; color:#4a3b24; }
.study-item { border:1px solid #e8ebf2; border-radius:8px; padding:8px 10px; margin-bottom:6px; font-size:12px; }
.study-item b { color:#4f46e5; }

.study-tip { background:#f5f9ff; border:1px solid #d9e6ff; color:#1a4d9e; border-radius:7px; padding:7px 9px; font-size:11px; line-height:1.7; margin-bottom:8px; }

.study-q { display:block; color:#1d2129; font-size:12.5px; line-height:1.8; margin-top:4px; }
.study-a { display:block; color:#16803c; font-size:12px; line-height:1.8; margin-top:2px; }
.study-q mark { background:#fff2b8; color:#8a5a00; font-weight:700; padding:0 2px; border-radius:3px; }

.study-opts { display:grid; gap:3px; margin-top:5px; }
.study-opts i { font-style:normal; font-size:12px; color:#4e5969; line-height:1.7; padding:2px 6px; border-radius:4px; background:#f7f8fb; }
.study-opts i.correct { background:#eaf8ef; color:#16803c; font-weight:600; }

.pinyin-card { background:#f6fbff; border-color:#d7ecff; cursor:pointer; }
.pinyin-top { display:flex; align-items:center; gap:6px; }
.pinyin-top b { font-size:18px; color:#1668a8; letter-spacing:.5px; }
.pinyin-top span { margin-left:auto; font-size:14px; }
.pinyin-char { font-size:34px; font-weight:700; color:#1d2129; margin-top:6px; }
.pinyin-section { margin-bottom:10px; }
.pinyin-section h4 { margin:0 0 6px; font-size:13px; color:#4e5969; }
.pinyin-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px; }
.pinyin-chip { border:1px solid #d7ecff; background:#f6fbff; border-radius:8px; padding:8px 4px; cursor:pointer; text-align:center; }
.pinyin-chip b { display:block; font-size:16px; color:#1668a8; }
.pinyin-chip span { display:block; font-size:12px; color:#1d2129; margin-top:2px; }

.bill-list { max-height:50vh; overflow:auto; }
.bill-row { display:flex; gap:10px; align-items:center; border-bottom:1px solid #f0f2f6; padding:9px 0; }
.bill-row div { flex:1; }
.bill-row b { display:block; font-size:12.5px; }
.bill-row span { display:block; font-size:10.5px; color:#86909c; margin-top:2px; }
.bill-row em { font-style:normal; color:#d4380d; font-weight:600; }
.ub-pills #twWallet { cursor:pointer; }

.recharge-rule { background:#f6f9ff; border:1px solid #dbe7ff; border-radius:8px; padding:9px 11px; margin:8px 0; max-height:42vh; overflow:auto; }
.recharge-rule b { font-size:12px; color:#1a4d9e; }
.recharge-rule p { margin:4px 0 0; font-size:11px; line-height:1.7; color:#4e5969; }

#msgFab { position:fixed; right:18px; top:46%; z-index:88; border:1px solid #dbe7ff; background:#fff; color:#1a4d9e; border-radius:20px; padding:10px 12px; box-shadow:0 6px 18px rgba(40,80,160,.12); cursor:pointer; font-size:12px; }
#msgFab span { position:absolute; right:4px; top:2px; width:7px; height:7px; border-radius:50%; background:#e5484d; }
.msg-panel { position:fixed; right:16px; top:20%; z-index:90; width:340px; max-height:58vh; background:#fff; border:1px solid #e4e9f2; border-radius:12px; box-shadow:0 10px 30px rgba(20,40,80,.16); overflow:hidden; }
.msg-head { display:flex; align-items:center; padding:10px 12px; border-bottom:1px solid #eef1f6; }
.msg-head b { font-size:13px; } .msg-head button { margin-left:auto; border:0; background:none; font-size:16px; cursor:pointer; }
.msg-list { max-height:48vh; overflow:auto; padding:4px 12px 10px; }
.msg-row { border-bottom:1px solid #f2f4f8; padding:9px 0; }
.msg-row b { font-size:12px; } .msg-row p { margin:3px 0; font-size:11px; color:#4e5969; line-height:1.6; } .msg-row span { font-size:10px; color:#9aa3b2; }

.pr-withdraw { position:absolute; right:8px; top:8px; z-index:2; border:1px solid #ffd8d8; background:#fff5f5; color:#c62828; border-radius:6px; padding:2px 6px; font-size:10px; }
.paper-row { position:relative; }

.study-advice { margin-top:12px; border:1px solid #dbe7ff; background:#f7fbff; border-radius:10px; padding:11px 13px; }
.study-advice h4 { margin:0 0 6px; font-size:13px; color:#1a4d9e; }
.study-advice p { margin:4px 0; font-size:12px; line-height:1.8; color:#4e5969; }

.km-advice { margin:6px 0 9px; font-size:11.5px; line-height:1.7; color:#4e5969; background:rgba(255,255,255,.7); border-radius:6px; padding:6px 9px; }

.hs-period-advice { margin:8px 0; background:#f7fbff; border:1px solid #dbe7ff; border-radius:8px; padding:8px 10px; font-size:11.5px; line-height:1.7; color:#1a4d9e; }
.hs-period-advice b { margin-right:6px; }
