/* 基础样式 —— 浅色主题，主色 #2563eb */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --danger: #dc2626;
  --success: #16a34a;
  --warn: #d97706;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  display: flex;
  overflow: hidden;
  min-height: 480px;
}
.login-brand {
  flex: 1;
  background: linear-gradient(160deg, #1e40af, #2563eb);
  color: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand h1 { font-size: 26px; margin-bottom: 10px; }
.login-brand .sub { opacity: .85; font-size: 14px; margin-bottom: 28px; }
.login-brand ul { list-style: none; padding: 0; margin: 0; }
.login-brand li {
  padding: 9px 0 9px 26px;
  position: relative;
  opacity: .95;
  font-size: 13.5px;
}
.login-brand li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 9px;
  width: 17px; height: 17px;
  background: rgba(255, 255, 255, .22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.login-form { width: 400px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-form h2 { font-size: 21px; margin-bottom: 6px; }
.login-form .tip { color: var(--text-2); font-size: 13px; margin-bottom: 26px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { background: #f9fafb; border-color: #d1d5db; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px;
  background: #1e293b;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 20;
}
.sidebar .brand {
  padding: 18px 18px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid #334155;
}
.sidebar .brand small { display: block; font-size: 11.5px; color: #94a3b8; font-weight: 400; margin-top: 3px; }
.nav { padding: 10px 0; flex: 1; overflow-y: auto; }
.nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  color: #cbd5e1;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}
.nav a:hover { background: #334155; color: #fff; }
.nav a.active { background: #334155; color: #fff; border-left-color: var(--primary); }
.nav .ico { width: 16px; text-align: center; opacity: .9; }
.sidebar .foot { padding: 12px 18px; border-top: 1px solid #334155; font-size: 12px; color: #94a3b8; }

.main { flex: 1; margin-left: 210px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .title { font-size: 16px; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.school-switch {
  height: 32px; max-width: 220px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #f8fafc; color: var(--text); font-size: 13px; cursor: pointer;
}
.school-switch:hover { border-color: var(--primary); }
.topbar .user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.content { padding: 22px; flex: 1; }

/* ---------- 卡片与表格 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.card-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h3 { font-size: 15px; }
.card-head .desc { font-size: 12.5px; color: var(--text-2); font-weight: 400; margin-left: 8px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid th, table.grid td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
table.grid th { background: #f9fafb; font-weight: 600; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
table.grid tbody tr:hover { background: #fafbfc; }
table.grid td.num, table.grid th.num { text-align: right; }
table.grid td.ctr, table.grid th.ctr { text-align: center; }
table.grid .actions { display: flex; gap: 6px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 19px;
  background: #f3f4f6;
  color: var(--text-2);
  white-space: nowrap;
}
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-green { background: #dcfce7; color: #166534; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-gray { background: #f3f4f6; color: #6b7280; }

/* ---------- 提示 ---------- */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

.empty { padding: 46px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .45; }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  box-shadow: var(--shadow);
}
.stat .k { font-size: 12.5px; color: var(--text-2); }
.stat .v { font-size: 25px; font-weight: 600; margin-top: 3px; line-height: 1.2; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--text-2); margin-left: 3px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px;
  z-index: 100;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.modal.wide { max-width: 900px; }
.modal-head { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 15.5px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { background: none; border: none; font-size: 20px; color: var(--text-3); cursor: pointer; line-height: 1; padding: 0 4px; }

/* ---------- Toast ---------- */
#toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1f2937;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  animation: drop .2s ease;
}
.toast.ok { background: #16a34a; }
.toast.err { background: #dc2626; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 课表网格 ---------- */
.tt-grid { overflow-x: auto; }
table.tt { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; }
table.tt th, table.tt td { border: 1px solid var(--border); padding: 0; text-align: center; }
table.tt th { background: #f9fafb; padding: 8px 6px; font-weight: 600; color: var(--text-2); font-size: 12.5px; }
table.tt td.slot-label {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  padding: 0 10px;
  font-size: 12.5px;
}
table.tt td.slot-label small { display: block; font-weight: 400; color: var(--text-3); font-size: 11px; }
table.tt select, table.tt input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 7px 6px;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}
table.tt select:focus, table.tt input:focus { outline: 2px solid var(--primary); outline-offset: -2px; background: #fff; }
table.tt td.no-inst select { color: var(--text-3); }

/* ---------- 复制区 ---------- */
.copy-block { margin-bottom: 14px; }
.copy-block .hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.copy-block .hd .t { font-size: 13.5px; font-weight: 600; }
.copy-block pre {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  max-height: 320px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 18px; background: #fff; }
.tabs button {
  background: none; border: none;
  padding: 11px 16px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------- 其它 ---------- */
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar .small.muted { margin-right: 2px; }
.filter-bar .select { width: auto; min-width: 108px; }
/* 科目切换胶囊按钮（知识要点 / AI 出题）：平铺、当前选中高亮 */
.subj-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { padding: 5px 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13px; line-height: 1.4; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* 分组管理 */
.grid-2 { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.grp-list { display: flex; flex-direction: column; gap: 4px; }
.grp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.grp:hover { border-color: var(--primary); }
.grp.on { border-color: var(--primary); background: #eef4ff; }
.grp-child { margin-left: 22px; border-style: dashed; }
.grp-ungrouped { color: var(--text-2); }
.grp-name { font-weight: 600; }
.grp-act { display: flex; gap: 10px; flex-shrink: 0; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* ---------- 用户管理：分组筛选 / 批量选择 ---------- */
.ug-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ug-filter { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: #fafbfc; }
.ug-filter-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ug-groups { display: flex; flex-wrap: wrap; gap: 6px 18px; max-height: 190px; overflow: auto; }
.ug-groups .check { white-space: nowrap; }

/* ---------- 接口测试：对话 ---------- */
.wb-chat { display: flex; flex-direction: column; gap: 12px; min-height: 320px; max-height: 56vh; overflow: auto; padding: 12px; background: #f7f8fa; border: 1px solid var(--border); border-radius: 10px; }
.wb-msg { display: flex; }
.wb-ai { justify-content: flex-start; }
.wb-me { justify-content: flex-end; }
.wb-sys { justify-content: center; }
.wb-bubble { max-width: 78%; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; line-height: 1.6; word-break: break-word; }
.wb-ai .wb-bubble { border-top-left-radius: 4px; }
.wb-me .wb-bubble { background: #e8f1ff; border-color: #cfe0ff; border-top-right-radius: 4px; }
.wb-sys .wb-bubble { background: #fffbe6; border-color: #ffe58f; color: #7a5b00; max-width: 92%; text-align: center; font-size: 12.5px; }
.wb-profile { display: flex; align-items: center; gap: 12px; }
.wb-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #eef1f5; }
.wb-avatar-ph { display: inline-block; border: 1px dashed var(--border); }
.wb-nick { font-weight: 700; font-size: 15px; }
.wb-input { display: flex; gap: 8px; margin-top: 12px; }
.wb-input .input { flex: 1; }
.wb-scopes { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.lnk-danger { color: #dc2626; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.mono { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 12.5px; }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.loading { padding: 40px; text-align: center; color: var(--text-3); }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ---------- 任务书管理 ---------- */
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tb-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: #fff; }
.tb-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tb-title { font-weight: 600; }
.tb-meta { color: var(--text-3); font-size: 12px; margin: 6px 0 10px; }
.tb-actions { display: flex; gap: 8px; }
.var-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.var-row .input { padding: 5px 8px; }
.code { background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 12px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; max-height: 460px; overflow: auto; }
.nav-group { color: var(--text-3); font-size: 12px; font-weight: 600; margin: 12px 0 4px; padding-left: 8px; letter-spacing: .04em; }

/* ---------- 反馈建议（我的反馈卡片） ---------- */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fff; }
.fb-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fb-time { color: var(--text-3); font-size: 12px; }
.fb-content { white-space: pre-wrap; line-height: 1.7; color: var(--text-1); }
.fb-reply { margin-top: 8px; padding: 8px 10px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 13px; line-height: 1.6; }

/* ---------- 教学进度：双轨日历 ---------- */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 12px; color: var(--text-3); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.cal td.cal-cell { border: 1px solid var(--border); vertical-align: top; height: 120px; padding: 4px 5px 20px; cursor: pointer; position: relative; }
.cal td.cal-cell:hover { background: #f1f5f9; }
.cal td.cal-cell.off { background: #fafafa; }
.cal td.cal-cell.holiday { background: #fff7ed; }
.cal td.cal-cell.today { box-shadow: inset 0 0 0 2px var(--primary); }
.cal td.cal-cell.empty { background: transparent; border: none; cursor: default; }
.cal .cal-top { display: flex; justify-content: space-between; align-items: baseline; }
.cal .cal-d { font-size: 12px; font-weight: 600; color: var(--text-2); }
.cal .cal-slot { font-size: 10.5px; color: var(--text-3); }
.cal .cal-node { margin-top: 3px; font-size: 11.5px; line-height: 1.35; border-radius: 4px; padding: 1px 4px; overflow: hidden; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal .n-plan { border: 1px dashed #94a3b8; color: #475569; background: #f8fafc; }
.cal .n-actual { border: 1px solid #16a34a; color: #166534; background: #f0fdf4; }
.cal .cal-line { position: absolute; left: 0; right: 0; bottom: 0; height: 15px; line-height: 15px; font-size: 10px; color: #fff; padding: 0 5px; overflow: hidden; white-space: nowrap; }
.cal .line-none { background: transparent; }
.cal .line-plan { background: #94a3b8; opacity: .9; }
.cal .line-actual { background: #16a34a; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); padding: 8px 18px; border-bottom: 1px solid var(--border); }
.cal-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 5px; }
.cal-legend i.plan { border: 1px dashed #94a3b8; background: #f8fafc; }
.cal-legend i.actual { border: 1px solid #16a34a; background: #f0fdf4; }
.cal-legend i.line-plan { background: #94a3b8; height: 6px; }
.cal-legend i.line-actual { background: #16a34a; height: 6px; }

/* ---------- 试卷预览 ---------- */
.exam-q { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.exam-q:last-child { border-bottom: none; }
.exam-opt { margin-left: 22px; margin-top: 3px; color: var(--text-2); }
.exam-ans { margin-left: 22px; margin-top: 3px; color: #166534; font-size: 13px; }
.exam-ana { margin-left: 22px; margin-top: 2px; color: #475569; font-size: 12.5px; }
.exam-kp { margin-left: 22px; margin-top: 2px; color: var(--text-3); font-size: 12px; }

/* ---------- 在线答题 / 答题结果 ---------- */
.quiz-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}
.quiz-bar .meta { color: var(--text-2); font-size: 13px; }
.quiz-time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quiz-time.warn { color: #d97706; }
.quiz-time.danger { color: #dc2626; }
.quiz-time.done { color: #16a34a; }

.ans-q { padding: 14px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 70px; }
.ans-q:last-child { border-bottom: none; }
.ans-stem { margin-bottom: 10px; line-height: 1.7; }
.ans-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 6px 0; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: .12s; background: #fff;
}
.ans-opt:hover { border-color: var(--primary); background: #f7fbff; }
.ans-opt input { accent-color: var(--primary); }
.ans-opt.on { border-color: #16a34a; background: #f0fdf4; }
.ans-input { width: 100%; margin: 6px 0; }
.wrong-reason { color: #dc2626; font-size: 12.5px; margin-top: 4px; }
.checks { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.check { display: flex; align-items: center; gap: 8px; }

/* ---------- 教材管理 ---------- */
.tb-row { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; margin-bottom: 8px; background: #fff; transition: .12s; }
.tb-row:hover { border-color: var(--primary); }
.tb-row.on { border-color: var(--primary); background: #f0f7ff; }
.tb-row-t { font-weight: 600; margin-bottom: 2px; }
.tree-node { padding: 6px 0; border-bottom: 1px dashed var(--border); line-height: 1.7; }
.tree-t { font-weight: 500; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: none; background: none; padding: 8px 14px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-body { margin-top: 4px; }

/* ---------- 学习数据分析 ---------- */
.exam-comment { background: #f0f7ff; border: 1px solid #dbeafe; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.7; font-size: 13.5px; }
.pbar { display: inline-block; width: 120px; height: 8px; border-radius: 5px; background: #eef2f7; overflow: hidden; vertical-align: middle; }
.pbar > span { display: block; height: 100%; border-radius: 5px; }
svg .c-grid { stroke: #e5e7eb; stroke-width: 1; }
svg .c-pass { stroke: #f59e0b; stroke-width: 1; stroke-dasharray: 4 4; }
svg .c-axis { fill: #9ca3af; font-size: 11px; }
svg .c-val { fill: #374151; font-size: 11px; font-weight: 600; }

