* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* 未来晨曦品牌色：主蓝取自官方 Logo（#015DA8），深蓝用于侧栏与标题 */
  --primary: #015DA8; --primary-d: #014A86; --primary-l: #EAF3FB;
  --brand-line: #C3DCF0; --brand-l2: #F5FAFE;
  --navy: #062B47; --navy-2: #083A61;
  --green: #10b981; --amber: #f59e0b; --red: #ef4444;
  --ink: #0F2740; --ink2: #48627C; --ink3: #8CA3B8;
  --line: #DDE8F2; --bg: #F4F8FC;
}
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--primary); text-decoration: none; }

/* ---------------- 登录 ---------------- */
#login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #E9F0F7; z-index: 100; padding: 24px; }
.login-wrap { display: flex; width: 900px; max-width: 100%; min-height: 546px; background: #fff;
  border-radius: 16px; overflow: hidden; box-shadow: 0 26px 64px rgba(6,43,71,.18); }

/* 左：品牌面板（晨曦光晕 + 品牌蓝渐变） */
.login-brand { position: relative; flex: 0 0 466px; padding: 44px 42px 34px; color: #fff; overflow: hidden;
  background: linear-gradient(158deg, #0A5CA5 0%, #014A86 46%, #062B47 100%); }
.login-brand::before { content: ""; position: absolute; width: 540px; height: 540px; left: -190px; top: -230px;
  background: radial-gradient(circle, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 68%); }
.login-brand::after { content: ""; position: absolute; width: 340px; height: 340px; right: -140px; bottom: -180px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 44px rgba(255,255,255,.055), 0 0 0 88px rgba(255,255,255,.035); }
.lb-logo { position: relative; z-index: 1; width: 322px; max-width: 100%; display: block; }
.login-brand h2 { position: relative; z-index: 1; margin-top: 40px; font-size: 27px; font-weight: 600; letter-spacing: 1px; }
.login-brand .lb-sub { position: relative; z-index: 1; margin-top: 9px; font-size: 13px; color: rgba(255,255,255,.74); letter-spacing: .6px; }
.lb-line { position: relative; z-index: 1; width: 44px; height: 2px; background: rgba(255,255,255,.55); margin: 26px 0 22px; }
.lb-points { position: relative; z-index: 1; list-style: none; }
.lb-points li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.95; color: rgba(255,255,255,.80); }
.lb-points li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: #7CC3F0; margin-top: 9px; flex-shrink: 0; }
.lb-foot { position: absolute; left: 42px; bottom: 26px; font-size: 11px; letter-spacing: 1.2px; color: rgba(255,255,255,.40); }

/* 右：表单 */
.login-form { flex: 1; padding: 64px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-form h1 { font-size: 20px; color: var(--navy); letter-spacing: 1px; }
.login-form .sub { color: var(--ink3); font-size: 10.5px; margin: 7px 0 30px; letter-spacing: 2.4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink2); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 9px; background: #F7FAFD; outline: none; transition: .15s; }
.field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(1,93,168,.10); }
.btn-login { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: 0;
  border-radius: 9px; font-size: 15px; font-weight: 600; margin-top: 10px; letter-spacing: 2px;
  box-shadow: 0 8px 18px rgba(1,93,168,.22); transition: .15s; }
.btn-login:hover { background: var(--primary-d); box-shadow: 0 10px 22px rgba(1,93,168,.28); }
.login-tip { margin-top: auto; padding-top: 22px; font-size: 11.5px; color: var(--ink3); line-height: 1.9; }
.login-tip b { color: var(--ink2); font-weight: 600; }
/* 错题行删除 */
.row-del { color: var(--ink3); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.row-del:hover { color: var(--red); background: #FEF2F2; }
@media (max-width: 860px) {
  .login-wrap { width: 420px; min-height: 0; }
  .login-brand { display: none; }
  .login-form { padding: 40px 34px 30px; }
}

/* ---------------- 主框架 ---------------- */
#app { display: none; min-height: 100vh; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 214px; color: #C6D8E6; padding: 0 0 18px; z-index: 20;
  background: linear-gradient(180deg, #083A61 0%, #062B47 72%, #05243B 100%);
  border-right: 1px solid rgba(255,255,255,.06); }
.sb-brand { padding: 24px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.10); margin-bottom: 10px; }
.sb-brand img { height: 46px; display: block; }
.sb-brand .prod { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.sb-brand .prod b { color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .6px; }
.sb-brand .prod span { color: #7FA2BF; font-size: 10.5px; letter-spacing: .4px; }
.sb-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  font-size: 13.5px; cursor: pointer; color: #BFD4E4; border-left: 2px solid transparent; transition: .14s; }
.sb-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-item.on { background: linear-gradient(90deg, rgba(1,93,168,.58) 0%, rgba(1,93,168,.05) 100%);
  color: #fff; border-left-color: #5FB0E8; font-weight: 600; }
.sb-item .ic { width: 5px; height: 5px; border-radius: 50%; background: #6E93AE; flex-shrink: 0; }
.sb-item.on .ic { background: #7CC3F0; box-shadow: 0 0 0 3px rgba(124,195,240,.20); }
.sb-bottom { position: absolute; bottom: 16px; left: 0; right: 0; padding: 0 18px; font-size: 11.5px; color: #7FA2BF; }
.sb-user { color: #E2EEF7; font-size: 12.5px; margin-bottom: 8px; }
.sb-user span { color: #7FA2BF; }
.main { margin-left: 214px; padding: 22px 26px 50px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.topbar h2 { font-size: 20px; font-weight: 700; }
.topbar .crumb { color: var(--ink3); font-size: 12.5px; margin-top: 3px; }
.topbar .right { display: flex; gap: 10px; align-items: center; }

/* ---------------- 通用组件 ---------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 14.5px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 .h-sub { font-size: 12px; color: var(--ink3); font-weight: 400; }
.btn { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.btn:hover { background: var(--primary-d); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--brand-line); }
.btn.ghost:hover { background: var(--primary-l); }
.btn.green { background: var(--green); }
.btn.gray { background: #f1f5f9; color: var(--ink2); border: 1px solid var(--line); }
.btn.gray:hover { background: var(--line); }
.btn.warn { background: var(--amber); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.stat b { display: block; font-size: 24px; color: var(--primary-d); font-weight: 700; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--ink3); }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th { text-align: left; background: #F7FAFD; color: var(--ink2); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tb td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.tb tr:hover td { background: #FBFDFF; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; background: #f1f5f9; color: var(--ink2); margin: 2px 3px 2px 0; }
.chip.on { background: var(--primary); color: #fff; }
.chip.green { background: #ecfdf5; color: #047857; }
.chip.amber { background: #fffbeb; color: #b45309; }
.chip.red { background: #fef2f2; color: #b91c1c; }
.chip.blue { background: var(--primary-l); color: var(--primary-d); }
.tag-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.zone { border: 2px dashed var(--brand-line); background: var(--primary-l); border-radius: 10px; padding: 20px; text-align: center; color: var(--primary-d); font-size: 13px; cursor: pointer; transition: .15s; }
.zone:hover { background: var(--brand-line); border-color: #8FBEE0; }
.zone.ok { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.zone.readonly, .zone.readonly:hover { cursor: default; border-color: var(--line); background: #F7FAFD; color: var(--ink2); border-style: solid; }
.zone.ok.readonly, .zone.ok.readonly:hover { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.zone b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.zone small { color: var(--ink3); font-size: 11.5px; }
.muted { color: var(--ink3); font-size: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sp { flex: 1; }
.alert { border-left: 3px solid var(--amber); background: #fffbeb; color: #92400e; padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 12.5px; margin: 10px 0; }
.alert.err { border-color: var(--red); background: #fef2f2; color: #991b1b; }
.alert.ok { border-color: var(--green); background: #ecfdf5; color: #047857; }
.empty { text-align: center; color: var(--ink3); padding: 40px 10px; font-size: 13px; }
.empty .big { font-size: 34px; margin-bottom: 8px; opacity: .5; }

/* ---------------- 班级卡片（重点） ---------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; width: 210px; background: #fff; }
.cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 16px; }
.cls-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 0; cursor: pointer;
  transition: .18s; position: relative; overflow: hidden; }
.cls-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(1,93,168,.14); border-color: var(--brand-line); }
.cls-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.cls-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.cls-card .subj { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 6px; padding: 2px 8px; }
.cls-card .type { font-size: 11.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.cls-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.cls-card .meta { font-size: 12px; color: var(--ink3); line-height: 1.9; }
.cls-card .meta b { color: var(--ink2); font-weight: 600; }
.cls-card .nums { display: flex; gap: 0; border-top: 1px solid #f1f5f9; margin-top: 12px; }
.cls-card .nums div { flex: 1; text-align: center; padding: 10px 0; border-right: 1px solid #f1f5f9; }
.cls-card .nums div:last-child { border: 0; }
.cls-card .nums b { display: block; font-size: 17px; color: var(--primary-d); }
.cls-card .nums span { font-size: 11px; color: var(--ink3); }
.cls-card .enter { text-align: center; font-size: 12px; color: var(--primary); padding: 8px; margin: 0 -18px; background: var(--brand-l2); border-top: 1px solid var(--primary-l); }

/* ---------------- 讲次胶囊 ---------------- */
.lec-list { display: flex; flex-direction: column; gap: 8px; }
.lec-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.lec-item:hover { border-color: var(--brand-line); background: var(--brand-l2); }
.lec-item.on { border-color: var(--primary); background: var(--primary-l); }
.lec-no { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-l); color: var(--primary-d); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.lec-no small { font-size: 9px; font-weight: 400; }
.lec-info { flex: 1; min-width: 0; }
.lec-info b { font-size: 13.5px; display: block; }
.lec-info span { font-size: 11.5px; color: var(--ink3); }

/* ---------------- AI 复核 ---------------- */
.sug-row { border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; margin-bottom: 11px; background: #fff; }
.sug-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; flex-wrap: wrap; }
.sug-no { background: #f1f5f9; border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.sug-score { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.score-hi { background: #ecfdf5; color: #047857; }
.score-mid { background: #fffbeb; color: #b45309; }
.score-lo { background: #fef2f2; color: #b91c1c; }
.sug-cols { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; align-items: start; }
.q-box { background: #F7FAFD; border: 1px solid #EDF3F9; border-radius: 8px; padding: 10px 12px 12px; font-size: 12.5px; line-height: 21.5px; color: var(--ink2); max-height: 196px; overflow: auto; scrollbar-width: thin; scrollbar-color: #C4D5E3 transparent; overscroll-behavior: contain; }
.q-box::-webkit-scrollbar { width: 7px; height: 7px; }
.q-box::-webkit-scrollbar-track { background: transparent; }
.q-box::-webkit-scrollbar-thumb { background: #C4D5E3; border-radius: 4px; }
.q-box:hover::-webkit-scrollbar-thumb { background: #94a3b8; }
.q-box .ql { font-size: 11px; color: var(--ink3); margin-bottom: 4px; font-weight: 600; }
.q-box .opt { color: var(--ink2); }
.arrow-mid { text-align: center; color: var(--primary); font-size: 17px; padding-top: 34px; }
.sug-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.sug-actions select { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; background: #fff; max-width: 240px; }
.sug-actions input { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; width: 150px; }

/* ---------------- 知识树 ---------------- */
.kp-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.kp-name { width: 150px; font-size: 12.5px; color: var(--ink2); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-bar { flex: 1; height: 9px; background: #EDF3F9; border-radius: 5px; overflow: hidden; }
.kp-bar i { display: block; height: 100%; border-radius: 5px; }
.kp-val { width: 52px; text-align: right; font-size: 12px; font-weight: 700; }
.kp-mod { margin-top: 14px; }
.kp-mod > .mh { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.bar-green { background: linear-gradient(90deg,#34d399,#10b981); }
.bar-amber { background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.bar-red { background: linear-gradient(90deg,#f87171,#ef4444); }
.c-green { color: #047857; } .c-amber { color: #b45309; } .c-red { color: #b91c1c; }

/* ---------------- 进度条 ---------------- */
.progress-wrap { background: #EDF3F9; border-radius: 12px; height: 20px; overflow: hidden; position: relative; }
.progress-wrap i { display: block; height: 100%; background: linear-gradient(90deg,#f59e0b,#10b981); border-radius: 12px; transition: width .6s; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); margin-bottom: 6px; }

/* ---------------- 弹窗 ---------------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 14px; padding: 24px 26px; width: 520px; max-width: 92vw; max-height: 88vh; overflow: auto; }
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.fg > .full { grid-column: 1 / -1; }
.fg .field { margin-bottom: 12px; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 9px; font-size: 13px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.err { background: #b91c1c; }
.toast.ok { background: #047857; }
.loading { text-align: center; padding: 30px; color: var(--ink3); font-size: 13px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #C4D5E3; border-top-color: var(--primary); border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes sp { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 9px 16px; font-size: 13.5px; color: var(--ink2); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.pill-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pill { padding: 6px 14px; border-radius: 20px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); cursor: pointer; color: var(--ink2); }
.pill.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.two-col { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 11.5px; color: var(--ink3); line-height: 1.7; }
code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; font-family: Consolas, monospace; font-size: 12px; color: #be185d; }
pre.api { background: var(--navy); color: var(--line); padding: 14px 16px; border-radius: 10px; font-size: 12px; overflow: auto; line-height: 1.7; }

/* ---------------- 权限设置 ---------------- */
.perm-grid { display: grid; gap: 7px; max-height: 54vh; overflow: auto; padding-right: 2px; }
.perm-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: .12s; }
.perm-row:hover { background: #F7FAFD; }
.perm-row.on { border-color: var(--brand-line); background: var(--primary-l); }
.perm-row input { margin-top: 2px; accent-color: var(--primary); }
.perm-row b { display: block; font-size: 12.5px; margin-bottom: 1px; }
.perm-row small { font-size: 11px; color: var(--ink3); line-height: 1.5; }

/* 权限弹窗内容较多，单独加宽（支持的浏览器生效） */
.modal:has(.perm-grid) { width: 640px; }

/* ---------------- 班级批量导入结果 ---------------- */
.imp-wrap { max-height: 300px; overflow: auto; margin-top: 4px; border: 1px solid var(--line); border-radius: 9px; }
.imp-tb { margin: 0; }
.imp-tb th { position: sticky; top: 0; background: #F7FAFD; z-index: 1; }
.imp-tb td { vertical-align: middle; padding-top: 8px; padding-bottom: 8px; }
.imp-tb td.num { color: var(--ink3); width: 34px; text-align: center; }
.nowrap { white-space: nowrap; }
.modal:has(.imp-wrap) { width: 720px; }
.modal:has(.fg) { width: 620px; }

/* ---------------- 班级列表多维修筛 ---------------- */
.filters.sub { margin-top: -8px; gap: 8px 18px; }
.fsel { display: inline-flex; align-items: center; gap: 6px; }
.fsel > span { font-size: 11.5px; color: var(--ink3); background: #f1f5f9; border-radius: 6px;
  padding: 3px 8px; white-space: nowrap; }
.fsel select { padding: 7px 26px 7px 10px; font-size: 12.5px; color: var(--ink); background-color: #fff;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; max-width: 190px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
.fsel select:hover { border-color: #C4D5E3; }
.fsel select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.fcount { font-size: 12px; color: var(--ink3); white-space: nowrap; }
.fcount b { color: var(--ink2); }
.fclear { font-size: 12px; color: var(--primary); cursor: pointer; white-space: nowrap; }
.fclear:hover { text-decoration: underline; }

/* 筛选栏吸顶：班级多时向下滚动仍可随时改筛选 */
.filterbar { position: sticky; top: 0; z-index: 20; background: #fff;
  padding: 10px 0 8px; margin: -10px 0 14px; border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 14px -12px rgba(15, 23, 42, .5); }
.filterbar .filters { margin-bottom: 0; }

/* ---------------- 题库共用 ---------------- */
.share-card h3 { margin-bottom: 8px; }
.share-dims { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.share-dims .chip { font-size: 11.5px; }
.share-line { font-size: 13px; color: var(--ink2); margin-bottom: 10px; line-height: 1.8; }
.chk { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2);
  padding: 9px 12px; background: #F7FAFD; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.chk input { accent-color: var(--primary); cursor: pointer; width: auto; height: auto;
  padding: 0; border: 0; background: none; }
/* 筛选栏里的复选框：盖掉 .filters input 的 210px 宽与边框，避免勾选框与文字被拉开 */
.filters .chk { background: #fff; border: 1px solid var(--line); }
.filters .chk input[type=checkbox] { width: 14px; height: 14px; padding: 0; border: 0; background: none; flex: 0 0 14px; }
.chk .muted { font-size: 11.5px; }

/* ---------------- 班型资料维护（学部 × 学期 × 班型 卡片） ---------------- */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); gap: 14px; align-items: start; }
.mat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; }
.mat-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; margin-bottom: 12px; }
.mat-card-h h4 { font-size: 16px; letter-spacing: .5px; }
.mat-card-h .muted { font-size: 11.5px; }
.mat-slots { display: flex; flex-direction: column; gap: 12px; }
.mat-slot { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: #FCFEFF; }
.mat-slot.on { border-style: solid; background: #fff; }
.mat-slot-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mat-slot-h b { font-size: 13px; }
.mat-slot-h .chip { margin: 0; }
.mat-file { padding: 7px 0; border-top: 1px solid #f1f5f9; }
.mat-file:first-of-type { border-top: 0; }
.mat-file-t a { font-size: 12.5px; font-weight: 600; color: var(--primary-d); }
.mat-file .muted { font-size: 11px; margin-top: 2px; }
.mat-ops { display: flex; gap: 10px; margin-top: 4px; }
.mini { font-size: 11.5px; color: var(--primary); cursor: pointer; }
.mini:hover { text-decoration: underline; }
.mini.del { color: #b91c1c; }
.mat-empty { border: 1px dashed #C4D5E3; border-radius: 8px; padding: 12px; text-align: center;
  font-size: 12.5px; color: var(--ink3); cursor: pointer; background: #fff; }
.mat-empty:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.mat-add { margin-top: 8px; font-size: 12px; color: var(--primary); cursor: pointer; }
.mat-add:hover { text-decoration: underline; }

/* 班级详情页：本班班型资料（只读下载） */
.mat-line { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid #f1f5f9; flex-wrap: wrap; }
.mat-line:first-of-type { border-top: 0; }
.mat-line-k { font-size: 12.5px; font-weight: 600; color: var(--ink2); min-width: 92px; }
.mat-line-f { font-size: 12.5px; background: var(--primary-l); border: 1px solid var(--brand-line);
  border-radius: 7px; padding: 3px 9px; color: var(--primary-d); }
.mat-line-f:hover { background: var(--brand-line); }

/* 讲次行内的删除按钮 */
.lec-del { margin-left: 6px; color: #94a3b8; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.lec-del:hover { background: #fef2f2; color: #b91c1c; }

/* 讲次行（班型资料维护） */
.mat-lecs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.mat-lec { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); flex-wrap: nowrap;
  border-radius: 9px; background: #FCFEFF; }
.mat-lec:hover { background: var(--brand-l2); border-color: var(--brand-line); }
.mat-lec-no { width: 30px; text-align: center; font-size: 15px; font-weight: 700; color: var(--primary-d); }
.mat-lec-no small { font-size: 10px; font-weight: 400; color: var(--ink3); margin-left: 1px; }
.mat-lec-t { flex: 1; min-width: 0; }
.mat-lec-t b { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-lec-t .muted { font-size: 11px; white-space: nowrap; }
.mat-lec-k { display: flex; gap: 4px; flex-shrink: 0; }
.mat-lec-k .k { font-size: 10.5px; padding: 2px 6px; border-radius: 20px; cursor: pointer;
  background: #f1f5f9; color: var(--ink3); border: 1px solid transparent; white-space: nowrap; }
.mat-lec-k .k.on { background: #ecfdf5; color: #047857; border-color: #bbf7d0; }
.mat-lec-k .k:hover { border-color: var(--primary); color: var(--primary-d); }
.mat-lec-ops { display: flex; gap: 8px; flex-shrink: 0; white-space: nowrap; }

/* 班型通用材料折叠区 */
.mat-extra { border-top: 1px dashed var(--line); padding-top: 8px; }
.mat-extra > summary { font-size: 12px; color: var(--ink2); cursor: pointer; padding: 3px 0; }
.mat-extra > summary::marker { color: var(--ink3); }
.mat-extra[open] > summary { margin-bottom: 8px; }
.mat-extra .mat-slots { gap: 8px; }
