/* ============================================================
   AI错题本 · Mock  样式
   纸感学习本 + 墨蓝/朱红双色
   ============================================================ */

:root {
  --paper: #F7F5F0;
  --paper-2: #EEEBE3;
  --surface: #FFFFFF;
  --ink: #171E27;
  --ink-2: #4E5A68;
  --ink-3: #8A929C;
  --line: #E6E2D8;
  --line-2: #F1EEE7;
  --accent: #C0432C;
  --accent-soft: #FBEEE9;
  --primary: #2C567F;
  --primary-soft: #EAF1F7;
  --green: #3C7A62;
  --green-soft: #E9F3EE;
  --amber: #B0801F;
  --amber-soft: #FBF2DE;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(23, 30, 39, .035), 0 10px 26px -20px rgba(23, 30, 39, .38);
  --shadow-md: 0 24px 60px -24px rgba(23, 30, 39, .45);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 12% -8%, #FBF7EE 0%, transparent 60%),
    radial-gradient(760px 460px at 92% 108%, #EDF2F6 0%, transparent 62%),
    #EEEBE4;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; }

/* ================= 舞台 ================= */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 30px 26px;
}

/* ================= 手机外壳 ================= */
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.phone {
  width: 390px;
  height: 844px;
  flex: none;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(160deg, #2B323B 0%, #12161C 46%, #2A3038 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 30px 70px -18px rgba(18, 24, 32, .55),
    0 2px 0 rgba(255, 255, 255, .18) inset;
  position: relative;
}

.phone::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 108px;
  height: 4px;
  margin-left: -54px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .18);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.phone-note {
  font-size: 11.5px;
  color: #7C838C;
  letter-spacing: .02em;
}

/* ================= 状态栏 ================= */
.statusbar {
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.statusbar .sb-right { display: flex; align-items: center; gap: 5px; }
.statusbar svg { display: block; }

/* ================= 屏幕 ================= */
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  position: relative;
}
.screen::-webkit-scrollbar { display: none; }

.page { padding: 6px 18px 26px; animation: fadeUp .22s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ================= 底部导航 ================= */
.tabbar {
  flex: none;
  height: 66px;
  display: flex;
  align-items: stretch;
  padding: 0 6px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--ink-3);
  transition: color .15s;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-on { color: var(--ink); font-weight: 600; }
.tab-mid { justify-content: flex-end; padding-bottom: 9px; }
.tab-mid .fab {
  width: 50px; height: 50px;
  border-radius: 17px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(27, 36, 48, .26);
  transition: transform .16s;
}
.tab-mid .fab:active { transform: scale(.94); }
.tab-mid .fab svg { width: 26px; height: 26px; }

/* ================= 通用排版 ================= */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0 14px;
  gap: 12px;
}
.topbar h1 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.topbar .sub { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.avatar {
  width: 38px; height: 38px; border-radius: 13px;
  background: linear-gradient(150deg, #35566F, #1B2430);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; flex: none;
}
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  color: var(--ink-3); text-transform: uppercase;
}

.navbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 12px;
  position: sticky; top: 0; z-index: 12;
  background: linear-gradient(var(--paper) 72%, rgba(246, 244, 239, 0));
}
.navbar .nb-title { font-size: 16.5px; font-weight: 650; }
.navbar .nb-spacer { flex: 1; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:active { background: var(--paper-2); }

.section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 22px 0 10px; font-size: 14px; font-weight: 650;
}
.section-h .link { font-size: 12px; color: var(--primary); font-weight: 500; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.muted { color: var(--ink-3); }
.small { font-size: 12px; }

/* ================= 按钮 ================= */
.btn {
  height: 46px; width: 100%;
  border-radius: 14px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .12s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-sm { height: 36px; border-radius: 11px; font-size: 13px; width: auto; padding: 0 14px; }
.btn[disabled] { opacity: .42; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }

/* 图标统一尺寸（内联 SVG 不加约束会变成 300×150） */
.ic { width: 18px; height: 18px; flex: none; display: block; }
.btn .ic { width: 17px; height: 17px; }
.btn-sm .ic { width: 15px; height: 15px; }
.icon-btn .ic { width: 17px; height: 17px; }
.tab .ic { width: 22px; height: 22px; }
.fab .ic { width: 26px; height: 26px; }
.quick .ic { width: 22px; height: 22px; }
.dz-ico .ic { width: 34px; height: 34px; }
.em-ico .ic { width: 24px; height: 24px; }
.pi-ico .ic { width: 20px; height: 20px; }
.hi-ico .ic { width: 17px; height: 17px; }
.brand-mark .ic { width: 24px; height: 24px; }

/* ================= 表单 ================= */
.field { margin-bottom: 14px; }
.field > label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
.field > label .req { color: var(--accent); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 13px;
  font-size: 14.5px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 78px; }
.input:focus, .textarea:focus, .select:focus {
  border-color: #B9C6D3;
  box-shadow: 0 0 0 3px rgba(44, 86, 127, .08);
}
.input::placeholder, .textarea::placeholder { color: #AEB6BF; }
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.err { font-size: 12px; color: var(--accent); margin-top: 6px; }

.seg {
  display: flex; gap: 3px; padding: 3px;
  background: var(--paper-2); border-radius: 12px;
}
.seg button {
  flex: 1; height: 34px; border-radius: 9px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: background .15s, box-shadow .15s;
}
.seg button.is-on {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(27, 36, 48, .1);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink-2);
  transition: all .15s;
}
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.chip.is-on-accent { background: var(--accent-soft); border-color: #EBC3B7; color: var(--accent); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row .sr-t { font-size: 14px; }
.switch-row .sr-s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.switch {
  width: 44px; height: 27px; border-radius: 999px;
  background: #D9D5CC; position: relative; flex: none;
  transition: background .18s;
}
.switch::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s;
}
.switch.is-on { background: var(--green); }
.switch.is-on::after { transform: translateX(17px); }

/* ================= 首页 ================= */
.hero {
  padding: 18px;
  background: linear-gradient(150deg, #23303D 0%, #1B2430 55%, #2B3B4B 100%);
  border: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -36px; top: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 67, 44, .38), transparent 68%);
}
.hero-label { font-size: 12px; color: rgba(255, 255, 255, .62); letter-spacing: .04em; }
.hero-num { font-size: 40px; font-weight: 700; line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.hero-num span { font-size: 14px; font-weight: 500; margin-left: 4px; color: rgba(255, 255, 255, .6); }
.hero-bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin: 16px 0 10px; overflow: hidden; }
.hero-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #E8703F, #E2A06A); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255, 255, 255, .68); }
.hero-foot .link { color: #fff; font-weight: 600; font-size: 12.5px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.stat { padding: 14px; }
.stat-label { font-size: 12px; color: var(--ink-3); }
.stat-num { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat-num span { font-size: 13px; font-weight: 500; margin-left: 1px; color: var(--ink-3); }
.stat-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.weaklist { padding: 4px 16px; }
.weakrow {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.weakrow:last-child { border-bottom: 0; }
.weakrow .wr-name { flex: 1; font-size: 13.5px; }
.weakrow .wr-tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 6px;
  background: var(--paper-2); color: var(--ink-2); flex: none;
}
.dots { display: flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #E2DED5; }
.dots i.on { background: var(--green); }
.dots i.on.low { background: var(--accent); }
.dots i.on.mid { background: var(--amber); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick button {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 8px 12px; display: flex; flex-direction: column;
  align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.quick button svg { width: 22px; height: 22px; color: var(--ink); }
.quick button:active { background: var(--paper-2); }

/* ================= 错题卡 ================= */
.qcard {
  position: relative;
  padding: 14px 14px 13px 17px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.qcard::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary);
}
.qcard.sci::before { background: var(--green); }
.qcard .qc-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.qc-subject {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  padding: 2.5px 7px; border-radius: 6px;
  background: var(--primary-soft); color: var(--primary);
}
.qcard.sci .qc-subject { background: var(--green-soft); color: var(--green); }
.qc-module { font-size: 10.5px; color: var(--ink-3); }
.qc-due { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.qc-due.due { color: var(--accent); font-weight: 600; }
.qc-stem {
  font-size: 13.5px; line-height: 1.6; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qc-stem .katex { font-size: 13.5px; }
.qc-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tag {
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.tag.red { background: var(--accent-soft); color: var(--accent); }
.tag.green { background: var(--green-soft); color: var(--green); }
.qc-img {
  margin-top: 9px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-2); background: #FCFBF8;
}
.qc-img svg, .qc-img img { display: block; width: 100%; max-height: 110px; object-fit: contain; }

/* ================= 空态 ================= */
.empty {
  text-align: center; padding: 54px 20px; color: var(--ink-3);
}
.empty .em-ico {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 18px; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; color: #B5AC9E;
}
.empty h4 { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.empty p { margin: 0; font-size: 12.5px; line-height: 1.6; }

/* ================= 登录 ================= */
.login {
  height: 100%; display: flex; flex-direction: column;
  padding: 26px 26px 30px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(145deg, #2A3947, #16202B);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(27, 36, 48, .22);
}
.brand-mark svg { width: 24px; height: 24px; color: #fff; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.login-title { font-size: 27px; font-weight: 700; line-height: 1.28; margin: 40px 0 10px; letter-spacing: -.02em; }
.login-title em { font-style: normal; color: var(--accent); }
.login-desc { font-size: 13px; color: var(--ink-3); line-height: 1.65; margin-bottom: 28px; }
.login-form .input { height: 48px; background: #fff; }
.login-foot { margin-top: auto; text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.7; }

/* ================= 录题 ================= */
.steps { display: flex; align-items: center; gap: 6px; margin: 4px 0 16px; }
.step-dot {
  flex: 1; height: 3px; border-radius: 3px; background: var(--line);
}
.step-dot.on { background: var(--ink); }

.dropzone {
  border: 1.5px dashed #D4CEC2; border-radius: 16px;
  background: #FCFAF5; padding: 26px 18px; text-align: center;
}
.dropzone .dz-ico { color: #B9B1A3; margin-bottom: 10px; }
.dropzone p { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; }
.dropzone span { font-size: 11.5px; color: var(--ink-3); }

.shot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot-btn {
  min-height: 154px; border-radius: 16px;
  border: 1.5px dashed #D4CEC2; background: #FCFAF5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; font-size: 13.5px; font-weight: 600; color: #33404E;
}
.shot-btn .sb-ico { color: #B9B1A3; margin-bottom: 3px; }
.shot-btn .sb-ico .ic { width: 32px; height: 32px; }
.shot-btn em { font-style: normal; font-weight: 400; font-size: 11px; color: #9A9384; }
.shot-btn:active { background: #F3EFE6; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.shot {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #FCFBF8; aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}
.shot svg { width: 100%; height: 100%; }
.shot.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(27, 36, 48, .1); }

.crop-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #EDEAE2; }
.crop-wrap img, .crop-wrap > svg { display: block; width: 100%; height: auto; }
.crop-overlay { position: absolute; inset: 0; background: rgba(16, 22, 30, .42); }
.crop-box {
  position: absolute; border: 1.5px solid #fff;
  box-shadow: 0 0 0 9999px rgba(16, 22, 30, .42);
  cursor: move;
}
.crop-box .cb-grid { position: absolute; inset: 0; }
.crop-box .cb-grid::before, .crop-box .cb-grid::after {
  content: ''; position: absolute; background: rgba(255, 255, 255, .3);
}
.crop-box .cb-grid::before { left: 0; right: 0; top: 33.3%; height: 1px; }
.crop-box .cb-grid::after { left: 0; right: 0; bottom: 33.3%; height: 1px; }
.crop-handle {
  position: absolute; width: 22px; height: 22px; right: -11px; bottom: -11px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.crop-handle::after { content: ''; width: 8px; height: 8px; border-right: 2px solid; border-bottom: 2px solid; }

/* ================= 详情 ================= */
.card-image { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #FCFBF8; }
.card-image svg, .card-image img { display: block; width: 100%; }
.stem-box { font-size: 15px; line-height: 1.75; }
.answer-block {
  border-radius: 12px; padding: 12px 13px; font-size: 13.5px; line-height: 1.7;
  border: 1px solid;
}
.answer-block .ab-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; margin-bottom: 5px; opacity: .8; }
.answer-block.wrong { background: var(--accent-soft); border-color: #F0CFC6; color: #8E3323; }
.answer-block.right { background: var(--green-soft); border-color: #CBE2D7; color: #2A5E4A; }
.answer-block.plain { background: #FBFAF7; border-color: var(--line); color: var(--ink-2); }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border-radius: 12px; overflow: hidden; }
.meta-cell { background: #fff; padding: 11px 13px; }
.meta-cell .mc-k { font-size: 10.5px; color: var(--ink-3); margin-bottom: 4px; }
.meta-cell .mc-v { font-size: 13px; font-weight: 550; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: ''; position: absolute; left: 4.5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -17px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1.5px solid #C9C2B5;
}
.tl-item.ok::before { border-color: var(--green); background: var(--green); }
.tl-item.no::before { border-color: var(--accent); background: var(--accent); }
.tl-t { font-size: 12.5px; }
.tl-d { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ================= 复习 ================= */
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.review-bar { flex: 1; height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.review-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.review-count { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.qcard-big {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow-sm);
}
.qcb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.qcb-head .tag { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcb-head .tag:last-child { flex: none; max-width: none; overflow: visible; }
.qcb-stem { font-size: 16px; line-height: 1.8; }

.think-hint {
  margin-top: 16px; border: 1px dashed #E2DCCF; border-radius: 12px;
  padding: 16px 14px; text-align: center;
  font-size: 12.5px; color: #9A9384; line-height: 1.6;
  background: #FCFAF5;
}

.reveal {
  margin-top: 14px; border-top: 1px dashed var(--line);
  padding-top: 14px; animation: fadeUp .24s ease both;
}
.reveal .rv-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 7px; }
.reveal p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.reveal + .reveal { border-top: 1px dashed var(--line); }

.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ================= 周报 ================= */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-name { width: 58px; font-size: 12.5px; color: var(--ink-2); flex: none; }
.bar-track { flex: 1; height: 20px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 6px; background: var(--primary); }
.bar-track.green i { background: var(--green); }
.bar-val { width: 26px; text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.trend { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding-top: 8px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.trend-col i {
  width: 100%; max-width: 22px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #40678F, #2C567F); min-height: 3px;
  transition: height .4s ease;
}
.trend-col span { font-size: 9.5px; color: var(--ink-3); }

/* ================= 打印 ================= */
.opt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); gap: 12px;
}
.opt-row:last-child { border-bottom: 0; }
.opt-row .or-t { font-size: 13.5px; }
.opt-row .or-s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.pager-list { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 4px 0 10px; }
.thumb-wrap {
  position: relative; background: #fff;
  box-shadow: 0 3px 14px rgba(27, 36, 48, .16);
  border-radius: 3px; overflow: hidden;
}
.thumb-inner { transform-origin: top left; }
.thumb-tag {
  position: absolute; right: 6px; bottom: 6px; z-index: 3;
  background: rgba(27, 36, 48, .78); color: #fff;
  font-size: 9.5px; padding: 2px 6px; border-radius: 4px;
}

.printer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px; border: 1px solid var(--line); border-radius: 13px;
  margin-bottom: 9px; background: #fff;
}
.printer-item.unavailable { opacity: .58; }
.pi-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.pi-main { flex: 1; min-width: 0; }
.pi-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-meta { font-size: 11px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.pi-go { font-size: 12px; color: var(--primary); font-weight: 600; flex: none; }

.scanning { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; font-size: 12px; color: var(--ink-3); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }

.job-step { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--ink-3); }
.job-step .js-dot {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.job-step.active { color: var(--ink); font-weight: 550; }
.job-step.active .js-dot { border-color: var(--primary); }
.job-step.active .js-dot::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  animation: pulse 1s infinite;
}
.job-step.done { color: var(--ink-2); }
.job-step.done .js-dot { background: var(--green); border-color: var(--green); }
.job-step.done .js-dot::after { content: ''; width: 7px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.job-step.fail { color: var(--accent); font-weight: 550; }
.job-step.fail .js-dot { background: var(--accent); border-color: var(--accent); }

.hist-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.hist-item:last-child { border-bottom: 0; }
.hi-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.hi-main { flex: 1; min-width: 0; }
.hi-t { font-size: 13px; font-weight: 550; }
.hi-s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* ================= 弹层 ================= */
.overlay-root { position: absolute; inset: 0; pointer-events: none; z-index: 60; }
.overlay-root > * { pointer-events: auto; }
.mask {
  position: absolute; inset: 0;
  background: rgba(20, 26, 34, .38);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #FBF9F5;
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 84%;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(20, 26, 34, .2);
  animation: slideUp .26s cubic-bezier(.2, .8, .25, 1) both;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
@keyframes slideUp { from { transform: translateY(102%); } to { transform: none; } }
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: #DDD7CB; margin: 4px auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.sheet .sh-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; line-height: 1.55; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }

.center-card {
  position: absolute; left: 22px; right: 22px; top: 50%;
  transform: translateY(-50%);
  background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow-md);
  animation: pop .2s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(-50%) scale(.96); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

/* Toast */
.toast-root {
  position: absolute; left: 0; right: 0; bottom: 78px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; z-index: 70; padding: 0 16px;
  transition: bottom .2s, top .2s;
}
.toast-root.top { bottom: auto; top: 62px; }
.toast {
  background: rgba(24, 32, 42, .95); color: #fff;
  font-size: 12.5px; line-height: 1.5;
  padding: 10px 14px; border-radius: 12px;
  max-width: 100%; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  animation: toastIn .22s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

/* ================= 右侧调试面板 ================= */
.panel {
  width: 392px; flex: none; align-self: center;
  max-height: 844px; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  box-shadow: 0 20px 50px -24px rgba(30, 40, 50, .3), 0 0 0 1px rgba(27, 36, 48, .06);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.panel-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; }
.panel-title .pt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.panel-desc { font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }
.panel-tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.panel-tabs button {
  font-size: 11.5px; padding: 6px 10px; border-radius: 8px; color: var(--ink-3);
}
.panel-tabs button.is-on { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.panel-body { flex: 1; overflow-y: auto; padding: 10px 14px 14px; font-size: 11.5px; scrollbar-width: thin; }

.log-line {
  display: flex; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed var(--line-2);
  font-family: var(--mono); font-size: 10.5px; line-height: 1.5;
  animation: fadeUp .18s ease both;
}
.log-method { font-weight: 700; flex: none; width: 36px; }
.log-method.get { color: #2C567F; }
.log-method.post { color: #3C7A62; }
.log-method.patch { color: #B0801F; }
.log-method.delete { color: var(--accent); }
.log-path { flex: 1; color: var(--ink-2); word-break: break-all; }
.log-status { flex: none; color: var(--ink-3); }
.log-status.ok { color: var(--green); }
.log-status.err { color: var(--accent); }

.note-list { display: flex; flex-direction: column; gap: 10px; }
.note-item { display: flex; gap: 9px; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
.note-item b { color: var(--ink); font-weight: 600; }
.note-ico { width: 16px; height: 16px; border-radius: 5px; flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }
.note-ico.sim { background: #C08A3E; }
.note-ico.real { background: var(--green); }

.mile { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 11.5px; border-bottom: 1px dashed var(--line-2); }
.mile .m-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #D5CEC1; flex: none; }
.mile.done .m-dot { background: var(--green); border-color: var(--green); position: relative; }
.mile.done .m-dot::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 7px; border-right: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(40deg); }
.mile.part .m-dot { background: linear-gradient(90deg, var(--green) 50%, transparent 50%); }
.mile .m-name { flex: 1; color: var(--ink-3); }
.mile.done .m-name, .mile.part .m-name { color: var(--ink-2); }
.mile .m-tag { font-size: 10px; color: var(--ink-3); }

.panel-foot { padding: 10px 14px 14px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; }
.panel-foot button {
  flex: 1; height: 32px; border-radius: 9px; font-size: 11.5px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.panel-foot button:active { background: var(--paper-2); }

/* ================= 打印件（A4） ================= */
#print-root { display: none; }

.doc { font-family: var(--font); color: #15202B; }
.doc .pg {
  width: 210mm; height: 297mm;
  padding: 18mm 18mm 14mm;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.doc .pg-body { height: 258mm; overflow: hidden; }
.doc .pg-foot {
  position: absolute; left: 18mm; right: 18mm; bottom: 7mm;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 8pt; color: #8A929B;
  border-top: .4pt solid #DDE2E7; padding-top: 2.2mm;
}

.doc-title { border-bottom: 1.4pt solid #15202B; padding-bottom: 3mm; margin-bottom: 5mm; }
.doc-title .dt-eyebrow { font-size: 8pt; letter-spacing: .22em; color: #7A838D; }
.doc-title h1 { margin: 1.6mm 0 1.4mm; font-size: 17pt; letter-spacing: .06em; font-weight: 700; }
.doc-title .dt-meta { display: flex; flex-wrap: wrap; gap: 2.5mm 6mm; font-size: 8.5pt; color: #5A6572; }
.doc-title .dt-meta span b { color: #15202B; font-weight: 600; }

.doc-info { display: flex; gap: 8mm; font-size: 8.5pt; color: #6B7480; margin-bottom: 5mm; }
.doc-info .di-line { flex: 1; border-bottom: .5pt dotted #B9C1C9; padding-bottom: 1mm; }

.grp-h {
  display: flex; align-items: baseline; gap: 3mm;
  border-left: 2.4mm solid #15202B; padding-left: 3mm;
  margin-bottom: 4mm;
}
.grp-h h2 { margin: 0; font-size: 12.5pt; font-weight: 700; letter-spacing: .04em; }
.grp-h .gh-cnt { font-size: 8.5pt; color: #7A838D; }

.blk-q { padding-bottom: 6.5mm; }
.blk-q .q-top { display: flex; gap: 2.5mm; align-items: flex-start; }
.blk-q .q-no {
  font-size: 9pt; font-weight: 700; color: #15202B;
  min-width: 6mm; height: 6mm; border-radius: 1.2mm;
  background: #F0F2F4; display: flex; align-items: center; justify-content: center;
  margin-top: .8mm;
}
.blk-q .q-stem { flex: 1; font-size: calc(var(--fs, 11) * 1pt); line-height: 1.72; }
.blk-q .q-tags { display: flex; gap: 4mm; margin: 1.6mm 0 0 8.5mm; font-size: 8pt; color: #7A838D; }
.blk-q .q-tags span::before { content: ''; }
.blk-q .q-img { margin: 2.4mm 0 0 8.5mm; }
.blk-q .q-img svg, .blk-q .q-img img { height: 30mm; width: auto; max-width: 100%; display: block; }
.blk-q .q-blank {
  margin: 3mm 0 0 8.5mm; height: 22mm; border: .4pt dashed #C9D0D6;
  border-radius: 1mm;
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent 6.6mm, #E4E8EC 6.6mm, #E4E8EC 6.7mm);
}

.blk-group { margin-bottom: 3mm; }

.ans-h { font-size: 13pt; font-weight: 700; border-bottom: 1.2pt solid #15202B; padding-bottom: 2mm; margin-bottom: 4mm; letter-spacing: .04em; }
.ans-h .ah-sub { font-size: 8pt; font-weight: 400; color: #7A838D; margin-left: 3mm; }
.blk-a { padding-bottom: 4.5mm; font-size: calc(var(--fs, 11) * 1pt - 1pt); line-height: 1.7; }
.blk-a .a-no { font-weight: 700; margin-right: 2mm; }
.blk-a .a-correct { color: #1F5E48; font-weight: 600; }
.blk-a .a-row { margin-top: 1mm; color: #4A5561; }
.blk-a .a-row b { font-weight: 600; color: #15202B; }

/* 预览缩略 */
.thumb-wrap { background: #fff; }
.zoom-stage {
  position: absolute; inset: 0; background: #22282F; z-index: 65;
  display: flex; flex-direction: column;
}
.zoom-bar {
  height: 48px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; color: #fff; font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.zoom-bar .zb-spacer { flex: 1; }
.zoom-bar button { color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.zoom-scroll { flex: 1; overflow: auto; padding: 14px; }
.zoom-paper { background: #fff; width: max-content; }
.zoom-holder { margin: 0 auto; }
.zoom-paper { transform-origin: top left; width: 210mm; }
.zoom-bar button.on { background: #fff; color: #1B2430; font-weight: 600; }

/* ================= 响应式 ================= */
@media (max-width: 1220px) {
  .stage { gap: 20px; }
  .panel { width: 340px; }
}
@media (max-width: 1080px) {
  .panel { display: none; }
}
@media (max-width: 900px) {
  .stage { padding: 0; gap: 0; }
  .phone {
    width: 100vw; height: 100vh; height: 100dvh;
    border-radius: 0; padding: 0; box-shadow: none; background: var(--paper);
  }
  .phone::after { display: none; }
  .phone-screen { border-radius: 0; }
  .phone-note { display: none; }
  .statusbar { height: 34px; }
}

/* 窗口不够高时，让手机整体缩一点，避免被截掉 */
@media (min-width: 901px) and (max-height: 960px) {
  .stage { padding: 18px 26px; }
  .phone { height: min(844px, calc(100vh - 52px)); }
}

/* ================= 打印 ================= */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; height: auto; }
  .stage, .phone, .panel, .phone-note { display: none !important; }
  #print-root { display: block !important; }
  #print-root .pg { box-shadow: none; page-break-after: always; break-after: page; }
  #print-root .pg:last-child { page-break-after: auto; break-after: auto; }
}

/* ============================================================
   视觉刷新 v2：更克制的层级、更细的描边、更清晰的数字
   ============================================================ */
body { background: radial-gradient(900px 520px at 12% -8%, #FDFBF6 0%, transparent 60%),
                    radial-gradient(760px 460px at 92% 108%, #EDF1F5 0%, transparent 62%), #EDEAE3; }

.topbar { padding: 12px 0 16px; }
.topbar h1 { font-size: 26px; letter-spacing: -.03em; }
.topbar .sub { margin-top: 6px; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sub-link { color: var(--ink-2); font-weight: 600; font-size: 12px; }
.dotsep { width: 3px; height: 3px; border-radius: 50%; background: #CFC9BC; display: inline-block; }

.avatar { width: 40px; height: 40px; border-radius: 14px; font-size: 15.5px; cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(20, 28, 38, .8); }

.navbar {
  margin: -6px -18px 0; padding: 12px 18px 11px;
  background: linear-gradient(rgba(247, 245, 240, .95) 66%, rgba(247, 245, 240, 0));
  backdrop-filter: blur(10px);
}
.navbar .nb-title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; transition: background .15s, transform .12s; }
.icon-btn:active { transform: scale(.96); }

.section-h { margin: 24px 0 11px; font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.section-h .link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.section-h .link .ic { width: 14px; height: 14px; }
.sh-note { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }

.card { border-radius: var(--radius); }
.card-pad { padding: 17px; }

.btn { height: 48px; border-radius: 14px; font-size: 14.5px; letter-spacing: .01em; }
.btn-primary { background: linear-gradient(180deg, #26323F 0%, #151D27 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 24px -16px rgba(20, 28, 38, .9); }
.btn-ghost { background: #fff; border-color: #E2DDD1; }
.btn-ghost:active { background: #FAF8F3; }
.btn-sm { height: 38px; border-radius: 11px; font-size: 13px; }

.seg { border-radius: 14px; padding: 3px; }
.seg button { height: 36px; border-radius: 11px; }
.seg button.is-on { box-shadow: 0 1px 2px rgba(23, 30, 39, .07), 0 3px 10px -4px rgba(23, 30, 39, .18); }

.chip { border-color: #E4DFD3; font-weight: 500; }
.chip.is-on { box-shadow: 0 4px 12px -6px rgba(23, 30, 39, .55); }

.input, .textarea, .select { border-radius: 13px; border-color: #E4DFD3; padding: 13px 14px; }
.input:focus, .textarea:focus, .select:focus { border-color: #B4C3D1; box-shadow: 0 0 0 3.5px rgba(44, 86, 127, .09); }

button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid rgba(44, 86, 127, .35); outline-offset: 2px; }

/* 底部导航：选中项用浅色胶囊，去掉多余线条 */
.tabbar { height: 68px; border-top: 1px solid rgba(230, 226, 216, .8); padding: 0 8px; }
.tab { margin: 7px 3px; border-radius: 14px; gap: 2px; transition: background .16s, color .16s; }
.tab.is-on { background: #F1EEE7; }
.tab.is-on .ic { stroke-width: 1.9; }
.tab-mid { margin: 0; }

/* 首页主卡 */
.hero { border-radius: 20px; padding: 19px;
  background: linear-gradient(152deg, #222E3B 0%, #151D27 58%, #273545 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 44px -28px rgba(16, 23, 31, .9); }
.hero::after { opacity: .72; }
.hero-num { font-variant-numeric: tabular-nums; }
.stat-num { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat { padding: 15px; }

/* 错题卡：描边更轻，点击反馈更明确 */
.qcard { border-radius: 16px; padding: 15px 15px 14px 18px; transition: transform .14s ease, box-shadow .14s ease; }
.qcard:active { transform: scale(.994); }
.qcard::before { width: 3px; opacity: .9; }
.qtag-row { display: flex; align-items: center; gap: 8px; }

.center-card { max-height: 84%; overflow-y: auto; scrollbar-width: none; }
.center-card::-webkit-scrollbar { display: none; }

/* ============================================================
   举一反三（同类题）
   ============================================================ */
.sim-hint { font-size: 11.5px; color: var(--ink-3); margin: -4px 0 10px; }
.sim-list { display: flex; flex-direction: column; gap: 9px; }
.sim-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow-sm);
}
.sim-top { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.sim-lv { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 2.5px 7px; border-radius: 6px; }
.sim-lv.lv1 { background: var(--primary-soft); color: var(--primary); }
.sim-lv.lv2 { background: var(--amber-soft); color: #8A6414; }
.sim-lv.lv3 { background: var(--accent-soft); color: #B23B26; }
.sim-tag { font-size: 10.5px; color: var(--ink-3); }
.sim-go {
  margin-left: auto; display: flex; align-items: center; gap: 1px;
  font-size: 11.5px; font-weight: 600; color: var(--primary);
}
.sim-go .ic { width: 13px; height: 13px; }
.sim-stem { font-size: 13.5px; line-height: 1.68; color: var(--ink); }
.sim-img { margin-top: 9px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #FCFBF8; }
.sim-img svg, .sim-img img { display: block; width: 100%; max-height: 112px; object-fit: contain; }
.sim-ans {
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 7px;
}
.sa-row { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.72; color: var(--ink-2); }
.sa-row b { flex: none; font-size: 10.5px; font-weight: 700; color: var(--ink-3); padding-top: 3px; letter-spacing: .04em; }
.sim-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sim-link { font-size: 12px; font-weight: 600; color: var(--primary); padding: 2px 0; }
.sim-add {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  background: var(--paper-2); border-radius: 9px; padding: 6px 10px;
}
.sim-add .ic { width: 13px; height: 13px; }
.sim-add.is-added { color: var(--green); background: var(--green-soft); }
.sim-add[disabled] { pointer-events: none; }

/* 练一练 */
.pc-head { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.pc-title { font-size: 12px; color: var(--ink-3); }
.pc-close { margin-left: auto; width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); background: var(--paper-2); }
.pc-close .ic { width: 15px; height: 15px; }
.pc-stem { font-size: 15px; line-height: 1.75; }
.pc-img { margin-top: 10px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #FCFBF8; }
.pc-img svg, .pc-img img { display: block; width: 100%; max-height: 130px; object-fit: contain; }
.pc-input {
  width: 100%; margin-top: 12px; min-height: 74px; resize: vertical;
  border: 1px solid #E4DFD3; border-radius: 12px; padding: 11px 12px;
  font-size: 13.5px; line-height: 1.6; outline: none; background: #FDFCF9;
}
.pc-input:focus { border-color: #B4C3D1; box-shadow: 0 0 0 3px rgba(44, 86, 127, .08); }
.pc-actions { display: flex; gap: 9px; margin-top: 14px; }

/* ============================================================
   学生资料 / 学年索引
   ============================================================ */
.prof-card { padding: 18px; background: linear-gradient(158deg, #FFFFFF 0%, #FBFAF6 100%); }
.prof-top { display: flex; align-items: center; gap: 12px; }
.prof-avatar {
  width: 52px; height: 52px; border-radius: 17px; flex: none;
  background: linear-gradient(150deg, #35566F, #161E28); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
}
.prof-name { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.prof-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-badge { flex: none; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pg-k { font-size: 11px; color: var(--ink-3); }
.pg-v { font-size: 13.5px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pg-u { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }

.year-list { display: flex; flex-direction: column; gap: 8px; }
.year-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 13px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 15px; transition: border-color .15s, box-shadow .15s;
}
.year-row.is-on { border-color: #C6D2DE; box-shadow: 0 0 0 3px rgba(44, 86, 127, .055); }
.yr-ico {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--paper-2); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.yr-ico .ic { width: 17px; height: 17px; }
.year-row.is-on .yr-ico { background: var(--primary-soft); color: var(--primary); }
.yr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.yr-t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.yr-cur { font-size: 10px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 1px 6px; border-radius: 5px; }
.yr-s { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.yr-go { flex: none; color: var(--ink-3); display: flex; }
.yr-go .ic { width: 16px; height: 16px; }
.year-row.is-on .yr-go { color: var(--green); }

/* ============================================================
   单题打印范围选择
   ============================================================ */
.pa-modes { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.pa-mode {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.pa-mode.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FBFAF6; }
.pa-t { font-size: 13.5px; font-weight: 600; }
.pa-s { font-size: 11.5px; color: var(--ink-3); }

/* 打印件里的同类变式：左侧细线区分，不打断阅读节奏 */
.blk-sim { border-left: .8pt solid #E3DCCB; padding-left: 3.5mm; margin-left: -.5mm; }
.blk-sim .q-tags { color: #9A7B33; }
