:root {
  --brand: #1AB3A8;        /* 领航AI 主色 - 青蓝 teal（来自宣传字） */
  --brand-dark: #16968d;
  --brand-soft: #E4F6F4;
  --accent: #F39C2A;       /* logo 橙（强调色） */
  --accent-dark: #D98416;
  --bg: #f2f3f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #6b6f76;
  --text-3: #9aa0a6;
  --line: #ebedf0;
  --warn: #ff976a;
  --danger: #ee0a24;
  --blue: #1989fa;
  --radius: 14px;
  --tab-h: 56px;
  --header-h: 48px;
  --maxw: 440px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

/* phone frame */
#app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 24px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

/* header */
.header {
  height: var(--header-h);
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 20;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
}
.header .back {
  position: absolute;
  left: 12px;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  width: 32px;
}

/* content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px calc(var(--tab-h) + 16px);
  -webkit-overflow-scrolling: touch;
}

/* bottom tab bar */
.tabbar {
  position: sticky;
  bottom: 0;
  height: var(--tab-h);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 20;
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar.hidden { display: none; }
.tab-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  gap: 3px;
  transition: transform .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tab-item .ico {
  font-size: 23px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  transition: transform .18s ease, color .18s ease;
}
/* 激活项顶部蓝色指示条 */
.tab-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brand);
  transform: translateX(-50%) scaleX(0);
  transition: transform .2s ease;
}
.tab-item.active { color: var(--brand); font-weight: 700; }
.tab-item.active::before { transform: translateX(-50%) scaleX(1); }
.tab-item.active .ico { transform: translateY(-1px) scale(1.16); color: var(--brand); }
.tab-item:active { transform: scale(.93); }

/* cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card .sub { color: var(--text-2); font-size: 13px; }

/* stats row */
.stats { display: flex; gap: 10px; }
.stat {
  flex: 1; background: var(--card); border-radius: var(--radius);
  padding: 12px; text-align: center;
}
.stat .num { font-size: 22px; font-weight: 700; color: var(--brand); }
.stat .lbl { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border: none;
  border-radius: 22px; padding: 12px 18px; font-size: 15px; font-weight: 600;
  cursor: pointer; width: 100%; margin-bottom: 12px;
}
.btn:active { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.blue { background: var(--blue); }
.btn.block + .btn.block { margin-top: 10px; }
.btn[disabled] { opacity: .5; }

/* forms */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; background: #fafafa; color: var(--text);
  font-family: inherit;
}
.field textarea { min-height: 84px; resize: vertical; }
/* checkbox group inside .field */
.chk-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.field .chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.field .chk input[type="checkbox"],
.field .chk input[type="radio"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
/* student multi-select dropdown */
.stu-select { position: relative; }
.stu-select-trigger {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 15px; background: #fafafa; cursor: pointer; color: var(--text);
}
.stu-select-trigger .caret { color: var(--text-2); font-size: 12px; }
.stu-select-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 8px; max-height: 260px; overflow: auto;
}
.stu-search input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 14px; margin-bottom: 6px;
}
.stu-list { display: flex; flex-direction: column; gap: 6px; }
.stu-panel-foot { display: flex; gap: 8px; margin-top: 8px; }
.btn.xs { padding: 5px 10px; font-size: 13px; width: auto; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* list items */
.item {
  background: var(--card); border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 12px; cursor: pointer;
}
.item .t { font-weight: 600; font-size: 15px; }
.item .m { color: var(--text-2); font-size: 13px; margin-top: 5px; line-height: 1.5; }
.tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #e8f8ee; color: var(--brand); margin-right: 6px;
}
.tag.gray { background: #f0f1f2; color: var(--text-2); }
.tag.blue { background: #e8f1ff; color: var(--blue); }
.tag.orange { background: #fff0e8; color: var(--warn); }
.tag.red { background: #fdeaea; color: var(--danger); }

.empty { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 14px; }
.stat-row { font-size: 13px; color: #6b7280; margin: 8px 0 10px; padding: 7px 12px; background: #f4f6f8; border-radius: 10px; }
.search-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #e3e8ef; border-radius: 10px; font-size: 14px; margin-bottom: 10px; outline: none; background: #fff; }
.search-input:focus { border-color: #1AB3A8; }

/* login */
.login-wrap { padding: 0 26px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; }
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo .em { font-size: 56px; }
.login-logo .name { font-size: 22px; font-weight: 700; margin-top: 8px; }
.login-logo .slogan { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.login-logo .brand-logo { width: 120px; height: auto; margin: 0 auto 4px; display: block; filter: drop-shadow(0 4px 12px rgba(26,179,168,.15)); }
.login-logo .brand-slogan { width: 100%; max-width: 320px; margin: 14px auto 4px; display: block; }
.role-pick { display: flex; gap: 10px; margin: 18px 0; }
.role-pick .role {
  flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 8px;
  text-align: center; cursor: pointer; background: #fff;
}
.role-pick .role.active { border-color: var(--brand); background: #e8f8ee; }
.role-pick .role .em { font-size: 26px; }
.role-pick .role .t { font-size: 13px; margin-top: 4px; font-weight: 600; }

/* modal / sheet */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-mask.hidden { display: none; }
.sheet {
  background: #fff; width: 100%; max-width: var(--maxw);
  border-radius: 16px 16px 0 0; padding: 18px; max-height: 86vh; overflow-y: auto;
}
.sheet h3 { margin: 0 0 14px; }

/* —— 滑动复核浮层（期1：准+快）—— */
.review-overlay { align-items: stretch; justify-content: center; background: rgba(0,0,0,.55); }
.review-sheet {
  background: #fff; width: 100%; max-width: 520px; margin: 0 auto;
  height: 100%; max-height: 100%; overflow-y: auto; padding: 0 14px 18px;
  display: flex; flex-direction: column;
}
.review-head {
  position: sticky; top: 0; background: #fff; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.review-head-l { font-size: 15px; }
.review-head-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ov-close {
  border: none; background: #f2f3f5; color: #555; width: 30px; height: 30px;
  border-radius: 50%; font-size: 16px; cursor: pointer; line-height: 1;
}
.ov-nav {
  border: 1px solid var(--line); background: #fff; color: var(--text-1);
  padding: 5px 10px; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.ov-pos { font-size: 12px; color: var(--text-3); }
.ov-close:hover, .ov-nav:hover { background: #eef0f2; }

/* 置信分级徽章：绿=双模型一致·建议通过，红=待复核 */
.conf-badge { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.conf-high { background: #e7f8ee; color: #1a9c54; border: 1px solid #b7e8cd; }
.conf-low { background: #fdecec; color: #e23b3b; border: 1px solid #f5c2c2; }

/* 演示回退警告横幅：未连上真AI服务时醒目提示 */
.demo-warn { background: #fff4e5; color: #b26a00; border: 1.5px dashed #ffb020; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin: 10px 16px; }

/* 判罚结果卡配色：对=绿框，错=红框 */
.conf-card.ok { border: 1px solid #b7e8cd; background: #f4fcf7; }
.conf-card.bad { border: 1px solid #f5c2c2; background: #fff6f6; }

.review-actions { display: flex; gap: 10px; margin-top: 14px; position: sticky; bottom: 0; background: #fff; padding: 10px 16px; border-top: 1px solid var(--line); }
.review-actions .btn { flex: 1; }
.wq-imgwrap { position: relative; width: 100%; line-height: 0; }
.wq-canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.tc-card { background: #fff8ef; border: 1px solid #ffe2bf; }

/* 分条批改：每条长条图 + 该条题目卡片（条即区域，位置天然精准） */
.strip-block { margin: 4px 0 20px; }
.wq-strip { width: 100%; border-radius: 10px; border: 1px solid #e2e8f0; box-shadow: 0 2px 6px rgba(0,0,0,.06); display: block; }
.strip-tag { font-size: 13px; color: #475569; font-weight: 600; margin: 8px 2px 8px; display: flex; align-items: center; gap: 6px; }
.strip-tag b { color: var(--brand); }
.strip-cards { display: flex; flex-direction: column; gap: 10px; }

/* ===== 作业流工作台（重构作业批改线）===== */
.wb-overview { display: flex; gap: 10px; margin-bottom: 14px; }
.wb-overview .stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.wb-overview .num { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.wb-overview .lbl { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 主操作按钮：比普通 .btn 更醒目（渐变 + 阴影），用于「整页拍照批改」 */
.wb-primary { background: linear-gradient(135deg, #1AB3A8, #15c2b0); box-shadow: 0 6px 16px rgba(26,179,168,.32); font-size: 16px; padding: 14px 18px; margin-bottom: 4px; }
.wb-primary:active { filter: brightness(.96); }

/* 整页原图 */
.wq-full { width: 100%; border-radius: 12px; margin: 8px 0; border: 1px solid var(--line); background: #fafafa; }

/* AI 自判徽章（无标准答案）：橙黄提示，区别于比对式的绿 */
.conf-mid { background: #fff4e5; color: #d98600; border: 1px solid #ffd9a0; }

/* 逐题判罚卡内结构（.wq-card 基础样式已在上方定义） */
.wq-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wq-no { font-weight: 800; font-size: 15px; }
.wq-flag { font-weight: 800; }
.conf-card.ok .wq-flag { color: #1a9c54; }
.conf-card.bad .wq-flag { color: #e23b3b; }
.wq-flip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-3); cursor: pointer; }
.wq-flip-chk { width: 16px; height: 16px; }
.wq-detail { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.wq-detail .m { font-size: 13px; margin-bottom: 3px; }
.wq-reason-edit { width: 100%; min-height: 52px; margin-top: 4px; resize: vertical; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }

/* misc */
.divider { height: 1px; background: var(--line); margin: 10px 0; }
.muted { color: var(--text-3); font-size: 12px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.badge-dot { position: absolute; }
.progress { height: 8px; background: #eef0f2; border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kp { font-size: 12px; background: #eef0f2; color: var(--text-2); padding: 4px 10px; border-radius: 12px; }
.section-title { font-size: 13px; color: var(--text-2); margin: 16px 16px 10px; font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.kid-arrows { display: flex; align-items: center; gap: 4px; }
.kid-arrows .ka { width: 30px; height: 30px; border-radius: 50%; background: #f2f4f5; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; cursor: pointer; user-select: none; }
.kid-arrows .ka:active { background: #e3e6e8; }
.flex { display: flex; align-items: center; justify-content: space-between; }
.hidden { display: none !important; }
.view { display: none; }
.view.active { display: block; }
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; z-index: 99; max-width: 80%; text-align: center;
}
/* 常驻加载层：耗时操作（如AI批改）期间常驻显示，避免用户以为卡死重复点击 */
.loading-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(255,255,255,.72); backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
.loading-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(0,122,255,.18); border-top-color: var(--brand, #007aff);
  animation: lhSpin .8s linear infinite;
}
.loading-txt { font-size: 15px; font-weight: 700; color: #1a2a44; text-align: center; padding: 0 24px; }
.loading-bar { width: 190px; height: 5px; border-radius: 4px; background: rgba(0,122,255,.12); overflow: hidden; margin-top: 2px; }
.loading-bar-in { width: 42%; height: 100%; border-radius: 4px; background: linear-gradient(90deg,var(--brand,#007aff),var(--accent,#5ac8fa)); animation: lhBar 1.1s ease-in-out infinite; }
@keyframes lhSpin { to { transform: rotate(360deg); } }
@keyframes lhBar { 0% { margin-left: -42%; } 100% { margin-left: 100%; } }
.ai-tag { font-size: 11px; background: linear-gradient(90deg,var(--accent),var(--brand)); color:#fff; padding:2px 8px; border-radius: 10px; }

/* 错因分级标签（对标五重错因） */
/* 品牌条（我的页，2026-09-14）：换成首页 hero 同款青绿渐变 + 白字 */
.brand-mini { position:relative; overflow:hidden; display:flex; align-items:center; gap:10px; padding: 12px 14px;
  background:linear-gradient(135deg,#15A79C 0%,#2CC0B3 55%,#66D9CD 100%); border-radius: 12px; margin-bottom: 12px;
  box-shadow:0 6px 16px rgba(26,179,168,.22); }
.brand-mini img { width: 38px; height: 38px; flex: 0 0 auto; position:relative; z-index:1; }
.brand-mini .bm-text { flex: 1; position:relative; z-index:1; }
.brand-mini .bm-name { font-weight: 700; color: #fff; font-size: 14px; }
.brand-mini .bm-sub { font-size: 11px; color: rgba(255,255,255,.92); margin-top: 2px; }
.err-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.err-tag { font-size: 11px; padding: 2px 9px; border-radius: 11px; border: 1px solid; line-height: 1.6; }
.err-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.err-legend span { font-size: 11px; color: var(--text-2); }
.err-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }

/* charts */
.chart-card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.chart-card h4 { margin: 0 0 10px; font-size: 14px; }
/* 学情卡内：区块标题与卡内内容左缘对齐（避免被 .section-title 全局 16px 左右 margin 额外缩进） */
.chart-card .section-title { margin-left: 0; margin-right: 0; }
/* AI 建议：独立卡片框，不再裸贴卡片左缘 */
.ai-advice { background: #f5fbf7; border-left: 3px solid var(--brand); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--text-2); line-height: 1.6; margin-top: 4px; }
.chart-grid { display: flex; gap: 12px; align-items: center; }
.ring { flex: 0 0 116px; }
.bars { flex: 1; min-width: 0; }
.bar-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.bar-row .bl { width: 48px; font-size: 12px; color: var(--text-2); text-align: right; flex: 0 0 48px; }
.bar-row .bt { flex: 1; height: 10px; background: #eef0f2; border-radius: 6px; overflow: hidden; }
.bar-row .bt > i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.bar-row .bv { width: 34px; font-size: 12px; color: var(--text); text-align: right; flex: 0 0 34px; }
.trend-svg { width: 100%; display: block; }
.trend-days { display: flex; gap: 8px; margin: 10px 0; }
.trend-block { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.trend-h { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.trend-concl { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.trend-raw { font-size: 11px; color: var(--text-2); margin-top: 4px; line-height: 1.7; word-break: break-all; }
.trend-raw .mut { color: #c4c8cc; }

/* points & badges */
.points-row { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg,#fff6e9,#eafaf0); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.points-row .pt-num { font-size: 22px; font-weight: 700; color: #f0883a; }
.points-row .pt-lbl { font-size: 12px; color: var(--text-2); }
.badges { display: flex; gap: 8px; margin: 8px 0 12px; }
.badge { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; }
.badge .be { font-size: 24px; line-height: 1; }
.badge .bl { font-size: 11px; color: var(--text-2); margin-top: 3px; white-space: nowrap; }
.badge.lock { opacity: .4; filter: grayscale(.7); }

/* pickup countdown */
.pickup { background: linear-gradient(135deg,#e8f1ff,#eafaf0); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.pickup .pk-t { font-size: 13px; color: var(--text-2); }
.pickup .pk-time { font-size: 15px; font-weight: 600; margin: 2px 0 6px; }
.pickup .pk-cd { display: flex; align-items: baseline; gap: 6px; }
.pickup .pk-cd b { font-size: 30px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.pickup .pk-cd span { font-size: 13px; color: var(--text-2); }
.pickup.done { background: linear-gradient(135deg,#e8f8ee,#d6f5e3); }
.pickup.done .pk-cd b { color: var(--brand); }

/* feedback */
.fb-item { background: var(--card); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.fb-item .fb-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); }
.fb-item .fb-q { margin-top: 4px; font-size: 14px; }
.fb-item .fb-a { margin-top: 8px; background: #f5fbf7; border-left: 3px solid var(--brand); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--text-2); }
.fb-item .fb-status { font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.fb-item .fb-status.wait { background: #fff0e8; color: var(--warn); }
.fb-item .fb-status.done { background: #e8f8ee; color: var(--brand); }

/* 批量录入 */
.batch-row { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.batch-row .bs { flex: 0 0 64px; }
.batch-row .bc { flex: 1; }
.batch-row .rdel { color: var(--danger); font-weight: 700; cursor: pointer; padding: 0 4px; }

/* 陪写计时流程 */
.tutor-sub { background: var(--card); border-radius: 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); }
.tutor-sub.active { border-color: var(--warn); background: #fff7f2; }
.tutor-sub .t { font-size: 15px; font-weight: 600; }
.tutor-sub .tm { font-size: 13px; color: var(--warn); font-variant-numeric: tabular-nums; }
.tutor-sub .m { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.tm b { font-size: 15px; }

/* 学情多维雷达 + 维度卡 */
.radar { display: block; margin: 0 auto; }
.dim-row { display: flex; gap: 8px; margin-top: 10px; }
.dim-chip { flex: 1; background: #f6f8fa; border-radius: 10px; padding: 8px 6px; text-align: center; }
.dim-chip .dc-n { font-size: 14px; font-weight: 700; color: var(--brand); }
.dim-chip .dc-l { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* 家长端实时进度 */
.progress-card { background: linear-gradient(135deg,#fff3e8,#eafaf0); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.progress-card .pc-t { font-size: 14px; font-weight: 600; }
.progress-card .pc-time { font-size: 13px; color: var(--text-2); margin: 4px 0 8px; }
.progress-card .pc-time b { color: var(--warn); font-size: 16px; font-variant-numeric: tabular-nums; }
.ps-list { display: flex; flex-direction: column; gap: 6px; }
.ps-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 6px 10px; }
.ps-row .ps-s { flex: 1; font-size: 14px; }
.ps-row .ps-sc { font-size: 13px; color: var(--brand); font-weight: 600; }

/* 课堂总结卡 */
.summary-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.summary-card .sc-t { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.summary-card .sc-d { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.summary-card .sc-d b { color: var(--brand); }
.sum-photo { max-width: 48%; border-radius: 8px; margin: 4px 4px 0 0; }
.sc-sum { font-size: 14px; margin-top: 6px; line-height: 1.6; }

/* 导出 */
.export-box { max-height: 50vh; overflow-y: auto; }
.ex-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.ex-no { font-weight: 700; font-size: 14px; }
.ex-kp, .ex-reason, .ex-tags { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.ex-ans { color: var(--brand); margin-top: 4px; }

/* ===== 新模块：能量条 / 闪亮特效 / 激励中心 / 语文预习 / 管理表单 ===== */
.sparkle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.sparkle-layer span { position: absolute; top: -30px; animation: spkFall 1.5s ease-in forwards; }
@keyframes spkFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(90vh) rotate(280deg); opacity: 0; } }

.energy-bar { background: linear-gradient(135deg, #fffbe9, #f0fffa); border: 1px solid #ffe3a3; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.energy-bar .eb-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.energy-bar .eb-top b { color: var(--warn); }
.energy-bar .eb-pet { color: var(--brand); font-weight: 600; }
.eb-track { height: 10px; background: #eef2f0; border-radius: 6px; overflow: hidden; }
.eb-fill { height: 100%; background: linear-gradient(90deg, #ffd23f, #f39c2a); border-radius: 6px; transition: width .4s; }
.energy-bar .eb-hint { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.energy-bar.sm { padding: 7px 10px; margin-bottom: 8px; }

.rc-pet-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #e9fbf7, #fefbe9); border: 1px solid #bfe9e0; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.rc-pet { font-size: 52px; }
.rc-pet-info { flex: 1; }
.rc-pet-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.rc-rename { font-size: 12px; color: var(--brand); font-weight: 400; margin-left: 6px; cursor: pointer; text-decoration: underline; }
.rc-energy { text-align: center; }
.rc-e-num { font-size: 20px; font-weight: 800; color: var(--warn); }
.rc-e-lbl { font-size: 12px; color: var(--text-2); }
.rc-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.rc-item b { font-size: 14px; }
.rc-log { font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.rc-log:last-child { border-bottom: none; }
.rc-trend { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding: 6px 0 4px; }
.rc-bar-w { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.rc-bar { width: 70%; max-width: 34px; background: linear-gradient(180deg, var(--brand), #7fd9cf); border-radius: 6px 6px 0 0; }
.rc-bar-l { font-size: 10px; color: var(--text-2); margin-top: 3px; }
.rc-bar-v { font-size: 10px; color: var(--brand); }

.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 4px; }
.pv-word { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; }
.pv-char { font-size: 26px; font-weight: 800; color: var(--brand); }
.pv-py { font-size: 13px; color: var(--warn); margin: 2px 0; }
.pv-zc { font-size: 12px; color: var(--text-2); }
.pv-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }

.mg-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.mg-row.col { flex-direction: column; align-items: stretch; background: #f7faf9; border-radius: 10px; padding: 8px; }
.mg-in { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 14px; }
.mg-in.w-char { flex: 0 0 56px; }
.mg-in.w-py { flex: 0 0 84px; }
.mg-del { flex: 0 0 34px; height: 34px; border: 1px solid #ffd0d0; background: #fff5f5; color: #e23b3b; border-radius: 8px; font-size: 14px; }
.sm-btn { width: auto !important; display: inline-block; padding: 6px 14px !important; font-size: 13px !important; margin-right: 8px; }
.sm-btn.danger { color: #e23b3b; border-color: #ffd0d0; }

/* —— 听写中心（老师端覆盖层） —— */
.dict-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(60,40,20,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dict-panel { width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; background: #fffdf8; border-radius: 22px; box-shadow: 0 16px 40px rgba(120,70,20,.3); }
.dict-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 2px solid #ffe6c2; font-size: 17px; color: #c66a12; }
.dict-close { cursor: pointer; font-size: 18px; color: #b07a3a; padding: 2px 8px; }
.dict-setup { padding: 16px 18px; }
.dict-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dict-lab { width: 56px; flex: 0 0 56px; color: #8a5a2b; font-weight: 700; font-size: 14px; }
.dict-sel { flex: 1; padding: 10px; border-radius: 12px; border: 2px solid #ffd9a8; font-size: 15px; background: #fff; }
.seg { display: inline-flex; gap: 8px; }
.seg-btn { border: 2px solid #ffd9a8; background: #fff; color: #8a5a2b; font-size: 14px; border-radius: 20px; padding: 7px 14px; cursor: pointer; }
.seg-btn.active { background: #ffb347; color: #fff; border-color: #ffb347; font-weight: 700; }
.dict-go { width: 100%; margin-top: 6px; }
.dict-run { padding: 18px; }
.dict-prog { text-align: center; color: #b07a3a; font-size: 14px; margin-bottom: 12px; }
.dict-item { text-align: center; background: #fff6e8; border-radius: 18px; padding: 22px 10px; margin-bottom: 12px; }
.dict-text { font-size: 34px; font-weight: 800; color: #7a5320; }
.dict-sub2 { font-size: 15px; color: #a06a32; margin-top: 6px; }
.dict-spk { display: block; margin: 12px auto 0; border: none; background: #e7f0ff; color: #3a6fd8; font-size: 15px; border-radius: 20px; padding: 8px 18px; cursor: pointer; font-weight: 700; }
.dict-tip { text-align: center; color: #b09370; font-size: 13px; margin: 6px 0 14px; }
.dict-actions { display: flex; gap: 12px; }
.dict-ok, .dict-no { flex: 1; border: none; border-radius: 16px; padding: 14px 0; font-size: 16px; font-weight: 800; cursor: pointer; }
.dict-ok { background: linear-gradient(160deg,#7ed957,#4caf50); color: #fff; box-shadow: 0 4px 0 #3d8b40; }
.dict-no { background: linear-gradient(160deg,#ffb199,#ff8a65); color: #fff; box-shadow: 0 4px 0 #e0744a; }
.dict-done { text-align: center; padding: 20px 6px; }
.dict-big { font-size: 26px; font-weight: 800; color: #e8820c; margin-bottom: 8px; }
.dict-sub { color: #b07a3a; font-size: 14px; margin: 6px 0; }
.dict-wlist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.dict-wchip { background: #fff0f0; color: #d23b3b; border: 1px solid #ffd0d0; border-radius: 16px; padding: 6px 12px; font-size: 15px; font-weight: 700; }
.dict-notice { background: #fff6e8; border: 1px dashed #ffcf94; border-radius: 14px; padding: 10px 12px; color: #a06a32; font-size: 14px; margin-bottom: 12px; }
.dict-plist { margin-bottom: 8px; }
.dict-pitem { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(180,120,40,.1); }
.dict-px { color: #e23b3b; font-size: 18px; }
.dict-pw { font-size: 18px; font-weight: 800; color: #7a5320; }
.dict-ps { font-size: 13px; color: #a06a32; margin-left: 4px; }

/* 续费提醒 / 签到导出 / 批量导入 / 拍照识别 */
.renew-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #f0e2cb; }
.renew-row .nm { font-weight: 700; color: #5a4632; }
.due-soon { color: #e8820c; font-weight: 800; }
.due-bad { color: #e23b3b; font-weight: 800; }
.due-ok { color: #2e8b57; }
.review-badge { display:inline-block; min-width:20px; text-align:center; background:#e23b3b; color:#fff; font-size:12px; font-weight:800; border-radius:10px; padding:1px 7px; margin-left:6px; vertical-align:middle; }

/* 错题本 · 卡片药丸网格（年级→学生药丸→展开错题） */
.wb-grade-block { margin-bottom: 24px; }
.wb-grade-title { text-align:center; font-size:14px; font-weight:600; color:#555; margin-bottom:10px; display:flex; align-items:center; justify-content:center; gap:12px; }
.wb-grade-title::before, .wb-grade-title::after { content:''; display:inline-block; width:28px; height:1px; background:#ccc; }
.wb-stu-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:0 4px; }
.wb-stu-pill { display:flex; align-items:center; justify-content:center; padding:12px 4px; border:1.5px solid #e0e0e0; border-radius:12px; background:#fff; color:var(--text); font-size:14px; cursor:pointer; transition:border-color .15s, box-shadow .15s; -webkit-tap-highlight-color:transparent; }
.wb-stu-pill:hover, .wb-stu-pill:active { border-color:var(--brand); box-shadow:0 2px 8px rgba(45,134,89,.12); }
.wb-stu-detail { grid-column:1 / -1; padding:12px 8px 4px; animation:wbSlideIn .2s ease; }
@keyframes wbSlideIn { from{opacity:0;transform:-6px} to{opacity:1;transform:0} }
.wb-stu-detail-head { font-size:13px; font-weight:600; color:var(--text-2); margin-bottom:6px; padding-bottom:6px; border-bottom:1px solid var(--line); }
/* 错题本：按人头 → 年级分组 + 学生药丸网格 */
.wb-grade-group { margin-bottom:16px; }
.wb-stu-grid-new { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:0 2px; }
.wb-stu-pill-new { display:flex; align-items:center; justify-content:center; gap:4px; padding:10px 12px; border:1.5px solid #e2ebe9; border-radius:12px; background:#fff; color:var(--text); font-size:14px; cursor:pointer; transition:border-color .15s, box-shadow .15s, background .15s; -webkit-tap-highlight-color:transparent; position:relative; }
.wb-stu-pill-new:hover, .wb-stu-pill-new:active { border-color:var(--brand); background:#f6fbf9; box-shadow:0 2px 8px rgba(45,134,89,.10); }
.wb-pill-count { font-size:11px; color:#999; background:#f5f5f5; padding:1px 6px; border-radius:8px; font-weight:400; }
.wb-stu-expand { margin-top:10px; padding:12px 10px; animation:wbSlideIn .2s ease; }
/* 错题本紧凑横卡（替代旧 wq-leaf 竖排） */
.wqc-card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-bottom:8px; cursor:pointer; transition:border-color .15s,box-shadow .15s; -webkit-tap-highlight-color:transparent; }
.wqc-card:hover, .wqc-card:active { border-color:var(--brand); box-shadow:0 2px 8px rgba(26,179,168,.10); }
.wqc-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wb-ctrls-bar { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:12px; padding:8px 10px; background:#f7faf9; border-radius:10px; }
.wb-ctrls-bar .bfilter { padding:3px 10px; font-size:12px; border-radius:12px; }
.wb-dot { width:1px; height:16px; background:#ddd; flex-shrink:0; }
.wb-seg-inline { display:flex; align-items:center; gap:4px; }
.wqc-dim { font-size:11px; padding:1px 8px; border-radius:10px; flex-shrink:0; }
.wqc-dim.subj { background:#E1F5EE; color:#0F6E56; border:1px solid #0F6E5666; }
.wqc-dim.stu { background:#FAEEDA; color:#854F0B; border:1px solid #854F0B66; }
.wqc-no { background:var(--brand); color:#fff; font-size:11px; font-weight:700; padding:2px 8px; border-radius:6px; white-space:nowrap; flex-shrink:0; }
.wqc-kp { font-size:12.5px; color:var(--text-2); font-weight:500; flex:1; min-width:0; overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.wqc-st { font-size:11px; font-weight:600; padding:1px 7px; border-radius:5px; white-space:nowrap; flex-shrink:0; }
.wqc-st.ok { background:#e8f9f3;color:#07c160; } .wqc-st.no { background:#fff0e8;color:#e65028; }
.wqc-btns { display:flex; gap:5px; flex-shrink:0; margin-left:auto; }
.wqc-btns .sm { font-size:11px; padding:4px 10px; border-radius:8px; border:none; cursor:pointer; font-weight:600; transition:all .15s; white-space:nowrap; -webkit-tap-highlight-color:transparent; }
.wqc-btns .sm:nth-child(1) { background:#f0f6ff; color:#3b82f6; } /* 看原卷 — 蓝色 */
.wqc-btns .sm:nth-child(1):hover { background:#dbeafe; }
.wqc-btns .sm:nth-child(2) { background:#e8f9f3; color:#07c160; } /* 已掌握 — 绿色 */
.wqc-btns .sm:nth-child(2).ghost { background:#f5f5f5; color:#999; } /* 未掌握变体 */
.wqc-btns .sm:nth-child(2).ghost:hover { background:#eee; }
.wqc-body { margin-top:7px; padding-top:7px; border-top:1px dashed #eee; display:flex; flex-direction:column; gap:4px; }
.wqc-reason { font-size:12.5px; color:#444; line-height:1.55; }
.wqc-reason-summary { font-size:12.5px; color:#c44a00; font-weight:500; line-height:1.5; cursor:pointer; padding:3px 0; }
.wqc-reason-summary::after { content:' ▾'; font-size:10px; margin-left:3px; color:#999; }
.wqc-reason-summary.expanded::after { content:' ▴'; }
.wqc-reason-full { display:none; margin-top:4px; padding:8px 10px; background:#fffbf5; border-radius:8px; border-left:3px solid #f39c12; font-size:12.5px; color:#555; line-height:1.65; white-space:pre-wrap; word-break:break-word; }
.wqc-reason-full.show { display:block; }
.wqc-ans { font-size:12.5px; color:var(--brand); font-weight:600; }
.wqc-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:2px; }
/* 错题详情内图片裁切展示 */
.wq-detail-img-wrap { position:relative; border-radius:10px; overflow:hidden; margin:8px 0; background:#fafafa; border:1px solid var(--line); }
.wq-detail-img-wrap img { width:100%; display:block; }
.wq-detail-img-hint { text-align:center; font-size:11px; color:#999; padding:4px 0; background:#fafafa; }
/* 错题详情：题面题卡（完整题面文字 + 下方手写答案图） */
.wq-question { background:#fffdf0; border:1px solid #f0e6c8; border-left:4px solid var(--brand); border-radius:8px; padding:10px 12px; font-size:14px; line-height:1.7; color:#333; margin-bottom:2px; }
/* ===== 作业页改版（2026-09-12）：与首页同一套设计语言（页面头 / 概览卡 / 记录卡 / 学员分组）===== */
/* 页面头（2026-09-14）：换成首页 hero 同款青绿渐变 + 白字，全站色条统一 */
.pagehead { position:relative; overflow:hidden; display:flex; align-items:center; gap:10px;
  background:linear-gradient(135deg,#15A79C 0%,#2CC0B3 55%,#66D9CD 100%); color:#fff;
  border:none; border-radius:16px; padding:12px 14px; margin-bottom:12px;
  box-shadow:0 6px 16px rgba(26,179,168,.22); }
.pagehead::after { content:''; position:absolute; right:-26px; top:-32px; width:104px; height:104px;
  border-radius:50%; background:rgba(255,255,255,.13); }
.pagehead::before { content:''; position:absolute; right:42px; bottom:-42px; width:72px; height:72px;
  border-radius:50%; background:rgba(255,255,255,.09); }
.pagehead .ph-ic { position:relative; z-index:1; width:38px; height:38px; flex-shrink:0; border-radius:12px;
  background:rgba(255,255,255,.96); color:#0F6E56; display:flex; align-items:center; justify-content:center;
  line-height:0; box-shadow:0 2px 8px rgba(0,0,0,.10); }
.pagehead .ph-t { flex:1; min-width:0; position:relative; z-index:1; }
.pagehead .ph-t b { display:block; font-size:16px; font-weight:700; color:#fff; line-height:1.3; }
.pagehead .ph-t span { display:block; font-size:11.5px; color:rgba(255,255,255,.92); margin-top:3px; }
.pagehead .ph-n { position:relative; z-index:1; flex-shrink:0; font-size:11.5px; font-weight:700; color:#0F6E56;
  background:rgba(255,255,255,.96); border-radius:999px; padding:5px 11px; box-shadow:0 2px 8px rgba(0,0,0,.10); }
/* 概览小卡：数值为 0 时弱化（避免 0 也用主色抢注意力） */
.ovw-c.mut .n { color:#B9C0C6; }
/* 小提示条：替代原先孤零零的一行灰字 */
.tipbar { display:flex; align-items:center; gap:7px; background:#F7F9FA; border:1px solid #EDF0F2;
  border-radius:11px; padding:9px 11px; font-size:11.5px; color:var(--text-2); line-height:1.5; margin:2px 0; }
.tipbar .tb-ic { color:var(--brand); flex-shrink:0; line-height:0; }
/* 分区标题右侧小链接（可点） */
.sec-h .sx.link { color:#0E9488; font-weight:600; cursor:pointer; }
/* 今日批改记录：白卡 + 状态色条 + 药丸 */
.rec-card { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:0 1px 2px rgba(16,24,40,.04); }
.rec-row { display:flex; align-items:center; gap:10px; padding:11px 13px; border-bottom:1px solid #f3f5f7; cursor:pointer; }
.rec-row:last-child { border-bottom:none; }
.rec-row:active { background:#f7fbfa; }
.rec-row .rc-dot { width:4px; height:34px; border-radius:2px; flex-shrink:0; background:#CFE9E4; }
.rec-row .rc-dot.pending { background:#FFB74D; }
.rec-row .rc-dot.done { background:#4CC9A8; }
.rec-row .rc-m { flex:1; min-width:0; }
.rec-row .rc-n { font-size:14.5px; font-weight:600; color:var(--text); line-height:1.3;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rec-row .rc-n em { font-style:normal; font-weight:400; font-size:11.5px; color:var(--text-3); margin-left:6px; }
.rec-row .rc-s { display:flex; align-items:center; gap:5px; margin-top:5px; flex-wrap:wrap; }
.rc-chip { font-size:11px; padding:2px 7px; border-radius:999px; background:#f2f4f5; color:var(--text-2); white-space:nowrap; }
.rc-chip.sc { background:#FFF7E6; color:#B45309; font-weight:700; }
.rc-pill { flex-shrink:0; font-size:11.5px; font-weight:700; padding:4px 11px; border-radius:999px; white-space:nowrap; }
.rc-pill.done { background:#E6F7EE; color:#1A9E57; }
.rc-pill.pending { background:#FFF3E0; color:#E08800; }
.rc-pill.other { background:#E6F1FB; color:#185FA5; }
/* 作业列表：学员分组卡（头行 = 姓氏圆标 + 姓名 + 数量药丸 + 折叠箭头；作业行改为卡内平铺细分隔线） */
.hw-group { background:#fff; border:1px solid var(--line); border-radius:16px; margin-bottom:10px;
  overflow:hidden; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.hw-group-head { display:flex; align-items:center; gap:10px; padding:12px 13px; background:#fff; cursor:pointer; }
.hw-group-head:active { background:#f7fbfa; }
.hw-group-head .stu-av { width:32px; height:32px; flex-shrink:0; border-radius:50%; background:var(--brand-soft);
  color:#0F6E56; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.hw-group-head .stu-av.warn { background:#FFF3E0; color:#D98416; }
.hw-group-head .sn { flex:1; min-width:0; font-size:14.5px; font-weight:600; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hw-group-head .stu-cnt { flex-shrink:0; font-size:11.5px; font-weight:700; color:#0F6E56;
  background:var(--brand-soft); border-radius:999px; padding:3px 9px; }
.hw-group-head .caret { flex-shrink:0; color:#C3C9CF; line-height:0; display:flex; transition:transform .18s ease; }
.hw-group.collapsed .caret { transform:rotate(-90deg); }
.hw-group.collapsed .hw-group-body { display:none; }
.hw-group-body { padding:0 13px; }
.hw-group-body .item { background:transparent; border:none; border-top:1px solid #f3f5f7; border-radius:0;
  padding:12px 0; margin:0; box-shadow:none; }
.due-none { color: #b09370; }
.export-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.export-table th, .export-table td { border: 1px solid #f0e2cb; padding: 6px 8px; text-align: left; }
.export-table th { background: #fff3df; color: #8a5a2b; }
.bulk-ta { width: 100%; min-height: 160px; border: 2px solid #ffd9a8; border-radius: 12px; padding: 10px; font-size: 14px; font-family: inherit; resize: vertical; box-sizing: border-box; }
.preview-box { background: #f7faf9; border: 1px solid #d9ece9; border-radius: 12px; padding: 10px 12px; margin: 8px 0; max-height: 280px; overflow-y: auto; font-size: 13px; line-height: 1.6; }
.prev-stat { font-size: 13px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed #d9ece9; }
.prev-stat b { color: var(--teal); font-size: 15px; }
.prev-warn { color: #d98324; font-weight: 600; }
.prev-err { color: #e4584f; font-weight: 600; }
.prev-sec { margin-top: 8px; }
.prev-sec-h { font-weight: 600; color: #2b3a39; margin-bottom: 2px; }
.prev-item { color: #41504e; }
.prev-item.prev-sent { color: #6b5bd6; }
.prev-err.prev-line { display: block; }
.ocr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.seg { display: inline-flex; gap: 0; margin: 6px 0; }
.seg .sb { border: 2px solid #ffd9a8; background: #fff; color: #8a5a2b; padding: 7px 14px; cursor: pointer; font-size: 14px; }
.seg .sb:first-child { border-radius: 14px 0 0 14px; }
.seg .sb:last-child { border-radius: 0 14px 14px 0; }
.seg .sb.on { background: #ffb347; color: #fff; border-color: #ffb347; font-weight: 700; }
input[type=date] { border: 1px solid #e5d6bd; border-radius: 10px; padding: 9px 10px; font-size: 15px; font-family: inherit; width: 100%; box-sizing: border-box; background: #fff; }

/* 今日自习室看板 + AI 作业批改 */
.bseg-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.bseg { border: 2px solid #cfe9e6; background: #fff; color: var(--brand-dark); padding: 7px 14px; border-radius: 18px; cursor: pointer; font-size: 14px; }
.bseg.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.sim-watermark { background: #fff7e6; border: 1px dashed #ffcf94; color: #a06a32; font-size: 13px; padding: 8px 10px; border-radius: 10px; margin-bottom: 10px; }
.board-card { background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.board-card.star { border: 2px solid var(--accent); box-shadow: 0 4px 14px rgba(243,156,42,.25); }
.bc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.star-badge { font-size: 18px; }
.warn-badge { background: #fff1f0; color: var(--danger); border: 1px solid #ffd6d6; border-radius: 10px; padding: 1px 6px; font-size: 11px; font-weight: 600; display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.bc-bars { display: flex; flex-direction: column; gap: 6px; }
.bcell { display: flex; align-items: center; gap: 8px; }
.bcell .bl { width: 48px; flex: 0 0 48px; color: var(--text-2); font-size: 13px; }
.bbar { flex: 1; height: 10px; background: #f0f2f5; border-radius: 6px; overflow: hidden; }
.bbar span { display: block; height: 100%; border-radius: 6px; }
.bv { width: 56px; flex: 0 0 56px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text); }
.bv.muted { color: var(--text-3); font-weight: 400; }
.wq-card { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.wq-card-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.wq-report { font-size: 12px; color: #d97706; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 5px 10px; cursor: pointer; font-weight: 600; }
.wq-report:hover { background: #ffedd5; }
.wq-report:disabled { cursor: default; }
.wq-img { width: 100%; max-width: 240px; border-radius: 10px; margin-bottom: 8px; display: block; }
.wq-keep { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--text-2); font-size: 14px; }
.big-score { font-size: 16px; margin: 8px 0; }
.big-score b { font-size: 26px; color: var(--accent); }

/* === 看板顶部控件分组（排序 / 筛选 / 视图） === */
.bd-controls { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.bd-group-title { font-size: 12px; color: var(--text-3); font-weight: 700; letter-spacing: .5px; margin-bottom: 6px; }
.bd-group .bseg-bar { margin: 0; }
.bfilter-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bfilter { border: 1.5px solid #cfe9e6; background: #fff; color: var(--brand-dark); padding: 4px 12px; border-radius: 16px; cursor: pointer; font-size: 13px; width: auto !important; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0; box-sizing: border-box; }
.bfilter.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.bview-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bview-toggle { display: inline-flex; }
.bview-toggle .bseg { margin: 0; }

/* === 看板分区标题（明星 / 全体 / 重点） === */
.board-zone { margin-bottom: 14px; }
.zone-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--text); padding-left: 10px; border-left: 4px solid var(--brand); margin-bottom: 10px; }
.zone-star .zone-title { border-left-color: var(--accent); }
.zone-warn .zone-title { border-left-color: var(--danger); }

/* === 作业提交板块（分流枢纽） === */
.hs-actions { display: flex; gap: 10px; margin-top: 12px; }
/* 今日陪写一键开始：科目小胶囊 */
.tu-chip { display:inline-block; padding:4px 13px; border-radius:16px; background:#e9f7f4; color:#12504a; font-size:13px; font-weight:600; cursor:pointer; user-select:none; }
.tu-chip:active { transform:scale(.94); }
.hs-actions .btn { margin-top: 0; width: auto; flex: 1; }
@media (max-width: 560px) { .hs-actions { flex-direction: column; } }

/* ===== 作业提交：按科目分组折叠（整科批量“仅交存档”）===== */
.hs-grp { border:1px solid #e3e8ee; border-radius:12px; margin:10px 0; overflow:hidden; background:#fff; }
.hs-grp.collapsed .hs-grp-body { display:none; }
.hs-grp-head { display:flex; align-items:center; gap:8px; padding:11px 14px; cursor:pointer; background:#f4faf9; font-weight:600; color:#12504a; user-select:none; }
.hs-grp-head .hs-arrow { display:inline-block; color:#1AB3A8; font-weight:700; flex-shrink:0; }
.hs-grp-title { font-size:15px; white-space:nowrap; }
.hs-grp-count { background:#e9f7f4; color:#1AB3A8; border-radius:20px; padding:2px 10px; font-size:12px; white-space:nowrap; flex-shrink:0; }
.hs-grp-body { padding:4px 12px 12px; }
.hs-item { display:flex; align-items:flex-start; gap:10px; padding:10px 2px; border-top:1px dashed #eef1f4; }
.hs-item:first-child { border-top:none; }
.hs-item input[type=checkbox] { width:18px; height:18px; margin-top:3px; flex:none; cursor:pointer; }
.hs-item-main { flex:1; min-width:0; }
.hs-item-title { font-weight:500; }
.hs-item-meta { font-size:12px; color:#8a94a6; margin-top:2px; }
.hs-item input[type=file] { margin-top:7px; font-size:12px; max-width:100%; }

/* === 作业提交：按科目分组折叠（整科批量提交） === */
.hs-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hs-toolbar .btn { width: auto; margin: 0; padding: 6px 12px; font-size: 13px; }
.hs-count { font-size: 13px; color: var(--text-2); margin-left: auto; font-weight: 600; }
.hsg { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--card); }
.hsg-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; background: var(--brand-soft); user-select: none; }
.hsg-head b { font-size: 15px; color: var(--text); }
.hsg-caret { color: var(--brand-dark); font-size: 13px; width: 12px; text-align: center; }
.hsg-cnt { background: var(--brand); color: #fff; border-radius: 10px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
.hsg-all-wrap { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.hsg-all-wrap input { width: 16px; height: 16px; }
.hsg-body { padding: 4px 12px 10px; border-top: 1px solid var(--line); }
.hsi { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hsi:last-child { border-bottom: none; }
.hsi-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.hsi-top input[type=checkbox] { width: 18px; height: 18px; flex: none; }
.hsi-title { font-size: 14px; font-weight: 600; color: var(--text); }
.hsi-meta { font-size: 12px; color: var(--text-3); }
.hsi-done { font-size: 11px; background: #e8f7ef; color: #1a9e57; border-radius: 8px; padding: 1px 6px; font-weight: 600; }
.hsi-file { margin-top: 6px; font-size: 12px; width: 100%; }
.hsi.picked { background: #fffdf7; }

/* === 紧凑视图重做（指标网格卡片） === */
.compact-row { background: #fff; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); border: 1px solid #f0ece4; cursor: pointer; }
.compact-row:active { transform: scale(.995); }
.cr-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cr-name b { font-size: 15px; color: var(--text); }
.cr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cr-cell { display: flex; flex-direction: column; align-items: center; background: #faf7f1; border-radius: 8px; padding: 6px 4px; }
.cr-lab { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.cr-val { font-size: 14px; font-weight: 700; color: var(--text); }
.cr-val.muted { color: var(--text-3); font-weight: 400; }
.cr-prog { margin-top: 8px; background: #eafaf1; color: #1a9d55; border-radius: 8px; padding: 5px 8px; font-size: 12px; font-weight: 700; text-align: center; }
@media (max-width: 560px) {
  .cr-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .cr-lab { font-size: 10px; }
  .cr-val { font-size: 13px; }
}

/* === 看板纯表格视图 === */
.board-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; border: 1px solid #f0ece4; border-radius: var(--radius); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.board-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.board-table th, .board-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid #f3eee4; white-space: nowrap; }
.board-table th { background: #fff3df; color: #8a5a2b; font-weight: 700; cursor: pointer; user-select: none; position: sticky; top: 0; }
.board-table th.on { color: var(--brand-dark); }
.board-table td:first-child, .board-table th:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.board-table th:first-child { background: #fff3df; z-index: 2; }
.board-table tbody tr:nth-child(even) { background: #fdfbf7; }
.board-table tbody tr.star-row { background: #fff8ec; }
.board-table tr.warn-row { background: #fff1f0 !important; }
.board-table tr.warn-row td { color: #c0392b; }
.board-table .star-badge { font-size: 14px; }
.board-table td.up { color: #1a9d55; font-weight: 700; }
.board-table .empty { text-align: center; color: var(--text-3); padding: 20px; }

/* ===== 批改结果页 重设计（简洁美观） ===== */
/* 评分概览卡：青蓝渐变 + 环形进度 */
.grade-summary { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #1AB3A8, #15c2b0); color: #fff; border-radius: 16px; padding: 18px 22px; margin: 12px 0; box-shadow: 0 6px 18px rgba(26,179,168,.22); }
.grade-summary.all { background: linear-gradient(135deg, #2bb673, #1a9c54); box-shadow: 0 6px 18px rgba(43,182,115,.22); }
.gs-ring { position: relative; width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto; background: conic-gradient(rgba(255,255,255,.42) calc(var(--p,0)*1%), rgba(255,255,255,.18) 0); display: flex; align-items: center; justify-content: center; }
.gs-ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255,255,255,.16); }
.gs-num { position: relative; z-index: 1; font-size: 25px; font-weight: 800; line-height: 1; }
.gs-num span { font-size: 13px; font-weight: 700; margin-left: 1px; }
.gs-right { flex: 1; min-width: 0; }
.gs-title { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.gs-stat { font-size: 13px; opacity: .92; margin-bottom: 9px; }
.gs-stat b { font-size: 15px; font-weight: 800; }
.gs-bar { height: 7px; border-radius: 6px; background: rgba(255,255,255,.28); overflow: hidden; }
.gs-bar > i { display: block; height: 100%; background: #fff; border-radius: 6px; transition: width .4s ease; }

/* 逐题卡：白底 + 左侧色条，大圆圈对错图标 */
.wq-card { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.conf-card.ok { border: 1px solid var(--line); border-left: 4px solid #2bb673; background: #fff; }
.conf-card.bad { border: 1px solid var(--line); border-left: 4px solid #ee5b5b; background: #fff; }
.wq-row { display: flex; gap: 12px; align-items: flex-start; }
.wq-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; margin-top: 1px; }
.wq-ic.ok { background: #2bb673; }
.wq-ic.bad { background: #ee5b5b; }
.wq-body { flex: 1; min-width: 0; }
.wq-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wq-no { font-weight: 800; font-size: 15px; color: var(--text); }
.wq-review-badge { background: #ff9500; color: #fff; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.wq-math-badge { background: #d4380d; color: #fff; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.wq-flip { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); cursor: pointer; user-select: none; }
.wq-flip-chk { width: 15px; height: 15px; accent-color: var(--brand); }
.wq-flip-lbl { white-space: nowrap; }
.wq-answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.wq-av { font-size: 13px; background: #f4f6f8; color: var(--text-2); padding: 3px 9px; border-radius: 8px; }
.wq-av i { font-style: normal; color: var(--text-3); margin-right: 4px; font-size: 11px; }
.wq-av.ok { background: #eafaf1; color: #1a9c54; }
.wq-av.ok i { color: #1a9c54; }
.wq-note { margin-top: 8px; font-size: 12px; color: #b26a00; background: #fff8ef; border: 1px solid #ffe2bf; border-radius: 8px; padding: 6px 8px; }
.wq-idx { font-size: 11px; color: var(--text-3); background: #eef2f3; border-radius: 8px; padding: 1px 7px; margin-left: 6px; font-weight: 600; }
.orig-img-thumb.flash { box-shadow: 0 0 0 4px var(--brand); transition: box-shadow .25s; }
.wq-detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.wq-reason { font-size: 13px; color: var(--text); line-height: 1.6; }
.wq-reason b { color: var(--danger); margin-right: 5px; }
.wq-kp { display: inline-block; margin-top: 7px; font-size: 12px; background: var(--brand-soft); color: var(--brand-dark); padding: 3px 10px; border-radius: 12px; }
.wq-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.wq-tag { font-size: 11px; color: #e8590c; background: #fff4e6; border: 1px solid #ffd8a8; border-radius: 10px; padding: 1px 8px; }
.wq-reason-edit { width: 100%; min-height: 52px; margin-top: 8px; resize: vertical; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.short-hint { font-size: 12px; color: var(--text-3); margin: 2px 16px 10px; }
/* 标记 AI 判错：低调幽灵按钮，不抢视线 */
.wq-report { background: none; border: 1px solid var(--line); color: var(--text-3); font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.wq-report:hover { color: var(--danger); border-color: #f3c2c2; }
/* 原卷照片：带红圈(错)/绿勾(对)标记，canvas 绝对覆盖在图片上 */
.orig-images { margin-top: 10px; }
.orig-img-row { display: flex; flex-wrap: wrap; gap: 10px; }
.orig-pair { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.orig-img-thumb { width: 100%; max-width: 320px; border-radius: 10px; display: block; cursor: zoom-in; }
.orig-canvas { position: absolute; top: 0; left: 0; pointer-events: none; border-radius: 10px; }
.orig-img-thumb.zoomed { max-width: 92vw; }
/* 多页批改：逐题明细按「页」分段（2026-09-12）*/
.page-divider {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 14px 0 8px; padding: 7px 12px; border-radius: 10px;
  background: #eef7f6; border: 1px solid #cfe9e6; color: #0e7c72;
  font-size: 13px; font-weight: 700;
}
.page-divider .pd-meta { font-weight: 500; font-size: 12px; color: #4a8c85; }
.page-divider:first-child { margin-top: 4px; }
.page-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #eef7f6; color: #0e7c72; margin-left: 6px; vertical-align: middle; }
.wq-page-tag { flex: 0 0 auto; font-size: 11px; color: #0e7c72; background: #eef7f6; border-radius: 8px; padding: 1px 6px; margin-left: 4px; }
/* 多页批改：部分页失败的显性提示（否则只弹一个 toast，老师不知道哪页没批）*/
.grade-fail-banner {
  margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px;
  background: #fff7e6; border: 1px solid #ffd591; color: #b45309; font-size: 13px; line-height: 1.6;
}
.grade-fail-banner b { color: #a1450a; }
.grade-fail-banner .gfb-list { margin-top: 4px; font-size: 12px; color: #9a6a10; }
.grade-dup-banner {
  margin: 10px 16px 0; padding: 9px 12px; border-radius: 12px;
  background: #eef7f6; border: 1px solid #cfe9e6; color: #0e7c72; font-size: 13px; line-height: 1.6;
}
