:root {
  --blue: #2b6cff;
  --blue-d: #1d4fd6;
  --orange: #ff8a3c;
  --bg: #f4f6fb;
  --card: #ffffff;
  --line: #e8ecf3;
  --txt: #20283a;
  --txt-2: #6b7589;
  --txt-3: #9aa3b5;
  --green: #21b573;
  --red: #f0506e;
  --yellow: #f5a623;
  --shadow: 0 2px 10px rgba(28, 50, 100, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.app { display: flex; height: 100vh; overflow: hidden; }

/* ===== 侧边栏 ===== */
.sidebar {
  width: 200px; flex: 0 0 200px;
  background: linear-gradient(180deg, #1f2a44 0%, #18223a 100%);
  color: #cdd6ea; display: flex; flex-direction: column;
}
.brand { padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-logo { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.brand-logo i { color: var(--orange); font-style: normal; margin-left: 2px; }
.brand-sub { font-size: 11px; color: #7e8aa6; margin-top: 6px; letter-spacing: .5px; }
/* 菜单可滚动：17 项在一屏放不下时，下方模块（系统设置等）不再被裁掉 */
.nav { padding: 6px 8px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; margin: 1px 0; border-radius: 8px;
  color: #b9c2d8; text-decoration: none; font-size: 13.5px; cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-item .ic { width: 18px; text-align: center; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(43,108,255,.35); }
.sidebar-foot { padding: 10px 18px; font-size: 12px; color: #6b7796; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-foot .foot-sub { margin-top: 4px; color: #4d5878; font-size: 11px; }
.sidebar-foot .beian-link { color: #7d88a6; text-decoration: none; transition: color .15s; }
.sidebar-foot .beian-link:hover { color: #c9d2e8; text-decoration: underline; }

/* ===== 主区 ===== */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 54px; flex: 0 0 54px; background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-sub { font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.mode-badge {
  font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 600;
}
.mode-badge.live { background: #e7f7ee; color: var(--green); }
.mode-badge.preview { background: #fff3e0; color: var(--yellow); }
.mode-badge.loading { background: #eef1f7; color: var(--txt-3); }
.btn-refresh {
  border: 1px solid var(--line); background: #fff; color: var(--txt);
  padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.btn-refresh:hover { border-color: var(--blue); color: var(--blue); }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.btn-export {
  border: 1px solid var(--blue); background: var(--blue); color: #fff;
  padding: 6px 13px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600;
}
.btn-export:hover { background: var(--blue-d); }
.topbar-date { font-size: 12px; color: var(--txt-3); }

.content { flex: 1; overflow: auto; padding: 14px 18px 28px; }
.panel { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== 通用组件 ===== */
.section-title { font-size: 14px; font-weight: 700; margin: 13px 0 8px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 15px; background: var(--blue); border-radius: 3px; }

.grid { display: grid; gap: 10px; }
.grid.kpi { grid-template-columns: repeat(4, 1fr); }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.card-title { font-weight: 700; font-size: 13px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.kpi .card { padding: 11px 12px; }
.kpi-label { font-size: 12px; color: var(--txt-3); }
.kpi-val { font-size: 22px; font-weight: 800; margin-top: 3px; letter-spacing: .5px; }
.kpi-val small { font-size: 13px; font-weight: 600; color: var(--txt-3); margin-left: 3px; }
.kpi-sub { font-size: 11px; color: var(--txt-3); margin-top: 2px; }
.kpi-accent { color: var(--blue); }
.kpi-orange { color: var(--orange); }
.kpi-green { color: var(--green); }
.kpi-red { color: var(--red); }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; color: var(--txt-3); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.table td { padding: 6px 10px; border-bottom: 1px solid #f1f4f9; }
.table tr:hover td { background: #f8faff; }
/* 表格里的操作按钮：小号、不换行，一排放得下 */
.table .btn-export { padding: 3px 9px; font-size: 12px; border-radius: 6px; white-space: nowrap; }
.table td .btn-export { margin: 1px 2px 1px 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== v61 老师课酬：卡片式紧凑布局 =====
   替代 9 列横表：原表把「老师」「基础课酬」挤成一字宽竖排且整表横向溢出。 */
.grid.py-kpi { grid-template-columns: repeat(2, minmax(0, 230px)); }
.py-list { display: flex; flex-direction: column; gap: 9px; }
.py-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); padding: 9px 11px; }
.py-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-bottom: 7px; border-bottom: 1px solid #f1f4f9; margin-bottom: 8px; }
.py-who b { font-size: 13.5px; }
.py-who .muted { font-size: 11.5px; margin-left: 8px; }
.py-sum { display: flex; align-items: center; gap: 10px; }
.py-final { font-size: 12px; color: var(--txt-3); }
.py-final b { font-size: 16px; color: var(--orange, #d97706); }
.py-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 12px; }
.py-f { min-width: 0; }
.py-f > label { display: block; font-size: 11px; color: var(--txt-3); margin-bottom: 3px; }
.py-f .input { width: 100%; box-sizing: border-box; height: 30px; padding: 4px 8px; }
.py-inline { display: flex; align-items: center; gap: 6px; }
.py-inline .input { flex: 1; min-width: 0; }
.py-inline .muted { font-size: 11.5px; white-space: nowrap; }
.py-params[data-mode="ratio"] .py-only-fixed { display: none; }
.py-params[data-mode="fixed"] .py-only-ratio { display: none; }
.py-val { font-size: 15px; font-weight: 800; line-height: 30px; color: var(--orange, #d97706); }
.py-detail { font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.py-notes { font-size: 11.5px; margin-top: 7px; }
.py-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 7px; border-top: 1px solid #f1f4f9; }
.py-foot .muted, .py-ops .muted { font-size: 11.5px; }
.py-ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.py-ops .btn-export { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
@media (max-width: 900px) {
  .py-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.py-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .py-grid { grid-template-columns: 1fr; } }
.tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.tag.open { background: #e7f7ee; color: var(--green); }
.tag.wait { background: #fff3e0; color: var(--yellow); }
.tag.full { background: #fdeaef; color: var(--red); }
.tag.gift { background: #eaf1ff; color: var(--blue); }

.bar { height: 7px; border-radius: 6px; background: #eef1f7; overflow: hidden; min-width: 90px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #5b8bff); }
.bar.full > i { background: linear-gradient(90deg, var(--red), #ff7e96); }
.bar.warn > i { background: linear-gradient(90deg, var(--yellow), #ffc06b); }

.muted { color: var(--txt-3); }
.empty { text-align: center; color: var(--txt-3); padding: 26px 0; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap8 { gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pill { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #eef2fb; color: var(--blue-d); }
.note { font-size: 12px; color: var(--txt-3); line-height: 1.6; background: #fafbff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.note b { color: var(--txt); }
.note code { background: #eef1f7; padding: 1px 6px; border-radius: 4px; font-size: 12px; color: var(--blue-d); }
/* 仅查阅权限：页面顶部提示条 */
.ro-banner { margin-bottom: 12px; background: #fff8e8; border-color: #f5d9a5; color: #8a5a12; font-size: 12.5px; }
ul.tlist { margin: 6px 0 0 18px; line-height: 1.65; color: var(--txt-2); }

/* 表单（招生活动 / 奖励设置 / 家校私信） */
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.form-row label { width: 118px; flex-shrink: 0; font-size: 13px; color: var(--txt-2); font-weight: 600; }
.form-row .muted { font-size: 12px; }
.input {
  flex: 1; min-width: 200px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: 13px; color: var(--txt);
  background: #fff; font-family: inherit;
}
textarea.input { width: 100%; resize: vertical; line-height: 1.7; }
select.input { flex: 1; }
.form-row:last-of-type { margin-bottom: 12px; }

/* 表单不要横向拉满整屏：限制卡片宽度，输入框再设上限，左侧对齐更耐看 */
.card:has(.form-row) { max-width: 640px; }
.form-row .input { max-width: 500px; }
.form-row .btn-export { flex-shrink: 0; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #20283a; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 99;
}
/* ===== 登录网关 / 权限 ===== */
.login-mask {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(135deg, #1c2a4a 0%, #2F6BFF 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-mask[hidden] { display: none; }
.login-box {
  width: 100%; max-width: 460px; background: #fff; border-radius: 16px;
  padding: 32px 30px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-brand { font-size: 24px; font-weight: 800; color: var(--txt); letter-spacing: .5px; }
.login-brand i { font-style: normal; font-size: 14px; color: var(--blue); margin-left: 8px; font-weight: 600; }
.login-sub { font-size: 12px; color: var(--txt-3); margin: 6px 0 22px; letter-spacing: 1px; }
.login-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.login-actions .btn-export { padding: 10px 26px; font-size: 14px; }
.login-init {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px;
}
.login-warn {
  margin-top: 14px; font-size: 12px; line-height: 1.7; color: #b91c1c;
  background: #fff1f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 10px 12px;
}
.login-warn[hidden] { display: none; }
.btn-export.ghost { background: #fff; color: var(--blue-d); border: 1px solid var(--line); }
.btn-export.ghost:hover { background: #f2f6ff; }
.btn-export.danger { background: var(--red, #dc2626); }
.btn-export.danger:hover { filter: brightness(.92); }
.btn-refresh.ghost { background: #fff; color: var(--txt-2); border: 1px solid var(--line); }
.op-badge {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: #eef3ff; color: var(--blue-d); font-weight: 600;
}
.nav-item.hidden-by-perm { display: none; }

/* 权限矩阵勾选 */
.perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 14px; margin-top: 8px;
}
.perm-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-2); }
.perm-item input { width: 15px; height: 15px; accent-color: var(--blue); }
.role-pill { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: #eef3ff; color: var(--blue-d); font-weight: 600; }
.role-pill.super { background: #fff1f2; color: #b91c1c; }
.editable-row { background: #fffbeb; }

/* 弹窗（学员档案编辑 / 积分调整 / 导入结果） */
.modal-mask {
  position: fixed; inset: 0; z-index: 150; background: rgba(16,24,40,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal-box {
  width: 100%; max-width: 620px; max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--txt); }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.file-drop {
  border: 2px dashed var(--line); border-radius: 10px; padding: 14px;
  text-align: center; color: var(--txt-3); font-size: 13px; background: #fafbff;
}

/* ===== 市场招生：子页签 ===== */
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.subtabs .btn-export { background: #f3f5fb; color: var(--txt-2); border-color: var(--line); }
.subtabs .btn-export.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tpl-card { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fafcff; }
.tpl-name { font-weight: 700; margin-bottom: 6px; }
.tpl-type { font-size: 12px; color: var(--txt-2); margin-bottom: 8px; }
.tpl-desc { font-size: 12px; color: var(--txt-2); line-height: 1.6; min-height: 38px; }

/* 一周排课总览（周历网格） */
.wk-wrap { overflow-x: auto; }
.wk-grid td, .wk-grid th { vertical-align: top; min-width: 118px; }
.wk-grid th.wk-period { white-space: nowrap; background: var(--bg-soft, #f8fafc); }
.wk-empty { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 6px, #f3f4f6 6px, #f3f4f6 12px); }
.wk-chip { border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 12px; line-height: 1.5; border-left: 3px solid var(--pri); background: #eff6ff; }
.wk-chip b { display: block; font-size: 12px; }
.wk-chip span { color: var(--txt-2); }
.wk-chip.wait { border-left-color: var(--warn); background: #fffbeb; }
.wk-chip.full { border-left-color: var(--green); background: #ecfdf5; }
.wk-warn { font-size: 11px; color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; padding: 2px 6px; margin-bottom: 6px; }

/* ===== 活动海报上传 / 群发范围选择 ===== */
.poster-prev { border: 1px dashed var(--line); border-radius: 10px; padding: 8px; background: #fafbff; margin-bottom: 8px; }
.poster-ph { padding: 22px 12px; text-align: center; color: var(--txt-3); font-size: 12px; }
.poster-wrap img { width: 100%; max-height: 240px; object-fit: contain; border-radius: 8px; display: block; background: #fff; }
.push-preview { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.push-preview .poster-wrap img { max-height: 90px; width: 96px; object-fit: cover; }
.push-preview .poster-ph { padding: 10px 6px; font-size: 11px; }
.chk-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; background: #fff; }
.chk:hover { border-color: var(--blue); background: #f7faff; }
.chk-scroll { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.chk-scroll .chk { display: flex; width: 100%; border: 0; border-bottom: 1px solid #f1f5f9; border-radius: 0; padding: 7px 8px; }
.chk-scroll .chk:last-child { border-bottom: 0; }
.btn-export.primary { background: var(--green, #16a34a); }
.btn-export.primary:hover { filter: brightness(.94); }
.btn-export[disabled] { cursor: not-allowed; }

/* ===== 招生活动：海报上传 / 群发范围选择 ===== */
.subtabs { gap: 8px; }
.poster-prev {
  border: 1px dashed var(--line); border-radius: 10px; padding: 8px;
  background: #fafbff; margin-bottom: 8px;
}
.poster-wrap img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; background: #fff; }
.poster-ph {
  width: 100%; height: 92px; border-radius: 8px; background: #f6f8fc;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-3); font-size: 12px; text-align: center; padding: 0 16px;
}
.poster-ph.small { height: 64px; font-size: 11px; }
.poster-src { font-size: 12px; color: var(--txt-3); margin-top: 6px; }
.push-preview {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #fff;
}
.push-preview .ph-line { font-size: 12px; color: var(--txt-3); margin-bottom: 8px; }
.push-preview .pm-body { font-size: 13px; line-height: 1.7; color: var(--txt-2); }
.push-preview .pm-link { font-size: 12px; color: var(--txt-3); margin-top: 8px; word-break: break-all; }
.chk-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chk-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.chk {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; background: #fff;
}
.chk-list .chk { border: 0; border-bottom: 1px solid #eef2f7; border-radius: 0; }
.chk-list .chk:last-child { border-bottom: 0; }
.chk:hover { background: #f5f8ff; }
.btn-export.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-export.primary:hover { filter: brightness(.94); }

/* ===== 上课日期：日历自由点选 + 星期快速生成（对齐旧版排课弹窗） ===== */
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-chip { display: inline-flex; align-items: center; gap: 6px; background: #eaf1ff; color: var(--blue-d); border-radius: 14px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.sf-chip .x { cursor: pointer; color: var(--txt-3); font-size: 11px; }
.sf-chip .x:hover { color: var(--red); }
.sf-wdbar { display: inline-flex; gap: 4px; }
.sf-wdbar .wbtn { display: inline-block; min-width: 26px; text-align: center; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; cursor: pointer; background: #fff; color: var(--txt-2); user-select: none; }
.sf-wdbar .wbtn:hover { border-color: var(--blue); color: var(--blue); }
.sf-wdbar .wbtn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sf-cal { max-width: 420px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fafbff; }
.sf-cal-h { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.sf-cal-h .nav { cursor: pointer; padding: 2px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--txt-2); }
.sf-cal-h .nav:hover { border-color: var(--blue); color: var(--blue); }
.sf-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.sf-cal-g .wd { text-align: center; font-size: 11px; color: var(--txt-3); padding: 2px 0; }
.sf-cal-g .day { text-align: center; padding: 6px 0; border-radius: 6px; font-size: 12px; cursor: pointer; background: #fff; border: 1px solid transparent; }
.sf-cal-g .day:hover { border-color: var(--blue); color: var(--blue); }
.sf-cal-g .day.on { background: var(--blue); color: #fff; font-weight: 700; }
.sf-cal-g .day.tdy { border-color: var(--orange); }
.sf-cal-tip { margin-top: 8px; font-size: 11px; color: var(--txt-3); }

@media (max-width: 1080px) { .grid.kpi { grid-template-columns: repeat(2,1fr); } .grid.cols3,.grid.cols2 { grid-template-columns: 1fr; } }

/* ===== 概览图表（对齐旧版：柱状图 / 环形图 / 今日待办） ===== */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 152px; padding-top: 20px; }
.barc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.barc .cv { font-size: 11px; color: var(--txt-2); margin-bottom: 4px; }
.barc .col { width: 60%; max-width: 34px; background: linear-gradient(180deg, #5b8cff, #2b6cff); border-radius: 6px 6px 0 0; min-height: 3px; }
.barc .cx { font-size: 11px; color: var(--txt-3); margin-top: 6px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; border-radius: 50%; position: relative; flex: 0 0 132px; }
.donut .dt { position: absolute; left: 26px; top: 26px; right: 26px; bottom: 26px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut .dt b { font-size: 22px; font-weight: 800; }
.donut .dt span { font-size: 11px; color: var(--txt-3); }
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend .lg { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt-2); }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.ti { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ti:last-child { border-bottom: none; }
.ti .badge { width: 34px; height: 34px; border-radius: 10px; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 34px; }
.ti .tx b { font-size: 13px; }
.ti .tx p { font-size: 12px; color: var(--txt-3); margin-top: 2px; }

/* ===== 家校私信：双栏聊天（对齐旧版） ===== */
.msg-layout { display: flex; gap: 12px; height: 520px; }
.msg-list { width: 280px; flex: 0 0 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ml-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.ml-item:hover { background: #f8faff; }
.ml-item.on { background: #eef4ff; }
.ml-ava { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 34px; font-size: 13px; }
.ml-mid { flex: 1; min-width: 0; }
.ml-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ml-nm { font-weight: 600; }
.ml-nm i { font-style: normal; color: var(--txt-3); font-weight: 400; }
.ml-time { color: var(--txt-3); font-size: 11px; }
.ml-last { font-size: 11px; color: var(--txt-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-un { background: var(--red); color: #fff; font-size: 10px; border-radius: 9px; padding: 1px 6px; flex: 0 0 auto; }
.msg-chat { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.mc-head { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; min-height: 56px; }
.mch-empty { color: var(--txt-3); font-size: 12px; }
.mc-body { flex: 1; overflow: auto; padding: 14px; background: #fafbff; }
.bub { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.bub.them { flex-direction: row-reverse; }
.bub .bava { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 28px; }
.bub .bwrap { max-width: 72%; }
.bub .btxt { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; line-height: 1.6; }
.bub.them .btxt { background: #eef4ff; border-color: #dbe6ff; }
.bub.them .btime { text-align: right; }
.bub .btime { font-size: 10px; color: var(--txt-3); margin-top: 3px; }
.mc-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.mc-in input { flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; }
.mc-in input:focus { border-color: var(--blue); }

/* ===== 师资卡片（对齐旧版卡片式） ===== */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; display: flex; gap: 12px; align-items: flex-start; }
.tcard .tav { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 42px; }
.tcard .tinfo { flex: 1; min-width: 0; }
.tcard .tnm { font-size: 13.5px; font-weight: 700; }
.tcard .tsub { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }
.tcard .tacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.perm-tbl td { padding: 5px 8px !important; }
.perm-sel { padding: 3px 6px; font-size: 11.5px; border: 1px solid var(--line); border-radius: 6px; }
