/* 管理后台样式：基于 Bootstrap 工具类，仅补齐本系统特有的骨架与控件 */
:root {
  --tc-primary: #1f5eff;
  --tc-side: #16202f;
  --tc-side-2: #1d2b3f;
  --tc-line: #e6ebf2;
  --tc-text: #1f2a3d;
  --tc-muted: #7b8797;
  --tc-bg: #f4f6fa;
  --tc-ok: #17a673;
  --tc-warn: #e08a12;
  --tc-err: #d64545;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--tc-bg); color: var(--tc-text);
  font: 14px/1.6 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
.boot-tip { padding: 40px; text-align: center; color: var(--tc-muted); }
.muted { color: var(--tc-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .2px; }
.grow { flex: 1; }

/* ---------- 布局 ---------- */
.tc-layout { display: flex; min-height: 100vh; }
.tc-side {
  width: 214px; flex: 0 0 214px; background: var(--tc-side); color: #c9d4e5;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.tc-brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tc-brand i { font-size: 24px; color: #6ea8ff; }
.tc-brand b { display: block; color: #fff; font-size: 15px; }
.tc-brand small { color: #8fa0b8; font-size: 11px; letter-spacing: 1px; }
#side-nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
#side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 2px 0;
  border-radius: 8px; color: #c9d4e5; text-decoration: none; font-size: 13.5px; transition: .15s;
}
#side-nav a i { font-size: 15px; opacity: .8; }
#side-nav a:hover { background: var(--tc-side-2); color: #fff; }
#side-nav a.on { background: var(--tc-primary); color: #fff; box-shadow: 0 4px 12px rgba(31, 94, 255, .3); }
#side-nav a.on i { opacity: 1; }
.tc-side-foot { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; color: #8fa0b8; }
.tc-copy { padding: 0 16px 14px; font-size: 11px; color: #6f819b; letter-spacing: .3px; }
.tc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #666; margin-right: 6px; }
.tc-dot.ok { background: var(--tc-ok); } .tc-dot.warn { background: var(--tc-warn); }

.tc-main { flex: 1; min-width: 0; padding: 0 22px 30px; }
.tc-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; margin: 0 -22px 18px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--tc-line);
  position: sticky; top: 0; z-index: 20;
}
.tc-crumb { font-size: 15px; font-weight: 600; }
.tc-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.tc-role { background: #eef3ff; color: var(--tc-primary); border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.tc-menu { position: relative; }
.tc-menu-pop {
  position: absolute; right: 0; top: 38px; background: #fff; border: 1px solid var(--tc-line);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(20, 40, 80, .12); padding: 6px; display: none; min-width: 148px;
}
.tc-menu.open .tc-menu-pop { display: block; }
.tc-menu-pop button { display: flex; gap: 8px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; text-align: left; }
.tc-menu-pop button:hover { background: #f2f5fa; }

/* ---------- 卡片与表格 ---------- */
.tc-card { background: #fff; border: 1px solid var(--tc-line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.tc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.tc-card-head.inner { margin-top: 4px; }
.tc-card-head h3 { margin: 0; font-size: 16px; }
.tc-card-head p { margin: 3px 0 0; font-size: 12.5px; }
.tc-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-filters { display: none; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--tc-line); border-radius: 10px; margin-bottom: 14px; }
.tc-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tc-muted); }
.tc-filters input, .tc-filters select { min-width: 158px; padding: 6px 9px; border: 1px solid #d8e0ec; border-radius: 7px; font-size: 13px; background: #fff; color: var(--tc-text); }

.table-wrap { overflow-x: auto; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tc-table th { background: #f7f9fc; color: #52616f; font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--tc-line); white-space: nowrap; }
.tc-table td { padding: 9px 10px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.tc-table tbody tr:hover { background: #fafcff; }
.tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-table th:first-child, .tc-table td:first-child { padding-left: 14px; }
.tc-table th:last-child, .tc-table td:last-child { padding-right: 14px; }
/* 键值表：左列一旦被长路径/日志名挤成竖排单字就没法读了，
   所以标签列锁死不换行，值列允许在任意位置断行（备份目录、日志路径都是这种没有空格的长串）。 */
.tc-table.kv td:nth-child(odd) { color: var(--tc-muted); width: 128px; min-width: 128px; white-space: nowrap; }
.tc-table.kv td:nth-child(even) { font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.tc-table.kv td { border-bottom: 1px solid #f0f3f8; }
.tc-empty { text-align: center; color: var(--tc-muted); padding: 34px 10px; }
.tc-pager { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; }
.tc-pager .muted { margin-right: 8px; }

.tc-tag { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; background: #eef1f6; color: #5b6b7f; white-space: nowrap; }
.tc-tag.ok { background: #e6f7f0; color: var(--tc-ok); }
.tc-tag.warn { background: #fdf3e2; color: var(--tc-warn); }
.tc-tag.err { background: #fdecec; color: var(--tc-err); }
.tc-tag.info { background: #eaf1ff; color: var(--tc-primary); }

/* 操作列：文字链改成"图标 + 文字"的浅底胶囊，一排看过去能立刻分辨动作性质。
   胶囊本身比原来的纯文字宽，所以内边距压到最小，靠 hover 底色区分动作边界，分隔符在操作列里隐掉。 */
.linkbtn {
  display: inline-flex; align-items: center; gap: 3px; border: 1px solid transparent;
  background: none; color: var(--tc-primary); padding: 2px 6px; border-radius: 6px;
  cursor: pointer; font-size: 12px; line-height: 1.6; white-space: nowrap;
  transition: background .12s, color .12s;
}
.linkbtn .bi { font-size: 12.5px; line-height: 1; }
.linkbtn:hover { background: #eef3ff; text-decoration: none; }
.linkbtn.danger { color: var(--tc-err); }
.linkbtn.danger:hover { background: #fdecec; }
/* 操作列允许换行：笔记本宽度下宁可让胶囊排成两三行，也不要整列被横向滚动推出屏幕看不见。
   165px 是实测上限：再宽一点，学员档案这种八字段表格就会顶出横向滚动条，最右边的删除直接看不见了。 */
.tc-table td.ops-main { min-width: 165px; }
.ops .linkbtn { margin: 2px 4px 2px 0; }
.ops .sep { display: none; }
.sep { color: #dfe5ee; margin: 0 6px; }
.nw { white-space: nowrap; }
/* 中文按钮被窄容器折成"立即采/集"最难看，按钮文字一律不许断行 */
.btn { white-space: nowrap; }

/* ---------- 首页指标 ---------- */
.tc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--tc-line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.kpi-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: #eef3ff; color: var(--tc-primary); }
.kpi.c2 .kpi-ico { background: #e6f7f0; color: var(--tc-ok); }
.kpi.c3 .kpi-ico { background: #fdecec; color: var(--tc-err); }
.kpi b { display: block; font-size: 22px; line-height: 1.2; }
.kpi span { display: block; font-size: 12.5px; color: var(--tc-muted); }
.kpi em { display: block; font-size: 11.5px; color: #9aa6b5; font-style: normal; }
.tc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1180px) { .tc-grid2 { grid-template-columns: 1fr; } }

/* ---------- 三段式驾驶舱 ---------- */
.seg-card { margin-bottom: 18px; }
.qs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.qs-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--tc-line); border-radius: 11px; text-decoration: none; color: var(--tc-text); background: #fcfdff; }
.qs-item:hover { border-color: var(--tc-primary); box-shadow: 0 2px 10px rgba(79, 125, 255, .12); }
.qs-no { font-size: 12px; color: var(--tc-muted); }
.qs-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef3ff; color: var(--tc-primary); font-size: 17px; }
.qs-body { flex: 1; }
.qs-body b { display: block; font-size: 16px; }
.qs-body span { display: block; font-size: 12.5px; color: var(--tc-muted); }
.qs-body em { display: block; font-size: 11.5px; color: #9aa6b5; font-style: normal; }
.qs-go { color: #c3ccd8; }
.seg-card .tc-cards { margin-bottom: 12px; }
.seg-bars { display: grid; gap: 8px; }
.sb-row { display: grid; grid-template-columns: 128px 1fr 190px; align-items: center; gap: 10px; font-size: 12.5px; }
.sb-label { color: var(--tc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-track { height: 12px; background: #f1f5fa; border-radius: 7px; overflow: hidden; }
.sb-track i { display: block; height: 100%; background: linear-gradient(90deg, #4f7dff, #7aa5ff); border-radius: 7px; }
.sb-track i.ok { background: linear-gradient(90deg, #17a673, #4cc79a); }
.sb-val { color: #52616f; text-align: right; white-space: nowrap; }
.sb-val em { color: var(--tc-muted); font-style: normal; margin-left: 4px; }
@media (max-width: 900px) { .sb-row { grid-template-columns: 96px 1fr 120px; } }

.tc-note { margin-top: 12px; padding: 10px 12px; background: #f6f9ff; border: 1px solid #e0eaff; border-radius: 9px; font-size: 12.5px; color: #4c6285; }
.tc-note i { margin-right: 4px; }

/* ---------- 表单 ---------- */
.tc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.tc-form.two { grid-template-columns: 1fr 1fr; }
.tc-form .fld { display: flex; flex-direction: column; gap: 5px; }
.tc-form .fld.span-2 { grid-column: 1 / -1; }
.tc-form label { font-size: 12.5px; color: #5b6b7f; }
.tc-form label.req::after { content: ' *'; color: var(--tc-err); }
/* 控件写在 label 内部时（如导出中心的筛选表单），星号要跟在标题前，否则会被换行的下拉挤到下一行 */
.tc-form label.req2::before { content: '* '; color: var(--tc-err); font-weight: 600; }
.tc-form input, .tc-form select, .tc-form textarea {
  padding: 7px 10px; border: 1px solid #d8e0ec; border-radius: 8px; font-size: 13.5px; width: 100%; background: #fff; color: var(--tc-text);
}
.tc-form input:focus, .tc-form select:focus, .tc-form textarea:focus { outline: none; border-color: var(--tc-primary); box-shadow: 0 0 0 3px rgba(31, 94, 255, .12); }
.tc-form input[readonly] { background: #f5f7fa; color: #8b97a8; }
.f-tip { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #dfe6f0; color: #63758d; font-size: 10px; font-style: normal; margin-left: 4px; cursor: help; }
.f-help { font-size: 11.5px; color: #93a0b1; }
.tc-static { padding: 7px 10px; background: #f6f8fb; border-radius: 8px; font-size: 13px; }
.tc-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.tc-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.tc-switch input { width: 34px; height: 18px; appearance: none; background: #cfd8e6; border-radius: 20px; position: relative; cursor: pointer; transition: .2s; }
.tc-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.tc-switch input:checked { background: var(--tc-primary); }
.tc-switch input:checked::after { left: 18px; }

/* ---------- 弹层与提示 ---------- */
.tc-modal-mask { position: fixed; inset: 0; background: rgba(16, 26, 40, .42); display: grid; place-items: center; z-index: 1000; padding: 20px; }
.tc-modal { background: #fff; border-radius: 13px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 22px 60px rgba(10, 25, 50, .28); animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: .6; } }
.tc-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--tc-line); font-weight: 600; }
.tc-x { border: 0; background: none; font-size: 22px; line-height: 1; color: #98a4b3; cursor: pointer; }
.tc-modal-body { padding: 18px; overflow-y: auto; }
.tc-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--tc-line); }
.tc-confirm { font-size: 13.5px; }
.tc-high-tip { background: #fff6e8; color: #94610d; border: 1px solid #ffe2b8; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin-bottom: 10px; }
#toast-box { position: fixed; top: 18px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.tc-toast { background: #1f2a3d; color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 13.5px; box-shadow: 0 10px 24px rgba(15, 30, 60, .22); animation: slide .2s; max-width: 380px; }
.tc-toast.ok { background: #12805c; } .tc-toast.err { background: #b93a3a; } .tc-toast.info { background: #26456f; }
.tc-toast.warn { background: #96660f; }
.tc-toast.out { opacity: 0; transform: translateX(14px); transition: .25s; }
@keyframes slide { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- 角色权限树 / 参数配置 ---------- */
.perm-box { margin-top: 14px; border: 1px solid var(--tc-line); border-radius: 10px; max-height: 380px; overflow-y: auto; }
.perm-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--tc-line); position: sticky; top: 0; background: #fbfcfe; font-size: 13px; }
.perm-group { padding: 10px 12px; border-bottom: 1px dashed #eef1f6; }
.pg-name { font-size: 12px; color: var(--tc-primary); font-weight: 600; margin-bottom: 6px; }
.pg-name em { font-style: normal; font-weight: 400; color: #a4b0c0; font-size: 11px; margin-left: 6px; }
.pg-items { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pg-items .chk { font-size: 12.8px; }
.pg-items .chk em { font-style: normal; color: #a4b0c0; font-size: 11px; margin-left: 4px; }
.pg-items .chk.high span { color: #a4560f; }
.pg-items .chk i.hi { font-style: normal; background: #fdecec; color: var(--tc-err); font-size: 10.5px; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.cfg-group { margin-bottom: 18px; }
.cg-name { font-size: 13px; font-weight: 600; color: var(--tc-primary); border-left: 3px solid var(--tc-primary); padding-left: 8px; margin-bottom: 10px; }
.cfg-row { display: grid; grid-template-columns: 250px 268px 1fr; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #f0f3f8; }
.cfg-row label { font-size: 13px; }
.cfg-row label em { display: block; font-style: normal; color: #a4b0c0; font-size: 11px; }
.cfg-row input, .cfg-row select { padding: 6px 9px; border: 1px solid #d8e0ec; border-radius: 7px; font-size: 13px; width: 100%; }
.cfg-row.readonly input, .cfg-row.readonly select { border-color: #e6ebf2; background: #f5f7fa; color: #7d8a9c; cursor: not-allowed; }
.cfg-row label .tc-tag { margin-left: 6px; }
.cg-remark { font-size: 12px; color: var(--tc-muted); }
.cg-remark .cg-ro { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: #8d9cb2; }
.cg-remark .cg-ro i { font-size: 10.5px; margin-right: 3px; }
.cfg-chips { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 4px; }
.cfg-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #dbe3ee; border-radius: 999px; font-size: 12px; color: #5a6a80; cursor: pointer; user-select: none; }
.cfg-chip.on { border-color: var(--tc-primary); background: rgba(31, 89, 191, .08); color: var(--tc-primary); }
.cfg-chip input { width: auto; padding: 0; border: 0; border-radius: 0; height: 13px; accent-color: var(--tc-primary); cursor: pointer; }

/* ---------- 云服务绑定 ---------- */
.cloud-note { margin: 0 0 16px; }
.cloud-note code { background: #eef3fb; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.cloud-note b { color: #a4560f; }
.cloud-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cloud-head > span:first-child em { font-style: normal; font-weight: 400; color: #a4b0c0; font-size: 11px; margin-left: 6px; }
.cloud-state { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cloud-head .tc-tools { margin-left: auto; }
.cloud-desc { margin: -4px 0 8px; font-size: 12.5px; }
.cloud-idle { margin: 0 0 8px; padding: 7px 11px; border-radius: 8px; background: #f6f9ff; border: 1px dashed #dbe6f7; color: #4c6285; font-size: 12.5px; }
.cloud-idle i { margin-right: 5px; }
.cfg-row select { min-width: 0; }
.cloud-out { display: none; }
.cloud-out.run, .cloud-out.ok, .cloud-out.err { display: block; margin: 2px 0 8px; padding: 8px 11px; border-radius: 8px; font-size: 12.5px; }
.cloud-out.run { background: #f6f9ff; border: 1px solid #e0eaff; color: #4c6285; }
.cloud-out.ok { background: #e6f7f0; border: 1px solid #c2e9d8; color: #147a55; }
.cloud-out.err { background: #fdecec; border: 1px solid #f6cdcd; color: #a5322f; }
.cloud-out i { margin-right: 5px; }
.cg-remark .cg-ok { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: var(--tc-ok); }
.cg-remark .cfg-chip { margin-top: 5px; }
@media (max-width: 900px) { .cloud-head .tc-tools { margin-left: 0; width: 100%; } }
@media (max-width: 900px) { .cfg-row { grid-template-columns: 1fr; } .cfg-chips { grid-column: 1 / -1; } }

.tc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tc-line); margin-bottom: 16px; }
.tc-tabs button { border: 0; background: none; padding: 10px 16px; cursor: pointer; font-size: 13.5px; color: var(--tc-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tc-tabs button.on { color: var(--tc-primary); border-bottom-color: var(--tc-primary); font-weight: 600; }

.tc-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tc-diff pre { background: #f7f9fc; border: 1px solid var(--tc-line); border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; font-size: 12px; margin: 6px 0 0; }

/* ---------- 占位页 ---------- */
.tc-soon { text-align: center; padding: 44px 20px; }
.soon-ico i { font-size: 40px; color: #c2cfe0; }
.tc-soon h3 { margin: 12px 0 6px; font-size: 17px; }
.tc-soon p { color: var(--tc-muted); max-width: 620px; margin: 0 auto 14px; }
.soon-perm { font-size: 12.5px; color: var(--tc-muted); }

/* ---------- 登录页 ---------- */
.tc-login { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(430px, .8fr); min-height: 100vh; min-height: 100dvh; background: #f8faff; }
.lg-left {
  position: relative; isolation: isolate; overflow: hidden; color: #dbe7fb;
  padding: clamp(38px, 4.4vw, 68px); background: #0a1220;
}
.lg-left::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(760px 560px at 12% 4%, rgba(28, 104, 224, .28), transparent 64%),
    radial-gradient(620px 520px at 94% 76%, rgba(0, 189, 211, .12), transparent 66%),
    linear-gradient(145deg, #0b1526 0%, #080e19 58%, #0a1626 100%);
}
.lg-left::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22;
  background-image: linear-gradient(rgba(118, 164, 224, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 164, 224, .12) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 42% 44%, #000 0%, transparent 74%);
}
.lg-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; color: #fff; font-size: 19px; font-weight: 650; line-height: 1.35; letter-spacing: .4px; }
.lg-brand small { display: block; margin-top: 5px; color: #7187a9; font-size: 9px; font-weight: 500; letter-spacing: 1.8px; }
.lg-logo { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid rgba(120, 183, 255, .42); border-radius: 14px; background: linear-gradient(145deg, rgba(46, 137, 255, .95), rgba(8, 71, 157, .95)); box-shadow: 0 0 0 5px rgba(42, 126, 241, .07), 0 12px 32px rgba(0, 81, 190, .3); font-size: 24px; }
.lg-logo::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; pointer-events: none; }
.lg-hero { position: relative; z-index: 2; margin-top: clamp(54px, 8vh, 92px); animation: lg-rise .55s ease-out both; }
.lg-eyebrow { display: flex; align-items: center; gap: 9px; color: #64a5ff; font-size: 9px; font-weight: 650; letter-spacing: 2.5px; }
.lg-eyebrow i { width: 22px; height: 1px; background: linear-gradient(90deg, #3c8dff, transparent); }
.lg-hero h1 { margin: 18px 0 18px; color: #f5f8ff; font-size: clamp(38px, 3.7vw, 56px); line-height: 1.26; letter-spacing: 1px; font-weight: 650; }
.lg-hero h1::first-line { color: #fff; }
.lg-hero p { margin: 0; color: #8296b4; font-size: 14px; line-height: 1.9; }
.lg-visual { position: relative; z-index: 1; width: min(520px, 94%); height: 300px; margin-top: 44px; perspective: 1100px; animation: lg-rise .65s .08s ease-out both; }
.lg-visual::before { content: ""; position: absolute; left: 8%; right: 2%; bottom: 4%; height: 56%; background: radial-gradient(ellipse, rgba(24, 119, 255, .22), transparent 68%); filter: blur(20px); }
.lg-console { position: absolute; left: 0; top: 8px; width: 88%; padding: 17px 18px 18px; border: 1px solid rgba(132, 172, 230, .18); border-radius: 16px; background: linear-gradient(145deg, rgba(22, 38, 62, .92), rgba(11, 23, 40, .94)); box-shadow: 0 26px 70px rgba(0, 5, 15, .42), inset 0 1px 0 rgba(255,255,255,.04); transform: rotateY(-7deg) rotateX(3deg); transform-style: preserve-3d; backdrop-filter: blur(16px); }
.lg-console::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.05), transparent 34%); pointer-events: none; }
.lg-console-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.06); color: #8fa9cf; font-size: 9px; letter-spacing: 1.6px; }
.lg-console-top > span { display: flex; align-items: center; gap: 7px; }
.lg-console-top i { color: #5ca2ff; font-size: 13px; }
.lg-live { color: #6f8dad; letter-spacing: .4px; }
.lg-live i { width: 6px; height: 6px; border-radius: 50%; background: #35d49b; box-shadow: 0 0 10px rgba(53, 212, 155, .8); }
.lg-console-body { display: grid; gap: 7px; padding: 13px 0 12px; }
.lg-console-row { display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.04); border-radius: 9px; background: rgba(255,255,255,.025); }
.lg-console-ico { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 13px; }
.lg-console-ico.blue { color: #69a8ff; background: rgba(47, 128, 241, .13); }
.lg-console-ico.cyan { color: #55d5e5; background: rgba(32, 190, 207, .11); }
.lg-console-ico.violet { color: #a699ff; background: rgba(135, 112, 245, .12); }
.lg-console-ico.green { color: #57d6a5; background: rgba(40, 181, 133, .11); }
.lg-console-row > div { flex: 1; min-width: 0; }
.lg-console-row b { display: block; color: #dce7f8; font-size: 11.5px; font-weight: 550; }
.lg-console-row small { display: block; margin-top: 1px; color: #59718f; font-size: 7px; letter-spacing: 1px; }
.lg-console-row em { color: #6f8fae; font-size: 9px; font-style: normal; }
.lg-console-foot { display: flex; justify-content: space-between; margin-bottom: 7px; color: #6e86a6; font-size: 9px; }
.lg-console-foot b { color: #62a7ff; font-weight: 600; }
.lg-progress { height: 3px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.06); }
.lg-progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1675e8, #52d7e8); box-shadow: 0 0 12px rgba(57, 159, 255, .65); }
.lg-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(141, 181, 233, .18); border-radius: 12px; background: rgba(16, 31, 52, .9); box-shadow: 0 16px 38px rgba(0, 6, 18, .34); backdrop-filter: blur(14px); animation: lg-float 5s ease-in-out infinite; }
.lg-float > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(42, 128, 239, .13); color: #67a9ff; font-size: 18px; }
.lg-float b { display: block; color: #dce8f8; font-size: 11px; font-weight: 550; }
.lg-float small { display: block; margin-top: 2px; color: #6f87a7; font-size: 8.5px; }
.lg-float-shield { right: -4px; top: 42px; }
.lg-float-cert { right: 18px; bottom: 8px; animation-delay: -2.2s; }
.lg-float-cert > i { color: #58d6b0; background: rgba(41, 181, 137, .12); }
.lg-trust { position: absolute; left: clamp(38px, 4.4vw, 68px); bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 9px; color: #5f7697; font-size: 10px; letter-spacing: .4px; }
.lg-trust i { color: #568dca; font-size: 13px; }
.lg-trust span { width: 3px; height: 3px; border-radius: 50%; background: #36506f; }
@keyframes lg-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lg-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lg-panel { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 70px 34px 72px; border-left: 1px solid #e6edf6; background: #f9fbff; }
.lg-panel::before { content: ""; position: absolute; width: 560px; height: 560px; right: -260px; top: -270px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 94, 255, .08), transparent 68%); pointer-events: none; }
.lg-panel::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(31, 94, 255, .18), transparent); }
.lg-portal { position: absolute; top: 32px; right: 36px; display: flex; align-items: center; gap: 8px; color: #8b99ad; font-size: 8px; font-weight: 600; letter-spacing: 2.2px; }
.lg-portal span { width: 18px; height: 1px; background: #b9c9e4; }
.lg-card { position: relative; z-index: 1; width: min(408px, 100%); padding: 38px 36px 30px; border: 1px solid #e6edf6; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(20, 40, 80, .09), 0 2px 6px rgba(20, 40, 80, .03); animation: lg-rise .55s ease-out both; }
.lg-card::before { content: ""; position: absolute; left: 36px; right: 36px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(31, 94, 255, .55), transparent); }
.lg-card-head { margin-bottom: 30px; }
.lg-kicker { color: var(--tc-primary); font-size: 9px; font-weight: 650; letter-spacing: 2.4px; }
.lg-card h2 { margin: 10px 0 7px; color: #16202f; font-size: 27px; line-height: 1.35; letter-spacing: .5px; font-weight: 600; }
.lg-card-head p { margin: 0; color: #8b98ad; font-size: 12.5px; }
.lg-card label { display: block; margin-bottom: 18px; color: #53647c; font-size: 12px; font-weight: 500; }
.lg-input { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 8px; padding: 0 13px; border: 1px solid #dfe7f1; border-radius: 10px; background: #f8fafd; transition: border-color .16s, box-shadow .16s, background .16s; }
.lg-input:focus-within { border-color: var(--tc-primary); background: #fff; box-shadow: 0 0 0 3px rgba(31, 94, 255, .09); }
.lg-input > i { flex: none; color: #7890b3; font-size: 15px; }
.lg-input input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #16202f; font-size: 13.5px; font-weight: 400; }
.lg-input input::placeholder { color: #93a4ba; }
.lg-cap { display: flex; gap: 10px; }
.lg-cap .lg-input { flex: 1; min-width: 0; }
.lg-cap img { width: 168px; height: 48px; flex: none; margin-top: 8px; border: 1px solid #dfe7f1; border-radius: 10px; background: #fff; cursor: pointer; object-fit: contain; }
.lg-card .btn { height: 50px; margin-top: 26px; border: 1px solid rgba(114, 177, 255, .28); border-radius: 10px; background: linear-gradient(100deg, #1264d2, #2588ed); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 2px; box-shadow: 0 12px 28px rgba(11, 91, 202, .24), inset 0 1px 0 rgba(255,255,255,.16); transition: transform .15s, box-shadow .15s, filter .15s; }
.lg-card .btn i { margin-left: 6px; font-size: 13px; }
.lg-card .btn:hover { filter: brightness(1.08); box-shadow: 0 15px 34px rgba(11, 91, 202, .32); transform: translateY(-1px); }
.lg-card .btn:disabled { filter: grayscale(.2); opacity: .6; transform: none; }
.lg-tip { margin-bottom: 18px; padding: 10px 12px; border: 1px solid #f7d3d3; border-radius: 9px; background: #fdecec; color: #a03030; font-size: 12px; line-height: 1.6; }
.lg-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #8b99ad; font-size: 10.5px; }
.lg-foot i { color: var(--tc-primary); }
.lg-panel-foot { position: absolute; bottom: 25px; display: flex; align-items: center; gap: 7px; color: #93a4ba; font-size: 9px; letter-spacing: .7px; }
.lg-copy { position: absolute; bottom: 9px; color: #a8b6c8; font-size: 9px; letter-spacing: .6px; }
.lg-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #35b98b; box-shadow: 0 0 8px rgba(53, 185, 139, .65); }
@media (max-width: 1100px) {
  .tc-login { grid-template-columns: minmax(0, 1fr) minmax(400px, .86fr); }
  .lg-left { padding: 40px 34px; }
  .lg-hero h1 { font-size: 39px; }
  .lg-visual { width: 100%; height: 280px; margin-top: 36px; }
  .lg-console { width: 94%; }
  .lg-float-shield { right: -12px; }
  .lg-float-cert { right: 2px; }
  .lg-trust { left: 34px; }
}
@media (max-width: 900px) {
  .tc-login { grid-template-columns: minmax(0, 1fr); }
  .lg-left, .lg-panel { min-width: 0; }
  .lg-left { min-height: 300px; padding: 28px 26px 50px; }
  .lg-brand { font-size: 17px; }
  .lg-logo { width: 44px; height: 44px; font-size: 22px; }
  .lg-hero { margin-top: 42px; }
  .lg-hero h1 { margin: 13px 0 12px; font-size: 31px; }
  .lg-hero h1 br { display: none; }
  .lg-hero p { font-size: 12.5px; }
  .lg-visual, .lg-trust { display: none; }
  .lg-panel { flex-direction: column; margin-top: -22px; padding: 0 18px 34px; border-left: 0; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -14px 40px rgba(4, 15, 35, .18); }
  .lg-card { padding: 30px 28px 25px; border-radius: 16px; }
  .lg-input input { font-size: 16px; }
  .lg-portal { top: 22px; right: 24px; }
  .lg-panel-foot { position: static; margin-top: 22px; }
  .lg-copy { position: static; margin-top: 7px; }
}
@media (max-width: 480px) {
  .lg-left { min-height: 266px; padding: 23px 21px 44px; }
  .lg-brand { font-size: 15.5px; }
  .lg-brand small { font-size: 7.5px; letter-spacing: 1.2px; }
  .lg-hero { margin-top: 34px; }
  .lg-eyebrow { font-size: 7.5px; letter-spacing: 1.6px; }
  .lg-hero h1 { font-size: 26px; }
  .lg-hero p br { display: none; }
  .lg-panel { padding-inline: 13px; }
  .lg-card { padding: 27px 21px 23px; }
  .lg-card h2 { font-size: 24px; }
  .lg-cap img { width: 126px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-hero, .lg-visual, .lg-card, .lg-float { animation: none; }
}

/* ---------- M2 课程教学：章节课时树 / 分配 / 导入 ---------- */
.ch-node { border: 1px solid var(--tc-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.ch-node.d2 { border-style: dashed; background: #fbfcfe; margin: 8px 0 8px 18px; }
.ch-node.orphan { border-color: #ffe2b8; background: #fffbf4; }
.ch-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ch-head b { font-size: 14px; }
.ch-head .muted { font-size: 12px; }
.ch-lessons { margin: 8px 0 0 2px; display: flex; flex-direction: column; gap: 4px; }
.les { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; background: #f7f9fc; font-size: 13px; }
.les.off { opacity: .62; background: #f4f4f5; }
.li-ico { color: var(--tc-primary); font-size: 15px; width: 18px; text-align: center; }
.li-txt { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.li-txt em { font-style: normal; font-size: 11.5px; color: var(--tc-muted); }
.li-txt em.li-ok { color: var(--tc-ok); }
.li-txt em.li-warn { color: var(--tc-warn); }
.li-txt em.li-off { color: var(--tc-err); }
.li-ops { white-space: nowrap; }
.dt-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--tc-primary); border-left: 3px solid var(--tc-primary); padding-left: 8px; }
.asg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tc-line); }
.asg-tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-size: 13px; color: var(--tc-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.asg-tabs button.on { color: var(--tc-primary); border-bottom-color: var(--tc-primary); font-weight: 600; }
.asg-search { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.asg-search input { flex: 1; padding: 7px 10px; border: 1px solid #d8e0ec; border-radius: 8px; font-size: 13px; }
.asg-list { margin-top: 10px; max-height: 320px; overflow-y: auto; border: 1px solid var(--tc-line); border-radius: 9px; }
.asg-list .tc-table th { position: sticky; top: 0; z-index: 1; }
.imp-rows { margin-top: 10px; border: 1px solid var(--tc-line); border-radius: 9px; max-height: 220px; overflow-y: auto; }
.imp-rows .ir { display: flex; justify-content: space-between; gap: 12px; padding: 7px 11px; border-bottom: 1px dashed #f0f3f8; font-size: 12.5px; }
.imp-rows .ir:last-child { border-bottom: 0; }
.imp-rows .ir em { font-style: normal; color: #52616f; white-space: nowrap; }
.imp-rows .ir span { color: var(--tc-err); text-align: right; }

/* ---------- 学习进度看板（M3） ---------- */
.pg-bar { position: relative; height: 19px; min-width: 126px; border-radius: 10px; background: #edf1f7; overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #f0a860, #f7c98b); }
.pg-bar.ok i { background: linear-gradient(90deg, #2fbf8f, #6fd8b4); }
.pg-bar b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #33425a; }
.pg-bar u { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(214, 69, 65, .55); }

/* ---------- 题库与组卷（M4） ---------- */
.qb-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed var(--tc-line); margin-bottom: 14px; }
.qb-subj { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5b6b7f; }
.qb-subj select { min-width: 250px; padding: 7px 10px; border: 1px solid #d8e0ec; border-radius: 8px; font-size: 13px; background: #fff; }
.qb-stat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5b6b7f; background: #f4f7fb; border: 1px solid var(--tc-line); border-radius: 20px; padding: 3px 11px; }
.qb-chip b { font-size: 13.5px; }
.qb-chip.ok { background: #eafaf3; border-color: #cdeee0; color: #147a5b; }
.qb-chip.warn { background: #fdf5e6; border-color: #f7e5c3; color: #96650f; }
.qb-chip.err { background: #fdeeee; border-color: #f8d7d7; color: #a8352f; }
.qb-avail { font-size: 12.5px; color: var(--tc-muted); margin-left: auto; }
.qb-split { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.qb-side { border: 1px solid var(--tc-line); border-radius: 10px; padding: 12px; background: #fbfcfe; }
.qb-side-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.qb-tree { max-height: 460px; overflow-y: auto; }
.qb-node { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.qb-node:hover { background: #eef3fb; }
.qb-node.on { background: #e6efff; color: var(--tc-primary); font-weight: 600; }
.qb-node.off span { color: var(--tc-err); }
.qb-node em { margin-left: auto; font-style: normal; font-size: 11.5px; color: #9aa6b5; }
.qb-node i { opacity: 0; font-size: 12px; color: var(--tc-primary); }
.qb-node:hover i { opacity: 1; }
.qb-node.d1 { padding-left: 18px; } .qb-node.d2 { padding-left: 30px; } .qb-node.d3 { padding-left: 42px; }
.qb-note { margin-top: 10px; font-size: 11.5px; color: #98a4b3; line-height: 1.6; }
.qb-main { min-width: 0; }
.qb-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qb-batch { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; background: #f3f7ff; border: 1px solid #dce8ff; border-radius: 9px; font-size: 12.5px; }
.qb-stem { text-align: left; white-space: normal; line-height: 1.5; word-break: break-word; }
/* 列宽固定：窄屏时整表横向滚动，避免题干列被压成一字一行 */
.qb-main .table-wrap table { table-layout: fixed; width: max-content; min-width: 100%; }
.qb-main .tc-table td { white-space: nowrap; }
.qb-main .tc-table td:last-child { white-space: normal; line-height: 1.9; }
.qb-main .tc-table td .qb-stem, .qb-main .tc-table td .qb-reject { white-space: normal; }
.qb-cat { display: inline-block; max-width: 146px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--tc-muted); }
.qb-reject { font-size: 11.5px; color: var(--tc-warn); margin-top: 2px; }
.qb-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.qb-opt { display: flex; align-items: center; gap: 8px; }
.qb-opt b { width: 20px; color: var(--tc-primary); }
.qb-opt input { flex: 1; padding: 6px 9px; border: 1px solid #d8e0ec; border-radius: 7px; font-size: 13px; }
.qb-ans { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 8px 10px; border: 1px solid var(--tc-line); border-radius: 8px; background: #fbfcfe; }
.qb-judge { font-size: 12.5px; color: var(--tc-muted); padding: 8px 10px; background: #f6f8fb; border-radius: 8px; }
.rv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tc-line); margin-bottom: 12px; }
.rv-tabs button { border: 0; background: none; padding: 7px 14px; font-size: 13px; color: var(--tc-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rv-tabs button.on { color: var(--tc-primary); border-bottom-color: var(--tc-primary); font-weight: 600; }
.qd-stem { font-size: 14.5px; line-height: 1.7; padding: 12px 14px; background: #f7f9fc; border-radius: 9px; margin-bottom: 12px; }
.qd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 12px; }
.qd-opt { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--tc-line); border-radius: 8px; font-size: 13px; }
.qd-opt.on { border-color: #b9e6cf; background: #f2fbf7; color: #12795a; }
.qd-opt b { color: var(--tc-primary); }
.qd-opt.on b { color: #12795a; }
.qd-opt i { margin-left: auto; }
.qd-ana { margin-top: 12px; font-size: 13px; color: #4c6285; background: #f6f9ff; border: 1px solid #e0eaff; border-radius: 9px; padding: 10px 12px; }
.qd-tags { margin-top: 10px; }
.qd-ops { display: flex; gap: 8px; margin-top: 16px; }

.pe-grid { display: grid; grid-template-columns: 1.15fr 1.5fr .85fr; gap: 18px; align-items: start; }
.pe-left, .pe-mid, .pe-right { border: 1px solid var(--tc-line); border-radius: 10px; padding: 14px 16px; }
.pe-cats { max-height: 260px; overflow-y: auto; border: 1px solid var(--tc-line); border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.pe-cat.d1 { margin-left: 18px; } .pe-cat.d2 { margin-left: 36px; }
.rule-head, .rule-row { display: grid; grid-template-columns: minmax(96px, 1fr) 78px 62px 70px 66px 78px 28px; gap: 8px; align-items: center; }
.rule-head { font-size: 11.5px; color: var(--tc-muted); padding: 0 0 6px; }
.rule-row { padding: 6px 0; border-bottom: 1px dashed #f0f3f8; }
.rule-row select, .rule-row input { padding: 6px 8px; border: 1px solid #d8e0ec; border-radius: 7px; font-size: 13px; width: 100%; }
.rule-row .rs { font-size: 12.5px; color: var(--tc-primary); }
.rule-row .rp { font-size: 11.5px; color: var(--tc-muted); }
.rule-empty { padding: 22px 10px; text-align: center; color: var(--tc-muted); font-size: 13px; border: 1px dashed var(--tc-line); border-radius: 9px; margin-top: 6px; }
.rule-sum { margin-top: 12px; font-size: 13px; }
.qb-warn { color: var(--tc-err); } .qb-ok { color: var(--tc-ok); }
.pe-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pe-plan .pl { background: #f7f9fc; border-radius: 9px; padding: 8px 10px; font-size: 12px; color: var(--tc-muted); }
.pe-plan .pl b { display: block; font-size: 17px; color: var(--tc-text); }
.pe-plan .pl-wide { grid-column: 1 / -1; }
.pe-plan .pl-wide span { display: block; }
.pe-plan .pl-wide b { display: inline; font-size: 13.5px; margin-left: 0; }
.pe-right .ck { margin-bottom: 8px; }
.ck-e { font-size: 12.5px; color: var(--tc-err); padding: 5px 0; border-bottom: 1px dashed #f6dede; }
.ck-w { font-size: 12.5px; color: #96650f; padding: 5px 0; border-bottom: 1px dashed #f7e5c3; }
.pe-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.snap-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--tc-line); border-radius: 9px; }
.snap-q { display: flex; gap: 10px; padding: 9px 12px; border-bottom: 1px dashed #f0f3f8; font-size: 13px; }
.snap-q:last-child { border-bottom: 0; }
.snap-q > em { font-style: normal; color: var(--tc-primary); font-weight: 600; min-width: 24px; }
.sq-stem { line-height: 1.55; }
.sq-meta { font-size: 11.5px; color: var(--tc-muted); margin-top: 3px; }
@media (max-width: 1280px) { .qb-split { grid-template-columns: 1fr; } .pe-grid { grid-template-columns: 1fr; } .qd-opts, .qb-opts { grid-template-columns: 1fr; } }

/* ---------- 考试考务（M5） ---------- */
[data-freeze] { margin-bottom: 12px; }
[data-freeze] .tc-high-tip { background: #fff2f2; color: #8f3438; border-color: #ffd9d9; line-height: 1.6; }
.frz-list { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.tc-danger { color: #b93a3a; }
.tc-modal-body .tc-table td { vertical-align: top; }

/* ---------- 名单比对与证书发证（M6） ---------- */
.cf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.cf-stat { background: #fff; border: 1px solid var(--tc-line); border-radius: 10px; padding: 10px 12px; text-align: center; }
.cf-stat b { display: block; font-size: 21px; line-height: 1.25; color: var(--tc-text); }
.cf-stat b.ok { color: var(--tc-ok); } .cf-stat b.warn { color: var(--tc-warn); } .cf-stat b.err { color: var(--tc-err); }
.cf-stat span { font-size: 12px; color: var(--tc-muted); }
.cf-warns { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cf-warn { font-size: 12.5px; line-height: 1.6; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--tc-line); background: #f7f9fc; color: var(--tc-text); }
.cf-warn.cf-w-block, .cf-w.cf-w-block { background: #fff2f2; border-color: #ffd6d6; color: #8f3438; }
.cf-warn.cf-w-warn, .cf-w.cf-w-warn { background: #fff8ec; border-color: #ffe4bb; color: #8a5c07; }
.cf-warn.cf-w-info, .cf-w.cf-w-info { background: #f1f6ff; border-color: #d8e6ff; color: #24508f; }
.cf-cur { background: #f7f9fc; border: 1px solid var(--tc-line); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px; }
.cf-body { color: var(--tc-muted); font-size: 12.5px; }
.cf-ck { width: 15px; height: 15px; }
.cf-bar { height: 6px; border-radius: 4px; background: #eef1f6; overflow: hidden; min-width: 90px; }
.cf-bar > i { display: block; height: 100%; background: var(--tc-primary); }
.cf-bar-lg { height: 12px; margin: 4px 0 12px; }
.cf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cf-pv { text-align: center; background: #f7f9fc; border-radius: 10px; padding: 10px; }
.cf-pv img { max-width: 100%; border: 1px solid var(--tc-line); border-radius: 6px; }
.cf-seal { width: 46px; height: 46px; object-fit: contain; background: #f7f9fc; border-radius: 6px; }
.cf-cfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; align-items: end; background: #f7f9fc; border: 1px solid var(--tc-line); border-radius: 10px; padding: 12px 14px; }
.cf-cfg label { font-size: 12px; color: var(--tc-muted); display: flex; flex-direction: column; gap: 4px; }
.cf-cfg input, .cf-cfg select { padding: 6px 8px; border: 1px solid #d8e0ec; border-radius: 7px; font-size: 13px; }
.cf-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cf-up { border: 1px dashed var(--tc-line); border-radius: 9px; padding: 9px 11px; font-size: 12.5px; }
.cf-up-lb { color: var(--tc-muted); font-size: 11.5px; margin-bottom: 5px; }
.cf-up input[type=file] { width: 100%; font-size: 12px; }
.cf-thumb { display: block; margin-top: 7px; }
.cf-thumb img { max-height: 62px; max-width: 100%; border: 1px solid var(--tc-line); border-radius: 6px; background: repeating-conic-gradient(#f2f4f8 0 25%, #fff 0 50%) 0 0/14px 14px; }
/* 素材直传（M10-4）：贴在字段下方的上传条，缩略图只是预览，取值仍写回上面的输入框 */
.tc-asset { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 6px; padding: 7px 9px; border: 1px dashed var(--tc-line); border-radius: 9px; background: #fbfcfe; }
.tc-asset .btn { padding: 4px 10px; font-size: 12.5px; }
.tc-asset-cur { font-size: 12.5px; color: var(--tc-text); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-asset-cur em { color: var(--tc-muted); font-style: normal; }
.tc-asset-thumb { height: 44px; width: 44px; object-fit: cover; border: 1px solid var(--tc-line); border-radius: 7px; background: #fff; }
.tc-asset-open { font-size: 12.5px; }
.tc-asset-thumb[data-asset-view] { cursor: zoom-in; }
/* 图片预览走弹框：证件照要看清五官和边框，44px 缩略图和另一个标签页都不够用 */
.tc-asset-view { display: flex; align-items: center; justify-content: center; min-height: 140px; background: repeating-conic-gradient(#f2f4f8 0 25%, #fff 0 50%) 0 0/16px 16px; border-radius: 8px; }
.tc-asset-view img { max-width: 100%; max-height: 62vh; display: block; }
/* 签名地址是一整串没有空格的长串，不锁死换行就会把弹框顶出横向滚动条 */
.tc-asset-src { overflow-wrap: anywhere; }
.tc-asset-tip { font-size: 11.5px; color: var(--tc-muted); }
@media (max-width: 1280px) { .cf-two, .cf-uploads { grid-template-columns: 1fr; } }

/* ---------- 课时视频登记（点播 VideoId → 可播地址 + 真实秒数）---------- */
.vod-fetch { display: flex; gap: 8px; margin-top: 6px; }
.vod-fetch input { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid #d8e0ec; border-radius: 7px; font-size: 12.5px; }
.vod-fetch input:focus { outline: none; border-color: var(--tc-primary); box-shadow: 0 0 0 3px rgba(31, 94, 255, .12); }
.vod-fetch .btn { padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }
.vf-out { display: none; margin-top: 6px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.vf-out.ok { display: block; color: #1f7a4d; background: #f0fbf4; border: 1px solid #cdeeda; border-radius: 7px; padding: 6px 9px; }
.vf-out.err { display: block; color: #8f3438; background: #fff2f2; border: 1px solid #ffd9d9; border-radius: 7px; padding: 6px 9px; }
.vf-out:not(.ok):not(.err) { display: block; color: var(--tc-muted); padding: 2px 1px; }
.vf-chg { margin: 10px 0 4px; border: 1px solid var(--tc-line); border-radius: 8px; overflow: hidden; }
.vf-chg td, .vf-chg th { padding: 7px 10px; font-size: 12.5px; }
.vf-chg .vf-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-confirm p { line-height: 1.7; color: var(--tc-text); }
.tc-confirm .tc-high-tip { margin-bottom: 8px; }
@media (max-width: 720px) { .vod-fetch { flex-direction: column; } .vod-fetch .btn { width: 100%; } }

/* ---------- 课时视频直传点播（浏览器分片直传，不经本站）---------- */
.vod-up { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.vod-up .btn { padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }
.vu-hint { font-size: 12px; color: var(--tc-muted); line-height: 1.6; }
.vu-cate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tc-muted); }
.vu-cate select { max-width: 190px; padding: 4px 8px; border: 1px solid var(--tc-line); border-radius: 8px; background: #fff; color: var(--tc-ink, #243247); font-size: 12.5px; }
.vu-out { margin-top: 4px; }
.vu-row { margin-top: 6px; padding: 7px 10px; border: 1px solid #dfe6f2; border-radius: 8px; background: #f8fbff; }
.vu-row.err { border-color: #ffd9d9; background: #fff6f6; }
.vu-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.vu-top b { overflow-wrap: anywhere; }
.vu-pct { font-variant-numeric: tabular-nums; color: var(--tc-primary); font-weight: 600; white-space: nowrap; }
.vu-bar { height: 5px; margin: 5px 0 4px; border-radius: 4px; overflow: hidden; background: #e6ecf6; }
.vu-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1675e8, #52d7e8); transition: width .3s ease; }
.vu-tip { font-size: 12px; color: var(--tc-muted); line-height: 1.6; overflow-wrap: anywhere; }
.vu-run { color: var(--tc-primary); font-variant-numeric: tabular-nums; }
.vu-cors { margin-top: 10px; font-size: 12px; color: var(--tc-muted); line-height: 1.7; }
.vu-cors code { display: block; margin-top: 4px; padding: 7px 9px; border-radius: 7px; background: #f4f7fc; border: 1px solid var(--tc-line); overflow-wrap: anywhere; }
.vt-body { min-height: 120px; }
.vt-table { border: 1px solid var(--tc-line); border-radius: 8px; overflow: hidden; }
.vt-table td, .vt-table th { padding: 8px 10px; font-size: 12.5px; vertical-align: top; }
.vt-table tr.live td { background: #f7fbff; }
.vt-table .vt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vt-table .vt-num .vu-bar { margin: 4px 0 2px; }
.vt-file { font-size: 11.5px; overflow-wrap: anywhere; }
.vt-sub { margin-top: 3px; font-size: 11.5px; color: var(--tc-muted); line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .vod-up { align-items: stretch; }
  .vod-up .btn { flex: 1; }
  .vt-table, .vt-table tbody, .vt-table tr, .vt-table td, .vt-table th { display: block; width: 100%; }
  .vt-table thead { display: none; }
  .vt-table tr { border-bottom: 1px solid var(--tc-line); padding: 6px 0; }
  .vt-table td { text-align: left !important; border: 0; }
}
