/* ==================================================================
 * 子平台通用样式（老师工作台 / 学生学习台）
 * 与主后台同一套视觉语言：深蓝渐变 + 楷体标题 + 圆角卡片，支持浅/深色
 * ================================================================== */
/* 毛笔行楷：随应用带的子集字体（从华文行楷 Xingkai SC 抽的古诗用字，281KB），
   本机没装「行楷」也不会掉成宋体。生成脚本 tools/gen_poem_font.js */
@font-face {
  font-family: "KG Xingkai";
  src: url("/shared/fonts/kg-poem.ttf?v=1") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* 文档标题行楷：GB2312 一级 3755 字 + 标点 + 学科高频，覆盖各科讲义标题（2.8MB）。
 * 只在「标题」用到这一族时浏览器才去下载，正文不受影响。
 * 生成脚本 tools/gen_doc_font.js；本机装了华文行楷时优先用系统字体，不下载这个文件。 */
@font-face {
  font-family: "KG Doc Xingkai";
  src: url("/shared/fonts/kg-xing.ttf?v=1") format("truetype");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue1: #1e3a8a; --blue2: #2563eb; --blue3: #3b82f6; --blue4: #60a5fa;
  --tint1: #eff6ff; --tint2: #dbeafe;
  --bg: #f3f6fc; --bg2: #eaf1fb; --card: #ffffff; --line: #e5eaf4;
  --txt: #1e293b; --sub: #64748b; --muted: #94a3b8;
  --green: #16a34a; --red: #dc2626; --amber: #d97706; --purple: #7c3aed;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "楷体", serif;

  /* ---------------- 文档排版规范（讲义 / 试卷 / 教辅资料） ----------------
   * 中文：正文宋体，旁注楷体，标题行楷；西文与数字一律 Times New Roman
   *       （字体栈里 Times 写在最前，浏览器逐字回退：字母数字走 Times，汉字落到后面的宋体/楷体）
   * 字号：主体五号 10.5pt，小五 9pt 用于注释/页脚/标签，小四 12pt 用于节标题
   * 行距：1.5 倍
   * 为什么用 pt 不用 px：屏幕上 10.5pt 就是 14px，但打印时只有 pt 才是真「五号」，
   * 纸面不会因为浏览器缩放跑版；这三处纸面都是要印出来给学生的。 */
  --doc-song: "Times New Roman", "Songti SC", "STSong", "SimSun", "宋体", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  --doc-kai: "Times New Roman", "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Songti SC", "SimSun", "宋体", serif;
  --doc-xing: "Times New Roman", "Xingkai SC", "STXingkai", "华文行楷", "KG Doc Xingkai", "Kaiti SC", "KaiTi", "楷体", serif;
  --doc-fs: 10.5pt;        /* 五号 */
  --doc-fs-sm: 9pt;        /* 小五 */
  --doc-fs-lg: 12pt;       /* 小四 */
  --doc-fs-xl: 16pt;       /* 三号 */
  --doc-fs-title: 20pt;    /* 二号 */
  --doc-lh: 1.5;
  --shadow: 0 4px 18px rgba(30, 58, 138, .07);
}
[data-theme="dark"] {
  --tint1: #16233f; --tint2: #1b2c4d;
  --bg: #0c1526; --bg2: #101c33; --card: #14203a; --line: #22314f;
  --txt: #e6edf9; --sub: #9fb0c9; --muted: #7b8ca6;
  --shadow: 0 4px 20px rgba(0, 0, 0, .35);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 600px at 12% -10%, var(--bg2), var(--bg) 60%);
  color: var(--txt); font-size: 14px; line-height: 1.55;
}
a { color: var(--blue2); text-decoration: none; }
button { font-family: inherit; font-size: 14px; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--txt); }
h1, h2, h3 { font-family: var(--kai); letter-spacing: 1px; }
.hide { display: none !important; }
.sp { flex: 1; }
.muted { color: var(--sub); font-size: 12.5px; }
.tiny { font-size: 11.5px; color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; } .mb14 { margin-bottom: 14px; }

/* ---------------- 登录页 ---------------- */
.pt-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pt-login-card {
  width: 940px; max-width: 100%; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: 0 26px 70px rgba(15, 35, 90, .18);
  border: 1px solid var(--line);
}
.pt-login-left {
  padding: 44px 40px; color: #fff; position: relative;
  background: linear-gradient(150deg, #0f2b6b 0%, #1e3a8a 42%, #2563eb 100%);
}
.pt-login-left::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(360px 220px at 88% 6%, rgba(125, 211, 252, .38), transparent 70%);
  pointer-events: none;
}
.pt-login-left .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.pt-login-left .brand i {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); font-size: 22px; font-style: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pt-login-left .brand b { font-size: 17px; letter-spacing: .5px; }
.pt-login-left .brand small { display: block; font-size: 12px; opacity: .78; font-weight: 400; }
.pt-login-left h1 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; color: #fff; }
.pt-login-left p { font-size: 13px; opacity: .86; margin-bottom: 22px; }
.pt-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; font-size: 12.5px; }
.pt-feats span { display: flex; align-items: center; gap: 7px; opacity: .95; }
.pt-feats i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 11px; }
.pt-login-right { padding: 42px 38px; }
.pt-login-right h2 { font-size: 22px; margin-bottom: 4px; }
.pt-login-right .sub { color: var(--sub); font-size: 12.5px; margin-bottom: 18px; }
.pt-login-right .field { margin-bottom: 14px; }
/* 科目子平台选择：先选科目再输账号密码 */
.subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.subj-chip {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px solid var(--line); background: var(--bg2); border-radius: 10px;
  padding: 8px 4px; font-size: 13px; color: var(--txt); transition: border-color .15s, background .15s, color .15s;
}
.subj-chip span { pointer-events: none; }
.subj-chip:hover { border-color: var(--blue3); }
.subj-chip.on {
  border-color: var(--blue2); background: var(--tint2); color: var(--blue1); font-weight: 700;
  box-shadow: 0 2px 10px rgba(37, 99, 235, .18);
}
[data-theme="dark"] .subj-chip.on { color: #93c5fd; }
/* 用途分类的一排胶囊（录制完成的命名窗、气泡「改分类」、微课集筛选共用）：
 * 复用 .subj-chip 的观感，只把单列网格换成可换行的横排 */
.rn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-chips .subj-chip { flex: 0 0 auto; padding: 7px 12px; }
.pt-login-right .btn.block { margin-top: 8px; }
.pt-login-foot { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.pt-cap { display: flex; gap: 8px; margin: 16px 0 4px; }
.pt-cap span {
  flex: 1; text-align: center; font-size: 12px; padding: 7px 4px; border-radius: 9px;
  background: var(--tint1); color: var(--blue1); border: 1px solid var(--tint2);
}
[data-theme="dark"] .pt-cap span { color: #bfdbfe; }
.pt-alert {
  margin-top: 12px; padding: 9px 11px; border-radius: 10px; font-size: 12.5px;
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
[data-theme="dark"] .pt-alert { background: #3a1720; color: #fecaca; border-color: #7f1d1d; }

/* 登录页「手机验证码登录」（需求 91）：与密码登录同一个卡片，原地切换，不跳页
 * —— 换页面会让刚输的账号白输，而忘记密码的人最烦的正是重来一遍 */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; }
.pt-alt { display: flex; justify-content: center; gap: 16px; margin-top: 12px; }
.pt-alt a { font-size: 12.5px; color: var(--blue2); cursor: pointer; }
.pt-alt a:hover { text-decoration: underline; }
[data-theme="dark"] .pt-alt a { color: var(--blue4); }
.pt-sms-hint { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.pt-sms-hint::before { content: '💡 '; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 208px; flex: none; background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.side-brand .logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-family: var(--kai); font-size: 19px; font-weight: 700;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6); box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.side-brand b { font-size: 13.5px; display: block; }
.side-brand small { font-size: 11px; color: var(--sub); }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 10px; }
.nav .sec { font-size: 11px; color: var(--muted); padding: 12px 10px 5px; letter-spacing: 1px; }
.nav a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  color: var(--txt); font-size: 13.2px; margin-bottom: 2px; cursor: pointer; position: relative;
}
.nav a i { font-style: normal; width: 18px; text-align: center; font-size: 14px; }
.nav a:hover { background: var(--tint1); }
.nav a.on { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; box-shadow: 0 5px 14px rgba(37, 99, 235, .3); }
.nav a .n { margin-left: auto; font-size: 10.5px; background: #fee2e2; color: #b91c1c; border-radius: 999px; padding: 0 6px; font-weight: 700; }
.nav a.on .n { background: rgba(255, 255, 255, .25); color: #fff; }
.side-user { border-top: 1px solid var(--line); padding: 12px 14px; }
.side-user .row { display: flex; align-items: center; gap: 9px; }
.side-user .who b { font-size: 13px; display: block; }
.side-user .who span { font-size: 11px; color: var(--sub); }
.side-user .side-btns { margin-top: 9px; display: flex; gap: 6px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-txt {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; font-size: 12.5px; font-weight: 700;
}
.main { flex: 1; min-width: 0; padding: 0 22px 34px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 0 14px; position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar h2 {
  font-size: 19px; color: #fff; padding: 7px 20px 8px 16px; border-radius: 13px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  box-shadow: 0 0 12px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
  display: flex; align-items: center; gap: 9px;
}
.topbar h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 9px 3px rgba(125, 211, 252, .8); }
.crumb { font-size: 12.5px; color: var(--sub); }
.top-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cap-chip {
  font-size: 12px; padding: 6px 11px; border-radius: 999px; background: var(--tint1);
  border: 1px solid var(--tint2); color: var(--blue1); white-space: nowrap;
}
[data-theme="dark"] .cap-chip { color: #bfdbfe; }
.cap-chip b { font-weight: 700; }
.cap-chip.warn { background: #fef3c7; border-color: #fde68a; color: #b45309; }
[data-theme="dark"] .cap-chip.warn { background: #3a2a10; border-color: #6b4a12; color: #fcd34d; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; font-size: 14px; color: var(--sub);
}
.icon-btn:hover { border-color: #bfd3ff; color: var(--blue2); }

/* ---------------- 卡片 / 栅格 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.card > h3 {
  font-size: 15.5px; color: #1e3a8a; margin: -4px 0 12px; padding: 5px 13px; width: fit-content;
  border-radius: 9px; background: linear-gradient(135deg, var(--tint1), var(--tint2));
  border: 1px solid #bfdbfe; font-weight: 700;
}
[data-theme="dark"] .card > h3 { color: #bfdbfe; border-color: #1e40af; }
.card.pad0 { padding: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.split { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.split-r { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
@media (max-width: 1080px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .split, .split-r, .grid2, .grid3 { grid-template-columns: 1fr; }
  .sidebar { width: 178px; }
}

/* ---------------- 按钮 / 表单 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; font-size: 13.2px;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .22); transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--blue1); border-color: #bfdbfe; box-shadow: none; }
[data-theme="dark"] .btn.ghost { color: #bfdbfe; border-color: #1e40af; }
.btn.ghost:hover { background: var(--tint1); }
.btn.danger { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 4px 12px rgba(220, 38, 38, .22); }
.btn.ok { background: linear-gradient(135deg, #15803d, #22c55e); box-shadow: 0 4px 12px rgba(22, 163, 74, .2); }
.btn.amber { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 4px 12px rgba(217, 119, 6, .2); }
.btn.sm { padding: 5px 10px; font-size: 12.3px; border-radius: 8px; }
.btn.xs { padding: 3px 8px; font-size: 11.5px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn.link { background: none; box-shadow: none; color: var(--blue2); padding: 2px 4px; font-weight: 500; }
.btn.link.danger { color: var(--red); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field > label { font-size: 12.2px; color: var(--sub); font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}
.field textarea { resize: vertical; min-height: 72px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline .field { margin: 0; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.8px; color: var(--sub); cursor: pointer; }
.chk input { width: 15px; height: 15px; }

/* ---------------- 表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--sub); font-weight: 600; background: var(--tint1); white-space: nowrap; }
[data-theme="dark"] .tbl th { background: #16233f; }
.tbl tr:hover td { background: rgba(59, 130, 246, .045); }
.tbl td.acts { white-space: nowrap; text-align: right; }
.tbl .num { font-variant-numeric: tabular-nums; }

/* ---------------- 标签 / 徽章 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 1px 8px;
  border-radius: 999px; background: var(--tint1); color: var(--blue1); border: 1px solid var(--tint2); white-space: nowrap;
}
[data-theme="dark"] .tag { color: #bfdbfe; }
.tag.gray { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
[data-theme="dark"] .tag.gray { background: #1b2740; color: #9fb0c9; border-color: #26344f; }
.tag.green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.tag.red { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.tag.amber { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.tag.purple { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.tag.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
[data-theme="dark"] .tag.green { background: #0f2f1d; color: #6ee7a8; border-color: #14532d; }
[data-theme="dark"] .tag.red { background: #3a1720; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .tag.amber { background: #3a2a10; color: #fcd34d; border-color: #6b4a12; }
[data-theme="dark"] .tag.purple { background: #241b3f; color: #c4b5fd; border-color: #4c1d95; }

/* ---------------- 统计卡 ---------------- */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 700; color: var(--blue1); margin-top: 2px; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .stat .v { color: #93c5fd; }
.stat .v small { font-size: 12px; color: var(--sub); font-weight: 500; margin-left: 3px; }
.stat .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat.green .v { color: #15803d; } .stat.amber .v { color: #b45309; } .stat.red .v { color: #b91c1c; }
[data-theme="dark"] .stat.green .v { color: #6ee7a8; }
[data-theme="dark"] .stat.amber .v { color: #fcd34d; }
[data-theme="dark"] .stat.red .v { color: #fca5a5; }

/* ---------------- 列表 / 空态 ---------------- */
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 10px; }
.empty b { display: block; font-size: 15px; color: var(--sub); margin-bottom: 4px; font-family: var(--kai); }
.it {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--card); margin-bottom: 8px;
}
.it:hover { border-color: #bfd3ff; }
.it .t { font-size: 13.2px; font-weight: 600; }
.it .s { font-size: 11.8px; color: var(--sub); }
.it .grow { flex: 1; min-width: 0; }
.it.click { cursor: pointer; }
.bar { height: 7px; border-radius: 999px; background: var(--tint2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.bar.green > i { background: linear-gradient(90deg, #16a34a, #4ade80); }
.bar.amber > i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bar.red > i { background: linear-gradient(90deg, #dc2626, #f87171); }

/* ---------------- 弹窗 / 提示 ---------------- */
.mask { position: fixed; inset: 0; background: rgba(10, 22, 48, .42); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.mask.on { display: flex; }
.modal {
  width: 520px; max-width: 96vw; max-height: 88vh; overflow: auto; background: var(--card);
  border-radius: 16px; padding: 20px; box-shadow: 0 26px 70px rgba(9, 20, 45, .3); border: 1px solid var(--line);
}
.modal.wide { width: 1000px; }
.modal h3 { font-size: 16px; color: #1e3a8a; margin: -3px 0 12px; padding: 5px 12px; width: fit-content; border-radius: 9px; background: linear-gradient(135deg, var(--tint1), var(--tint2)); border: 1px solid #bfdbfe; }
[data-theme="dark"] .modal h3 { color: #bfdbfe; border-color: #1e40af; }
.acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); background: #1e293b;
  color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 11px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 120; box-shadow: 0 12px 32px rgba(0, 0, 0, .26); max-width: 80vw;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #b91c1c; }
.toast.ok { background: #15803d; }

/* ---------------- 题目 / 数学 ---------------- */
/* 需求 158：题库里的英文与数字统一 Times New Roman（与卷面 PDF 一致）。
 * 只在题库中心（列表项带 data-qbi）里生效，作业 / 批改 / 组卷预览维持原样。
 * 同 bank.css：Times 没有汉字字形，汉字自动落到 PingFang，中文不变；
 * 只写容器继承、不碰 .katex，公式字体不受影响。 */
:root { --en-roman: "Times New Roman", "Times New Roman PS", "Nimbus Roman No9 L", Times, serif; }
.it[data-qbi] .q-stem,
.it[data-qbi] .q-opts,
.it[data-qbi] .q-opt,
.it[data-qbi] .q-ans,
.it[data-qbi] .kw-hit {
  font-family: var(--en-roman), "PingFang SC", "Microsoft YaHei", sans-serif;
}
.q-stem { font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.q-stem img, .q-ans img { max-width: 62%; max-height: 170px; border: 1px solid var(--line); border-radius: 8px; display: block; margin: 6px 0; }
.q-ans { margin-top: 6px; font-size: 13px; color: #14532d; background: #f0fdf4; border: 1px solid #dcfce7; border-radius: 9px; padding: 7px 9px; }
[data-theme="dark"] .q-ans { background: #10261a; border-color: #14532d; color: #a7f3c8; }
.q-opt { display: block; font-size: 13px; padding: 3px 0; }
/* 选项（与在线题库同款：A．xx 两列排开） */
.q-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; margin-top: 4px; font-size: 13px; }
.q-opts span { display: flex; gap: 4px; line-height: 1.8; min-width: 0; word-break: break-word; }
.q-opts b { color: var(--blue2, #2563eb); flex: none; font-weight: 700; }
/* 题干里的表格（需求 159）：导入 Word 的表原样画出来，别拆成一行一个单元格 */
.k-tbl { border-collapse: collapse; margin: 7px 0 5px; max-width: 100%; font-size: 12.8px; line-height: 1.7; table-layout: fixed; }
.k-tbl td { border: 1px solid var(--line, #e2e8f0); padding: 3px 7px; vertical-align: middle; word-break: break-word; }
.k-tbl tr:first-child td { background: rgba(148, 163, 184, .12); font-weight: 600; }
[data-theme="dark"] .k-tbl td { border-color: #334155; }
/* 需求 160：HTML 默认折叠连续半角空格，fmtStem 把 ≥2 个的空格串包进这个 span，
 * 题干 / 选项之间的对齐空格才会在老师端与学生端原样显示。 */
.k-sp { white-space: pre-wrap; }
.q-opts img { max-width: 60%; max-height: 140px; border: 1px solid var(--line); border-radius: 6px; }
img.q-fig { display: block; max-width: 100%; max-height: 220px; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; background: #fff; }
.math-raw { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--tint1); padding: 0 4px; border-radius: 4px; }
.katex { font-size: 1.02em; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 12px; }

/* ---------------- 微课 / 文件夹 ---------------- */
.mi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mi-folder {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--card); cursor: pointer; transition: all .15s;
}
.mi-folder:hover { border-color: #bfd3ff; box-shadow: 0 5px 16px rgba(30, 58, 138, .1); transform: translateY(-1px); }
.mi-folder .ic { font-size: 22px; }
.mi-folder .n { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-folder .p { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-folder .c { display: flex; gap: 6px; margin-top: 3px; font-size: 11px; font-weight: 600; }
.mi-folder .cv { color: #b45309; background: #fef3c7; border-radius: 999px; padding: 0 6px; }
.mi-folder .cp { color: #b91c1c; background: #fee2e2; border-radius: 999px; padding: 0 6px; }
.mi-folder .ca { color: #0369a1; background: #e0f2fe; border-radius: 999px; padding: 0 6px; }
/* 微课包层级面包屑：年级 › 学期模块 › 讲次 › 知识点，逐级可点 */
.crumb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 7px 0 2px; font-size: 12.5px; color: var(--sub); }
.crumb-nav a { color: #2563eb; cursor: pointer; padding: 1px 2px; border-radius: 5px; }
.crumb-nav a:hover { text-decoration: underline; background: rgba(37, 99, 235, .08); }
.crumb-nav .sep { color: var(--muted); }
[data-theme="dark"] .crumb-nav a { color: #7dd3fc; }
.cover {
  width: 54px; height: 40px; border-radius: 8px; flex: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; position: relative; overflow: hidden;
}
.cover i { font-style: normal; font-size: 15px; line-height: 1; }
.cover em { font-style: normal; font-size: 8.5px; transform: scale(.9); max-width: 50px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cover.pdf { background: linear-gradient(135deg, #dc2626, #f97316); }
.player-wrap { background: #0b1220; border-radius: 13px; overflow: hidden; }
.player-wrap video { width: 100%; display: block; max-height: 62vh; background: #000; }
.sub-overlay {
  position: absolute; left: 0; right: 0; bottom: 42px; text-align: center; pointer-events: none; padding: 0 20px;
}
.sub-overlay span {
  display: inline-block; background: rgba(0, 0, 0, .62); color: #fff; font-size: 14px; line-height: 1.5;
  padding: 5px 12px; border-radius: 8px; max-width: 92%;
}
.video-box { position: relative; }
.node-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.node-dots button { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--sub); }
.node-dots button:hover { border-color: #93c5fd; color: var(--blue2); }

/* ---------------- 知识图谱 ---------------- */
.kg-tree { max-height: 560px; overflow: auto; font-size: 13px; scroll-behavior: smooth; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.kg-tree::-webkit-scrollbar { width: 8px; }
.kg-tree::-webkit-scrollbar-track { background: transparent; }
.kg-tree::-webkit-scrollbar-thumb { background: rgba(120, 150, 220, .4); border-radius: 4px; }
.kg-tree::-webkit-scrollbar-thumb:hover { background: rgba(120, 150, 220, .7); }
.kg-node { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 8px; cursor: pointer; transition: background .16s ease, color .16s ease; }
.kg-node:hover { background: var(--tint1); }
.kg-node.on { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; }
.kg-node .tgl { width: 14px; text-align: center; color: var(--muted); font-size: 10px; }
.kg-node .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-node .ct { font-size: 10.5px; color: var(--muted); }
.kg-node.on .ct { color: rgba(255, 255, 255, .8); }
.kg-path { font-size: 11.5px; color: var(--sub); margin-bottom: 8px; }

/* ---------------- 知识图谱 · 星空星图 ----------------
 * 与主后台 public/style.css 的 .kg-* 同源：同一张深空底图、同一组配色与大圆角。
 * 星图容器恒为深色（课堂投影 / 手机夜间都清楚），不随浅色主题翻转。 */
.kg-wrap {
  position: relative; height: clamp(430px, 66vh, 660px); border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 30% 18%, #10204d 0%, #081128 58%, #04091b 100%);
  border: 1px solid rgba(90, 130, 210, .28); box-shadow: 0 12px 34px rgba(8, 20, 50, .28);
}
.kg-wrap canvas.kg-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.kg-poem {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px;
  color: rgba(238, 228, 202, .74); font-size: 15px;
  font-family: "KG Xingkai", "Xingkai SC", "STXingkai", "华文行楷", "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
  letter-spacing: 4px; pointer-events: none; white-space: nowrap;
  text-align: center; transition: opacity .45s;
}
/* 行楷笔画细、飞白多，压在深蓝星海上要加大字号 + 墨色柔光才站得住 */
.kg-poem .kg-poem-line {
  display: block; font-size: 21px; line-height: 1.5; letter-spacing: 5px;
  text-shadow: 0 0 18px rgba(120, 150, 230, .45), 0 1px 0 rgba(0, 0, 0, .45);
}
.kg-poem .kg-poem-by {
  display: block; margin-top: 1px; font-size: 13.5px; letter-spacing: 2.5px;
  color: rgba(206, 194, 168, .52);
  font-family: "KG Xingkai", "Xingkai SC", "STXingkai", "华文行楷", "KaiTi", "楷体", serif;
}
.kg-tip { position: absolute; right: 16px; top: 14px; max-width: 300px; text-align: right; color: rgba(190, 210, 255, .5); font-size: 11.5px; line-height: 1.5; pointer-events: none; }
.kg-tipbox {
  position: absolute; pointer-events: none; background: rgba(8, 18, 44, .94); color: #dbeafe;
  border: 1px solid rgba(140, 170, 255, .45); border-radius: 8px; padding: 5px 10px;
  font-size: 12.5px; white-space: nowrap; z-index: 5; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: opacity .12s;
}
.kg-roam {
  position: absolute; right: 74px; bottom: 16px; z-index: 4;
  background: rgba(10, 22, 52, .72); color: #cfe0ff;
  border: 1px solid rgba(140, 170, 255, .35); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; cursor: pointer; backdrop-filter: blur(6px);
  transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.kg-roam:hover { background: rgba(30, 58, 138, .85); }
.kg-roam.on { border-color: rgba(126, 224, 195, .55); color: #b8f4e4; }
.kg-zoom { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.kg-zoom button {
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  background: rgba(10, 22, 52, .72); color: #cfe0ff; border: 1px solid rgba(140, 170, 255, .35);
  font-size: 15px; line-height: 1; backdrop-filter: blur(6px);
  transition: background .15s, transform .12s, border-color .15s;
}
.kg-zoom button:hover { background: rgba(30, 58, 138, .85); border-color: rgba(160, 190, 255, .55); }
.kg-zoom button:active { transform: scale(.93); }
.kg-legend { position: absolute; left: 16px; bottom: 16px; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100% - 32px); color: rgba(190, 210, 255, .62); font-size: 11.5px; pointer-events: none; }
.kg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.kg-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 7px currentColor; }

/* 搜索：定位到节点而不打乱星图布局 */
.kg-search { position: absolute; left: 14px; top: 14px; z-index: 6; width: 218px; }
.kg-search-in {
  width: 100%; padding: 8px 11px; border-radius: 10px; font-size: 12.5px;
  background: rgba(8, 18, 44, .82); color: #e6efff; border: 1px solid rgba(140, 170, 255, .38);
  backdrop-filter: blur(6px); outline: none;
}
.kg-search-in::placeholder { color: rgba(160, 185, 225, .65); }
.kg-search-in:focus { border-color: rgba(160, 200, 255, .75); box-shadow: 0 0 0 3px rgba(90, 140, 255, .18); }
.kg-search-in::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.kg-sr {
  margin-top: 6px; max-height: 264px; overflow: auto; border-radius: 10px; padding: 4px;
  background: rgba(8, 18, 44, .96); border: 1px solid rgba(140, 170, 255, .38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.kg-sr-it { display: flex; align-items: baseline; gap: 7px; padding: 6px 8px; border-radius: 7px; cursor: pointer; color: #cfe0ff; font-size: 12.5px; }
.kg-sr-it:hover { background: rgba(59, 130, 246, .28); color: #fff; }
.kg-sr-it i { font-style: normal; font-size: 10px; color: #8ab4ff; flex: none; }
.kg-sr-it b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-sr-it span { margin-left: auto; font-size: 10.5px; color: #7f9bc9; flex: none; }
.kg-sr-empty { padding: 8px; font-size: 12px; color: #8fa8cf; }
.kg-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #a9c2ea; text-align: center; padding: 20px; }
.kg-empty b { font-size: 15px; color: #dbeafe; }
.kg-empty span { font-size: 12.5px; color: #8fa8cf; }

/* 节点详情面板：浮在星图上（深色玻璃拟态，与主后台一致） */
.kg-panel {
  position: absolute; top: 14px; right: 14px; width: 340px; max-height: calc(100% - 28px);
  background: linear-gradient(160deg, rgba(12, 24, 56, .95), rgba(8, 16, 40, .97));
  border: 1px solid rgba(140, 170, 255, .35); border-radius: 14px; padding: 14px;
  color: #dbeafe; box-shadow: 0 14px 38px rgba(0, 0, 0, .45);
  transform: translateX(118%); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s;
  overflow: auto; z-index: 7; backdrop-filter: blur(6px);
}
.kg-panel.on { transform: none; opacity: 1; pointer-events: auto; }
.kgp-head { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: #f1f6ff; }
.kgp-head b { font-family: var(--kai); letter-spacing: .5px; line-height: 1.4; }
.kgp-x { margin-left: auto; cursor: pointer; opacity: .7; padding: 0 4px; flex: none; }
.kgp-x:hover { opacity: 1; }
.kgp-sub { font-size: 11.5px; color: #93b4e8; margin: 4px 0 10px; }
.kgp-path { font-size: 11px; color: #86a3cf; line-height: 1.6; margin-bottom: 10px; word-break: break-word; }
.kgp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.kgp-num { background: rgba(138, 180, 255, .1); border: 1px solid rgba(140, 170, 255, .22); border-radius: 10px; padding: 7px 9px; }
.kgp-num b { display: block; font-size: 19px; color: #8ab4ff; font-family: var(--kai); line-height: 1.25; }
.kgp-num span { font-size: 10.5px; color: #93b4e8; }
.kgp-sec { font-size: 11.5px; color: #93b4e8; margin: 10px 0 6px; display: flex; align-items: center; gap: 6px; }
.kgp-sec .sp { flex: 1; }
.kgp-it { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px dashed rgba(140, 170, 255, .16); font-size: 12.5px; color: #c7d8f7; }
.kgp-it:first-of-type { border-top: none; }
.kgp-it .grow { flex: 1; min-width: 0; }
.kgp-it .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kgp-it .s { font-size: 10.5px; color: #86a3cf; margin-top: 2px; }
.kgp-it .q { line-height: 1.65; }
.kgp-ch { display: flex; flex-wrap: wrap; gap: 5px; }
.kgp-ch span { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(138, 180, 255, .14); color: #a9c6f5; }
.kgp-btn {
  border: 1px solid rgba(140, 170, 255, .45); background: rgba(59, 130, 246, .22); color: #dbeafe;
  border-radius: 8px; padding: 4px 10px; font-size: 11.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.kgp-btn:hover { background: rgba(59, 130, 246, .42); border-color: rgba(180, 205, 255, .7); }
.kgp-btn.primary { background: linear-gradient(135deg, #3b82f6, #60a5fa); border-color: transparent; color: #fff; font-weight: 600; }
.kgp-act { margin-top: 12px; }
.kgp-act .btn { width: 100%; background: linear-gradient(135deg, #3b82f6, #60a5fa); border: none; color: #fff; }
.kgp-hint { font-size: 11px; color: #8fa8cf; margin-top: 7px; line-height: 1.55; }
.kgp-muted { font-size: 12px; color: #86a3cf; padding: 4px 0; }
.kg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kg-head .kg-title { font-family: var(--kai); font-size: 16px; letter-spacing: 1px; }
.kg-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 10px;
  border-radius: 999px; background: var(--tint1); color: var(--blue2); border: 1px solid var(--line);
}
.kg-chip.on { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; border-color: transparent; }
.kg-sel { padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; }
.kg-note { font-size: 11.5px; color: var(--muted); }
/* 科目班级卡（需求 100）：一科一张，多科学生一眼看清「我有几科的图谱」，
   锁着的（班级在、会员没开通）也摆出来，点开直接去开通 */
.kg-cls { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 2px; }
.kg-cls-card {
  display: flex; align-items: center; gap: 9px; min-width: 172px; max-width: 268px;
  padding: 8px 13px 8px 10px; border-radius: 13px; cursor: pointer; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); color: var(--txt);
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.kg-cls-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.kg-cls-card .ic {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 9px; font-size: 16px; background: rgba(37, 99, 235, .09);
}
.kg-cls-card .tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.kg-cls-card .tx b { font-size: 13.5px; font-weight: 600; }
.kg-cls-card .tx small {
  font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px;
}
.kg-cls-card.on {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .24);
}
.kg-cls-card.on .ic { background: rgba(255, 255, 255, .18); }
.kg-cls-card.on .tx small { color: rgba(255, 255, 255, .78); }
.kg-cls-card.lock { border-style: dashed; opacity: .78; }
.kg-cls-card.lock:hover { opacity: 1; }
.kg-cls-card.all .ic { background: rgba(16, 185, 129, .12); }
.kg-cls-card.all.on {
  background: linear-gradient(135deg, #0f766e, #10b981);
  box-shadow: 0 8px 20px rgba(16, 185, 129, .24);
}
.kg-grades { margin: 10px 0 12px; }
/* 班级在、这一科没开通：占住星图那块位置，说清楚 + 一个开通按钮 */
.kg-locked {
  margin-top: 12px; padding: 46px 20px 52px; border-radius: 14px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, .10), rgba(37, 99, 235, .02) 70%);
  border: 1px dashed var(--line);
}
.kg-locked .ic { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.kg-locked b { display: block; font-family: var(--kai); font-size: 17px; letter-spacing: 1px; margin-bottom: 8px; }
.kg-locked p { font-size: 12.5px; color: var(--sub); line-height: 1.85; margin-bottom: 16px; }
/* 句中的数字：必须留成行内，不能被上面的 `.kg-locked b{display:block}` 拆成三段 */
.kg-locked p .num { font-weight: 700; color: var(--blue2, #2563eb); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .kg-wrap { height: 74vh; }
  .kg-search { width: 168px; }
  .kg-tip { display: none; }
  .kg-panel { width: calc(100% - 28px); }
  .kg-poem { display: none; }
  .kg-cls { gap: 6px; }
  .kg-cls-card { min-width: 0; flex: 1 1 46%; max-width: none; }
  .kg-cls-card .tx small { max-width: none; }
}

/* ---------------- 实时课堂 ---------------- */
.live-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 12px; align-items: start; }
@media (max-width: 1080px) { .live-wrap { grid-template-columns: 1fr; } }
.board-box { background: var(--card); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.board-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.swatch { width: 20px; height: 20px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--blue2); box-shadow: 0 0 0 2px rgba(59, 130, 246, .2); }
#board { width: 100%; height: 430px; display: block; background: #ffffff; touch-action: none; }
[data-theme="dark"] #board { background: #f8fafc; }
.live-side { display: flex; flex-direction: column; gap: 10px; }
.chat-box { height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 11px; padding: 9px; background: var(--card); }
.chat-it { margin-bottom: 8px; font-size: 12.6px; }
.chat-it b { font-size: 11.5px; color: var(--blue2); font-weight: 600; margin-right: 5px; }
.chat-it.sys { color: var(--muted); font-size: 11.8px; text-align: center; }
.chat-it.hand { color: #b45309; }
.chat-it.quiz { background: var(--tint1); border-radius: 9px; padding: 8px; }
.chat-it.ans { color: #15803d; font-size: 12px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }
.online-dot.off { background: #cbd5e1; }

/* ---------------- 学生端 ---------------- */
.stu-hero {
  border-radius: 18px; padding: 20px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #38bdf8 100%);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .24); position: relative; overflow: hidden;
}
.stu-hero::after { content: ''; position: absolute; right: -30px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.stu-hero h1 { font-size: 22px; margin-bottom: 5px; color: #fff; }
.stu-hero p { font-size: 12.5px; opacity: .88; }
.stu-hero .stats { display: flex; gap: 22px; margin-top: 14px; position: relative; z-index: 2; }
.stu-hero .stats div b { font-size: 21px; display: block; }
.stu-hero .stats div span { font-size: 11.5px; opacity: .82; }
.pet-stage { font-size: 46px; line-height: 1; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: all .15s; box-shadow: var(--shadow);
}
.tile:hover { border-color: #bfd3ff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 58, 138, .12); }
.tile .ti { font-size: 22px; }
.tile b { font-size: 13.5px; }
.tile span { font-size: 11.5px; color: var(--sub); }
.quiz-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: var(--card); margin-bottom: 10px; }
.quiz-card .no { font-size: 11.5px; color: var(--sub); margin-bottom: 4px; }
.quiz-card .opts { display: grid; gap: 6px; margin-top: 8px; }
.quiz-card .opt {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer; font-size: 13px;
}
.quiz-card .opt:hover { border-color: #93c5fd; background: var(--tint1); }
.quiz-card .opt.on { border-color: #2563eb; background: var(--tint1); font-weight: 600; }
.quiz-card .opt.ok { border-color: #16a34a; background: #f0fdf4; }
.quiz-card .opt.bad { border-color: #dc2626; background: #fef2f2; }
.answer-input { width: 100%; margin-top: 8px; }

/* ---------------- 课堂反馈：词框 / 评分 / 照片 ---------------- */
.fb-dim { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 9px; background: var(--card); }
.fb-dim .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.fb-dim .hd b { font-size: 13px; }
.fb-dim .hd .ic { font-size: 15px; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); cursor: pointer; user-select: none; transition: all .12s;
}
.fb-chip:hover { border-color: #93c5fd; color: var(--blue2); }
.fb-chip.on { background: linear-gradient(135deg, #2563eb, #3b82f6); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(37, 99, 235, .24); }
.fb-chip.neg.on { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 3px 10px rgba(217, 119, 6, .24); }
.fb-lv { display: inline-flex; gap: 4px; }
.fb-lv button {
  font-size: 11.5px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub);
}
.fb-lv button:hover { border-color: #93c5fd; color: var(--blue2); }
.fb-lv button.on { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; border-color: transparent; font-weight: 700; }
.fb-lv button.on.lv4 { background: linear-gradient(135deg, #15803d, #22c55e); }
.fb-lv button.on.lv1 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.fb-mic {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); border-radius: 9px;
  padding: 5px 9px; font-size: 12px; white-space: nowrap;
}
.fb-mic:hover { border-color: #93c5fd; color: var(--blue2); }
.fb-mic.rec { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; font-weight: 700; animation: fbpulse 1.1s infinite; }
@keyframes fbpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .35); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }
.fb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.fb-ph {
  position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--bg2);
}
.fb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.fb-ph .x {
  position: absolute; right: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  border: none; background: rgba(15, 23, 42, .6); color: #fff; font-size: 11px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}
.fb-ph .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 5px 3px; font-size: 10.5px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fb-att { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fb-att button {
  font-size: 11.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub);
}
.fb-att button.on.present { background: #dcfce7; color: #15803d; border-color: #86efac; font-weight: 700; }
.fb-att button.on.late { background: #fef3c7; color: #b45309; border-color: #fde68a; font-weight: 700; }
.fb-att button.on.leave { background: #f1f5f9; color: #475569; border-color: #cbd5e1; font-weight: 700; }
.fb-att button.on.absent { background: #fee2e2; color: #b91c1c; border-color: #fecaca; font-weight: 700; }
[data-theme="dark"] .fb-att button.on.present { background: #0f2f1d; color: #6ee7a8; border-color: #14532d; }
[data-theme="dark"] .fb-att button.on.late { background: #3a2a10; color: #fcd34d; border-color: #6b4a12; }
[data-theme="dark"] .fb-att button.on.absent { background: #3a1720; color: #fca5a5; border-color: #7f1d1d; }
.fb-stu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.fb-stu { border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; background: var(--card); }
.fb-stu .nm { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.fb-stu .st { margin-top: 6px; }
.fb-stu.done { border-color: #86efac; background: #f6fef9; }
.fb-stu.pub { border-color: #2563eb; box-shadow: 0 0 0 1px rgba(37, 99, 235, .25); }
[data-theme="dark"] .fb-stu.done { background: #0f2018; border-color: #14532d; }
.fb-preview {
  font-size: 13px; line-height: 1.95; white-space: pre-wrap; word-break: break-word;
  background: var(--tint1); border: 1px solid var(--tint2); border-radius: 11px; padding: 12px 14px;
  min-height: 220px; max-height: 46vh; overflow: auto;
}
.fb-quote {
  font-size: 13.2px; line-height: 1.95; white-space: pre-wrap; word-break: break-word;
  background: var(--tint1); border-left: 3px solid #93c5fd; border-radius: 0 10px 10px 0; padding: 11px 13px;
}
.fb-seg { display: inline-flex; background: var(--tint1); border-radius: 999px; padding: 3px; gap: 2px; }
.fb-seg button { font-size: 12px; padding: 4px 12px; border-radius: 999px; border: none; background: transparent; color: var(--sub); }
.fb-seg button.on { background: var(--card); color: var(--blue1); font-weight: 700; box-shadow: 0 1px 5px rgba(30, 58, 138, .12); }
[data-theme="dark"] .fb-seg button.on { color: #93c5fd; }

/* ---------------- 学生端：成长档案 ---------------- */
.fb-arc-hero {
  border-radius: 18px; padding: 20px; color: #fff; margin-bottom: 14px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f2b6b 0%, #2563eb 58%, #38bdf8 100%);
  box-shadow: 0 14px 36px rgba(37, 99, 235, .24);
}
.fb-arc-hero::after { content: ''; position: absolute; right: -40px; top: -60px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.fb-arc-hero h1 { font-size: 21px; margin-bottom: 4px; color: #fff; }
.fb-arc-hero p { font-size: 12.5px; opacity: .88; }
.fb-arc-hero .kpis { display: flex; gap: 22px; margin-top: 14px; position: relative; z-index: 2; flex-wrap: wrap; }
.fb-arc-hero .kpis div b { font-size: 20px; display: block; }
.fb-arc-hero .kpis div span { font-size: 11.5px; opacity: .82; }
.fb-bars { display: flex; flex-direction: column; gap: 9px; }
.fb-bar-row { display: grid; grid-template-columns: 84px 1fr 46px; gap: 9px; align-items: center; font-size: 12.6px; }
.fb-bar-row .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--sub); font-size: 12px; }
.fb-months { display: flex; align-items: flex-end; gap: 12px; height: 132px; padding-top: 6px; }
.fb-months .m { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.fb-months .m i {
  display: block; width: 100%; max-width: 46px; border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #60a5fa, #2563eb); min-height: 5px;
}
.fb-months .m span { font-size: 11px; color: var(--sub); }
.fb-months .m em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.fb-tl { position: relative; padding-left: 17px; }
.fb-tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--tint2); }
.fb-tl-it { position: relative; margin-bottom: 14px; }
.fb-tl-it::before {
  content: ''; position: absolute; left: -16px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: #2563eb; box-shadow: 0 0 0 3px var(--tint1);
}
.fb-star { color: #f59e0b; letter-spacing: 2px; font-size: 13px; }

/* ---------------- 打印 ---------------- */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main { padding: 0; }
  .card { border: none; box-shadow: none; }
}

/* ---------------- 老师端：手机 / 小程序 web-view 里的抽屉导航（需求 106） ----------------
 * 老师端有三十多个菜单项，照学生端那样改成横向滚动会滑很久才找到目标；
 * 所以窄屏改成抽屉：左上角一个 ☰，点开是完整侧栏，选完自动收起。
 *
 * 起因是一张真机截图：414px 宽度下侧栏仍占 208px，主区只剩 200px，
 * 「工作台」四个字被挤成竖排、卡片挤成一条 —— 这样的页面塞进小程序等于没做。 */
body.tea .nav-toggle { display: none; }
body.tea .nav-mask { display: none; }

@media (max-width: 820px) {
  body.tea .layout { display: block; }
  body.tea .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 254px; height: 100vh;
    z-index: 70; transform: translateX(-102%);
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 50px rgba(15, 23, 42, .35);
  }
  body.tea.nav-open .sidebar { transform: none; }
  body.tea .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: none; padding: 0;
    border-radius: 11px; border: 1px solid var(--line); background: var(--card);
    color: var(--txt); font-size: 17px; line-height: 1; cursor: pointer;
  }
  body.tea .nav-mask {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(15, 23, 42, .42); opacity: 0; pointer-events: none;
    transition: opacity .2s;
  }
  body.tea.nav-open .nav-mask { opacity: 1; pointer-events: auto; }

  body.tea .main { padding: 0 12px 30px; overflow-x: auto; }
  body.tea .topbar { gap: 8px; padding: 10px 0 8px; }
  /* 标题不换行：手机上「工作台」被挤成竖排的「工 作 台」是最刺眼的那种坏 */
  body.tea .topbar h2 { font-size: 15px; padding: 5px 12px; white-space: nowrap; }
  body.tea .crumb { display: none; }
  /* 在线人数 / 并发上限在手机上帮不上忙，先让位给标题和常用入口 */
  body.tea .cap-chip { display: none; }
  body.tea .top-acts { margin-left: auto; gap: 6px; }
  body.tea .plat-chip, body.tea .cap-chip { font-size: 11px; padding: 4px 9px; }
  body.tea .grid4, body.tea .grid3 { grid-template-columns: 1fr 1fr; }
  body.tea .grid2 { grid-template-columns: 1fr; }
  body.tea .card { padding: 13px; }
  /* 表格不硬压成多行（那是更糟的可读性），改为让主区横向滚动 */
  body.tea table { min-width: 560px; }
}

/* ---------------- 学生端：手机优先 ---------------- */
body.stu .side-brand .logo { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
body.stu .nav a.on { background: linear-gradient(135deg, #0284c7, #2563eb); }
@media (max-width: 760px) {
  body.stu .layout { display: block; }
  body.stu .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 30; flex-direction: row;
    align-items: center; border-right: none; border-bottom: 1px solid var(--line);
  }
  body.stu .side-brand, body.stu .side-user { display: none; }
  body.stu .nav { display: flex; gap: 4px; padding: 7px 8px; overflow-x: auto; }
  body.stu .nav .sec { display: none; }
  body.stu .nav a { white-space: nowrap; margin: 0; font-size: 12.5px; padding: 6px 9px; }
  body.stu .nav a i { display: none; }
  /* 需求 103 的「我的任务」卡是 #nav 的子元素（renderNav 里拼在一起），
   * 所以不能把它移到别处，只能让 #nav 自己换行：导航换行排在前面，任务卡整行落在最后。
   * 之前把 #nav 定成「一行横滑」，任务卡被挤成一列竖排文字压在导航上（真机截图见过）。 */
  body.stu .nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 8px; overflow: visible; }
  body.stu .nav a { flex: none; }
  body.stu .nav-task {
    flex: 0 0 100%; order: 9; margin: 2px 0 0; padding: 7px 0 0;
    border-bottom: none; border-top: 1px solid var(--line);
  }
  body.stu .nt-h, body.stu .nt-lg { display: none; }
  body.stu .nt-grid { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  body.stu .tj { flex: none; min-width: 86px; }
  body.stu .main { padding: 0 12px 26px; }
  body.stu .topbar { padding: 10px 0 8px; }
  body.stu .topbar h2 { font-size: 15.5px; padding: 5px 13px; }
  body.stu .crumb { display: none; }
  body.stu .grid4 { grid-template-columns: 1fr 1fr; }
  body.stu .grid3 { grid-template-columns: 1fr 1fr; }
  body.stu .card { padding: 13px; }
  body.stu .tbl th:nth-child(n+4), body.stu .tbl td:nth-child(n+4) { display: none; }
  .modal { padding: 15px; }
  .stu-hero h1 { font-size: 19px; }
  .stu-hero .stats { gap: 14px; }
}

/* ---------- 课堂反馈列表：完成状态实时同步 ---------- */
.fb-live {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  padding: 5px 11px; border-radius: 999px; font-size: 12px;
  background: var(--tint1); color: var(--blue2); border: 1px solid var(--tint2);
}
.fb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.fb-live.on i { background: #22c55e; animation: fbLive 1.8s infinite; }
.fb-live span { color: var(--sub); font-size: 11px; font-variant-numeric: tabular-nums; }
@keyframes fbLive {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.fb-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.fb-seg button {
  border: 0; background: var(--card); color: var(--sub); font-size: 12px;
  padding: 5px 10px; border-right: 1px solid var(--line);
}
.fb-seg button:last-child { border-right: 0; }
.fb-seg button.on { background: linear-gradient(135deg, var(--blue1), var(--blue2)); color: #fff; font-weight: 600; }

/* ---------- 积分规则：老师端 / 学生端同步展示 ---------- */
.rule-sync {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--sub);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.rule-sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.rule-sync.on { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.rule-sync.on i { background: #22c55e; animation: ruleBlink 1.4s ease-in-out infinite; }
@keyframes ruleBlink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.pt { font-weight: 700; font-variant-numeric: tabular-nums; }
.pt.plus { color: var(--green); }
.pt.minus { color: var(--red); }
.rule-quick { flex-wrap: wrap; gap: 6px; }
.rule-mini td { vertical-align: top; }
[data-theme="dark"] .rule-sync.on { color: #86efac; border-color: #14532d; background: #14351f; }
[data-theme="dark"] .pt.plus { color: #4ade80; }
[data-theme="dark"] .pt.minus { color: #fca5a5; }

/* ---------- 学生端「宠物积分」页：照片级宠物舞台 ----------
 * 左边是实拍质感的宠物照（+ 狗这一型的 4 秒循环视频），右边是名字 / 阶段 / 指标。
 * 舞台的动效见 shared/petroom.js，样式全在这里，两处都只认 .pr-* 前缀。
 */
.pet-hero {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 20px; align-items: center; padding: 14px;
  border-radius: 20px; margin-bottom: 14px; color: var(--txt);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 35, 70, .10);
}
.pet-hero .pet-stage { min-width: 0; }
.pet-hero .pet-side { min-width: 0; padding: 4px 8px 4px 2px; }
.pet-hero h1 { font-size: 24px; margin-bottom: 2px; color: var(--txt); }
.pet-hero .pet-sub { font-size: 12.5px; color: var(--sub); margin-bottom: 14px; }
.pet-hero .pet-lv {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: #fff;
  padding: 2px 9px; border-radius: 999px; margin-right: 8px; vertical-align: 3px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.pet-hero .kpis { display: flex; gap: 20px; margin: 0 0 16px; flex-wrap: wrap; }
.pet-hero .kpis div { text-align: left; }
.pet-hero .kpis b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--txt); }
.pet-hero .kpis span { font-size: 11.5px; color: var(--sub); }
.pet-hero .pet-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pet-hero .pet-bar {
  height: 7px; border-radius: 99px; overflow: hidden; margin: 0 0 16px;
  background: var(--tint2); box-shadow: inset 0 1px 2px rgba(15, 35, 70, .10);
}
.pet-hero .pet-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width .7s cubic-bezier(.3, .9, .3, 1);
}

/* ---- 舞台本体 ---- */
.pr-room {
  position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2;
  background: #f7efe2; isolation: isolate; cursor: pointer;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.pr-layer {
  position: absolute; inset: 0; transform-origin: 50% 86%;
  animation: prBreathe 5.6s ease-in-out infinite; will-change: transform;
}
/* 取景：插画本身是居中的，只留一点余量吃掉边缘发虚的一圈 */
.pr-zoom { position: absolute; inset: 0; transform: scale(1.02); transform-origin: 50% 54%; }
.pr-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes prBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
.pr-glow {
  position: absolute; inset: -12%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(58% 44% at 24% 20%, rgba(255, 228, 170, .17), rgba(255, 228, 170, 0) 72%);
  animation: prGlow 11s ease-in-out infinite;
}
@keyframes prGlow {
  0%, 100% { opacity: .34; transform: translate3d(0, 0, 0); }
  50% { opacity: .62; transform: translate3d(2.4%, 1.6%, 0); }
}
.pr-dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pr-dust i {
  position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fffaf0 0%, rgba(255, 240, 209, .35) 60%, rgba(255, 240, 209, 0) 100%);
  box-shadow: 0 0 6px rgba(255, 236, 190, .55);
  animation-name: prDust; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes prDust {
  0% { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  12% { opacity: .95; }
  78% { opacity: .55; }
  100% { transform: translate3d(var(--dx, 12px), var(--dy, -220px), 0) scale(1.1); opacity: 0; }
}
.pr-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pr-heart {
  position: absolute; font-size: 15px; line-height: 1; will-change: transform, opacity;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .28); animation: prHeart 1.25s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes prHeart {
  0% { transform: translate(-50%, 4px) scale(.5); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--hx, 0px)), -78px) scale(1.12); opacity: 0; }
}
/* 表情贴 + 手写气泡（需求 118）：点一下冒一张表情，配一句台词 */
.pr-emote {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  pointer-events: none; opacity: 0; z-index: 4;
}
.pr-emote.on { animation: prEmote 2.4s cubic-bezier(.22, 1.1, .36, 1) forwards; }
@keyframes prEmote {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(.82); }
  12% { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
  20% { transform: translate(-50%, 0) scale(1); }
  82% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(.98); }
}
.pr-stk {
  width: 88px; height: 88px; border-radius: 50%; display: block; object-fit: cover;
  background: #fdf8f0; box-shadow: 0 6px 16px rgba(126, 92, 64, .20), 0 0 0 3px #fff;
}
.pr-say {
  position: relative; font-family: "HanziPen SC", "Yuanti SC", var(--kai); font-size: 14px; line-height: 1.5;
  color: #8a5230; background: #fffaf0; border: 2px solid #f2dcbe; border-radius: 14px;
  padding: 2px 11px; white-space: nowrap; transform: rotate(-2deg);
  box-shadow: 0 5px 14px rgba(126, 92, 64, .16);
}
.pr-say::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 11px; height: 11px;
  margin-left: -5px; background: #fffaf0; border-right: 2px solid #f2dcbe; border-bottom: 2px solid #f2dcbe;
  transform: rotate(45deg); border-radius: 0 0 3px 0;
}
[data-theme="dark"] .pr-stk { box-shadow: 0 6px 16px rgba(0, 0, 0, .38), 0 0 0 3px rgba(255, 255, 255, .82); }
[data-theme="dark"] .pr-say { color: #8a5230; }
.pr-hint {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; color: #fff; background: rgba(12, 22, 38, .46);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22); pointer-events: none;
  animation: prHintOut .6s ease 7s forwards;
}.pr-hint.gone { opacity: 0; transition: opacity .35s ease; }
@keyframes prHintOut { to { opacity: 0; } }
.pr-room::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 54px rgba(8, 14, 26, .30), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.pr-room.is-poke .pr-layer { animation: prJump .64s cubic-bezier(.24, 1.3, .36, 1); }
@keyframes prJump {
  0% { transform: scale(1) translateY(0); }
  16% { transform: scale(1.05, .955) translateY(0); }
  44% { transform: scale(.972, 1.042) translateY(-3.4%); }
  70% { transform: scale(1.008, .994) translateY(0); }
  100% { transform: scale(1) translateY(0); }
}
/* 空状态：还没领养 */
.pr-room.is-empty { display: grid; place-items: center; background: linear-gradient(160deg, #eef3fb, #e3ecfa); cursor: default; }
.pr-room.is-empty::after { box-shadow: inset 0 0 40px rgba(37, 99, 235, .10); }
.pr-empty { text-align: center; color: var(--sub); font-size: 12.5px; line-height: 1.9; }
.pr-empty i { display: block; font-size: 46px; margin-bottom: 6px; filter: saturate(.9); }
[data-theme="dark"] .pr-room.is-empty { background: linear-gradient(160deg, #16233f, #1a2b4b); }
/* 省电 / 无动画偏好：一切静止，只留插画 */
.pr-room.is-calm .pr-layer, .pr-room.is-calm .pr-glow, .pr-room.is-calm .pr-dust i { animation: none; }
.pr-room.is-calm.is-poke .pr-layer { animation: prJump .64s cubic-bezier(.24, 1.3, .36, 1); }

@media (max-width: 760px) {
  .pet-hero { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .pet-hero .pet-side { padding: 0 4px 4px; }
  .pet-hero h1 { font-size: 21px; }
  .pet-hero .kpis { gap: 16px; }
}
.pet-rule-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
}
.pet-rule-row:last-child { border-bottom: 0; }
.pet-rule-row .no {
  width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center;
  font-size: 11px; color: var(--blue2); background: var(--tint1); font-weight: 700;
}
.pet-rule-row .grow { flex: 1; min-width: 0; }
.pet-rule-row .nm { font-size: 13.5px; font-weight: 600; }
.pet-rule-row .nt { font-size: 11.5px; color: var(--sub); margin-top: 1px; }
.pet-rule-row .val {
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none;
  min-width: 46px; text-align: right;
}
.pet-rule-row .val.plus { color: var(--green); }
.pet-rule-row .val.minus { color: var(--red); }
.pet-points-it { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.pet-points-it:last-child { border-bottom: 0; }
.pet-points-it .d { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.pet-points-it .d.plus { color: var(--green); }
.pet-points-it .d.minus { color: var(--red); }
[data-theme="dark"] .pet-hero { background: var(--card); box-shadow: 0 14px 34px rgba(0, 0, 0, .38); }
[data-theme="dark"] .pet-hero .pet-lv { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
[data-theme="dark"] .pet-rule-row .no { background: #16233f; color: #93c5fd; }

/* ---------------- 缴费报名 / 缴费分班 ---------------- */
.pc-hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 18px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, #0f766e, #0d9488 58%, #34d399);
  box-shadow: 0 10px 26px rgba(13, 148, 136, .26);
}
[data-theme="dark"] .pc-hero { background: linear-gradient(135deg, #0b3b36, #0f5f57 60%, #148f7f); }
.pc-hero .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  font-size: 28px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.pc-hero h1 { font-size: 20px; margin-bottom: 3px; }
.pc-hero p { font-size: 12.5px; opacity: .9; line-height: 1.7; max-width: 520px; }
.pc-hero .pc-steps { display: flex; gap: 14px; margin-left: auto; }
.pc-hero .pc-steps div { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .95; }
.pc-hero .pc-steps i {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4);
}
@media (max-width: 1080px) { .pc-hero .pc-steps { margin-left: 0; } }

.pay-drop {
  border: 1.5px dashed #94a3b8; border-radius: 13px; padding: 26px 16px; text-align: center;
  font-size: 13px; color: var(--sub); cursor: pointer; background: var(--tint1); line-height: 1.9;
  transition: all .16s; margin-bottom: 12px;
}
.pay-drop:hover, .pay-drop.on { border-color: #0d9488; background: #ecfdf5; color: #0f766e; }
[data-theme="dark"] .pay-drop:hover, [data-theme="dark"] .pay-drop.on { background: #0d2a26; color: #6ee7d7; }
.pc-prev {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px;
  padding: 10px; margin-bottom: 12px; background: var(--card);
}
.pc-prev img {
  width: 112px; height: 82px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); cursor: zoom-in;
}
.pc-prev .grow { flex: 1; min-width: 0; }
.pc-prev .ok { font-size: 13px; font-weight: 700; color: #15803d; }
[data-theme="dark"] .pc-prev .ok { color: #6ee7a8; }

.pc-rec {
  display: flex; gap: 11px; padding: 11px 2px; border-bottom: 1px dashed var(--line);
}
.pc-rec:last-child { border-bottom: 0; }
.pc-rec .pc-thumb { width: 74px; height: 56px; border-radius: 9px; overflow: hidden; flex: none; border: 1px solid var(--line); }
.pc-rec .pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.pc-rec .grow { flex: 1; min-width: 0; }
.pc-rec .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-rec .hd b { font-size: 13.8px; }
.pc-rec .sub { font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.7; }
.pc-result {
  margin-top: 8px; padding: 8px 11px; border-radius: 10px; font-size: 12.3px; line-height: 1.75;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d;
}
.pc-result .t { color: #166534; opacity: .86; }
[data-theme="dark"] .pc-result { background: #0f2f1d; border-color: #14532d; color: #a7f3c8; }
[data-theme="dark"] .pc-result .t { color: #86efac; }
.pc-reject {
  margin-top: 8px; padding: 8px 11px; border-radius: 10px; font-size: 12.3px; line-height: 1.75;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
[data-theme="dark"] .pc-reject { background: #3a2a10; border-color: #6b4a12; color: #fcd34d; }

/* 老师端 / 后台的待处理卡片 */
.pc-card {
  border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; background: var(--card);
  display: flex; gap: 11px; margin-bottom: 9px; transition: border-color .15s, box-shadow .15s;
}
.pc-card:hover { border-color: #99f6e4; box-shadow: 0 3px 14px rgba(13, 148, 136, .1); }
.pc-card.new { border-left: 3px solid #f59e0b; }
.pc-card .pc-thumb { width: 84px; height: 62px; border-radius: 9px; overflow: hidden; flex: none; border: 1px solid var(--line); background: var(--bg2); }
.pc-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.pc-card .grow { flex: 1; min-width: 0; }
.pc-card .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-card .hd b { font-size: 14px; }
.pc-card .sub { font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.7; }
.pc-card .ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.pc-tabs { display: inline-flex; background: var(--tint1); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.pc-tabs button {
  font-size: 12px; padding: 4px 11px; border-radius: 999px; border: none; background: transparent; color: var(--sub);
}
.pc-tabs button.on { background: var(--card); color: #0f766e; font-weight: 700; box-shadow: 0 1px 5px rgba(13, 148, 136, .15); }
[data-theme="dark"] .pc-tabs button.on { color: #6ee7d7; }
.pc-flow { font-size: 12.3px; color: var(--sub); line-height: 1.9; }
.pc-flow b { color: var(--txt); }
.pc-form-note { font-size: 11.8px; color: var(--muted); line-height: 1.8; margin-top: 6px; }
.pct-acc { font-size: 12.5px; color: var(--sub); line-height: 1.7; padding-top: 3px; }
.pct-acc b { color: var(--txt); }

/* ==================================================================
 * 布置作业 · 任务流（老师端）
 * 参照「爱问云」作业列表：顶部分档 Tab + 类型/班级/搜索工具栏，
 * 下面按日期分组，一份作业一张横条卡片，右侧是「去批改 N」。
 * 前缀统一 hw-，避免与学生端作业条目（.it / .card）冲突。
 * ================================================================== */
.hw-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.hw-tabs { display: inline-flex; align-items: center; gap: 3px; background: #f2f5fb; border-radius: 11px; padding: 3px; }
.hw-tab {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none;
  padding: 7px 13px; border-radius: 9px; font-size: 13.2px; font-weight: 600; color: var(--sub);
  transition: background .15s, color .15s;
}
.hw-tab:hover { color: var(--blue1); }
.hw-tab.on { color: #fff; background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 5px 14px rgba(37, 99, 235, .28); }
.hw-tab.on:hover { color: #fff; }
.hw-tab.on .n { background: rgba(255, 255, 255, .92); color: #1d4ed8; }
.hw-tab.on .n.zero { background: rgba(255, 255, 255, .3); color: #fff; }
.hw-tab .n {
  min-width: 17px; height: 16px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
  background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.hw-tab .n.zero { background: var(--tint2); color: var(--sub); }
.hw-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.hw-sel {
  height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font-size: 12.6px; outline: none; cursor: pointer;
}
.hw-sel:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .13); }
.hw-search {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; min-width: 168px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--muted);
}
.hw-search:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .13); }
.hw-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 12.8px; }
.hw-search input::placeholder { color: var(--muted); }

/* 日期分组标题：10-21 星期三 */
.hw-day {
  display: flex; align-items: baseline; gap: 8px; margin: 16px 2px 8px;
  font-size: 12.3px; color: var(--sub);
}
.hw-day:first-child { margin-top: 10px; }
.hw-day b { font-size: 13px; font-weight: 700; color: var(--txt); letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.hw-day .tag-today {
  font-size: 10.5px; font-weight: 700; color: #1d4ed8; background: var(--tint1);
  border: 1px solid var(--tint2); border-radius: 999px; padding: 0 6px;
}
.hw-day .sum { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* 任务条 */
.hw-list { display: flex; flex-direction: column; gap: 9px; }
.hw-item {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px;
  box-shadow: 0 1px 2px rgba(30, 58, 138, .04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hw-item:hover { border-color: #c7d8f8; box-shadow: 0 7px 22px rgba(30, 58, 138, .1); transform: translateY(-1px); }
.hw-item.draft { border-style: dashed; }
.hw-item.draft .hw-ic { background: linear-gradient(135deg, #f8fafc, #eef2f7); color: #94a3b8; border-color: #e2e8f0; }
.hw-item.over .hw-ic { background: linear-gradient(135deg, #eef2f7, #e6ebf3); color: #64748b; border-color: #e2e8f0; }

.hw-ic {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  font-size: 18px; background: linear-gradient(135deg, #e9f8f0, #d5f2e4);
  border: 1px solid #c9ecdb; color: #0f766e;
}
.hw-body { flex: 1; min-width: 0; }
.hw-title {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--txt);
}
.hw-title .t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hw-sub { margin-top: 3px; font-size: 12.3px; color: var(--sub); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-sub .cp { color: var(--muted); }
.hw-meta {
  display: flex; align-items: center; gap: 7px 14px; flex-wrap: wrap;
  margin-top: 9px; font-size: 12px; color: var(--muted);
}
.hw-meta b { color: var(--txt); font-weight: 700; font-variant-numeric: tabular-nums; }
.hw-pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600;
  padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0;
}
.hw-pill.blue { background: var(--tint1); color: #1d4ed8; border-color: var(--tint2); }
.hw-pill.green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.hw-pill.amber { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.hw-pill.red { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.hw-prog { width: 46px; height: 4px; border-radius: 999px; background: var(--tint2); overflow: hidden; }
.hw-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.hw-prog.full i { background: linear-gradient(90deg, #15803d, #4ade80); }
.hw-prog.none { background: #eef2f7; }
.hw-lnk { display: inline-flex; align-items: center; gap: 4px; color: #2563eb; cursor: pointer; }
.hw-lnk:hover { text-decoration: underline; }
.hw-lnk.pdf { color: #0f766e; }

/* 右侧操作 */
.hw-act { display: flex; align-items: center; gap: 4px; flex: none; }
.hw-go {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 9px;
  border: 1px solid #93c5fd; background: var(--card); color: #1d4ed8;
  font-size: 12.8px; font-weight: 600; white-space: nowrap; transition: background .15s, box-shadow .15s;
}
.hw-go:hover { background: var(--tint1); box-shadow: 0 3px 10px rgba(37, 99, 235, .14); }
.hw-go b { font-variant-numeric: tabular-nums; }
.hw-go.solid {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 4px 12px rgba(37, 99, 235, .24);
}
.hw-go.solid:hover { filter: brightness(1.06); background: linear-gradient(135deg, #2563eb, #3b82f6); }
.hw-go.soft { border-color: var(--line); color: var(--sub); }
.hw-go.soft:hover { background: var(--tint1); color: var(--blue1); }
.hw-dots {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font-size: 15px; line-height: 1; letter-spacing: 1px;
}
.hw-dots:hover, .hw-item.menu-on .hw-dots { background: var(--tint1); color: var(--blue1); }

/* 更多菜单 */
.hw-menu {
  position: absolute; right: 10px; top: 46px; z-index: 30; min-width: 132px; padding: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 16px 38px rgba(9, 20, 45, .18); display: none;
}
.hw-item.menu-on .hw-menu { display: block; }
.hw-menu button {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 9px;
  border: 0; border-radius: 7px; background: none; font-size: 12.5px; color: var(--txt); text-align: left;
}
.hw-menu button:hover { background: var(--tint1); }
.hw-menu button.danger { color: var(--red); }
.hw-menu button.danger:hover { background: #fef2f2; }
.hw-menu .sep { height: 1px; margin: 4px 0; background: var(--line); }

/* 卡片视图（右上角视图切换） */
.hw-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 9px; }
.hw-list.grid .hw-item { flex-wrap: wrap; }
.hw-list.grid .hw-act { width: 100%; justify-content: flex-end; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* 深色主题 */
[data-theme="dark"] .hw-tabs { background: #16233f; }
[data-theme="dark"] .hw-tab.on { color: #fff; box-shadow: 0 5px 14px rgba(0, 0, 0, .4); }
[data-theme="dark"] .hw-tab.on .n { background: rgba(255, 255, 255, .92); color: #1d4ed8; }
[data-theme="dark"] .hw-item:hover { border-color: #2c4270; }
[data-theme="dark"] .hw-ic { background: linear-gradient(135deg, #12302a, #0f3d33); border-color: #14532d; color: #6ee7b7; }
[data-theme="dark"] .hw-item.draft .hw-ic { background: linear-gradient(135deg, #17233a, #1b2740); border-color: #26344f; color: #7b8ca6; }
[data-theme="dark"] .hw-item.over .hw-ic { background: linear-gradient(135deg, #17233a, #1b2740); border-color: #26344f; color: #9fb0c9; }
[data-theme="dark"] .hw-pill { background: #1b2740; color: #9fb0c9; border-color: #26344f; }
[data-theme="dark"] .hw-pill.blue { background: #16233f; color: #93c5fd; border-color: #1e40af; }
[data-theme="dark"] .hw-pill.green { background: #0f2f1d; color: #6ee7a8; border-color: #14532d; }
[data-theme="dark"] .hw-pill.amber { background: #3a2a10; color: #fcd34d; border-color: #6b4a12; }
[data-theme="dark"] .hw-pill.red { background: #3a1720; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .hw-prog { background: #22314f; }
[data-theme="dark"] .hw-prog.none { background: #1b2740; }
[data-theme="dark"] .hw-go { border-color: #1e4b96; color: #bfdbfe; }
[data-theme="dark"] .hw-go:hover { background: #16233f; }
[data-theme="dark"] .hw-go.solid { border-color: transparent; color: #fff; }
[data-theme="dark"] .hw-go.soft { border-color: var(--line); color: var(--sub); }
[data-theme="dark"] .hw-lnk { color: #93c5fd; }
[data-theme="dark"] .hw-lnk.pdf { color: #6ee7d7; }
[data-theme="dark"] .hw-menu button.danger:hover { background: #3a1720; }

@media (max-width: 960px) {
  .hw-bar { padding: 10px; }
  .hw-tools { width: 100%; }
  .hw-search { flex: 1; }
  .hw-list.grid { grid-template-columns: 1fr; }
  .hw-meta { gap: 6px 10px; }
  .hw-item { flex-wrap: wrap; }
  .hw-act { width: 100%; justify-content: flex-end; }
}

/* ==================================================================
 * 我的作业 · 学生端任务流（参照「爱问云」学生作业列表）
 * 顶部：分档 Tab + 类型·时间·学科·班级·搜索；下面按布置日期分组，
 * 一份作业一张任务条：学科图标 + 标题 + 截止/老师 + 主按钮 + 更多。
 * 前缀 sa-/as- 与学生端其他页面（.it / .card）区分开。
 * ================================================================== */
.sa-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.sa-tabs {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--card); border: 1px solid #d7e3fb; border-radius: 11px;
}
.sa-tab {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: none;
  padding: 6px 15px; border-radius: 9px; font-size: 13.2px; font-weight: 600; color: var(--sub);
  transition: color .15s, background .15s;
}
.sa-tab:hover { color: var(--blue2); }
.sa-tab.on { color: #fff; background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 5px 14px rgba(37, 99, 235, .26); }
.sa-tab.on:hover { color: #fff; }
.sa-tab .n {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; display: inline-grid; place-items: center;
  background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sa-tab.on .n { background: rgba(255, 255, 255, .95); color: #1d4ed8; }
.sa-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sa-sel {
  height: 32px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font-size: 12.6px; outline: none; cursor: pointer;
}
.sa-sel.plain { border-color: transparent; color: var(--blue2); background: none; font-weight: 600; }
.sa-sel:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .13); }
.sa-search {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; min-width: 150px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--muted);
}
.sa-search:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .13); }
.sa-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 12.8px; }
.sa-search input::placeholder { color: var(--muted); }

/* 日期分组 */
.sa-day {
  display: flex; align-items: baseline; gap: 7px; margin: 16px 2px 8px;
  font-size: 12.2px; color: var(--sub);
}
.sa-day:first-child { margin-top: 12px; }
.sa-day b { font-size: 13px; font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.sa-day .rel {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: #1d4ed8;
  background: var(--tint1); border: 1px solid var(--tint2); border-radius: 999px; padding: 0 6px;
}
.sa-day .sum { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* 任务条 */
.sa-list { display: flex; flex-direction: column; gap: 9px; }
.sa-item {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; box-shadow: 0 1px 2px rgba(30, 58, 138, .045);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sa-item:hover { border-color: #c7d8f8; box-shadow: 0 7px 22px rgba(30, 58, 138, .1); transform: translateY(-1px); }
.sa-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; }
.sa-ic {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; font-weight: 700; font-family: var(--kai);
  background: linear-gradient(135deg, #e9f8f0, #d5f2e4); border: 1px solid #c9ecdb; color: #0f766e;
}
.sa-ic.blue { background: linear-gradient(135deg, #e8f0fe, #d8e6fd); border-color: #c5dafb; color: #1d4ed8; }
.sa-ic.amber { background: linear-gradient(135deg, #fef5e5, #fdeccd); border-color: #fbe0b2; color: #b45309; }
.sa-ic.purple { background: linear-gradient(135deg, #f1ecfe, #e6dcfd); border-color: #ddd0fb; color: #6d28d9; }
.sa-ic.teal { background: linear-gradient(135deg, #e6f7fb, #d3eff7); border-color: #c1e8f2; color: #0e7490; }
.sa-ic.red { background: linear-gradient(135deg, #fdecec, #fbdcdc); border-color: #f8caca; color: #b91c1c; }
.sa-body { flex: 1; min-width: 0; cursor: pointer; }
.sa-title {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 14.2px; font-weight: 700; line-height: 1.5; color: var(--txt);
}
.sa-title .t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sa-sub {
  margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.1px; color: var(--sub);
}
.sa-sub b { color: var(--txt); font-weight: 600; font-variant-numeric: tabular-nums; }
.sa-sub .dot-sep { width: 1px; height: 11px; background: var(--line); display: inline-block; }
.sa-sub .cp { color: var(--muted); }
.sa-act { display: flex; align-items: center; gap: 4px; flex: none; padding-top: 2px; }
.sa-btn {
  min-width: 78px; padding: 6px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid #a9c8fb; background: var(--card); color: #1d4ed8;
  font-size: 12.8px; font-weight: 600; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.sa-btn:hover { background: var(--tint1); box-shadow: 0 3px 10px rgba(37, 99, 235, .14); }
.sa-btn.fix { border-color: #f5b5b5; color: #dc2626; }
.sa-btn.fix:hover { background: #fef2f2; box-shadow: 0 3px 10px rgba(220, 38, 38, .12); }
.sa-btn.soft { border-color: var(--line); color: var(--sub); }
.sa-btn.soft:hover { background: var(--tint1); color: var(--blue2); }
.sa-dots {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font-size: 14px; line-height: 1; letter-spacing: 1px; padding-bottom: 4px;
}
.sa-dots:hover, .sa-item.menu-on .sa-dots { background: var(--tint1); color: var(--blue2); }
.sa-menu {
  position: absolute; right: 12px; top: 48px; z-index: 30; min-width: 132px; padding: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 16px 38px rgba(9, 20, 45, .18);
}
.sa-menu button {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 9px;
  border: 0; border-radius: 7px; background: none; font-size: 12.5px; color: var(--txt); text-align: left;
}
.sa-menu button:hover { background: var(--tint1); }
/* 答案行：任务条底部，一条细线之上 */
.sa-foot { border-top: 1px dashed var(--line); padding: 7px 14px 8px 68px; }
.sa-ans {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 12.3px; font-weight: 600; color: var(--blue2);
}
.sa-ans::before {
  content: '?'; width: 15px; height: 15px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--tint2); color: #1d4ed8; font-size: 10px; font-weight: 700;
}
.sa-ans:hover { text-decoration: underline; }

/* 详情弹窗 */
.sa-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sa-head-t { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--txt); }
.as-note {
  margin-bottom: 12px; padding: 9px 11px; border-radius: 10px; font-size: 12.8px;
  color: var(--sub); background: var(--tint1); white-space: pre-wrap;
}
.as-score {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid #bbf7d0; background: linear-gradient(135deg, #f0fdf4, #e8fbf0);
}
.as-score-v { font-size: 26px; font-weight: 800; color: #15803d; font-variant-numeric: tabular-nums; line-height: 1.1; }
.as-score-v small { font-size: 12px; font-weight: 600; color: #4d9d6a; }
.as-score-b { flex: 1; min-width: 0; }
.as-score-l { font-size: 12.8px; font-weight: 600; color: #166534; margin-bottom: 6px; }
.as-bar { height: 6px; border-radius: 999px; background: #d7f0e0; overflow: hidden; }
.as-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #15803d, #4ade80); }
.as-comment { margin-top: 7px; font-size: 12px; color: #2f6b45; }
.as-qlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.as-q {
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; font-variant-numeric: tabular-nums;
}
.as-q.ok { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.as-q.half { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.as-q.bad { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.as-fix {
  margin-bottom: 12px; padding: 12px 13px; border-radius: 12px;
  border: 1px dashed #f5c2c2; background: #fffafa;
}
.as-fix-h { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: #b91c1c; }
.as-fix textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 10px; outline: none;
  font-size: 13px; resize: vertical;
}
.as-fix textarea:focus { border-color: #f5b5b5; box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }

/* 深色主题 */
[data-theme="dark"] .sa-tabs { border-color: #22314f; }
[data-theme="dark"] .sa-tab.on { color: #fff; box-shadow: 0 5px 14px rgba(0, 0, 0, .4); }
[data-theme="dark"] .sa-tab.on .n { background: rgba(255, 255, 255, .95); color: #1d4ed8; }
[data-theme="dark"] .sa-item:hover { border-color: #2c4270; }
[data-theme="dark"] .sa-ic { background: linear-gradient(135deg, #12302a, #0f3d33); border-color: #14532d; color: #6ee7b7; }
[data-theme="dark"] .sa-ic.blue { background: linear-gradient(135deg, #17233a, #1b2b4a); border-color: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .sa-ic.amber { background: linear-gradient(135deg, #33260f, #3a2a10); border-color: #6b4a12; color: #fcd34d; }
[data-theme="dark"] .sa-ic.purple { background: linear-gradient(135deg, #241a3d, #2b1f47); border-color: #4c1d95; color: #c4b5fd; }
[data-theme="dark"] .sa-ic.teal { background: linear-gradient(135deg, #0c2b33, #0e3440); border-color: #155e75; color: #67e8f9; }
[data-theme="dark"] .sa-ic.red { background: linear-gradient(135deg, #331419, #3a1720); border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .sa-btn { border-color: #1e4b96; color: #bfdbfe; }
[data-theme="dark"] .sa-btn:hover { background: #16233f; }
[data-theme="dark"] .sa-btn.fix { border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .sa-btn.fix:hover { background: #3a1720; }
[data-theme="dark"] .sa-btn.soft { border-color: var(--line); color: var(--sub); }
[data-theme="dark"] .sa-sel.plain { color: #93c5fd; }
[data-theme="dark"] .sa-ans { color: #93c5fd; }
[data-theme="dark"] .sa-ans::before { background: #16233f; color: #93c5fd; }
[data-theme="dark"] .as-score { background: linear-gradient(135deg, #0f2b1c, #10331f); border-color: #14532d; }
[data-theme="dark"] .as-score-v { color: #6ee7a8; }
[data-theme="dark"] .as-score-v small { color: #64b585; }
[data-theme="dark"] .as-score-l { color: #a7e8bf; }
[data-theme="dark"] .as-bar { background: #1b3a28; }
[data-theme="dark"] .as-comment { color: #8dc7a3; }
[data-theme="dark"] .as-q { background: #1b2740; color: #9fb0c9; border-color: #26344f; }
[data-theme="dark"] .as-q.ok { background: #0f2f1d; color: #6ee7a8; border-color: #14532d; }
[data-theme="dark"] .as-q.half { background: #3a2a10; color: #fcd34d; border-color: #6b4a12; }
[data-theme="dark"] .as-q.bad { background: #3a1720; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .as-fix { background: #26151a; border-color: #7f1d1d; }
[data-theme="dark"] .as-fix-h { color: #fca5a5; }
[data-theme="dark"] .as-note { background: #16233f; }

@media (max-width: 960px) {
  .sa-tools { width: 100%; }
  .sa-search { flex: 1; }
  .sa-row { flex-wrap: wrap; }
  .sa-act { width: 100%; justify-content: flex-end; }
  .sa-foot { padding-left: 14px; }
}

/* ============ 笔记美化（老师端）：识别列表 / 单页美化笔记 ============ */
.nt-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.nt-cfg { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.nt-cfg.on { color: #15803d; background: #dcfce7; }
.nt-cfg.off { color: #b45309; background: #fef3c7; }

/* 列表卡片 */
.nt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nt-card { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: #fff;
  border: 1px solid #edf0f4; border-radius: 14px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.nt-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .4); }
.nt-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.nt-sub-math { background: #dcfce7; }
.nt-sub-physics { background: #dbeafe; }
.nt-sub-chem { background: #ede9fe; }
.nt-sub-english { background: #fce7f3; }
.nt-sub-chinese { background: #fef3c7; }
.nt-card-b { min-width: 0; flex: 1; }
.nt-card-t { font-size: 14.5px; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-st { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.nt-st-pending { color: #64748b; background: #f1f5f9; }
.nt-st-running { color: #1d4ed8; background: #dbeafe; }
.nt-st-done { color: #15803d; background: #dcfce7; }
.nt-st-error { color: #b91c1c; background: #fee2e2; }
.nt-card-m { font-size: 12px; color: #94a3b8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-card-a { display: flex; gap: 6px; }

/* 上传 */
.nt-form { display: flex; flex-direction: column; gap: 10px; }
.nt-up { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 18px 14px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.nt-up:hover, .nt-up.drag { border-color: #60a5fa; background: #eff6ff; }
.nt-up.has { border-style: solid; }
.nt-up-hint { font-size: 13px; color: #64748b; }
.nt-thumbs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.nt-thumb { position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.15); }
.nt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nt-thumb-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,23,42,.72); color: #fff; font-size: 11px; display: grid; place-items: center; cursor: pointer; }
.nt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nt-row .field { flex: 1; min-width: 140px; }
.nt-tip { font-size: 12px; line-height: 1.7; }

/* 操作条 */
.nt-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.nt-back { margin-bottom: 10px; }

/* 加载 / 错误 */
.nt-loading { text-align: center; padding: 34px 20px; }
.nt-spin { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid #dbeafe; border-top-color: #2563eb; animation: nt-spin 0.9s linear infinite; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
.nt-load-t { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.nt-load-img { margin-top: 14px; }
.nt-load-img img { max-width: 320px; max-height: 220px; border-radius: 10px; box-shadow: 0 4px 14px rgba(15,23,42,.18); }
.nt-err { text-align: center; padding: 30px 20px; }
.nt-err-t { font-size: 17px; font-weight: 700; color: #b91c1c; margin-bottom: 6px; }

/* ---------- 单页美化笔记（导出主体） ---------- */
.nt-page { max-width: 780px; margin: 0 auto; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 44px -20px rgba(15, 23, 42, .45); }
.nt-head { display: flex; align-items: center; gap: 13px; padding: 20px 24px; color: #fff; }
.nt-hb-math { background: linear-gradient(120deg, #059669, #34d399); }
.nt-hb-physics { background: linear-gradient(120deg, #2563eb, #60a5fa); }
.nt-hb-chem { background: linear-gradient(120deg, #7c3aed, #a78bfa); }
.nt-hb-english { background: linear-gradient(120deg, #db2777, #f472b6); }
.nt-hb-chinese { background: linear-gradient(120deg, #d97706, #fbbf24); }
.nt-head-l { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.nt-head .nt-ic { background: rgba(255, 255, 255, .24); width: 46px; height: 46px; font-size: 24px; }
.nt-title { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.nt-meta { font-size: 12px; opacity: .92; margin-top: 3px; }
.nt-badge { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .26); }
.nt-summary { margin: 16px 24px 0; padding: 10px 14px; border-radius: 10px; background: #fffbeb;
  border: 1px solid #fde68a; color: #92400e; font-size: 13.5px; line-height: 1.7; }
.nt-body { padding: 16px 24px 8px; display: flex; flex-direction: column; gap: 12px; }

/* 内容块卡片 */
.nt-b { border-radius: 13px; padding: 13px 15px; border: 1px solid; }
.nt-b-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.nt-b-ic { font-size: 15px; }
.nt-b-tag { font-size: 11px; font-weight: 700; padding: 1.5px 9px; border-radius: 999px; }
.nt-b-tt { font-size: 14px; }
.nt-b-c { font-size: 14px; line-height: 1.95; color: #1f2937; overflow-x: auto; }
.nt-b-c .katex-display { margin: 8px 0; }
.nt-b-c .katex { font-size: 1.06em; }
.nt-raw { background: #f1f5f9; border-radius: 6px; padding: 1px 6px; font-size: 12px; }

.nt-b-definition { background: #eff6ff; border-color: #bfdbfe; }
.nt-b-definition .nt-b-tag { color: #1d4ed8; background: #dbeafe; }
.nt-b-definition .nt-b-c { color: #1e3a5f; }
.nt-b-theorem { background: #fef2f2; border-color: #fecaca; }
.nt-b-theorem .nt-b-tag { color: #b91c1c; background: #fee2e2; }
.nt-b-theorem .nt-b-c { color: #451a1a; }
.nt-b-formula { background: #f5f3ff; border-color: #ddd6fe; }
.nt-b-formula .nt-b-tag { color: #6d28d9; background: #ede9fe; }
.nt-b-formula .nt-b-c { color: #3b2a63; }
.nt-b-example { background: #f0fdf4; border-color: #bbf7d0; }
.nt-b-example .nt-b-tag { color: #15803d; background: #dcfce7; }
.nt-b-example .nt-b-c { color: #14532d; }
.nt-b-tip { background: #fffbeb; border-color: #fde68a; }
.nt-b-tip .nt-b-tag { color: #b45309; background: #fef3c7; }
.nt-b-tip .nt-b-c { color: #713f12; }
.nt-b-figure { background: #fff7ed; border-color: #fed7aa; }
.nt-b-figure .nt-b-tag { color: #c2410c; background: #ffedd5; }
.nt-b-figure .nt-b-c { color: #7c2d12; }
.nt-b-text { background: #f8fafc; border-color: #e2e8f0; }
.nt-fig { margin-top: 10px; text-align: center; }
.nt-fig svg { max-width: 300px; width: 70%; height: auto; background: #fffbeb; border-radius: 10px; padding: 6px; }

.nt-foot { padding: 12px 24px 18px; text-align: center; font-size: 11px; color: #94a3b8; }

[data-theme="dark"] .nt-cfg.on { color: #86efac; background: #14301f; }
[data-theme="dark"] .nt-cfg.off { color: #fcd34d; background: #33240d; }
[data-theme="dark"] .nt-card { background: #131a26; border-color: #1f2a3a; }
[data-theme="dark"] .nt-card-t { color: #e5e7eb; }
[data-theme="dark"] .nt-b-c { color: #d1d5db; }
[data-theme="dark"] .nt-b { border-color: #26334a; }
[data-theme="dark"] .nt-b-definition { background: #14243c; }
[data-theme="dark"] .nt-b-theorem { background: #331a1c; }
[data-theme="dark"] .nt-b-formula { background: #221b3d; }
[data-theme="dark"] .nt-b-example { background: #122a1c; }
[data-theme="dark"] .nt-b-tip { background: #33270d; }
[data-theme="dark"] .nt-b-figure { background: #31200e; }
[data-theme="dark"] .nt-b-text { background: #131a26; }
[data-theme="dark"] .nt-summary { background: #33270d; border-color: #5b4310; color: #fcd34d; }
[data-theme="dark"] .nt-page { background: #10161f; box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .8); }
[data-theme="dark"] .nt-raw { background: #1b2434; color: #cbd5e1; }

@media (max-width: 860px) {
  .nt-list { grid-template-columns: 1fr; }
  .nt-title { font-size: 17px; }
  .nt-body { padding: 14px 14px 6px; }
  .nt-head { padding: 16px 16px; }
  .nt-summary { margin: 12px 14px 0; }
}

/* ==================================================================
 * 作业 AI 批改报告（老师端 / 学生端共用）
 * 整页浮层：左题干 + 作答照片（照片上贴得分/错误标注），右批改结果
 * ================================================================== */
body.gr-lock { overflow: hidden; }
.gr-layer {
  position: fixed; inset: 0; z-index: 120; overflow: auto;
  background: radial-gradient(1200px 600px at 12% -10%, var(--bg2), var(--bg) 60%);
  padding: 16px 22px 40px;
}
.gr-layer.hide { display: none; }
.gr-host { max-width: 1280px; margin: 0 auto; }

.gr-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gr-head-t { min-width: 0; }
.gr-head-t b { display: block; font-size: 15.5px; font-family: var(--kai); letter-spacing: .5px; }
.gr-head-t span { font-size: 12px; color: var(--sub); }
.gr-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--tint2); color: var(--blue1); border: 1px solid #bfdbfe; white-space: nowrap;
}
.gr-chip.off { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.gr-banner {
  margin: 0 0 12px; padding: 9px 13px; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12.5px;
}

/* ---------- 布局 ---------- */
.gr-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 16px; align-items: start; }
.gr-col-l, .gr-col-r { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gr-single { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }

.gr-pane { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.gr-pane-h { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .6px; margin-bottom: 10px; }
.gr-stem { font-size: 14.5px; line-height: 1.85; color: var(--txt); overflow-wrap: anywhere; }
.gr-stem .katex-display { margin: 10px 0; }
.gr-stem-sub { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* 作答照片 + 标注（需求 133）：绿框＝得分步骤，红框＋气泡＝订正，右上角白标＝这一点的分 */
.gr-shot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0f172a0a; }
.gr-shot + .gr-shot { margin-top: 12px; }
.gr-shot img { display: block; width: 100%; height: auto; }

.gr-mark {
  position: absolute; border-radius: 5px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset;
}
.gr-mark.ok { border: 2px solid rgba(16, 150, 128, .85); background: rgba(16, 185, 129, .07); }
.gr-mark.bad { border: 2px solid rgba(234, 88, 12, .85); background: rgba(251, 146, 60, .06); }
/* 错因气泡：贴在框的右侧（靠右的框改贴左侧，免得跑出画面） */
.gr-mark .gr-bubble {
  position: absolute; left: 100%; top: -4px; margin-left: 8px;
  width: max-content; max-width: 240px;
  background: #fff; color: #b45309; border: 1px solid #fdba74; border-radius: 7px;
  font-size: 11.5px; font-style: normal; line-height: 1.55; padding: 5px 9px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .14); white-space: normal;
}
.gr-mark.side-l .gr-bubble { left: auto; right: 100%; margin-left: 0; margin-right: 8px; }

/* 分数小标：白底 + 细边，压在框的右上角外侧（老师手写打分的习惯位置） */
.gr-pill {
  position: absolute; transform: translate(-50%, -55%);
  background: #fff; color: #0f172a; border: 1px solid #cbd5e1;
  font-size: 11px; font-weight: 700; line-height: 1.2; padding: 2px 7px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18); white-space: nowrap; pointer-events: none; z-index: 3;
}
.gr-pill.ok { border-color: #99f6e4; color: #0f766e; background: #f0fdfa; }
.gr-pill.half { border-color: #fed7aa; color: #c2410c; background: #fff7ed; }
.gr-pill.auto { left: auto; right: 3%; transform: none; opacity: .92; }
.gr-tag-lose {
  position: absolute; z-index: 3; pointer-events: none;
  background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; border-radius: 6px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
}
.gr-shot-tip { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.gr-legend { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; font-size: 11px; font-weight: 400; color: var(--muted); }
.gr-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.gr-legend i.lg-ok { border: 2px solid rgba(16, 150, 128, .85); background: rgba(16, 185, 129, .12); }
.gr-legend i.lg-bad { border: 2px solid rgba(234, 88, 12, .85); background: rgba(251, 146, 60, .12); margin-left: 6px; }

/* 作答文字（识别原文） */
.gr-pane-txt .gr-txt {
  margin: 0; font-family: var(--kai, ui-monospace, monospace); font-size: 13px; line-height: 1.9;
  color: var(--txt); white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--tint1); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px;
  max-height: 240px; overflow: auto;
}

/* ---------- 批改结果卡 ---------- */
.gr-result {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 20px 16px; box-shadow: 0 8px 26px -14px rgba(30, 58, 138, .35);
  border-top: 4px solid var(--green);
}
.gr-result.gr-mid { border-top-color: var(--amber); }
.gr-result.gr-low { border-top-color: var(--red); }
.gr-result-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gr-result-h > span:first-child { font-family: var(--kai); font-size: 15px; letter-spacing: 1px; color: var(--sub); }
.gr-demo { font-size: 11px; font-weight: 600; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 8px; }
.gr-score { margin-left: auto; display: flex; align-items: baseline; gap: 6px; }
.gr-score em { font-style: normal; font-size: 12px; color: var(--sub); }
.gr-score b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.5px; color: var(--green); }
.gr-result.gr-mid .gr-score b { color: var(--amber); }
.gr-result.gr-low .gr-score b { color: var(--red); }
.gr-score i { font-style: normal; font-size: 13px; color: var(--sub); }

.gr-sec { padding: 12px 0; border-top: 1px dashed var(--line); }
.gr-sec:first-of-type { border-top: 0; padding-top: 0; }
.gr-sec h4 { font-size: 12.5px; font-weight: 700; color: var(--blue1); margin-bottom: 8px; letter-spacing: .5px; }
.gr-sec-n { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--muted); }
/* 薄弱点：整条浅黄底（和纸质批改单上「薄弱点」那一栏一个观感） */
.gr-weak {
  background: #fffbeb; border: 0; border-left: 3px solid #fbbf24; color: #92400e;
  border-radius: 4px; padding: 9px 12px; font-size: 13px; line-height: 1.75;
}
.gr-weak + .gr-weak { margin-top: 6px; }
.gr-weak-ok { background: #ecfdf5; border-left-color: #34d399; color: #15803d; }
/* 得分点：段落式（每点一句话 + 末尾分数），不做成一格一格的卡片，
 * 一条得分点常常两三行，卡片会把报告撑成十几屏 */
.gr-rubric { list-style: none; display: flex; flex-direction: column; gap: 0; }
.gr-rubric li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 2px; border-bottom: 1px dashed var(--line);
}
.gr-rubric li:last-child { border-bottom: 0; }
.gr-rub-t { flex: 1; font-size: 13px; line-height: 1.8; color: var(--txt); }
.gr-rub-note { display: block; margin-top: 3px; font-size: 12px; color: #b45309; }
.gr-rub-note2 { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
/* 需求 135：SymPy 代数核对的结论，挂在得分点描述下面。
 * 只显示 ok / bad —— unknown（几何符号、多个未知数）算不了，挂出来会被误读成「这步有问题」 */
.gr-ck { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; }
.gr-ck.ok { color: #0f766e; }
.gr-ck.hint { color: var(--muted); }
.gr-ck.bad { color: #b91c1c; }
/* 需求 136：判分可信度。放在批改结果最上面，因为老师第一个问题就是
 * 「这个分能不能直接用」。左边一条色边表示高/中/低三档，跟薄弱点统一语汇。 */
.gr-stab { border-left: 3px solid var(--line); padding-left: 11px; }
.gr-stab-high { border-left-color: #10b981; }
.gr-stab-mid { border-left-color: #f59e0b; }
.gr-stab-low { border-left-color: #ef4444; }
.gr-stab h4 { display: flex; align-items: center; gap: 8px; }
.gr-stab-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 1px 8px; border-radius: 999px;
}
.gr-stab-badge.high { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.gr-stab-badge.mid { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.gr-stab-badge.low { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
/* 学生端用的一行式：徽章 + 一句话，和上面的分节式共用类名但不占整段 */
.gr-stab-badge + .gr-stab-txt { margin-left: 8px; }
.gr-stab-txt { font-size: 12px; line-height: 1.75; color: var(--muted); }
.gr-stab-vs { display: flex; gap: 18px; margin: 7px 0 3px; font-size: 12px; color: var(--muted); }
.gr-stab-vs b { margin-left: 5px; font-size: 14px; color: var(--fg); font-variant-numeric: tabular-nums; }
.gr-stab-dis, .gr-stab-flags { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.8; }
.gr-stab-dis li { color: #b45309; }
.gr-stab-flags li { color: #b91c1c; }
.gr-stab-tip { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
/* 模型的 PASS / PARTIAL / FAIL 判定：只在有 SymPy 结论时不显示，避免两个标记打架 */
.gr-vd {
  display: inline-block; margin-left: 6px; font-size: 10.5px;
  padding: 0 5px; border-radius: 4px; vertical-align: 1px;
}
.gr-vd.pass { background: #ecfdf5; color: #047857; }
.gr-vd.part { background: #fffbeb; color: #b45309; }
.gr-vd.fail { background: #fef2f2; color: #b91c1c; }
.gr-item.empty { opacity: .62; }
/* 分题得分：一页切出多道题时的横向小卡片 */
.gr-items { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-item {
  display: flex; align-items: baseline; gap: 7px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--line);
  font-size: 12.5px;
}
.gr-item b { font-weight: 600; }
.gr-item em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
.gr-item em.ok { color: #15803d; }
.gr-item em.half { color: #c2410c; }
.gr-item em.no { color: #b91c1c; }
/* 适配层元信息（仅老师端）：切了几题 / 识别几行 / 核对几式 / 用时 */
.gr-adapt {
  margin-top: 12px; padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 11px; line-height: 1.7; color: var(--muted);
}
.gr-rubric em {
  flex: none; font-style: normal; font-size: 12px; font-weight: 700;
  padding: 1px 0; white-space: nowrap;
}
.gr-rubric em.ok { color: #15803d; }
.gr-rubric em.half { color: #c2410c; }
.gr-rubric em.no { color: #b91c1c; }
.gr-reason { font-size: 13px; line-height: 1.85; color: var(--sub); }

.gr-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gr-pub-on { font-size: 12px; color: var(--green); }
.gr-pub-off { font-size: 12px; color: var(--muted); }

.gr-ref { background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 14px; padding: 14px 17px; }
.gr-ref h4 { font-size: 12.5px; font-weight: 700; color: #6d28d9; margin-bottom: 8px; letter-spacing: .5px; }
.gr-ref-b { font-size: 13.5px; line-height: 1.85; color: #4c1d95; overflow-wrap: anywhere; }

.gr-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 18px; }

/* 加载 / 出错 */
.gr-loading {
  max-width: 520px; margin: 12vh auto 0; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.gr-loading .muted { line-height: 1.8; }
.gr-err { border-top: 4px solid var(--red); }
.gr-spin {
  width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%;
  border: 3px solid var(--tint2); border-top-color: var(--blue2); animation: grspin .8s linear infinite;
}
@keyframes grspin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .gr-grid { grid-template-columns: 1fr; }
  .gr-col-r { order: -1; }
}
@media (max-width: 640px) {
  .gr-layer { padding: 10px 10px 30px; }
  .gr-score b { font-size: 26px; }
  .gr-pane, .gr-result { padding: 13px 14px; border-radius: 14px; }
}

/* 深色主题 */
[data-theme="dark"] .gr-pane, [data-theme="dark"] .gr-result, [data-theme="dark"] .gr-loading { background: var(--card); }
[data-theme="dark"] .gr-weak { background: #33270d; border-left-color: #b45309; color: #fcd34d; }
[data-theme="dark"] .gr-weak-ok { background: #122a1c; border-left-color: #15803d; color: #86efac; }
[data-theme="dark"] .gr-rubric li { background: transparent; border-bottom-color: rgba(148, 163, 184, .18); }
[data-theme="dark"] .gr-ref { background: #221b3d; border-color: #4c1d95; }
[data-theme="dark"] .gr-ref-b { color: #ddd6fe; }
[data-theme="dark"] .gr-pill { background: #e2e8f0; border-color: #94a3b8; color: #0f172a; }
[data-theme="dark"] .gr-pill.ok { background: #d1fae5; border-color: #0f766e; color: #065f46; }
[data-theme="dark"] .gr-pill.half { background: #ffedd5; border-color: #c2410c; color: #7c2d12; }
[data-theme="dark"] .gr-tag-lose { background: #3b2410; color: #fdba74; border-color: #9a3412; }
[data-theme="dark"] .gr-mark .gr-bubble { background: #3b2410; color: #fdba74; border-color: #9a3412; }
[data-theme="dark"] .gr-pane-txt .gr-txt { background: #16233f; border-color: rgba(148, 163, 184, .25); }
[data-theme="dark"] .gr-banner { background: #33270d; border-color: #5b4310; color: #fcd34d; }
[data-theme="dark"] .gr-chip { background: #1b2c4d; color: #bfdbfe; border-color: #1e40af; }
[data-theme="dark"] .gr-chip.off { background: #33270d; color: #fcd34d; border-color: #5b4310; }
[data-theme="dark"] .gr-ck.ok { color: #5eead4; }
[data-theme="dark"] .gr-ck.bad { color: #fca5a5; }
[data-theme="dark"] .gr-item { background: #16233f; border-color: rgba(148, 163, 184, .22); }
[data-theme="dark"] .gr-item em.ok { color: #4ade80; }
[data-theme="dark"] .gr-item em.half { color: #fdba74; }
[data-theme="dark"] .gr-item em.no { color: #fca5a5; }
[data-theme="dark"] .gr-adapt { border-top-color: rgba(148, 163, 184, .22); }
[data-theme="dark"] .gr-stab { border-left-color: rgba(148, 163, 184, .3); }
[data-theme="dark"] .gr-stab-high { border-left-color: #10b981; }
[data-theme="dark"] .gr-stab-mid { border-left-color: #f59e0b; }
[data-theme="dark"] .gr-stab-low { border-left-color: #ef4444; }
[data-theme="dark"] .gr-stab-badge.high { background: #052e26; color: #5eead4; border-color: #115e59; }
[data-theme="dark"] .gr-stab-badge.mid { background: #33270d; color: #fcd34d; border-color: #5b4310; }
[data-theme="dark"] .gr-stab-badge.low { background: #3b1414; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .gr-stab-dis li { color: #fcd34d; }
[data-theme="dark"] .gr-stab-flags li { color: #fca5a5; }
[data-theme="dark"] .gr-vd.pass { background: #052e26; color: #5eead4; }
[data-theme="dark"] .gr-vd.part { background: #33270d; color: #fcd34d; }
[data-theme="dark"] .gr-vd.fail { background: #3b1414; color: #fca5a5; }

/* ============ 科目子平台 ============ */
.plat-chip { border: 1px solid var(--bd, #e2e8f0); background: var(--card, #fff); color: var(--tx, #0f172a);
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.plat-chip:hover { border-color: #6366f1; }
.plat-sel-head { margin-bottom: 12px; }
.plat-sel-head h3 { margin: 0 0 6px; }
#view .plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plat-card { position: relative; padding: 18px 14px; border: 1px solid var(--bd, #e2e8f0); border-radius: 14px;
  background: var(--card, #fff); text-align: center; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.plat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79,70,229,.12); border-color: #6366f1; }
.plat-card.cur { border-color: #6366f1; }
.plat-card .plat-icon { font-size: 32px; margin-bottom: 6px; }
.plat-card b { font-size: 15px; }
.plat-card .muted { font-size: 12px; margin-top: 4px; }
.plat-cur-tag { position: absolute; top: 8px; right: 8px; font-size: 11px; color: #fff; background: #6366f1;
  border-radius: 999px; padding: 2px 8px; }
.plat-enter { display: inline-block; margin-top: 8px; font-size: 12px; color: #6366f1; }
.plat-custom { max-width: 520px; text-align: center; padding: 26px 20px; }
.plat-custom h3 { margin: 8px 0 4px; }
[data-theme="dark"] .plat-card, [data-theme="dark"] .plat-chip { background: #1b2434; border-color: #2b3a52; color: #e2e8f0; }
[data-theme="dark"] .plat-card:hover { border-color: #818cf8; }
[data-theme="dark"] .plat-cur-tag { background: #6366f1; }
@media (max-width: 720px) { #view .plat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==================================================================
 * 录制微课工作台（app.record.js）
 * 布局：顶栏 / 左工具条 / 中间教材白板 / 右侧教材页 / 左下录制坞
 * ================================================================== */
.rec-overlay { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #eef2f8; color: var(--txt); }
.rec-top { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.rec-x { width: 32px; height: 32px; border: none; border-radius: 9px; background: transparent; color: var(--sub); font-size: 17px; }
.rec-x:hover { background: var(--tint1); color: var(--red); }
.rec-brand { font-family: var(--kai); font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.rec-fsel { max-width: 300px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--txt); font-size: 12.5px; }
.rec-subj { font-size: 12px; color: var(--sub); }
.rec-save { font-size: 12.5px; color: var(--sub); background: var(--tint1); padding: 4px 10px; border-radius: 999px; }
.rec-save.ok { color: #15803d; background: #dcfce7; }
.rec-save.busy { color: #b45309; background: #fef3c7; }
.rec-save.bad { color: #b91c1c; background: #fee2e2; }
.rec-done { padding: 7px 20px; border: none; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #2563eb, #3b82f6); font-weight: 600; }
.rec-done:hover { filter: brightness(1.05); }

.rec-body { flex: 1; display: flex; min-height: 0; }
.rec-tools { width: 58px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 0 14px; background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; }
.rec-tools button { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--sub); font-size: 16px; display: grid; place-items: center; }
.rec-tools button:hover { background: var(--tint1); color: var(--blue2); }
.rec-tools button.on { background: var(--tint2); border-color: #bfdbfe; color: var(--blue1); }
.rec-pen-dot { width: 16px; height: 16px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.rec-sep { width: 26px; height: 1px; flex-shrink: 0; background: var(--line); margin: 3px 0; }
.rec-colors { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.rec-colors button { width: 19px; height: 19px; flex-shrink: 0; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); }
.rec-colors button.on { box-shadow: 0 0 0 2px var(--blue2); }

.rec-stage { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 26px 34px; }
.rec-page { position: relative; width: 100%; height: 100%; max-width: 1180px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 38px rgba(15, 35, 90, .13); touch-action: none; }
.rec-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.rec-bubbles { position: absolute; inset: 0; pointer-events: none; }
.rec-bubble { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 6px; border-radius: 999px; background: linear-gradient(135deg, #34d399, #10b981); color: #fff; box-shadow: 0 6px 18px rgba(16, 185, 129, .34); pointer-events: auto; cursor: grab; user-select: none; }
.rec-bubble.dragging { cursor: grabbing; box-shadow: 0 10px 26px rgba(16, 185, 129, .45); }
.rec-bubble .rb-play { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0f9f6e; display: grid; place-items: center; font-size: 12px; }
.rec-bubble .rb-dur { font-size: 13px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; }
.rec-bubble.audio { background: linear-gradient(135deg, #38bdf8, #0ea5e9); box-shadow: 0 6px 18px rgba(14, 165, 233, .32); }
.rec-bubble.audio .rb-play { color: #0284c7; }

.rec-dock { position: absolute; left: 22px; bottom: 18px; display: flex; align-items: center; gap: 2px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 26px rgba(15, 35, 90, .14); z-index: 4; }
.rec-dock button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; padding: 5px 2px; border: none; border-radius: 10px; background: transparent; color: var(--sub); font-size: 11.5px; }
.rec-dock button i { font-style: normal; font-size: 18px; line-height: 1.1; }
.rec-dock button:hover { background: var(--tint1); color: var(--blue2); }
.rec-dock button:disabled { opacity: .4; cursor: not-allowed; }

/* ===== 九种录课形式选择 ===== */
.rec-tpl-mask { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(9,17,32,.55); backdrop-filter: blur(3px); }
.rec-tpl-box { width: min(940px, 96vw); max-height: 92vh; overflow: auto; background: var(--card); border-radius: 18px; padding: 22px 24px 18px; box-shadow: 0 24px 60px rgba(9,17,32,.35); }
.rec-tpl-h { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.rec-tpl-h h3 { font-size: 18px; }
.rec-tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.rec-tpl { position: relative; text-align: left; padding: 9px 9px 11px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rec-tpl:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(37,99,235,.16); transform: translateY(-2px); }
.rec-tpl.hot { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.rec-tpl b { display: block; margin-top: 8px; font-size: 13.5px; color: var(--txt); }
.rec-tpl em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; line-height: 1.45; color: var(--sub); }
.rt-prev { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.rt-prev.vert { aspect-ratio: 9 / 16; max-height: 150px; margin: 0 auto; width: auto; }
.rt-prev i { position: absolute; display: block; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.16); }
.rt-prev u { position: absolute; display: block; background: radial-gradient(circle at 50% 34%, #dbe3ee, #94a3b8); border: 2px solid rgba(255,255,255,.92); }
.rec-tpl-f { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.rec-tpl-f .muted { font-size: 11.5px; }
@media (max-width: 720px) {
  .rec-tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-tpl-box { padding: 16px 14px 12px; }
  .rt-prev.vert { max-height: 120px; }
}

/* ===== 摄像头虚拟背景选择（需求 63） ===== */
.rec-bgbtn span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-bgbtn.on { color: var(--blue2); }
.rec-bg-mask { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(9,17,32,.58); backdrop-filter: blur(3px); }
.rec-bg-box { width: min(1000px, 96vw); max-height: 92vh; overflow: auto; background: var(--card); border-radius: 18px; padding: 22px 24px 18px; box-shadow: 0 24px 60px rgba(9,17,32,.35); }
.rec-bg-h { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.rec-bg-h h3 { font-size: 18px; }
.rec-bg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.rec-bg-prev { position: relative; border-radius: 14px; overflow: hidden; background: #0f172a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.rec-bg-prev canvas { display: block; width: 100%; height: auto; }
.rec-bg-prev-f { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(15,23,42,.62); color: #e2e8f0; font-size: 11.5px; }
.rec-bg-prev-f b { color: #fff; font-weight: 600; }
.rec-bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rec-bg { padding: 6px 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rec-bg:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.14); }
.rec-bg.hot { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.rec-bg-th { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 7px; background: #eef2f8; }
.rec-bg b { display: block; margin-top: 5px; font-size: 12px; color: var(--txt); }
.rec-bg em { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; color: var(--sub); line-height: 1.3; }
.rec-bg-f { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.rec-bg-f .muted { font-size: 11.5px; }
.rec-live-bg { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 11.5px; white-space: nowrap; }

/* ---------------- 人像形状 / 大小 / 位置 / 美颜（需求 96） ---------------- */
.rec-cambtn span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-cam-mask { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15,23,42,.52); backdrop-filter: blur(3px); }
.rec-cam-box { width: min(1040px, 96vw); max-height: 92vh; overflow: auto; background: var(--card); border-radius: 16px; padding: 18px 20px 14px; box-shadow: 0 24px 60px rgba(2,6,23,.34); }
.rec-cam-h { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.rec-cam-h h3 { font-size: 18px; }
.rec-cam-h .muted { font-size: 11.5px; line-height: 1.5; }
.rec-cam-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.rec-cam-l { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rec-cam-stage { position: relative; border-radius: 12px; overflow: hidden; background: #0f172a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); line-height: 0; }
.rec-cam-stage canvas { display: block; }
.rec-cam-hit { position: absolute; left: 0; top: 0; cursor: grab; touch-action: none; }
.rec-cam-hit:active { cursor: grabbing; }
.rec-cam-tip { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 11px; color: var(--sub); }
.rec-cam-tplsel { width: 100%; max-width: 240px; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); color: var(--txt); font-size: 12px; }
.rec-cam-r { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.rec-cam-sec { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--sub); letter-spacing: .02em; }
.rec-cam-sec2 { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rec-cam-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rec-cam-sh { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 6px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rec-cam-sh:hover { border-color: var(--blue); }
.rec-cam-sh i { display: block; width: 32px; height: 32px; background: linear-gradient(135deg, #93c5fd, #2563eb); }
.rec-cam-sh b { font-size: 11px; font-weight: 500; color: var(--sub); }
.rec-cam-sh.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.rec-cam-sh.on b { color: var(--blue2); font-weight: 600; }
.rec-cam-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; color: var(--txt); }
.rec-cam-row > span:first-child { color: var(--sub); }
.rec-cam-row b { min-width: 38px; text-align: right; font-size: 11.5px; color: var(--blue2); font-variant-numeric: tabular-nums; }
.rec-cam-row input[type="range"] { width: 100%; accent-color: var(--blue); }
.rec-cam-sw { grid-template-columns: 42px auto minmax(0, 1fr); }
.rec-cam-sw em { font-style: normal; font-size: 11px; color: var(--sub); }
.rec-cam-tg { min-width: 46px; padding: 3px 8px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--sub); font-size: 11.5px; cursor: pointer; }
.rec-cam-tg.on { border-color: var(--blue); background: rgba(37,99,235,.12); color: var(--blue2); font-weight: 600; }
.rec-cam-colors { display: flex; gap: 6px; align-items: center; }
.rec-cam-colors button { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: inset 0 0 0 1px rgba(15,23,42,.18); cursor: pointer; }
.rec-cam-colors button.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
#rec-cam-bs { display: flex; flex-direction: column; gap: 7px; }
#rec-cam-bs.off { opacity: .42; pointer-events: none; }
.rec-cam-warn { padding: 7px 10px; border-radius: 9px; background: #fff7e6; border: 1px solid #f0c67a; color: #8a5a00; font-size: 11.5px; line-height: 1.5; }
.rec-cam-warn.hide { display: none; }
[data-theme="dark"] .rec-cam-warn { background: #3a2a10; border-color: #6b4a12; color: #fcd34d; }
.rec-cam-note { margin: 2px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--sub); }
.rec-cam-f { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .rec-bg-body { grid-template-columns: 1fr; }
  .rec-bg-grid { grid-template-columns: repeat(3, 1fr); }
  .rec-bg-box { padding: 16px 14px 12px; }
  .rec-cam-body { grid-template-columns: 1fr; }
  .rec-cam-shapes { grid-template-columns: repeat(4, 1fr); }
  .rec-cam-box { padding: 16px 14px 12px; }
}

.rec-live { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 13px; background: rgba(15, 23, 42, .92); color: #fff; border-radius: 999px; box-shadow: 0 10px 24px rgba(2, 6, 23, .32); z-index: 6; }
.rec-live-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #ef4444; animation: recPulse 1.1s ease-in-out infinite; }
.rec-live-dot.paused { animation: none; background: #f59e0b; }
@keyframes recPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.78); } }
.rec-live b { font-size: 13px; font-variant-numeric: tabular-nums; }
.rec-live-mode { font-size: 11.5px; opacity: .8; }
.rec-lvl { width: 58px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.rec-lvl i { display: block; height: 100%; width: 4%; background: #34d399; transition: width .12s; }
.rec-live button { border: none; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.rec-live button:hover { background: rgba(255, 255, 255, .26); }
.rec-live .rec-stop { background: #fff; color: #0f172a; font-weight: 600; }
.rec-live .rec-stop:disabled { opacity: .7; }

/* ===== 同屏预览（需求 109）：录制中看到的就是录进去的那张画面 ===== */
.rec-pvbtn.on { color: var(--blue1); background: var(--tint2); }
.rec-pv { position: absolute; right: 18px; bottom: 18px; width: 304px; z-index: 5; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: rgba(15, 23, 42, .95); color: #fff; box-shadow: 0 16px 38px rgba(2, 6, 23, .38); }
.rec-pv.hide { display: none; }
.rec-pv.dragging { cursor: grabbing; box-shadow: 0 20px 46px rgba(2, 6, 23, .5); }
.rec-pv.big { left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%); width: min(760px, 74%); }
.rec-pv-h { display: flex; align-items: center; gap: 7px; padding: 7px 8px 7px 11px; cursor: grab; touch-action: none; user-select: none; }
.rec-pv.dragging .rec-pv-h { cursor: grabbing; }
.rec-pv-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #ef4444; animation: recPulse 1.1s ease-in-out infinite; }
.rec-pv-h b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rec-pv-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.rec-pv-h button { width: 22px; height: 22px; flex-shrink: 0; border: none; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center; }
.rec-pv-h button:hover { background: rgba(255, 255, 255, .28); }
.rec-pv-stage { position: relative; aspect-ratio: 16 / 9; background: #0b1220; overflow: hidden; }
.rec-pv-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.rec-pv-f { display: flex; align-items: center; gap: 6px; padding: 5px 9px 7px; font-size: 11px; color: rgba(255, 255, 255, .72); }
.rec-pv-f span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-pv-f button { flex-shrink: 0; border: none; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11px; padding: 3px 9px; }
.rec-pv-f button:hover { background: rgba(255, 255, 255, .26); }
.rec-pv-mini { position: absolute; right: 18px; bottom: 18px; z-index: 5; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(15, 23, 42, .9); color: #fff; font-size: 18px; box-shadow: 0 10px 24px rgba(2, 6, 23, .34); display: grid; place-items: center; }
.rec-pv-mini.hide { display: none; }
.rec-pv-mini:hover { background: rgba(15, 23, 42, 1); }
@media (max-width: 1180px) { .rec-pv { width: 236px; } .rec-pv-tag { max-width: 96px; } }

.rec-pgnum { position: absolute; right: 30px; bottom: 22px; font-size: 12px; color: var(--sub); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.rec-rail { width: 178px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--card); border-left: 1px solid var(--line); }
.rec-thumbs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 2px; }
.rec-thumb { position: relative; flex-shrink: 0; aspect-ratio: 1.55 / 1; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(15, 35, 90, .1); cursor: pointer; }
.rec-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.rec-thumb-empty { display: grid; place-items: center; height: 100%; color: #cbd5e1; font-size: 11px; }
.rec-thumb b { position: absolute; right: 5px; bottom: 4px; font-size: 10.5px; font-weight: 500; color: #475569; background: rgba(255, 255, 255, .92); border-radius: 5px; padding: 0 4px; }
.rec-thumb.on { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .16); }
.rec-thumb-x { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; display: none; place-items: center; border: none; border-radius: 50%; background: rgba(15, 23, 42, .62); color: #fff; font-size: 12px; line-height: 1; }
.rec-thumb:hover .rec-thumb-x { display: grid; }
.rec-addpage, .rec-up { width: 100%; padding: 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 12.5px; }
.rec-addpage:hover { border-color: #93c5fd; background: var(--tint1); color: var(--blue2); }
.rec-up { border-style: dashed; border-color: #93c5fd; color: var(--blue2); font-weight: 600; }
.rec-up:hover { background: var(--tint1); }
.rec-up:disabled { opacity: .65; cursor: progress; }

.rec-bmenu { position: fixed; z-index: 200; min-width: 136px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 35, 90, .18); display: flex; flex-direction: column; }
.rec-bmenu button { border: none; background: transparent; text-align: left; padding: 7px 10px; border-radius: 7px; font-size: 12.5px; color: var(--txt); }
.rec-bmenu button:hover { background: var(--tint1); }

.rec-audio { padding: 16px; border-radius: 12px; background: linear-gradient(135deg, var(--tint1), var(--tint2)); }
.rec-wave { display: flex; align-items: center; gap: 3px; height: 52px; margin-bottom: 10px; }
.rec-wave i { flex: 1; height: 26%; border-radius: 3px; background: var(--blue3); opacity: .75; animation: recWave 1.2s ease-in-out infinite; }
.rec-wave i:nth-child(3n) { height: 62%; animation-delay: .12s; }
.rec-wave i:nth-child(4n) { height: 42%; animation-delay: .26s; }
.rec-wave i:nth-child(5n) { height: 78%; animation-delay: .38s; }
@keyframes recWave { 0%, 100% { transform: scaleY(.7); } 50% { transform: scaleY(1.15); } }

[data-theme="dark"] .rec-overlay { background: #0b1424; }
[data-theme="dark"] .rec-page { background: #f8fafc; }
[data-theme="dark"] .rec-pgnum { background: rgba(15, 23, 42, .8); color: #cbd5e1; border-color: #2b3a52; }
[data-theme="dark"] .rec-thumb { background: #f8fafc; }
[data-theme="dark"] .rec-colors button { border-color: #14203a; }
[data-theme="dark"] .rec-live { background: rgba(2, 6, 23, .95); }

@media (max-width: 980px) {
  .rec-rail { width: 128px; }
  .rec-stage { padding: 12px 12px 28px; }
  .rec-tools { width: 48px; }
  .rec-tools button { width: 34px; height: 34px; }
  .rec-fsel { max-width: 150px; }
  .rec-save { display: none; }
}

/* ==================================================================
 * 作业题目照片 · 参考答案 · 语音讲解 / 语音评语（v16）
 * 老师端布置作业表单（af-*）、作答与批改面板（hw-v*）、
 * 学生端（as-voice / paper-strip）与批改报告（gr-voice）共用。
 * ================================================================== */
.vc-list { display: flex; flex-direction: column; gap: 6px; }
.vc-item {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 5px 9px 5px 6px; border-radius: 10px;
  background: linear-gradient(135deg, var(--tint1), var(--tint2));
  border: 1px solid var(--tint2);
}
.vc-item audio { height: 30px; width: 210px; max-width: 100%; }
.vc-meta { font-size: 11.5px; color: var(--sub); font-style: normal; }
.vc-del {
  width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; line-height: 1;
}
[data-theme="dark"] .vc-item { background: #16233f; border-color: #1e3a6b; }

/* 录音按钮：空闲 / 录音中 */
.hw-vrec {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--sub);
  font-size: 12.4px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.hw-vrec:hover { border-color: #93c5fd; color: var(--blue2); background: var(--tint1); }
.hw-vrec.rec { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; animation: hwPulse 1.1s ease-in-out infinite; }
.hw-vrec.off { opacity: .6; cursor: not-allowed; }
@keyframes hwPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .28); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }

/* 表单分区 */
.af-sec {
  margin: 12px 0 12px; padding: 12px 13px; border-radius: 12px;
  background: var(--tint1); border: 1px solid var(--tint2);
}
.af-sec-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.af-sec-h b { font-size: 13px; }
.af-sec-h .tiny { margin-left: auto; }
.af-media { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.af-media .th { position: relative; display: inline-block; }
.af-media .th img { width: 74px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.af-media .th b {
  position: absolute; right: -6px; top: -7px; width: 17px; height: 17px; border-radius: 50%;
  background: #dc2626; color: #fff; font-size: 10px; display: grid; place-items: center; cursor: pointer;
}
.af-addimg {
  width: 74px; height: 58px; border: 1px dashed #b9ccf2; border-radius: 8px; background: var(--card);
  color: var(--blue2); font-size: 11.5px; display: grid; place-items: center; cursor: pointer; text-align: center; line-height: 1.35;
}
.af-addimg:hover { border-color: #93c5fd; background: #f8fbff; }

/* 逐题答案 */
.af-ans-list { display: flex; flex-direction: column; gap: 8px; }
.af-ans {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px;
}
.af-ans-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.af-ans-no {
  width: 21px; height: 21px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; font-size: 11.5px; font-weight: 700;
}
.af-ans-h .tiny { color: var(--muted); }
.af-ans textarea { min-height: 44px; font-size: 12.8px; }
.af-ans-foot { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px; }
.af-ans-foot .sp { flex: 1; }
.af-ans .vc-list { margin-top: 7px; }
.af-ans-empty { font-size: 12.5px; color: var(--muted); padding: 6px 2px; }

/* 题目照片条（老师详情 / 学生作答前） */
.paper-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.paper-strip a { display: block; }
.paper-strip img {
  width: 96px; height: 74px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* 本次布置的题目内容（组卷 → 派作业 → 老师查看 / 学生作业详情）
 * 以前这里只有组卷标题，学生端等于只拿到一个作业名；题目、选项、题图都在组卷里，
 * 详情页要把它们摊开，学生才知道要做什么、老师才能核对「我到底布了哪几题」。 */
.hwqs { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: var(--tint1); }
.hwqs-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 9px; }
.hwqs-h .tiny { color: var(--sub); }
.hwqs-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.hwqs-q { display: flex; gap: 9px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.hwqs-no {
  flex: 0 0 22px; height: 22px; border-radius: 7px; background: var(--tint2); color: #1d4ed8;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .hwqs-no { color: var(--blue4); }
.hwqs-bd { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.75; }
.hwqs-stem { white-space: pre-wrap; word-break: break-word; }
.hwqs-stem img { max-width: 100%; border-radius: 8px; vertical-align: middle; }
.hwqs-opts { display: grid; gap: 2px; margin-top: 5px; color: var(--sub); font-size: 13px; }
.hwqs-opts.two { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.hwqs-opts img { max-width: 100%; vertical-align: middle; }
.hwqs-figs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.hwqs-figs img { max-width: 190px; max-height: 150px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.hwqs-figs.thumb img { max-width: 128px; max-height: 104px; }
.hwqs-sc { font-size: 12px; color: var(--sub); white-space: nowrap; padding-top: 2px; }
@media (max-width: 620px) {
  .hwqs-opts.two { grid-template-columns: 1fr; }
  .hwqs-list { max-height: 300px; }
}

/* 老师详情：语音评语区 */
.hw-vbox { margin-top: 12px; padding: 11px 12px; border-radius: 11px; background: var(--tint1); border: 1px solid var(--tint2); }
.hw-vbox-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hw-vbox-h b { font-size: 12.8px; }
.hw-vbox .vc-list { margin-top: 8px; }

/* 学生端：老师的语音评语 */
.as-voice { margin-top: 10px; padding: 10px 11px; border-radius: 11px; background: linear-gradient(135deg, #eff6ff, #e8f1ff); border: 1px solid #d7e3fb; }
.as-voice-h { font-size: 12.6px; font-weight: 700; color: #1d4ed8; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
[data-theme="dark"] .as-voice { background: #16233f; border-color: #1e3a6b; }
[data-theme="dark"] .as-voice-h { color: #93c5fd; }

/* 批改报告里的语音评语 */
.gr-voice { margin-top: 12px; padding: 11px 12px; border-radius: 11px; background: rgba(37, 99, 235, .06); border: 1px solid rgba(37, 99, 235, .18); }
.gr-voice h4 { font-size: 12.6px; margin: 0 0 7px; color: #1d4ed8; }
.gr-voice .vc-item { background: rgba(255, 255, 255, .7); border-color: rgba(37, 99, 235, .2); }
.gr-voice .vc-meta { color: #334155; }

@media (max-width: 720px) {
  .vc-item audio { width: 100%; }
  .af-media .th img, .af-addimg { width: 64px; height: 52px; }
}

/* ==================================================================
 * 老师端：作业提交情况看板（未提交 / 待批改 / 已批改）+ 代交
 * ================================================================== */
.hb-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--tint1); border: 1px solid var(--tint2); margin-bottom: 8px; }
.hb-tab { border: 0; background: transparent; color: var(--sub); font-size: 12.8px; padding: 6px 13px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.hb-tab .n { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.hb-tab.on { background: #fff; color: var(--blue2); box-shadow: 0 1px 6px rgba(37, 99, 235, .14); }
.hb-tab.on .n { color: var(--blue2); }
.hb-hint { font-size: 11.5px; color: var(--muted); margin: 0 0 10px 2px; }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.hb-grid .empty { grid-column: 1 / -1; }
.hb-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 12px 11px; text-align: center; transition: .16s; }
.hb-card:hover { border-color: var(--tint2); box-shadow: var(--shadow); transform: translateY(-1px); }
.hb-card.none { background: linear-gradient(180deg, #fff, #fbfcff); }
.hb-av { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 7px; display: grid; place-items: center; font-family: var(--kai); font-size: 17px; color: #fff; background: linear-gradient(135deg, #93c5fd, #60a5fa); }
.hb-card.none .hb-av { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.hb-name { font-size: 13.2px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-st { font-size: 11.5px; margin-top: 2px; }
.hb-st.none { color: var(--muted); }
.hb-st.wait { color: var(--amber); }
.hb-st.done { color: var(--green); }
.hb-line { font-size: 11px; color: var(--muted); margin-top: 3px; min-height: 15px; }
.hb-dots { position: absolute; top: 6px; right: 7px; border: 0; background: transparent; color: var(--muted); font-size: 14px; line-height: 1; padding: 3px 5px; border-radius: 7px; }
.hb-dots:hover { background: var(--tint1); color: var(--blue2); }
.hb-menu { display: none; position: absolute; top: 27px; right: 6px; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 22px rgba(15, 23, 42, .14); padding: 4px; min-width: 148px; }
.hb-card.menu-on .hb-menu { display: block; }
.hb-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--txt); font-size: 12.6px; padding: 7px 9px; border-radius: 7px; white-space: nowrap; }
.hb-menu button:hover { background: var(--tint1); color: var(--blue2); }
.hb-ribbon { position: absolute; top: 0; left: 0; font-size: 10px; color: #fff; background: #f97316; padding: 2px 7px 2px 6px; border-radius: 12px 0 12px 0; }
.hb-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 6px; margin: 0 2px 2px; }
.hb-tag.tea { background: #fef3c7; color: #b45309; }
.hb-tag.blue { background: var(--tint1); color: var(--blue2); }
.hb-tag.amber { background: #fef3c7; color: #b45309; }
.hb-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-bottom: 4px; }
.hb-bar { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* 老师代交：拍 / 选作业照片浮层 */
.hwup-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 18px; }
.hwup { width: min(520px, 100%); max-height: 88vh; overflow: auto; background: var(--card); border-radius: 15px; padding: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.hwup-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hwup-h b { font-family: var(--kai); font-size: 15.5px; letter-spacing: .5px; }
.hwup-x { border: 0; background: transparent; color: var(--muted); font-size: 16px; padding: 2px 6px; border-radius: 7px; }
.hwup-x:hover { background: var(--tint1); }
.hwup-add { border: 1.5px dashed var(--tint2); border-radius: 11px; padding: 16px; text-align: center; color: var(--blue2); font-size: 13px; background: #f8fbff; cursor: pointer; }
.hwup-add:hover { background: var(--tint1); }
.hwup-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 9px 0; }
.hwup-thumbs .th { position: relative; display: block; }
.hwup-thumbs img { width: 74px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.hwup-thumbs i { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 11px; font-style: normal; display: grid; place-items: center; cursor: pointer; }
.hwup textarea { width: 100%; min-height: 66px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--card); resize: vertical; }

/* 学生端：老师提醒 */
.as-remind { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 12px; border-radius: 10px; background: #fff8e7; border: 1px solid #fde8b4; color: #92400e; font-size: 12.8px; }
.as-remind .tiny { margin-left: auto; color: #b45309; }

[data-theme="dark"] .hb-tab.on { background: #1b2c4d; box-shadow: none; }
[data-theme="dark"] .hb-card.none { background: linear-gradient(180deg, #14203a, #16233f); }
[data-theme="dark"] .hwup-add { background: #16233f; }
[data-theme="dark"] .hb-tag.tea, [data-theme="dark"] .hb-tag.amber { background: #3a2a12; color: #fbbf24; }
[data-theme="dark"] .as-remind { background: #3a2a12; border-color: #5a4118; color: #fcd34d; }
[data-theme="dark"] .as-remind .tiny { color: #fbbf24; }

@media (max-width: 720px) {
  .hb-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); max-height: 50vh; }
  .hb-bar { flex-wrap: wrap; }
  .hwup-mask { padding: 10px; align-items: flex-end; }
  .hwup { border-radius: 15px 15px 0 0; }
}

/* ===== 会员与建号（老师端 / 学生端共用） ===== */
.tag.g { background: rgba(22,163,74,.12); color: #15803d; border-color: rgba(22,163,74,.28); }
.tag.y { background: rgba(245,158,11,.14); color: #b45309; border-color: rgba(245,158,11,.3); }
.mchk { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 4px 0; }
.mchk label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.mb-lock { max-width: 620px; margin: 0 auto; text-align: center; padding: 30px 24px; }
.mb-lock .ic { font-size: 42px; }
.mb-lock h3 { margin: 10px 0 6px; }
.mb-lock .mb-acts { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mb-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 8px; }
.mb-plan { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); text-align: left; cursor: pointer; }
.mb-plan:hover { border-color: var(--blue); }
.mb-plan.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.mb-plan b { display: block; font-size: 14.5px; }
.mb-plan .p { margin-top: 6px; font-size: 20px; font-weight: 800; color: var(--blue); }
.mb-plan .p em { font-style: normal; font-size: 12px; color: var(--sub); font-weight: 500; }
.mb-plan ul { margin: 8px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.8; color: var(--sub); }
.mb-status { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.mb-status .big { font-size: 20px; font-weight: 800; }
@media (max-width: 720px) { .mb-plans { grid-template-columns: 1fr 1fr; } }
[data-theme="dark"] .tag.g { color: #86efac; }
[data-theme="dark"] .tag.y { color: #fcd34d; }

/* ===== 老师端试卷上传（需求 36） ===== */
.pt-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-tb th { text-align: left; padding: 9px 10px; font-size: 12.3px; font-weight: 600; color: var(--muted, #64748b); border-bottom: 1px solid var(--line, #e2e8f0); white-space: nowrap; }
.pt-tb td { padding: 10px; border-bottom: 1px solid var(--line, #f1f5f9); vertical-align: top; }
.pt-tb tr:hover td { background: rgba(37, 99, 235, .04); }
.pt-tb a { color: var(--blue2, #2563eb); text-decoration: none; }
.pt-tb a:hover { text-decoration: underline; }
.pf-upbar { height: 6px; background: var(--line, #e2e8f0); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.pf-upbar > div { height: 100%; width: 0; background: var(--blue2, #2563eb); transition: width .15s; }
.tag.blue { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
[data-theme="dark"] .tag.blue { background: #16294a; color: #93c5fd; border-color: #1e3a5f; }
[data-theme="dark"] .pt-tb th { border-color: #2b3a52; }
[data-theme="dark"] .pt-tb td { border-color: #22304a; }

/* ================= 头像 & 我的资料（学生端 / 老师端共用） ================= */
.av-slot { display: inline-flex; flex: none; }
.av {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  overflow: hidden; background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff;
  font-size: 12.5px; font-weight: 700; line-height: 1; text-align: center; object-fit: cover;
}
img.av { object-fit: cover; display: inline-block; }
.av.sm { width: 24px; height: 24px; font-size: 14px; }
.av.lg { width: 34px; height: 34px; font-size: 18px; }
.av.md { width: 28px; height: 28px; font-size: 15px; }
.av.hero { width: 64px; height: 64px; font-size: 32px; border: 2px solid rgba(255, 255, 255, .66); }
.who-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--txt);
  font: inherit; box-shadow: var(--shadow);
}
.who-chip:hover { border-color: #93c5fd; }
.who-chip b { font-size: 12.5px; font-weight: 600; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-hero { display: flex; gap: 16px; align-items: flex-start; }
.stu-hero .hero-main { flex: 1; min-width: 0; }
.stu-hero .hero-av { flex: none; cursor: pointer; }
.stu-hero .hero-av:hover .av { transform: scale(1.04); }
.stu-hero .av.hero { transition: transform .15s; }
.hero-edit {
  font-size: 11px; font-weight: 400; opacity: .86; margin-left: 8px; vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 2px 9px; cursor: pointer;
}
.hero-edit:hover { background: rgba(255, 255, 255, .16); }

.me-hero { display: flex; gap: 18px; align-items: center; }
.me-av-big { flex: none; }
.me-av-big .av { width: 76px; height: 76px; font-size: 38px; border: 2px solid var(--line); box-shadow: var(--shadow); }
.me-hero-main { flex: 1; min-width: 0; }
.me-hero-main input { font-size: 15px; font-weight: 600; }
.me-hint { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.me-av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.me-av-opt {
  height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all .12s;
}
.me-av-opt:hover { border-color: #93c5fd; transform: translateY(-1px); }
.me-av-opt.on { border-color: var(--blue2, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); background: #eff6ff; }
.me-av-acts { display: flex; align-items: center; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.me-pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.me-pet-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 6px; cursor: pointer;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); transition: all .12s;
}
.me-pet-opt .e { font-size: 27px; line-height: 1; }
/* 宠物类型改成实拍缩略图（emoji 撑不起照片感） */
.me-pet-opt .pet-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; display: block;
  background: var(--tint1); box-shadow: inset 0 0 0 1px rgba(15, 35, 70, .06);
}
.me-pet-opt .pet-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.me-pet-opt:hover .pet-thumb img { transform: scale(1.07); }
.me-pet-opt .t { font-size: 12px; color: var(--sub); }
.me-pet-opt:hover { border-color: #93c5fd; transform: translateY(-1px); }
.me-pet-opt.on { border-color: var(--blue2, #2563eb); background: #eff6ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.me-pet-opt.on .t { color: var(--blue2, #2563eb); font-weight: 600; }
.me-save-bar {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 4px 0 0; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 8px 26px rgba(15, 23, 42, .12);
}
.me-preview { font-size: 13px; }
[data-theme="dark"] .me-av-opt.on { background: #16294a; }
[data-theme="dark"] .me-pet-opt.on { background: #16294a; }
@media (max-width: 720px) {
  .stu-hero { gap: 12px; }
  .stu-hero .av.hero { width: 52px; height: 52px; font-size: 26px; }
  .who-chip b { display: none; }
  .me-hero { gap: 12px; }
  .me-av-big .av { width: 62px; height: 62px; font-size: 30px; }
}
.stu-cell { display: flex; align-items: center; gap: 8px; }
.stu-cell > div { min-width: 0; }

/* ================= 班级座位图（学生端 / 老师端共用） =================
 * 讲台在最上面，学生按座位号排网格；亮 = 在线、半亮 = 暂离、暗 = 离线。 */
.seatmap { display: flex; flex-direction: column; gap: 13px; }
.seat-stage {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--line); background: var(--tint1); color: var(--txt); font-size: 13px;
  transition: all .18s;
}
.seat-stage .st-nm { font-weight: 600; }
.seat-stage .st-st { margin-left: auto; font-size: 12px; color: var(--sub); }
.seat-stage.on { border-style: solid; border-color: rgba(22, 163, 74, .5); background: linear-gradient(90deg, rgba(22, 163, 74, .1), var(--tint1)); }
.seat-stage.away { border-style: solid; border-color: rgba(217, 119, 6, .4); }
.seat-stage.off { opacity: .6; }
.seat-stage.me { box-shadow: 0 0 0 2px rgba(37, 99, 235, .28); }
.seat-stage.picked { outline: 2px solid var(--blue2); outline-offset: 2px; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.seat-stage.on .st-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .16); }
.seat-stage.away .st-dot { background: var(--amber); }
.seat-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; }
.seat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px 8px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--txt); font: inherit; cursor: pointer; transition: all .18s;
}
.seat .s-av { display: block; line-height: 0; }
.seat .s-nm { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .s-me { font-style: normal; font-size: 10px; margin-left: 3px; padding: 0 4px; border-radius: 999px; background: var(--blue2); color: #fff; }
.seat .s-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.seat:hover { transform: translateY(-2px); }
.seat.picked { outline: 2px solid var(--blue2); outline-offset: 2px; }
.seat.on {
  border-color: rgba(22, 163, 74, .5); background: linear-gradient(180deg, #fff, #f0fdf4);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .1), 0 6px 16px rgba(22, 163, 74, .12);
}
.seat.on .s-dot { background: var(--green); animation: seatPulse 2.4s infinite; }
.seat.away { border-color: rgba(217, 119, 6, .38); background: linear-gradient(180deg, var(--card), #fffbeb); }
.seat.away .s-dot { background: var(--amber); }
.seat.off { opacity: .4; filter: grayscale(.8); }
.seat.off .s-nm { color: var(--muted); }
@keyframes seatPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); } }
.seat-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--sub); }
.seat-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.seat-legend .lg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.seat-legend .lg-dot.on { background: var(--green); }
.seat-legend .lg-dot.away { background: var(--amber); }
.seat-legend .lg-sum { margin-left: auto; }
.seat-legend .lg-sum b { color: var(--green); }
.seat-empty { grid-column: 1 / -1; text-align: center; padding: 26px 10px; color: var(--sub); font-size: 13px; }
.seat-detail { border: 1px solid var(--line); border-radius: 14px; background: var(--tint1); padding: 12px 14px; font-size: 12.5px; }
.sd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.sd-head b { font-size: 14px; }
.sd-sub { font-size: 11.5px; color: var(--sub); }
.sd-line { color: var(--sub); line-height: 1.95; }
.sd-line b { color: var(--txt); }
.seat-sum { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seat-sum .kpi { flex: 1; min-width: 96px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--card); }
.seat-sum .kpi b { display: block; font-size: 19px; line-height: 1.3; }
.seat-sum .kpi span { font-size: 11.5px; color: var(--sub); }
.seat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.seat-tab {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--txt); font-size: 12.5px; cursor: pointer;
}
.seat-tab.on { background: var(--blue2); border-color: var(--blue2); color: #fff; }
.seat-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.seat-pick .sp2 {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 12.5px; color: var(--txt); cursor: pointer;
}
.seat-pick .sp2.on { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
@media (max-width: 720px) {
  .seat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seat-legend .lg-sum { margin-left: 0; width: 100%; }
}
[data-theme="dark"] .seat.on { background: linear-gradient(180deg, #16233f, #122a20); }
[data-theme="dark"] .seat.away { background: linear-gradient(180deg, #14203a, #2a2314); }

/* ============ 班级题库（学生端） / 题库中心（老师端） ============ */
.sb-teachers { display: flex; gap: 10px; flex-wrap: wrap; }
.sb-tea { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: .15s; }
.sb-tea:hover { border-color: var(--blue2); }
.sb-tea b { font-size: 13px; }
.sb-tea small { font-size: 11.5px; color: var(--sub); }
.sb-filters select, .sb-filters input { padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12.8px; }
.sb-filters input { width: 170px; }
.sb-item { border-radius: 12px; border: 1px solid transparent; transition: .15s; }
.sb-item.on { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }
.sb-check { display: inline-flex; align-items: center; cursor: pointer; }
.sb-check input { width: 16px; height: 16px; accent-color: var(--blue2); cursor: pointer; }
.sb-fig { border: 1px solid var(--line); border-radius: 8px; max-width: 100%; }
.sb-ans-in { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--soft, rgba(37,99,235,.05)); font-size: 13px; line-height: 1.75; }
.sb-ans-in > div { display: flex; gap: 8px; }
.sb-ans-in > div + div { margin-top: 6px; }
.sb-ans-in i { flex: none; font-style: normal; font-size: 11.5px; color: var(--sub); padding-top: 2px; }
.sb-bar { position: sticky; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 8px 26px rgba(15, 23, 42, .10); }
.sb-bar-n { font-size: 13px; color: var(--sub); }
.sb-bar-n b { font-size: 17px; color: var(--blue2); }
.sb-bar .sp { flex: 1; }
.sb-radio { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.sb-radio small { display: block; color: var(--sub); font-size: 11.5px; margin-top: 2px; }
.sb-q .q-stem { font-size: 14px; line-height: 1.8; }
.sb-input { width: 100%; margin-top: 10px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; }
.sb-score { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.sb-score b { font-size: 34px; color: var(--blue2); line-height: 1; }
.sb-score small { font-size: 13px; color: var(--sub); }
.sb-score span { margin-left: 8px; font-size: 13px; color: var(--txt); }
.sb-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.sb-cmp > div { padding: 9px 11px; border-radius: 9px; background: var(--soft, rgba(37,99,235,.05)); font-size: 13px; }
.sb-cmp i { display: block; font-style: normal; font-size: 11.5px; color: var(--sub); margin-bottom: 3px; }
.qb-tabn { margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(37, 99, 235, .12); color: var(--blue2); }
@media (max-width: 640px) {
  .sb-filters input { width: 100%; }
  .sb-cmp { grid-template-columns: 1fr; }
  .sb-bar { flex-wrap: wrap; }
}

/* ==================== 每周错题集（需求 58） ==================== */
.wk-hero h3 { margin: 0; }
.wk-tip { padding: 9px 12px; border-radius: 10px; background: rgba(37, 99, 235, .07); color: var(--txt); font-size: 13px; line-height: 1.7; }
.wk-set { border-left: 4px solid var(--line); }
.wk-set.blue { border-left-color: #3b82f6; }
.wk-set.green { border-left-color: #16a34a; }
.wk-set.amber { border-left-color: #f59e0b; }
.wk-set .card-h h3 { font-size: 15px; }
.wk-reason { margin-top: 6px; font-size: 12.8px; color: var(--sub); }
.wk-hist + .wk-hist { border-top: 1px dashed var(--line); }
.wk-head h3 { margin: 0; }
.wk-q .wk-seq { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: rgba(37, 99, 235, .10); color: var(--blue2); font-size: 13px; }
.wk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wk-opt { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13px; line-height: 1.6; transition: .12s; }
.wk-opt b { flex: none; color: var(--sub); }
.wk-opt:hover { border-color: var(--blue2); }
.wk-opt.on { border-color: var(--blue2); background: rgba(37, 99, 235, .08); }
.wk-result.ok { border-color: #86efac; background: rgba(22, 163, 74, .05); }
.wk-result.no { border-color: #fcd34d; background: rgba(245, 158, 11, .06); }
.wk-score { display: flex; align-items: baseline; gap: 3px; min-width: 84px; }
.wk-score b { font-size: 36px; line-height: 1; color: var(--blue2); font-variant-numeric: tabular-nums; }
.wk-result.ok .wk-score b { color: #16a34a; }
.wk-result.no .wk-score b { color: #d97706; }
.wk-score small { font-size: 12.5px; color: var(--sub); }
.wk-verdict { font-size: 14.5px; font-weight: 700; }
.wk-msg { font-size: 13.2px; line-height: 1.8; color: var(--txt); }
.wk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wk-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; background: rgba(148, 163, 184, .18); color: var(--sub); }
.wk-chip i { font-style: normal; font-weight: 700; }
.wk-chip.full { background: rgba(22, 163, 74, .14); color: #15803d; }
.wk-chip.half { background: rgba(245, 158, 11, .16); color: #b45309; }
.wk-chip.wrong { background: rgba(220, 38, 38, .12); color: #b91c1c; }
@media (max-width: 640px) {
  .wk-opts { grid-template-columns: 1fr; }
}
[data-theme="dark"] .wk-opt.on { background: rgba(96, 165, 250, .16); }
[data-theme="dark"] .wk-result.ok { background: rgba(22, 163, 74, .12); }
[data-theme="dark"] .wk-result.no { background: rgba(245, 158, 11, .12); }
[data-theme="dark"] .wk-chip.full { color: #86efac; }
[data-theme="dark"] .wk-chip.half { color: #fcd34d; }
[data-theme="dark"] .wk-chip.wrong { color: #fca5a5; }

/* ---------- 作答方式：打字 / 手写 / 拍照（需求 93） ----------
 * 工具条刻意做得比按钮轻：它挂在每题输入框下面，十道题就是十行，
 * 太抢眼会把题干挤没。*/
.wk-in-wrap { margin-top: 8px; }
.wk-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wk-tool {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  font-size: 12px; line-height: 1.8; cursor: pointer; transition: border-color .12s, color .12s, background .12s;
}
.wk-tool:hover { border-color: var(--blue3); color: var(--blue2); }
.wk-tool.on { background: var(--tint2); border-color: #bfdbfe; color: var(--blue1); font-weight: 700; }
.wk-tool:disabled { opacity: .55; cursor: default; }
.wk-src {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; background: rgba(37, 99, 235, .1); color: var(--blue2); white-space: nowrap;
}
.wk-src.low { background: rgba(245, 158, 11, .16); color: #b45309; }
.wk-thumb { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.wk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wk-warn { font-size: 11px; color: #b45309; }
.wk-tex {
  margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: var(--tint2);
  font-size: 12px; color: var(--sub); line-height: 1.9; overflow-x: auto;
}
.wk-src-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--sub); }

/* 手写板：白底黑字是给 OCR 用的，深色主题里也保持不变 */
.wp-head { display: flex; align-items: center; gap: 8px; }
.wp-head h3 { margin: 0; }
.wp-head .sp { flex: 1; }
.wp-stem { margin-top: 8px; padding: 8px 11px; border-radius: 9px; background: var(--tint2);
  font-size: 12.5px; color: var(--sub); line-height: 1.7; max-height: 76px; overflow: auto; }
.wp-wrap { position: relative; margin-top: 10px; height: 42vh; min-height: 200px; border-radius: 12px;
  border: 1px dashed var(--blue3); background: #fff; overflow: hidden; }
.wp-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.wp-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: 13px; color: #b6c2d6; }
.wp-hint.off { display: none; }
.wp-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wp-bar .sp { flex: 1; }

/* 整页识别确认：一题一行，勾掉不想填的 */
.wk-picks { max-height: 44vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.wk-pick { display: grid; grid-template-columns: 20px 72px 1fr; gap: 8px; align-items: start;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; cursor: pointer; }
.wk-pick b { color: var(--blue2); white-space: nowrap; }
.wk-pick span { color: var(--txt); line-height: 1.7; word-break: break-all; }
.wk-raw { max-height: 42vh; overflow: auto; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--tint2); font-size: 12.5px; line-height: 1.9; white-space: pre-wrap; }
[data-theme="dark"] .wk-tool.on { color: #93c5fd; }
[data-theme="dark"] .wk-src { color: #93c5fd; }
[data-theme="dark"] .wk-src.low { color: #fcd34d; }
[data-theme="dark"] .wk-warn { color: #fcd34d; }
[data-theme="dark"] .wp-wrap { background: #f7f9fc; }

/* ==================== 特色教辅（需求 59） ==================== */
.aid-head h3 { margin: 0; }
.aid-grp { margin: 14px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--sub); letter-spacing: .5px; }
.aid-grp:first-of-type { margin-top: 4px; }
.aid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.aid-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 13px 10px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--card); cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s; }
.aid-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, .12); border-color: var(--blue2); }
.aid-card.on { border-color: var(--blue2); background: rgba(37, 99, 235, .06); box-shadow: inset 0 0 0 1px var(--blue2); }
.aid-card .aid-ic { font-size: 20px; line-height: 1; }
.aid-card b { font-size: 14px; color: var(--txt); }
.aid-card .aid-desc { font-size: 12.2px; line-height: 1.55; color: var(--sub); min-height: 34px; }
.aid-card .aid-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.aid-card .aid-meta i { font-style: normal; }
.aid-prev .card-h h3 { font-size: 15px; }
.aid-reason { margin: 2px 0 10px; font-size: 12.5px; color: var(--sub); }
.aid-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.aid-acts a.btn { text-decoration: none; }
.aid-tea { color: #b45309 !important; }
/* 教辅资料纸面：编辑区直接按「印出来的样子」排 —— 白纸、宋体、五号、1.5 倍行距。
 * 深色主题下也不反色（和讲义纸面一个道理：这是要发下去印的稿子，不是屏幕阅读）。
 * 所以下面所有颜色都写死，不跟 var(--txt)/var(--sub) 走，否则深色主题里会白底白字。 */
.aid-body { margin-top: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: #1f2937;
  font-family: var(--doc-song); font-size: var(--doc-fs); line-height: var(--doc-lh); }
.aid-body .aid-sec { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; padding: 5px 10px;
  border-left: 4px solid #2e8b57; background: #f3f9f5; border-radius: 0 8px 8px 0;
  font-family: var(--doc-xing); font-size: var(--doc-fs-lg); font-weight: 700; color: #1f2937; }
.aid-body .aid-sec:first-child { margin-top: 0; }
.aid-body .aid-sec i { font-family: var(--doc-song); font-style: normal; font-weight: 400; font-size: var(--doc-fs-sm); color: #64748b; }
.aid-body .aid-q { padding: 10px 0; border-bottom: 1px dashed #e8eef4; }
.aid-body .aid-q:last-child { border-bottom: 0; }
.aid-body .aid-q-h { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: var(--doc-fs-sm); color: #64748b; }
.aid-body .aid-q-h b { color: #1f2937; font-size: var(--doc-fs); }
.aid-body .aid-stem { font-size: var(--doc-fs); line-height: var(--doc-lh); color: #1f2937; }
.aid-body .aid-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 2px 0 0 16px;
  font-size: var(--doc-fs); line-height: var(--doc-lh); }
.aid-body .aid-opts b { color: #475569; margin-right: 2px; }
.aid-body .aid-fig { display: block; max-width: 100%; margin: 7px 0 0 16px; border: 1px solid #e2e8f0; border-radius: 6px; }
.aid-body .aid-ans { margin: 7px 0 0 16px; padding: 7px 10px; border-radius: 8px; background: #f1f9f4;
  border: 1px solid #cde5d7; font-size: var(--doc-fs); line-height: var(--doc-lh); color: #14532d; }
.aid-body .aid-ans b { margin-right: 6px; color: #15803d; }
.aid-body .aid-exp { margin-top: 3px; color: #475569; font-size: var(--doc-fs); }
.aid-body .aid-q-none { color: #64748b; }
[data-theme="dark"] .aid-body { background: #fff; border-color: #dbe3ef; }
[data-theme="dark"] .aid-body .aid-sec { color: #1f2937; }
[data-theme="dark"] .aid-body .aid-stem, [data-theme="dark"] .aid-body .aid-opts,
[data-theme="dark"] .aid-body .aid-q-h b { color: #1f2937; }
[data-theme="dark"] .aid-body .aid-ans { color: #14532d; background: #f1f9f4; }
[data-theme="dark"] .aid-body .aid-ans b { color: #15803d; }
[data-theme="dark"] .aid-body .aid-exp { color: #475569; }
.aid-hint { border-left: 4px solid #f59e0b; }
.aid-hint b { font-size: 14px; }
.aid-tbl tr.on td { background: rgba(37, 99, 235, .05); }
@media (max-width: 640px) {
  .aid-grid { grid-template-columns: 1fr 1fr; }
  .aid-opts { grid-template-columns: 1fr; }
  .aid-head .inline { flex-wrap: wrap; }
}
[data-theme="dark"] .aid-card.on { background: rgba(96, 165, 250, .14); }
[data-theme="dark"] .aid-ans { background: rgba(22, 163, 74, .12); }
[data-theme="dark"] .aid-ans b { color: #86efac; }
[data-theme="dark"] .aid-tea { color: #fcd34d !important; }

/* ==================== 试卷讲评 · 课件工坊（需求 60） ==================== */
.dk-head h3 { margin: 0; }
.dk-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--tint1); border: 1px dashed var(--tint2); }
.dk-flow span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); }
.dk-flow span i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue2); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.dk-flow em { color: var(--muted); font-style: normal; }
.dk-status { margin-top: 10px; font-size: 12.5px; color: var(--sub); min-height: 20px; }
.dk-status b { color: var(--blue2); }
.dk-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 62vh; overflow: auto; padding-right: 4px; }
.dk-q { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.dk-q.miss { border-color: #fecaca; background: rgba(220, 38, 38, .035); }
.dk-qno { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--tint1); color: var(--blue2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.dk-qmain { flex: 1; min-width: 0; }
.dk-qhead { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.dk-qhead .dk-type { width: auto; padding: 3px 8px; font-size: 12px; border-radius: 8px; }
.dk-stem { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
  font-size: 13.2px; line-height: 1.7; background: var(--card); resize: vertical; }
.dk-opts { margin: 6px 0 0 2px; font-size: 12.6px; line-height: 1.7; color: var(--sub); }
.dk-oa { display: grid; grid-template-columns: 34px 1fr 34px 1.35fr; gap: 6px 8px; align-items: start; margin-top: 8px; }
.dk-oa label { font-size: 12px; color: var(--muted); padding-top: 7px; }
.dk-ans { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13px; background: var(--card); }
.dk-ans.need { border-color: #fecaca; background: rgba(220, 38, 38, .04); }
.dk-exp { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 12.6px;
  line-height: 1.65; background: var(--card); resize: vertical; }
.dk-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 12px; border-top: 1px dashed var(--line); }
.dk-done { border: 1px solid rgba(37, 99, 235, .28); }
.dk-frame { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0b1622; }
.dk-frame iframe { display: block; width: 100%; height: 460px; border: 0; }
.dk-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .dk-oa { grid-template-columns: 30px 1fr; }
  .dk-oa label:nth-of-type(2) { grid-column: 1; }
  .dk-exp { grid-column: 2; }
  .dk-frame iframe { height: 300px; }
}
[data-theme="dark"] .dk-q.miss { background: rgba(220, 38, 38, .12); border-color: #7f1d1d; }
[data-theme="dark"] .dk-qno { background: rgba(96, 165, 250, .16); color: #93c5fd; }
[data-theme="dark"] .dk-flow { background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .3); }

/* ===== Emma 批改（需求 61） ===== */
.em-mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.em-mat { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; background: var(--card); }
.em-mat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.em-mat-head label.link { cursor: pointer; }
.em-ta { width: 100%; margin-top: 6px; font-size: 12.6px; line-height: 1.6; resize: vertical; }
.em-mat-file { margin-top: 4px; min-height: 18px; }
.em-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.em-row { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; background: var(--card); }
.em-no { flex: 0 0 30px; height: 30px; border-radius: 9px; background: var(--tint1); color: var(--blue2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.em-main { flex: 1; min-width: 0; }
.em-qhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.em-stem { font-size: 13.2px; line-height: 1.7; }
.em-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 6px; font-size: 12.6px; color: var(--sub); }
.em-oa b { color: var(--blue2); margin-right: 4px; }
.em-ansline { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; }
.em-ansline label { flex: 0 0 62px; font-size: 12px; color: var(--muted); padding-top: 7px; }
.em-ta-s { flex: 1; font-size: 12.8px; line-height: 1.6; resize: vertical; }
.em-v { cursor: pointer; user-select: none; }
.em-deck .em-sum { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.em-sum-i { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
@media (max-width: 900px) { .em-mats { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .em-opts { grid-template-columns: 1fr; } }
[data-theme="dark"] .em-no { background: rgba(96, 165, 250, .16); color: #93c5fd; }

/* ==================================================================
   实时课堂 v2（需求 62）：视频宫格 / 互动面板 / 点名与红花动效
   ================================================================== */
.lv-card { position: relative; }
.lv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lv-title { font-size: 15px; }
.lv-bar .tag { cursor: default; }
#lv-code { cursor: pointer; }
.lv-main { display: grid; grid-template-columns: 1fr 336px; gap: 12px; align-items: start; margin-top: 10px; }
@media (max-width: 1180px) { .lv-main { grid-template-columns: 1fr; } }
.lv-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* 视频宫格 */
.lv-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lv-vcell {
  position: relative; border-radius: 12px; overflow: hidden; background: #0b1220;
  aspect-ratio: 16 / 10; border: 1px solid #1e293b; min-height: 96px;
}
.lv-vcell video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1220; }
.lv-vcell .lv-vph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: #94a3b8; font-size: 20px; background: radial-gradient(circle at 50% 35%, #1e293b, #0b1220);
}
.lv-vcell .lv-vph span { font-size: 11.5px; color: #cbd5e1; }
.lv-vcell .lv-vph.hide { display: none; }
.lv-vcell .lv-vname {
  position: absolute; left: 7px; bottom: 6px; right: 7px; color: #f1f5f9; font-size: 11.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-vcell .lv-vtag { position: absolute; left: 7px; top: 7px; font-size: 10.5px; color: #e2e8f0; background: rgba(15, 23, 42, .66); padding: 1px 6px; border-radius: 6px; }
.lv-vcell .lv-vbtns { position: absolute; right: 5px; top: 5px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.lv-vcell:hover .lv-vbtns { opacity: 1; }
.lv-vb { border: 0; background: rgba(15, 23, 42, .72); color: #e2e8f0; border-radius: 7px; font-size: 12px; padding: 3px 6px; cursor: pointer; }
.lv-vb:hover { background: rgba(37, 99, 235, .85); }
.lv-vb.on { background: #2563eb; color: #fff; }
.lv-vcell.self .lv-vbtns { opacity: 1; }
.lv-vcell.on { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .25); }
.lv-vcell.stage { border-color: #d97706; box-shadow: 0 0 0 2px rgba(217, 119, 6, .3); }
.lv-vcell.muted .lv-vname::after { content: ' 🔇'; }
.lv-vcell.onlymic { aspect-ratio: 16 / 6; }
.lv-vcell.teacher { border-color: #334155; }

/* 右栏 */
.lv-side { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.lv-tabs { display: flex; gap: 4px; background: var(--tint1); padding: 3px; border-radius: 10px; }
.lv-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--sub); font-size: 12.5px; padding: 6px 4px;
  border-radius: 8px; cursor: pointer; font-family: inherit;
}
.lv-tabs button.on { background: var(--card); color: var(--blue2); font-weight: 600; box-shadow: var(--shadow); }
.lv-tabs b { font-weight: 600; }
.lv-tabbody { display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.lv-stu { display: flex; flex-direction: column; gap: 5px; max-height: 430px; overflow: auto; }
.lv-stu-i { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); flex-wrap: wrap; }
.lv-stu-i.raise { border-color: #f59e0b; background: rgba(245, 158, 11, .06); }
.lv-stu-n { font-size: 12.8px; }
.lv-stu-acts { display: flex; gap: 3px; flex-wrap: wrap; }
.lv-chips { display: flex; gap: 3px; flex-wrap: wrap; }
.lv-chip {
  font-size: 10.5px; padding: 1px 6px; border-radius: 20px; background: var(--tint1);
  color: var(--sub); white-space: nowrap; line-height: 1.7;
}
.lv-chip.ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.lv-chip.warn { background: rgba(245, 158, 11, .14); color: #b45309; }
.lv-chip.bad { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.lv-chip.dye { background: rgba(217, 119, 6, .14); color: #b45309; }
.lv-chip.gray { background: var(--tint1); color: var(--muted); }
.lv-fl { font-size: 11.5px; color: #db2777; font-weight: 600; }
.lv-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 12.2px; line-height: 1.9; }
.lv-empty.sm { padding: 10px 6px; }

/* 互动三件套 */
.lv-tool { border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; background: var(--card); }
.lv-tool-h { display: flex; align-items: center; gap: 6px; font-size: 12.8px; font-weight: 600; margin-bottom: 7px; }
.lv-tool-row { gap: 6px; flex-wrap: wrap; }
.lv-tool-note { font-size: 11.5px; color: var(--muted); line-height: 1.75; margin-top: 6px; }
.lv-sel { padding: 5px 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-family: inherit; }
.lv-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 11.8px; color: var(--sub); }
.lv-rank { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lv-rank:last-child { border-bottom: 0; }
.lv-rank-n { width: 20px; text-align: center; font-size: 12px; color: var(--muted); }

/* 邀请清单 */
.lv-inv-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 8px; }
.lv-inv-i { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 12.8px; cursor: pointer; }
.lv-inv-i:hover { background: var(--tint1); }
.lv-inv-i b { font-weight: 600; }

/* 学生端 */
.lv-me { border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; background: var(--card); }
.lv-me-h { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.8px; margin-bottom: 3px; }
.lv-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-acts .btn.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.lv-fl-mine { font-size: 12px; color: #db2777; font-weight: 600; }
.lv-chat { max-height: 300px; overflow-y: auto; }
.lv-say input { flex: 1; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 12.8px; }
.lv-quick { display: flex; gap: 5px; flex-wrap: wrap; }

/* 动效 */
.lv-fx { position: fixed; inset: 0; z-index: 9998; background: rgba(15, 23, 42, .42); display: flex; align-items: center; justify-content: center; }
.lv-fx-card { background: var(--card); border-radius: 18px; padding: 22px 26px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); min-width: 260px; }
.lv-fx-ic { font-size: 34px; }
.lv-fx-t { font-size: 17px; margin: 8px 0 4px; }
.lv-fx-t b { color: var(--blue2); font-size: 20px; }
.lv-fx-s { font-size: 12px; color: var(--muted); }
.lv-fx-acts { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.lv-pop { animation: lvPop .34s cubic-bezier(.2, 1.4, .5, 1); }
@keyframes lvPop { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lv-petal-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 9997; overflow: hidden; }
.lv-petal { position: absolute; top: -30px; animation: lvFall 2.4s ease-in forwards; }
@keyframes lvFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(88vh) rotate(240deg); opacity: .85; }
}
.lv-petal-tip {
  position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%);
  background: rgba(219, 39, 119, .94); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(219, 39, 119, .35);
}
.lv-tips { position: absolute; left: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.lv-tip {
  background: rgba(15, 23, 42, .88); color: #e2e8f0; font-size: 11.8px; padding: 5px 10px;
  border-radius: 8px; animation: lvTipIn .2s ease-out; max-width: 420px;
}
.lv-tip.bad { background: rgba(185, 28, 28, .92); }
.lv-tip.out { opacity: 0; transition: opacity .4s; }
@keyframes lvTipIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 学生端邀请条 */
.lv-ibar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9990;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff;
  box-shadow: 0 16px 40px rgba(30, 58, 138, .35); max-width: min(92vw, 620px);
  animation: lvBarIn .28s ease-out;
}
@keyframes lvBarIn { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.lv-ibar-ic { font-size: 20px; }
.lv-ibar-t { font-size: 13px; line-height: 1.6; }
.lv-ibar-t span { display: block; font-size: 11.5px; opacity: .82; }
.lv-ibar .btn { background: #fff; color: #1e3a8a; border-color: #fff; }
.lv-ibar .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 640px) {
  .lv-ibar { flex-wrap: wrap; bottom: 12px; padding: 9px 11px; }
  .lv-videos { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .lv-acts .btn { flex: 1 1 46%; }
}

/* 暗色 */
[data-theme="dark"] .lv-vcell { border-color: #24303f; }
[data-theme="dark"] .lv-chip.ok { background: rgba(34, 197, 94, .16); color: #4ade80; }
[data-theme="dark"] .lv-chip.bad { background: rgba(248, 113, 113, .16); color: #fca5a5; }
[data-theme="dark"] .lv-chip.warn, [data-theme="dark"] .lv-chip.dye { background: rgba(251, 191, 36, .16); color: #fcd34d; }
[data-theme="dark"] .lv-fx { background: rgba(2, 6, 23, .62); }
[data-theme="dark"] .lv-tip { background: rgba(2, 6, 23, .92); }

/* ==================================================================
 * 作业「答案与讲题」：逐题设答案 + 挂已录好的讲题视频 + 分发
 * ------------------------------------------------------------------
 * 视觉参照「爱问云 · 录制答案」：白色面板、一题一条、左侧紫色视频缩略块、
 * 右侧标题 / 时长 / 删除；选视频是左文件夹 + 右列表（可切网格）的双栏弹层。
 * ================================================================== */
.hvw-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.hvw-head h3 { margin: 0; }
.hvw-sub { font-size: 12.3px; color: var(--sub); margin-top: 2px; }
.hvw-save { margin-left: auto; font-size: 11.5px; color: var(--green); background: #ecfdf5; border: 1px solid #bbf7d0; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.hvw-save.bad { color: var(--red); background: #fef2f2; border-color: #fecaca; }
.hvw-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 12px; background: var(--tint1); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.hvw-kpi { font-size: 12.3px; color: var(--sub); }
.hvw-kpi b { font-size: 15px; color: var(--blue1); margin-right: 3px; }
.hvw-list { max-height: 54vh; overflow: auto; padding: 2px 2px 4px; }
.hvw-row { display: grid; grid-template-columns: 52px 1fr; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 9px; }
.hvw-row.has-v { border-color: #ddd6fe; box-shadow: 0 3px 12px rgba(124, 58, 237, .06); }
.hvw-thumb { position: relative; width: 52px; height: 52px; border-radius: 11px; background: linear-gradient(135deg, #a78bfa, #7c3aed); display: flex; align-items: center; justify-content: center; color: #fff; }
.hvw-thumb i { font-style: normal; font-size: 18px; }
.hvw-thumb .hvw-doc { font-size: 20px; opacity: .9; }
.hvw-thumb b { position: absolute; right: -4px; top: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: #fff; color: var(--purple); font-size: 11px; line-height: 18px; text-align: center; border: 1px solid #ddd6fe; padding: 0 4px; }
.hvw-thumb b:empty { display: none; }
.hvw-main { min-width: 0; }
.hvw-t { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.hvw-no { font-size: 13.5px; }
.hvw-watch { font-size: 11.5px; color: var(--amber); background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 8px; }
.hvw-b { border: 1px solid transparent; background: none; color: var(--blue2); font-size: 12px; padding: 3px 7px; border-radius: 7px; }
.hvw-b:hover { background: var(--tint1); }
.hvw-b.danger { color: var(--red); }
.hvw-b.danger:hover { background: #fef2f2; }
.hvw-ans { font-size: 13px; color: var(--txt); line-height: 1.65; white-space: pre-wrap; }
.hvw-ans.empty { color: var(--muted); font-size: 12.3px; }
.hvw-edit textarea { width: 100%; min-height: 72px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--card); resize: vertical; }
.hvw-edit-f { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.hvw-edit-f input[type="number"] { width: 64px; border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; background: var(--card); }
.hvw-vids { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.hvw-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 8px; border: 1px solid #ddd6fe; background: #f5f3ff; border-radius: 9px; font-size: 12px; cursor: pointer; }
.hvw-chip i { font-style: normal; color: var(--purple); }
.hvw-chip b { font-weight: 500; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvw-chip em { font-style: normal; color: var(--sub); font-size: 11px; }
.hvw-chip u { text-decoration: none; color: var(--muted); padding: 0 2px; border-radius: 4px; }
.hvw-chip u:hover { color: var(--red); background: #fee2e2; }
.hvw-imgs { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.hvw-imgs img { width: 74px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.hvw-foot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hvw-empty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 12.8px; }
.hvw-cta { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: linear-gradient(135deg, #f5f3ff, #eff6ff); border: 1px solid #ddd6fe; }

/* 学生端：逐题讲题视频播放器 */
.hvw-watch-list { display: grid; gap: 10px; margin-top: 9px; }
.hvw-player { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #0f172a; }
.hvw-player video { display: block; width: 100%; max-height: 320px; background: #000; }
.hvw-player audio { display: block; width: 100%; padding: 10px; background: var(--card); }
.hvw-player-h { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: var(--card); color: var(--txt); font-size: 12.5px; }
.hvw-player-h b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvw-player-h span.tiny { margin-left: auto; }
.hvw-player-ic { color: var(--purple); }
.hvw-player-f { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--card); border-top: 1px solid var(--line); }
.hvw-seen { color: var(--green); }

/* 浮层（选择器 / 预览）——叠在 modal 之上，不打断下面的编辑面板 */
.hvov { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; }
.hvov-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); }
.hvov-box { position: relative; z-index: 1; animation: hvIn .18s ease-out; }
@keyframes hvIn { from { transform: translateY(10px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } }

.hvpick { width: min(940px, 94vw); height: min(620px, 86vh); display: grid; grid-template-columns: 214px 1fr; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(2, 6, 23, .4); }
.hvpick-l { background: #f8fafc; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.hvpick-lh { padding: 14px 16px 8px; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.hvpick-tree { overflow: auto; padding: 0 6px 10px; }
.hvp-fd { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; font-size: 12.8px; color: var(--txt); cursor: pointer; }
.hvp-fd:hover { background: #eef2f8; }
.hvp-fd.on { background: #e0e7ff; color: var(--blue1); font-weight: 600; }
.hvp-fd b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvp-fd em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.hvp-fd .hvp-arw { width: 12px; font-style: normal; color: var(--muted); text-align: center; }
.hvpick-r { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hvpick-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hvpick-h b { font-size: 15px; font-family: var(--kai); }
.hvpick-up { border: none; background: none; font-size: 19px; color: var(--sub); padding: 0 4px; }
.hvpick-up:hover { color: var(--blue2); }
.hvpick-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.hvpick-search { display: flex; align-items: center; gap: 6px; flex: 0 1 300px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12px; color: var(--muted); }
.hvpick-search input { border: none; outline: none; flex: 1; background: none; font-size: 12.5px; color: var(--txt); }
.hvpick-all { white-space: nowrap; }
.hvpick-v { border: 1px solid var(--line); background: var(--card); color: var(--sub); width: 28px; height: 26px; border-radius: 7px; line-height: 1; }
.hvpick-v.on { background: var(--tint1); color: var(--blue2); border-color: #bfdbfe; }
/* 用途筛选一排（需求 92）：横滑不换行，窄屏也能把七颗胶囊塞下 */
.hvpick-purs { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; background: #fbfcfe; }
.hvpick-chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); color: var(--sub);
  border-radius: 999px; padding: 3px 10px; font-size: 11.5px; line-height: 1.7; white-space: nowrap;
}
.hvpick-chip:hover { border-color: var(--blue3); color: var(--blue2); }
.hvpick-chip.on { background: var(--tint2); border-color: #bfdbfe; color: var(--blue1); font-weight: 700; }
[data-theme="dark"] .hvpick-purs { background: #101b31; }
[data-theme="dark"] .hvpick-chip.on { color: #93c5fd; }
.hvp-pur {
  font-size: 10.5px; font-weight: 400; padding: 0 6px; border-radius: 999px;
  background: var(--tint2); color: var(--blue2); white-space: nowrap;
}
.hvpick-body { flex: 1; overflow: auto; min-height: 0; padding: 4px 8px 8px; }
.hvp-row { display: grid; grid-template-columns: 22px 30px 1fr 58px 88px; align-items: center; gap: 9px; padding: 10px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.hvp-row:hover { background: #f8fafc; }
.hvp-row.on { background: #f5f3ff; }
.hvp-box { width: 16px; height: 16px; border-radius: 5px; border: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; background: var(--card); }
.hvp-row.on .hvp-box, .hvp-tile.on .hvp-chk { background: var(--blue2); border-color: var(--blue2); }
.hvp-ic { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.hvp-mid { min-width: 0; }
.hvp-mid b { display: block; font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvp-mid .tiny { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvp-row em { font-style: normal; font-size: 12px; color: var(--sub); text-align: right; }
.hvp-date { font-size: 11.5px; color: var(--muted); text-align: right; }
.hvpick-body.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; padding: 10px 12px; }
.hvp-tile { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: var(--card); cursor: pointer; }
.hvp-tile.on { border-color: #a78bfa; box-shadow: 0 3px 12px rgba(124, 58, 237, .12); }
.hvp-cover { position: relative; height: 76px; border-radius: 8px; background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 6px; }
.hvp-cover em { position: absolute; right: 6px; bottom: 5px; font-style: normal; font-size: 10.5px; background: rgba(15, 23, 42, .55); padding: 1px 5px; border-radius: 4px; }
.hvp-tile b { display: block; font-size: 12.3px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvp-chk { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 6px; border: 1px solid #cbd5e1; background: rgba(255, 255, 255, .9); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; font-style: normal; }
.hvp-empty { padding: 42px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.hvp-empty .tiny { display: block; margin-top: 6px; }
.hvpick-f { padding: 8px 14px; border-top: 1px solid var(--line); background: #fbfcfe; }

/* ---- 需求 119：讲题视频里的「视频链接」 ----
 * 链接课和上传视频放在同一个列表里，但必须一眼分得开：
 * 青色系 = 视频在别人服务器上，紫色系 = 在我们自己盘上。 */
.tag.teal { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.tiny.bad { color: var(--red); }
.hvw-chip.link { border-color: #99f6e4; background: #f0fdfa; }
.hvw-chip.link i { color: #0d9488; }
.hvw-host {
  font-size: 10.5px; color: #0f766e; background: #ccfbf1; border-radius: 999px;
  padding: 0 6px; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hvp-row.link .hvp-ic { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.hvp-row.link.on { background: #ecfeff; }
.hvp-linkb {
  font-size: 10.5px; font-weight: 400; padding: 0 6px; border-radius: 999px;
  background: #ccfbf1; color: #0f766e; white-space: nowrap;
}
.hvp-tile.link .hvp-cover { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
/* 贴链接面板：不用再跳去微课集登记一遍 */
.hvpick-add { white-space: nowrap; }
.hvpick-link { margin: 0 14px 8px; padding: 10px 12px; border: 1px solid #bae6fd; background: #f0f9ff; border-radius: 11px; }
.hvpl-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.hvpl-r { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.hvpl-r input { width: 100%; }
.hvpl-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
/* 网页型链接课：不能内嵌，只给「打开观看 + 复制链接」 */
.hvplay-ext { padding: 18px 16px; }
.hvplay-ext-h { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.hvplay-url { display: block; margin-top: 6px; font-size: 12px; color: var(--blue2); word-break: break-all; }
.hvplay-ext-b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* 学生端：链接课的「打开观看」卡 */
.hvw-player.is-ext { background: var(--card); }
.hvw-ext { display: flex; align-items: center; gap: 10px; padding: 14px 12px; flex-wrap: wrap; }
.hvw-ext a { text-decoration: none; }
@media (max-width: 760px) {
  .hvpl-r { grid-template-columns: 1fr; }
}
[data-theme="dark"] .hvpick-link { background: #0f2233; border-color: #1e4e63; }
[data-theme="dark"] .hvw-chip.link { background: rgba(13, 148, 136, .16); border-color: rgba(45, 212, 191, .35); }
[data-theme="dark"] .hvw-host, [data-theme="dark"] .hvp-linkb { background: rgba(13, 148, 136, .22); color: #5eead4; }
[data-theme="dark"] .tag.teal { background: rgba(13, 148, 136, .2); color: #5eead4; border-color: rgba(45, 212, 191, .35); }
[data-theme="dark"] .hvw-player.is-ext { background: #0f1b2e; }
[data-theme="dark"] .hvp-row.link.on { background: rgba(13, 148, 136, .14); }
[data-theme="dark"] .hvpick-f { background: #101b31; }

.hvplay { width: min(760px, 92vw); background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(2, 6, 23, .45); }
.hvplay-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hvplay-h span { margin-left: auto; font-size: 12px; color: var(--sub); }
.hvplay video { display: block; width: 100%; max-height: 66vh; background: #000; }
.hvplay audio { display: block; width: 100%; padding: 14px; }
.hvplay-f { display: flex; align-items: center; gap: 8px; padding: 8px 14px; }

@media (max-width: 760px) {
  .hvpick { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; height: min(680px, 92vh); }
  .hvpick-l { border-right: none; border-bottom: 1px solid var(--line); }
  .hvpick-tree { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; }
  .hvp-fd { white-space: nowrap; }
  .hvp-row { grid-template-columns: 22px 28px 1fr 52px; }
  .hvp-date { display: none; }
  .hvw-row { grid-template-columns: 40px 1fr; }
  .hvw-thumb { width: 40px; height: 40px; }
  .hvw-sum { gap: 8px 12px; }
}

[data-theme="dark"] .hvw-row, [data-theme="dark"] .hvpick, [data-theme="dark"] .hvplay { background: #14203a; }
[data-theme="dark"] .hvpick-l, [data-theme="dark"] .hvpick-bar, [data-theme="dark"] .hvpick-f { background: #101b31; }
[data-theme="dark"] .hvw-chip { background: rgba(124, 58, 237, .18); border-color: #3b2a63; }
[data-theme="dark"] .hvw-thumb b { background: #14203a; }
[data-theme="dark"] .hvp-row:hover { background: #17253f; }
[data-theme="dark"] .hvp-row.on, [data-theme="dark"] .hvp-tile.on { background: rgba(124, 58, 237, .16); }
[data-theme="dark"] .hvp-fd:hover { background: #17253f; }
[data-theme="dark"] .hvp-fd.on { background: rgba(59, 130, 246, .18); color: #bfdbfe; }
[data-theme="dark"] .hvw-save { background: rgba(22, 163, 74, .16); border-color: #14532d; color: #4ade80; }
[data-theme="dark"] .hvw-cta { background: linear-gradient(135deg, #1b1b3a, #16233f); border-color: #3b2a63; }
[data-theme="dark"] .hvw-watch { background: rgba(217, 119, 6, .16); border-color: #78350f; color: #fcd34d; }

/* ==================================================================
 * 微课文件夹 · 卡片视图（封面 + 徽标 + 两行标题 + 收藏星标 + 日期）
 * 版式对齐「课件库」的网格：一屏 5 列，鼠标移上去才冒出编辑 / 更多，
 * 静下来就是一张干净的封面墙。
 * ================================================================== */
.mf-head { padding: 12px 14px 10px; }
.mf-bar { display: flex; align-items: center; gap: 9px; }
.mf-back {
  width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--blue2); font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 2px;
}
.mf-back:hover { background: var(--tint1); border-color: #bfd3ff; }
.mf-name { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: .5px; }
.mf-search {
  width: 190px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); font-size: 13px; outline: none;
}
.mf-search:focus { border-color: #bfd3ff; background: var(--card); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
/* 用途筛选下拉（需求 92）：和搜索框同高，贴在一起用 */
.mf-pur {
  padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); font-size: 12.5px; color: var(--txt); outline: none; max-width: 150px;
}
.mf-pur:focus { border-color: #bfd3ff; background: var(--card); }
.mf-sub { margin-top: 7px; font-size: 12.5px; color: var(--sub); }
.mf-sub b { color: var(--blue2); font-weight: 700; }
.mf-head .crumb-nav { margin-top: 4px; }

.mcard-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 20px 18px; padding: 4px 2px 12px;
}
.mcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; cursor: pointer; transition: transform .16s, box-shadow .16s, border-color .16s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.mcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 58, 138, .1); border-color: #cfdcf7; }
.mcard.on { border-color: var(--blue2); box-shadow: 0 0 0 2px rgba(37, 99, 235, .18); }
.mcard.mhide { display: none !important; }
.mc-cover { position: relative; aspect-ratio: 1.95 / 1; background: #eef2f9; overflow: hidden; }
.mc-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* PDF：纸张拟物（白纸 + 斜向水印 + 几行灰度文字行），比纯色块更像一份讲义 */
.mc-paper { position: absolute; inset: 0; background: #fff; }
.mc-wm {
  position: absolute; inset: 0; display: grid; place-items: center; transform: rotate(-21deg);
  color: rgba(37, 99, 235, .16); font-size: 15px; font-weight: 700; letter-spacing: 3px; font-style: normal;
  white-space: nowrap;
}
.mc-rows { position: absolute; left: 13%; right: 13%; top: 17%; display: flex; flex-direction: column; gap: 6px; }
.mc-rows b { display: block; height: 4px; border-radius: 2px; background: #e3e9f3; }
.mc-rows b:nth-child(2n) { width: 68%; }
.mc-rows b:nth-child(3n) { width: 84%; }
.mc-rows b:nth-child(4n) { width: 52%; }
.mc-pic { position: absolute; right: 8px; bottom: 6px; font-size: 15px; opacity: .45; }

/* 视频没有封面时：深色播放面 + 播放键 + 时长 */
.mc-vph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(148, 178, 226, .12) 0 1px, transparent 1px 22px),
    linear-gradient(160deg, #fbfdff, #e9eff9);
}
.mc-play {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  color: var(--blue2); border: 1px solid #d6e3fb; box-shadow: 0 2px 8px rgba(30, 58, 138, .14);
  display: grid; place-items: center; font-size: 12px; padding-left: 2px;
}
.mc-audio {
  position: absolute; inset: 0; background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 12px;
}
.mc-audio i { width: 2px; height: 26%; border-radius: 2px; background: rgba(255, 255, 255, .72); }
.mc-audio i:nth-child(3n) { height: 44%; }
.mc-audio i:nth-child(4n) { height: 62%; }
.mc-audio i:nth-child(5n) { height: 18%; }

.mc-cover.folder { background: linear-gradient(135deg, #e3ebff, #f6f9ff); display: grid; place-items: center; }
.mc-fold { font-size: 40px; filter: drop-shadow(0 3px 6px rgba(30, 58, 138, .16)); }
.mc-badge {
  position: absolute; right: 7px; top: 7px; display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255, 255, 255, .94); color: var(--blue2);
  border: 1px solid #c7dafb; box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  font-size: 10.5px; line-height: 1.5; padding: 1px 6px; border-radius: 4px; letter-spacing: .2px;
  backdrop-filter: blur(2px);
}
.mc-badge svg {
  width: 9px; height: 9px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
}
.mc-dur {
  position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .92); color: #3d4a5c;
  font-size: 10.5px; line-height: 1.55; padding: 0 5px; border-radius: 3px; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}
.mc-new {
  position: absolute; left: 7px; top: 7px; background: #16a34a; color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 4px; letter-spacing: 1px;
}
.mc-ops {
  position: absolute; left: 6px; top: 6px; display: flex; gap: 4px;
  opacity: 0; transition: opacity .15s;
}
.mcard:hover .mc-ops { opacity: 1; }
.mc-op {
  width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(15, 23, 42, .6);
  color: #fff; font-size: 13px; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.mc-op:hover { background: var(--blue2); }
.mc-chk { position: absolute; right: 7px; bottom: 6px; background: var(--card); border-radius: 4px; padding: 1px 5px; display: grid; place-items: center; }
.mc-chk input { width: 14px; height: 14px; accent-color: var(--blue2); cursor: pointer; }

.mc-t {
  padding: 9px 10px 4px; font-size: 13px; line-height: 1.55; color: var(--txt);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 3.1em;
}
.mc-t b { color: var(--blue2); font-weight: 600; margin-right: 3px; }
.mc-f { display: flex; align-items: center; gap: 5px; padding: 0 10px 10px; color: var(--muted); font-size: 11.5px; }
.mf-more {
  grid-column: 1 / -1; justify-self: center; margin: 6px 0 2px; padding: 6px 18px;
  border: 1px dashed var(--line); background: transparent; color: var(--sub); border-radius: 16px;
  font-size: 12.5px; cursor: pointer;
}
.mf-more:hover { border-color: var(--blue2); color: var(--blue2); background: var(--tint1); }
.mc-star { border: 0; background: transparent; color: #cbd5e1; font-size: 14px; line-height: 1; cursor: pointer; padding: 0 1px; }
.mc-star:hover { color: #f59e0b; }
.mc-star.on { color: #f59e0b; }
.mc-date { margin-left: auto; }
/* 用途分类小标签：卡片底部，比日期醒目、比封面徽标低调 */
.mc-pur {
  font-size: 11px; line-height: 1.6; padding: 1px 6px; border-radius: 999px;
  background: var(--tint2); color: var(--blue2); border: 1px solid transparent; white-space: nowrap;
}
[data-theme="dark"] .mc-pur { color: #93c5fd; }
/* 机构公共资源标签（需求 95）：不是自己的东西不装成自己的，明确标出来 */
.mc-pub {
  font-size: 11px; line-height: 1.6; padding: 1px 6px; border-radius: 999px;
  background: var(--tint1); color: var(--sub); border: 1px solid var(--line); white-space: nowrap;
}
.mc-menu-tip { font-size: 11.5px; color: var(--sub); padding: 4px 9px 2px; line-height: 1.5; }

/* 「我的微课」固定区（需求 95）：每个老师自己的家底，别人看不到 */
.mym { border-left: 3px solid var(--blue); }
.mym-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mym-k { background: var(--tint1); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.mym-k b { display: block; font-size: 17px; line-height: 1.35; color: var(--blue2); }
.mym-k span { font-size: 11.5px; color: var(--sub); }
.mym-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mym-acts .tiny { color: var(--sub); font-size: 11.5px; }
@media (max-width: 720px) {
  .mym-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 卡片「⋯」菜单 */
.mc-menu {
  position: fixed; z-index: 90; width: 188px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 23, 42, .2); padding: 5px;
  display: flex; flex-direction: column;
}
.mc-menu button, .mc-menu a {
  text-align: left; border: 0; background: transparent; color: var(--txt); font-size: 13px;
  padding: 7px 9px; border-radius: 7px; cursor: pointer; text-decoration: none;
}
.mc-menu button:hover, .mc-menu a:hover { background: var(--tint1); }
.mc-menu .danger { color: var(--red); }
.mc-menu .danger:hover { background: #fee2e2; }

/* 多选批量条 */
.mf-batch {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 70;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .22); padding: 9px 14px;
  display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.mf-batch b { color: var(--blue2); }

/* 编辑弹窗 */
.mfe { display: flex; gap: 14px; align-items: flex-start; }
.mfe-cover {
  position: relative; width: 232px; flex: none; aspect-ratio: 16 / 10; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line); background: #eef2f9;
}
.mfe-cover .mc-badge, .mfe-cover .mc-dur, .mfe-cover .mc-new, .mfe-cover .mc-ops { display: none; }
.mfe-side { flex: 1; min-width: 0; }
.mfe-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mfe-new { display: flex; gap: 10px; flex-wrap: wrap; }

/* 统计弹窗 */
.mstat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mstat-k { background: var(--tint1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mstat-k b { display: block; font-size: 18px; color: var(--blue2); line-height: 1.3; }
.mstat-k span { font-size: 11.5px; color: var(--sub); }
.mstat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; font-size: 12.5px; }
.mstat-row b { display: block; margin-bottom: 4px; color: var(--sub); font-weight: 600; }
.mstat-li { display: inline-block; background: var(--tint1); border-radius: 999px; padding: 2px 9px; margin: 4px 6px 0 0; }
.mstat-li i { font-style: normal; color: var(--blue2); font-weight: 700; margin-left: 3px; }

[data-theme="dark"] .mc-cover { background: #16233c; }
[data-theme="dark"] .mc-paper { background: #1b2740; }
[data-theme="dark"] .mc-wm { color: rgba(125, 211, 252, .18); }
[data-theme="dark"] .mc-rows b { background: #2c3d5c; }
[data-theme="dark"] .mc-cover.folder { background: linear-gradient(135deg, #1b2c4d, #16233c); }
[data-theme="dark"] .mc-badge { background: rgba(22, 35, 60, .92); border-color: #2f4a75; color: #93c5fd; }
[data-theme="dark"] .mc-dur { background: rgba(22, 35, 60, .9); color: #cbd5e1; }
[data-theme="dark"] .mc-menu .danger:hover { background: #43212b; }

@media (max-width: 900px) {
  .mcard-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
  .mfe { flex-direction: column; }
  .mfe-cover { width: 100%; }
  .mstat { grid-template-columns: repeat(2, 1fr); }
  .mstat-row { grid-template-columns: 1fr; }
  .mf-search { width: 120px; }
}

/* ==================================================================
 * 一键分享给微信家长（分享弹窗 / 二维码 / 微信卡片预览）
 * 版式对照爱问云：标题-描述-有效期-解锁方式 四行 + 「分享到」四个圆入口
 * ================================================================== */
.shb { padding: 0; }
.shb-hd { position: relative; text-align: center; padding: 15px 0 10px; border-bottom: 1px solid var(--line); }
.shb-hd h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: .5px; }
.shb-x {
  position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer;
}
.shb-x:hover { background: var(--tint1); color: var(--txt); }
.shb-bd { padding: 12px 20px 16px; }
.shb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.shb-row > label { flex: none; width: 70px; text-align: right; font-size: 13px; color: var(--sub); }
.shb-row input, .shb-row select {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--txt);
  outline: none; transition: border-color .14s, box-shadow .14s;
}
.shb-row input:focus, .shb-row select:focus { border-color: #9dbcf5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.shb-radios { display: flex; gap: 18px; font-size: 13px; color: var(--sub); }
.shb-radios label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.shb-radios input { width: 14px; height: 14px; accent-color: var(--blue2); }
.shb-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 4px 0 12px; }
.shb-to-hd { position: relative; text-align: center; font-size: 12.5px; color: var(--sub); margin: 4px 0 12px; }
.shb-to-hd::before, .shb-to-hd::after {
  content: ''; position: absolute; top: 50%; width: 28%; height: 1px; background: var(--line);
}
.shb-to-hd::before { left: 0; } .shb-to-hd::after { right: 0; }
.shb-ways { display: flex; justify-content: center; gap: 40px; }
.shb-way {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--sub); font-size: 12px; cursor: pointer;
}
.shb-way b { font-weight: 500; }
.shb-way .shb-ic {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; transition: transform .14s, box-shadow .14s; box-shadow: 0 3px 10px rgba(15, 23, 42, .13);
}
.shb-way .shb-ic svg { width: 23px; height: 23px; fill: currentColor; }
.shb-way:hover .shb-ic { transform: translateY(-2px) scale(1.05); }
.shb-way:disabled .shb-ic { filter: grayscale(.4); opacity: .7; }
.shb-way.student .shb-ic { background: linear-gradient(160deg, #6aa9ff, #2f7bf6); }
.shb-way.qq .shb-ic { background: linear-gradient(160deg, #55d2ff, #12a8f0); }
.shb-way.qzone .shb-ic { background: linear-gradient(160deg, #ffd166, #f0aa00); }
.shb-way.wechat .shb-ic { background: linear-gradient(160deg, #8b9dff, #4f6bf5); }
.shb-out:not(:empty) { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.shb-tip { text-align: center; font-size: 12.5px; color: var(--green); margin-bottom: 10px; }
.shb-tip.gray { color: var(--muted); }
.shb-res { display: flex; gap: 14px; align-items: flex-start; }
.shb-qrbox { flex: none; text-align: center; }
.shb-qr { width: 128px; height: 128px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.shb-qr-t { font-size: 11px; color: var(--muted); margin-top: 4px; }
.shb-right { flex: 1; min-width: 0; }
.shb-link { display: flex; gap: 8px; margin-top: 8px; }
.shb-link input {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; font-size: 11.5px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--tint1); color: var(--sub);
}
.shb-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.shb-meta i { font-style: normal; color: #d6dde8; }
.shb-meta b { color: var(--sub); }
.shb-revoke { margin-left: auto; border: 0; background: none; color: #b91c1c; font-size: 11.5px; cursor: pointer; }
.shb-batch { max-height: 44vh; overflow: auto; }
.shb-brow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.shb-bt { flex: 1; min-width: 0; font-size: 12.5px; color: var(--txt); }
.shb-bu { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shb-bacts { padding-top: 12px; text-align: right; }

/* 微信里那条消息的预览：头像 + 白卡（标题 / 描述 / 缩略图 / 「爱问云」品牌行） */
.wxwrap { background: #ededed; border-radius: 8px; padding: 9px 9px 10px; }
.wxfrom { font-size: 10.5px; color: #9aa0a6; text-align: right; margin-bottom: 6px; }
.wxline { display: flex; justify-content: flex-end; gap: 8px; align-items: flex-start; }
.wxava {
  order: 2; flex: none; width: 26px; height: 26px; border-radius: 5px;
  background: #c8d6ea; color: #fff; font-size: 12px; display: grid; place-items: center;
}
.wxcard {
  order: 1; width: 214px; background: #fff; border-radius: 6px; padding: 9px 10px 0;
  position: relative; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.wxcard-main { min-height: 58px; padding-right: 40px; }
.wxcard-t {
  font-size: 12.5px; line-height: 1.45; color: #1a1a1a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wxcard-d { margin-top: 4px; font-size: 10.5px; color: #9b9b9b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxcard-thumb {
  position: absolute; right: 10px; top: 34px; width: 32px; height: 32px; border-radius: 4px;
  overflow: hidden; background: #eef2f9; display: grid; place-items: center;
}
.wxcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wx-th { font-size: 17px; }
.wxcard-brand {
  display: flex; align-items: center; gap: 4px; margin: 10px -10px 0; padding: 5px 10px;
  border-top: 1px solid #f2f2f2; font-size: 10px; color: #9b9b9b;
}
.wxcard-brand i { font-style: normal; }

[data-theme="dark"] .shb-link input { background: #101c33; }
[data-theme="dark"] .wxwrap { background: #0e1728; }
[data-theme="dark"] .wxcard { background: #1a2740; }
[data-theme="dark"] .wxcard-t { color: #e6edf9; }
[data-theme="dark"] .wxcard-brand { border-top-color: #22314f; }
@media (max-width: 560px) {
  .shb-ways { gap: 22px; }
  .shb-res { flex-direction: column; align-items: center; }
  .shb-right { width: 100%; }
}

/* ---------- 朗读自动评测（需求 71）：逐词标记 ---------- */
.rw-line { line-height: 2.1; }
.rw {
  display: inline-block; margin: 2px 4px 2px 0; padding: 1px 7px; border-radius: 7px;
  font-size: 13px; border: 1px solid transparent;
}
.rw.ok   { background: #e8f7ee; color: #15803d; border-color: #bfe8cf; }
.rw.mis  { background: #fff4e0; color: #b45309; border-color: #f5d9a8; }
.rw.miss { background: #fdecec; color: #b91c1c; border-color: #f3c4c4; text-decoration: line-through; }
[data-theme="dark"] .rw.ok   { background: #12301e; color: #7ee2a0; border-color: #1d4a2e; }
[data-theme="dark"] .rw.mis  { background: #372a12; color: #f3c078; border-color: #5a4419; }
[data-theme="dark"] .rw.miss { background: #3a1616; color: #f19a9a; border-color: #5c2323; }

/* ---------- 宠物弹窗（需求 72）：浮球 + 语音气泡 + 行为动作 ---------- */
.pp-ball {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid rgba(120, 160, 255, .45);
  background: var(--card, #fff); box-shadow: 0 6px 22px rgba(40, 70, 160, .22);
  cursor: pointer; display: grid; place-items: center;
  animation: pp-float 3.2s ease-in-out infinite;
}
.pp-ball .pp-ava { font-size: 30px; line-height: 1; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.pp-ball .pp-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes pp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.pp-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 11px; padding: 2px 9px; border-radius: 999px;
  background: #ff8fab; color: #fff; box-shadow: 0 2px 8px rgba(255, 100, 140, .4);
}
.pp-badge[data-mood="hungry"], .pp-badge[data-mood="glut"] { background: #ff9f43; }
.pp-badge[data-mood="pout"] { background: #a78bfa; }
.pp-badge[data-mood="flat"] { background: #94a3b8; }

.pp-pop { position: fixed; right: 20px; bottom: 96px; z-index: 91; width: min(330px, 86vw); }
.pp-card {
  background: var(--card, #fff); border-radius: 16px;
  box-shadow: 0 14px 44px rgba(30, 50, 120, .28);
  padding: 14px 14px 12px; position: relative;
  border: 1px solid rgba(120, 160, 255, .25);
  animation: pp-pop-in .28s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pp-pop-in { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
.pp-card .pp-ava { display: block; font-size: 56px; line-height: 1.15; text-align: center; margin: 2px 0 8px; }
.pp-card .pp-ava img {
  width: 86px; height: 86px; object-fit: cover; border-radius: 50%; display: inline-block; vertical-align: middle;
  box-shadow: 0 8px 22px rgba(20, 40, 90, .20), 0 0 0 3px #fff, 0 0 0 4.5px rgba(120, 160, 255, .28);
}
.pp-x {
  position: absolute; top: 8px; right: 10px; border: 0; background: none;
  font-size: 14px; cursor: pointer; color: var(--muted, #889); padding: 4px;
}
.pp-bub {
  position: relative; background: var(--soft, #f2f6ff); border-radius: 12px;
  padding: 9px 12px; margin-bottom: 9px;
}
.pp-tail {
  position: absolute; top: -6px; left: 50%; margin-left: -6px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 7px solid var(--soft, #f2f6ff);
}
.pp-bub-in { display: block; font-size: 13.5px; line-height: 1.65; color: var(--ink, #333); }
.pp-face { display: block; font-size: 15px; margin-bottom: 3px; }
.pp-txt { display: block; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pp-chip {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  background: #ffe3ec; color: #c2416b;
}
.pp-chip.act { background: #e0ecff; color: #3b6fd4; }
.pp-chip.who { background: var(--soft, #eef2f8); color: var(--muted, #667); }
.pp-btns { display: flex; gap: 8px; }

/* ---- 行为动作（宠物大表情的动画） ---- */
.pp-act-happy { animation: pp-hop .7s ease-in-out infinite; }
@keyframes pp-hop { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-10px) scale(1.06, .94); } }

.pp-act-cute { animation: pp-cute 1.6s ease-in-out infinite; position: relative; }
.pp-act-cute::after { content: '✨'; position: absolute; top: -4px; right: 18%; font-size: 18px; }
@keyframes pp-cute { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.04); } 75% { transform: rotate(7deg) scale(1.04); } }

.pp-act-crouch { animation: pp-crouch 2s ease-in-out infinite; position: relative; }
.pp-act-crouch::before { content: '🤲'; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 20px; }
@keyframes pp-crouch { 0%, 100% { transform: translateY(6px) scale(1.08, .72); } 50% { transform: translateY(9px) scale(1.12, .62); } }

.pp-act-pout { animation: pp-pout 1.1s ease-in-out infinite; position: relative; }
.pp-act-pout::after { content: '💢'; position: absolute; top: -2px; left: 16%; font-size: 15px; }
@keyframes pp-pout { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px) scale(1.05, .96); } 75% { transform: translateX(4px) scale(1.05, .96); } }

.pp-act-glut { animation: pp-glut .55s ease-in-out infinite; position: relative; }
.pp-act-glut::after { content: '🍗'; position: absolute; top: 2px; right: 12%; font-size: 20px; }
@keyframes pp-glut { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.1, .85); } }

.pp-act-hungry { animation: pp-hungry 2.4s ease-in-out infinite; position: relative; }
.pp-act-hungry::after { content: '💫'; position: absolute; top: -6px; right: 14%; font-size: 16px; }
@keyframes pp-hungry { 0%, 100% { transform: rotate(-14deg) translateY(4px); } 50% { transform: rotate(14deg) translateY(4px); } }

.pp-act-flat { animation: pp-flat 3s ease-in-out infinite; position: relative; }
.pp-act-flat::after { content: '💤'; position: absolute; top: -8px; right: 12%; font-size: 16px; }
@keyframes pp-flat { 0%, 100% { transform: rotate(90deg) translateY(-4px); } 50% { transform: rotate(90deg) translateY(-1px); } }

.pp-act-peek { animation: pp-peek 2.2s ease-in-out infinite; }
@keyframes pp-peek { 0%, 70%, 100% { transform: translateY(0) scale(1); } 80% { transform: translateY(-8px) scale(1.05); } }

[data-theme="dark"] .pp-bub { background: var(--soft, #223); }
[data-theme="dark"] .pp-chip.who { background: #2a3245; color: #9aa7c4; }

/* ==================================================================
 * 笔记美化（需求 79 · 老师端）
 * 手写照片 → OCR → DeepSeek 结构化 LaTeX → 单页美化笔记
 * ================================================================== */
.nt-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nt-cfg { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--sub); }
.nt-cfg.on { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.nt-cfg.on.demo { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.nt-cfg.off { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.nt-engine-hint { font-size: 12.5px; color: var(--sub); background: var(--tint1); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }

.nt-list { display: grid; gap: 10px; }
.nt-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: .16s;
}
.nt-card:hover { transform: translateY(-1px); border-color: var(--blue4); }
.nt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--tint1); flex: none; }
.nt-card-b { flex: 1; min-width: 0; }
.nt-card-t { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-card-m { font-size: 12px; color: var(--sub); margin-top: 2px; }
.nt-card-a { display: flex; gap: 6px; flex: none; }
.nt-st { font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 500; }
.nt-st-pending { background: #f1f5f9; color: #475569; }
.nt-st-running { background: #eff6ff; color: #1d4ed8; }
.nt-st-done { background: #ecfdf5; color: #047857; }
.nt-st-error { background: #fef2f2; color: #b91c1c; }

.nt-form { display: grid; gap: 12px; }
.nt-up { border: 1.6px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; background: var(--tint1); transition: .16s; }
.nt-up.drag, .nt-up:hover { border-color: var(--blue3); background: var(--tint2); }
.nt-up-hint { color: var(--sub); font-size: 13px; }
.nt-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.nt-thumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.nt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-thumb-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(15, 23, 42, .62); color: #fff; font-size: 11px; display: grid; place-items: center; }
.nt-row { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 10px; }
.nt-tip { line-height: 1.7; }

.nt-back { margin-bottom: 10px; }
.nt-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.nt-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 10px; }

.nt-loading { text-align: center; padding: 34px 20px; }
.nt-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--tint2); border-top-color: var(--blue2); margin: 0 auto 14px; animation: nt-spin .9s linear infinite; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
.nt-load-t { font-weight: 600; margin-bottom: 4px; }
.nt-steps { display: flex; gap: 8px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.nt-steps span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--tint1); color: var(--sub); }
.nt-steps span.on { background: #eff6ff; color: #1d4ed8; }
.nt-load-img { margin-top: 14px; }
.nt-load-img img { max-width: 240px; border-radius: 10px; border: 1px solid var(--line); }

.nt-err { text-align: center; padding: 30px 20px; }
.nt-err-t { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

/* 单页美化笔记 */
.nt-page { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.nt-head { padding: 18px 22px; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; }
.nt-head-l { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nt-head .nt-ic { background: rgba(255, 255, 255, .18); }
.nt-title { font-family: var(--kai); font-size: 19px; letter-spacing: .5px; }
.nt-meta { font-size: 12px; opacity: .85; }
.nt-badge { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.nt-summary { margin: 16px 22px 0; padding: 10px 14px; border-radius: 12px; background: var(--tint1); color: var(--txt); font-size: 13px; }
.nt-body { padding: 16px 22px 6px; display: grid; gap: 12px; }
.nt-b { border: 1px solid var(--line); border-left: 3px solid var(--blue3); border-radius: 12px; padding: 10px 14px; background: var(--card); }
.nt-b-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; }
.nt-b-ic { font-size: 14px; }
.nt-b-tag { background: var(--tint1); color: var(--blue1); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.nt-b-tt { font-size: 13px; }
.nt-b-c { font-size: 14px; line-height: 1.85; overflow-x: auto; }
.nt-fig { margin-top: 8px; }
.nt-foot { padding: 12px 22px 18px; font-size: 11.5px; color: var(--muted); }
.nt-raw { font-family: ui-monospace, Menlo, monospace; background: var(--tint1); border-radius: 4px; padding: 1px 4px; }

.nt-b-definition { border-left-color: #2563eb; }
.nt-b-theorem { border-left-color: #7c3aed; }
.nt-b-formula { border-left-color: #0891b2; }
.nt-b-example { border-left-color: #d97706; }
.nt-b-tip { border-left-color: #16a34a; }
.nt-b-figure { border-left-color: #db2777; }

.nt-srcbox { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.nt-src-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--tint1); font-size: 13px; }
.nt-src-pre, .nt-ocr pre { margin: 0; padding: 14px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; color: var(--txt); }
.nt-ocr { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.nt-ocr summary { cursor: pointer; padding: 10px 14px; font-size: 12.5px; color: var(--sub); }

[data-theme="dark"] .nt-cfg.on { background: #0f2a22; border-color: #14532d; color: #6ee7b7; }
[data-theme="dark"] .nt-cfg.on.demo { background: #2a2113; border-color: #78350f; color: #fcd34d; }
[data-theme="dark"] .nt-cfg.off { background: #2a1518; border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .nt-st-pending { background: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .nt-st-running { background: #172554; color: #93c5fd; }
[data-theme="dark"] .nt-st-done { background: #0f2a22; color: #6ee7b7; }
[data-theme="dark"] .nt-st-error { background: #2a1518; color: #fca5a5; }
[data-theme="dark"] .nt-warn { background: #2a2113; border-color: #78350f; color: #fcd34d; }
[data-theme="dark"] .nt-thumb { background: #0c1526; }
[data-theme="dark"] .nt-steps span.on { background: #172554; color: #93c5fd; }

/* ==================================================================
 * 英语教研工具（需求 80 · 英语老师端子平台）
 * 每日计划 / 打卡记录 / 单词速练 / 听说读写专训 / 智能备课 / 教研 / 素材库
 * 与其它页面同一套卡片语言，只补英语专有的课本条、周条、词表、文档排版
 * ================================================================== */
.eg-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.eg-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); }
.eg-sel > span { white-space: nowrap; }
.eg-sel select { border: 1px solid var(--line); background: var(--card); color: var(--txt);
  border-radius: 9px; padding: 5px 8px; font-size: 12.5px; outline: none; max-width: 220px; }
.eg-sel select:focus { border-color: var(--blue3); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.eg-bar-info { margin-left: auto; font-size: 12px; color: var(--muted); }

.eg-card { border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.eg-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.eg-card-h b { font-size: 14.5px; }
.eg-sub { font-size: 12px; color: var(--sub); }
.eg-empty { padding: 26px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.eg-tip { margin: 10px 2px 0; font-size: 12px; color: var(--sub); line-height: 1.8;
  background: var(--tint1); border: 1px dashed var(--tint2); border-radius: 10px; padding: 9px 12px; }

/* 周条 */
.eg-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 12px; }
.eg-day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 6px;
  text-align: center; cursor: pointer; transition: .15s; }
.eg-day b { display: block; font-size: 12.5px; }
.eg-day span { display: block; font-size: 11px; color: var(--muted); }
.eg-day i { display: block; font-style: normal; font-size: 12px; color: var(--sub); margin-top: 3px; }
.eg-day:hover { border-color: var(--blue4); }
.eg-day.on { background: var(--tint1); border-color: var(--blue3); }
.eg-day.on b, .eg-day.on i { color: var(--blue2); }
.eg-day.full i { color: var(--green); font-weight: 700; }

/* KPI 卡 */
.eg-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.eg-kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow); }
.eg-kpi > span { display: block; font-size: 12px; color: var(--sub); }
.eg-kpi > b { display: block; font-size: 25px; line-height: 1.25; font-family: var(--kai); }
.eg-kpi > b small { font-size: 12px; color: var(--sub); margin-left: 3px; font-family: inherit; }
.eg-kpi > b.ok { color: var(--green); }
.eg-kpi > b.warn { color: var(--amber); }
.eg-kpi > i { position: absolute; right: 12px; top: 12px; font-style: normal; opacity: .5; }

/* 每日计划 */
.eg-plan { display: flex; flex-direction: column; gap: 8px; }
.eg-plan-i { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.eg-plan-i.done { background: var(--tint1); }
.eg-plan-i.done .eg-plan-m b { text-decoration: line-through; color: var(--muted); }
.eg-plan-m { flex: 1; min-width: 0; }
.eg-plan-m b { font-size: 13.5px; margin-left: 6px; }
.eg-chk { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line);
  background: var(--card); color: #fff; font-size: 13px; line-height: 1; flex: none; }
.eg-plan-i.done .eg-chk { background: var(--green); border-color: var(--green); }
.eg-tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px;
  background: var(--tint1); color: var(--blue2); border: 1px solid var(--tint2); }
.eg-tag.local { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.eg-tag.t-单词背诵 { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.eg-tag.t-听力练习 { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.eg-tag.t-阅读任务 { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.eg-tag.t-书面作业 { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.eg-tag.t-口语打卡 { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }

/* 芯片 */
.eg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.eg-chip { border: 1px solid var(--line); background: var(--card); color: var(--sub);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; }
.eg-chip.on { background: var(--blue2); border-color: var(--blue2); color: #fff; }

/* 表格 */
.eg-tblwrap { overflow-x: auto; }
.eg-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.eg-tbl th, .eg-tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.eg-tbl th { font-size: 12px; color: var(--sub); font-weight: 600; background: var(--tint1); white-space: nowrap; }
.eg-tbl tbody tr:hover { background: var(--bg2); }
.eg-tbl td b { font-size: 13.5px; }
.eg-bad { color: var(--red); font-weight: 700; }
.eg-st { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }
.eg-st.ok { background: #dcfce7; color: #15803d; }
.eg-st.bad { background: #fee2e2; color: #b91c1c; }
.eg-st.none { background: var(--bg2); color: var(--muted); }

/* 词表 */
.eg-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 8px; }
.eg-word { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 9px; background: var(--card); }
.eg-word b { font-size: 13.5px; }
.eg-word span { display: block; font-size: 11.5px; color: var(--sub); }
.eg-w-no { width: 20px; height: 20px; border-radius: 6px; background: var(--tint1); color: var(--blue2);
  font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.eg-mini { margin-left: auto; border: 1px solid var(--line); background: var(--card);
  border-radius: 7px; padding: 2px 6px; font-size: 12px; line-height: 1.4; }
.eg-mini:hover { border-color: var(--blue4); }
.eg-sent { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.eg-sent:last-child { border-bottom: 0; }
.eg-gramline { font-size: 13px; color: var(--txt); background: var(--tint1); border-radius: 9px; padding: 8px 11px; margin: 6px 0; }
.eg-gramline.big { font-size: 15px; font-family: var(--kai); }
.eg-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.eg-genline { font-size: 12.5px; color: var(--sub); margin-bottom: 10px; line-height: 1.7; }

/* 两块并排（智能备课） */
.eg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eg-pick { display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: .15s; }
.eg-pick:hover { border-color: var(--blue4); transform: translateY(-1px); }
.eg-pick-ic { font-size: 22px; }
.eg-pick b { font-size: 15px; }
.eg-pick span { font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.eg-pick .btn { align-self: flex-start; margin-top: 4px; }
.eg-params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eg-params > div { background: var(--tint1); border-radius: 10px; padding: 8px 11px; }
.eg-params span { display: block; font-size: 11.5px; color: var(--sub); }
.eg-params b { font-size: 13px; }

/* 历史记录 */
.eg-hist { display: flex; flex-direction: column; }
.eg-hist-i { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.eg-hist-i:last-child { border-bottom: 0; }
.eg-hist-i > div { flex: 1; min-width: 0; }
.eg-hist-i b { font-size: 13.5px; }
.eg-hist-i .eg-sub { display: block; }

/* 语法库 / 写作模板折叠 */
.eg-gl { display: flex; flex-direction: column; gap: 6px; }
.eg-gl-i { border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; background: var(--card); }
.eg-gl-i summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.eg-gl-i summary b { font-size: 13.5px; }
.eg-gl-i summary span { font-size: 12.5px; color: var(--sub); }
.eg-gl-i[open] summary { margin-bottom: 6px; }
.eg-gl-tip { font-size: 12.5px; color: var(--amber); background: #fffbeb; border-radius: 8px; padding: 7px 10px; }
.eg-frame { font-size: 12.5px; color: var(--txt); background: var(--tint1); border-radius: 8px;
  padding: 9px 11px; white-space: pre-wrap; line-height: 1.9; margin-bottom: 8px; }
.eg-pron { display: flex; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.eg-pron:last-child { border-bottom: 0; }
.eg-pron b { flex: none; width: 76px; color: var(--blue2); }
.eg-pron span { color: var(--sub); line-height: 1.75; }

/* 教研任务网格 */
.eg-res-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.eg-task { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.eg-task .btn { align-self: flex-start; margin-top: 6px; }

/* 素材库 */
.eg-search { border: 1px solid var(--line); background: var(--card); color: var(--txt);
  border-radius: 9px; padding: 6px 11px; font-size: 12.5px; outline: none; width: 190px; }
.eg-search:focus { border-color: var(--blue3); }
.eg-res-list { display: flex; flex-direction: column; gap: 10px; }
.eg-res-i { margin-bottom: 0; }
.eg-res-b { font-size: 13px; color: var(--txt); white-space: pre-wrap; line-height: 1.85;
  background: var(--bg2); border-radius: 10px; padding: 10px 12px; max-height: 190px; overflow: auto; }

/* 生成结果（Markdown） */
.eg-doc { max-height: 62vh; overflow: auto; font-size: 13.5px; line-height: 1.85; padding-right: 4px; }
.eg-doc .eg-h2 { font-size: 17px; margin: 12px 0 8px; }
.eg-doc .eg-h3 { font-size: 15px; margin: 12px 0 6px; }
.eg-doc .eg-h4 { font-size: 13.5px; margin: 10px 0 4px; }
.eg-doc p { margin: 6px 0; }
.eg-doc ul, .eg-doc ol { margin: 6px 0 6px 20px; }
.eg-doc li { margin: 3px 0; }
.eg-doc code { background: var(--tint1); border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }
.eg-doc hr { border: 0; border-top: 1px dashed var(--line); margin: 10px 0; }
.eg-ta { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; line-height: 1.8; background: var(--card); color: var(--txt); outline: none; resize: vertical; }

/* 课堂过词 */
.eg-drill-word { text-align: center; font-size: 34px; font-family: var(--kai); margin: 22px 0 8px; letter-spacing: 1px; }
.eg-drill-cn { text-align: center; font-size: 14px; color: var(--sub); margin-bottom: 8px; }

@media (max-width: 980px) {
  .eg-kpis { grid-template-columns: repeat(2, 1fr); }
  .eg-two { grid-template-columns: 1fr; }
  .eg-params { grid-template-columns: 1fr 1fr; }
  .eg-week { grid-template-columns: repeat(4, 1fr); }
}

/* 暗色 */
[data-theme="dark"] .eg-day.on { background: #172554; border-color: #1d4ed8; }
[data-theme="dark"] .eg-kpi > b.ok { color: #4ade80; }
[data-theme="dark"] .eg-st.ok { background: #0f2a22; color: #6ee7b7; }
[data-theme="dark"] .eg-st.bad { background: #2a1518; color: #fca5a5; }
[data-theme="dark"] .eg-st.none { background: #1e293b; color: #94a3b8; }
[data-theme="dark"] .eg-tag.local { background: #2a2113; color: #fcd34d; border-color: #78350f; }
[data-theme="dark"] .eg-gl-tip { background: #2a2113; color: #fcd34d; }
[data-theme="dark"] .eg-frame, [data-theme="dark"] .eg-gramline { background: #16233f; }
[data-theme="dark"] .eg-res-b { background: #101c33; }
[data-theme="dark"] .eg-tip { background: #16233f; border-color: #1b2c4d; }


/* ==================================================================
 * 班级与分班（需求 81 · 所有科目子平台共用）
 * 额度水位条 / 班级表 / 左右分栏分班 / 建号结果
 * ================================================================== */
.og-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.og-meter { background: var(--tint1); border: 1px solid var(--tint2); border-radius: 12px; padding: 10px 12px; }
.og-mt { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.og-mt span { font-size: 12px; color: var(--sub); }
.og-mt b { margin-left: auto; font-size: 17px; font-family: var(--kai); }
.og-mt b.bad { color: var(--red); }
.og-bar { height: 7px; border-radius: 5px; background: var(--card); overflow: hidden; border: 1px solid var(--tint2); }
.og-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #7dd3fc, #2563eb); border-radius: 5px; transition: width .3s; }
.og-bar.warn > i { background: linear-gradient(90deg, #fcd34d, #d97706); }
.og-bar.bad > i { background: linear-gradient(90deg, #fca5a5, #dc2626); }
.og-note { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.og-tip { margin-top: 10px; font-size: 12px; color: var(--sub); line-height: 1.8;
  background: var(--tint1); border: 1px dashed var(--tint2); border-radius: 10px; padding: 8px 11px; }

.og-tbl td.og-idx { color: var(--muted); font-size: 12px; }
.og-tbl tr.og-on { background: var(--tint1); }
.og-tbl tr.og-on td:first-child { box-shadow: inset 3px 0 0 var(--blue3); }
.og-sel { border: 1px solid var(--line); background: var(--card); color: var(--txt);
  border-radius: 9px; padding: 6px 9px; font-size: 12.5px; outline: none; }
.og-search { border: 1px solid var(--line); background: var(--card); color: var(--txt);
  border-radius: 9px; padding: 6px 10px; font-size: 12.5px; outline: none; width: 160px; }

.og-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.og-col { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.og-col-h { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: var(--tint1);
  border-bottom: 1px solid var(--line); font-size: 13px; }
.og-list { max-height: 320px; overflow: auto; padding: 6px; }
.og-pick { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 8px; border-radius: 9px; }
.og-pick:hover { background: var(--bg2); }
.og-pick-l { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; cursor: pointer; padding: 2px 0; }
.og-pick-l input { flex: none; }
.og-pick-l > span { min-width: 0; }
.og-pick b { display: block; font-size: 13.5px; }
.og-pick i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.og-edit { flex: none; border: 0; background: transparent; cursor: pointer; font-size: 12px; line-height: 1; padding: 5px 6px; border-radius: 7px; opacity: .5; color: inherit; }
.og-edit:hover { background: #eef2f8; opacity: 1; }
.og-empty { padding: 24px 10px; text-align: center; font-size: 13px; color: var(--sub); line-height: 2; }

@media (max-width: 980px) {
  .og-meters { grid-template-columns: 1fr; }
  .og-two { grid-template-columns: 1fr; }
}

[data-theme="dark"] .og-meter { background: #16233f; border-color: #1b2c4d; }
[data-theme="dark"] .og-bar { background: #0f1a30; border-color: #1b2c4d; }
[data-theme="dark"] .og-tip { background: #16233f; border-color: #1b2c4d; }
[data-theme="dark"] .og-col-h { background: #16233f; }
[data-theme="dark"] .og-pick:hover { background: #16233f; }
[data-theme="dark"] .og-edit:hover { background: #1b2c4d; }

/* ===== Emma 作业收集 · 学生档案（需求 82） ===== */
.ec-box { margin-bottom: 14px; }
.ec-drop {
  margin-top: 12px; border: 1.5px dashed #c7d7f0; border-radius: 13px; background: linear-gradient(180deg, #f8fbff, #f2f7ff);
  padding: 14px; transition: border-color .15s, background .15s;
}
.ec-drop.hot { border-color: var(--blue2); background: #eaf2ff; }
.ec-drop-in { display: flex; align-items: center; gap: 12px; }
.ec-drop-ico { font-size: 26px; line-height: 1; }
.ec-drop-txt { display: flex; flex-direction: column; gap: 2px; }
.ec-drop-txt b { font-size: 13.5px; }
.ec-drop-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ec-opts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ec-asr { display: inline-flex; gap: 6px; }
.ec-stage { margin-top: 10px; font-size: 12.8px; min-height: 18px; }
.ec-stage:empty { display: none; }

.ec-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ec-row { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.ec-row.done { border-left: 3px solid var(--green); }
.ec-pick { padding-top: 3px; }
.ec-main { flex: 1; min-width: 0; }
.ec-hd { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ec-hd .ec-file { font-size: 12.8px; color: var(--sub); font-weight: 500; overflow: hidden; text-overflow: ellipsis; max-width: 320px; white-space: nowrap; }
.ec-ta { width: 100%; margin-top: 7px; font-size: 12.8px; line-height: 1.7; resize: vertical; }
.ec-raw { margin-top: 4px; }
.ec-raw summary { cursor: pointer; color: var(--blue2); }
.ec-err { margin-top: 5px; color: var(--red); }
.ec-ft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); }
.ec-ft .ec-stu-sel { max-width: 190px; font-size: 12.5px; padding: 3px 6px; }
.ec-ft .warn { color: var(--amber); }
.ec-empty { padding: 16px 4px; }
.ec-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ec-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12.8px; color: var(--sub); }

.ec-dlg { background: var(--card); border-radius: 14px; padding: 18px; width: min(560px, 92vw); box-shadow: var(--shadow); }
.ec-dlg .dlg-hd { margin-bottom: 10px; font-size: 15px; }
.ec-dlg textarea { width: 100%; resize: vertical; font-size: 13px; line-height: 1.7; }
.ec-dlg .dlg-ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.ec-prof { margin-top: 14px; }
.ec-prof-hd { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 10px; }
.ec-prof-name { display: flex; flex-direction: column; gap: 2px; }
.ec-prof-name b { font-family: var(--kai); font-size: 18px; }
.ec-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-kpi { min-width: 88px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; background: var(--card); }
.ec-kpi b { display: block; font-size: 17px; line-height: 1.25; }
.ec-kpi span { font-size: 11.5px; color: var(--muted); }
.ec-delta { font-size: 12px; font-style: normal; margin-left: 3px; }
.ec-delta.up { color: var(--red); }      /* 涨分用红：符合国内成绩单习惯 */
.ec-delta.down { color: var(--green); }
.ec-trendwrap { margin-top: 14px; }
.ec-trend {
  display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 6px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}
.ec-bar-i { flex: 1 1 0; min-width: 8px; max-width: 42px; border-radius: 4px 4px 0 0; background: var(--blue3); }
.ec-bar-i.good { background: #34c38f; }
.ec-bar-i.mid { background: #f0b64a; }
.ec-bar-i.low { background: #e26d63; }
.ec-tags { margin-top: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ec-pend { margin-top: 10px; padding: 7px 10px; border-radius: 9px; background: #fff8e8; border: 1px solid #fde6b8; color: #92580c; }

@media (max-width: 760px) {
  .ec-kpis { width: 100%; }
  .ec-kpi { flex: 1 1 40%; }
  .ec-ft .ec-stu-sel { max-width: 140px; }
}
[data-theme="dark"] .ec-drop { background: linear-gradient(180deg, #16233f, #14203a); border-color: #2a3d61; }
[data-theme="dark"] .ec-drop.hot { background: #1b2c4d; border-color: var(--blue3); }
[data-theme="dark"] .ec-trend { background: linear-gradient(180deg, #16233f, #121e35); }
[data-theme="dark"] .ec-pend { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .34); color: #f0c274; }

/* 学生已交作业 → 导入收集箱（需求 82 补充） */
.ec-badge {
  display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-style: normal; line-height: 16px; text-align: center;
}
.ec-sub-list {
  margin-top: 12px; max-height: 46vh; overflow: auto; border: 1px solid var(--line);
  border-radius: 11px; background: var(--card);
}
.ec-sub-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.ec-sub-row:last-child { border-bottom: none; }
.ec-sub-row:hover { background: var(--tint1); }
.ec-sub-row.done { opacity: .62; cursor: default; }
.ec-sub-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.ec-sub-main b { font-size: 13px; }
.ec-sub-main .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
[data-theme="dark"] .ec-sub-row:hover { background: #1b2c4d; }

/* ==================================================================
 * 组卷预览 · A4 纸面（需求 85）
 * ------------------------------------------------------------------
 * 纸面本身永远白底黑字：这里要的是「印出来是什么样」，
 * 深色主题下也不反色，否则字色与纸色对不上。
 * ================================================================== */
.cz-pv { display: flex; flex-direction: column; gap: 10px; }
.cz-pv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cz-pv-bar select { height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); }
.cz-pv-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--tint1); border: 1px solid var(--line); }
.cz-pv-tabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.25;
  border: 0; background: transparent; color: var(--sub); font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: 9px; transition: all .16s;
}
.cz-pv-tabs button i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); }
.cz-pv-tabs button:hover { color: var(--blue2); }
.cz-pv-tabs button.on { background: var(--card); color: var(--blue1); box-shadow: 0 2px 9px rgba(30, 58, 138, .14); }
.cz-pv-tabs button.on i { color: var(--blue2); }
[data-theme="dark"] .cz-pv-tabs button.on { color: #bfdbfe; }
.cz-pv-sheet {
  background: #eef2f7; border: 1px solid var(--line); border-radius: 13px;
  padding: 16px; max-height: 56vh; overflow: auto;
}
.cz-pv-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cz-pv-foot a.btn { text-decoration: none; }
.cz-pv-tip { max-width: 420px; line-height: 1.5; }

/* 需求204：AI 红笔手写旁批。行书红字、略带倾角，像老师写在题边；
 * 不用图片生成模型，字体是随应用带的 kg-xing.ttf。 */
.cp-pen {
  margin: 3px 0 2px 22px; padding-left: 6px;
  font-family: "KG Doc Xingkai", var(--doc-xing, "Kaiti SC"), serif;
  font-size: 13.5px; line-height: 1.55; color: #dc2626;
  transform: rotate(-1deg); transform-origin: left center;
  text-shadow: 0 .3px 0 rgba(220, 38, 38, .22);
  overflow-wrap: anywhere;
}
[data-theme="dark"] .cp-pen { color: #f87171; }

.cz-paper {
  width: 720px; max-width: 100%; margin: 0 auto; background: #fff; color: #1f2937;
  padding: 30px 38px 22px; border-radius: 3px; box-shadow: 0 6px 22px rgba(15, 23, 42, .16);
  font-family: var(--doc-song);
  font-size: var(--doc-fs); line-height: var(--doc-lh);
}
.cz-paper .cp-org { display: flex; justify-content: space-between; gap: 12px; font-size: var(--doc-fs-sm); color: #94a3b8; letter-spacing: 1px; }
/* 卷头大标题用行楷（和讲义标题同一族），正文回到宋体 */
.cz-paper .cp-title { font-family: var(--doc-xing); font-size: 18pt; line-height: 1.45; font-weight: 700; color: #111827; text-align: center; letter-spacing: 1px; margin: 14px 0 4px; }
.cz-paper .cp-meta { text-align: center; font-size: var(--doc-fs-sm); color: #6b7280; }
.cz-paper .cp-rule { border-top: 1.6px solid #1e3a8a; margin: 11px 0 0; }
.cz-paper .cp-rule.i { border-top: .6px solid #1e3a8a; margin: 2px 0 12px; }
.cz-paper .cp-info { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: var(--doc-fs); color: #374151; margin-bottom: 4px; }
.cz-paper .cp-info span { display: inline-flex; align-items: flex-end; gap: 4px; }
.cz-paper .cp-info i { display: inline-block; width: 62px; border-bottom: 1px solid #9ca3af; height: 1.1em; }
.cz-paper .cp-note { border: 1px solid #dbe3ef; background: #fbfcfe; border-radius: 6px; padding: 7px 12px; font-size: var(--doc-fs-sm); line-height: var(--doc-lh); color: #6b7280; margin: 12px 0 4px; }
.cz-paper .cp-body { margin-top: 6px; }
.cz-paper .cp-sec { font-family: var(--doc-xing); font-weight: 700; font-size: var(--doc-fs-lg); color: #111827; margin: 16px 0 6px; line-height: var(--doc-lh); }
.cz-paper .cp-sec i { font-family: var(--doc-song); font-style: normal; font-weight: 400; font-size: var(--doc-fs-sm); color: #6b7280; margin-left: 6px; }
.cz-paper .cp-q { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 2px; margin-bottom: 9px; }
.cz-paper .cp-q-no { font-weight: 700; color: #111827; }
.cz-paper .cp-q-bd { min-width: 0; }
.cz-paper .cp-stem { white-space: pre-wrap; word-break: break-word; }
.cz-paper .cp-stem img { display: block; max-width: 78%; max-height: 190px; margin: 6px 0; border-radius: 3px; }.cz-paper .cp-sc { color: #6b7280; font-size: var(--doc-fs-sm); margin-left: 2px; }
.cz-paper .cp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 1px; }
.cz-paper .cp-opts.one { grid-template-columns: 1fr; }
.cz-paper .cp-opts span { display: block; min-width: 0; word-break: break-word; }
.cz-paper .cp-opts b { font-weight: 700; color: #1f2937; }
.cz-paper img.cp-fig { display: block; max-width: 100%; max-height: 200px; margin: 7px 0; border-radius: 3px; }
/* 需求 161：卷面照片按老师调的大小显示 —— 只给 width、height 自动，
 * 不能被旧的 max-height 压扁；宽度上限仍受题面列宽约束（超出自动收窄，与 PDF 正文宽一致）。 */
.cz-paper .cp-stem img,
.cz-paper img.cp-fig { max-height: none; height: auto; }
.cz-paper .cp-imgsize { margin: 5px 0 2px; }
.cz-paper .cp-imgbtn { font: inherit; font-size: 11.5px; color: #1d4ed8; background: #eef6ff; border: 1px solid #cfe3fb; border-radius: 7px; padding: 3px 8px; cursor: pointer; }
.cz-paper .cp-imgbtn:hover { background: #e0edff; }
.cz-paper .cp-imgbtn.on { background: #e0edff; border-color: #93c5fd; font-weight: 600; }
.cz-paper .cp-imgpanel { margin: 6px 0 2px; padding: 7px 9px; border: 1px solid #e4ebf5; border-radius: 8px; background: #fbfdff; }
.cz-paper .cp-irow { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.cz-paper .cp-irow:last-of-type { margin-bottom: 0; }
.cz-paper .cp-ith { flex: 0 0 auto; max-width: 44px; max-height: 34px; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid #eef2f8; }
.cz-paper .cp-irow > span { flex: 0 0 46px; font-size: 11px; color: #64748b; }
.cz-paper .cp-irow input[type=range] { flex: 1 1 auto; min-width: 60px; margin: 0; accent-color: #2563eb; }
.cz-paper .cp-irow b { flex: 0 0 40px; text-align: right; font-size: 11px; color: #1d4ed8; }
.cz-paper .cp-irst { flex: 0 0 auto; font: inherit; font-size: 10.5px; color: #64748b; background: #fff; border: 1px solid #dbe4f0; border-radius: 6px; padding: 2px 6px; cursor: pointer; }
.cz-paper .cp-irst:hover { border-color: #93c5fd; color: #1d4ed8; }
.cz-paper .cp-itip { margin-top: 5px; font-size: 10.5px; color: #94a3b8; }
.cz-paper .cp-lines { margin: 5px 0 2px; }
.cz-paper .cp-lines i { display: block; height: 1.5em; border-bottom: 1px solid #d7dee9; }
.cz-paper .cp-none { color: #6b7280; padding: 10px 0; }
.cz-paper .cp-ansbook { margin-top: 22px; border-top: 1px dashed #cbd5e1; padding-top: 12px; }
.cz-paper .cp-ansbook h2 { font-family: var(--doc-xing); font-size: var(--doc-fs-lg); font-weight: 700; color: #111827; text-align: center; letter-spacing: 1px; margin: 0 0 10px; }
.cz-paper .cp-ab { margin-bottom: 9px; }
.cz-paper .cp-ab-a { font-size: var(--doc-fs); color: #14532d; }
.cz-paper .cp-ab-a b { color: #15803d; }
.cz-paper .cp-ab-e { font-size: var(--doc-fs-sm); line-height: var(--doc-lh); color: #4b5563; padding-left: 2px; }
.cz-paper .cp-foot { display: flex; justify-content: space-between; gap: 10px; font-size: var(--doc-fs-sm); color: #94a3b8; border-top: 1px solid #e2e8f0; margin-top: 18px; padding-top: 8px; }
.cz-paper .cp-opts img { display: inline-block; max-width: 100%; max-height: 110px; vertical-align: middle; border-radius: 3px; }
.cz-paper .cp-opts.one span { display: block; }
.cz-paper .cp-opts.one span b { margin-right: 2px; }

/* ---------- 需求 86：教辅里题目的增删改与移动位置 ---------- */
.aid-tip { margin: -2px 0 10px; padding: 7px 11px; border-radius: 8px; font-size: 12.3px;
  color: #7c5a12; background: rgba(245, 158, 11, .1); border-left: 3px solid #f59e0b; }
.aid-sec { align-items: center; }
.aid-sec .aid-sec-t { font-weight: 700; }
.aid-sec-acts { display: flex; gap: 4px; align-items: center; }
.aid-sec-acts .btn, .aid-q-acts .btn { font-weight: 400; }
.aid-sec .btn.xs, .aid-q-acts .btn.xs { padding: 1px 7px; height: 22px; line-height: 20px; font-size: 12px; }
.aid-q { position: relative; }
.aid-q:hover { background: rgba(37, 99, 235, .022); }
.aid-q-acts { display: flex; gap: 3px; align-items: center; opacity: .42; transition: opacity .15s; }
.aid-q:hover .aid-q-acts, .aid-q-acts:focus-within { opacity: 1; }
.aid-q-acts .btn.danger { color: #dc2626; border-color: rgba(220, 38, 38, .28); }
.aid-q-acts .btn.danger:hover { background: rgba(220, 38, 38, .08); }
.aid-q-none { padding: 12px 14px; margin: 4px 0 10px; border: 1px dashed var(--line); border-radius: 8px;
  font-size: 12.6px; color: var(--sub); text-align: center; }
.aid-tabs { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; flex-wrap: wrap; }
.aid-tabs select { min-width: 150px; }
.aid-tabs .btn.on { background: var(--blue2); color: #fff; border-color: var(--blue2); }
.aid-pick { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.aid-pick-r { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border-radius: 8px;
  font-size: 12.8px; line-height: 1.6; cursor: pointer; }
.aid-pick-r:hover { background: rgba(37, 99, 235, .05); }
.aid-pick-r input { margin-top: 3px; flex: 0 0 auto; }
.aid-pick-s { flex: 1; min-width: 0; color: var(--txt); }
/* 已经在本文里的题：一眼看出来，也不给再勾（避免同一道题塞两遍） */
.aid-pick-r.used { opacity: .5; cursor: default; }
.aid-pick-r.used:hover { background: none; }
.aid-mvlist { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.aid-mv-r { display: flex; gap: 9px; align-items: center; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13px; cursor: pointer; }
.aid-mv-r:hover { border-color: var(--blue2); background: rgba(37, 99, 235, .045); }
.aid-mv-r.off { opacity: .55; cursor: default; }
#adt-own.hide, #adt-bank.hide { display: none; }
[data-theme="dark"] .aid-tip { color: #f6c76a; background: rgba(245, 158, 11, .16); }
[data-theme="dark"] .aid-q:hover { background: rgba(96, 165, 250, .06); }
[data-theme="dark"] .aid-pick-r:hover, [data-theme="dark"] .aid-mv-r:hover { background: rgba(96, 165, 250, .1); }
@media (max-width: 720px) {
  .aid-q-acts { opacity: 1; flex-wrap: wrap; }
  .aid-sec-acts .btn.xs:nth-child(3) { display: none; }
}

/* ---------- 需求 88：教辅水印开关（带 / 不带，随时切） ---------- */
.aid-wm { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 12.6px; line-height: 1;
  color: var(--sub); background: var(--bg, #fff); cursor: pointer; user-select: none; }
.aid-wm input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.aid-wm-t { position: relative; flex: 0 0 auto; width: 29px; height: 16px; border-radius: 999px;
  background: rgba(100, 116, 139, .38); transition: background .16s; }
.aid-wm-t::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .28); transition: transform .16s; }
.aid-wm.on { color: var(--blue2); border-color: rgba(37, 99, 235, .34); background: rgba(37, 99, 235, .055); }
.aid-wm.on .aid-wm-t { background: var(--blue2); }
.aid-wm.on .aid-wm-t::after { transform: translateX(13px); }
.aid-wm:focus-within { box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.aid-acts-sp { flex: 1 1 auto; }
.aid-acts .aid-wm { align-self: center; }

/* ---------- 需求 132：换题 + 作答留白 ----------
 * 作答留白必须在预览里看得见：老师在纸面上调的就是这块地方，
 * 换完题才发现「解答题只留了两行」就太晚了。行高跟 PDF 的 24pt 一个尺度感。 */
.aid-body .aid-space { margin: 7px 0 2px 16px; }
.aid-body .aid-space i { display: block; height: 26px; border-bottom: 1px dashed #dde6f0; }
.aid-body .aid-space b { display: block; padding-top: 2px; font-weight: 400;
  font-size: var(--doc-fs-sm); color: #94a3b8; }
.aid-sp-ctl { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px;
  padding: 0 2px; border-radius: 7px; }
.aid-sp-ctl b { min-width: 42px; text-align: center; font-size: 11.5px; font-weight: 600; color: #64748b; }
.aid-sp-ctl.off b { font-weight: 400; color: #94a3b8; }
.aid-sp-ctl .btn.xs { height: 18px; padding: 0 5px; line-height: 16px; font-size: 11.5px; }
/* 换题弹窗里「现在这道」的摘要 */
.aid-sw-cur { margin: 2px 0 8px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: rgba(37, 99, 235, .035); }
.aid-sw-lb { margin-bottom: 4px; font-size: 12.4px; color: var(--sub); }
.aid-sw-tx { font-family: var(--doc-song); font-size: var(--doc-fs); line-height: 1.65; color: var(--txt); }
.aid-sw-auto { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 4px 0 2px; }
[data-theme="dark"] .aid-sw-cur { background: rgba(96, 165, 250, .09); }
[data-theme="dark"] .aid-sw-tx { color: #e2e8f0; }
/* 题头一行现在放得下：题型 · 知识点 · 星级分值 · 留白控件 · 七个按钮。
 * 屏幕窄了必须允许换行，否则整行撑出容器、后面的按钮点不到 */
@media (max-width: 900px) {
  .aid-body .aid-q-h { flex-wrap: wrap; row-gap: 4px; }
  .aid-sp-ctl { order: 3; }
}
[data-theme="dark"] .aid-wm { background: rgba(148, 163, 184, .07); }
[data-theme="dark"] .aid-wm.on { color: #93c5fd; background: rgba(96, 165, 250, .14); border-color: rgba(96, 165, 250, .42); }
[data-theme="dark"] .aid-wm.on .aid-wm-t { background: #3b82f6; }

/* ==================================================================
 * 需求 89：笔记识别结果的原图对照 + 逐块溯源 + 就地修正
 * 左侧原图（sticky 跟随）、右侧结果；每段标出「依据原文」与存疑角标
 * ================================================================== */
.nt-wrap { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 16px; align-items: start; }
.nt-wrap.nt-nowide { grid-template-columns: minmax(0, 1fr); }
.nt-col { min-width: 0; }
.nt-wrap .nt-page { max-width: none; margin: 0; }

/* 原图栏 */
.nt-side { position: sticky; top: 12px; background: var(--card, #fff); border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 10px; box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .45); }
.nt-side-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: #334155; margin: 0 2px 8px; }
.nt-side-imgs { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 210px); overflow: auto; }
.nt-side-imgs img { width: 100%; border-radius: 9px; border: 1px solid #e2e8f0; cursor: zoom-in;
  display: block; transition: box-shadow .15s, transform .15s; }
.nt-side-imgs img:hover { box-shadow: 0 8px 22px -12px rgba(15, 23, 42, .5); transform: translateY(-1px); }
.nt-side-q { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #e2e8f0;
  font-size: 11.8px; color: #475569; line-height: 1.6; }
.nt-side-q b { color: #1e293b; }

/* 溯源条 */
.nt-trace { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
  padding: 9px 13px; border-radius: 11px; font-size: 13px; border: 1px solid; }
.nt-trace b { font-size: 16px; font-weight: 800; }
.nt-trace-d { font-size: 12.2px; opacity: .9; }
.nt-trace-h { font-size: 11.5px; opacity: .7; margin-left: auto; }
.nt-trace.good { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.nt-trace.warn { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.nt-trace.bad { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.nt-trace.info { color: #475569; background: #f8fafc; border-color: #e2e8f0; font-size: 12.4px; gap: 4px; }

/* 单段：存疑 / 已修正 / 依据原文 */
.nt-b-suspect { border-style: dashed !important; box-shadow: 0 0 0 2px rgba(245, 158, 11, .16); }
.nt-b-manual { box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.nt-flag { font-size: 10.8px; font-weight: 700; padding: 1.5px 8px; border-radius: 999px; white-space: nowrap; }
.nt-flag-check { color: #b45309; background: #fef3c7; }
.nt-flag-bad { color: #b91c1c; background: #fee2e2; }
.nt-flag-edit { color: #1d4ed8; background: #dbeafe; }
.nt-b-ops { display: inline-flex; gap: 3px; align-items: center; opacity: .3; transition: opacity .15s; }
.nt-b:hover .nt-b-ops, .nt-b-ops:focus-within { opacity: 1; }
.nt-b-ops .btn.xs.ghost { padding: 1px 6px; height: 21px; line-height: 19px; font-size: 11px; }
.nt-b-ops .btn.xs.ghost.danger { color: #dc2626; border-color: rgba(220, 38, 38, .28); background: transparent; }
.nt-b-ops .btn.xs.ghost.danger:hover { background: rgba(220, 38, 38, .08); }
.nt-b-h-text { min-height: 20px; margin-bottom: 4px; }
.nt-b-src { position: relative; margin-top: 8px; padding: 5px 9px 5px 24px; border-radius: 7px;
  background: rgba(148, 163, 184, .1); font-size: 11.5px; color: #64748b; line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-b-src-k { position: absolute; left: 8px; top: 5px; font-size: 10.5px; font-weight: 700; color: #94a3b8; }
.nt-b-src.bad { background: rgba(220, 38, 38, .07); color: #b91c1c; }
.nt-b-src.bad .nt-b-src-k { color: #dc2626; }
.nt-b-iss { margin-top: 6px; font-size: 11.5px; color: #b45309; line-height: 1.6; }

/* AI 改了什么 / 哪里看不清 */
.nt-audit { margin: 14px auto 0; max-width: 780px; background: var(--card, #fff); border: 1px solid #e2e8f0;
  border-radius: 12px; font-size: 12.6px; overflow: hidden; }
.nt-wrap .nt-audit { max-width: none; }
.nt-audit > summary { padding: 10px 14px; cursor: pointer; font-weight: 700; color: #334155; list-style: none; }
.nt-audit > summary::-webkit-details-marker { display: none; }
.nt-audit > summary::before { content: '▸ '; color: #94a3b8; }
.nt-audit[open] > summary::before { content: '▾ '; }
.nt-audit-b { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.nt-fix-r { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; padding: 5px 9px;
  border-radius: 7px; background: rgba(148, 163, 184, .08); }
.nt-fix-r code { font-size: 11.8px; background: rgba(37, 99, 235, .08); color: #1d4ed8;
  padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.nt-arrow { color: #94a3b8; }

/* 原图放大 */
.nt-zoom { position: fixed; inset: 0; z-index: 160; background: rgba(8, 12, 20, .88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; }
.nt-zoom img { max-width: 96vw; max-height: calc(100vh - 70px); border-radius: 8px; background: #fff; }
.nt-zoom-bar { display: flex; align-items: center; gap: 8px; color: #e2e8f0; font-size: 12.5px; width: 100%; max-width: 96vw; }
.nt-zoom-bar .btn.xs.ghost { color: #e2e8f0; border-color: rgba(226, 232, 240, .4); background: rgba(255, 255, 255, .08); }

/* 导出图片时只留笔记本身 */
.nt-exporting .nt-b-ops, .nt-exporting .nt-flag, .nt-exporting .nt-b-src, .nt-exporting .nt-b-iss { display: none !important; }

/* 列表页的吻合度角标 */
.nt-card-v { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.nt-card-v.good { color: #166534; background: #dcfce7; }
.nt-card-v.warn { color: #92400e; background: #fef3c7; }
.nt-card-v.bad { color: #9a3412; background: #ffedd5; }
.nt-st-edited { color: #1d4ed8; background: #dbeafe; }

/* 改一段的弹窗 */
.nt-edit { display: flex; flex-direction: column; gap: 9px; }
.nt-edit textarea { width: 100%; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 12.8px; line-height: 1.75; }

[data-theme="dark"] .nt-side { background: #131a26; border-color: #1f2a3a; }
[data-theme="dark"] .nt-side-h { color: #cbd5e1; }
[data-theme="dark"] .nt-side-imgs img { border-color: #1f2a3a; }
[data-theme="dark"] .nt-trace.good { color: #86efac; background: #14251a; border-color: #1c4531; }
[data-theme="dark"] .nt-trace.warn { color: #fcd34d; background: #2c2210; border-color: #5b4310; }
[data-theme="dark"] .nt-trace.bad { color: #fdba74; background: #2d1c11; border-color: #5e3418; }
[data-theme="dark"] .nt-trace.info { color: #cbd5e1; background: #131a26; border-color: #1f2a3a; }
[data-theme="dark"] .nt-b-src { background: rgba(148, 163, 184, .12); color: #94a3b8; }
[data-theme="dark"] .nt-audit { background: #131a26; border-color: #1f2a3a; }
[data-theme="dark"] .nt-audit > summary { color: #cbd5e1; }
[data-theme="dark"] .nt-fix-r { background: rgba(148, 163, 184, .1); }
[data-theme="dark"] .nt-fix-r code { background: rgba(96, 165, 250, .16); color: #93c5fd; }

@media (max-width: 1100px) {
  .nt-wrap { grid-template-columns: minmax(0, 1fr); }
  .nt-side { position: static; }
  .nt-side-imgs { flex-direction: row; overflow-x: auto; max-height: none; }
  .nt-side-imgs img { width: auto; height: 150px; flex: none; }
  .nt-trace-h { display: none; }
  .nt-b-ops { opacity: 1; }
}

/* ==================================================================
 * 课堂反馈 · 照片额度（每课次 8 张）与学生端按课次展示
 * 需求 90：老师反馈里提交的照片最多 8 张，并按课次同步到学生端
 * ================================================================== */
/* 上传位：还有额度时虚线高亮，满额后变灰且不可点 */
.fb-ph.fb-add {
  display: grid; place-items: center; cursor: pointer; border-style: dashed;
  background: transparent; transition: border-color .15s, background .15s;
}
.fb-ph.fb-add:hover { border-color: var(--blue2); background: var(--tint1); }
.fb-ph.fb-add.full { cursor: not-allowed; opacity: .6; }
.fb-ph.fb-add.full:hover { border-color: var(--line); background: transparent; }
[data-theme="dark"] .fb-ph.fb-add:hover { background: var(--tint2); }

/* 学生端：按类别分组的小标题（课堂 / 演板 / 优秀作业） */
.sfb-pg { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 8px; color: var(--sub); }
.sfb-pg:first-of-type { margin-top: 0; }
.sfb-pg b { color: var(--txt); font-size: 13px; }

/* 学生端大图：一张课次常有 5~8 张，支持左右翻 */
.sfb-vw { display: flex; flex-direction: column; gap: 8px; }
.sfb-vw-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sfb-vw img {
  width: 100%; max-height: 66vh; object-fit: contain; border-radius: 12px;
  background: #0b1220; display: block;
}
.sfb-vw-ft { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.sfb-vw-ft button[disabled] { opacity: .4; cursor: default; }

/* 「只有照片、文字评价还没发布」的课次卡片：左侧一道琥珀色，和正式反馈区分开 */
.sfb-po { border-left: 3px solid var(--amber); }

/* 需求 164：班级课堂记录（老师写一份、全班都能看）
 * 老师端是编辑框 + 三个动作；学生端是列表卡 + 全文页。
 * 左边一道蓝条，和「我的反馈」在视觉上分开，学生一眼能分清哪份是给全班的。 */
.fb-note-tx {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font-size: 13.5px; line-height: 1.7;
  font-family: inherit;
}
.fb-note-tx:focus { outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px var(--tint1); }
.sfb-notes { display: flex; flex-direction: column; gap: 10px; }
.sfb-note {
  border-left: 3px solid var(--blue2); padding: 8px 0 8px 12px;
  cursor: pointer; transition: .15s;
}
.sfb-note:hover { background: var(--tint1); border-radius: 0 10px 10px 0; }
.sfb-note-tx {
  font-size: 13px; line-height: 1.7; color: var(--sub); white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.sfb-note-full { white-space: pre-wrap; }

/* ==================================================================
 * AI 批改动态：按学生归堆（需求 91）
 * 一行一个学生（头像 + 份数 + 均分 + 最近），点开这行才展开他自己的
 * 批改结果清单，再点某一份看完整报告 —— 流水拆成两层，眼睛不用横扫。
 * ================================================================== */
.gf-q {
  height: 30px; width: 148px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--txt); font-size: 12.5px;
}
.gf-q:focus { outline: none; border-color: var(--blue2); background: var(--card); }
.gf-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.gf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gf-tab {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--sub); font-size: 12.5px; transition: .15s;
}
.gf-tab:hover { border-color: var(--blue4); color: var(--txt); }
.gf-tab.on { background: var(--tint1); border-color: var(--blue2); color: var(--txt); font-weight: 600; }
.gf-list { display: flex; flex-direction: column; gap: 6px; }

/* 学生行 */
.gf-stu {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: .15s;
}
.gf-stu:hover { background: var(--tint1); }
.gf-stu.on { background: var(--tint1); border-color: var(--blue2); }
.gf-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--tint2); color: var(--blue1); font-weight: 700; font-size: 13px;
}
[data-theme="dark"] .gf-av { color: var(--txt); }
.gf-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.gf-l2 { color: var(--sub); font-size: 12px; margin-top: 3px; }
.gf-caret { color: var(--muted); font-size: 17px; flex: none; transition: .15s; }
.gf-stu.on .gf-caret { transform: rotate(90deg); color: var(--blue2); }

/* 展开后的批改结果清单：左侧一道竖线，和上面那行接起来 */
.gf-res {
  margin: -2px 0 4px 27px; padding-left: 11px;
  border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px;
}
.gf-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; transition: .12s; }
.gf-r:hover { background: var(--tint2); }
.gf-ic { font-size: 15px; flex: none; }
.gf-rt { font-size: 13px; }
.gf-r2 { color: var(--sub); font-size: 11.5px; margin-top: 2px; }
.gf-sc { font-size: 13px; flex: none; }
.gf-sc.good { color: var(--green); }
.gf-sc.bad { color: var(--red); }
.gf-go { color: var(--blue2); font-size: 12px; flex: none; white-space: nowrap; }
@media (max-width: 720px) {
  .gf-q { width: 100%; }
  .gf-go { display: none; }
  .gf-res { margin-left: 12px; }
}

/* ---------------- 我的班级 / 扫码进班 / 班级二维码（需求 94） ---------------- */
.mycls-row, .mv-row {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px;
}
.mycls-ava {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint1); color: var(--blue2); font-weight: 700; font-size: 15px;
}
[data-theme="dark"] .mycls-ava { background: var(--tint2); color: #93c5fd; }
.mycls-t { font-size: 13.5px; }
.mycls-s { font-size: 12px; color: var(--sub); margin-top: 2px; }
.mycls-empty { padding: 4px 2px 2px; }
.mycls-empty b { font-size: 13.5px; }

/* ---------------- 登录设备（需求 117：同一账号多端同开） ----------------
 * 一行一台，当前这台高亮 —— 家长和学生各看各的屏幕，都要能一眼认出
 * 「哪一行是我手上这台」，不然点「下线其他设备」时心里没底。 */
.me-dev {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px;
}
.me-dev.self { border-color: var(--tint2); background: var(--tint1); }
[data-theme="dark"] .me-dev.self { background: var(--tint2); border-color: #24365c; }
.me-dev-ico {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint1); font-size: 17px;
}
[data-theme="dark"] .me-dev-ico { background: var(--tint2); }
.me-dev-t { font-size: 13.5px; font-weight: 600; }
.me-dev-s { font-size: 12px; color: var(--sub); margin-top: 2px; word-break: break-all; }
@media (max-width: 720px) {
  .me-dev { padding: 9px 10px; gap: 8px; }
  .me-dev-s { font-size: 11.5px; }
}
/* 进班 / 申请浮层里的说明块 */
.join-note {
  background: var(--tint1); border: 1px solid var(--tint2); color: var(--txt);
  border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-top: 8px;
}
[data-theme="dark"] .join-note { background: var(--tint2); border-color: #24365c; }
.join-list { margin: 10px 0 0 18px; font-size: 13px; line-height: 1.9; }
.join-list b { font-weight: 600; }

/* 二维码弹窗 */
.qr-tabs { display: flex; gap: 8px; margin: 6px 0 10px; }
.qr-tab {
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  border-radius: 999px; padding: 5px 14px; font-size: 13px;
}
.qr-tab.on { background: var(--blue2); border-color: var(--blue2); color: #fff; }
.qr-tab:disabled { opacity: .45; cursor: not-allowed; }
.qr-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.qr-img {
  flex: none; padding: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; line-height: 0;
}
.qr-img svg { width: 200px; height: 200px; display: block; }
.qr-side { flex: 1; min-width: 240px; }
.qr-meta { display: grid; gap: 6px; font-size: 13px; }
.qr-meta > div { display: flex; gap: 8px; align-items: baseline; }
.qr-meta .muted { flex: none; width: 48px; }
.qr-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; font-size: 15px; }
.qr-url {
  margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg2);
  font-size: 12px; color: var(--sub); word-break: break-all;
}
[data-theme="dark"] .qr-url { background: #101c33; }
.qr-acts { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .qr-wrap { flex-direction: column; align-items: center; }
  .qr-side { width: 100%; }
}

/* ==================================================================
 * 链接微课（需求 102）：老师只存 URL，不传文件 —— 列表卡片 / 播放弹窗共用
 * ================================================================== */
.mc-linkcov {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #2dd4bf);
  color: #fff;
}
.mc-linkcov .mc-lk-ic { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.mc-linkcov em {
  font-style: normal; font-size: 11px; opacity: .92; max-width: 88%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lk-box {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--tint1);
}
.lk-ic {
  width: 38px; height: 38px; flex: none; border-radius: 11px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f766e, #2dd4bf); color: #fff;
}
.lk-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lk-tx b { font-size: 13.5px; }
.lk-url {
  font-size: 11.5px; color: var(--sub); word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lk-kind {
  flex: none; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--sub);
}
.lk-media { width: 100%; max-height: 58vh; margin-top: 10px; border-radius: 12px; background: #000; }
.lk-audio { width: 100%; margin-top: 10px; }

/* ==================================================================
 * 需求 103：侧栏「我的任务」——按科目归类，一眼看出哪一科还有活
 * ------------------------------------------------------------------
 * 两种状态就是需求里的两句话：
 *   亮色（.tj.bright）= 这一科还有没做完的作业 / 练习，右上带数字；
 *   暗色（.tj.dim）  = 这一科都做完了，而且答案与解析现在就能看（✓）。
 * 中间状态 .tj.wait 是「做完了但老师还没发布答案」——不给暗色，免得学生
 * 以为能看解析却点不开；它用浅底表示「等老师」。
 * 亮色仍按科目上色（.t-green / .t-blue …），但都是高饱和 + 白字，
 * 与暗色卡并排时明暗对比照样一眼分明。
 * ================================================================== */
.nav-task { padding: 2px 2px 10px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); }
.nt-h { display: flex; align-items: center; gap: 6px; padding: 4px 2px 8px; }
.nt-h b { font-size: 12px; letter-spacing: .3px; }
.nt-h span { margin-left: auto; font-size: 10.5px; color: var(--sub); }
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tj {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  padding: 7px 7px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; font: inherit; font-size: 12px; line-height: 1;
  transition: transform .14s, box-shadow .14s, filter .14s;
}
.tj:hover { transform: translateY(-1px); }
.tj-ic {
  width: 17px; height: 17px; flex: none; display: grid; place-items: center;
  border-radius: 6px; font-size: 10.5px; font-weight: 700;
}
.tj-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-weight: 600; }
.tj-n { flex: none; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center; }
/* —— 亮色：还有没做完的 —— */
.tj.bright { color: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .16); }
.tj.bright .tj-ic { background: rgba(255, 255, 255, .26); color: #fff; }
.tj.bright .tj-n { background: #fff; color: #b91c1c; }
.tj.t-green.bright  { background: linear-gradient(135deg, #047857, #10b981); }
.tj.t-blue.bright   { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.tj.t-amber.bright  { background: linear-gradient(135deg, #b45309, #f59e0b); }
.tj.t-purple.bright { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.tj.t-teal.bright   { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.tj.t-red.bright    { background: linear-gradient(135deg, #b91c1c, #ef4444); }
/* —— 暗色：全部完成，且答案与解析可看 —— */
.tj.dim { background: linear-gradient(135deg, #1e293b, #0f172a); color: #94a3b8; border-color: #0b1220; }
.tj.dim .tj-ic { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.tj.dim .tj-tx { color: #cbd5e1; }
.tj.dim .tj-n.ok { background: rgba(16, 185, 129, .2); color: #34d399; }
/* —— 中间态：做完了，但老师还没发布答案 —— */
.tj.wait { background: var(--tint1); color: var(--sub); border-color: var(--line); }
.tj.wait .tj-ic { background: rgba(148, 163, 184, .22); color: var(--sub); }
.tj.wait .tj-n.wait { background: rgba(148, 163, 184, .22); color: var(--sub); }
.nt-lg { display: flex; flex-wrap: wrap; gap: 3px 9px; padding: 7px 2px 0; font-size: 10px; color: var(--sub); }
.nt-lg span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nt-lg i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; flex: none; }
.nt-lg .lg-bright { background: linear-gradient(135deg, #047857, #10b981); }
.nt-lg .lg-dim { background: #1e293b; }
[data-theme="dark"] .tj.dim { background: linear-gradient(135deg, #0b1220, #111827); border-color: #1f2937; }
[data-theme="dark"] .tj.wait { background: #111827; }

/* 参考答案弹窗里的「解析」：答案给结论，解析给为什么 —— 两者要一眼分得开 */
.q-exp {
  margin-top: 7px; padding: 8px 11px; border-radius: 8px;
  background: var(--tint1); border-left: 3px solid #2563eb;
  font-size: 12.6px; line-height: 1.75; color: var(--sub); white-space: pre-wrap;
}
.q-exp b { margin-right: 6px; color: #1d4ed8; font-weight: 700; }
[data-theme="dark"] .q-exp { background: #111827; border-left-color: #3b82f6; }
[data-theme="dark"] .q-exp b { color: #93c5fd; }

/* ==================================================================
 * 学生端 · 特色作业（需求 104）
 * 一科一组：组头是科目 + 班级，下面一排类型卡（单词 / 朗读 / 阅读 …），
 * 选中哪个类型，下面就列出这一类要交的作业。
 * ================================================================== */
.fh-hero {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 17px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(135deg, #eef4ff, #f6f9ff);
  border: 1px solid var(--line);
}
.fh-hero-l b { display: block; font-size: 16px; color: var(--txt); }
.fh-hero-l span { font-size: 12.5px; color: var(--sub); }
.fh-hero-r { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.fh-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 5px; border-radius: 999px; font-size: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--sub);
}
.fh-pill i {
  width: 18px; height: 18px; border-radius: 50%; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #fff; background: #64748b;
}
.fh-pill b { color: #b45309; }
.fh-pill.t-green i { background: #10b981; }
.fh-pill.t-blue i { background: #3b82f6; }
.fh-pill.t-amber i { background: #f59e0b; }
.fh-pill.t-purple i { background: #8b5cf6; }
.fh-pill.t-teal i { background: #14b8a6; }
.fh-pill.t-red i { background: #ef4444; }

.fh-sub { margin-bottom: 16px; }
.fh-sub-h { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.fh-sub-h b { font-size: 14.5px; color: var(--txt); }
.fh-sub-h .tiny { color: var(--muted); }

.fh-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 9px; }
.fh-k {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 11px 12px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.fh-k:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37, 99, 235, .1); }
.fh-k.on { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.fh-k.has { background: linear-gradient(135deg, #fff7ed, #fffbeb); border-color: #fed7aa; }
.fh-k-ic { font-size: 21px; line-height: 1; flex: none; }
.fh-k-b { min-width: 0; flex: 1; }
.fh-k-b b { display: block; font-size: 13.5px; color: var(--txt); }
.fh-k-b small { display: block; font-size: 11px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-k-n {
  flex: none; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff; background: #f59e0b;
}
.fh-k-n.ok { background: #10b981; }

.fh-list { margin-top: 9px; display: grid; gap: 8px; }
.fh-list[hidden] { display: none; }
.fh-empty {
  padding: 15px; border-radius: 11px; text-align: center;
  font-size: 12.5px; color: var(--muted); background: var(--tint1); border: 1px dashed var(--line);
}
.fh-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border-radius: 11px; background: var(--card); border: 1px solid var(--line);
  cursor: pointer;
}
.fh-item:hover { border-color: #93c5fd; }
.fh-item-ic { font-size: 18px; flex: none; }
.fh-item-b { flex: 1; min-width: 0; }
.fh-item-t { font-size: 13.5px; font-weight: 600; color: var(--txt); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fh-item-s { font-size: 11.5px; color: var(--sub); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.fh-tip {
  margin-top: 4px; padding: 11px 13px; border-radius: 11px;
  font-size: 11.8px; line-height: 1.75; color: var(--sub);
  background: var(--tint1); border-left: 3px solid #fdba74;
}
[data-theme="dark"] .fh-hero { background: linear-gradient(135deg, #16233f, #101c33); }
[data-theme="dark"] .fh-k.has { background: linear-gradient(135deg, #2a1f10, #1f1a0e); border-color: #7c4a12; }

/* ---------------- 答题卡（单词 / 听写 / 口算 / 阅读） ---------------- */
.qz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qz-title { font-size: 16px; font-weight: 700; color: var(--txt); }
.qz-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.qz-score {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; margin-bottom: 13px;
  border-radius: 13px; background: linear-gradient(135deg, #eff6ff, #f8fbff); border: 1px solid var(--line);
}
.qz-score.perfect { background: linear-gradient(135deg, #ecfdf5, #f7fffb); border-color: #a7f3d0; }
.qz-score-v { font-size: 30px; font-weight: 800; color: #1d4ed8; line-height: 1; }
.qz-score-v small { font-size: 13px; font-weight: 600; color: var(--sub); }
.qz-score.perfect .qz-score-v { color: #047857; }
.qz-score-b { flex: 1; min-width: 0; }
.qz-score-b b { font-size: 13.5px; color: var(--txt); }
.qz-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.qz-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3b82f6, #22d3ee); }
.qz-score.perfect .qz-bar i { background: linear-gradient(90deg, #10b981, #34d399); }

.qz-passage {
  padding: 13px 15px; margin-bottom: 12px; border-radius: 12px;
  background: var(--tint1); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.95; color: var(--txt); white-space: pre-wrap;
}
.qz-list { display: grid; gap: 9px; }
.qz-it {
  padding: 11px 13px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--line);
}
.qz-it.ok { border-color: #a7f3d0; background: linear-gradient(135deg, #f7fffb, var(--card)); }
.qz-it.bad { border-color: #fecaca; background: linear-gradient(135deg, #fff8f8, var(--card)); }
.qz-it-h { display: flex; align-items: flex-start; gap: 9px; }
.qz-no {
  flex: none; width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff; background: #94a3b8;
}
.qz-it.ok .qz-no { background: #10b981; }
.qz-it.bad .qz-no { background: #ef4444; }
.qz-q { flex: 1; min-width: 0; font-size: 13.8px; line-height: 1.75; color: var(--txt); }
.qz-flag { font-size: 11.5px; font-weight: 700; }
.qz-flag.ok { color: #047857; }
.qz-flag.bad { color: #b91c1c; }
.qz-in {
  width: 100%; margin-top: 8px; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); color: var(--txt);
  font-size: 14px; font-family: inherit;
}
.qz-in:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.qz-in:disabled { background: var(--tint1); color: var(--sub); }
.qz-opts { display: grid; gap: 6px; margin-top: 8px; }
.qz-opt {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--bg);
  font-size: 13px; color: var(--txt); cursor: pointer;
}
.qz-opt.key { border-color: #10b981; background: #f0fdf4; }
.qz-opt.bad { border-color: #ef4444; background: #fef2f2; }
.qz-key {
  margin-top: 8px; padding: 7px 10px; border-radius: 8px;
  font-size: 12.6px; color: var(--txt); background: var(--tint1); border-left: 3px solid #10b981;
}
.qz-key.muted { border-left-color: var(--muted); color: var(--sub); }
.qz-key b { color: #047857; }
.qz-exp { margin-top: 4px; font-size: 12.2px; line-height: 1.75; color: var(--sub); }
[data-theme="dark"] .qz-score { background: linear-gradient(135deg, #16233f, #101c33); }
[data-theme="dark"] .qz-score.perfect { background: linear-gradient(135deg, #0d2a22, #101c33); border-color: #14532d; }
[data-theme="dark"] .qz-it.ok { background: linear-gradient(135deg, #0d2a22, var(--card)); border-color: #14532d; }
[data-theme="dark"] .qz-it.bad { background: linear-gradient(135deg, #2a1214, var(--card)); border-color: #7f1d1d; }
[data-theme="dark"] .qz-opt.key { background: #0f2a1e; }
[data-theme="dark"] .qz-opt.bad { background: #2a1214; }

/* ==================================================================
 * 需求 107：批改评价页（.gp-*）
 * 对照照片重做「老师批改」这一屏：评优五档印章 / 评分 / 评语（可插照片）/
 * 无需订正 / 允许其他学生查看 / 固定底栏。
 * 配色不跟主站蓝色渐变走 —— 这一屏要的是「清爽、能连续批几十份」，
 * 所以背景纯白、主色一个蓝（#3B6FE0）、分隔线全部压到最淡。
 * ================================================================== */
body.gp-on { overflow: hidden; }
body.gp-on::before { content: ''; position: fixed; inset: 0; background: rgba(10, 22, 48, .34); z-index: 99; }

.gp {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  display: flex; flex-direction: column; color: #1f2329;
  animation: gpIn .18s ease-out;
}
@keyframes gpIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 顶部栏：✕ / 评价 / 分享 —— 标题绝对居中，两侧按钮不影响它 */
.gp-hd { flex: none; height: 52px; display: flex; align-items: center; padding: 0 6px; border-bottom: 1px solid #f0f1f4; position: relative; }
.gp-ico { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #1f2329; display: grid; place-items: center; transition: background .15s; }
.gp-ico:hover { background: #f4f5f7; }
.gp-ico svg { width: 20px; height: 20px; }
.gp-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: 0; pointer-events: none; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }

.gp-roll { flex: 1; overflow: auto; padding: 14px 16px 22px; -webkit-overflow-scrolling: touch; }

/* 学生条 */
.gp-stu { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #f2f3f6; }
.gp-ava { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 16px; background: linear-gradient(135deg, #8fb6fe, #4b7be8); }
.gp-sinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-sinfo b { font-size: 15px; font-weight: 600; }
.gp-sinfo small { font-size: 11.5px; color: #8a8f99; }
.gp-tag { margin-left: auto; font-size: 13px; font-weight: 700; color: #3b6fe0; background: #eef3ff; border-radius: 7px; padding: 3px 9px; white-space: nowrap; }

/* 作答（可折叠） */
.gp-work { border: 1px solid #eef0f4; border-radius: 10px; background: #fbfcfd; margin-bottom: 16px; overflow: hidden; }
.gp-work-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: transparent; text-align: left; }
.gp-work-h b { font-size: 13.5px; font-weight: 600; color: #1f2329; }
.gp-work-n { font-size: 12px; color: #8a8f99; }
.gp-caret { margin-left: auto; color: #9aa0aa; font-size: 12px; transition: transform .2s; }
.gp-work.fold .gp-caret { transform: rotate(-90deg); }
.gp-work.fold .gp-work-b { display: none; }
.gp-work-b { padding: 0 12px 12px; max-height: 42vh; overflow: auto; }
.gp-shot { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.gp-shot img { width: 92px; height: 70px; object-fit: cover; border-radius: 7px; border: 1px solid #e8ebf0; flex: none; }
.gp-ct { font-size: 14px; line-height: 1.75; color: #333; }
.gp-empty { font-size: 12.5px; color: #9aa0aa; padding: 4px 0; }

/* 节标签：照片里就是「评优：」「评分：」「评语：」三行 */
.gp-lab { font-size: 14px; color: #1f2329; margin: 16px 0 9px; }
.gp-lab:first-child { margin-top: 0; }

/* 五档印章 ---------------------------------------------------------
 * 一颗印章 = 渐变底 + 白色拇指 + 底部长条文字。选中靠「白描边 + 色环」
 * 而不是换色 —— 换色会让人以为那是另一档。 */
.gp-stamps { display: flex; gap: 12px; flex-wrap: wrap; }
.gp-stamp {
  position: relative; width: 58px; height: 64px; padding: 0; border: 0; border-radius: 11px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: 0 4px 12px var(--sh), inset 0 1px 0 rgba(255, 255, 255, .45);
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
  transition: transform .14s, box-shadow .14s;
}
.gp-stamp:active { transform: scale(.96); }
.gp-stamp.p1 { --c1: #7cbafb; --c2: #3b82f6; --sh: rgba(59, 130, 246, .34); }
.gp-stamp.p2 { --c1: #7ed957; --c2: #35a62f; --sh: rgba(53, 166, 47, .34); }
.gp-stamp.p3 { --c1: #ffd666; --c2: #f2a81d; --sh: rgba(242, 168, 29, .34); }
.gp-stamp.p4 { --c1: #ffb067; --c2: #f5770b; --sh: rgba(245, 119, 11, .34); }
.gp-stamp.p5 { --c1: #ff9389; --c2: #e23b36; --sh: rgba(226, 59, 54, .34); }
.gp-stamp.on { transform: translateY(-2px); box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--c2), 0 10px 20px var(--sh); }
.gp-face { position: relative; margin-top: 9px; width: 26px; height: 26px; }
.gp-face > svg { width: 26px; height: 26px; fill: #fff; display: block; }
.gp-spark { position: absolute; top: -5px; right: -7px; width: 11px; height: 11px; }
.gp-spark svg { width: 11px; height: 11px; fill: #fff; opacity: .92; display: block; }
.gp-rib { margin-top: auto; width: 100%; padding: 2px 0 3px; text-align: center; font-size: 11px; line-height: 1.5; color: #fff; background: rgba(0, 0, 0, .12); letter-spacing: .5px; }
.gp-tick { position: absolute; right: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: var(--c2); font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; opacity: 0; transform: scale(.6); transition: .15s; }
.gp-stamp.on .gp-tick { opacity: 1; transform: none; }

/* 评分 */
.gp-scorerow { display: flex; align-items: center; gap: 8px; }
.gp-score { width: 96px; height: 38px; border: 1px solid #dcdfe6; border-radius: 6px; padding: 0 11px; font-size: 15px; background: #fff; color: #1f2329; outline: none; transition: .15s; }
.gp-score:focus { border-color: #3b6fe0; box-shadow: 0 0 0 3px rgba(59, 111, 224, .12); }
.gp-of { font-size: 14px; color: #4b5563; }

/* 评语：文本框 + 左下角插图按钮，和照片一致 */
.gp-cm { position: relative; border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; padding: 8px 10px 36px; transition: .15s; }
.gp-cm:focus-within { border-color: #3b6fe0; box-shadow: 0 0 0 3px rgba(59, 111, 224, .12); }
.gp-cm textarea { width: 100%; border: 0; outline: none; resize: vertical; min-height: 84px; font-size: 14px; line-height: 1.8; color: #1f2329; background: transparent; display: block; }
.gp-cm textarea::placeholder { color: #b6bbc4; }
.gp-cm-pic { position: absolute; left: 8px; bottom: 7px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: #7c828c; display: grid; place-items: center; }
.gp-cm-pic:hover { background: #f4f5f7; color: #3b6fe0; }
.gp-cm-pic svg { width: 19px; height: 19px; }
.gp-cm-imgs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 0 2px; }
.gp-cm-imgs:empty { display: none; }
.gp-cmi { position: relative; display: inline-block; }
.gp-cmi img { width: 56px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid #e8ebf0; display: block; }
.gp-cmi-x { position: absolute; right: -6px; top: -6px; width: 17px; height: 17px; border: 0; border-radius: 50%; background: #4b5563; color: #fff; font-size: 12px; line-height: 17px; text-align: center; padding: 0; }

/* 勾选框：自绘方块，浏览器原生那个在手机上太小 */
.gp-chk { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: #1f2329; cursor: pointer; user-select: none; }
.gp-chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.gp-chk i { position: relative; flex: none; width: 21px; height: 21px; border-radius: 4px; border: 1.5px solid #cfd4dc; background: #fff; transition: .15s; }
.gp-chk input:checked + i { background: #3b6fe0; border-color: #3b6fe0; }
.gp-chk input:checked + i::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: 2.2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg); }
.gp-chk input:focus-visible + i { box-shadow: 0 0 0 3px rgba(59, 111, 224, .2); }

/* 底部固定条：保存按钮永远在手边 */
.gp-ft { flex: none; background: #fff; border-top: 1px solid #eceef2; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
.gp-chk-ft { margin: 0 0 10px; font-size: 14px; }
.gp-done { width: 100%; height: 46px; border: 0; border-radius: 8px; background: #3b6fe0; color: #fff; font-size: 16px; letter-spacing: 1px; transition: .15s; }
.gp-done:hover { background: #3161cf; }
.gp-done:active { transform: translateY(1px); }
.gp-done:disabled { background: #a9bdf0; cursor: default; }

/* 桌面上收成一张手机宽的卡片（这一屏是照着手机做的，铺满 1400px 会散） */
@media (min-width: 900px) {
  .gp { left: 0; right: 0; width: 520px; margin: 0 auto; border-left: 1px solid #eceef2; border-right: 1px solid #eceef2; box-shadow: 0 30px 90px rgba(9, 20, 45, .32); }
}

/* 深色 */
[data-theme="dark"] .gp { background: var(--card); color: var(--txt); }
[data-theme="dark"] .gp-hd { border-bottom-color: var(--line); }
[data-theme="dark"] .gp-ico { color: var(--txt); }
[data-theme="dark"] .gp-ico:hover { background: var(--tint2); }
[data-theme="dark"] .gp-stu { border-bottom-color: var(--line); }
[data-theme="dark"] .gp-sinfo b, [data-theme="dark"] .gp-lab, [data-theme="dark"] .gp-chk { color: var(--txt); }
[data-theme="dark"] .gp-work { background: #101c33; border-color: var(--line); }
[data-theme="dark"] .gp-work-h b { color: var(--txt); }
[data-theme="dark"] .gp-ct { color: var(--txt); }
[data-theme="dark"] .gp-score, [data-theme="dark"] .gp-cm { background: #0f1a2e; border-color: var(--line); color: var(--txt); }
[data-theme="dark"] .gp-cm textarea { color: var(--txt); }
[data-theme="dark"] .gp-of { color: var(--sub); }
[data-theme="dark"] .gp-chk i { background: #0f1a2e; border-color: #3a4a68; }
[data-theme="dark"] .gp-ft { background: var(--card); border-top-color: var(--line); }
[data-theme="dark"] .gp-tag { background: #16233f; color: #93b4f5; }

/* ==================================================================
 * 需求 107：提交看板照照片重排（.hb-*）—— 「一个班的作业」这一屏
 * 照片里的特征：整宽的分段控件（选中那条是实心蓝）、无边框带淡影的学生卡、
 * 底部一条整宽按钮。原来的浅蓝药丸 + 描边卡片偏「后台表格」，不像手机端。
 * ================================================================== */
.hb-tabs {
  display: flex; width: 100%; gap: 6px; padding: 4px; border-radius: 10px;
  background: #f4f5f7; border: 1px solid #eef0f4; margin-bottom: 10px;
}
.hb-tab {
  flex: 1; justify-content: center; border: 0; background: transparent;
  color: #6b7280; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; transition: .15s;
}
.hb-tab .n { font-size: 11.5px; font-weight: 700; color: #9aa0aa; }
.hb-tab.on { background: #3b6fe0; color: #fff; box-shadow: 0 2px 8px rgba(59, 111, 224, .28); }
.hb-tab.on .n { color: #fff; }

.hb-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; max-height: 48vh; }
.hb-card {
  background: #fff; border: 1px solid #eef0f4; border-radius: 10px;
  padding: 14px 10px 12px; box-shadow: 0 2px 8px rgba(15, 35, 90, .05); cursor: pointer;
}
.hb-card:hover { border-color: #dbe3f5; box-shadow: 0 8px 20px rgba(15, 35, 90, .1); transform: translateY(-2px); }
.hb-card.none { background: #fbfcfd; }
.hb-av { width: 44px; height: 44px; font-size: 18px; background: linear-gradient(135deg, #93b9ff, #5b8def); }
.hb-name { font-size: 14px; }
.hb-line { font-size: 11.5px; color: #9aa0aa; }

/* 评优小标：已批改的卡片上带一颗迷你印章，看板上也能一眼分出档位 */
.hb-pr { display: inline-block; margin-top: 6px; font-size: 10.5px; line-height: 1.6; padding: 0 8px; border-radius: 6px; color: #fff; }
.hb-pr.p1 { background: linear-gradient(180deg, #7cbafb, #3b82f6); }
.hb-pr.p2 { background: linear-gradient(180deg, #7ed957, #35a62f); }
.hb-pr.p3 { background: linear-gradient(180deg, #ffd666, #f2a81d); }
.hb-pr.p4 { background: linear-gradient(180deg, #ffb067, #f5770b); }
.hb-pr.p5 { background: linear-gradient(180deg, #ff9389, #e23b36); }

/* 底部整宽按钮（照片里的「未阅提醒」） */
.hb-bar { border-top: 1px solid #eef0f4; }
.hb-bar .btn { border-radius: 8px; }

[data-theme="dark"] .hb-tabs { background: var(--tint1); border-color: var(--line); }
[data-theme="dark"] .hb-card { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .hb-card.none { background: #101c33; }

/* ==================================================================
 * 需求 107：分享弹窗的「分享原题 / 分享批改」二选一（照片 2）
 * 选中态是「实心圆 + 白勾」，跟原生的 radio 不一样 —— 原生那个在
 * 触屏上只有 13px，点偏一点就没选上。
 * ================================================================== */
.shb-pick { display: flex; gap: 26px; padding: 2px 0 14px; border-bottom: 1px solid #eef0f4; margin-bottom: 12px; }
.shb-pick-l { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1f2329; cursor: pointer; user-select: none; }
.shb-pick-l input { position: absolute; opacity: 0; width: 0; height: 0; }
.shb-pick-l i { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cfd4dc; background: #fff; transition: .15s; }
.shb-pick-l input:checked + i { background: #3b6fe0; border-color: #3b6fe0; }
.shb-pick-l input:checked + i::after { content: ''; position: absolute; left: 6.5px; top: 3px; width: 5.5px; height: 10px; border: 2.2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg); }
.shb-pick-l input:focus-visible + i { box-shadow: 0 0 0 3px rgba(59, 111, 224, .2); }
[data-theme="dark"] .shb-pick { border-bottom-color: var(--line); }
[data-theme="dark"] .shb-pick-l { color: var(--txt); }
[data-theme="dark"] .shb-pick-l i { background: #0f1a2e; border-color: #3a4a68; }

/* 老师评语里的照片（需求 107）：学生端「批改结果」下面一排缩略图 */
.as-cimgs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.as-cimgs img { width: 76px; height: 58px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); display: block; }

/* ==================================================================
 * 需求 107：学生端「无需订正」与「同学的作业」
 * 老师勾了「无需订正」= 这次不用重做，就别再摆一个空的订正框；
 * 勾了「允许其他学生查看」= 这份会出现在同班同学的作业页上。
 * ================================================================== */
.as-nofix {
  margin: 12px 0; padding: 11px 14px; border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border: 1px solid #bbf7d0;
  color: #047857; font-size: 13.5px;
}
[data-theme="dark"] .as-nofix { background: #0d2a22; border-color: #14532d; color: #6ee7b7; }

.as-share { margin: 14px 0 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.as-share-h { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.as-share-h .tiny { font-weight: 400; color: var(--muted); }
.as-share-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-bottom: 1px dashed var(--line); }
.as-share-row:last-child { border-bottom: 0; }
.as-share-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; background: linear-gradient(135deg, #93b9ff, #5b8def); }
.as-share-i { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.as-share-i b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.as-share-i small { font-size: 12px; color: var(--sub); line-height: 1.6; word-break: break-word; }
.as-share-pr { font-style: normal; font-size: 10.5px; color: #fff; padding: 1px 7px; border-radius: 6px; }
.as-share-pr.strive { background: #3b82f6; } .as-share-pr.pass { background: #35a62f; }
.as-share-pr.ok { background: #f2a81d; } .as-share-pr.good { background: #f5770b; }
.as-share-pr.great { background: #e23b36; }
.as-share-imgs { display: flex; gap: 6px; margin-top: 2px; }
.as-share-imgs img { width: 58px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.as-share-sc { font-size: 15px; color: var(--blue2); flex: none; }

/* ================= 学习范围（需求 111） =================
 * 一条横幅 + 一个范围页 + 图谱上那几枚「🔒 年级」。
 * 横幅只在「确实有内容被锁着」或「在范围内」时说一句话，
 * 不做成常驻大广告 —— 学生每进一次图谱都被拦一次会很烦。
 */
.ac-bar { display: flex; align-items: center; gap: 9px; margin: 9px 0 2px; padding: 8px 12px;
  background: var(--tint1); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.ac-bar .ic { font-size: 14px; }
.ac-bar .tx { flex: 1; min-width: 0; color: var(--sub); line-height: 1.5; }
.ac-bar .tx b { color: var(--txt); }
.ac-bar .tx em { font-style: normal; color: var(--amber); }
.ac-bar.lock { background: #fffbeb; border-color: #fde68a; }
.ac-bar.lock .tx { color: #92400e; }
.ac-bar.lock .tx b { color: #b45309; }

.ac-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px;
  padding: 12px 14px; border-radius: 12px; background: var(--tint1); border: 1px solid var(--line); }
.ac-hero-l { display: flex; flex-direction: column; }
.ac-big { font-family: var(--kai); font-size: 22px; letter-spacing: 2px; color: var(--blue1, #1e3a8a); }
.ac-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.ac-hero-r { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.ac-on { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 12.5px; }
.ac-on i { font-style: normal; }
.ac-on em { font-style: normal; font-size: 10.5px; color: var(--green); background: #ecfdf5;
  border-radius: 999px; padding: 1px 6px; margin-left: 2px; }
.ac-explain { margin-top: 10px; font-size: 12.5px; color: var(--sub); line-height: 1.85; }
.ac-explain b { color: var(--txt); }

.ac-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.ac-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.ac-group-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ac-group-h i { font-style: normal; }
.ac-group-h em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.ac-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 96px;
  padding: 7px 11px; border-radius: 10px; border: 1px dashed var(--line); background: transparent;
  color: var(--sub); text-align: left; transition: .15s; }
.ac-chip b { font-size: 13px; color: var(--txt); font-weight: 600; }
.ac-chip small { font-size: 11px; color: var(--muted); }
.ac-chip:hover { border-color: var(--blue3, #3b82f6); background: var(--tint1); }
.ac-chip.on { border-style: solid; border-color: var(--blue2, #2563eb); background: var(--tint1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.ac-chip.on b { color: var(--blue2, #2563eb); }
.ac-submit { display: flex; align-items: center; gap: 10px; margin-top: 12px; }

.ac-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 2px;
  border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.ac-line:last-child { border-bottom: 0; }
.ac-line .tx { color: var(--sub); flex: 1; min-width: 120px; }
.ac-line .tm { color: var(--muted); font-size: 11.5px; }
.ac-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--tint1); color: var(--blue2, #2563eb); border: 1px solid var(--tint2); }
.ac-pill.grade { background: #f3f0ff; color: #5b45c9; border-color: #e2daff; }
.ac-sep { color: var(--muted); font-size: 11px; }

/* 图谱上「同科目其他年级」的锁：一眼看出「不是只有这几颗星，是那些年级还没开」 */
.kg-lockrow { flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.kg-lockchip { border-style: dashed !important; opacity: .8; }
.kg-lockchip:hover { opacity: 1; border-color: var(--blue3, #3b82f6) !important; }
.kg-locktip { font-size: 11.5px; color: var(--muted); }

[data-theme="dark"] .ac-bar { background: #172033; border-color: #22304a; }
[data-theme="dark"] .ac-bar.lock { background: #2a2210; border-color: #574a1c; }
[data-theme="dark"] .ac-bar.lock .tx { color: #fcd34d; }
[data-theme="dark"] .ac-bar.lock .tx b { color: #fbbf24; }
[data-theme="dark"] .ac-hero { background: #172033; border-color: #22304a; }
[data-theme="dark"] .ac-big { color: #bfdbfe; }
[data-theme="dark"] .ac-on { background: #14203a; border-color: #22304a; }
[data-theme="dark"] .ac-on em { background: #0d2a22; color: #6ee7b7; }
[data-theme="dark"] .ac-group { background: #14203a; border-color: #22304a; }
[data-theme="dark"] .ac-chip.on { background: #1b2a44; }
[data-theme="dark"] .ac-chip.on b { color: #93c5fd; }
[data-theme="dark"] .ac-line { border-color: #22304a; }
[data-theme="dark"] .ac-pill { background: #1b2a44; color: #bfdbfe; border-color: #2b4a7a; }
[data-theme="dark"] .ac-pill.grade { background: #241f3d; color: #c7b9ff; border-color: #3b3268; }

/* ==================================================================
 * 邀请 PK（需求 112）
 * 一套「对战感」的视觉：深蓝渐变头部 + 倒计时 + 一题一屏的大选项按钮。
 * 全部用现有变量，深色主题只补背景色，不另起一套配色。
 * ================================================================== */
.pk-hero {
  display: flex; gap: 16px; padding: 18px 20px; border-radius: 17px; margin-bottom: 14px;
  background: linear-gradient(140deg, #0f2b6b 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff; box-shadow: 0 12px 30px rgba(30, 58, 138, .22);
}
.pk-hero-l { flex: 1; min-width: 0; }
.pk-hero-t { font-family: var(--kai); font-size: 25px; letter-spacing: 2px; }
.pk-hero-s { font-size: 12.5px; color: rgba(255, 255, 255, .84); margin-top: 4px; }
.pk-hero-rules { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.pk-hero-rules span {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2);
}
.pk-hero-rules b { color: #fde68a; font-variant-numeric: tabular-nums; }
.pk-hero-r { display: flex; gap: 10px; align-items: center; }
.pk-kpi {
  min-width: 88px; text-align: center; padding: 9px 11px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
}
.pk-kpi b { display: block; font-size: 22px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pk-kpi b i { font-style: normal; font-size: 10.5px; font-weight: 400; opacity: .75; margin-left: 1px; }
.pk-kpi span { font-size: 11px; color: rgba(255, 255, 255, .8); }

.pk-invites { border-color: #fcd34d; }
.pk-inv { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.pk-inv:last-child { border-bottom: 0; }
.pk-inv .grow { flex: 1; min-width: 0; font-size: 13px; }

.pk-students { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk-stu {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--tint1);
}
.pk-stu.off { background: transparent; border-style: dashed; }
.pk-stu-a { position: relative; flex: none; }
.pk-on {
  position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--card);
}
.pk-stu-m { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pk-stu-m b { font-size: 13.5px; }
.pk-stu-m span { font-size: 11.5px; color: var(--sub); }
.pk-stu-m em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.pk-stu-m em.ok { color: var(--green); }
.pk-stu-m em.bad { color: var(--red); }

/* ---------- 需求 115：出题科目 chips / 跨年级 / 离线 ---------- */
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  font: inherit; font-size: 12.5px; cursor: pointer; transition: .15s;
}
.pk-chip:hover:not(:disabled) { border-color: var(--blue3); color: var(--txt); }
.pk-chip b { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-chip.on { border-color: var(--blue2); background: var(--tint1); color: var(--blue1); font-weight: 700; }
.pk-chip.on b { color: var(--blue1); }
.pk-chip.off, .pk-chip:disabled { opacity: .48; cursor: not-allowed; border-style: dashed; }
.pk-paper-sum { margin-top: 11px; font-size: 12.5px; color: var(--sub); }
.pk-paper-sum b { color: var(--blue1); }
.pk-paper-tip { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.pk-stu-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }
.pk-stu-note b { color: var(--txt); }
.pk-stu-m b .pk-cross, .pk-stu-m b .pk-off {
  font-style: normal; font-size: 10px; font-weight: 400; padding: 0 5px; margin-left: 5px;
  border-radius: 4px; vertical-align: 1px;
}
.pk-stu-m b .pk-cross { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.pk-stu-m b .pk-off { background: var(--tint2); color: var(--muted); border: 1px solid var(--line); }

.pk-warn {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.75;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.pk-rec {
  display: flex; align-items: center; gap: 10px; padding: 8px 2px;
  border-bottom: 1px dashed var(--line); font-size: 13px; flex-wrap: wrap;
}
.pk-rec:last-child { border-bottom: 0; }
.pk-rec-opp { color: var(--sub); }
.pk-rec-sc { font-variant-numeric: tabular-nums; font-size: 15px; }
.pk-rec-sc i { font-style: normal; color: var(--muted); margin: 0 2px; }
.pk-rec-d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-rec-d.up { color: var(--green); }
.pk-rec-d.down { color: var(--red); }
.pk-note ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 2; color: var(--sub); }
.pk-note b { color: var(--txt); }

/* ---------- 对局 ---------- */
.pk-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--shadow);
  position: sticky; top: 8px; z-index: 6;
}
.pk-clock {
  text-align: center; min-width: 84px; padding: 4px 10px; border-radius: 12px;
  background: var(--tint1); border: 1px solid var(--tint2); transition: .2s;
}
.pk-clock b {
  display: block; font-size: 24px; line-height: 1.15; color: var(--blue2);
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.pk-clock span { font-size: 10.5px; color: var(--muted); }
.pk-clock.hurry { background: #fef2f2; border-color: #fecaca; animation: pkPulse 1s infinite; }
.pk-clock.hurry b { color: var(--red); }
@keyframes pkPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.pk-prog { flex: 1; min-width: 220px; }
.pk-prog-t { font-size: 12.5px; color: var(--sub); }
.pk-prog-t b { color: var(--blue2); font-size: 15px; font-variant-numeric: tabular-nums; }
.pk-bar { height: 6px; border-radius: 999px; background: var(--tint2); overflow: hidden; margin: 5px 0 5px; }
.pk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); transition: width .25s; }
.pk-vs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); flex-wrap: wrap; }
.pk-vs em { font-style: normal; font-size: 10.5px; color: var(--muted); margin: 0 3px; }
.pk-vs b { color: var(--txt); }

.pk-q { padding: 18px 18px 14px; }
.pk-q-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pk-q-no { font-weight: 700; color: var(--blue1); font-size: 13px; }
.pk-stem { font-size: 15.5px; line-height: 1.9; }
.pk-opts { display: flex; flex-direction: column; gap: 9px; margin-top: 15px; }
.pk-opt {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font-size: 14px; line-height: 1.7;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.pk-opt:hover { border-color: var(--blue3); background: var(--tint1); }
.pk-opt b {
  flex: none; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint2); color: var(--blue2); font-size: 12.5px;
}
.pk-opt span { flex: 1; min-width: 0; word-break: break-word; }
.pk-opt.on { border-color: var(--blue2); background: var(--tint1); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.pk-opt.on b { background: var(--blue2); color: #fff; }

.pk-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pk-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-dot {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums;
}
.pk-dot.done { border-color: #bbf7d0; background: #f0fdf4; color: var(--green); }
.pk-dot.on { border-color: var(--blue2); background: var(--tint1); color: var(--blue2); font-weight: 700; }
.pk-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 等待 / 结果 ---------- */
.pk-wait { text-align: center; padding: 30px 18px; }
.pk-wait-ic { font-size: 40px; line-height: 1; }
.pk-wait h3 { margin: 10px 0 6px; font-size: 19px; }
.pk-wait p { font-size: 13px; color: var(--sub); line-height: 1.9; max-width: 540px; margin: 0 auto 14px; }
.pk-wait-vs { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 14px 0 10px; }
.pk-wait-vs div { display: flex; flex-direction: column; gap: 2px; }
.pk-wait-vs div b { font-size: 16px; }
.pk-wait-vs div span { font-size: 11.5px; color: var(--muted); }
.pk-wait-vs em { font-style: normal; color: var(--muted); font-size: 12px; }
.pk-wait .acts { justify-content: center; }

.pk-res {
  position: relative; border-radius: 18px; padding: 26px 20px 18px; text-align: center;
  margin-bottom: 14px; color: #fff; background: linear-gradient(145deg, #1e3a8a, #2563eb);
  box-shadow: 0 14px 34px rgba(30, 58, 138, .22);
}
.pk-res.win { background: linear-gradient(145deg, #166534, #22c55e); }
.pk-res.lose { background: linear-gradient(145deg, #7f1d1d, #dc2626); }
.pk-res.tie { background: linear-gradient(145deg, #475569, #94a3b8); }
.pk-res-badge { font-size: 44px; line-height: 1; }
.pk-res h2 { font-size: 23px; margin: 6px 0 12px; color: #fff; }
.pk-res-score { display: flex; align-items: center; justify-content: center; gap: 16px; }
.pk-res-score div { display: flex; flex-direction: column; min-width: 112px; }
.pk-res-score b { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pk-res-score span { font-size: 11.5px; color: rgba(255, 255, 255, .84); }
.pk-res-score em { font-style: normal; font-size: 20px; opacity: .6; }
.pk-res-delta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13px; flex-wrap: wrap; }
.pk-res-delta .up { font-weight: 700; color: #fde68a; }
.pk-res-delta .down { font-weight: 700; color: #fecaca; }
.pk-res-delta .tiny { color: rgba(255, 255, 255, .74); }
.pk-res-note {
  margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .94);
  background: rgba(0, 0, 0, .18); border-radius: 9px; padding: 7px 11px; display: inline-block;
}
.pk-res .acts { justify-content: center; }

.pk-rq { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 10px; background: var(--card); }
.pk-rq:last-child { margin-bottom: 0; }
.pk-rq.ok { border-left: 4px solid var(--green); }
.pk-rq.bad { border-left: 4px solid var(--red); }
.pk-rq-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12.5px; }
.pk-rq-a { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; }
.pk-rq-a span { display: flex; align-items: center; gap: 5px; }
.pk-rq-a i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.pk-rq-a b { font-variant-numeric: tabular-nums; }
.pk-rq-a b.ok { color: var(--green); }
.pk-rq-a b.bad { color: var(--red); }

@media (max-width: 760px) {
  .pk-hero { flex-direction: column; }
  .pk-hero-r { justify-content: space-between; }
  .pk-kpi { flex: 1; min-width: 0; }
  .pk-students { grid-template-columns: 1fr; }
  .pk-chip { font-size: 12px; padding: 6px 11px; }
  .pk-top { position: static; }
  .pk-clock b { font-size: 20px; }
  .pk-res-score b { font-size: 28px; }
  .pk-res-score div { min-width: 84px; }
}

/* 深色：只补背景，不换配色 */
[data-theme="dark"] .pk-stu { background: #16233f; border-color: #22314f; }
[data-theme="dark"] .pk-opt:hover { background: #16233f; }
[data-theme="dark"] .pk-opt.on { background: #172033; }
[data-theme="dark"] .pk-dot { background: #14203a; border-color: #22314f; }
[data-theme="dark"] .pk-dot.done { background: #0d2a22; border-color: #14532d; color: #6ee7b7; }
[data-theme="dark"] .pk-dot.on { background: #172033; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .pk-clock { background: #172033; border-color: #22304a; }
[data-theme="dark"] .pk-clock.hurry { background: #3b1218; border-color: #7f1d1d; }
[data-theme="dark"] .pk-bar { background: #22314f; }
[data-theme="dark"] .pk-warn { background: #2a2210; border-color: #574a1c; color: #fcd34d; }
[data-theme="dark"] .pk-rq { background: #14203a; border-color: #22304a; }
[data-theme="dark"] .pk-invites { border-color: #574a1c; }
[data-theme="dark"] .pk-q-no { color: #bfdbfe; }
[data-theme="dark"] .pk-chip { background: #14203a; border-color: #22314f; }
[data-theme="dark"] .pk-chip.on { background: #172033; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .pk-chip.on b { color: #93c5fd; }
[data-theme="dark"] .pk-paper-sum b { color: #93c5fd; }
[data-theme="dark"] .pk-stu-m b .pk-cross { background: rgba(109, 40, 217, .3); border-color: rgba(167, 139, 250, .45); color: #ddd6fe; }
[data-theme="dark"] .pk-stu-m b .pk-off { background: #1b2740; border-color: #22314f; }

/* ==================================================================
 * 题库 · 改分类标签（需求 113）
 * 只服务「录进来还没核对」这一段：勾选哪些标签要改，其余保持原样
 * ================================================================== */
.qt-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; padding: 9px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: 12.6px; color: #92400e; }
.qt-bar b { color: #b45309; }
.qt-bar .sp { flex: 1; }
.qt-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qt-row { display: grid; grid-template-columns: 120px minmax(170px, 1fr); gap: 4px 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.qt-row:last-child { border-bottom: 0; }
.qt-h { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.6px; font-weight: 600; }
.qt-h input { accent-color: #2563eb; }
.qt-ctl { min-width: 0; }
.qt-ctl.off { opacity: .42; }
.qt-ctl select, .qt-ctl > input { width: 100%; max-width: 320px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--txt); font-size: 12.4px; }
.qt-row small { grid-column: 2; font-size: 11px; color: var(--muted); }
.qt-kg { position: relative; }
.qt-kglist { position: absolute; z-index: 6; left: 0; right: 0; max-width: 320px; max-height: 200px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 30px rgba(15, 23, 42, .14); }
.qt-kghit { padding: 7px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.qt-kghit:hover { background: var(--tint1, #f1f5fb); }
.qt-kghit b { display: block; font-size: 12.4px; }
.qt-kghit small { grid-column: auto; font-size: 10.6px; color: var(--muted); }
.qt-kgempty { padding: 9px 10px; font-size: 12px; color: var(--muted); }
.qt-kgsel { margin-top: 6px; }
.qt-kgx { margin-left: 6px; cursor: pointer; font-style: normal; color: #94a3b8; }
.qt-kgx:hover { color: #dc2626; }
.qt-one { background: var(--tint1, #f1f5fb); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 12.6px; line-height: 1.8; max-height: 110px; overflow: auto; margin-bottom: 12px; }
.qt-multi { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qt-tip { margin-top: 11px; font-size: 11.6px; color: var(--muted); background: var(--tint1, #f1f5fb); border-radius: 8px; padding: 7px 10px; }
.qt-warn { margin: 4px 0 12px; padding: 8px 11px; border-radius: 9px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 12.3px; }
.qt-sec { margin: 16px 0 8px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 700; }
.qt-why { max-height: 300px; overflow: auto; }
.qt-why div { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.4px; }
.qt-why b { color: #1d4ed8; flex: none; }

@media (max-width: 720px) {
  .qt-row { grid-template-columns: 1fr; }
  .qt-row small { grid-column: 1; }
  .qt-ctl select, .qt-ctl > input { max-width: 100%; }
}
[data-theme="dark"] .qt-bar { background: #2a2210; border-color: #574a1c; color: #fcd34d; }
[data-theme="dark"] .qt-bar b { color: #fbbf24; }
[data-theme="dark"] .qt-warn { background: #2a1a10; border-color: #7c2d12; color: #fdba74; }
[data-theme="dark"] .qt-kglist { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ==================================================================
 * 题库上传 · 整文件夹队列（需求 114）
 * 一个文件一行，逐行亮状态；失败单独标红，不连累后面的文件
 * ================================================================== */
.qf-wrap { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.qf-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13.5px; }
.qf-top .sp { flex: 1; }
.qf-count { font-size: 12.4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qf-bar { height: 6px; border-radius: 99px; background: var(--tint1, #eef2f8); overflow: hidden; margin-bottom: 12px; }
.qf-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .25s ease; }
.qf-list { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.qf-dir { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 7px 11px; background: var(--tint1, #f1f5fb); border-bottom: 1px solid var(--line); font-size: 12.6px; }
.qf-dname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-dmeta { font-size: 11.8px; color: var(--muted); white-space: nowrap; }
.qf-dmeta.ok { color: #15803d; }
.qf-dmeta.bad { color: #b91c1c; }
.qf-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 6px 11px 6px 15px; border-bottom: 1px dashed var(--line); font-size: 12.4px; }
.qf-row:last-child { border-bottom: 0; }
.qf-row i { font-style: normal; text-align: center; color: #94a3b8; font-size: 12px; }
.qf-row .qf-f { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-row em { font-style: normal; font-size: 11.8px; color: var(--muted); white-space: nowrap; }
.qf-row.run i { color: #2563eb; animation: qfSpin 1s linear infinite; }
.qf-row.ok i, .qf-row.ok em { color: #15803d; }
.qf-row.warn i, .qf-row.warn em { color: #b45309; }
.qf-row.err { background: #fef2f2; }
.qf-row.err i, .qf-row.err em { color: #dc2626; }
@keyframes qfSpin { 50% { opacity: .25; } }
.qf-note { margin-top: 11px; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; line-height: 1.8; background: var(--tint1, #f1f5fb); }
.qf-note.ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.qf-note.bad { background: #fff7ed; border: 1px solid #fed7aa; }
.qf-note .qf-warn { color: #b45309; }
.qf-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 9px; }
[data-theme="dark"] .qf-bar { background: #1b2740; }
[data-theme="dark"] .qf-dir { background: #16203a; }
[data-theme="dark"] .qf-row.err { background: #2a1414; }
[data-theme="dark"] .qf-row.err i, [data-theme="dark"] .qf-row.err em { color: #f87171; }
[data-theme="dark"] .qf-row.ok i, [data-theme="dark"] .qf-row.ok em { color: #4ade80; }
[data-theme="dark"] .qf-row.warn i, [data-theme="dark"] .qf-row.warn em { color: #fbbf24; }
[data-theme="dark"] .qf-note { background: #16203a; }
[data-theme="dark"] .qf-note.ok { background: #0f2a1a; border-color: #14532d; }
[data-theme="dark"] .qf-note.bad { background: #2a1a10; border-color: #7c2d12; }
@media (max-width: 720px) {
  .qf-row { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .qf-list { max-height: 260px; }
}

/* ==================================================================
 * 需求 116：自主刷题 —— 范围条 / 题型 chips / 三种作答区 / 拍照识别
 * 选择题沿用上面的 .quiz-card .opt（课堂小测最早定义的那一套），
 * 这里只补「可点、可选中、字母徽标」；填空与拍照是本需求新增的。
 * ================================================================== */
.pr-scope {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px;
  background: linear-gradient(180deg, #f7faff, #eef5ff); border: 1px solid #dbe7fb; margin-bottom: 10px;
}
.pr-scope .ic { font-size: 18px; line-height: 1.3; }
.pr-scope .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pr-scope .tx b { font-size: 13px; }
.pr-scope .tx span { font-size: 12.4px; color: var(--sub); }
.pr-scope .tx em { font-style: normal; font-size: 11.6px; color: var(--muted); }
.pr-warn {
  margin: 8px 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 12.3px; line-height: 1.7;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.pr-types { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.pr-type {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 12.4px;
  padding: 5px 12px; border-radius: 999px; transition: all .12s;
}
.pr-type b { color: var(--txt); margin-left: 3px; font-weight: 600; }
.pr-type:hover:not(:disabled) { border-color: #93c5fd; color: var(--blue2); }
.pr-type.on { border-color: #2563eb; background: var(--tint1); color: var(--blue2); font-weight: 600; }
.pr-type.on b { color: var(--blue2); }
.pr-type:disabled { opacity: .42; cursor: not-allowed; }
.pr-hint { font-size: 12px; color: var(--muted); margin-top: 9px; }

.pr-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 3px 0 12px; }
.pr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .25s; }
.pr-prog { font-size: 12.4px; color: var(--sub); }
.pr-prog b { color: var(--blue2); font-size: 14px; }

.pr-q-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.pr-q-h .no { font-size: 12.6px; font-weight: 600; }
.pr-q-score { font-size: 11.5px; color: var(--muted); }
.pr-q .q-stem { font-size: 13.6px; line-height: 1.75; }
.pr-q .opts { margin-top: 9px; }
.pr-q .opt {
  width: 100%; text-align: left; background: var(--card); color: var(--txt);
  font-size: 13px; line-height: 1.6; align-items: flex-start;
}
.pr-q .opt > b {
  flex: 0 0 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%;
  background: var(--tint1); color: var(--blue2); font-size: 12px; font-weight: 600;
  border: 1px solid #dbeafe;
}
.pr-q .opt.on > b { background: #2563eb; color: #fff; border-color: #2563eb; }
.pr-sub { font-size: 11.6px; color: var(--muted); margin-top: 6px; }
.pr-fig { margin-top: 9px; }
.pr-fig img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }

.pr-blanks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.pr-blank { display: flex; align-items: center; gap: 7px; flex: 1 1 190px; min-width: 0; }
.pr-blank > span { font-size: 11.6px; color: var(--sub); white-space: nowrap; }
.pr-blank input {
  flex: 1; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt);
}
.pr-blank input:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.pr-text {
  width: 100%; margin-top: 9px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); line-height: 1.7; resize: vertical;
}
.pr-text:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }

.pr-shot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.pr-shot-tip { font-size: 11.6px; color: var(--muted); }
.pr-photo {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px;
  padding: 8px 10px; border-radius: 11px; background: var(--tint1); border: 1px dashed #c7dbfb;
}
.pr-photo img { width: 62px; height: 62px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.pr-photo-m { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 2px; font-size: 12.2px; }
.pr-photo-m b { color: var(--blue2); }
.pr-photo-m em { font-style: normal; color: #b45309; }

.pr-submit {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.pr-bygroup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pr-bygroup span {
  font-size: 12.2px; color: var(--sub); padding: 4px 10px; border-radius: 999px;
  background: var(--tint1); border: 1px solid var(--line);
}
.pr-bygroup b { color: var(--blue2); }
.pr-res {
  display: block; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); margin-bottom: 8px;
}
.pr-res-photo { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11.8px; color: var(--sub); }
.pr-res-photo img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pr-blank-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 11.8px; }
.pr-blank-line span { padding: 3px 8px; border-radius: 7px; background: var(--tint1); }
.pr-blank-line .ok { color: #15803d; background: #f0fdf4; }
.pr-blank-line .no { color: #b91c1c; background: #fef2f2; }

[data-theme="dark"] .pr-scope { background: linear-gradient(180deg, #16233f, #182a49); border-color: #26406b; }
[data-theme="dark"] .pr-warn { background: #2a1f0a; border-color: #7c5a12; color: #fbbf24; }
[data-theme="dark"] .pr-type.on { background: #1d3260; border-color: #3b82f6; }
[data-theme="dark"] .pr-q .opt > b { background: #1d3260; border-color: #2c4a7e; color: #bfdbfe; }
[data-theme="dark"] .pr-q .opt.on > b { background: #2563eb; border-color: #2563eb; color: #fff; }
[data-theme="dark"] .pr-photo { background: #16233f; border-color: #2c4a7e; }
[data-theme="dark"] .pr-blank-line .ok { background: #0f2a1a; }
[data-theme="dark"] .pr-blank-line .no { background: #2a1414; }
@media (max-width: 720px) {
  .pr-scope { flex-wrap: wrap; }
  .pr-scope .btn { width: 100%; }
  .pr-blank { flex: 1 1 100%; }
  .pr-photo img { width: 52px; height: 52px; }
  .pr-submit .btn { width: 100%; }
}

/* ==================================================================
 * 需求 120：答卷批改（老师端）
 * 页面骨架是「三步 → 选人 → 传图 → 核对」，所以样式也按这三段组织：
 * 步骤条 .ag-st、学生标签 .ag-chips、批改结果 .ag-row。
 * 照片上的勾叉 .ag-mk 用绝对定位贴到 OCR 给的 y 坐标上，
 * 不能用「按题号顺序往下排」—— 拍歪的照片会全部错位。
 * ================================================================== */
.ag-steps { display: flex; gap: 8px; margin: 4px 0 14px; }
.ag-st {
  flex: 1; display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: 11px; background: var(--bg); border: 1px solid var(--line);
}
.ag-st i {
  width: 22px; height: 22px; flex: none; border-radius: 50%; font-style: normal;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: #e8eef8; color: var(--sub);
}
.ag-st b { display: block; font-size: 12.5px; color: var(--txt); font-weight: 600; }
.ag-st small { display: block; font-size: 11px; color: var(--sub); }
.ag-st.on { border-color: var(--blue3); box-shadow: 0 0 0 3px rgba(59,130,246,.1); background: #fff; }
.ag-st.on i { background: var(--blue2); color: #fff; }
.ag-st.done i { background: #dcfce7; color: #15803d; }

.ag-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ag-pick .field { margin: 0; }
.ag-pick select { min-width: 320px; }
.ag-chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); }
.ag-chk input { accent-color: var(--blue2); }

.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--txt);
  transition: .14s;
}
.ag-chip:hover { border-color: var(--blue4); }
.ag-chip.on { border-color: var(--blue2); background: var(--tint1); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ag-chip b { font-size: 13px; font-weight: 600; }
.ag-chip em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 20px; }
.ag-chip em.ok { background: #dcfce7; color: #15803d; }
.ag-chip em.wait { background: #fef3c7; color: #a16207; }
.ag-chip em.none { background: #f1f5f9; color: var(--muted); }

.ag-warn {
  padding: 13px 16px; border-radius: 11px; background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; font-size: 13px; line-height: 1.85;
}

.ag-upcard { margin-top: 4px; }
.ag-drop {
  border: 2px dashed #cfdcf2; border-radius: 14px; padding: 26px 18px; text-align: center;
  cursor: pointer; transition: .15s; background: #fbfdff;
}
.ag-drop:hover, .ag-drop.hot { border-color: var(--blue3); background: var(--tint1); }
.ag-drop-in { display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; }
.ag-ico { font-size: 26px; }
.ag-drop-in b { font-size: 14px; color: var(--txt); }
.ag-drop-in small { font-size: 12px; color: var(--sub); }

.ag-thumbs { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.ag-th { position: relative; width: 92px; height: 122px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.ag-th img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ag-th i {
  position: absolute; left: 5px; top: 5px; font-style: normal; font-size: 11px;
  width: 18px; height: 18px; border-radius: 50%; background: rgba(15,23,42,.62);
  color: #fff; display: grid; place-items: center;
}

.ag-sum { display: flex; align-items: center; gap: 22px; padding: 12px 4px 14px; flex-wrap: wrap; }
.ag-sum-n { text-align: center; min-width: 62px; }
.ag-sum-n b { display: block; font-size: 23px; line-height: 1.1; color: var(--txt); font-variant-numeric: tabular-nums; }
.ag-sum-n small { font-size: 11.5px; color: var(--sub); }
.ag-sum-n.ok b { color: #15803d; }
.ag-sum-n.no b { color: var(--red); }
.ag-sum-n.warn b { color: var(--amber); }
.ag-sum-e { margin-left: auto; font-size: 12px; color: var(--sub); }

.ag-shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 8px; }
.ag-shot { position: relative; flex: none; width: 300px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ag-shot img { display: block; width: 100%; }
.ag-shot-no {
  position: absolute; left: 8px; top: 8px; font-size: 11px; padding: 1px 8px;
  border-radius: 20px; background: rgba(255,255,255,.92); color: var(--sub);
}
/* 勾叉：贴在每一行作答的右侧。top 由 JS 按 (1-y) 算好，这里只管长相 */
.ag-mk {
  position: absolute; right: 8px; font-style: normal; font-size: 15px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  transform: scale(1.35); transform-origin: center;
}
.ag-mk em {
  position: absolute; left: 26px; font-style: normal; font-size: 11px; font-weight: 600;
  color: inherit; white-space: nowrap;
}
.ag-mk.ok { color: #dc2626; }      /* 中国习惯：对号用红笔 */
.ag-mk.no { color: #1d4ed8; }
.ag-mk.half { color: #d97706; }

.ag-list { display: flex; flex-direction: column; gap: 8px; }
.ag-row {
  display: flex; gap: 12px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; align-items: flex-start;
}
.ag-row.no { background: #fffafa; border-color: #f3dada; }
.ag-row.half { background: #fffdf5; border-color: #f4e6c8; }
.ag-row-n { width: 40px; flex: none; text-align: center; }
.ag-row-n b { display: block; font-size: 15px; color: var(--txt); font-variant-numeric: tabular-nums; }
.ag-row-n small { font-size: 10.5px; color: var(--muted); }
.ag-row-b { flex: 1; min-width: 0; }
.ag-row-stem { font-size: 13px; color: var(--txt); line-height: 1.6; }
.ag-row-ans { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 5px; }
.ag-row-ans .lbl { font-size: 11px; color: var(--muted); }
.ag-row-ans .stu { font-size: 13px; color: var(--txt); font-weight: 600; }
.ag-row-ans .exp { font-size: 12.5px; color: #15803d; }
.ag-row-why { margin-top: 4px; font-size: 12px; color: var(--sub); }
.ag-row-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.ag-flag { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 5px; }
.ag-flag.no { background: #fee2e2; color: #b91c1c; }
.ag-flag.warn { background: #fef3c7; color: #a16207; }
.ag-flag.ai { background: #ede9fe; color: #6d28d9; }
.ag-row-s { width: 92px; flex: none; display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; }
.ag-row-s input {
  width: 54px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-weight: 600; text-align: center; color: var(--txt); background: #fff;
}
.ag-row-s small { font-size: 11.5px; color: var(--sub); }

.ag-done { padding: 26px; text-align: center; }
.ag-done b { display: block; font-size: 17px; color: #15803d; margin-bottom: 6px; }
.ag-done small { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 16px; }

[data-theme="dark"] .ag-st { background: #0e1728; }
[data-theme="dark"] .ag-st.on { background: #14203a; }
[data-theme="dark"] .ag-chip { background: #0e1728; }
[data-theme="dark"] .ag-chip.on { background: #14243f; }
[data-theme="dark"] .ag-chip em.none { background: #1e293b; }
[data-theme="dark"] .ag-drop { background: #0e1728; border-color: #24334f; }
[data-theme="dark"] .ag-drop:hover, [data-theme="dark"] .ag-drop.hot { background: #14243f; }
[data-theme="dark"] .ag-row { background: #0e1728; }
[data-theme="dark"] .ag-row.no { background: #241618; border-color: #4c2020; }
[data-theme="dark"] .ag-row.half { background: #241f14; border-color: #4a3a1c; }
[data-theme="dark"] .ag-row-s input { background: #14203a; color: #e2e8f0; }
[data-theme="dark"] .ag-warn { background: #241f14; border-color: #4a3a1c; color: #fcd34d; }
[data-theme="dark"] .ag-shot-no { background: rgba(14,23,40,.9); }

/* ==================================================================
 * 需求 198：逐题核对工作台（左图右评析 + 底部三档）
 * ------------------------------------------------------------------
 * 左栏的「这一题」是 background 窗口，不是 <img>：
 *   background-size: 100/cw%       把整页放大到只露出 cw 宽的横向「一条」
 *   background-position: t/(1-ch)% 把这条竖着挪到该题的位置
 * 翻页时浏览器只换两个百分比，没有一次网络请求、也不落临时文件。
 * ================================================================== */
.agwb { display: grid; grid-template-columns: minmax(260px, 42%) 1fr; gap: 16px; align-items: start; }
.agwb-l { position: sticky; top: 10px; }
.agwb-shot {
  border-radius: 12px; border: 1px solid var(--line); background-color: #fff;
  background-repeat: no-repeat; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
/* 锚点那条蓝线：告诉老师「系统认为这一行就是第 N 题」。
   认错了要能一眼看出来，而不是只能怀疑整页。 */
.agwb-shot::after {
  content: ''; position: absolute; left: 0; right: 0; top: 32%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .55) 12%, rgba(37, 99, 235, .55) 88%, transparent);
}
.agwb-none {
  padding: 40px 16px; text-align: center; font-size: 12.5px; color: var(--sub);
  border: 1px dashed var(--line); border-radius: 12px; background: var(--tint1);
}
.agwb-l .ag-shot { width: 100%; }
.agwb-tools { display: flex; gap: 6px; margin-top: 8px; }
.agwb-tools .btn { flex: 1; justify-content: center; }
.agwb-cap { margin-top: 6px; font-size: 11.4px; color: var(--muted); line-height: 1.6; }

.agwb-r { min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.agwb-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.agwb-no {
  font-size: 15px; font-weight: 700; color: var(--txt); min-width: 26px; text-align: center;
  padding: 1px 8px; border-radius: 8px; background: var(--tint1);
}
.agwb-k { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; letter-spacing: .03em; }
.agwb-q { font-size: 13px; line-height: 1.8; color: var(--txt); word-break: break-word; }
.agwb-stu .agwb-q { font-weight: 600; }
.agwb-exp .agwb-q { color: #15803d; }
.agwb-empty { color: var(--muted); font-style: normal; }
.agwb-score { font-size: 19px; font-variant-numeric: tabular-nums; color: var(--blue2); }
.agwb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.agwb-steps li {
  display: flex; align-items: baseline; gap: 7px; font-size: 12.2px; line-height: 1.7;
  padding: 5px 9px; border-radius: 8px; background: var(--tint1);
}
.agwb-steps li i { font-style: normal; font-weight: 700; }
.agwb-steps li.ok i { color: #dc2626; }
.agwb-steps li.no i { color: #1d4ed8; }
.agwb-steps li.no { background: #fef2f2; }
.agwb-steps li em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11.4px; }

.agwb-b {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.agv { display: flex; gap: 6px; }
.agv button {
  min-width: 74px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 13px; color: var(--txt); cursor: pointer; transition: .14s;
}
.agv button:hover { border-color: var(--blue4); }
.agv button.on[data-agv="full"] { border-color: #dc2626; background: #fef2f2; color: #b91c1c; box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.agv button.on[data-agv="half"] { border-color: #d97706; background: #fffbeb; color: #a16207; box-shadow: 0 0 0 3px rgba(217, 119, 6, .12); }
.agv button.on[data-agv="wrong"] { border-color: #1d4ed8; background: #eff6ff; color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); }
.agwb-sc { display: inline-flex; align-items: baseline; gap: 5px; }
.agwb-sc input {
  width: 62px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 600; text-align: center; color: var(--txt); background: #fff;
}
.agwb-sc small { font-size: 11.6px; color: var(--sub); }
.agwb-sc i { font-style: normal; }

.agwb-need { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 9px; }
.agwb-need .agwb-k { margin: 0; }
.ag-need {
  padding: 4px 10px; border-radius: 20px; border: 1px solid #fcd34d; background: #fffbeb;
  color: #a16207; font: inherit; font-size: 12px; cursor: pointer;
}
.ag-need:hover { background: #fef3c7; }

.agwb-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.agn {
  position: relative; min-width: 38px; height: 30px; padding: 0 7px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12.2px;
  color: var(--txt); cursor: pointer; font-variant-numeric: tabular-nums;
}
.agn.ok { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.agn.half { border-color: #fcd34d; background: #fffbeb; color: #a16207; }
.agn.no { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.agn.cur { box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); border-color: var(--blue2); }
.agn i { position: absolute; right: -2px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }

.agwbd > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--txt);
  padding: 2px 0; list-style: none;
}
.agwbd > summary::-webkit-details-marker { display: none; }
.agwbd > summary::before { content: '▸ '; color: var(--muted); }
.agwbd[open] > summary::before { content: '▾ '; }
.agwbd[open] > summary { margin-bottom: 10px; }
.ag-row.jump { cursor: pointer; }
.ag-row.jump:hover { border-color: var(--blue4); }

[data-theme="dark"] .agwb-shot { background-color: #0b1220; }
[data-theme="dark"] .agv button.on[data-agv="full"] { background: #2a1414; border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .agv button.on[data-agv="half"] { background: #241f14; border-color: #78530f; color: #fcd34d; }
[data-theme="dark"] .agv button.on[data-agv="wrong"] { background: #14243f; border-color: #2c4a7e; color: #93c5fd; }
[data-theme="dark"] .agv button { background: #0e1728; }
[data-theme="dark"] .agn { background: #0e1728; }
[data-theme="dark"] .agn.ok { background: #2a1414; border-color: #6b2020; }
[data-theme="dark"] .agn.no { background: #14243f; border-color: #24406e; }
[data-theme="dark"] .agn.half { background: #241f14; border-color: #6b5314; }
[data-theme="dark"] .agwb-steps li { background: #14203a; }
[data-theme="dark"] .agwb-steps li.no { background: #2a1414; }
[data-theme="dark"] .agwb-sc input { background: #14203a; color: #e2e8f0; }
[data-theme="dark"] .ag-need { background: #241f14; border-color: #6b5314; }
[data-theme="dark"] .agwb-no { background: #14203a; }
@media (max-width: 860px) {
  .agwb { grid-template-columns: 1fr; }
  .agwb-l { position: static; }
  .agv { width: 100%; }
  .agv button { flex: 1; }
}

/* ==================================================================
 * 从题库选题组卷（老师端 · 需求 123）
 * ------------------------------------------------------------------
 * 弹窗内两栏：左边题库（可滚动、可筛选、可翻页），右边组卷篮（不动）。
 * 篮子固定在右侧，老师一边翻题一边能看见「已经挑了几题、多少分」。
 * ================================================================== */
.czb { display: flex; flex-direction: column; gap: 10px; }
.czb-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.czb-filters select, .czb-filters input {
  height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font: inherit; font-size: 13px;
}
.czb-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--tint1); border: 1px solid var(--line); }
.czb-tabs button {
  border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 9px; cursor: pointer; transition: all .16s;
}
.czb-tabs button:hover { color: var(--blue2); }
.czb-tabs button.on { background: var(--card); color: var(--blue1); box-shadow: 0 1px 6px rgba(30, 58, 138, .14); }
[data-theme="dark"] .czb-tabs button.on { background: #16294a; color: #bfdbfe; }

.czb-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.czb-list {
  max-height: 47vh; overflow: auto; padding: 2px 6px 2px 2px;
  display: flex; flex-direction: column; gap: 8px;
}
.czb-tip { padding: 22px 4px; text-align: center; color: var(--muted); font-size: 13px; }
.czb-it { border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px 10px; background: var(--card); }
.czb-it.on { border-color: var(--blue2); background: var(--tint1); }
.czb-it-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.czb-stem { margin-top: 6px; font-size: 13.5px; line-height: 1.75; color: var(--txt); word-break: break-word; }
.czb-stem img, .czb-stem .q-img { display: block; max-width: 76%; max-height: 170px; margin: 6px 0; border-radius: 4px; }
.czb-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--txt); }
.czb-opts span { min-width: 0; word-break: break-word; }
.czb-opts b { margin-right: 3px; color: var(--blue1); }
[data-theme="dark"] .czb-opts b { color: #bfdbfe; }
.czb-opts img { display: inline-block; max-width: 100%; max-height: 90px; vertical-align: middle; border-radius: 3px; }
.czb-ans { margin-top: 5px; font-size: 12.5px; }
.czb-ans summary { cursor: pointer; color: var(--blue2); width: fit-content; }
.czb-ans-b { margin-top: 4px; color: #15803d; }
[data-theme="dark"] .czb-ans-b { color: #86efac; }
.czb-ans-e { margin-top: 2px; color: var(--sub); line-height: 1.7; }
.czb-pager { display: flex; align-items: center; gap: 8px; padding: 6px 2px 2px; }

.czb-side {
  border: 1px solid var(--line); border-radius: 12px; background: var(--tint1);
  padding: 9px 10px; display: flex; flex-direction: column; gap: 7px;
}
.czb-side-h { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt); }
.czb-side-h b { font-size: 14px; color: var(--blue1); }
[data-theme="dark"] .czb-side-h b { color: #bfdbfe; }
.czb-side-h span { font-size: 12px; color: var(--sub); }
.czb-basket {
  max-height: 40vh; overflow: auto; display: flex; flex-direction: column; gap: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 6px;
}
.czb-bk-empty { padding: 20px 8px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.czb-bk-empty span { font-size: 11.5px; }
.czb-bk { display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 7px; }
.czb-bk:hover { background: var(--tint1); }
.czb-bk-n {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--tint2); color: var(--blue1);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .czb-bk-n { background: #1b2c4d; color: #bfdbfe; }
.czb-bk-t { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.czb-bk-s {
  flex: none; width: 42px; padding: 2px 3px; text-align: center; font: inherit; font-size: 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--txt);
}
.czb-bk-b {
  flex: none; width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent;
  color: var(--sub); font: inherit; font-size: 12px; line-height: 1; cursor: pointer;
}
.czb-bk-b:hover { background: var(--tint2); color: var(--blue1); }
.czb-bk-b[disabled] { opacity: .3; cursor: default; }
.czb-side-f { display: flex; align-items: center; gap: 5px; }
.czb-side-f input {
  width: 52px; padding: 3px 5px; text-align: center; font: inherit; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--txt);
}

.czb-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.czb-foot label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); }
.czb-foot input, .czb-foot select {
  height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font: inherit; font-size: 13px;
}
.czb-foot .czb-ttl { flex: 1; min-width: 260px; }
.czb-foot .czb-ttl input { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .czb-main { grid-template-columns: 1fr; }
  .czb-list { max-height: 38vh; }
  .czb-basket { max-height: 22vh; }
}

/* ==================================================================
 * 批改台账（需求 124）：页签 / 分析报告 / 错题本 / 批改详情 / 批量批改
 * ------------------------------------------------------------------
 * 这一屏的信息密度比别处高（老师要在几十份里找「哪几道该讲」），
 * 所以统一用「大数字 + 细条 + 标签」三层：先看结论，再看比例，最后看细节。
 * ================================================================== */
.ag-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--tint1); border: 1px solid var(--line); }
.ag-tabs button {
  border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 13px; font-weight: 600;
  padding: 5px 11px; border-radius: 9px; cursor: pointer; transition: all .16s; white-space: nowrap;
}
.ag-tabs button:hover { color: var(--blue2); }
.ag-tabs button.on { background: var(--card); color: var(--blue1); box-shadow: 0 1px 6px rgba(30, 58, 138, .14); }
[data-theme="dark"] .ag-tabs button.on { background: #16294a; color: #bfdbfe; }

/* ---------------- 分析报告 ---------------- */
.agr-load { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.agr-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 6px; }
.agr-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--tint1); }
.agr-kpi b { display: block; font-size: 22px; line-height: 1.25; color: var(--blue1); }
.agr-kpi b em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 400; }
.agr-kpi small { font-size: 11.5px; color: var(--sub); }
.agr-kpi.ok b { color: #15803d; }
.agr-kpi.no b { color: #b91c1c; }
[data-theme="dark"] .agr-kpi b { color: #bfdbfe; }

.agr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agr-box h4 { font-size: 13px; color: var(--txt); margin: 0 0 8px; font-weight: 700; }
.agr-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 76px; align-items: center; gap: 8px; margin-bottom: 6px; }
.agr-lb { font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.agr-track { display: block; height: 9px; border-radius: 6px; background: var(--bg2); overflow: hidden; }
.agr-bar { display: block; height: 100%; border-radius: 6px; background: var(--blue2); min-width: 2px; transition: width .3s; }
.agr-bar.green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.agr-bar.red { background: linear-gradient(90deg, #dc2626, #f87171); }
.agr-bar.amber { background: linear-gradient(90deg, #d97706, #fbbf24); }
.agr-bar.gray { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.agr-n { font-size: 12.5px; color: var(--txt); text-align: right; }
.agr-n em { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 11.5px; }

.agr-qs { display: flex; flex-direction: column; gap: 3px; }
.agr-qrow {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px minmax(90px, .8fr) 70px;
  align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 12.5px;
}
.agr-qrow.low { background: rgba(220, 38, 38, .07); }
.agr-qno { font-weight: 700; color: var(--blue1); text-align: center; }
[data-theme="dark"] .agr-qno { color: #bfdbfe; }
.agr-qstem { color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agr-qt { font-size: 11.5px; color: var(--muted); }
.agr-qrate { text-align: right; font-weight: 700; color: var(--txt); }
.agr-qrate em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }

.agr-kids { display: flex; flex-direction: column; gap: 5px; }
.agr-kid { display: grid; grid-template-columns: minmax(120px, 1fr) 84px minmax(90px, .9fr) 52px; align-items: center; gap: 8px; font-size: 12.5px; }
.agr-kid b { color: var(--txt); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agr-kid-n { color: var(--sub); font-size: 11.5px; }
.agr-tbl td, .agr-tbl th { font-size: 12.5px; }

/* ---------------- 错题本 ---------------- */
.agw-kinds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.agw-kchip {
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 20px; cursor: pointer;
}
.agw-kchip:hover { border-color: var(--blue4); }
.agw-kchip.on { background: var(--blue1); border-color: var(--blue1); color: #fff; }
.agw-kchip.red.on { background: #b91c1c; border-color: #b91c1c; }
.agw-kchip.amber.on { background: #b45309; border-color: #b45309; }
.agw-kchip.blue.on { background: #1d4ed8; border-color: #1d4ed8; }
.agw-kchip.gray.on { background: #475569; border-color: #475569; }
.agw-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.agw-sel, .agw-inp {
  height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font: inherit; font-size: 12.5px;
}
.agw-inp { width: 180px; }
.agw-list { display: flex; flex-direction: column; gap: 8px; }
.agw-it { border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px 10px; background: var(--card); }
.agw-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.agw-sc { font-size: 15px; color: #b91c1c; }
.agw-sc.half { color: #b45309; }
.agw-sc em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.agw-stem { margin-top: 5px; font-size: 13px; line-height: 1.7; color: var(--txt); }
.agw-stem img, .agw-stem .q-img { display: block; max-width: 72%; max-height: 160px; margin: 5px 0; border-radius: 4px; }
.agw-ans { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; }
.agw-ans .lbl { font-size: 11px; color: var(--muted); }
.agw-ans b { font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.agw-ans b.no { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.agw-ans b.ok { background: rgba(22, 163, 74, .12); color: #15803d; }
[data-theme="dark"] .agw-ans b.no { color: #fca5a5; }
[data-theme="dark"] .agw-ans b.ok { color: #86efac; }
.agw-why { margin-top: 4px; font-size: 12px; color: var(--sub); }
.agw-tip { margin-top: 4px; font-size: 12px; color: #1d4ed8; line-height: 1.7; }
[data-theme="dark"] .agw-tip { color: #93c5fd; }

/* ---------------- 批量批改 ---------------- */
.agb-tip { font-size: 12.5px; line-height: 1.8; color: var(--sub); background: var(--tint1); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.agb-list { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.agb-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.agb-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agb-n { font-size: 11.5px; color: var(--muted); }
.agb-n.ok { color: #15803d; font-weight: 600; }
.agb-sum { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.agb-tblwrap { max-height: 50vh; overflow: auto; }
.agb-tblwrap td, .agb-tblwrap th { font-size: 12.5px; }

/* ---------------- 批改详情（全屏浮层） ---------------- */
.agd {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(10, 22, 48, .55); backdrop-filter: blur(2px);
}
.agd-box {
  width: min(1180px, 98vw); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(9, 20, 45, .34); border: 1px solid var(--line);
}
.agd-hd { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.agd-hd b { font-size: 15px; color: var(--txt); }
.agd-hd small { display: block; font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.agd-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .9fr); flex: 1; min-height: 0; }
.agd-left { overflow: auto; background: #eef2f7; padding: 14px; }
[data-theme="dark"] .agd-left { background: #0e1728; }
.agd-right { overflow: auto; padding: 14px 16px; }
.agd-pic { margin: 0 0 12px; }
.agd-pic img { width: 100%; display: block; border-radius: 6px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .16); }
.agd-pic figcaption { text-align: center; font-size: 11.5px; color: var(--sub); margin-top: 6px; }
.agd-nopic { padding: 40px 16px; text-align: center; color: var(--sub); font-size: 13px; }
.agd-nopic small { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }

.agd-score { border: 1px solid var(--line); border-radius: 13px; background: var(--tint1); padding: 12px 14px; }
.agd-score-n { display: flex; align-items: baseline; gap: 4px; }
.agd-score-n b { font-size: 30px; line-height: 1.1; color: var(--blue1); }
.agd-score-n em { font-style: normal; font-size: 14px; color: var(--muted); }
[data-theme="dark"] .agd-score-n b { color: #bfdbfe; }
.agd-score-m { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.agd-pct { font-size: 17px; font-weight: 700; color: var(--txt); }
.agd-score-s { margin-top: 6px; font-size: 11.5px; color: var(--sub); }

.agd-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.agd-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 58px 54px; align-items: center; gap: 6px;
  padding: 5px 7px; border-radius: 8px; font-size: 12.5px;
}
.agd-row.full { background: rgba(22, 163, 74, .09); }
.agd-row.half { background: rgba(217, 119, 6, .11); }
.agd-row.wrong { background: rgba(220, 38, 38, .09); }
.agd-row-n { font-weight: 700; color: var(--blue1); text-align: center; }
[data-theme="dark"] .agd-row-n { color: #bfdbfe; }
.agd-row-t { color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agd-row-v { font-size: 11.5px; color: var(--sub); text-align: right; }
.agd-row-s { text-align: right; font-weight: 700; color: var(--txt); }
.agd-row-x { display: flex; gap: 14px; padding: 0 7px 5px 37px; font-size: 11.5px; color: var(--sub); flex-wrap: wrap; }

@media (max-width: 900px) {
  .agr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agr-grid { grid-template-columns: 1fr; }
  .agd-body { grid-template-columns: 1fr; }
  .agd-left { max-height: 40vh; }
  .agr-qrow { grid-template-columns: 26px minmax(0, 1fr) 60px; }
  .agr-qrow .agr-qt { display: none; }
}

/* 打印批改详情：只印这一张，不印侧边栏和背后的列表 */
@media print {
  body.agd-print > *:not(#agd) { display: none !important; }
  body.agd-print .agd { position: static; display: block; padding: 0; background: #fff; backdrop-filter: none; }
  body.agd-print .agd-box { width: 100%; max-height: none; box-shadow: none; border: 0; }
  body.agd-print .agd-left, body.agd-print .agd-right { overflow: visible; background: #fff; }
  body.agd-print .agd-hd .btn { display: none; }
}

/* 打印分析报告：只印内容区，侧边栏 / 顶栏 / 操作按钮都不印 */
@media print {
  body.agr-print .sidebar,
  body.agr-print .topbar,
  body.agr-print #toast,
  body.agr-print .mask,
  body.agr-print .ag-tabs,
  body.agr-print .card-h .btn,
  body.agr-print .card-h a.btn { display: none !important; }
  body.agr-print .layout { display: block; }
  body.agr-print .main { margin: 0 !important; padding: 0 !important; }
  body.agr-print .card { box-shadow: none; border-color: #d8dee9; break-inside: avoid; margin-bottom: 10px; }
  body.agr-print .agr-kpi { background: #f8fafc; }
}

/* ==================================================================
 * 需求 125 · 特色教辅「讲义版式」
 * ------------------------------------------------------------------
 * 照片里那几页的观感，靠的是：讲次头（大标题 + 圆形讲次号）、浅色底框里的
 * 知识导航、树状缩进的知识结构、编号卡片的锦囊、侧边旁白、橙色易错提醒、
 * 以及「典例精讲 / 随堂练习 / 课后巩固」这几条深色分隔标题。
 * 纸面永远是白底黑字（深色主题下也不反色）—— 它要印出来。
 * ================================================================== */
/* ---------- 版式卡片（挑模版那一步） ---------- */
.aid-card.lec-card .aid-ic { font-size: 21px; }
.aid-card.lec-card.on { border-color: #2e8b57; box-shadow: inset 0 0 0 1px #2e8b57; background: rgba(46, 139, 87, .07); }
[data-theme="dark"] .aid-card.lec-card.on { background: rgba(52, 211, 153, .12); }

/* ---------- 主题输入行 ---------- */
.lec-topic-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--tint1); border: 1px dashed var(--blue4); }
.lec-topic-lb { font-size: 13px; font-weight: 600; color: var(--blue1); white-space: nowrap; }
[data-theme="dark"] .lec-topic-lb { color: var(--blue4); }
.lec-topic-row input { flex: 0 1 280px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt); }
.lec-topic-row input:focus { outline: none; border-color: var(--blue2); }

/* ---------- 预览壳 ---------- */
.lec-acts { flex-wrap: wrap; gap: 8px; }
.lec-ver-sw { display: inline-flex; gap: 0; }
.lec-ver-sw .btn.sm { border-radius: 0; }
.lec-ver-sw .btn.sm:first-child { border-radius: 8px 0 0 8px; }
.lec-ver-sw .btn.sm:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }

/* ---------- 纸面底座 ---------- */
.lec-stage { background: #e9eef4; border-radius: 12px; padding: 16px; overflow: auto;
  max-height: none; }
[data-theme="dark"] .lec-stage { background: #0e1728; }
.lec-page {
  width: 210mm; min-height: 297mm; margin: 0 auto; padding: 18mm 16mm 14mm;
  background: #fff; color: #1f2937; border-radius: 3px;
  box-shadow: 0 8px 28px rgba(15, 34, 63, .18);
  font-family: var(--doc-song);
  font-size: var(--doc-fs); line-height: var(--doc-lh); position: relative; overflow: hidden;
}
.lec-page * { box-sizing: border-box; }
/* 英文、数字、算式统一 Times New Roman：宋体自带的西文字形偏窄，整页看好似没排过版 */
.lec-page b, .lec-page strong { font-weight: 700; }

/* ---------- 讲次头 ---------- */
.lec-top { display: flex; align-items: center; gap: 12px; padding-bottom: 10px;
  border-bottom: 2px solid #d7e6dd; margin-bottom: 14px; }
.lec-top-l { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.lec-mod { display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 10px 3px;
  border-radius: 999px; border: 1.5px solid currentColor; font-size: var(--doc-fs); letter-spacing: 1px; }
.lec-mod b { font-size: var(--doc-fs-xl); font-weight: 800; }
.lec-mod i { font-style: normal; font-size: var(--doc-fs-sm); opacity: .85; }
/* 文档主标题：行楷。字距收到 1px —— 行楷本身连笔，再加字距会散架 */
.lec-title { font-size: var(--doc-fs-title); font-weight: 700; letter-spacing: 1px; line-height: 1.3;
  font-family: var(--doc-xing); margin: 0; }
.lec-top-r { display: flex; align-items: center; gap: 8px; }
.lec-brand { font-size: var(--doc-fs-sm); letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
.lec-ver { font-size: var(--doc-fs-sm); padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; opacity: .8; }

/* ---------- 知识块通用 ---------- */
.lec-b { position: relative; margin: 0 0 13px; }
.lec-tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--doc-fs-sm); font-weight: 700;
  letter-spacing: 1px; padding: 2px 10px; border-radius: 6px 6px 0 0; }
.lec-bctl { position: absolute; right: 0; top: -2px; display: flex; gap: 2px;
  opacity: 0; transition: opacity .15s; z-index: 3; }
.lec-b:hover .lec-bctl, .lec-q:hover .lec-q-tools { opacity: 1; }
.lec-ic { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 5px;
  font-size: 11px; line-height: 1; padding: 3px 5px; cursor: pointer; }
.lec-ic:hover { border-color: #2e8b57; color: #2e8b57; }
.lec-ic.danger:hover { border-color: #dc2626; color: #dc2626; }

/* 学习目标 */
.lec-goal { border-left: 3px solid #8fbfa6; background: #f6fbf8; padding: 8px 12px; border-radius: 0 8px 8px 0; }
.lec-goal .lec-tag { color: #2e8b57; background: #e7f4ec; }
.lec-goal p { margin-top: 4px; font-size: var(--doc-fs); color: #334155; }

/* 知识导航 */
.lec-guide { border: 1px solid #cde5d7; background: #f1f9f4; border-radius: 10px; padding: 0 12px 10px; }
.lec-guide .lec-tag { color: #fff; background: #2e8b57; margin: -1px 0 8px -13px; }
.lec-gd { display: flex; gap: 7px; padding: 5px 0; border-bottom: 1px dashed #d8ece0; }
.lec-gd:last-child { border-bottom: 0; }
.lec-gd-n { flex: 0 0 16px; height: 16px; margin-top: 4px; border-radius: 4px; background: #dcefe3;
  color: #2e8b57; font-size: var(--doc-fs-sm); font-weight: 700; text-align: center; line-height: 16px; }
.lec-gd-b { flex: 1; min-width: 0; }
.lec-gd-b b { font-size: var(--doc-fs); color: #14532d; margin-right: 6px; }
.lec-gd-b p { display: inline; font-size: var(--doc-fs); color: #334155; }
/* 填空下划线：老师写 ___ 就画一段可写的横线 */
.lec-bl { display: inline-block; min-width: 58px; height: 1em; border-bottom: 1px solid #475569;
  margin: 0 3px; vertical-align: baseline; }

/* 知识结构 */
.lec-tree-wrap { border: 1px solid #cde5d7; background: #f7fbf9; border-radius: 10px; padding: 0 12px 10px; }
.lec-tree-wrap .lec-tag { color: #fff; background: #3f7f63; margin: -1px 0 8px -13px; }
.lec-tree { padding-left: 4px; }
/* 用 flex 而不是默认的块：标签是 inline-block，前面有一个换行缩进产生的空白文本节点，
 * 某些行会因此比同级多缩进几个像素，看起来像「楼梯」。flex 会直接丢掉空白节点。 */
.lec-tw { position: relative; display: flex; align-items: center; flex-wrap: wrap;
  padding: 3px 0; font-size: var(--doc-fs); color: #14532d; }
.lec-tw.lv0 { padding-left: 0; }
.lec-tw.lv0::before { display: none; }
.lec-tw.lv1 { padding-left: 34px; }
.lec-tw.lv2 { padding-left: 68px; }
.lec-tw.lv3 { padding-left: 102px; }
.lec-tw::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 50%;
  border-left: 1px solid #b9d9c7; border-bottom: 1px solid #b9d9c7; width: 10px; }
.lec-tw.lv2::before { left: 52px; }
.lec-tw.lv3::before { left: 86px; }
.lec-tw-n { background: #eaf6ef; border: 1px solid #cde5d7; border-radius: 5px; padding: 1px 8px;
  display: inline-block; }
.lec-tw i { font-style: normal; color: #64748b; font-size: var(--doc-fs-sm); margin-left: 6px; }

/* 知识锦囊 */
.lec-boxes { }
.lec-boxes .lec-tag { color: #fff; background: #3f7f63; }
.lec-box-list { display: grid; gap: 8px; margin-top: 0; }
.lec-box { display: flex; gap: 10px; border: 1px solid #dbe7ee; border-radius: 10px; padding: 9px 12px;
  background: #fbfdfe; }
.lec-box-n { flex: 0 0 20px; height: 20px; border-radius: 50%; background: #2e8b57; color: #fff;
  font-size: var(--doc-fs-sm); font-weight: 700; text-align: center; line-height: 20px; margin-top: 2px; }
.lec-box-b b { font-size: var(--doc-fs); color: #1e3a5f; }
.lec-box-b p { font-size: var(--doc-fs); color: #3f4f60; margin-top: 2px; }

/* 旁白 / 易错 / 一句话：旁注用楷体，跟正文的宋体拉开层次，也更像老师手写的批注 */
.lec-aside { background: #f4f8fd; border: 1px solid #d6e6f2; border-left: 3px solid #5b8db8;
  border-radius: 0 10px 10px 0; padding: 8px 12px; font-family: var(--doc-kai); }
.lec-aside b { font-size: var(--doc-fs); color: #1e4d7b; }
.lec-aside p { font-size: var(--doc-fs); color: #3f4f60; margin-top: 2px; }
.lec-warn { background: #fff8ec; border: 1px solid #f3d9a8; border-left: 3px solid #d97706;
  border-radius: 0 10px 10px 0; padding: 8px 12px; font-family: var(--doc-kai); }
.lec-warn b { font-size: var(--doc-fs); color: #b45309; }
.lec-warn p { font-size: var(--doc-fs); color: #4a3a20; margin-top: 2px; }
.lec-note { border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px 12px; }
.lec-note p { font-size: var(--doc-fs); color: #475569; }

/* ---------- 题节 ---------- */
.lec-sec { margin: 16px 0 6px; }
.lec-sec-h { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 7px;
  background: #2e8b57; color: #fff; }
.lec-sec-t { font-size: var(--doc-fs-lg); font-weight: 700; letter-spacing: 1px; font-family: var(--doc-xing); }
.lec-sec-h i { font-style: normal; font-size: var(--doc-fs-sm); opacity: .82; }
.lec-sec-h .lec-ic { margin-left: auto; }
/* 空节：节头照画（入口在），底下留一行说明 + 一片可书写的留白 */
.lec-sec-empty { min-height: 92px; }
.lec-sec-hint { margin: 10px 2px 0; padding: 16px 0 22px; text-align: center; font-size: var(--doc-fs-sm);
  color: #8a94a6; border: 1px dashed #d6dee9; border-radius: 9px; background: rgba(248, 250, 252, .7); }
[data-theme="dark"] .lec-sec-hint { color: #93a0b4; border-color: #35415a; background: rgba(30, 41, 59, .5); }

/* ---------- 需求 212：大专题 / 小专题层级 ---------- */
.lec-topic { margin: 18px 0 10px; border: 1px solid #c7d8e8; border-radius: 10px; overflow: hidden;
  background: rgba(255, 255, 255, .6); }
.lec-topic-h { display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: linear-gradient(90deg, #1e4d7b, #2e6da4); color: #fff; }
.lec-topic-n { font-family: var(--doc-xing); font-size: var(--doc-fs-lg); font-weight: 700; opacity: .85; }
.lec-topic-t { display: flex; flex-direction: column; min-width: 0; }
.lec-topic-t b { font-size: var(--doc-fs-lg); font-family: var(--doc-xing); letter-spacing: 1px; }
.lec-topic-t i { font-style: normal; font-size: var(--doc-fs-sm); opacity: .82; }
.lec-topic-c { font-size: var(--doc-fs-sm); opacity: .85; }
.lec-topic-h .lec-ic { margin-left: auto; }
.lec-topic-h .lec-ic + .lec-ic { margin-left: 0; }
.lec-subs { padding: 4px 10px 10px; }
.lec-sub { margin: 10px 0; border: 1px dashed #b9c8d8; border-radius: 8px; padding: 6px 10px 8px;
  background: rgba(248, 250, 252, .75); }
.lec-sub-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 5px; border-bottom: 1px solid #dbe4ee; }
.lec-sub-n { font-family: var(--doc-xing); font-weight: 700; color: #1e4d7b; }
.lec-sub-h b { font-size: var(--doc-fs); }
.lec-sub-h .lec-ic { margin-left: auto; }
.lec-sub-h .lec-ic + .lec-ic { margin-left: 0; }
.lec-sub-b { padding-top: 4px; }
.lec-sub-q { margin-top: 4px; }
.lec-sub-none { padding: 12px 4px; text-align: center; color: #94a3b8;
  font-size: var(--doc-fs-sm); border: 1px dashed #d6dee9; border-radius: 8px; margin-top: 6px; }
[data-theme="dark"] .lec-topic { border-color: #334155; background: rgba(30, 41, 59, .35); }
[data-theme="dark"] .lec-sub { border-color: #475569; background: rgba(30, 41, 59, .4); }
[data-theme="dark"] .lec-sub-h { border-color: #475569; }
[data-theme="dark"] .lec-sub-n { color: #93c5fd; }

.lec-q { position: relative; padding: 6px 0 2px; }
.lec-q + .lec-q { border-top: 1px dashed #e2e8f0; }
.lec-q-tools { position: absolute; right: 0; top: 3px; display: flex; gap: 2px;
  opacity: 0; transition: opacity .15s; background: #fff; padding: 2px 3px; border-radius: 6px;
  box-shadow: 0 1px 6px rgba(15, 34, 63, .1); }
.lec-q-stem { font-size: var(--doc-fs); color: #1f2937; line-height: var(--doc-lh); padding-right: 4px; }
.lec-q-no { font-weight: 700; margin-right: 2px; }
.lec-q-opt { display: flex; flex-wrap: wrap; gap: 2px 22px; margin-top: 2px; font-size: var(--doc-fs); }
/* 短选项两列并排，省版面（和练习册的观感一致） */
.lec-q-opt.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.lec-q-opt b { font-weight: 700; }
.lec-q-fig { display: block; margin: 6px 0; max-width: 100%; }
/* 答题留白：细横线，像练习册的书写行（行距跟正文 1.5 倍对齐：14px × 1.5 ≈ 21px） */
.lec-q-space { margin: 4px 0 2px; background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 21px, #e6ebf1 21px, #e6ebf1 22px); }
.lec-q-space i { display: block; height: 22px; }
.lec-q-ans { margin-top: 6px; padding: 7px 10px; border-radius: 7px;
  background: #f1f9f4; border: 1px solid #cde5d7; font-size: var(--doc-fs); color: #14532d; }
.lec-q-ans b { color: #2e8b57; }
.lec-q-exp { margin-top: 4px; color: #334155; }
.lec-empty-q { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 18px; text-align: center;
  color: #64748b; font-size: var(--doc-fs-sm); margin: 16px 0; }

/* ---------- 页脚 ---------- */
.lec-foot { display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 8px; border-top: 1px solid #e8eef4;
  font-size: var(--doc-fs-sm); color: #94a3b8; letter-spacing: 1px; }

/* ==================================================================
 * 四套版式主题：只换颜色与几处轮廓，元件结构共用
 * ================================================================== */
/* ① 绿色讲次讲义（照片 1 / 2） */
.lt-green .lec-page { background: linear-gradient(#fff, #fff); }
.lt-green .lec-top { border-bottom-color: #2e8b57; }
.lt-green .lec-mod { color: #2e8b57; }
.lt-green .lec-brand { color: #2e8b57; }
.lt-green .lec-sec-h { background: #1f6f4a; }
.lt-green .lec-q-no { color: #1f6f4a; }

/* ② 水彩知识锦囊（照片 3）：米白底 + 顶部淡淡的水彩晕染，标题更黑更重 */
.lt-ink .lec-page { background:
    radial-gradient(120% 60% at 100% 0%, #eef4f8 0%, transparent 55%),
    radial-gradient(90% 45% at 0% 100%, #f6f2ec 0%, transparent 60%), #fff; }
.lt-ink .lec-top { border-bottom-color: #dfe8ef; align-items: flex-end; }
.lt-ink .lec-mod { flex-direction: column; align-items: center; gap: 0; border-radius: 8px;
  padding: 6px 12px; color: #1e4d7b; background: #fff; border: 1px solid #cfdde8;
  box-shadow: 0 2px 8px rgba(30, 77, 123, .08); }
.lt-ink .lec-mod b { font-size: 15pt; line-height: 1; }
.lt-ink .lec-mod i { font-size: var(--doc-fs-sm); letter-spacing: 2px; }
.lt-ink .lec-title { font-size: 22pt; font-weight: 700; letter-spacing: 1px; color: #17293f; }
.lt-ink .lec-brand { color: #1e4d7b; }
.lt-ink .lec-sec-h { background: #1e4d7b; }
.lt-ink .lec-q-no { color: #1e4d7b; }
.lt-ink .lec-box { border-color: #e3ebf1; background: #fff; box-shadow: 0 1px 0 rgba(30, 77, 123, .04); }
.lt-ink .lec-aside { background: #f7fafc; border-color: #dbe7ee; border-left-color: #1e4d7b; }

/* ③ 紫色内容页（照片 4 / 5） */
.lt-purple .lec-top { border-bottom-color: #e3d8f8; }
.lt-purple .lec-mod { color: #6d4aa8; border-color: #cdb8ee; background: #f6f1fd; }
.lt-purple .lec-title { color: #4c2f7a; }
.lt-purple .lec-brand { color: #8b5cf6; }
.lt-purple .lec-sec-h { background: #6d4aa8; }
.lt-purple .lec-q-no { color: #6d4aa8; }
.lt-purple .lec-guide { border-color: #e3d8f8; background: #faf7fe; }
.lt-purple .lec-guide .lec-tag { background: #8b5cf6; }
.lt-purple .lec-gd { border-bottom-color: #efe8fb; }
.lt-purple .lec-gd-n { background: #f0e9fd; color: #6d4aa8; }
.lt-purple .lec-gd-b b { color: #4c2f7a; }
.lt-purple .lec-tree-wrap { border-color: #e3d8f8; background: #faf7fe; }
.lt-purple .lec-tree-wrap .lec-tag { background: #8b5cf6; }
.lt-purple .lec-boxes .lec-tag { background: #8b5cf6; }
.lt-purple .lec-box-n { background: #8b5cf6; }
.lt-purple .lec-box { border-color: #ece4fa; }
.lt-purple .lec-goal { border-left-color: #a78bfa; background: #faf7fe; }
.lt-purple .lec-goal .lec-tag { background: #f0e9fd; color: #6d4aa8; }
.lt-purple .lec-q-ans { background: #faf7fe; border-color: #e3d8f8; }
.lt-purple .lec-q-ans b { color: #6d4aa8; }

/* ④ 课堂笔记页（照片 6）：绿色顶带 + 虚线小节，右侧留白给学生记 */
.lt-note .lec-page { background: linear-gradient(#fff, #fff); }
.lt-note .lec-top { border-bottom: 8px solid #dff0e6; padding-bottom: 8px; }
.lt-note .lec-mod { color: #2f7d5a; }
.lt-note .lec-brand { color: #2f7d5a; }
.lt-note .lec-sec-h { background: transparent; color: #1f6f4a; padding: 0 0 4px;
  border-bottom: 2px dashed #a8d5bd; border-radius: 0; }
.lt-note .lec-sec-h .lec-ic { margin-left: 8px; }
.lt-note .lec-q-no { color: #1f6f4a; }
.lt-note .lec-guide { background: #f7fbf8; }
.lt-note .lec-q-space { background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 25px, #dfeaf3 25px, #dfeaf3 26px); }

/* ==================================================================
 * ⑤ 专题复习讲义（需求 168）：一讲课，不是一张卷子
 * ------------------------------------------------------------------
 * 版式对齐《板块模型中的动力学问题》那一类高中复习讲义：
 *   讲次封面 → 考情直击 + 方法清单 → 01 知识梳理 → 02 方法突破 → 03 课堂检测 → 04 总结提升
 * 配色只有一支：深蓝 #123a5e 打底，浅蓝 #eaf2f9 铺底纹，橙 #b8701f 只用来标「方法 / 口诀」。
 * 服务端 templates.js 的 renderReview 画的是同一个样子 —— 两边坐标不必一致，
 * 但元件顺序、编号口径、裁切关系必须一致，否则「屏幕上看的」和「打印出来的」会对不上。
 * ================================================================== */
.lt-review .lec-page { padding: 14mm 12mm 12mm; background: #fff; }
.lt-review .lec-q-no { color: #2b6ca3; }

/* 版本签：封面是深蓝横幅，签只能落在页脚上方那块白处（打印时隐藏） */
.lec-rvfl { position: absolute; right: 10mm; bottom: 8mm; z-index: 5; }
.lec-rvfl .lec-ver { color: #2b6ca3; border-color: #bcd3e8; background: #eaf2f9; }

/* ---------- 栏目条：深蓝方块编号 + 中文标题 + 右侧英文 + 底下一根蓝线 ---------- */
.lec-rvbar { display: flex; align-items: center; gap: 9px; margin: 16px 0 10px;
  padding-bottom: 5px; border-bottom: 1px solid #2b6ca3; }
.lec-rvbar b { flex: 0 0 auto; width: 26px; height: 21px; border-radius: 3px; background: #123a5e;
  color: #fff; font-size: 10pt; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lec-rvbar span { font-family: var(--doc-xing); font-size: 13pt; font-weight: 700;
  color: #123a5e; letter-spacing: 1px; }
.lec-rvbar i { margin-left: auto; font-style: normal; font-size: 7.5pt; color: #9fb2c6; letter-spacing: 3px; }

/* ---------- 讲次封面：整幅深蓝，左讲次右标题，右上角一块装饰色 ---------- */
.lec-rvc { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start;
  margin: -14mm -12mm 12px; padding: 22px 26px 16px; background: #123a5e; color: #fff; overflow: hidden; }
/* 首页右上角那块浅一档的色块：照片里封面右侧有一道竖色带，压着它版面才不像 PPT 模板 */
.lec-rvc::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 118px;
  background: #1b4c76; border-left: 3px solid #2f7bb5; z-index: 0; }
.lec-rvc > * { position: relative; z-index: 1; }
.lec-rvc-l { flex: 0 0 96px; padding-right: 14px; border-right: 1px solid #3d6f99; }
.lec-rvc-n { display: block; font-family: var(--doc-xing); font-size: 34pt; line-height: 1; color: #fff; }
.lec-rvc-l i { display: block; margin-top: 8px; font-style: normal; font-size: 7.5pt;
  letter-spacing: 2.4px; color: #7fb0d8; }
.lec-rvc-l span { display: block; margin-top: 3px; font-size: 9.5pt; color: #cfe4f5; }
.lec-rvc-x { font-size: 20pt; }
/* 右边留出 110px 给装饰色块，标题不会压到那道竖色带上 */
.lec-rvc-r { flex: 1; min-width: 0; padding-left: 18px; padding-right: 110px; }
.lec-rvc-k { font-size: 9.5pt; color: #a8cfe9; letter-spacing: .6px; }
.lec-rvc-h { margin: 6px 0 0; font-family: var(--doc-xing); font-size: 19pt; font-weight: 700;
  line-height: 1.25; letter-spacing: 1.2px; color: #fff; }
.lec-rvc-en { margin-top: 7px; font-size: 7.5pt; color: #7fb0d8; letter-spacing: 1.6px; }
.lec-rvc-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lec-rvc-t { font-size: 9pt; color: #cfe4f5; }
/* 底部导语（学习目标那条）：占满一行，上面一条细线压住 */
.lec-rvc-g { flex: 0 0 100%; margin: 16px 0 0; padding-top: 8px; border-top: 1px solid #2f5f88;
  font-size: 9pt; color: #a8cfe9; line-height: 1.6; }

/* ---------- 考情直击：左侧竖排标签 + 三列等高卡 ---------- */
.lec-rve { display: flex; gap: 8px; margin: 12px 0 8px; }
/* 竖排用 writing-mode + text-orientation:upright —— 汉字正立、一个字一个字摞下来。
 * 不用 transform:rotate(90deg)：字会歪着头，印在纸上很别扭（PDF 那边同理，所以是逐个字画）。 */
.lec-rve-lb { flex: 0 0 22px; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 4px;
  background: #123a5e; color: #fff; border-radius: 3px;
  font-family: var(--doc-xing); font-size: 11pt; font-weight: 700; padding: 8px 0; }
.lec-rve-c { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lec-rve-card { border: 1px solid #cfdce8; border-radius: 3px; background: #fcfdff; overflow: hidden; }
.lec-rve-h { display: flex; align-items: center; gap: 6px; padding: 4px 7px;
  background: #eaf2f9; border-bottom: 1px solid #cfdce8;
  font-size: 8.8pt; font-weight: 700; color: #123a5e; }
.lec-rve-h b { font-size: 8pt; color: #2b6ca3; }
.lec-rve-card p { margin: 6px 7px 8px; font-size: 9pt; line-height: 1.55; color: #3d4d5e; }

/* ---------- 方法清单：几条摘要并排，奇浅蓝偶浅黄 ---------- */
.lec-rvm { margin: 4px 0 12px; }
.lec-rvm-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-family: var(--doc-xing); font-size: 10pt; font-weight: 700; color: #123a5e; }
.lec-rvm-h i { margin-left: auto; font-style: normal; font-size: 7.5pt; color: #9fb2c6; letter-spacing: 2px; }
/* 列数跟着条数走（2 条就两列、4 条就四列），和服务端按 ms.length 分列一致 */
.lec-rvm-list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.lec-rvm-i { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px;
  border-radius: 3px; background: #eaf2f9; }
.lec-rvm-i.alt { background: #fdf3e3; }
.lec-rvm-i i { font-style: normal; font-size: 6.8pt; letter-spacing: 1.2px; color: #2b6ca3; }
.lec-rvm-i.alt i { color: #b8701f; }
.lec-rvm-i b { font-size: 9.6pt; color: #1f2d3d; }
.lec-rvm-i span { font-size: 8.4pt; color: #5b6b7c; line-height: 1.5; }

/* ---------- 01 知识梳理：一个考点一张卡（左蓝竖线 + 浅蓝标题条） ---------- */
.lec-rvp-c { margin: 0 0 7px; padding-bottom: 8px; border-left: 3px solid #2b6ca3; }
.lec-rvp-h { display: flex; align-items: center; gap: 10px; padding: 3px 8px; background: #eaf2f9; }
.lec-rvp-h span { font-size: 8.5pt; font-weight: 700; color: #2b6ca3; white-space: nowrap; }
.lec-rvp-h h4 { margin: 0; font-family: var(--doc-xing); font-size: 10pt; font-weight: 700; color: #123a5e; }
.lec-rvp-c > p { margin: 7px 0 0 9px; font-size: 9.5pt; line-height: 1.55; color: #33465a; }
.lec-rvp-c ul { margin: 4px 0 0 9px; padding: 0; list-style: none; }
.lec-rvp-c li { position: relative; padding-left: 10px; font-size: 9pt; line-height: 1.55; color: #5b6b7c; }
.lec-rvp-c li::before { content: '·'; position: absolute; left: 0; top: 0; color: #2b6ca3; font-weight: 700; }

/* ---------- 02 方法突破：一个方法一张卡（橙竖线 + 四步方块 + 口诀条） ---------- */
.lec-rvm2-c { margin: 0 0 10px; padding: 7px 9px 8px 12px; border: 1px solid #cfdce8;
  border-left: 4px solid #b8701f; border-radius: 4px; background: #fcfdff; }
.lec-rvm2-h { display: flex; align-items: center; gap: 8px; }
.lec-rvm2-h span { padding: 1px 6px; border-radius: 3px; background: #fdf3e3; color: #b8701f;
  font-size: 8.5pt; font-weight: 700; white-space: nowrap; }
.lec-rvm2-h h4 { margin: 0; font-family: var(--doc-xing); font-size: 10pt; font-weight: 700; color: #123a5e; }
.lec-rvm2-c > p { margin: 5px 0 0; font-size: 9pt; line-height: 1.55; color: #5b6b7c; }
/* 四步流程：等宽方块 + 中间「›」 */
.lec-rvs { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.lec-rvs-b { flex: 1 1 0; min-width: 0; padding: 4px 6px 5px; border-radius: 3px;
  border: 1px solid #c3d9ec; background: #eaf2f9; }
.lec-rvs-b i { display: block; font-style: normal; font-size: 6.6pt; color: #7fa6c6; letter-spacing: .5px; }
.lec-rvs-b b { display: block; margin-top: 2px; font-size: 9pt; color: #123a5e; line-height: 1.35; }
.lec-rvs-a { flex: 0 0 auto; text-decoration: none; font-size: 11pt; color: #9fb2c6; }
/* 口诀：浅黄底条，左边一个小标签 */
.lec-rvt { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; padding: 4px 8px 5px;
  border-radius: 3px; background: #fdf3e3; }
.lec-rvt b { flex: 0 0 auto; font-size: 8.5pt; color: #b8701f; }
.lec-rvt span { font-size: 9pt; color: #7a4f16; line-height: 1.55; }

/* ---------- 04 总结提升：左「本讲」圆角节点 + 右侧分支 + 归纳表 ---------- */
.lec-rvy { display: flex; align-items: stretch; margin: 10px 0 12px; }
.lec-rvy-root { position: relative; flex: 0 0 74px; align-self: center; padding: 6px 0;
  border-radius: 999px; background: #123a5e; color: #fff; text-align: center;
  font-family: var(--doc-xing); font-size: 11pt; font-weight: 700; letter-spacing: 1px; }
/* 从根节点往右拉一小截横线，接上那一列竖线 */
.lec-rvy-root::after { content: ''; position: absolute; right: -14px; top: 50%; width: 14px;
  border-top: 1px solid #9fb2c6; }
.lec-rvy-br { flex: 1; min-width: 0; margin-left: 27px; padding-left: 13px;
  border-left: 1px solid #9fb2c6; display: flex; flex-direction: column; gap: 6px; }
.lec-rvy-i { position: relative; display: flex; align-items: baseline; gap: 8px; }
.lec-rvy-i::before { content: ''; position: absolute; left: -13px; top: 9px; width: 11px;
  border-top: 1px solid #9fb2c6; }
.lec-rvy-i b { flex: 0 0 auto; padding: 1px 7px; border-radius: 3px; background: #eaf2f9;
  color: #123a5e; font-size: 9pt; }
.lec-rvy-i span { font-size: 8.6pt; color: #5b6b7c; line-height: 1.5; }
.lec-rvtb { margin: 4px 0 10px; }
.lec-rvtb-h { margin-bottom: 5px; font-family: var(--doc-xing); font-size: 9.5pt; font-weight: 700; color: #123a5e; }
.lec-rvtb table { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.lec-rvtb th, .lec-rvtb td { border: 1px solid #cfdce8; padding: 4px 6px; text-align: left; vertical-align: top; }
.lec-rvtb th { background: #eaf2f9; color: #123a5e; font-weight: 700; }
.lec-rvtb th:first-child, .lec-rvtb tbody td:first-child { width: 30%; }
.lec-rvtb tbody td:first-child { color: #123a5e; font-weight: 600; }
.lec-rvtb tbody td:last-child { color: #33465a; }

/* ---------- 03 课堂检测：题节头改成浅蓝带（不再是整条实心绿） ----------
 * 写成 .lec-sec-h.lec-rvsec（两个类）而不是 .lec-rvsec：
 * 四套老版式都有 .lt-xxx .lec-sec-h 这种「两段式」规则，只写一个类会被它们压住。 */
.lec-sec-h.lec-rvsec { padding: 4px 10px; border-radius: 0 6px 6px 0; background: #eaf2f9;
  border-left: 3px solid #123a5e; color: #123a5e; }
.lec-sec-h.lec-rvsec .lec-sec-t { color: #123a5e; font-size: 11pt; }
.lec-sec-h.lec-rvsec i { color: #5b6b7c; opacity: 1; }
.lec-sec-h.lec-rvsec .lec-ic { border-color: #bcd3e8; color: #2b6ca3; background: #fff; }
.lec-rvfoot { border-top-color: #e3ecf5; color: #9fb2c6; font-size: 7.5pt; letter-spacing: 2px; }
.lec-rvfoot .lec-pg { color: #2b6ca3; font-weight: 700; letter-spacing: 1px; }

/* 小屏：纸面按比例缩，不横向撑破布局 */
@media (max-width: 900px) {
  .lec-stage { padding: 8px; }
  .lec-page { width: 100%; min-height: 0; padding: 14px 12px 10px; font-size: 10pt; }
  .lec-title { font-size: 16pt; }
  /* 专题复习讲义：三列卡 / 四步方块在窄屏上会挤成一条缝，全部落成单列 */
  .lec-rvc { margin: -14px -12px 12px; padding: 16px 14px 12px; }
  .lec-rvc-l { flex: 0 0 66px; }
  .lec-rvc-n { font-size: 24pt; }
  .lec-rvc-r { padding-right: 0; }
  .lec-rvc-h { font-size: 15pt; }
  .lec-rvc::after { display: none; }
  .lec-rve { flex-direction: column; }
  .lec-rve-lb { flex: 0 0 auto; writing-mode: horizontal-tb; text-orientation: mixed;
    padding: 4px 10px; letter-spacing: 3px; }
  .lec-rve-c, .lec-rvm-list { grid-template-columns: 1fr; grid-auto-flow: row; }
  .lec-rvs { flex-wrap: wrap; }
  .lec-rvs-b { flex: 1 1 42%; }
  .lec-rvs-a { display: none; }
  .lec-rvy { flex-direction: column; gap: 10px; }
  .lec-rvy-root { flex: 0 0 auto; align-self: flex-start; padding: 6px 22px; }
  .lec-rvy-root::after { display: none; }
  .lec-rvy-br { margin-left: 12px; }
  .lec-rvfl { position: static; display: flex; justify-content: flex-end; padding: 0 0 6px; }
}

/* ---------- 加知识块的选块弹窗 ---------- */
.lec-addb { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin: 12px 0; }
.lec-addb-i { display: flex; flex-direction: column; gap: 3px; text-align: left; align-items: flex-start;
  border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 12px; }
.lec-addb-i span { font-size: 18px; }
.lec-addb-i b { font-size: 13px; color: var(--txt); }
.lec-addb-i i { font-style: normal; font-size: 11.5px; color: var(--sub); line-height: 1.5; }
.lec-addb-i:hover { border-color: #2e8b57; box-shadow: 0 4px 14px rgba(46, 139, 87, .12); }

/* ==================================================================
 * 打印 / 存 PDF：只印纸面那一块
 * 内置预览面板是 iframe，window.open 会被拦，所以走 window.print()
 * ================================================================== */
@media print {
  @page { size: A4; margin: 16mm; }
  body.lec-print * { visibility: hidden !important; }
  body.lec-print .lec-stage, body.lec-print .lec-stage * { visibility: visible !important; }
  body.lec-print .lec-stage { position: absolute; left: 0; top: 0; width: 100%;
    padding: 0; background: #fff; border-radius: 0; }
  body.lec-print .lec-page { width: auto; min-height: 0; margin: 0; padding: 0;
    box-shadow: none; border-radius: 0; }
  body.lec-print .lec-bctl, body.lec-print .lec-q-tools,
  body.lec-print .lec-sec-h .lec-ic { display: none !important; }
  /* 空节的「点 ＋ 挑题」是屏幕上的提示，不印在纸上 */
  body.lec-print .lec-sec-hint, body.lec-print .lec-sec-empty { display: none !important; }
  body.lec-print .lec-q { break-inside: avoid; }
  body.lec-print .lec-sec-h { break-after: avoid; }
  /* 专题复习讲义：答题前纸面 padding 归零，封面不能再按屏幕上的出血负边距走
   * （那会把深蓝横幅推到 @page 的页边距外面被裁掉），版本签也不印 */
  body.lec-print .lec-rvc { margin: 0 0 12px; }
  body.lec-print .lec-rvc::after { display: none; }
  body.lec-print .lec-rvfl { display: none !important; }
  body.lec-print .lec-rvbar { break-after: avoid; }
  body.lec-print .lec-rve, body.lec-print .lec-rvy,
  body.lec-print .lec-rvp-c, body.lec-print .lec-rvm2-c,
  body.lec-print .lec-rvm-list, body.lec-print .lec-rvtb table { break-inside: avoid; }
}

/* ==================================================================
 * 需求 126 · AI 录课台（app.recai.js）
 * ------------------------------------------------------------------
 * 视觉是独立的一套「暖纸面」：米黄底 + 极淡噪点 + 白卡片，
 * 只在 .rcw 里生效，不污染老师端其它页面（那些走蓝色系）。
 * 卡片里的四张缩略图是内联 SVG，没有外部图片依赖，深浅主题都不会裂。
 * ================================================================== */
.rcw {
  --rc-ink: #2c2925; --rc-sub: #8d867c; --rc-mute: #a9a196; --rc-faint: #c3bbae;
  --rc-line: #efe6d9; --rc-line2: #f4ede2;
  --rc-green: #3f8f68; --rc-cream: #f8f3e9;
  position: relative;
  margin: -4px -8px 0; padding: 24px 18px 44px;
  border-radius: 20px; color: var(--rc-ink);
  background:
    radial-gradient(780px 380px at 82% -8%, #fffdf7 0%, rgba(255, 253, 247, 0) 62%),
    radial-gradient(620px 320px at 2% 2%, #fdf8ef 0%, rgba(253, 248, 239, 0) 58%),
    linear-gradient(180deg, #f8f3e9 0%, #f5efe3 100%);
}
/* 极淡的网点：参考稿背景不是纯色，有一层几乎看不出来的纹理 */
.rcw::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 20px;
  background-image: radial-gradient(rgba(150, 128, 96, .13) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(78% 64% at 50% 20%, #000 0%, transparent 82%);
  mask-image: radial-gradient(78% 64% at 50% 20%, #000 0%, transparent 82%);
}
.rcw > * { position: relative; }
.rcw .hide { display: none !important; }

.rc-shell { max-width: 862px; margin: 0 auto; }

/* ---------------- 主面板 ---------------- */
.rc-panel {
  background: #fff; border: 1px solid var(--rc-line); border-radius: 16px;
  padding: 15px 17px 13px;
  box-shadow: 0 1px 2px rgba(60, 44, 24, .03), 0 10px 30px rgba(90, 70, 40, .05);
}
.rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.rc-back {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--rc-line); background: #fff; color: #4a453d;
  font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.rc-back:hover { background: #faf6ee; }
.rc-hd { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rc-hd b { font-size: 16.5px; font-weight: 700; letter-spacing: .3px; font-family: inherit; }
.rc-hd span {
  font-size: 12.5px; color: var(--rc-mute); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.rc-auto {
  margin-left: auto; flex: 0 0 auto; height: 28px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--rc-line); background: #fff; color: #5b554c; font-size: 12.5px;
}
.rc-auto:hover { background: #faf6ee; }
.rc-auto.on { border-color: #cfe3d6; background: #f2f8f4; color: var(--rc-green); }
.rc-x {
  flex: 0 0 26px; width: 26px; height: 26px; border: none; background: transparent;
  color: var(--rc-faint); font-size: 13px;
}
.rc-x:hover { color: #6b655c; }

/* ---------------- 四张画面形式卡 ---------------- */
.rc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.rc-card {
  display: block; text-align: left; padding: 7px 7px 9px;
  border: 1px solid var(--rc-line); border-radius: 11px; background: #fff;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.rc-card:hover:not(.soon) { border-color: #e2d5c1; box-shadow: 0 6px 16px rgba(120, 95, 60, .08); transform: translateY(-1px); }
.rc-card.on { border-color: #cfe3d6; box-shadow: 0 0 0 1px rgba(63, 143, 104, .16); }
.rc-thumb {
  position: relative; display: block; border-radius: 7px; overflow: hidden;
  aspect-ratio: 164 / 84; background: #f7efe3;
}
.rc-thumb svg { display: block; width: 100%; height: 100%; }
.rc-tick {
  position: absolute; top: 6px; right: 6px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--rc-green); color: #fff; font-size: 11px; font-style: normal;
  display: none; place-items: center; box-shadow: 0 2px 6px rgba(47, 110, 82, .35);
}
.rc-card.on .rc-tick { display: grid; }
.rc-soon {
  position: absolute; top: 7px; right: 7px; font-size: 10.5px; font-weight: 500;
  color: #8f887d; background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(120, 100, 70, .08); padding: 1px 7px; border-radius: 5px;
}
.rc-card.soon { opacity: .5; cursor: not-allowed; }
.rc-ct { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.rc-ct b { font-size: 14px; font-weight: 600; }
.rc-ct em { font-style: normal; font-size: 11px; color: var(--rc-mute); }
.rc-lv { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 11px; }
.rc-lv s { width: 3px; border-radius: 1.5px; background: #e0d6c6; }
.rc-lv s:nth-child(1) { height: 5px; }
.rc-lv s:nth-child(2) { height: 8px; }
.rc-lv s:nth-child(3) { height: 11px; }
.rc-lv s.on { background: #b6a48b; }
.rc-card.on .rc-lv s.on { background: #6f9c82; }
.rc-cd { font-size: 11.5px; color: var(--rc-mute); line-height: 1.5; margin-top: 3px; }

/* ---------------- 声音 / 数字人 ---------------- */
.rc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rc-opt {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
  border: 1px solid var(--rc-line); border-radius: 10px; background: #fff;
  font-size: 13px; color: #4b453c; text-align: left; width: 100%;
}
button.rc-opt:hover { background: #faf6ee; }
.rc-opt b { font-weight: 500; }
.rc-oi { color: #8f887d; display: grid; place-items: center; flex: 0 0 16px; }
.rc-opt-v { margin-left: auto; font-size: 12px; color: var(--rc-mute); }
.rc-chev { font-style: normal; color: var(--rc-faint); font-size: 11px; }
.rc-off.dis { cursor: default; }
.rc-off.dis .rc-opt-v { color: var(--rc-faint); }
.rc-sw { flex: 0 0 30px; width: 30px; height: 17px; border-radius: 9px; background: #efe8dc; position: relative; }
.rc-sw i {
  position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* ---------------- 课型胶囊 ---------------- */
.rc-chips { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.rc-chip {
  height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rc-line);
  background: #fff; color: #5b554c; font-size: 12.5px;
}
.rc-chip:hover { background: #faf6ee; border-color: #e2d5c1; }

/* ---------------- 一句话描述框 ---------------- */
.rc-composer {
  margin-top: 13px; background: #fff; border: 1px solid var(--rc-line);
  border-radius: 18px; padding: 11px 14px 9px;
  box-shadow: 0 12px 32px rgba(90, 70, 40, .06);
}
.rc-recipe {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px;
  border-radius: 7px; background: #f2f7f3; border: 1px solid #dbe8de;
  color: #4b7d63; font-size: 12px;
}
.rc-recipe-ic { font-size: 11.5px; }
.rc-recipe-t { font-weight: 500; }
.rc-recipe-fold, .rc-recipe-x { cursor: pointer; color: #92ac9c; font-size: 11px; line-height: 1; }
.rc-recipe-fold { margin-left: 4px; transition: transform .16s; }
.rc-recipe-fold.on { transform: rotate(180deg); }
.rc-recipe-x { margin-left: 6px; }
.rc-recipe-fold:hover, .rc-recipe-x:hover { color: #4b7d63; }

/* 收起状态：只留标题行，形式卡片 / 声音 / 胶囊全藏起来 —— 生成完之后
 * 老师要看的是下面的分镜，这排选择占掉近 300px 太浪费 */
.rc-panel.folded .rc-cards,
.rc-panel.folded .rc-opts,
.rc-panel.folded .rc-chips { display: none; }
.rc-panel.folded .rc-head { margin-bottom: 0; }
#rc-ta {
  display: block; width: 100%; border: none; outline: none; resize: none;
  background: transparent; font-size: 15px; line-height: 1.7; color: var(--rc-ink);
  padding: 9px 2px 5px; min-height: 56px; max-height: 180px;
}
#rc-ta::placeholder { color: #b6afa3; }
.rc-foot { display: flex; align-items: center; gap: 7px; padding-top: 4px; }
.rc-grow { flex: 1; }
.rc-plus {
  width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--rc-line);
  background: #fff; color: #6b655c; font-size: 15px; display: grid; place-items: center;
}
.rc-plus:hover { background: #faf6ee; }
.rc-approve {
  display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px;
  border-radius: 8px; background: #fff; border: none; color: #5b554c; font-size: 12.5px;
}
.rc-approve i { display: grid; place-items: center; color: #8f887d; font-style: normal; }
.rc-approve:hover { background: #faf6ee; }
.rc-model { font-size: 12.5px; color: var(--rc-faint); display: inline-flex; gap: 3px; align-items: center; }
.rc-send {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: #e4ddd1;
  color: #fff; font-size: 17px; display: grid; place-items: center; transition: background .15s;
}
.rc-send.ready, .rc-send.busy { background: #2f2b26; }
.rc-send:disabled { opacity: .6; }
.rc-hint { font-size: 11.5px; color: var(--rc-faint); padding: 3px 2px 1px; }
.rc-load { max-width: 700px; margin: 40px auto; }

/* ---------------- 生成中 ---------------- */
.rc-think {
  max-width: 862px; margin: 14px auto 0; display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; background: #fff; border: 1px solid var(--rc-line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(90, 70, 40, .05);
}
.rc-think-orb { flex: 0 0 44px; width: 44px; height: 44px; position: relative; }
.rc-think-orb i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #efe6d9; border-top-color: var(--rc-green);
  animation: rc-spin 1.05s linear infinite;
}
.rc-think-orb i:nth-child(2) { inset: 7px; animation-duration: 1.5s; border-top-color: #c9a86a; }
.rc-think-orb i:nth-child(3) { inset: 14px; animation-duration: 2s; border-top-color: #b8c8bd; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
.rc-think-tx > b { font-size: 14.5px; }
.rc-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 7px 0 5px; }
.rc-step { font-size: 12px; color: var(--rc-faint); display: inline-flex; align-items: center; gap: 6px; }
.rc-step i { width: 6px; height: 6px; border-radius: 50%; background: #e6ddcf; }
.rc-step.on { color: #6b655c; }
.rc-step.on i { background: var(--rc-green); }
.rc-step.cur { color: var(--rc-green); }

.rc-err {
  max-width: 862px; margin: 14px auto 0; padding: 18px 20px; background: #fff;
  border: 1px solid #f0dcd6; border-radius: 16px; display: flex; align-items: center; gap: 12px;
}
.rc-err b { color: #a8442f; font-size: 14px; }
.rc-err span { font-size: 12.5px; color: var(--rc-sub); }
.rc-err .rc-b { margin-left: auto; }

/* ---------------- 分镜结果 ---------------- */
.rc-out { max-width: 1040px; margin: 0 auto; }
.rc-res {
  margin-top: 15px; background: #fff; border: 1px solid var(--rc-line);
  border-radius: 18px; padding: 15px 17px 13px;
  box-shadow: 0 12px 32px rgba(90, 70, 40, .06);
}
.rc-res-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 11px; border-bottom: 1px dashed var(--rc-line); }
.rc-res-h { min-width: 0; }
.rc-res-h b { font-size: 16px; }
.rc-res-h span { display: block; font-size: 12.5px; color: var(--rc-sub); margin-top: 2px; }
.rc-res-meta { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.rc-pill {
  font-size: 11.5px; color: #6b655c; background: #f9f5ed; border: 1px solid var(--rc-line);
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.rc-pill.g { color: var(--rc-green); background: #f2f8f4; border-color: #d9eadf; }
.rc-pill.y { color: #a5762a; background: #fdf7e9; border-color: #f0e3c7; }

.rc-res-body { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 14px; padding-top: 13px; }
.rc-shots { max-height: 452px; overflow: auto; padding-right: 3px; }
.rc-shot {
  display: flex; gap: 9px; width: 100%; text-align: left; padding: 8px 9px;
  border-radius: 9px; border: 1px solid transparent; background: transparent;
}
.rc-shot:hover { background: #faf7f1; }
.rc-shot.on { background: #f8f3e6; border-color: #e8dcc4; }
.rc-shot-n { font-size: 11px; color: var(--rc-faint); font-weight: 600; padding-top: 1px; font-variant-numeric: tabular-nums; }
.rc-shot-x { min-width: 0; flex: 1; }
.rc-shot-x b {
  display: block; font-size: 13px; font-weight: 600; color: #33302b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-shot-x em { font-style: normal; font-size: 11px; color: var(--rc-mute); }
.rc-shot-end { font-size: 11px; color: var(--rc-faint); text-align: center; padding: 7px 0 2px; }

.rc-stage {
  position: relative; border-radius: 14px; overflow: hidden; background: #12161a;
  aspect-ratio: 16 / 9; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.rc-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.rc-sbh {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255, 255, 255, .52); padding: 9px 14px 0;
}
.rc-sbh i { font-style: normal; }

/* 幻灯片屏 */
.k-slide-in { background: linear-gradient(160deg, #fdf9f1, #f2e7d6); }
.k-slide-in .rc-sbh { color: #b0a493; }
.rc-paper {
  flex: 1; margin: 6px 46px 20px; background: #fff; border-radius: 3px;
  padding: 24px 34px; box-shadow: 0 12px 28px rgba(120, 95, 60, .13);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.rc-paper-k { font-size: 10px; letter-spacing: 2px; color: #c8bfb0; }
.rc-paper h4 {
  font-family: var(--kai); font-size: 25px; color: #2c2925; margin: 7px 0 13px;
  line-height: 1.3; letter-spacing: .5px; font-weight: 600;
}
.rc-paper ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rc-paper li { position: relative; padding-left: 16px; font-size: 14px; color: #4a453c; line-height: 1.6; }
.rc-paper li::before {
  content: ''; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: #cbb081;
}
.rc-paper-f { margin-top: auto; display: flex; gap: 6px; }
.rc-paper-f i { height: 3px; border-radius: 2px; background: #e9dfcd; width: 40px; }
.rc-paper-f i:first-child { background: #3d3831; width: 66px; }

/* 几何动画屏 */
.k-geo-in { background: #1b2026; }
.rc-board {
  flex: 1; position: relative; margin: 2px 16px 14px; border-radius: 10px; overflow: hidden;
  background-color: #171b20;
  background-image: linear-gradient(#282f36 1px, transparent 1px), linear-gradient(90deg, #282f36 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}
.rc-board-t { position: relative; padding: 14px 18px 0; color: #e9eff6; font-size: 17px; letter-spacing: .5px; }
.rc-fig { position: absolute; inset: 0; width: 100%; height: 100%; }
.rc-arc { stroke-dasharray: 220; stroke-dashoffset: 220; animation: rc-draw 1.5s ease .15s forwards; }
@keyframes rc-draw { to { stroke-dashoffset: 0; } }
.rc-board-f { position: absolute; left: 18px; bottom: 13px; display: flex; gap: 8px; flex-wrap: wrap; right: 18px; }
.rc-board-f span {
  font-size: 11.5px; color: #c9d3de; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; padding: 2px 8px;
}

/* 情景视频屏 */
.k-video-in { background: #2b1a11; }
.rc-vid { flex: 1; position: relative; margin: 2px 16px 14px; border-radius: 10px; overflow: hidden; }
.rc-vid-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 58% at 28% 28%, #f8ddbd 0%, rgba(248, 221, 189, 0) 70%),
    radial-gradient(58% 62% at 76% 70%, #cd9668 0%, rgba(205, 150, 104, 0) 72%),
    linear-gradient(150deg, #b57d54 0%, #6d4630 100%);
}
.rc-vid-art::after {
  content: '▶'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .9);
  color: #8d5b3c; display: grid; place-items: center; font-size: 16px; padding-left: 4px;
  box-shadow: 0 8px 24px rgba(60, 30, 10, .3);
}
.rc-vid-cap {
  position: absolute; left: 16px; bottom: 13px; right: 16px; color: #fff;
  text-shadow: 0 1px 8px rgba(50, 25, 10, .5);
}
.rc-vid-cap b { font-size: 16px; display: block; }
.rc-vid-cap span { font-size: 11.5px; opacity: .82; }

/* 动态图解屏 */
.k-diagram-in { background: linear-gradient(180deg, #eef7fc, #d8ecf7); }
.k-diagram-in .rc-sbh { color: #86a5b8; }
.rc-dia {
  flex: 1; margin: 2px 16px 14px; border-radius: 10px; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .58);
  display: flex; flex-direction: column; min-height: 0;
}
.rc-dia-h { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px 0; }
.rc-dia-h b { font-size: 16px; color: #33556b; }
.rc-dia-h em {
  font-style: normal; font-size: 11px; color: #6d95ad;
  background: #e4f1f9; border: 1px solid #cfe4f0; border-radius: 5px; padding: 1px 7px;
}
.rc-dia-svg { flex: 1; width: 100%; min-height: 0; }

/* 播放控制 */
.rc-ctrl { display: flex; align-items: center; gap: 8px; padding: 9px 2px 0; }
.rc-cbtn {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--rc-line); background: #fff; color: #4b453c; font-size: 13px;
}
.rc-cbtn:hover { background: #faf6ee; }
.rc-cbtn.rc-play { width: 34px; height: 34px; border-radius: 50%; background: #2f2b26; color: #fff; border: none; }
.rc-cbtn.rc-play.on { background: var(--rc-green); }
.rc-cbtn.tx { font-size: 12px; }
.rc-prog { flex: 0 0 160px; height: 4px; border-radius: 3px; background: #f1eade; overflow: hidden; }
.rc-prog i { display: block; height: 100%; background: var(--rc-green); border-radius: 3px; transition: width .2s; }
.rc-num { font-size: 11.5px; color: var(--rc-mute); font-variant-numeric: tabular-nums; }
.rc-acts { display: flex; align-items: center; gap: 8px; padding-top: 9px; flex-wrap: wrap; }
.rc-b {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rc-line);
  background: #fff; font-size: 12.5px; color: #4b453c;
}
.rc-b:hover { background: #faf6ee; border-color: #e2d5c1; }
.rc-b.ghost { border-color: transparent; background: transparent; color: var(--rc-sub); }
.rc-b.ghost:hover { background: #faf6ee; }
.rc-saved { font-size: 11.5px; color: var(--rc-green); }

/* 把关结果 */
.rc-qc { margin-top: 11px; border-top: 1px dashed var(--rc-line); padding-top: 9px; }
.rc-qc-h { display: flex; align-items: baseline; gap: 8px; }
.rc-qc-h b { font-size: 13px; }
.rc-qc-ok { font-size: 12.5px; color: var(--rc-green); padding-top: 5px; }
.rc-qc-list { display: flex; flex-direction: column; gap: 4px; padding-top: 5px; }
.rc-qc-i { font-size: 12.5px; color: #6b655c; display: flex; gap: 7px; align-items: flex-start; }
.rc-qc-i i { width: 5px; height: 5px; border-radius: 50%; margin-top: 7px; flex: 0 0 5px; background: #ddd1bc; }
.rc-qc-i.warn i { background: #d99b3f; }

/* ---------------- 我的录课 ---------------- */
.rc-mine { max-width: 862px; margin: 18px auto 0; }
.rc-mine-h { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 8px; }
.rc-mine-h b { font-size: 13.5px; }
.rc-mine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.rc-mine-c {
  text-align: left; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--rc-line);
  background: #fff; display: flex; flex-direction: column; gap: 3px;
}
.rc-mine-c:hover { border-color: #e2d5c1; box-shadow: 0 6px 16px rgba(120, 95, 60, .07); }
.rc-mine-c b { font-size: 13px; font-weight: 600; }
.rc-mine-c em { font-style: normal; font-size: 11.5px; color: var(--rc-mute); }
.rc-mine-c span { font-size: 11px; color: var(--rc-faint); }
.rc-mine-new { align-items: center; justify-content: center; color: var(--rc-sub); font-size: 12.5px; border-style: dashed; }

/* ---------------- 音色选择弹窗 ---------------- */
.rc-vp { padding: 2px 0; }
.rc-vp-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.rc-vp-h b { font-size: 15px; }
.rc-vp-i {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px; border: 1px solid #efe6d9; background: #fff; margin-bottom: 8px;
}
.rc-vp-i b { font-size: 13.5px; }
.rc-vp-i span { font-size: 12px; color: #a9a196; }
.rc-vp-i.on { border-color: #cfe3d6; background: #f4f9f6; }
.rc-vp-try {
  margin-left: auto; font-style: normal; font-size: 12px; color: #4b7d63;
  border: 1px solid #dbe8de; border-radius: 6px; padding: 2px 9px; background: #fff;
}

/* ---------------- 需求 128：数字人 / 动态图解 / 声纹 ---------------- */
/* 画面里的数字人小窗：位置三选一，由 .pos-* 决定；导出视频时按同样的位置画 */
.rc-person { position: absolute; width: 92px; z-index: 4; pointer-events: none; }
.rc-person .rc-pv-svg {
  display: block; width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(60, 40, 20, .22);
}
.rc-person.pos-br { right: 12px; bottom: 12px; }
.rc-person.pos-bl { left: 12px; bottom: 12px; }
.rc-person.pos-tr { right: 12px; top: 34px; }

/* 出镜开关的「开」态 */
.rc-sw.on { background: #cfe3d6; }
.rc-sw.on i { left: 15px; }

/* 声音 / 数字人两行左侧的小缩略图 */
.rc-mini-av { display: block; width: 18px; height: 22px; overflow: hidden; border-radius: 4px; }
.rc-mini-av .rc-pv-svg { width: 100%; height: 100%; display: block; }

/* ---- 数字人选择弹窗 ---- */
.rc-ap-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.rc-ap-i {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 6px 9px; border-radius: 11px; border: 1px solid #efe6d9; background: #fff;
}
.rc-ap-i:hover { border-color: #e2d5c1; background: #fdfaf4; }
.rc-ap-i.on { border-color: #9cc7ac; background: #f4f9f6; box-shadow: 0 0 0 2px rgba(63, 143, 104, .1); }
.rc-ap-pv { width: 100%; }
.rc-ap-pv .rc-pv-svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.rc-ap-none {
  display: grid; place-items: center; height: 76px; border-radius: 8px; background: #f5f0e7;
  font-style: normal; font-size: 12px; color: #a9a196; line-height: 1.5; text-align: center;
}
.rc-ap-i b { font-size: 12.5px; font-weight: 600; }
.rc-ap-i em { font-style: normal; font-size: 10.5px; color: #a9a196; text-align: center; line-height: 1.4; }
.rc-ap-pos { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: #6b655c; }
.rc-ap-p {
  height: 26px; padding: 0 11px; border-radius: 7px; border: 1px solid #efe6d9;
  background: #fff; font-size: 12px; color: #4b453c;
}
.rc-ap-p.on { border-color: #9cc7ac; background: #f4f9f6; color: #2f6b4c; }

/* ---- 声音弹窗里的「我的声音」---- */
.rc-vp-sec { font-size: 11px; color: #b3ab9f; letter-spacing: .5px; margin: 10px 0 7px; }
.rc-vp-my { display: flex; align-items: center; gap: 8px; }
.rc-vp-pick {
  flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 2px;
  background: transparent; border: none; padding: 0;
}
.rc-vp-pick b { font-size: 13.5px; }
.rc-vp-pick span { font-size: 11.5px; color: #a9a196; }
.rc-vp-del { font-style: normal; font-size: 12px; color: #c3bbae; padding: 2px 4px; cursor: pointer; }
.rc-vp-del:hover { color: #c0573f; }
.rc-vp-add {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  padding: 11px 13px; border-radius: 10px; border: 1px dashed #d9c9ac; background: #fdfaf4;
  margin-bottom: 6px;
}
.rc-vp-add:hover { background: #faf4e8; border-color: #c9b48d; }
.rc-vp-add b { font-size: 13.5px; color: #4b453c; }
.rc-vp-add span { font-size: 11.5px; color: #a9a196; }
.rc-vp-note {
  font-size: 11.5px; color: #a9a196; line-height: 1.6; margin-top: 10px;
  padding-top: 9px; border-top: 1px dashed #efe6d9;
}

/* ---- 克隆录音弹窗 ---- */
.rc-clone-box { border: 1px solid #efe6d9; border-radius: 12px; padding: 13px 15px; background: #fdfaf4; }
.rc-clone-tip { font-size: 12.5px; color: #6b655c; line-height: 1.7; }
.rc-clone-text {
  margin: 9px 0 12px; padding: 11px 13px; border-left: 3px solid #d9c9ac; background: #fff;
  border-radius: 0 8px 8px 0; font-size: 13px; color: #3b3730; line-height: 1.9;
}
.rc-clone-rec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-clone-time { font-size: 13px; color: #4b453c; font-variant-numeric: tabular-nums; min-width: 46px; }
.rc-clone-hint { font-size: 11.5px; color: #a9a196; }
.rc-clone-rec .rc-b.on { background: #c0573f; border-color: #c0573f; color: #fff; }
.rc-clone-or { font-size: 11.5px; color: #b3ab9f; margin: 12px 0 6px; }
.rc-clone-file { font-size: 12px; color: #6b655c; }
.rc-clone-out { margin-top: 10px; font-size: 12.5px; }
.rc-clone-ok { display: flex; flex-direction: column; gap: 3px; color: #2f6b4c; }
.rc-clone-ok b { font-size: 13px; }
.rc-clone-out .warn { color: #c0573f; }

/* 主按钮（生成录课视频） */
.rc-b.main { background: #2f2b26; border-color: #2f2b26; color: #fff; font-weight: 600; }
.rc-b.main:hover { background: #423b34; border-color: #423b34; }

/* 录制进度：固定在右下角，不挡画面 */
.rc-recbox {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  background: rgba(38, 34, 29, .95); color: #fff; border-radius: 11px;
  padding: 11px 14px; font-size: 12.5px; min-width: 230px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.rc-recbar {
  display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2);
  margin-top: 8px; overflow: hidden;
}
.rc-recbar i { display: block; height: 100%; background: #7ed3a6; border-radius: 2px; transition: width .3s; }

/* ==================================================================
 * 需求 129 · 录课成片：保存 / 链接 / 二维码 / 引用
 * ------------------------------------------------------------------
 * 和录制进度条不一样：这是「结果区里的一张卡」，跟着结果一起滚走，
 * 不吸在屏幕上；底色沿用暖纸面（#fffaf2 / #ece2d1 边），不用蓝色系。
 * ================================================================== */
.rc-vpanel:empty { display: none; }
.rc-vpanel { margin: 12px 0 2px; }

.rc-vcard {
  border: 1px solid #ece2d1; border-radius: 13px; background: #fffdf8;
  padding: 13px 15px 12px; box-shadow: 0 2px 8px rgba(120, 100, 70, .05);
}
.rc-vcard.ok { background: #fffdf7; border-color: #dcebdf; }
.rc-vcard-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.rc-vcard-h b { font-size: 14px; color: #2c2925; }
.rc-vcard-acts { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* 上传进度：只在保存那一会儿出现。数字放右边而不是浮在条上 ——
 * 浮上去会跟上面那行说明文字叠在一起，60% 的时候正好最难看清 */
.rc-vprog { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.rc-vprog .rc-vtrack { flex: 1 1 auto; height: 6px; border-radius: 3px; background: #f0e8da; overflow: hidden; }
.rc-vprog i { display: block; height: 100%; width: 0; background: #6aa97f; border-radius: 3px; transition: width .18s; }
.rc-vprog b { flex: 0 0 36px; text-align: right; font-size: 11.5px; font-weight: 600; color: #6f685d; }

/* 链接 + 二维码：左边一行输入框，右边一张码 */
.rc-vsh { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.rc-vsh-l { flex: 1 1 300px; min-width: 260px; }
.rc-vsh-l label { display: block; margin-bottom: 5px; }
.rc-vlink { display: flex; gap: 7px; align-items: center; }
.rc-vlink input {
  flex: 1 1 auto; min-width: 0; height: 33px; border: 1px solid #e6dbc7; border-radius: 8px;
  background: #fdf9f1; padding: 0 10px; font-size: 12.5px; color: #4b453c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rc-vlink input:focus { outline: 2px solid #e8d9be; outline-offset: 1px; }
.rc-vsh-b { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.rc-vtip { margin-top: 8px; line-height: 1.5; }

.rc-vqr { text-align: center; flex: 0 0 auto; }
.rc-vqr img {
  display: block; width: 132px; height: 132px; background: #fff;
  border: 1px solid #ece2d1; border-radius: 8px; padding: 4px;
}
.rc-vqr-dl {
  display: inline-block; margin-top: 5px; font-size: 11.5px; color: #8a7654;
  text-decoration: none; border-bottom: 1px dashed #d8c9ab;
}
.rc-vqr-dl:hover { color: #5f4e33; }

/* 引用入口 */
.rc-vhang {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed #efe6d6;
}
.rc-vhang .rc-b { font-size: 12px; }
#rc-vrefs { color: #3f8f68; }

/* 挂载选择弹窗 */
.rc-hg-h { margin-bottom: 10px; }
.rc-hg-h b { display: block; font-size: 15px; color: #2c2925; margin-bottom: 3px; }
.rc-hg-s {
  display: flex; align-items: center; gap: 7px; border: 1px solid #e6dbc7;
  border-radius: 9px; background: #fdf9f1; padding: 0 11px; height: 36px; margin-bottom: 10px;
}
.rc-hg-s input { flex: 1; border: 0; background: transparent; outline: none; font-size: 13px; color: #3b3730; }
.rc-hg-list { max-height: 330px; overflow: auto; border-top: 1px solid #f0e8da; }
.rc-hg-i {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f6efe3;
  background: transparent; padding: 9px 4px; cursor: pointer; font: inherit;
}
.rc-hg-i:hover { background: #fdf6e9; }
.rc-hg-i b { display: block; font-size: 13px; color: #3b3730; font-weight: 500; line-height: 1.45; }
.rc-hg-i span { display: block; font-size: 11.5px; color: #9a9184; margin-top: 2px; }
.rc-hg-empty { padding: 18px 4px; font-size: 12.5px; color: #9a9184; }

@media (max-width: 900px) {
  .rc-cards { grid-template-columns: repeat(2, 1fr); }
  .rc-res-body { grid-template-columns: 1fr; }
  .rc-shots { max-height: 190px; }
  .rc-opts { grid-template-columns: 1fr; }
  .rc-prog { flex: 1 1 80px; }
  .rc-paper { margin: 6px 18px 14px; padding: 16px 18px; }
  .rc-paper h4 { font-size: 19px; }
}

/* ---------------- 材料题（需求 146） ----------------
   一条记录 = 一段材料 + 若干小题。材料固定在上、可滚动，小题逐个排；
   手机上两列选项挤不下就落成一列。 */
.ps-material { margin: 10px 0 12px; border: 1px solid var(--line, #e6edf5); border-radius: 10px; background: #fbfdff; overflow: hidden; }
.ps-mat-h { padding: 8px 12px; font-size: 12px; color: var(--muted, #64748b); background: #f1f5f9; border-bottom: 1px solid var(--line, #e6edf5); }
.ps-mat-b { padding: 12px 14px; font-size: 14px; line-height: 1.85; max-height: 340px; overflow-y: auto; white-space: pre-wrap; }
.ps-subs { margin-top: 4px; }
.ps-sub { padding: 10px 0; border-top: 1px dashed var(--line, #e6edf5); }
.ps-sub:first-child { border-top: 0; }
.ps-stem { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.ps-subs .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-subs .pr-blank { margin-top: 6px; }
@media (max-width: 640px) { .ps-subs .opts { grid-template-columns: 1fr; } .ps-mat-b { max-height: 260px; } }

/* ================= 需求 152：题目关键词搜索 ================= */
.qb-searchwrap { position: relative; display: inline-flex; align-items: center; }
.qb-qclear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; line-height: 1; padding: 0; border: 0; border-radius: 50%;
  background: #e2e8f0; color: #475569; font-size: 13px; cursor: pointer;
}
.qb-qclear:hover { background: #cbd5e1; color: #1e293b; }
.qb-kwchips { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: #1d4ed8; }
.qb-kwchips b { font-weight: 600; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; padding: 1px 7px; }
.qb-kwchips i { font-style: normal; color: #94a3b8; }
/* 命中提示行：告诉老师「在哪命中」—— 材料题没有主题干，没有这行看不出被搜到的原因 */
.kw-hit {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px;
  margin: 6px 0 2px; padding: 4px 8px; border-radius: 7px;
  background: #fffbeb; border: 1px solid #fde68a;
  font-size: 12px; line-height: 1.65; color: #475569;
}
.kw-hit-k { font-size: 10.5px; padding: 0 6px; border-radius: 4px; background: #fef3c7; color: #b45309; flex: none; }
.kw-hit-sep { color: #cbd5e1; }
.kw-hit i { font-style: normal; font-size: 10.5px; color: #b45309; }
.kw-mark { background: #fde68a; color: #7c2d12; border-radius: 3px; padding: 0 1px; }
[data-theme="dark"] .kw-hit, body.dark .kw-hit { background: #2a2410; border-color: #5c4813; color: #e2e8f0; }
[data-theme="dark"] .kw-hit-k, body.dark .kw-hit-k { background: #3d3212; color: #fcd34d; }
[data-theme="dark"] .kw-mark, body.dark .kw-mark { background: #7c5e10; color: #fef3c7; }
[data-theme="dark"] .qb-kwchips b, body.dark .qb-kwchips b { background: #1b2c4d; color: #bfdbfe; border-color: #1e40af; }

/* ================= 需求 153：错题卷（勾选 → 生成 → 学生版/教师版 PDF → 转发微信） ================= */
.wg-check { width: 16px; height: 16px; flex: none; accent-color: #2563eb; cursor: pointer; margin-right: 1px; }
.wg-it { transition: background .15s, box-shadow .15s; border-radius: 10px; }
.wg-it.on { background: #f5f9ff; box-shadow: inset 3px 0 0 #2563eb; }
/* 勾选栏：固定在右下角，不挡内容 —— 学生一边往下翻一边勾，按钮始终在手边 */
.wgs-bar {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #dbe3ef; border-radius: 14px;
  padding: 9px 12px; box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}
.wgs-bar .wgs-n { font-size: 13px; color: #475569; }
.wgs-bar .wgs-n b { color: #1d4ed8; font-size: 16px; }
/* 卷面预览 */
.wgp-paper {
  max-height: 52vh; overflow: auto; margin-top: 10px; padding: 10px 12px;
  border: 1px solid #e6edf7; border-radius: 10px; background: #fbfcfe;
}
.wgp-sec { font-weight: 600; color: #1e3a8a; margin: 12px 0 6px; font-size: 13.5px; }
.wgp-sec:first-child { margin-top: 0; }
.wgp-q { display: flex; gap: 8px; padding: 5px 0; }
.wgp-no { flex: none; width: 22px; color: #94a3b8; font-size: 12px; text-align: right; padding-top: 1px; }
.wgp-stem { font-size: 13px; line-height: 1.85; color: #334155; white-space: pre-wrap; overflow-wrap: anywhere; }
.wgp-opts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; font-size: 12.5px; color: #475569; }
/* 转发微信 */
.wgs-share { display: flex; gap: 16px; margin-top: 12px; align-items: flex-start; }
.wgs-qr { flex: none; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.wgs-right { flex: 1; min-width: 0; }
.wgs-right input {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line, #dbe3ef);
  border-radius: 8px; font-size: 12px; margin: 5px 0 7px;
}
[data-theme="dark"] .wg-it.on, body.dark .wg-it.on { background: #16233f; box-shadow: inset 3px 0 0 #60a5fa; }
[data-theme="dark"] .wgs-bar, body.dark .wgs-bar { background: #16233f; border-color: #2b3b57; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
[data-theme="dark"] .wgs-bar .wgs-n, body.dark .wgs-bar .wgs-n { color: #94a3b8; }
[data-theme="dark"] .wgs-bar .wgs-n b, body.dark .wgs-bar .wgs-n b { color: #93c5fd; }
[data-theme="dark"] .wgp-paper, body.dark .wgp-paper { background: #111b2e; border-color: #26334d; }
[data-theme="dark"] .wgp-sec, body.dark .wgp-sec { color: #bfdbfe; }
[data-theme="dark"] .wgp-stem, body.dark .wgp-stem { color: #cbd5e1; }
[data-theme="dark"] .wgs-qr, body.dark .wgs-qr { background: #fff; border-color: #26334d; }

/* ==================================================================
 * 需求 165：学生端「组卷打印」
 * ------------------------------------------------------------------
 * 纸面直接复用上面 .cz-paper / .cp-* 那一套（老师组卷预览与 PDF 同源），
 * 这里只画「选题页」和「编辑页」两块的列表样式。
 * ================================================================== */
.sp-warn {
  margin-top: 10px; padding: 9px 12px; border-radius: 9px; font-size: 12.6px; line-height: 1.75;
  color: #92400e; background: rgba(245, 158, 11, .12); border-left: 3px solid #f59e0b;
}
[data-theme="dark"] .sp-warn, body.dark .sp-warn { color: #fcd34d; background: rgba(245, 158, 11, .16); }

/* 我组过的卷子 */
.sp-list { display: flex; flex-direction: column; gap: 6px; }
.sp-li {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); cursor: pointer; transition: border-color .14s, background .14s;
}
.sp-li:hover { border-color: var(--blue4); background: var(--tint1); }
.sp-li b { font-size: 13.2px; }

/* 知识点树 */
.sp-tree {
  max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 4px; background: var(--card);
}
.sp-node {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px;
  font-size: 13px; cursor: pointer; line-height: 1.5;
}
.sp-node:hover { background: var(--tint1); }
.sp-node.on { background: var(--tint1); box-shadow: inset 3px 0 0 var(--blue3); }
.sp-node input[type=checkbox] { accent-color: var(--blue2); flex: none; }
.sp-node-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-node-c { flex: none; font-size: 11.5px; color: var(--muted); }
.sp-node-c i { font-style: normal; color: var(--blue2); }

/* 题型与题数 */
.sp-cnt {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 4px; border-bottom: 1px dashed var(--line);
}
.sp-cnt:last-of-type { border-bottom: 0; }
.sp-cnt-l { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sp-cnt-l b { font-size: 13.4px; }
.sp-step { display: flex; align-items: center; gap: 5px; }
.sp-step input[type=number] {
  width: 62px; text-align: center; padding: 5px 4px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--txt);
}
.sp-hint { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* 编辑页 */
.sp-bar .field { margin: 0; }
.sp-tabs { display: flex; gap: 6px; margin: 12px 0 10px; flex-wrap: wrap; }
.sp-tabs button {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); font-size: 13px;
}
.sp-tabs button.on { background: var(--blue2); border-color: var(--blue2); color: #fff; font-weight: 600; }

.sp-sec {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 14px 0 6px; padding-bottom: 5px; border-bottom: 1px solid var(--line);
  font-size: 13.6px; color: var(--blue1);
}
[data-theme="dark"] .sp-sec, body.dark .sp-sec { color: #bfdbfe; }
.sp-sec span { font-size: 11.8px; color: var(--muted); font-weight: 400; }
.sp-sec:first-of-type { margin-top: 2px; }

.sp-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 8px;
  align-items: start; padding: 9px 4px; border-bottom: 1px dashed var(--line);
}
.sp-row:last-child { border-bottom: 0; }
.sp-no { font-weight: 700; color: var(--muted); font-size: 12.5px; text-align: right; padding-top: 2px; }
.sp-main { min-width: 0; }
.sp-stem { font-size: 13px; line-height: 1.75; color: var(--txt); overflow-wrap: anywhere; }
.sp-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.sp-ops { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.sp-sc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--muted); margin-right: 3px;
}
.sp-sc input {
  width: 48px; padding: 3px 4px; text-align: center; font-size: 12px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--txt);
}

/* 预览 */
.sp-pv-bar {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card);
}
.sp-a4 {
  background: #eef2f7; border: 1px solid var(--line); border-radius: 13px;
  padding: 16px; overflow: auto;
}
[data-theme="dark"] .sp-a4, body.dark .sp-a4 { background: #0f1a2d; border-color: #22314f; }
.sp-a4 .cz-paper { box-shadow: 0 6px 22px rgba(15, 23, 42, .16); }
@media (max-width: 720px) {
  .sp-row { grid-template-columns: 24px minmax(0, 1fr); }
  .sp-ops { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .sp-a4 { padding: 8px; }
}

/* ==================================================================
 * 需求 166：刷题记录统计（学生「刷题记录」+ 老师「刷题统计」共用）
 * ------------------------------------------------------------------
 * 三端看同一份数字，所以表格、比率条、天数柱状图都收在这里，
 * 老师端只是多一层「按班级 / 学生筛选」，版式不再另写一遍。
 * ================================================================== */
.pl-head { padding-bottom: 10px; }
.pl-range { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-rb {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); font-size: 12.5px; cursor: pointer;
}
.pl-rb.on { background: var(--blue2); border-color: var(--blue2); color: #fff; font-weight: 600; }
.pl-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.pl-tbl td, .pl-tbl th { font-size: 13px; }
.pl-tbl .right { text-align: right; }
.pl-green { color: #16a34a; font-weight: 600; }
.pl-red { color: #dc2626; font-weight: 600; }

/* 比率条：数字写在条子右边，比只有一根条更好读 */
.pl-rate { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.pl-rate-i {
  display: inline-block; width: 54px; height: 6px; border-radius: 999px;
  background: var(--line); overflow: hidden; flex: none;
}
.pl-rate-i i { display: block; height: 100%; border-radius: 999px; }
.pl-rate b { font-size: 12.4px; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

/* 科目 / 知识点小结标签 */
.pl-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-tag {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.pl-tag b { font-size: 13px; }
.pl-tag span { font-size: 11.8px; color: var(--muted); }

/* 按天柱状图：纯 CSS，不为一张小图引第三方图表库 */
.pl-days {
  display: flex; align-items: flex-end; gap: 4px; overflow-x: auto;
  padding: 6px 2px 0; min-height: 96px;
}
.pl-day {
  flex: 1 0 26px; min-width: 26px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 3px;
}
.pl-day b { font-size: 10.5px; color: var(--muted); font-weight: 600; min-height: 13px; }
.pl-day i { display: block; width: 66%; max-width: 18px; border-radius: 4px 4px 0 0; }
.pl-day span { font-size: 10px; color: var(--muted); white-space: nowrap; }

/* 口径说明：数字怎么算出来的，写在页面里而不是只写在文档里 */
.pl-note {
  margin-top: 10px; padding: 8px 11px; border-radius: 9px;
  background: var(--soft, #f6f8fb); border: 1px dashed var(--line);
  font-size: 11.8px; line-height: 1.75; color: var(--muted);
}
[data-theme="dark"] .pl-note, body.dark .pl-note { background: #101c30; border-color: #22314f; color: #94a3b8; }

/* 老师端的筛选条 */
.pl-filter { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pl-filter .field { margin: 0; min-width: 150px; }
@media (max-width: 720px) {
  .pl-rate-i { width: 38px; }
  .pl-tbl { font-size: 12px; }
  .pl-days { min-height: 84px; }
}

/* ==================================================================
 * 需求 167：学生端「错题集打印」
 * ------------------------------------------------------------------
 * 错题集和「我的错题」是两个页面，视觉上要能一眼分开：
 * 这边用「清单」的写法 —— 一行一道题、题型标签在最前面，
 * 删除按钮在行尾；那边是刷题式的卡片流，不抢这边的样式。
 * ================================================================== */
.wb-tip {
  margin: -2px 0 10px; padding: 8px 11px; border-radius: 9px;
  font-size: 12.4px; line-height: 1.8; color: #7c5a1e;
  background: rgba(245, 158, 11, .1); border-left: 3px solid #f59e0b;
}
[data-theme="dark"] .wb-tip, body.dark .wb-tip { color: #fcd34d; background: rgba(245, 158, 11, .14); }

/* 题型筛选 */
.wb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wb-chip {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); font-size: 12.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.wb-chip:hover { border-color: #bfdbfe; color: #1d4ed8; }
.wb-chip b { font-variant-numeric: tabular-nums; margin-left: 2px; color: #1e293b; }
.wb-chip.on { background: var(--blue2, #2563eb); border-color: var(--blue2, #2563eb); color: #fff; font-weight: 600; }
.wb-chip.on b { color: #fff; }
[data-theme="dark"] .wb-chip b, body.dark .wb-chip b { color: #e2e8f0; }
[data-theme="dark"] .wb-chip.on b, body.dark .wb-chip.on b { color: #fff; }

/* 搜索 + 标签页 */
.wb-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wb-kw {
  flex: 1 1 220px; max-width: 340px; padding: 7px 11px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13px; background: var(--card); color: inherit;
}
.wb-kw:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.wb-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--soft, #f1f5f9); }
.wb-tab {
  padding: 5px 13px; border: 0; border-radius: 999px; background: transparent;
  color: var(--sub); font-size: 12.5px; cursor: pointer;
}
.wb-tab.on { background: var(--card, #fff); color: #1e293b; font-weight: 600; box-shadow: 0 1px 4px rgba(15, 23, 42, .1); }
[data-theme="dark"] .wb-tabs, body.dark .wb-tabs { background: #131f36; }
[data-theme="dark"] .wb-tab.on, body.dark .wb-tab.on { background: #1c2b47; color: #e2e8f0; }

/* 一行一道题 */
.wb-row {
  padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); transition: background .15s, box-shadow .15s;
}
.wb-row:hover { border-color: #cddff5; }
.wb-row.on { background: #f5f9ff; box-shadow: inset 3px 0 0 #2563eb; }
.wb-head { align-items: center; gap: 6px; }
.wb-head .tag { white-space: nowrap; }
.wb-stem { font-size: 13.4px; line-height: 1.8; color: var(--text, #334155); }
.wb-stem img { max-width: 100%; height: auto; border-radius: 6px; margin: 4px 0; }

/* 删除按钮：额度用完时只能看不能点，别让人点了才被拒 */
.wb-del { color: #b91c1c; border-color: #fecaca; }
.wb-del:hover { background: #fef2f2; border-color: #fca5a5; }
.wb-del.off { color: #94a3b8; border-color: var(--line); cursor: not-allowed; opacity: .75; }
.wb-del.off:hover { background: transparent; }
[data-theme="dark"] .wb-del, body.dark .wb-del { color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .wb-del:hover, body.dark .wb-del:hover { background: #3b1414; }
[data-theme="dark"] .wb-row.on, body.dark .wb-row.on { background: #16233f; box-shadow: inset 3px 0 0 #60a5fa; }

/* 删除确认弹窗：题目先摆出来，学生看清楚了再决定 */
.wb-ask-q {
  margin: 10px 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--soft, #f8fafc);
  max-height: 240px; overflow: auto;
}
.wb-ask-stem { margin-top: 7px; font-size: 13.2px; line-height: 1.8; color: var(--text, #334155); white-space: pre-wrap; }
.wb-ask-stem img { max-width: 100%; height: auto; border-radius: 6px; }
.wb-ask-note {
  font-size: 12.6px; line-height: 1.85; color: #92400e;
  background: rgba(245, 158, 11, .1); border-radius: 9px; padding: 9px 11px;
}
.wb-ask-note b { color: #b45309; font-size: 14px; }
.wb-ask-ok {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 11px;
  font-size: 13px; line-height: 1.7; cursor: pointer; color: var(--text, #334155);
}
.wb-ask-ok input { margin-top: 3px; width: 15px; height: 15px; accent-color: #2563eb; flex: none; cursor: pointer; }
[data-theme="dark"] .wb-ask-q, body.dark .wb-ask-q { background: #111b2e; border-color: #26334d; }
[data-theme="dark"] .wb-ask-note, body.dark .wb-ask-note { color: #fcd34d; background: rgba(245, 158, 11, .14); }
[data-theme="dark"] .wb-ask-note b, body.dark .wb-ask-note b { color: #fbbf24; }

/* 加入错题的候选清单 */
.wb-pick-list { max-height: 46vh; overflow: auto; margin: 10px 0; display: flex; flex-direction: column; gap: 5px; }
.wb-pick {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card);
}
.wb-pick.on { background: #f5f9ff; border-color: #bfdbfe; }
.wb-pick .wg-check { margin-top: 3px; }
.wb-pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wb-pick-stem { font-size: 12.8px; line-height: 1.75; color: var(--sub); overflow-wrap: anywhere; }
.wb-pick-stem img { max-width: 100%; height: auto; }
[data-theme="dark"] .wb-pick.on, body.dark .wb-pick.on { background: #16233f; border-color: #1e40af; }

@media (max-width: 720px) {
  .wb-kw { max-width: none; flex: 1 1 100%; }
  .wb-row { padding: 9px 10px; }
  .wb-head { flex-wrap: wrap; }
  .wb-ask-q { max-height: 190px; }
}

/* ==================================================================
 * 需求 169 · 试卷识别（学生端）
 * ------------------------------------------------------------------
 * 这一页只有两种布局：上传 + 历史（列表页）、照片 + 逐块复核（详情页）。
 * 复核区是「一堆小行」，所以样式全部走紧凑型：行高 1.6、字号 13、
 * 块与块之间靠左边一条细线对齐 —— 像 Word 的大纲，不像一堆卡片。
 * ================================================================== */
.sc-up { padding: 16px 18px; }
.sc-up-hd { display: flex; align-items: flex-start; gap: 16px; }
.sc-up-hd h3 { font-size: 16px; font-family: var(--kai); letter-spacing: .3px; }
.sc-up-sub { font-size: 13px; line-height: 1.8; margin-top: 6px; max-width: 720px; }
.sc-up-btns { flex: none; display: flex; gap: 8px; }
.sc-up-tips {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.sc-up-tips i { color: #cbd5e1; font-style: normal; }
.sc-up-prog { margin-top: 12px; }
.sc-up-prog .sc-prog-t { font-size: 12.5px; color: var(--blue2); margin-bottom: 6px; }

/* 历史列表 */
.sc-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; cursor: pointer; }
.sc-cover {
  flex: none; width: 46px; height: 58px; border-radius: 7px; overflow: hidden;
  background: var(--tint1); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cover i { font-style: normal; font-size: 20px; opacity: .5; }
.sc-row-main { flex: 1; min-width: 0; }
.sc-row-t { font-size: 14px; color: var(--txt); }
.sc-row-meta { margin-top: 3px; }
.sc-row-err { margin-top: 3px; color: var(--amber); }
.sc-row-acts { flex: none; display: flex; gap: 6px; }
.sc-row .sc-del:hover { color: var(--red); border-color: #fecaca; }

/* 详情页头部 */
.sc-doc-hd { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding: 14px 16px; }
.sc-doc-l { flex: 1; min-width: 260px; }
.sc-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-title {
  font-size: 16px; font-weight: 600; color: var(--txt); font-family: var(--kai);
  border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 4px 8px; min-width: 220px; flex: 1 1 260px; max-width: 460px;
}
.sc-title:hover { border-color: var(--line); }
.sc-title:focus { border-color: var(--blue3); background: #fff; outline: none; }
.sc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.sc-mini {
  width: 92px; font-size: 12.5px; padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
}
.sc-mini:focus { border-color: var(--blue3); outline: none; }
.sc-doc-acts { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sc-unsaved { color: var(--amber); }
.sc-saved { color: var(--green); }

/* 识别进度 */
.sc-run { padding: 15px 18px; }
.sc-run-hd { display: flex; align-items: center; gap: 12px; }
.sc-run-hd b { font-size: 14.5px; }
.sc-run-bar { margin: 12px 0 10px; }
.sc-run-steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.sc-run-step { padding: 3px 9px; border-radius: 99px; background: #f1f5f9; }
.sc-run-step.on { background: var(--tint2); color: var(--blue2); }
.sc-spin {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  border: 2.5px solid var(--tint2); border-top-color: var(--blue2);
  animation: sc-spin .9s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

.sc-bad, .sc-warn { padding: 14px 16px; font-size: 13.5px; }
.sc-bad b { color: var(--red); }
.sc-warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }

/* 两栏：左照片、右复核 */
.sc-body { display: grid; grid-template-columns: minmax(240px, 34%) 1fr; gap: 14px; align-items: start; }
.sc-photo { position: sticky; top: 10px; }
.sc-thumbs { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; }
.sc-thumb {
  position: relative; width: 46px; height: 58px; padding: 0; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; background: #f1f5f9; cursor: pointer;
}
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-thumb i {
  position: absolute; right: 2px; bottom: 1px; font-style: normal; font-size: 10px;
  color: #fff; background: rgba(15, 23, 42, .6); border-radius: 4px; padding: 0 3px;
}
.sc-thumb.on { border-color: var(--blue2); }
.sc-big { padding: 10px 12px 12px; }
.sc-big img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* 块列表 */
.sc-blks { padding: 4px 12px 10px; }
.sc-pg-hd {
  font-size: 11.5px; color: var(--muted); margin: 10px 0 6px;
  padding-left: 2px; border-left: 3px solid var(--tint2); padding-left: 8px;
}
.sc-blk {
  border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  padding: 3px 0 3px calc(8px + var(--ind, 0px));
  transition: background .12s;
}
.sc-blk:hover { background: #f8fafc; border-left-color: var(--tint2); }
.sc-blk.low { background: #fffbeb; border-left-color: #fbbf24; border-radius: 0 8px 8px 0; }
.sc-blk.fig { background: #f8fafc; }
.sc-blk-hd { display: flex; align-items: center; gap: 5px; opacity: .55; transition: opacity .12s; }
.sc-blk:hover .sc-blk-hd, .sc-blk.low .sc-blk-hd { opacity: 1; }
.sc-no { font-size: 10.5px; color: var(--muted); min-width: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.sc-ti { font-size: 11px; }
.sc-type, .sc-ind {
  font-size: 11px; padding: 1px 3px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); cursor: pointer; max-width: 78px;
}
.sc-ib {
  width: 20px; height: 20px; line-height: 1; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 11px;
}
.sc-ib:hover { border-color: var(--blue3); color: var(--blue2); }
.sc-ib-x:hover { border-color: #fecaca; color: var(--red); }
.sc-blk-bd { padding: 1px 4px 3px 21px; }
.sc-txt {
  font-size: 13.2px; line-height: 1.75; color: var(--txt);
  white-space: pre-wrap; overflow-wrap: anywhere; outline: none;
  border-radius: 6px; padding: 2px 5px; min-height: 22px;
}
.sc-txt:hover { background: rgba(255, 255, 255, .7); }
.sc-txt:focus { background: #fff; box-shadow: 0 0 0 2px var(--tint2); }
.sc-txt:empty::before { content: attr(data-ph); color: #cbd5e1; font-size: 12.5px; }
.sc-txt-b { font-weight: 600; font-family: var(--kai); font-size: 14px; }
.sc-ta {
  width: 100%; font-size: 12.8px; line-height: 1.6; padding: 6px 8px; border-radius: 7px;
  border: 1px solid var(--line); font-family: inherit; color: var(--txt); background: var(--card);
  resize: vertical;
}
.sc-ta:focus { border-color: var(--blue3); outline: none; }
.sc-ph { font-size: 12px; color: var(--muted); padding: 2px 5px; }
.sc-fig-wrap { padding: 3px 5px; }
.sc-fig {
  max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  display: block; cursor: zoom-in; margin-bottom: 4px;
}
.sc-add { padding: 0 12px 10px; }
.sc-foot-tip {
  padding: 10px 14px 13px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--sub); line-height: 1.8;
}
.sc-pick-pg { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.sc-zoom-img { width: 100%; border-radius: 8px; display: block; }

/* 深色 */
[data-theme="dark"] .sc-txt:focus, body.dark .sc-txt:focus { background: #0f1a2e; box-shadow: 0 0 0 2px #1e3a8a; }
[data-theme="dark"] .sc-blk:hover, body.dark .sc-blk:hover { background: #131f35; border-left-color: #26334d; }
[data-theme="dark"] .sc-blk.low, body.dark .sc-blk.low { background: rgba(245, 158, 11, .13); border-left-color: #b45309; }
[data-theme="dark"] .sc-blk.fig, body.dark .sc-blk.fig { background: #111b2e; }
[data-theme="dark"] .sc-warn, body.dark .sc-warn { background: rgba(245, 158, 11, .12); border-color: #78350f; color: #fcd34d; }
[data-theme="dark"] .sc-run-step, body.dark .sc-run-step { background: #16233f; color: #94a3b8; }
[data-theme="dark"] .sc-run-step.on, body.dark .sc-run-step.on { background: #1e3a8a; color: #dbeafe; }
[data-theme="dark"] .sc-thumb, body.dark .sc-thumb { background: #16233f; }
[data-theme="dark"] .sc-cover, body.dark .sc-cover { background: #16233f; border-color: #26334d; }
[data-theme="dark"] .sc-spin, body.dark .sc-spin { border-color: #1e3a8a; border-top-color: #60a5fa; }

/* 窄屏：照片挪到复核区上面，横着排一行缩略图，正文占满宽 */
@media (max-width: 860px) {
  .sc-body { grid-template-columns: 1fr; }
  .sc-photo { position: static; }
  .sc-big { display: none; }
  .sc-up-hd { flex-direction: column; }
  .sc-up-btns { width: 100%; }
  .sc-up-btns .btn { flex: 1; }
  .sc-doc-acts { width: 100%; justify-content: flex-start; }
  .sc-blk-bd { padding-left: 14px; }
}

/* ==================================================================
 * 需求 170 · 8 套样式模板 + 新建讲义弹窗 + 素材栏 + 属性面板
 * ------------------------------------------------------------------
 * 8 套不是写 8 份 CSS，而是「一组变量 + 一套规则」：
 *   --s-accent  主色（题号、侧条、大题）
 *   --s-p/-m/-w 知识点 / 方法 / 易错 三色（--p-bg 是它们的浅底）
 *   --s-radius  卡片圆角（简洁打印 0，童趣 12px）
 *   --s-page    纸面底色（手账是暖色）+ --s-grid 方格线
 * 换模板就换这十来个变量；下面那批规则一套都不用动。
 * 深色/窄屏另算，见文件末尾。
 * ================================================================== */

/* ---------- 变量表：8 套 ---------- */
.lec-stage.st-note {
  --s-accent: #4f46e5; --s-soft: #eef2ff; --s-rule: #e0e7ff; --s-ink: #1f2937; --s-sub: #6b7280;
  --s-p: #2563eb; --s-p-bg: #f5f8ff; --s-p-bd: #dbeafe;
  --s-m: #059669; --s-m-bg: #f4fbf7; --s-m-bd: #d1fae5;
  --s-w: #d97706; --s-w-bg: #fffbf2; --s-w-bd: #fde68a;
  --s-radius: 0px; --s-pad: 8px 12px;
}
.lec-stage.st-frame {
  --s-accent: #2563eb; --s-soft: #dbeafe; --s-rule: #e2e8f0; --s-ink: #1e293b; --s-sub: #64748b;
  --s-p: #2563eb; --s-p-bg: #f4f8ff; --s-p-bd: #dbeafe;
  --s-m: #059669; --s-m-bg: #f2fbf7; --s-m-bd: #d1fae5;
  --s-w: #d97706; --s-w-bg: #fffaf1; --s-w-bd: #fde68a;
  --s-radius: 10px; --s-pad: 10px 14px;
}
.lec-stage.st-plain {
  --s-accent: #111827; --s-soft: #f3f4f6; --s-rule: #d1d5db; --s-ink: #111827; --s-sub: #4b5563;
  --s-p: #111827; --s-p-bg: #fff; --s-p-bd: #d1d5db;
  --s-m: #111827; --s-m-bg: #fff; --s-m-bd: #d1d5db;
  --s-w: #111827; --s-w-bg: #fff; --s-w-bd: #d1d5db;
  --s-radius: 0px; --s-pad: 6px 10px;
}
.lec-stage.st-drill {
  --s-accent: #0e7490; --s-soft: #ecfeff; --s-rule: #dbeafe; --s-ink: #1f2937; --s-sub: #64748b;
  --s-p: #0e7490; --s-p-bg: #f2fdfe; --s-p-bd: #cffafe;
  --s-m: #0891b2; --s-m-bg: #f0fbfd; --s-m-bd: #a5f3fc;
  --s-w: #b45309; --s-w-bg: #fffbf2; --s-w-bd: #fde68a;
  --s-radius: 4px; --s-pad: 9px 12px;
}
.lec-stage.st-magazine {
  --s-accent: #0f172a; --s-soft: #fef3c7; --s-rule: #e7e5e4; --s-ink: #1c1917; --s-sub: #78716c;
  --s-p: #0f172a; --s-p-bg: #fff; --s-p-bd: #e7e5e4;
  --s-m: #b45309; --s-m-bg: #fffdf6; --s-m-bd: #e7e5e4;
  --s-w: #b91c1c; --s-w-bg: #fffaf9; --s-w-bd: #e7e5e4;
  --s-radius: 0px; --s-pad: 8px 4px 8px 14px;
}
.lec-stage.st-academic {
  --s-accent: #334155; --s-soft: #f1f5f9; --s-rule: #cbd5e1; --s-ink: #0f172a; --s-sub: #475569;
  --s-p: #334155; --s-p-bg: #fcfdfe; --s-p-bd: #cbd5e1;
  --s-m: #334155; --s-m-bg: #fcfdfe; --s-m-bd: #cbd5e1;
  --s-w: #334155; --s-w-bg: #fcfdfe; --s-w-bd: #cbd5e1;
  --s-radius: 0px; --s-pad: 9px 12px;
}
.lec-stage.st-journal {
  --s-accent: #b45309; --s-soft: #fef3c7; --s-rule: #f0e0c8; --s-ink: #3f3f46; --s-sub: #78716c;
  --s-p: #b45309; --s-p-bg: #fffdf6; --s-p-bd: #f3e3c3;
  --s-m: #a16207; --s-m-bg: #fffdf4; --s-m-bd: #f3e3c3;
  --s-w: #9a3412; --s-w-bg: #fffaf5; --s-w-bd: #f3e3c3;
  --s-radius: 5px; --s-pad: 9px 12px;
  --s-page: #fdf8f0; --s-grid: #f1e7d6;
}
.lec-stage.st-kids {
  --s-accent: #ea580c; --s-soft: #ffedd5; --s-rule: #fed7aa; --s-ink: #3f2d1e; --s-sub: #a16207;
  --s-p: #f97316; --s-p-bg: #fffbf5; --s-p-bd: #fdba74;
  --s-m: #16a34a; --s-m-bg: #f6fdf8; --s-m-bd: #bbf7d0;
  --s-w: #e11d48; --s-w-bg: #fff7f9; --s-w-bd: #fecdd3;
  --s-radius: 14px; --s-pad: 12px 16px;
}

/* ---------- 纸面底座（8 套通用） ---------- */
.lec-stage[class*="st-"] .lec-page {
  background: var(--s-page, #fff);
  color: var(--s-ink, #1f2937);
  line-height: 1.8;
}
/* 手账 / 方格：用重复渐变画方格底，不用图片（打印时也不掉） */
.st-journal .lec-page {
  background-image:
    linear-gradient(var(--s-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--s-grid) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 8px 8px;
}
.st-kids .lec-page { border: 3px solid #fdba74; border-radius: 16px; }

/* 讲次头：8 套各一种 */
.lec-stage[class*="st-"] .lec-top { border-bottom: 2px solid var(--s-accent); }
.lec-stage[class*="st-"] .lec-title { font-family: var(--doc-song); font-weight: 800; color: var(--s-accent); }
.st-magazine .lec-top { border-bottom: 3px solid var(--s-accent); }
.st-magazine .lec-title { font-size: calc(var(--doc-fs-title) + 3px); letter-spacing: 0; }
.st-plain .lec-title { color: #111827; }
.st-plain .lec-top { border-bottom: 2px solid #111827; }
.st-journal .lec-top {
  border-bottom: 0; padding: 8px 14px; margin: -4px 0 16px;
  background: #fde68a; border-radius: 3px; box-shadow: 0 2px 0 #f5d98a;
}
.st-journal .lec-title { color: #92400e; }
.st-kids .lec-top {
  border: 2.5px solid var(--s-accent); border-radius: 16px;
  background: #fff7ed; padding: 10px 16px; margin-bottom: 16px;
}
.st-kids .lec-title { color: #c2410c; }
.st-frame .lec-top {
  border: 1px solid var(--s-p-bd); border-radius: 12px;
  background: linear-gradient(180deg, #f2f7ff, #eaf2ff); padding: 10px 16px; margin-bottom: 16px;
}
.st-academic .lec-top { border-bottom: 1px solid var(--s-rule); }
.st-academic .lec-top::after { content: ''; display: block; height: 3px; }

/* ---------- 知识块：三色（知识点 / 方法 / 易错） ---------- */
.lec-stage[class*="st-"] .lec-goal,
.lec-stage[class*="st-"] .lec-guide,
.lec-stage[class*="st-"] .lec-boxes,
.lec-stage[class*="st-"] .lec-tree-wrap,
.lec-stage[class*="st-"] .lec-other {
  background: var(--s-p-bg); border: 1px solid var(--s-p-bd);
  border-left: 4px solid var(--s-p); border-radius: var(--s-radius);
  padding: var(--s-pad);
}
.lec-stage[class*="st-"] .lec-goal .lec-tag,
.lec-stage[class*="st-"] .lec-guide .lec-tag,
.lec-stage[class*="st-"] .lec-boxes .lec-tag,
.lec-stage[class*="st-"] .lec-tree-wrap .lec-tag {
  background: var(--s-p); color: #fff; border-radius: 5px; margin: 0 0 6px -4px;
}
.lec-stage[class*="st-"] .lec-goal p,
.lec-stage[class*="st-"] .lec-other p { color: var(--s-ink); }

/* 方法总结：绿 */
.lec-stage[class*="st-"] .lec-b-methods .lec-rvm2-c {
  background: var(--s-m-bg); border: 1px solid var(--s-m-bd);
  border-left: 4px solid var(--s-m); border-radius: var(--s-radius);
  padding: var(--s-pad); margin-bottom: 8px;
}
.lec-stage[class*="st-"] .lec-b-methods .lec-rvm2-h span { background: var(--s-m); color: #fff; }
.lec-stage[class*="st-"] .lec-b-methods .lec-rvm2-h h4 { color: var(--s-m); }

/* 易错：橙 */
.lec-stage[class*="st-"] .lec-warn {
  background: var(--s-w-bg); border: 1px solid var(--s-w-bd);
  border-left: 4px solid var(--s-w); border-radius: var(--s-radius);
  padding: var(--s-pad);
}
.lec-stage[class*="st-"] .lec-warn b { color: var(--s-w); }

/* 知识梳理（考点卡）：知识点色 */
.lec-stage[class*="st-"] .lec-b-points .lec-rvp-c {
  background: var(--s-p-bg); border: 1px solid var(--s-p-bd);
  border-left: 4px solid var(--s-p); border-radius: var(--s-radius);
  padding: var(--s-pad);
}
.lec-stage[class*="st-"] .lec-b-points .lec-rvp-h span { background: var(--s-p); color: #fff; }

/* 简洁打印：一律白底、只留灰细框，复印不出灰雾 */
.st-plain .lec-goal, .st-plain .lec-guide, .st-plain .lec-boxes, .st-plain .lec-tree-wrap,
.st-plain .lec-warn, .st-plain .lec-b-methods .lec-rvm2-c, .st-plain .lec-b-points .lec-rvp-c {
  background: #fff; border: 1px solid #d1d5db; border-left: 2px solid #111827;
}
.st-plain .lec-guide .lec-tag, .st-plain .lec-warn b, .st-plain .lec-b-points .lec-rvp-h span,
.st-plain .lec-b-methods .lec-rvm2-h span { background: #fff; color: #111827; border: 1px solid #9ca3af; }

/* 学术讲义：细线方框 + 黑体小标签，不用色块 */
.st-academic .lec-guide .lec-tag,
.st-academic .lec-goal .lec-tag,
.st-academic .lec-boxes .lec-tag,
.st-academic .lec-b-points .lec-rvp-h span,
.st-academic .lec-b-methods .lec-rvm2-h span {
  background: #f8fafc; color: #0f172a; border: 1px solid #cbd5e1;
  border-radius: 0; letter-spacing: 0;
}
.st-academic .lec-goal, .st-academic .lec-guide, .st-academic .lec-boxes,
.st-academic .lec-warn, .st-academic .lec-b-methods .lec-rvm2-c {
  border-left-width: 1px; box-shadow: inset 0 0 0 1px #fff;
}

/* 杂志专栏：只有一条竖线 + 大量留白，靠字号和页码节奏 */
.st-magazine .lec-goal, .st-magazine .lec-guide, .st-magazine .lec-boxes,
.st-magazine .lec-warn, .st-magazine .lec-b-methods .lec-rvm2-c,
.st-magazine .lec-b-points .lec-rvp-c {
  background: transparent; border: 0; border-left: 3px solid var(--s-accent);
  border-radius: 0; padding-left: 14px;
}
.st-magazine .lec-guide .lec-tag, .st-magazine .lec-goal .lec-tag,
.st-magazine .lec-warn b, .st-magazine .lec-b-points .lec-rvp-h span,
.st-magazine .lec-b-methods .lec-rvm2-h span { background: transparent; color: #0f172a; padding-left: 0; }

/* 手账笔记：暖底 + 圆角 + 撕纸感的胶带 */
.st-journal .lec-goal, .st-journal .lec-guide, .st-journal .lec-boxes,
.st-journal .lec-warn, .st-journal .lec-b-methods .lec-rvm2-c,
.st-journal .lec-b-points .lec-rvp-c {
  background: #fffdf7; border: 1px solid #f3e3c3; border-left: 0;
  border-radius: 6px; box-shadow: 2px 2px 0 rgba(180, 83, 9, .07);
}
.st-journal .lec-guide .lec-tag, .st-journal .lec-goal .lec-tag,
.st-journal .lec-warn b, .st-journal .lec-b-points .lec-rvp-h span,
.st-journal .lec-b-methods .lec-rvm2-h span {
  background: #fde68a; color: #92400e; border-radius: 2px 8px 2px 8px;
}

/* 童趣闯关：粗边大圆角，块与块之间留得开 */
.st-kids .lec-b { margin-bottom: 18px; }
.st-kids .lec-goal, .st-kids .lec-guide, .st-kids .lec-boxes, .st-kids .lec-tree-wrap,
.st-kids .lec-warn, .st-kids .lec-b-methods .lec-rvm2-c, .st-kids .lec-b-points .lec-rvp-c {
  border-width: 2px; border-left-width: 6px; box-shadow: 0 3px 0 rgba(234, 88, 12, .12);
}
.st-kids .lec-guide .lec-tag, .st-kids .lec-goal .lec-tag,
.st-kids .lec-warn b, .st-kids .lec-b-points .lec-rvp-h span,
.st-kids .lec-b-methods .lec-rvm2-h span { border-radius: 999px; padding: 2px 12px; }

/* ---------- 题目与作答区 ---------- */
.lec-stage[class*="st-"] .lec-q { border-top: 1px dashed var(--s-rule); padding-top: 9px; }
.lec-stage[class*="st-"] .lec-q-no { color: var(--s-accent); font-weight: 800; }
.lec-stage[class*="st-"] .lec-sec-h { border-bottom: 2px solid var(--s-accent); }
.lec-stage[class*="st-"] .lec-sec-t { color: var(--s-accent); }
.lec-stage[class*="st-"] .lec-q-space i { border-bottom-color: var(--s-rule); }
.st-frame .lec-q, .st-kids .lec-q {
  background: var(--s-p-bg); border: 1px solid var(--s-p-bd); border-radius: var(--s-radius);
  padding: 10px 14px; margin-bottom: 12px;
}
.st-kids .lec-q { border-width: 2px; }
.st-plain .lec-q { border-top: 1px solid #e5e7eb; }

/* 大题标题：8 套的「大题条」 */
.st-note .lec-sec-h, .st-drill .lec-sec-h { border-bottom: 1px solid var(--s-rule); border-left: 4px solid var(--s-accent); padding-left: 8px; }
.st-frame .lec-sec { margin-top: 12px; }
.st-frame .lec-sec-h {
  background: var(--s-accent); color: #fff; border-radius: 8px;
  padding: 6px 12px; border-bottom: 0;
}
.st-frame .lec-sec-h .lec-sec-t, .st-frame .lec-sec-h i { color: #fff; }
.st-kids .lec-sec-h {
  background: var(--s-accent); color: #fff; border-radius: 999px;
  padding: 6px 16px; border-bottom: 0; display: inline-flex;
}
.st-kids .lec-sec-h .lec-sec-t, .st-kids .lec-sec-h i { color: #fff; }
.st-magazine .lec-sec-h { border-bottom: 2px solid var(--s-accent); padding-bottom: 4px; }
.st-magazine .lec-sec-h .lec-sec-t { font-size: calc(var(--doc-fs-xl) + 2px); letter-spacing: 1px; }
.st-academic .lec-sec-h { border-bottom: 1px solid var(--s-rule); border-top: 2px solid var(--s-rule); padding: 5px 0; }
.st-journal .lec-sec-h {
  background: #fde68a; border-radius: 3px; padding: 5px 12px;
  border-bottom: 0; display: inline-flex; box-shadow: 1px 2px 0 rgba(180, 83, 9, .12);
}

/* ---------- 新增的三类块 ---------- */
.lec-tb { background: var(--s-p-bg, #fff); border: 1px solid var(--s-p-bd, #e2e8f0);
  border-radius: var(--s-radius, 0); padding: 8px 12px; }
.lec-tb table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: var(--doc-fs); }
.lec-tb th, .lec-tb td { border: 1px solid var(--s-p-bd, #e2e8f0); padding: 5px 8px; text-align: left; }
.lec-tb th { background: var(--s-soft, #f1f5f9); font-weight: 700; }
.lec-img { margin: 0 0 10px; text-align: center; }
.lec-img img { max-width: 100%; border-radius: var(--s-radius, 0); border: 1px solid var(--s-p-bd, #e2e8f0); }
.lec-img figcaption { font-size: var(--doc-fs-sm); color: var(--s-sub, #6b7280); margin-top: 4px; }
.lec-img-x { font-size: var(--doc-fs-sm); color: #b91c1c; }
.lec-pb { border-top: 2px dashed var(--s-rule, #e2e8f0); margin: 14px 0; text-align: center; position: relative; }
.lec-pb span {
  position: relative; top: -9px; background: var(--s-page, #fff); padding: 0 10px;
  font-size: var(--doc-fs-sm); color: var(--s-sub, #9ca3af); letter-spacing: 1px;
}

/* 选中态：右栏正在改这一块 */
.lec-b.on, .lec-q.on { outline: 2px solid var(--s-accent, #2563eb); outline-offset: 3px; border-radius: 4px; }
.lec-b { cursor: pointer; }
.lec-b .lec-txt, .lec-b textarea { cursor: text; }

/* ---------- 三栏工作区 ---------- */
.lec-work {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 258px;
  gap: 12px; align-items: start; margin-top: 12px;
}
.lec-paper { min-width: 0; }
.lec-paper .lec-stage { max-height: 78vh; }

/* 素材库 */
.lec-mat {
  position: sticky; top: 8px; background: var(--card, #fff);
  border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 10px 8px;
}
.lec-mat-h { font-size: 12.5px; font-weight: 700; color: var(--txt, #0f172a); padding: 0 4px 6px; }
.lec-mat-tip { font-size: 11px; color: var(--muted, #94a3b8); padding: 0 4px 8px; line-height: 1.5; }
.lec-mat-list { display: flex; flex-direction: column; gap: 4px; }
.lec-mat-grp {
  font-size: 11px; color: var(--muted, #94a3b8); margin: 12px 0 6px;
  padding: 0 4px; border-top: 1px dashed var(--line, #e2e8f0); padding-top: 8px;
}
.lec-mat-i {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 6px 8px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--txt, #334155); font-size: 12.5px;
  cursor: pointer; text-align: left; font-family: inherit;
}
.lec-mat-i:hover { background: var(--tint1, #f1f5f9); border-color: var(--line, #e2e8f0); }
.lec-mat-i:active { transform: translateY(1px); }
.lec-mat-ic { font-size: 13px; width: 16px; text-align: center; }
.lec-mat-list.mini .lec-mat-i { font-size: 12px; padding: 5px 8px; }
.lec-mat-btn {
  width: 100%; margin-top: 8px; padding: 7px 8px; border-radius: 8px;
  border: 1px dashed var(--line, #cbd5e1); background: transparent;
  color: var(--sub, #475569); font-size: 12px; cursor: pointer; font-family: inherit;
}
.lec-mat-btn:hover { border-color: var(--blue3, #60a5fa); color: var(--blue2, #2563eb); }

/* 右栏：这一块的属性 */
.lec-prop {
  position: sticky; top: 8px; background: var(--card, #fff);
  border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 12px;
  max-height: 78vh; overflow: auto;
}
.lec-prop-h {
  font-size: 13px; font-weight: 700; color: var(--txt, #0f172a);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.lec-prop-tools { display: flex; gap: 4px; margin-bottom: 9px; }
.lec-prop-empty { font-size: 12.5px; color: var(--sub, #64748b); line-height: 1.8; }
.lec-prop-empty p { margin-bottom: 8px; }
.lec-prop-chk {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--sub, #475569); margin-bottom: 10px; cursor: pointer;
}
.lec-prop-f { margin-bottom: 9px; }
.lec-prop-f label { display: block; font-size: 11.5px; color: var(--muted, #94a3b8); margin-bottom: 4px; }
.lec-prop-f input, .lec-prop-f textarea {
  width: 100%; font-size: 12.5px; padding: 6px 8px; border-radius: 7px;
  border: 1px solid var(--line, #e2e8f0); background: var(--card, #fff);
  color: var(--txt, #0f172a); font-family: inherit; line-height: 1.6; resize: vertical;
}
.lec-prop-f input:focus, .lec-prop-f textarea:focus { border-color: var(--blue3, #60a5fa); outline: none; }
.lec-prop-img { width: 100%; border-radius: 6px; border: 1px solid var(--line, #e2e8f0); margin-bottom: 6px; }
.lec-prop-grp {
  font-size: 11.5px; color: var(--muted, #94a3b8); margin: 12px 0 6px;
  border-top: 1px dashed var(--line, #e2e8f0); padding-top: 8px;
}
.lec-prop-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub, #475569); margin-bottom: 6px; }
.lec-prop-val { font-weight: 600; color: var(--txt, #0f172a); }

/* ---------- 新建讲义弹窗（照片 1） ---------- */
.ln h3 { font-size: 18px; margin-bottom: 14px; }
.ln-f { margin-bottom: 14px; }
.ln-f label { display: block; font-size: 12.5px; color: var(--sub, #475569); margin-bottom: 6px; }
.ln-input {
  width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  border: 1.5px solid var(--blue2, #2563eb); background: var(--card, #fff);
  color: var(--txt, #0f172a); font-family: inherit;
}
.ln-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.ln-lb { font-size: 13px; font-weight: 600; color: var(--txt, #0f172a); margin-bottom: 9px; }
.ln-lb span { font-weight: 400; color: var(--muted, #94a3b8); font-size: 12px; }
.ln-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ln-card {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 11px 13px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line, #e2e8f0); background: var(--card, #fff);
  font-family: inherit; transition: border-color .12s, background .12s;
}
.ln-card:hover { border-color: var(--blue3, #93c5fd); }
.ln-card.on { border-color: var(--blue2, #2563eb); background: #f5f8ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.ln-rd {
  flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%;
  border: 1.6px solid var(--line, #cbd5e1); background: #fff;
}
.ln-card.on .ln-rd { border-color: var(--blue2, #2563eb); border-width: 4.5px; }
.ln-sw { flex: none; width: 26px; height: 5px; border-radius: 3px; margin-top: 8px; }
.ln-t { flex: 1; min-width: 0; }
.ln-t b { display: block; font-size: 13.5px; color: var(--txt, #0f172a); margin-bottom: 3px; }
.ln-t i { font-style: normal; font-size: 11.5px; color: var(--muted, #94a3b8); line-height: 1.55; }
.ln-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.ln-tip { font-size: 11.5px; color: var(--muted, #94a3b8); margin-top: 10px; }

/* ---------- 深色 ---------- */
[data-theme="dark"] .lec-mat, [data-theme="dark"] .lec-prop { background: #131f35; border-color: #26334d; }
[data-theme="dark"] .lec-mat-i { color: #cbd5e1; }
[data-theme="dark"] .lec-mat-i:hover { background: #1b2942; }
[data-theme="dark"] .ln-card { background: #131f35; border-color: #26334d; }
[data-theme="dark"] .ln-card.on { background: #16233f; border-color: #3b82f6; }
[data-theme="dark"] .ln-t b { color: #e2e8f0; }
[data-theme="dark"] .lec-prop-f input, [data-theme="dark"] .lec-prop-f textarea { background: #0f1a2e; border-color: #26334d; color: #e2e8f0; }
[data-theme="dark"] .st-journal .lec-page { background: #1a1611; background-image: linear-gradient(#2a2318 1px, transparent 1px), linear-gradient(90deg, #2a2318 1px, transparent 1px); color: #e7e0d3; }
[data-theme="dark"] .st-kids .lec-page { background: #1c1512; border-color: #7c2d12; }

/* ---------- 窄屏：素材栏横排、属性面板落到下面 ---------- */
@media (max-width: 1500px) {
  .lec-work { grid-template-columns: 118px minmax(0, 1fr); }
  .lec-prop { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 1180px) {
  .lec-work { grid-template-columns: 1fr; }
  .lec-mat { position: static; }
  .lec-mat-list { flex-direction: row; flex-wrap: wrap; }
  .lec-mat-i { width: auto; }
  .lec-mat-grp { width: 100%; }
  .ln-grid { grid-template-columns: 1fr; }
}

/* ==================================================================
 * 需求 170 · 组卷的模板卡片（与教辅「新建讲义」同一套外观）
 * ------------------------------------------------------------------
 * 8 套样式 + 经典卷版式放进同一个 .ln-grid，用 .ln-lb2 分两段写小标题；
 * 卡片区限高可滚 —— 9 张卡全摊开会把「生成试卷」按钮顶到屏幕外。
 * ================================================================== */
.ln-lb2 {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--txt, #0f172a);
  margin: 4px 0 -1px;
}
.ln-lb2 span { font-weight: 400; color: var(--muted, #94a3b8); font-size: 11.5px; }
.ln-lb2:not(:first-child) { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line, #e2e8f0); }
.cz-tplbox { margin: 4px 0 12px; }
.cz-grid {
  max-height: 268px; overflow: auto; padding: 2px;
  border-radius: 10px; background: rgba(148, 163, 184, .06);
}
.cz-grid .ln-card { background: #fff; }
.cz-grid::-webkit-scrollbar { width: 8px; }
.cz-grid::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .5); border-radius: 4px; }

/* 题库选题弹窗里的模板条：默认只显示「选了哪套」，点「换模板」才摊开 */
.cz-tplbar { border-top: 1px solid var(--line, #e2e8f0); padding-top: 9px; margin-top: 2px; }
.cz-tplbar-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub, #475569); }
.cz-tplbar-h b { color: var(--txt, #0f172a); font-weight: 700; }
.cz-tplbar-v {
  padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: rgba(37, 99, 235, .09); color: #1d4ed8;
}
.cz-tplbar .ln-grid { margin-top: 9px; }
[data-theme="dark"] .cz-tplbar-v { background: rgba(96, 165, 250, .16); color: #93c5fd; }
[data-theme="dark"] .cz-grid { background: rgba(15, 26, 46, .6); }
[data-theme="dark"] .cz-grid .ln-card { background: #131f35; }
[data-theme="dark"] .ln-lb2 { color: #e2e8f0; }

/* 8 套样式的卷面预览：直接嵌 PDF —— 预览即打印件，不会「看得一个样、印出另一个样」 */
.cz-pdf {
  border-radius: 8px; overflow: hidden; background: #e9eef4;
  border: 1px solid var(--line, #e2e8f0);
}
.cz-pdf iframe { display: block; width: 100%; height: 620px; border: 0; background: #fff; }
.cz-pdf-tip { font-size: 11.5px; color: var(--muted, #94a3b8); margin: 7px 0 2px; }
[data-theme="dark"] .cz-pdf { background: #0e1728; border-color: #26334d; }
@media (max-width: 1180px) {
  .cz-grid { max-height: none; }
  .cz-pdf iframe { height: 460px; }
}

/* ==================================================================
 * 需求 228：学生端「错题工作台」
 * ------------------------------------------------------------------
 * 这一页的视觉顺序就是使用顺序：先看进度（hero + 环），再看任务（队列），
 * 最后才是账本与快收站。刻意不用深色大色块压住整页 —— 学生一天要看三次
 * （课间 / 晚上 / 睡前），刺激越强越快腻。
 * ================================================================== */
.wl-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px 20px; margin-bottom: 14px; border-radius: 16px;
  background: linear-gradient(120deg, #f2f8ff 0%, #fbfdff 55%, #f4f7ff 100%);
  border: 1px solid #dfeafb;
}
.wl-hi { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.wl-title { margin: 5px 0 12px; font-size: 21px; font-weight: 600; color: var(--txt); font-family: var(--kai); }
.wl-title b { color: var(--blue2); font-size: 26px; font-variant-numeric: tabular-nums; }
.wl-bar { height: 8px; border-radius: 99px; background: #e4ecf9; overflow: hidden; }
.wl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .5s ease; }
.wl-bar-lb { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; font-size: 12px; color: var(--sub); }
.wl-bar-lb b { color: var(--blue2); font-size: 13px; }

/* 三步动线：课间收 → 晚上清 → 睡前验 */
.wl-flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wl-step {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px;
  border-radius: 11px; border: 1px dashed #cfdcf1; background: #fff; min-width: 0;
}
.wl-step i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-style: normal; font-weight: 700; color: #94a3b8; background: #eef3fb;
}
.wl-step b { display: block; font-size: 12.6px; color: var(--txt); font-weight: 600; }
.wl-step span { display: block; font-size: 11.4px; color: var(--muted); }
.wl-step.on { border-style: solid; border-color: #bbf7d0; background: #f6fffa; }
.wl-step.on i { background: #dcfce7; color: #15803d; }

/* 清零进度环 */
.wl-ring { position: relative; width: 108px; flex: none; text-align: center; }
.wl-ring-svg { width: 108px; height: 108px; display: block; }
.wl-ring-svg .bg { fill: none; stroke: #e3ecf9; stroke-width: 9; }
.wl-ring-svg .fg { fill: none; stroke: #2563eb; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.wl-ring-svg .pct { font-size: 21px; font-weight: 700; fill: #1d4ed8; font-family: var(--kai); }
.wl-ring-lb { margin-top: -6px; font-size: 11.5px; color: var(--muted); }

/* 七天柱 */
.wl-trend { padding: 12px 16px 8px; margin-bottom: 14px; }
.wl-trend-h { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--sub); margin-bottom: 6px; }
.wl-trend-h b { color: var(--txt); font-size: 13px; }
.wl-bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
.wl-barcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.wl-barcol i { width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: #dbeafe; }
.wl-barcol.today i { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.wl-barcol span { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wl-barcol.today span { color: var(--blue2); font-weight: 600; }

/* 页签 */
.wl-main { padding: 14px 16px 16px; }
.wl-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #eef3fb; margin-bottom: 12px; overflow-x: auto; }
.wl-tab {
  flex: 1; white-space: nowrap; padding: 8px 12px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--sub); font-size: 13px;
}
.wl-tab b { margin-left: 2px; font-variant-numeric: tabular-nums; color: #1e293b; }
.wl-tab.on { background: #fff; color: #1d4ed8; font-weight: 600; box-shadow: 0 1px 5px rgba(15, 23, 42, .08); }
.wl-tab.on b { color: #1d4ed8; }

/* 今日队列 */
.wl-queue-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wl-queue-h b { font-size: 14px; color: var(--txt); }
.wl-queue-h div span { display: block; margin-top: 2px; }
.wl-list { display: flex; flex-direction: column; gap: 8px; }
.wl-row { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px 12px; }
.wl-row:hover { border-color: #cddff5; }
.wl-row-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.wl-row-b { margin-top: 7px; }
.wl-stem { font-size: 13.2px; line-height: 1.75; color: #334155; }
.wl-stem img { max-width: 100%; height: auto; border-radius: 6px; margin: 3px 0; }
.wl-row-f { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.wl-row-f .tiny { flex: 1; min-width: 0; color: var(--muted); }
.wl-more { margin-top: 10px; text-align: center; }
.wl-empty .wl-sub-h { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--txt); }

/* 练法徽标：五种颜色，学生扫一眼就知道今天这道是「重做」还是「说错因」 */
.wl-mode {
  flex: none; padding: 2px 9px; border-radius: 999px; font-size: 11.6px; font-weight: 600;
  background: #eef3fb; color: #475569;
}
.wl-mode.m1 { background: #eff6ff; color: #1d4ed8; }
.wl-mode.m2 { background: #ecfdf5; color: #047857; }
.wl-mode.m3 { background: #fff7ed; color: #b45309; }
.wl-mode.m4 { background: #f5f3ff; color: #6d28d9; }
.wl-mode.m5 { background: #fdf2f8; color: #be185d; }

/* 五段进度点：走到第几步，不用问 */
.wl-dots { display: inline-flex; gap: 3px; align-items: center; }
.wl-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0; }
.wl-dots i.on { background: #2563eb; }

/* 知识点账本 */
.wl-lgr-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--sub); }
.wl-lgr-h b { color: var(--txt); }
.wl-lgr { display: flex; flex-direction: column; gap: 8px; }
.wl-lgr-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.wl-lgr-top { display: flex; align-items: center; gap: 8px; }
.wl-lgr-name { font-size: 13.6px; font-weight: 600; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-lgr-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; font-size: 12px; color: var(--sub); }
.wl-lgr-meta b { color: var(--txt); font-variant-numeric: tabular-nums; }
.wl-due { color: #b45309; font-weight: 600; }
.wl-lgr-bar { height: 6px; border-radius: 99px; background: #eef3fb; overflow: hidden; margin: 7px 0 6px; }
.wl-lgr-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4ade80, #16a34a); }
.wl-lgr-f { display: flex; align-items: center; gap: 8px; }
.wl-lgr-f .tiny { flex: 1; color: var(--muted); }

/* 快收站 */
.wl-ib-h { margin-bottom: 10px; }
.wl-ib-h b { font-size: 14px; color: var(--txt); }
.wl-ib-h span { display: block; margin-top: 2px; }
.wl-ib { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: opacity .3s, transform .3s; }
.wl-ib.done { opacity: 0; transform: translateX(14px); }
.wl-causes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.wl-cause {
  padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 12.2px;
  border: 1px solid var(--line); background: #fff; color: var(--sub);
  transition: background .15s, border-color .15s, color .15s;
}
.wl-cause:hover { border-color: #bfdbfe; color: #1d4ed8; }
.wl-cause.guess { border-style: dashed; border-color: #93c5fd; }
.wl-cause.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.wl-cause.t-red.on { background: #dc2626; border-color: #dc2626; }
.wl-cause.t-amber.on { background: #d97706; border-color: #d97706; }
.wl-cause.t-green.on { background: #16a34a; border-color: #16a34a; }
.wl-cause.t-blue.on { background: #2563eb; border-color: #2563eb; }
.wl-cause.t-purple.on { background: #7c3aed; border-color: #7c3aed; }
.wl-cause.t-gray.on { background: #64748b; border-color: #64748b; }

/* ---------------- 答题弹窗 ---------------- */
.wl-ses { display: block; }
.wl-ses-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wl-ses-h b { font-size: 15px; color: var(--txt); }
.wl-ses-q { padding: 11px 13px; border-radius: 11px; background: #f7fafd; border: 1px solid #e8eff9; }
.wl-ses-stem { margin-top: 6px; font-size: 14px; line-height: 1.85; color: #1e293b; }
.wl-ses-stem img { max-width: 100%; height: auto; border-radius: 6px; }
.wl-alt { margin-top: 10px; padding: 11px 13px; border-radius: 11px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.wl-alt-h { font-size: 12.4px; font-weight: 600; color: #047857; margin-bottom: 4px; }
.wl-steps { margin-top: 10px; }

.wl-gate { margin-top: 10px; padding: 10px 12px; border: 1px solid #dbe6f5; border-radius: 11px; background: #fff; }
.wl-gate-h { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.wl-ta {
  width: 100%; min-height: 62px; resize: vertical; padding: 8px 10px; font-size: 13.2px; line-height: 1.7;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; color: inherit; font-family: inherit;
}
.wl-ta:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); background: #fff; }
.wl-gate-f { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.wl-gate-f .tiny { flex: 1; color: var(--muted); }
.wl-gate.done { background: #f8fafc; border-color: #e6edf6; }
.wl-gate.done .wl-gate-h { color: #15803d; }
.wl-gate-txt { font-size: 12.8px; color: #475569; line-height: 1.7; white-space: pre-wrap; }

/* 三级提示：方向是蓝、支架是橙 —— 颜色不同，学生不会把「支架」当成「答案」 */
.wl-hint { margin-top: 10px; padding: 11px 13px; border-radius: 11px; border-left: 3px solid; }
.wl-hint.lv1 { background: #eff6ff; border-color: #3b82f6; }
.wl-hint.lv2 { background: #fff7ed; border-color: #f59e0b; }
.wl-hint-h { font-size: 12.6px; font-weight: 700; margin-bottom: 5px; color: #1d4ed8; }
.wl-hint.lv2 .wl-hint-h { color: #b45309; }
.wl-hint-t { font-size: 13.2px; line-height: 1.8; color: #334155; }
.wl-hint-t p { margin: 3px 0; }

.wl-ans { margin-top: 12px; padding: 13px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.wl-ans-h { font-size: 12.8px; font-weight: 700; color: #047857; margin-bottom: 6px; }
.wl-ans-main { font-size: 16px; font-weight: 700; color: #065f46; line-height: 1.7; word-break: break-word; }
.wl-ans-steps { margin-top: 7px; font-size: 13px; line-height: 1.8; color: #334155; }
.wl-ans-why { margin-top: 7px; font-size: 12.6px; line-height: 1.8; color: #7c5a1e; }
.wl-ans-cause { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #bbf7d0; }

.wl-judge { margin-top: 12px; }
.wl-judge .tiny { color: var(--muted); line-height: 1.7; }
.wl-judge-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.wl-res { margin-top: 12px; padding: 13px; border-radius: 12px; background: #f8fafc; border: 1px solid #e6edf6; }
.wl-res.ok { background: #f0fdf4; border-color: #bbf7d0; }
.wl-res-h { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 5px; }
.wl-res.ok .wl-res-h { color: #15803d; }
.wl-res-b { font-size: 12.8px; line-height: 1.8; color: #475569; }
.wl-res .acts { margin-top: 10px; }

/* 深色 */
[data-theme="dark"] .wl-hero, body.dark .wl-hero {
  background: linear-gradient(120deg, #16233f 0%, #141f36 60%, #172542 100%); border-color: #26334d;
}
[data-theme="dark"] .wl-title, body.dark .wl-title { color: #e2e8f0; }
[data-theme="dark"] .wl-bar, body.dark .wl-bar { background: #1b2942; }
[data-theme="dark"] .wl-step, body.dark .wl-step { background: #16233a; border-color: #2b3b57; }
[data-theme="dark"] .wl-step b, body.dark .wl-step b { color: #e2e8f0; }
[data-theme="dark"] .wl-step i, body.dark .wl-step i { background: #1e2c47; color: #94a3b8; }
[data-theme="dark"] .wl-step.on, body.dark .wl-step.on { background: #12291f; border-color: #14532d; }
[data-theme="dark"] .wl-ring-svg .bg, body.dark .wl-ring-svg .bg { stroke: #1b2942; }
[data-theme="dark"] .wl-tabs, body.dark .wl-tabs { background: #131f36; }
[data-theme="dark"] .wl-tab, body.dark .wl-tab { color: #94a3b8; }
[data-theme="dark"] .wl-tab b, body.dark .wl-tab b { color: #cbd5e1; }
[data-theme="dark"] .wl-tab.on, body.dark .wl-tab.on { background: #1c2b47; color: #93c5fd; }
[data-theme="dark"] .wl-stem, body.dark .wl-stem { color: #cbd5e1; }
[data-theme="dark"] .wl-barcol i, body.dark .wl-barcol i { background: #1e3350; }
[data-theme="dark"] .wl-ses-q, body.dark .wl-ses-q { background: #131f36; border-color: #26334d; }
[data-theme="dark"] .wl-ses-stem, body.dark .wl-ses-stem { color: #e2e8f0; }
[data-theme="dark"] .wl-alt, body.dark .wl-alt { background: #0f2a1e; border-color: #14532d; }
[data-theme="dark"] .wl-gate, body.dark .wl-gate { background: #16233a; border-color: #26334d; }
[data-theme="dark"] .wl-gate-h, body.dark .wl-gate-h { color: #e2e8f0; }
[data-theme="dark"] .wl-ta, body.dark .wl-ta { background: #0f1a2c; border-color: #26334d; color: #e2e8f0; }
[data-theme="dark"] .wl-gate.done, body.dark .wl-gate.done { background: #131f36; }
[data-theme="dark"] .wl-gate-txt, body.dark .wl-gate-txt { color: #cbd5e1; }
[data-theme="dark"] .wl-hint.lv1, body.dark .wl-hint.lv1 { background: rgba(59, 130, 246, .14); }
[data-theme="dark"] .wl-hint.lv2, body.dark .wl-hint.lv2 { background: rgba(245, 158, 11, .14); }
[data-theme="dark"] .wl-hint-t, body.dark .wl-hint-t { color: #dbeafe; }
[data-theme="dark"] .wl-hint.lv2 .wl-hint-t, body.dark .wl-hint.lv2 .wl-hint-t { color: #fde68a; }
[data-theme="dark"] .wl-ans, body.dark .wl-ans { background: rgba(22, 163, 74, .12); border-color: #166534; }
[data-theme="dark"] .wl-ans-main, body.dark .wl-ans-main { color: #86efac; }
[data-theme="dark"] .wl-ans-steps, body.dark .wl-ans-steps { color: #cbd5e1; }
[data-theme="dark"] .wl-ans-why, body.dark .wl-ans-why { color: #fcd34d; }
[data-theme="dark"] .wl-res, body.dark .wl-res { background: #131f36; border-color: #26334d; }
[data-theme="dark"] .wl-res-h, body.dark .wl-res-h { color: #e2e8f0; }
[data-theme="dark"] .wl-res-b, body.dark .wl-res-b { color: #cbd5e1; }
[data-theme="dark"] .wl-cause, body.dark .wl-cause { background: #16233a; border-color: #26334d; color: #cbd5e1; }
[data-theme="dark"] .wl-lgr-row, body.dark .wl-lgr-row,
[data-theme="dark"] .wl-row, body.dark .wl-row,
[data-theme="dark"] .wl-ib, body.dark .wl-ib { background: #131f36; border-color: #26334d; }
[data-theme="dark"] .wl-lgr-name, body.dark .wl-lgr-name { color: #e2e8f0; }
[data-theme="dark"] .wl-lgr-meta, body.dark .wl-lgr-meta { color: #94a3b8; }
[data-theme="dark"] .wl-dots i, body.dark .wl-dots i { background: #26334d; }

@media (max-width: 720px) {
  .wl-hero { grid-template-columns: 1fr; padding: 14px 15px; }
  .wl-ring { display: none; }
  .wl-title { font-size: 18px; margin-bottom: 10px; }
  .wl-title b { font-size: 22px; }
  .wl-flow { gap: 6px; }
  .wl-step { flex: 1 1 46%; padding: 6px 9px 6px 6px; }
  .wl-step b { font-size: 12px; }
  .wl-tabs { gap: 4px; }
  .wl-tab { padding: 7px 8px; font-size: 12.4px; }
  .wl-main { padding: 12px 12px 14px; }
  .wl-ses-stem { font-size: 13.4px; }
  .wl-judge-btns .btn { flex: 1 1 30%; }
}

/* 等提示的那几秒：AI 第一次答这道题要 5~15 秒，不给点动静会被当成卡死 */
.wl-thinking {
  display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 12px;
  border-radius: 11px; background: #eff6ff; font-size: 12.6px; color: #1d4ed8;
}
.wl-thinking i {
  width: 6px; height: 6px; border-radius: 50%; background: #60a5fa;
  animation: wlBlink 1.1s infinite ease-in-out;
}
.wl-thinking i:nth-child(2) { animation-delay: .18s; }
.wl-thinking i:nth-child(3) { animation-delay: .36s; margin-right: 4px; }
@keyframes wlBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
[data-theme="dark"] .wl-thinking, body.dark .wl-thinking { background: rgba(59, 130, 246, .16); color: #93c5fd; }

/* ==================================================================
 * 需求 229：神兽园（学生端 / 老师端 / 后台共用一套卡面）
 * ------------------------------------------------------------------
 * 版式照着机构给的四张参考图做：卡墙 + 五形态 + 满级召唤。
 * 三处复用同一个前缀 .pz-，所以老师端和后台的卡面与学生端必然一致。
 *
 * 形态 → 视觉（这一层是「进化感」的全部来源，不靠额外素材）：
 *   Lv1 slate  素白，立绘被蛋壳盖住
 *   Lv2 mint   淡青，出壳，光很弱
 *   Lv3 violet 淡紫，一圈符文环
 *   Lv4 amber  暖金，双环 + 浮星
 *   MAX gold   深空底 + 金边，环在转，右上角「召唤」
 * ================================================================== */
.pz-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pz-head-l h1 { font-size: 21px; margin: 0 0 3px; color: var(--txt); font-family: var(--kai); }
.pz-head-l p { margin: 0; font-size: 12.5px; color: var(--sub); }
.pz-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pz-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--tint2); }
.pz-seg button {
  border: 0; background: transparent; cursor: pointer; padding: 5px 12px; border-radius: 8px;
  font-size: 12.5px; color: var(--sub);
}
.pz-seg button.on { background: var(--card); color: var(--txt); font-weight: 600; box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.pz-search { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 32px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); }
.pz-search i { font-style: normal; font-size: 12px; opacity: .6; }
.pz-search input { border: 0; outline: none; background: transparent; width: 150px; font-size: 12.6px; color: var(--txt); }

/* ---------------- 我的神兽 ---------------- */
.pz-mine {
  display: grid; grid-template-columns: 186px minmax(0, 1fr); gap: 18px;
  padding: 16px 18px; margin-bottom: 14px; border-radius: 18px;
  background: linear-gradient(130deg, var(--pz-c1, #f8fafc) 0%, var(--pz-c2, #eef2f7) 100%);
  border: 1px solid var(--pz-line, var(--line)); position: relative; overflow: hidden;
}
.pz-mine::after {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 340px; height: 340px;
  background: radial-gradient(circle, var(--pz-glow, rgba(148,163,184,.35)) 0%, transparent 68%);
  opacity: .5; pointer-events: none;
}
.pz-mine[data-form="1"] { --pz-c1: #fbfcfe; --pz-c2: #eef2f8; --pz-ink: #64748b; --pz-glow: rgba(148,163,184,.45); --pz-line: #e2e8f0; }
.pz-mine[data-form="2"] { --pz-c1: #f6fdfa; --pz-c2: #e4f7ee; --pz-ink: #059669; --pz-glow: rgba(52,211,153,.42); --pz-line: #d3f0e2; }
.pz-mine[data-form="3"] { --pz-c1: #fbf9ff; --pz-c2: #efe7ff; --pz-ink: #7c3aed; --pz-glow: rgba(167,139,250,.46); --pz-line: #e6dcff; }
.pz-mine[data-form="4"] { --pz-c1: #fffdf4; --pz-c2: #fff0cf; --pz-ink: #b45309; --pz-glow: rgba(251,191,36,.5); --pz-line: #f7e3b5; }
.pz-mine[data-form="5"] { --pz-c1: #14182f; --pz-c2: #23203f; --pz-ink: #f5d98b; --pz-glow: rgba(255,214,120,.55); --pz-line: #3b3560; }
.pz-mine[data-form="5"] .pz-mine-top b,
.pz-mine[data-form="5"] .pz-mine-name { color: #f8f0d8; }
.pz-mine[data-form="5"] .pz-mine-need,
.pz-mine[data-form="5"] .pz-mine-tip,
.pz-mine[data-form="5"] .pz-mine-cls,
.pz-mine[data-form="5"] .pz-mine-sp { color: #b7b0d0; }
.pz-mine[data-form="5"] .pz-mine-kpis div { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.pz-mine[data-form="5"] .pz-mine-kpis b { color: #f8f0d8; }
.pz-mine[data-form="5"] .pz-mine-kpis span { color: #a99fc4; }

.pz-mine-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-width: 0; }
.pz-mine-stage .pz-art { width: 160px; max-width: 100%; flex: none; }
.pz-mine-stage .pz-lv { position: absolute; left: -6px; top: -4px; z-index: 8; }
.pz-mine-name { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--txt); font-family: var(--kai); }
.pz-mine-sp { font-size: 11.5px; color: var(--sub); }
.pz-mine-side { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; }
.pz-mine-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.pz-mine-top b { font-size: 18px; color: var(--txt); font-family: var(--kai); }
.pz-form-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.6);
  color: var(--pz-ink, var(--sub)); border: 1px solid var(--pz-line, var(--line)); font-variant-numeric: tabular-nums; }
.pz-mine-cls { font-size: 11.5px; color: var(--muted); }
.pz-mine-need { font-size: 12.4px; color: var(--sub); margin: 6px 0 12px; }
.pz-mine-need b { color: var(--pz-ink, var(--txt)); font-size: 14px; font-variant-numeric: tabular-nums; }
.pz-mine-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pz-mine-kpis div { padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.65); border: 1px solid var(--pz-line, var(--line)); }
.pz-mine-kpis b { display: block; font-size: 16px; color: var(--txt); font-variant-numeric: tabular-nums; }
.pz-mine-kpis span { font-size: 11px; color: var(--sub); }
.pz-mine-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pz-mine-tip { margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--muted); }

.pz-mine-empty {
  display: flex; align-items: center; gap: 18px; padding: 20px;
  border-radius: 18px; border: 1px dashed var(--line); background: var(--card); margin-bottom: 14px;
}
.pz-mine-empty-art { font-size: 52px; line-height: 1; }
.pz-mine-empty b { font-size: 16px; color: var(--txt); }
.pz-mine-empty p { margin: 4px 0 10px; font-size: 12.5px; color: var(--sub); }

/* ---------------- 立绘层 ---------------- */
.pz-art { position: relative; display: grid; place-items: center; isolation: isolate; }
/* Lv1 只该看到一颗蛋 —— 立绘缩到蛋壳里面、压暗虚化，像影子；
 * 不这么做，耳朵和尾巴会从蛋壳边上冒出来，一眼穿帮。 */
.pz-art[data-form="1"] .pz-body {
  opacity: .42; transform: scale(.66) translateY(6%);
  filter: blur(1.6px) saturate(.75) brightness(.98);
}
.pz-body {
  position: relative; z-index: 3; width: 100%; height: 100%; object-fit: contain; display: block;
  /* 素材是方形萌宠头像（浅米底）。圆形遮罩 + 边缘羽化，白底自然消失，
   * 卡底再深也不会出现「一块白方块」。 */
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, rgba(0,0,0,.72) 64%, rgba(0,0,0,.22) 74%, transparent 84%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, rgba(0,0,0,.72) 64%, rgba(0,0,0,.22) 74%, transparent 84%);
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, .12));
  -webkit-user-select: none; user-select: none;
}
.pz-aura {
  position: absolute; z-index: 1; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 52%, var(--pz-glow, rgba(148,163,184,.4)) 0%, transparent 66%);
  opacity: .85;
  animation: pzAura 5.2s ease-in-out infinite;
}
@keyframes pzAura { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }

/* 符文环：Lv3 起出现，Lv4 双层，MAX 转得更快 */
.pz-ring {
  position: absolute; z-index: 2; inset: 6%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 12%, var(--pz-glow, #a5b4fc) 18%, transparent 26% 48%,
    var(--pz-glow, #a5b4fc) 54%, transparent 62% 84%, var(--pz-glow, #a5b4fc) 90%, transparent 96%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 73%);
  mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 73%);
  opacity: .55; animation: pzSpin 16s linear infinite;
}
.pz-ring.r2 { inset: 1%; opacity: .35; animation-duration: 26s; animation-direction: reverse; }
@keyframes pzSpin { to { transform: rotate(360deg); } }

.pz-spark {
  position: absolute; z-index: 4; width: 5px; height: 5px; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: 0 0 8px 2px var(--pz-glow, #fde68a); opacity: 0;
  animation: pzSpark 3.4s ease-in-out infinite;
  top: 16%; left: 20%;
}
.pz-spark.s2 { top: 26%; left: 78%; animation-delay: 1.1s; }
.pz-spark.s3 { top: 74%; left: 32%; animation-delay: 2.2s; width: 4px; height: 4px; }
@keyframes pzSpark { 0%, 100% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.25); } }

/* 蛋壳：Lv1 就是一颗蛋，颜色按物种 tint 走（青玉 / 白玉 / 暖金各不相同） */
.pz-egg {
  position: absolute; z-index: 5; inset: 2% 8%; border-radius: 50% 50% 47% 47% / 61% 61% 39% 39%;
  background:
    radial-gradient(60% 48% at 34% 24%, rgba(255,255,255,.95), rgba(255,255,255,0) 62%),
    radial-gradient(120% 100% at 50% 110%, rgba(120, 113, 108, .16), transparent 60%),
    linear-gradient(150deg, #fffdfa 0%, color-mix(in srgb, var(--pz-tint, #e7e5e4) 78%, #fff) 46%,
      color-mix(in srgb, var(--pz-tint, #e7e5e4) 92%, #efece4) 100%);
  box-shadow: inset -6px -10px 18px rgba(120, 113, 108, .16), inset 5px 6px 14px rgba(255,255,255,.9),
    0 8px 18px rgba(15, 23, 42, .12);
  pointer-events: none;
}
.pz-egg u {
  position: absolute; left: 30%; top: 34%; width: 20%; height: 8%;
  border-top: 1.6px solid rgba(120, 113, 108, .3); border-radius: 50%; transform: rotate(16deg);
}
.pz-egg u:nth-child(2) { left: 42%; top: 55%; width: 26%; transform: rotate(-20deg); }
.pz-egg u:nth-child(3) { left: 20%; top: 66%; width: 18%; transform: rotate(8deg); }

/* ---------------- 卡墙 ---------------- */
.pz-wall-card { padding-bottom: 12px; }
.pz-wall {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 4px;
}
.pz-card {
  position: relative; border-radius: 14px; padding: 10px 10px 8px; cursor: pointer;
  background: linear-gradient(165deg, var(--pz-c1, #fbfcfe) 0%, var(--pz-c2, #eef2f8) 100%);
  border: 1px solid var(--pz-line, var(--line));
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  overflow: hidden;
}
.pz-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, .13); }
.pz-card::before {
  content: ''; position: absolute; left: 50%; top: 18%; width: 130%; height: 56%;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--pz-glow, rgba(148,163,184,.32)) 0%, transparent 68%);
  opacity: .55;
}
.pz-card.mine { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(147, 197, 253, .35); }
.pz-card[data-form="1"] { --pz-c1: #fcfdfe; --pz-c2: #eef2f8; --pz-ink: #64748b; --pz-glow: rgba(148,163,184,.4); --pz-line: #e5eaf1; }
.pz-card[data-form="2"] { --pz-c1: #f7fdfa; --pz-c2: #e6f7ef; --pz-ink: #059669; --pz-glow: rgba(52,211,153,.4); --pz-line: #d8f0e5; }
.pz-card[data-form="3"] { --pz-c1: #fbf9ff; --pz-c2: #f0e8ff; --pz-ink: #7c3aed; --pz-glow: rgba(167,139,250,.44); --pz-line: #e9e0ff; }
.pz-card[data-form="4"] { --pz-c1: #fffdf5; --pz-c2: #fff1d2; --pz-ink: #b45309; --pz-glow: rgba(251,191,36,.48); --pz-line: #f8e5b8; }
.pz-card[data-form="5"] {
  --pz-c1: #161a33; --pz-c2: #241f42; --pz-ink: #f5d98b; --pz-glow: rgba(255,214,120,.6); --pz-line: #b08d43;
  box-shadow: 0 0 0 1px rgba(240, 205, 106, .45), 0 10px 26px rgba(90, 66, 20, .22);
}
.pz-card[data-form="5"] .pz-nm b { color: #f8f0d8; }
.pz-card[data-form="5"] .pz-nm em { color: #b9a8d6; }
.pz-card[data-form="5"] .pz-need { color: #bdb2d8; }
.pz-card[data-form="5"] .pz-res { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.pz-card[data-form="5"] .pz-res span { color: #e6dcf7; }
.pz-card[data-form="5"] .pz-bar { background: rgba(255,255,255,.12); }
.pz-card[data-form="5"] .pz-body { filter: drop-shadow(0 0 16px rgba(255,214,120,.45)) brightness(1.06) saturate(1.1); }
.pz-card[data-form="5"] .pz-ring { opacity: .75; animation-duration: 9s; }

.pz-lv {
  display: inline-flex; align-items: center; gap: 3px; position: relative; z-index: 6;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px;
  color: var(--pz-ink, #64748b); background: rgba(255,255,255,.72); border: 1px solid var(--pz-line, #e2e8f0);
  font-variant-numeric: tabular-nums;
}
.pz-lv.max { color: #7c5a12; background: linear-gradient(135deg, #fff3c4, #ffe08a); border-color: #f0cd6a; }
.pz-summon {
  position: absolute; right: 8px; top: 8px; z-index: 7; cursor: pointer;
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid #f0cd6a;
  background: linear-gradient(135deg, #ffe9a8, #ffd166); color: #6b4a00; font-weight: 700;
}
.pz-summon.off { opacity: .55; filter: grayscale(.5); }
.pz-summon:hover { filter: brightness(1.06); }

.pz-card-art { width: 100%; aspect-ratio: 1 / 1; margin: 2px 0 4px; }
.pz-card-art .pz-body { width: 92%; height: 92%; }
.pz-card-art .pz-egg, .pz-step-art .pz-egg { inset: 4% 9%; }
.pz-nm { display: flex; align-items: baseline; gap: 5px; min-width: 0; position: relative; z-index: 6; }
.pz-nm b { font-size: 14px; color: var(--txt); font-family: var(--kai); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-nm em { font-size: 10.5px; color: var(--sub); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pz-bar { height: 5px; border-radius: 99px; background: rgba(15, 23, 42, .07); overflow: hidden; margin: 7px 0 5px; position: relative; z-index: 6; }
.pz-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pz-ink, #64748b), var(--pz-glow, #94a3b8)); transition: width .55s ease; }
.pz-bar.big { height: 8px; margin: 0 0 4px; }
.pz-bar.big i { background: linear-gradient(90deg, #60a5fa, #2563eb); }
.pz-mine[data-form="2"] .pz-bar.big i,
.pz-bar.big[data-form="2"] i { background: linear-gradient(90deg, #34d399, #059669); }
.pz-mine[data-form="3"] .pz-bar.big i,
.pz-bar.big[data-form="3"] i { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.pz-mine[data-form="4"] .pz-bar.big i,
.pz-bar.big[data-form="4"] i { background: linear-gradient(90deg, #fbbf24, #d97706); }
.pz-mine[data-form="5"] .pz-bar.big i,
.pz-bar.big[data-form="5"] i { background: linear-gradient(90deg, #ffe9a8, #e0b34c); }

.pz-need { font-size: 10.8px; color: var(--sub); position: relative; z-index: 6; }
.pz-need b { color: var(--pz-ink, var(--txt)); font-variant-numeric: tabular-nums; font-size: 12px; }
.pz-need .ok { color: #b45309; font-weight: 700; }
.pz-res {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 7px;
  padding: 4px 2px; border-radius: 8px; background: rgba(255,255,255,.6); border: 1px solid var(--pz-line, #eef2f7);
  position: relative; z-index: 6;
}
.pz-res span {
  font-size: 10.6px; color: var(--sub); text-align: center; white-space: nowrap;
  font-family: inherit, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}
.pz-res b { font-variant-numeric: tabular-nums; color: var(--txt); font-size: 11.4px; }

.pz-form-legend {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.pz-form-legend span { font-size: 11.4px; color: var(--sub); padding: 2px 9px; border-radius: 999px; background: var(--tint2); }
.pz-form-legend b { color: var(--txt); }
.pz-filter { display: inline-flex; gap: 4px; }
.pz-filter button {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); cursor: pointer;
  font-size: 11.6px; padding: 3px 10px; border-radius: 999px;
}
.pz-filter button.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.pz-nores { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.pz-empty { padding: 26px 10px; text-align: center; }
.pz-empty-art { font-size: 46px; margin-bottom: 6px; }
.pz-empty b { display: block; font-size: 14.5px; color: var(--txt); }
.pz-empty span { display: block; margin: 5px 0 12px; font-size: 12.4px; color: var(--sub); }

/* ---------------- 五形态横排 ---------------- */
.pz-ladder-card { margin-bottom: 14px; }
.pz-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pz-step {
  position: relative; text-align: center; padding: 10px 6px 8px; border-radius: 13px;
  background: linear-gradient(170deg, var(--pz-c1, #fbfcfe), var(--pz-c2, #f0f3f8));
  border: 1px solid var(--pz-line, var(--line)); opacity: .78;
}
.pz-step.cur { opacity: 1; box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); border-color: #93c5fd; }
.pz-step.done { opacity: .92; }
.pz-step[data-form="1"] { --pz-c1: #fcfdfe; --pz-c2: #eef2f8; --pz-ink: #64748b; --pz-glow: rgba(148,163,184,.4); --pz-line: #e5eaf1; }
.pz-step[data-form="2"] { --pz-c1: #f7fdfa; --pz-c2: #e6f7ef; --pz-ink: #059669; --pz-glow: rgba(52,211,153,.4); --pz-line: #d8f0e5; }
.pz-step[data-form="3"] { --pz-c1: #fbf9ff; --pz-c2: #f0e8ff; --pz-ink: #7c3aed; --pz-glow: rgba(167,139,250,.44); --pz-line: #e9e0ff; }
.pz-step[data-form="4"] { --pz-c1: #fffdf5; --pz-c2: #fff1d2; --pz-ink: #b45309; --pz-glow: rgba(251,191,36,.48); --pz-line: #f8e5b8; }
.pz-step[data-form="5"] { --pz-c1: #161a33; --pz-c2: #241f42; --pz-ink: #f5d98b; --pz-glow: rgba(255,214,120,.6); --pz-line: #4a3f74; }
.pz-step-art { position: relative; height: 96px; display: grid; place-items: center; }
.pz-step-art .pz-body { height: 100%; width: auto; max-width: 100%; }
.pz-step[data-form="1"] .pz-step-art .pz-body { height: 58px; }
.pz-step[data-form="2"] .pz-step-art .pz-body { height: 70px; }
.pz-step[data-form="3"] .pz-step-art .pz-body { height: 80px; }
.pz-step[data-form="4"] .pz-step-art .pz-body { height: 88px; }
.pz-step[data-form="5"] .pz-step-art .pz-body { height: 86px; filter: drop-shadow(0 0 12px rgba(255,214,120,.5)) brightness(1.06); }
.pz-step-meta b { display: block; font-size: 12px; color: var(--pz-ink, var(--txt)); font-variant-numeric: tabular-nums; }
.pz-step-meta span { font-size: 11.6px; color: var(--txt); font-family: var(--kai); }
.pz-step[data-form="5"] .pz-step-meta span { color: #f8f0d8; }
.pz-step-need { font-size: 10.4px; color: var(--muted); margin-top: 3px; }
.pz-ladder-cur { font-size: 12px; color: var(--sub); }

/* ---------------- 召唤全屏 ---------------- */
.pz-fx-full {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #1c2350 0%, #0b0f22 58%, #05070f 100%);
  opacity: 0; transition: opacity .38s ease; overflow: hidden; cursor: pointer;
}
.pz-fx-full.on { opacity: 1; }
.pz-fx-sky {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--pz-fx, #a9c6f5) 30%, transparent) 0%, transparent 58%);
  animation: pzFxBreath 4s ease-in-out infinite;
}
@keyframes pzFxBreath { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.12); opacity: .9; } }
.pz-fx-stars { position: absolute; inset: 0; }
.pz-fx-stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 1px var(--pz-fx, #a9c6f5); opacity: 0;
  animation: pzStar 3.2s ease-in-out infinite;
}
.pz-fx-stars i:nth-child(3n) { width: 2px; height: 2px; animation-duration: 4.1s; }
.pz-fx-stars i:nth-child(5n) { width: 4px; height: 4px; animation-duration: 2.6s; }
@keyframes pzStar { 0%, 100% { opacity: 0; transform: scale(.3); } 45% { opacity: .95; transform: scale(1.2); } }

.pz-fx-ring {
  position: absolute; width: min(72vmin, 520px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--pz-fx, #a9c6f5) 55%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--pz-fx, #a9c6f5) 30%, transparent),
    inset 0 0 60px color-mix(in srgb, var(--pz-fx, #a9c6f5) 22%, transparent);
  animation: pzSpin 14s linear infinite;
}
.pz-fx-ring::after {
  content: ''; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed
    color-mix(in srgb, var(--pz-fx, #a9c6f5) 40%, transparent);
}
.pz-fx-ring.r2 { width: min(52vmin, 380px); animation-duration: 9s; animation-direction: reverse; opacity: .7; }

.pz-fx-core { position: relative; z-index: 3; animation: pzFxIn .72s cubic-bezier(.2,.9,.3,1) both; }
@keyframes pzFxIn { from { opacity: 0; transform: scale(.35) translateY(18px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.pz-fx-art { width: min(46vmin, 300px); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.pz-fx-art img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 50%, rgba(0,0,0,.6) 62%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 50%, rgba(0,0,0,.6) 62%, transparent 80%);
  filter: drop-shadow(0 0 30px var(--pz-fx, #a9c6f5)) brightness(1.12) saturate(1.15);
  animation: pzFloat 3.4s ease-in-out infinite;
}
@keyframes pzFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.03); } }

.pz-fx-copy {
  position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; z-index: 4;
  animation: pzCopyIn .8s .35s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes pzCopyIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.pz-fx-tt {
  font-family: var(--kai); font-size: clamp(34px, 8vmin, 62px); letter-spacing: .3em; font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, #ffe9a8 46%, #e0b34c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(255, 214, 120, .4); padding-left: .3em;
}
.pz-fx-sub { margin-top: 6px; font-size: 14px; color: #d9d3f0; letter-spacing: .12em; }
.pz-fx-skill {
  margin-top: 8px; font-size: 20px; font-family: var(--kai); font-weight: 700;
  color: #ffe9a8; text-shadow: 0 0 18px rgba(255, 214, 120, .6);
}
.pz-fx-meta { margin-top: 6px; font-size: 12px; color: #a9a3c6; }
.pz-fx-x {
  position: absolute; bottom: 3.4%; left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 8px 26px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); color: #e8e4f7;
}
.pz-fx-x:hover { background: rgba(255,255,255,.18); }

/* 召唤的四种气浪：只在核心周围多一层不同的粒子形态 */
.pz-fx-full[data-fx="wave"] .pz-fx-core::after,
.pz-fx-full[data-fx="quake"] .pz-fx-core::before {
  content: ''; position: absolute; inset: -6%; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--pz-fx, #a9c6f5) 60%, transparent);
  animation: pzWave 2.4s ease-out infinite;
}
.pz-fx-full[data-fx="quake"] .pz-fx-core::before { animation-delay: 1.2s; }
.pz-fx-full[data-fx="quake"] { animation: pzQuake .12s 6 .4s; }
@keyframes pzWave { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pzQuake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-4px, 2px, 0); }
  75% { transform: translate3d(4px, -2px, 0); }
}

/* ---------------- 详情弹窗 ---------------- */
.pz-detail { min-width: 0; }
.pz-detail-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pz-detail-h b { font-size: 16px; font-family: var(--kai); color: var(--txt); }
.pz-detail-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
.pz-detail-art { position: relative; }
.pz-detail-art .pz-body { width: 100%; }
.pz-detail[data-form="1"] { --pz-glow: rgba(148,163,184,.4); --pz-ink: #64748b; }
.pz-detail[data-form="2"] { --pz-glow: rgba(52,211,153,.4); --pz-ink: #059669; }
.pz-detail[data-form="3"] { --pz-glow: rgba(167,139,250,.44); --pz-ink: #7c3aed; }
.pz-detail[data-form="4"] { --pz-glow: rgba(251,191,36,.48); --pz-ink: #b45309; }
.pz-detail[data-form="5"] { --pz-glow: rgba(255,214,120,.6); --pz-ink: #b45309; }
.pz-detail-species { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.pz-detail-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; }
.pz-detail-kv div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.4px; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.pz-detail-kv span { color: var(--sub); }
.pz-detail-kv b { color: var(--txt); }
.pz-detail-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pz-detail-ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.pz-dstep { padding: 6px 4px; border-radius: 9px; text-align: center; background: var(--tint2); border: 1px solid transparent; opacity: .6; }
.pz-dstep.done { opacity: .9; }
.pz-dstep.cur { opacity: 1; border-color: #93c5fd; background: #eff6ff; }
.pz-dstep .lv { display: block; font-size: 11px; font-weight: 700; color: var(--txt); }
.pz-dstep .nm { font-size: 11.4px; color: var(--sub); font-family: var(--kai); }
.pz-detail-log { margin-top: 14px; }
.pz-detail-log-h { font-size: 12.4px; color: var(--sub); margin-bottom: 6px; }
.pz-dlog-it { display: flex; justify-content: space-between; gap: 10px; font-size: 12.4px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.pz-dlog-it b { color: var(--txt); }
.pz-dlog-it span { color: var(--muted); }

/* ---------------- 最近召唤 ---------------- */
.pz-recent { display: flex; flex-direction: column; gap: 6px; }
.pz-recent-it { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--tint2); }
.pz-recent-it .who { font-size: 12.8px; font-weight: 600; color: var(--txt); }
.pz-recent-it .sk { font-size: 12.4px; color: #b45309; font-family: var(--kai); }
.pz-recent-it .tiny { margin-left: auto; }

/* 升级时整卡闪一下金光 */
.pz-levelup { animation: pzLevelUp .9s cubic-bezier(.2,.9,.3,1); }
@keyframes pzLevelUp {
  0% { box-shadow: 0 0 0 0 rgba(255, 214, 120, .8); }
  55% { box-shadow: 0 0 0 8px rgba(255, 214, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 214, 120, 0); }
}

/* ---------------- 深色主题 ---------------- */
[data-theme="dark"] .pz-card[data-form="1"], body.dark .pz-card[data-form="1"],
[data-theme="dark"] .pz-step[data-form="1"], body.dark .pz-step[data-form="1"] {
  --pz-c1: #182131; --pz-c2: #131b2a; --pz-line: #26334d; --pz-ink: #94a3b8;
}
[data-theme="dark"] .pz-card[data-form="2"], body.dark .pz-card[data-form="2"],
[data-theme="dark"] .pz-step[data-form="2"], body.dark .pz-step[data-form="2"] {
  --pz-c1: #13251f; --pz-c2: #10201b; --pz-line: #1d3b31; --pz-ink: #6ee7b7;
}
[data-theme="dark"] .pz-card[data-form="3"], body.dark .pz-card[data-form="3"],
[data-theme="dark"] .pz-step[data-form="3"], body.dark .pz-step[data-form="3"] {
  --pz-c1: #1b1730; --pz-c2: #171329; --pz-line: #322a52; --pz-ink: #c4b5fd;
}
[data-theme="dark"] .pz-card[data-form="4"], body.dark .pz-card[data-form="4"],
[data-theme="dark"] .pz-step[data-form="4"], body.dark .pz-step[data-form="4"] {
  --pz-c1: #241d13; --pz-c2: #1d170f; --pz-line: #42331b; --pz-ink: #fbbf24;
}
[data-theme="dark"] .pz-nm b, body.dark .pz-nm b { color: #e2e8f0; }
[data-theme="dark"] .pz-nm em, body.dark .pz-nm em { color: #93a3b8; }
[data-theme="dark"] .pz-res, body.dark .pz-res { background: rgba(255,255,255,.05); border-color: #26334d; }
[data-theme="dark"] .pz-res b, body.dark .pz-res b { color: #e2e8f0; }
[data-theme="dark"] .pz-lv, body.dark .pz-lv { background: rgba(255,255,255,.08); border-color: #2b3b57; }
[data-theme="dark"] .pz-mine-kpis div, body.dark .pz-mine-kpis div { background: rgba(255,255,255,.05); border-color: #26334d; }
[data-theme="dark"] .pz-mine-empty, body.dark .pz-mine-empty { background: #131f36; border-color: #26334d; }
[data-theme="dark"] .pz-form-legend span, body.dark .pz-form-legend span { background: #131f36; }
[data-theme="dark"] .pz-recent-it, body.dark .pz-recent-it { background: #131f36; }
[data-theme="dark"] .pz-dstep.cur, body.dark .pz-dstep.cur { background: #1c2b47; border-color: #3b82f6; }

/* ---------------- 手机 ---------------- */
@media (max-width: 980px) {
  .pz-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pz-head { align-items: flex-start; }
  .pz-tools { width: 100%; margin-left: 0; }
  .pz-search { flex: 1; }
  .pz-search input { width: 100%; }
  .pz-mine { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .pz-mine-stage { flex-direction: row; gap: 12px; justify-content: flex-start; }
  .pz-mine-stage .pz-art { width: 96px; flex: none; }
  .pz-mine-name { margin: 0; font-size: 15px; }
  .pz-mine-sp { font-size: 11px; }
  .pz-mine-kpis { grid-template-columns: repeat(2, 1fr); }
  .pz-mine-top b { font-size: 16px; }
  .pz-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pz-ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .pz-step { padding: 6px 2px; }
  .pz-step-art { height: 58px; }
  .pz-step[data-form="1"] .pz-step-art .pz-body { height: 40px; }
  .pz-step[data-form="2"] .pz-step-art .pz-body { height: 46px; }
  .pz-step[data-form="3"] .pz-step-art .pz-body { height: 50px; }
  .pz-step[data-form="4"] .pz-step-art .pz-body { height: 54px; }
  .pz-step[data-form="5"] .pz-step-art .pz-body { height: 58px; }
  .pz-step-meta b { font-size: 10.5px; }
  .pz-step-meta span { font-size: 10.4px; }
  .pz-step-need { display: none; }
  .pz-detail-body { grid-template-columns: 1fr; }
  .pz-detail-art { width: 140px; margin: 0 auto; }
  .pz-fx-copy { bottom: 12%; }
}

/* ---------------- 需求 229：老师端神兽墙区块 ---------------- */
.pzt-block { margin-bottom: 14px; }
.pzt-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sub); cursor: pointer; }
.pzt-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pzt-bars { display: flex; flex-direction: column; gap: 6px; }
.pzt-bar { display: flex; align-items: center; gap: 8px; font-size: 11.6px; color: var(--sub); }
.pzt-bar .lb { width: 92px; flex: none; white-space: nowrap; }
.pzt-bar .lb[data-form="1"] { color: #64748b; }
.pzt-bar .lb[data-form="2"] { color: #059669; }
.pzt-bar .lb[data-form="3"] { color: #7c3aed; }
.pzt-bar .lb[data-form="4"] { color: #b45309; }
.pzt-bar .lb[data-form="5"] { color: #b8860b; }
.pzt-bar .tr { flex: 1; height: 7px; border-radius: 99px; background: var(--tint2); overflow: hidden; }
.pzt-bar .tr i { display: block; height: 100%; border-radius: 99px; background: #94a3b8; transition: width .5s ease; }
.pzt-bar .tr i[data-form="2"] { background: #34d399; }
.pzt-bar .tr i[data-form="3"] { background: #a78bfa; }
.pzt-bar .tr i[data-form="4"] { background: #fbbf24; }
.pzt-bar .tr i[data-form="5"] { background: linear-gradient(90deg, #ffe9a8, #d4a017); }
.pzt-bar b { width: 22px; text-align: right; font-variant-numeric: tabular-nums; color: var(--txt); }
.pzt-hint { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--sub); line-height: 1.8; }
.pzt-hint b { color: var(--txt); font-size: 12.6px; }

[data-theme="dark"] .pzt-bar .tr, body.dark .pzt-bar .tr { background: #1b2942; }
[data-theme="dark"] .pzt-bar b, body.dark .pzt-bar b { color: #e2e8f0; }

@media (max-width: 900px) {
  .pzt-foot { grid-template-columns: 1fr; }
}

/* 学生端神兽园的四宫格统计（statCard 只是单个卡片，需要外面给栅格） */
.pz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .pz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pz-mine-side { justify-content: center; }
