/* ===== 设计变量 ===== */
:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6ebf3;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --ok: #059669;
  --warn: #d97706;
  --red: #dc2626;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14.5px; -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== 布局 ===== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 20px 16px 16px;
  background: linear-gradient(180deg, #0b1220 0%, #111c31 60%, #0d1728 100%);
  color: #cbd5e1;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 6px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, .35);
}
.brand-text b { display: block; color: #fff; font-size: 16px; letter-spacing: .5px; }
.brand-text small { display: block; color: #94a3b8; font-size: 11px; margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: #cbd5e1; text-decoration: none; font-size: 14px; transition: all .15s;
}
.side-nav a:hover { background: rgba(148, 163, 184, .12); color: #fff; }
.side-nav a.on { background: linear-gradient(90deg, rgba(59, 130, 246, .28), rgba(139, 92, 246, .18)); color: #fff; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; display: grid; place-items: center; }
.side-tip { margin-top: auto; background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .18); border-radius: 12px; padding: 12px; }
.side-tip b { color: #fff; font-size: 13px; }
.side-tip p { color: #94a3b8; font-size: 12px; line-height: 1.6; margin: 6px 0 10px; }
.side-cta { display: block; text-align: center; padding: 8px; border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; text-decoration: none; font-size: 13px; }
.side-foot { margin-top: 12px; color: #64748b; font-size: 11px; text-align: center; }

.main { flex: 1; min-width: 0; }
.topbar {
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.crumb { color: var(--muted); font-size: 13px; }
.crumb a { color: var(--brand); text-decoration: none; }
.crumb span { margin: 0 6px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.live-pill { font-size: 12px; color: var(--ok); background: #ecfdf5; padding: 5px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #4338ca; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.content { max-width: 1180px; margin: 0 auto; padding: 24px 28px 48px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 30px 32px;
  background: radial-gradient(900px 300px at 85% -20%, rgba(139, 92, 246, .55), transparent 60%),
              radial-gradient(700px 260px at 10% 120%, rgba(37, 99, 235, .55), transparent 60%),
              linear-gradient(120deg, #1e40af, #4f46e5 55%, #7c3aed);
  color: #fff; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  box-shadow: 0 18px 40px rgba(30, 64, 175, .25);
}
.hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.eyebrow { font-size: 11px; letter-spacing: 2px; color: #c7d2fe; }
.hero h1 { font-size: 28px; margin: 8px 0 8px; letter-spacing: .5px; }
.hero p { margin: 0; color: #dbeafe; font-size: 13.5px; max-width: 520px; line-height: 1.7; }
.hero-stats { display: flex; gap: 10px; position: relative; z-index: 1; }
.hero-stats div { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 12px 16px; min-width: 86px; text-align: center; backdrop-filter: blur(6px); }
.hero-stats b { display: block; font-size: 24px; }
.hero-stats span { font-size: 11.5px; color: #dbeafe; }

/* ===== 工具栏 ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0 16px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.segmented { display: inline-flex; background: #e8edf6; border-radius: 12px; padding: 4px; gap: 2px; }
.seg { border: 0; background: transparent; padding: 8px 18px; border-radius: 9px; color: #475569; font-size: 13.5px; transition: all .15s; }
.seg:hover { color: #1d4ed8; }
.seg.on { background: #fff; color: #1d4ed8; box-shadow: var(--shadow-sm); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 40px; color: #94a3b8; }
.search input { border: 0; outline: 0; width: 210px; background: transparent; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 12.5px; color: #475569; background: #fff; user-select: none; transition: all .12s;
}
.chip input:checked + span { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.chip:hover span { border-color: #bfdbfe; }
.mini-chip span { padding: 5px 11px; }

/* ===== 教材卡片 ===== */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.book-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; overflow: hidden; cursor: pointer; transition: all .18s; box-shadow: var(--shadow-sm);
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.book-card.empty, .book-card.pending { background: #fbfcfe; }
.bc-cover {
  width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #fff; font-weight: 800; font-size: 22px;
}
.bc-cover em { font-style: normal; font-size: 10px; font-weight: 500; opacity: .9; }
.bc-cover.blue { background: linear-gradient(160deg, #2563eb, #60a5fa); }
.bc-cover.red { background: linear-gradient(160deg, #dc2626, #fb7185); }
.bc-cover.green { background: linear-gradient(160deg, #059669, #34d399); }
.bc-cover.amber { background: linear-gradient(160deg, #d97706, #fbbf24); }
.bc-body { padding: 12px 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.bc-sub { font-size: 11.5px; color: var(--muted); }
.status { margin-left: auto; font-size: 11px; padding: 3px 8px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ready { background: #ecfdf5; color: #047857; }
.status.pending { background: #fffbeb; color: #b45309; }
.status.empty { background: #f1f5f9; color: #64748b; }
.book-card h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: .2px; }
.bc-meta { margin: 0; color: var(--muted); font-size: 11.5px; }
.bc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #94a3b8; }
.bc-arrow { color: #c7d2fe; font-size: 15px; transition: transform .15s; }
.book-card:hover .bc-arrow { transform: translateX(3px); color: var(--brand); }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 34px; color: #cbd5e1; }
.empty-state h3 { margin: 10px 0 6px; color: var(--ink); }
.empty-state p { margin: 0 0 16px; font-size: 13px; }

/* ===== 通用面板/按钮 ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.label { font-size: 12.5px; color: var(--muted); min-width: 34px; }
.spacer { flex: 1; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #eff6ff; color: #1d4ed8; font-size: 12px; }

button.primary, button.ghost, button.mini, .icon-btn { border-radius: 10px; border: 1px solid transparent; transition: all .15s; }
button.primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; padding: 9px 18px; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); border: 0; }
button.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
button.ghost { background: #fff; color: #1d4ed8; border-color: #dbeafe; padding: 8px 14px; }
button.ghost:hover { background: #eff6ff; }
button.mini { padding: 3px 9px; font-size: 12px; background: #fff; border-color: #e2e8f0; color: #475569; }
.icon-btn { background: transparent; border: 0; color: var(--muted); font-size: 20px; width: 32px; height: 32px; }
select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.seed { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.seed input { width: 110px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 14px 0; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.filebtn { display: inline-flex; align-items: center; cursor: pointer; }

/* ===== 教材练习页 ===== */
.book-hero { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.cover { width: 72px; height: 92px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 800; flex: none; box-shadow: inset 0 -20px 40px rgba(0,0,0,.12); }
.cover.blue { background: linear-gradient(160deg, #2563eb, #60a5fa); }
.cover.red { background: linear-gradient(160deg, #dc2626, #fb7185); }
.cover.green { background: linear-gradient(160deg, #059669, #34d399); }
.cover.amber { background: linear-gradient(160deg, #d97706, #fbbf24); }
.book-hero-info { flex: 1; min-width: 0; }
.book-hero-info h1 { margin: 0 0 6px; font-size: 19px; }
.book-hero-info p { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; color: #1d4ed8; background: #eff6ff; padding: 3px 9px; border-radius: 20px; }
.tag.ghost-tag { color: #64748b; background: #f1f5f9; }
.book-hero-actions { display: flex; gap: 8px; }
.filter-panel { margin-top: 16px; }
.paper-wrap { margin-top: 18px; }
.paper-toolbar { margin-bottom: 10px; }
.paper-toolbar .meta { color: var(--muted); font-size: 12.5px; }
.paper-toolbar .tools { display: flex; gap: 8px; }

/* ===== 试卷（打印区） ===== */
.paper {
  width: 210mm; min-height: 297mm; margin: 0 auto; padding: 14mm 14mm 12mm;
  background: #fff; box-shadow: var(--shadow); border-radius: 4px;
  font-family: "SimSun", "宋体", serif; color: #000; font-size: 11.2pt; line-height: 1.65;
}
.paper .empty { color: #9aa6b2; text-align: center; padding-top: 80mm; font-size: 12pt; }
.p-head { border-bottom: 1.6pt solid #222; padding-bottom: 2mm; margin-bottom: 3mm; }
.p-title { font-family: "SimHei", "黑体"; font-size: 16pt; text-align: center; letter-spacing: 2px; }
.p-sub { text-align: center; font-size: 9.5pt; color: #333; margin-top: 1mm; }
.p-info { display: flex; justify-content: space-between; font-size: 9.5pt; margin-top: 2mm; }
.p-info .u { display: inline-block; border-bottom: .6pt solid #333; min-width: 26mm; }
.sec { margin-top: 3mm; }
.sec h2 { font-family: "SimHei", "黑体"; font-size: 11.5pt; margin: 0 0 1.5mm; font-weight: 700; }
.sec h2 .pt { font-family: "SimSun"; font-weight: normal; font-size: 9.5pt; color: #444; margin-left: 2mm; }
.item { margin: 0 0 2.2mm; page-break-inside: avoid; }
.item .q { display: flex; gap: 1mm; align-items: baseline; }
.item .no { font-family: "SimHei", "黑体"; }
.item .stem { flex: 1; }
.item .opts { margin: 0.5mm 0 0 6mm; }
.item .opts span { margin-right: 6mm; white-space: nowrap; }
.item .lines i { display: block; border-bottom: .55pt dashed #8a8a8a; height: 6.2mm; }
.item .ansline { color: #333; font-size: 10.5pt; }
.item .ansline .u { display: inline-block; border-bottom: .55pt solid #555; min-width: 46mm; }
.item .tools { margin-left: 3mm; }
.item .tools button { border: 1px solid #c7d2dd; background: #f7f9fb; color: #5c6b7a; border-radius: 4px; font-size: 10.5px; padding: 1px 6px; font-family: "Microsoft YaHei"; }
.answer { margin: 1mm 0 0 6mm; color: #b3261e; font-size: 10pt; background: #fff6f5; border-left: 2.5pt solid #e7b4b0; padding: 1mm 2mm; white-space: pre-wrap; }
.answer b { font-family: "SimHei"; }
body:not(.show-answers) .answer { display: none; }
.reading .passage { text-indent: 2em; margin: 1mm 0 1.5mm; }
.reading .rq { margin: 0.8mm 0 0 4mm; }
.reading .rq .lines i { height: 6mm; }
.write .lines i { height: 8mm; }
.blank { display: inline-block; min-width: 18mm; border-bottom: .6pt solid #333; height: 1em; margin-left: 2mm; vertical-align: -2px; }
.item .stem .hint { color: #666; font-size: 9.5pt; margin-top: 1mm; }

/* ===== 上传页 ===== */
.upload-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: start; }
.queue-wrap { max-height: 360px; overflow: auto; }
.qtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.qtable th, .qtable td { border-bottom: 1px solid var(--line); padding: 9px 6px; text-align: left; vertical-align: top; }
.qtable th { color: var(--muted); font-weight: 600; background: #f8fafc; font-size: 12px; }
.qsub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.mono { font-family: Consolas, monospace; font-size: 11.5px; color: var(--muted); word-break: break-all; }
.queue-actions { margin-top: 12px; }
.empty-mini { color: var(--muted); font-size: 13px; padding: 18px 4px; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 30; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { width: min(760px, 94vw); max-height: 82vh; background: #fff; border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(15, 23, 42, .3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 16px 20px; overflow: auto; font-size: 13.5px; line-height: 1.75; }
.wrong-item { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.wrong-item .wt { color: var(--muted); font-size: 12px; }
.wrong-item .wq { margin: 3px 0; }
.wrong-item .wa { color: var(--red); }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .upload-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { position: static; width: auto; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; overflow: auto; }
  .brand { padding: 0; }
  .brand-text small { display: none; }
  .side-nav { flex-direction: row; margin: 0; }
  .side-nav a { padding: 8px 10px; white-space: nowrap; }
  .side-tip, .side-foot { display: none; }
  .topbar { position: static; }
  .content { padding: 18px 16px 40px; }
  .paper { width: 100%; min-height: auto; padding: 16px; }
  .hero h1 { font-size: 22px; }
  .hero-stats { width: 100%; }
  .hero-stats div { flex: 1; }
  .search input { width: 140px; }
  .book-grid { grid-template-columns: 1fr; }
}

/* ===== 打印 ===== */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, .hero, .toolbar, .filter-panel, .book-hero, .upload-grid, .modal { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .paper { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
  .item { break-inside: avoid; }
  .answer { display: block !important; }
  body:not(.show-answers) .answer { display: none !important; }
}

/* 文件按钮与表单宽度修正 */
label.ghost { border: 1px solid #dbeafe; background: #fff; color: #1d4ed8; padding: 8px 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; }
label.ghost:hover { background: #eff6ff; }
.form-grid input, .form-grid select { width: 100%; }

/* 移动端细化 */
html, body { overflow-x: clip; }
@media (max-width: 860px) {
  .brand-text { display: none; }
  .sidebar { gap: 8px; }
  .content { overflow-x: hidden; }
  .hero { padding: 20px; border-radius: 18px; }
  .hero h1 { font-size: 21px; }
  .hero p { font-size: 12.5px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats div { min-width: 0; padding: 10px 8px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { flex-direction: column; align-items: stretch; }
  .segmented { overflow-x: auto; width: 100%; }
  .search { width: 100%; }
  .search input { width: 100%; }
  #homeGrade { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .book-grid { grid-template-columns: 1fr; }
  .bc-body { min-width: 0; }
  .bc-top { flex-wrap: wrap; }
  .status { margin-left: 0; }
  .book-hero { flex-wrap: wrap; }
  .book-hero-actions { width: 100%; }
  .book-hero-actions button { flex: 1; }
}

/* 移动端宽度约束 */
@media (max-width: 860px) {
  .app { width: 100%; max-width: 100vw; }
  .sidebar { width: 100%; max-width: 100vw; flex-wrap: nowrap; overflow-x: auto; }
  .side-nav { flex-wrap: nowrap; }
  .side-nav a { flex: none; }
  .main { width: 100%; min-width: 0; }
  .content { width: 100%; min-width: 0; }
  .hero, .toolbar, .book-grid { width: 100%; min-width: 0; }
  .hero-text { min-width: 0; }
  .hero p { max-width: 100%; }
}

/* 移动端横向溢出修复 */
html, body { width: 100%; max-width: 100%; }
@media (max-width: 860px) {
  .app { display: flex; flex-direction: column; width: 100%; max-width: 100%; overflow: hidden; }
  .sidebar { flex: none; min-width: 0; width: 100%; max-width: 100%; overflow: hidden; }
  .brand { flex: none; }
  .side-nav { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; }
  .main, .content, .view { min-width: 0; max-width: 100%; }
  .hero-stats { min-width: 0; }
  .hero-stats div { min-width: 0; }
}

/* 门禁弹窗 */
.gate-box { width: min(430px, 92vw); }
.gate-box .modal-body { padding: 18px 20px 20px; }
.gate-box p { margin: 0 0 12px; }
#gatePwd { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; letter-spacing: 1px; }
#gatePwd:focus { outline: 2px solid #bfdbfe; border-color: #93c5fd; }
.gate-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gate-row .hint { flex: 1; }
.gate-lock { font-size: 12px; color: var(--red); margin-top: 8px; }
.unlock-pill { font-size: 11.5px; color: #047857; background: #ecfdf5; padding: 4px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.unlock-pill i { width: 6px; height: 6px; border-radius: 50%; background: #059669; }

/* 生成任务 */
.ops { white-space: nowrap; }
button.primary-mini { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.task-block { margin: 14px 0 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.task-title { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.task-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.task-item:last-child { border-bottom: 0; }
.task-main { flex: 1; min-width: 0; }
.task-main b { font-size: 13px; display: block; }
.task-main .qsub { display: block; font-size: 11px; word-break: break-all; }

/* 待生成清单列宽 */
.qtable td:first-child { min-width: 128px; }
.qtable td:first-child b { white-space: nowrap; }
.qtable td:first-child .qsub { font-size: 10.5px; line-height: 1.35; word-break: break-all; }
.qtable td.nowrap { white-space: nowrap; }
.qtable td.ops { white-space: nowrap; }
