/* ============================================================
   星航学院 · 昆山斯达欧盛航空科技有限公司
   主题：取 logo 的 蓝(#2F7DE1) → 紫(#7B5CD6) 渐变
   ============================================================ */
:root {
  --blue: #2f7de1;
  --blue-600: #2569c4;
  --blue-50: #eef4ff;
  --purple: #7b5cd6;
  --purple-50: #f3efff;
  --grad: linear-gradient(120deg, #2f7de1 0%, #5a6ee2 52%, #7b5cd6 100%);
  --grad-soft: linear-gradient(120deg, rgba(47,125,225,.12), rgba(123,92,214,.12));

  --bg: #f4f6fc;
  --card: #ffffff;
  --ink: #1b2030;
  --text: #2a3040;
  --text-2: #6f7688;
  --text-3: #98a0b3;
  --line: #e8ecf5;
  --line-2: #f1f4fa;

  --danger: #e5484d;
  --danger-50: #fdeced;
  --ok: #17a673;
  --ok-50: #e7f8f1;
  --warn: #ef8b18;
  --warn-50: #fff5e5;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(24,38,74,.05);
  --shadow: 0 4px 18px rgba(38,72,150,.07);
  --shadow-lg: 0 12px 34px rgba(38,72,150,.13);
  --sidebar-w: 236px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: var(--blue); text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8dfec; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c3ccdd; }
::-webkit-scrollbar-track { background: transparent; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- 水印 ---------- */
.watermark-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.watermark-layer .wm-item {
  position: absolute; white-space: nowrap;
  font-size: 13px; color: rgba(47, 125, 225, .065);
  transform: rotate(-24deg); font-weight: 600; letter-spacing: .5px;
}

/* ============================ 登录 ============================ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(47,125,225,.16), transparent 70%),
    radial-gradient(820px 520px at 92% 108%, rgba(123,92,214,.18), transparent 70%),
    var(--bg);
  padding: 24px;
}
.login-card {
  width: 424px; max-width: 100%; background: #fff;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 60px rgba(40,70,150,.16), 0 2px 8px rgba(40,70,150,.06);
  padding: 38px 34px 26px;
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-logo { height: 76px; width: auto; margin-bottom: 16px; }
.login-brand h1, .login-brand h1.grad-text {
  font-size: 27px; margin-left: 0; letter-spacing: 4px; text-align: center;
  display: block; width: 100%; font-weight: 800;
}
.login-sub { color: var(--text-3); font-size: 12px; margin-top: 8px; letter-spacing: .3px; }

/* —— 企业微信登录主入口 —— */
.wecom-block { margin-top: 4px; }
.btn-wecom {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; border: none; border-radius: 13px; cursor: pointer;
  font-size: 15.5px; font-weight: 600; letter-spacing: .5px; color: #fff; font-family: inherit;
  background: linear-gradient(135deg, #2E9BF7, #1272E0 62%, #0B5FD0);
  box-shadow: 0 10px 24px rgba(18,114,224,.3), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.btn-wecom:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 30px rgba(18,114,224,.36), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-wecom:active { transform: translateY(0); }
.btn-wecom:disabled { opacity: .72; cursor: default; transform: none; }
.btn-wecom svg { flex: none; }
.wecom-hint { color: var(--text-2); font-size: 12px; text-align: center; line-height: 1.7; margin: 12px 0 0; }
.wecom-state { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; min-height: 20px; }
.wecom-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; letter-spacing: .3px;
}
.wecom-chip.warn { background: rgba(240,160,50,.12); color: #B4761A; border: 1px solid rgba(240,160,50,.28); }
.wecom-chip.ok { background: rgba(46,155,247,.1); color: #1272E0; border: 1px solid rgba(46,155,247,.26); }
.wecom-chip-text { font-size: 11px; color: var(--text-3); }

.login-alt { margin-top: 18px; text-align: center; border-top: 1px dashed var(--line); padding-top: 14px; }
.link-muted {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12px; color: var(--text-3); padding: 4px 8px; border-radius: 6px; transition: .16s;
}
.link-muted:hover { color: var(--blue); background: rgba(47,125,225,.06); }
.alt-pane { margin-top: 14px; text-align: left; }
.login-alt-tip { color: var(--text-3); font-size: 11px; text-align: center; margin-top: 10px; line-height: 1.6; }

/* —— 企微对接引导 —— */
.setup-lead { color: var(--text-2); font-size: 13px; line-height: 1.8; margin: 6px 0 14px; }
.setup-steps { margin: 0 0 18px; padding-left: 20px; color: var(--text-2); font-size: 13px; line-height: 1.9; }
.setup-steps li { margin-bottom: 7px; }
.setup-steps code, .setup-copy code {
  background: #f3f6fc; color: #2C5FA8; padding: 1px 6px; border-radius: 5px;
  font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all;
}
.setup-copy {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #f8fafc; border: 1px dashed var(--line);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; color: var(--text-2);
}
.setup-copy code { flex: 1; min-width: 180px; }

/* —— 员工列表搜索框 —— */
.tbl-search {
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13px;
  min-width: 190px; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.tbl-search:focus { border-color: #2c5fa8; box-shadow: 0 0 0 3px rgba(44, 95, 168, .12); }

/* —— 通讯录同步结果 —— */
.sync-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px;
}
.sync-stats > div {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  text-align: center; background: #fbfdff;
}
.sync-stats b { display: block; font-size: 22px; line-height: 1.3; color: #2C5FA8; }
.sync-stats span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
@media (max-width: 480px) { .sync-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.login-pane { margin-top: 4px; }
.login-tip { color: var(--text-2); font-size: 12px; text-align: center; line-height: 1.7; margin-bottom: 14px; }
.form-row { margin-bottom: 12px; }
.form-row input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 11px; font-size: 14px; outline: none; background: #fafbfe;
  transition: .16s;
}
.form-row input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,125,225,.1); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.login-error { color: var(--danger); font-size: 12px; min-height: 18px; margin-top: 8px; text-align: center; line-height: 1.6; }
.login-foot { color: var(--text-3); font-size: 11px; text-align: center; margin-top: 14px; }
/* 备案号与版权（登录页页脚） */
.login-beian {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--text-3);
}
.login-beian a { color: var(--text-3); text-decoration: none; }
.login-beian a:hover { color: var(--text-2); text-decoration: underline; }
.login-beian .dot { color: var(--text-3); }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 11px; border: none; cursor: pointer;
  font-size: 14px; font-family: inherit; transition: .16s; text-decoration: none;
  white-space: nowrap; line-height: 1.2;
}
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 9px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(58,101,214,.24); }
.btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(58,101,214,.3); }
.btn-ghost { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(47,125,225,.5); background: var(--blue-50); }
.btn-danger { background: var(--danger-50); color: var(--danger); }
.btn-danger:hover { background: #fadfe0; }
.btn-ok { background: var(--ok-50); color: var(--ok); }
.btn-ok:hover { background: #d8f3e8; }
.btn-warn { background: var(--warn-50); color: var(--warn); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ============================ 应用框架 ============================ */
.app { display: flex; min-height: 100vh; }

/* ---- 左侧栏 ---- */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.side-brand {
  padding: 22px 18px 18px; text-align: center;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(47,125,225,.05), transparent);
}
.side-logo { height: 42px; display: block; margin: 0 auto 10px; }
.side-title {
  font-size: 17px; font-weight: 800; letter-spacing: 3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.side-sub { font-size: 10px; color: var(--text-3); margin-top: 4px; letter-spacing: .2px; }

.side-scroll { flex: 1; overflow-y: auto; padding: 14px 12px; }
.side-group-label {
  font-size: 10.5px; color: var(--text-3); letter-spacing: 1.4px;
  padding: 10px 10px 6px; font-weight: 600; text-transform: uppercase;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: none; background: none; border-radius: 11px;
  cursor: pointer; font-size: 13.5px; color: var(--text-2); font-family: inherit;
  text-align: left; transition: .16s; position: relative;
}
.side-nav button .nav-ico {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line-2); font-size: 13px; transition: .16s;
}
.side-nav button:hover { background: #f5f8fe; color: var(--text); }
.side-nav button:hover .nav-ico { background: var(--blue-50); }
.side-nav button.active {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(58,101,214,.26);
}
.side-nav button.active .nav-ico { background: rgba(255,255,255,.22); }

.side-foot { padding: 12px; border-top: 1px solid var(--line-2); background: #fcfdff; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px 6px 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-meta { min-width: 0; flex: 1; }
.user-name {
  font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-name:hover { color: var(--blue); }
.user-role { margin-top: 3px; white-space: nowrap; }
.badge {
  font-size: 10.5px; padding: 1px 8px; border-radius: 20px;
  background: var(--blue-50); color: var(--purple); font-weight: 600;
}

/* ---- 右侧主区 ---- */
.app-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.main { max-width: 1240px; margin: 0 auto; padding: 28px 30px 72px; }

.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title {
  font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: .2px;
  position: relative; padding-left: 13px; margin-bottom: 0;
}
.page-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 3px; background: var(--grad);
}
.page-sub { color: var(--text-2); font-size: 13px; margin-bottom: 18px; }
.page-head .page-sub { margin-bottom: 2px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ============================ 卡片 / 栅格 ============================ */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 20px 22px; margin-bottom: 18px;
}
.card h3 {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.card h3 .sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 4px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---- 统计卡 ---- */
.stat-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 18px 20px; position: relative; overflow: hidden;
  transition: .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 96px; height: 96px;
  border-radius: 50%; background: var(--grad-soft);
}
.stat-card .num {
  font-size: 27px; font-weight: 800; letter-spacing: .3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; z-index: 1; line-height: 1.25;
}
.stat-card .label { color: var(--text-2); font-size: 12px; margin-top: 6px; position: relative; z-index: 1; }
.stat-card .stat-ico {
  position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; z-index: 1; box-shadow: 0 6px 14px rgba(58,101,214,.24);
}

/* ---- 提醒条 ---- */
.alert-banner {
  background: linear-gradient(100deg, var(--warn-50), #fff 70%);
  border: 1px solid #ffe3b0; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.alert-banner .icon { font-size: 18px; }
.alert-banner.danger { background: linear-gradient(100deg, var(--danger-50), #fff 70%); border-color: #f8cccd; }

/* ---- 课程卡 ---- */
.course-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: .18s;
  position: relative; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(47,125,225,.28); }
.course-cover {
  height: 104px; background: var(--grad); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 800; letter-spacing: 3px; position: relative;
}
.course-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px 100px at 85% 0%, rgba(255,255,255,.28), transparent 70%);
}
.course-body { padding: 15px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.course-body .title { font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); line-height: 1.5; }
.course-body .meta { color: var(--text-3); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.tag { font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 500; display: inline-block; }
.tag-required { background: var(--danger-50); color: var(--danger); }
.tag-ok { background: var(--ok-50); color: var(--ok); }
.tag-cat { background: var(--blue-50); color: var(--blue); }
.tag-warn { background: var(--warn-50); color: var(--warn); }
.tag-gray { background: #f0f2f7; color: var(--text-2); }

/* ---- 进度条 ---- */
.progress { height: 6px; background: #edf0f8; border-radius: 4px; overflow: hidden; margin-top: 10px; display: block; }
.progress > div, .progress > span { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width .3s; }

/* ---- 表格 ---- */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line-2); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl th {
  color: var(--text-2); font-weight: 600; background: #f8fafd; font-size: 12px;
  white-space: nowrap; position: sticky; top: 0;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td, .tbl tr:hover td { background: #f8fbff; }
.tbl td .btn + .btn { margin-left: 6px; }

/* ---- 筛选 pill ---- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row.scroll-x { overflow-x: auto; padding-bottom: 2px; }
.chip {
  padding: 7px 16px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; color: var(--text-2);
  font-family: inherit; transition: .16s; white-space: nowrap;
}
.chip:hover { border-color: rgba(47,125,225,.45); color: var(--blue); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 5px 14px rgba(58,101,214,.22); }

/* ============================ 学习页 ============================ */
.study-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .study-layout { grid-template-columns: 1fr; } }
.video-box { position: relative; background: #0b0f1a; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-box video { width: 100%; display: block; max-height: 480px; background: #000; }
.attach-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; font-size: 13px; background: #fbfcff; transition: .16s;
}
.attach-item:hover { border-color: rgba(47,125,225,.4); background: var(--blue-50); }
.exam-ready {
  margin-top: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid rgba(47,125,225,.16); text-align: center;
}

/* ============================ 考试 ============================ */
.exam-question { margin-bottom: 24px; }
.exam-question .q-title { font-weight: 700; margin-bottom: 12px; color: var(--ink); line-height: 1.6; }
.exam-option {
  display: block; padding: 11px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 9px; cursor: pointer; transition: .14s; background: #fcfdff;
}
.exam-option:hover { border-color: rgba(47,125,225,.5); background: #fff; }
.exam-option.selected { border-color: var(--blue); background: var(--blue-50); font-weight: 600; box-shadow: 0 0 0 2px rgba(47,125,225,.1); }
.exam-timer {
  position: sticky; top: 20px; float: right; z-index: 5;
  background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 20px;
  font-weight: 700; color: var(--danger); box-shadow: var(--shadow-sm);
}

/* ============================ 公开课 ============================ */
.live-card { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.live-info { min-width: 0; flex: 1; }
.live-info .title { font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.live-meta { color: var(--text-2); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.live-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 132px; }

/* 星级评分 */
.stars { display: inline-flex; gap: 6px; font-size: 28px; cursor: pointer; user-select: none; }
.stars span { color: #dfe4ee; transition: .12s; line-height: 1; }
.stars span.on { color: #f7b731; transform: scale(1.06); }
.rating-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  background: var(--warn-50); color: #b97708; padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.rating-list { font-size: 12.5px; }
.rating-list .item { padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.rating-list .item:last-child { border-bottom: none; }

/* ============================ 弹窗 ============================ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(18,24,44,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px); animation: fade .16s ease;
}
.modal {
  background: #fff; border-radius: 20px; width: 580px; max-width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 26px;
  box-shadow: 0 30px 70px rgba(18,24,44,.3); animation: pop .18s ease;
}
.modal h3 { margin-bottom: 18px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-item label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; outline: none; background: #fafbfe; font-family: inherit; color: var(--text);
  transition: .16s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,125,225,.1);
}
.form-item.full { grid-column: 1 / -1; }
.form-item textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.upload-tip { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.7; }
.code-box {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  white-space: pre-wrap; line-height: 1.7; color: var(--text-2);
}

/* ============================ 二维码 ============================ */
.qr-wrap { text-align: center; padding: 10px 0; }
.qr-wrap .qr-box { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.qr-wrap .qr-label { font-size: 13px; color: var(--text-2); margin-top: 12px; line-height: 1.8; }

/* ============================ Toast ============================ */
#toast-root { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2000; }
.toast {
  background: rgba(27, 32, 48, .94); color: #fff; padding: 11px 20px;
  border-radius: 24px; font-size: 13px; margin-bottom: 10px; animation: fadein .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); max-width: 80vw; text-align: center;
}
.toast.err { background: rgba(229, 72, 77, .96); }
.toast.ok { background: rgba(23, 166, 115, .96); }
@keyframes fadein { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================ 结果页 ============================ */
.result-box { text-align: center; padding: 40px 20px; }
.result-score { font-size: 58px; font-weight: 800; letter-spacing: 1px; }
.result-score.pass { color: var(--ok); }
.result-score.fail { color: var(--danger); }
.result-title { font-size: 20px; font-weight: 700; margin: 10px 0 6px; color: var(--ink); }

/* ============================ 其它 ============================ */
.empty { text-align: center; color: var(--text-3); padding: 44px 0; font-size: 13px; }
.section-gap { margin-top: 20px; }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }

/* 培训计划 */
.plan-kpi { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.plan-kpi b { color: var(--ink); font-size: 15px; margin-left: 4px; }
.dept-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; flex-wrap: wrap; }
.dept-row:last-child { border-bottom: none; }
.dept-row .name { width: 120px; flex-shrink: 0; font-weight: 600; color: var(--ink); }
.dept-row .bar { flex: 1; min-width: 140px; }
@media (max-width: 640px) {
  .dept-row .name { width: 72px; font-size: 12.5px; }
  .dept-row { gap: 8px; }
  .dept-hours, .dept-star { display: none; }
}

/* ============================ 内训师 ============================ */
.tag-level { background: var(--grad-soft); color: var(--purple); font-weight: 600; }
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.trainer-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  background: linear-gradient(180deg, #fdfdff, #fbfcff); transition: .18s;
  display: flex; flex-direction: column; gap: 10px;
}
.trainer-card:hover { border-color: rgba(47,125,225,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.tr-top { display: flex; gap: 12px; align-items: center; }
.tr-avatar {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff;
  font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 6px 16px rgba(47,125,225,.28);
}
.tr-avatar.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; }
.tr-name { font-weight: 700; font-size: 15px; color: var(--ink); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tr-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }
.tr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.tr-kpis > div { text-align: center; }
.tr-kpis b { display: block; font-size: 16px; color: var(--ink); }
.tr-kpis span { font-size: 11px; color: var(--text-3); }
.tr-foot { display: flex; justify-content: flex-end; }
.tr-profile { display: flex; gap: 14px; align-items: center; }
.detail-sec { margin-top: 18px; }
.detail-sec h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.notice-warn {
  background: var(--warn-50); color: #a86408; border: 1px solid #ffe2b8;
  padding: 9px 12px; border-radius: 10px; font-size: 12.5px; margin-bottom: 12px;
}

/* ============================ 满意度维度 ============================ */
.dim-list { display: grid; gap: 10px; }
.dim-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; background: #fcfdff; }
.dim-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.dim-label { font-weight: 600; font-size: 13px; color: var(--ink); }
.dim-score { font-size: 12px; color: var(--text-2); }
.dim-stars { display: flex; gap: 5px; font-size: 24px; margin: 4px 0 2px; cursor: pointer; user-select: none; }
.dim-stars span { color: #dfe4ee; transition: .12s; line-height: 1; }
.dim-stars span.on { color: #f7b731; }
.dim-stars span:hover { transform: scale(1.1); }
.dim-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.overall-box {
  margin-top: 14px; padding: 13px 16px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid rgba(47,125,225,.16);
}
.overall-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.overall-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.overall-num { font-size: 24px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.overall-of { font-size: 12px; color: var(--text-3); }
.overall-tag { font-size: 12px; color: var(--purple); background: #fff; padding: 2px 9px; border-radius: 20px; }
.overall-bar { height: 6px; background: #e6ebf7; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.overall-bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width .25s; }
.dim-bars { display: grid; gap: 8px; }
.dim-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.dim-bar-label { width: 132px; flex-shrink: 0; color: var(--text-2); }
.dim-bar { flex: 1; height: 7px; background: #eef1f8; border-radius: 4px; overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.dim-bar-row b { width: 34px; text-align: right; color: var(--ink); }
.rev-dims { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.rev-dim { font-size: 11px; background: #f4f6fd; color: var(--text-2); padding: 2px 8px; border-radius: 20px; }

/* ---- 满意度评分：0-10 分「进度条 + 10 个圆圈」，可点选也可拖动 ---- */
.rate-row { padding: 11px 14px 10px; }
.dim-score.on { color: var(--ink); font-weight: 600; }

/* 10 分刻度：轨道上 10 个圆圈，点哪个就是几分；拖动手柄同样只停整数分 */
.rate-scale { position: relative; height: 44px; margin: 4px 2px 2px; }
.rs-track {
  position: absolute; left: 6px; right: 6px; top: 26px; height: 10px;
  border-radius: 999px; background: #e8ecf5;
}
.rs-fill {
  position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #4a6cf7, #7b5cd6); transition: width .12s linear;
}
.rs-dot {
  position: absolute; top: 50%; width: 12px; height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; border: 1.5px solid #cdd6ea; box-sizing: border-box;
  transition: border-color .12s, box-shadow .12s;
}
.rs-dot.active { border-color: #5a6ee2; box-shadow: 0 0 0 2px rgba(90, 110, 226, .16); }
.rs-dot.active::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #5a6ee2;
}
.rs-range {
  position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent;
}
.rs-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; }
.rs-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; background: transparent; }
.rs-readonly { position: relative; height: 40px; margin: 4px 2px 2px; }
.rs-readonly .rs-track { top: 24px; height: 8px; }
.rs-readonly .rs-num { top: -15px; color: #8b95a7; }

/* 问答题 */
.text-row { padding: 11px 14px 12px; }
.rt-type { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 20px; background: #eef2fb; color: #5a6ee2; margin-left: 4px; }
.rt-type.text { background: rgba(247, 183, 49, .16); color: #a87209; }
.rt-req { color: var(--danger); font-weight: 700; }
.text-count { font-size: 11.5px; color: var(--text-3); }
.rate-text {
  width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; line-height: 1.7;
  font-family: inherit; resize: vertical; min-height: 74px; outline: none; color: var(--text);
}
.rate-text:focus { border-color: #2c5fa8; box-shadow: 0 0 0 3px rgba(44, 95, 168, .12); }
.rate-text.ro {
  min-height: 0; background: #f8fafd; color: var(--text-2); white-space: pre-wrap; word-break: break-word;
}
.rate-ro-tip {
  font-size: 13px; line-height: 1.8; color: #2c7a4b; background: #f0faf4;
  border: 1px solid #cdebd9; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.score-chip {
  display: inline-flex; align-items: baseline; gap: 2px; padding: 1px 9px; border-radius: 20px;
  background: var(--blue-50); color: var(--blue-600); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.score-chip b { font-size: 13.5px; }

/* ---- 管理员：评价题目编辑 ---- */
.rate-form-list { display: grid; gap: 8px; margin-top: 10px; max-height: 26vh; overflow: auto; }
.rate-form-row { display: flex; align-items: center; gap: 9px; }
.rf-idx { width: 18px; flex-shrink: 0; text-align: center; font-size: 12px; color: var(--text-3); }
.rf-idx.is-text { color: #a87209; }
.rf-sec { margin-top: 14px; }
.rf-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rf-sec-head b { font-size: 13.5px; color: var(--ink); }
.rf-sec-head .btn { margin-left: auto; }
.rf-input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.bs-progress { height: 6px; background: #e6ebf7; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bs-progress i { display: block; height: 100%; background: var(--grad); }
.bs-band { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.rev-q { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.7; }
.rev-q span { color: var(--ink); font-weight: 600; }

/* ============================ 课后作业 ============================ */
.hw-hint {
  margin-top: 10px; font-size: 12.5px; color: #a86408; background: var(--warn-50);
  padding: 7px 11px; border-radius: 9px; display: inline-block;
}
.hw-list { display: grid; gap: 12px; }
.hw-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fdfdff; }
.hw-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-head b { font-size: 14px; color: var(--ink); }
.hw-desc { font-size: 13px; color: var(--text-2); line-height: 1.75; margin-top: 6px; }
.hw-meta { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.hw-comment { margin-top: 8px; font-size: 12.5px; background: var(--blue-50); color: var(--blue-600); padding: 8px 11px; border-radius: 9px; }
.hw-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hw-admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; background: #fdfdff; }
.hw-admin-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.hw-admin-head b { font-size: 14px; color: var(--ink); }

/* 宽弹窗 */
.modal.wide { width: 880px; }
@media (max-width: 560px) {
  .tr-kpis { grid-template-columns: repeat(2, 1fr); }
  .dim-bar-label { width: 92px; font-size: 11.5px; }
}

/* ============================ 响应式：侧边栏 → 顶部横向 ============================ */
@media (max-width: 980px) {
  .app { flex-direction: column; }
  .sidebar {
    position: sticky; top: 0; width: 100%; bottom: auto;
    flex-direction: column; border-right: none; border-bottom: 1px solid var(--line);
  }
  .side-brand { padding: 12px 16px; text-align: left; display: flex; align-items: center; gap: 10px; }
  .side-logo { height: 30px; margin: 0; }
  .side-title { font-size: 15px; letter-spacing: 1px; }
  .side-sub { display: none; }
  .side-scroll { padding: 8px 10px; overflow-x: auto; }
  .side-group-label { display: none; }
  .side-nav { flex-direction: row; gap: 6px; }
  .side-nav button { padding: 8px 12px; white-space: nowrap; }
  .side-nav button.active { box-shadow: none; }
  .side-foot {
    position: absolute; right: 10px; top: 8px; padding: 0; border: none; background: none;
    display: flex; align-items: center; gap: 8px;
  }
  .user-card { padding: 0; gap: 8px; }
  .avatar { display: none; }
  .user-name { font-size: 12.5px; max-width: 96px; }
  .user-role { margin-top: 1px; }
  .user-role .badge { font-size: 10px; padding: 1px 6px; }
  .side-foot .btn { padding: 5px 10px; font-size: 12px; }
  .app-main { margin-left: 0; }
  .main { padding: 18px 16px 60px; }
  .page-title { font-size: 19px; }
  .page-actions { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .side-foot .btn { padding: 5px 8px; font-size: 12px; }
  .user-name { max-width: 70px; }
}

/* ============================ 现场投屏二维码 ============================ */
.modal.board {
  width: min(1080px, 96vw); max-width: 96vw; max-height: 94vh; padding: 0;
  overflow: hidden; border-radius: 24px;
}
.board { display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff, #f7f9ff); }
.board-head {
  display: flex; align-items: center; gap: 16px; padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.board-logo { height: 46px; flex: none; }
.board-headtxt { flex: 1; min-width: 0; }
.board-kicker { font-size: 11.5px; color: var(--text-3); letter-spacing: .6px; }
.board-title { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 4px; line-height: 1.25; }
.board-meta { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.board-mode {
  flex: none; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 22px; letter-spacing: 1px;
}
.board-mode.signin { background: rgba(47,125,225,.1); color: var(--blue-600); border: 1px solid rgba(47,125,225,.25); }
.board-mode.rate { background: rgba(247,183,49,.14); color: #A87209; border: 1px solid rgba(247,183,49,.4); }

.board-body {
  display: grid; grid-template-columns: 400px 1fr; gap: 28px;
  padding: 26px 28px 20px; align-items: start;
}
.board-qr { text-align: center; }
.board-qr-box {
  display: inline-block; padding: 16px; background: #fff; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(40,70,150,.1);
}
.board-qr-box img, .board-qr-box canvas { display: block; width: 300px !important; height: 300px !important; }
.board-qr-tip { font-size: 13.5px; color: var(--text-2); margin-top: 14px; font-weight: 600; letter-spacing: .3px; }

.board-stats { display: flex; flex-direction: column; gap: 16px; }
.bs-main {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px;
  box-shadow: 0 6px 20px rgba(40,70,150,.06);
}
.bs-num { font-size: 68px; font-weight: 800; line-height: 1; color: var(--blue); letter-spacing: -2px; }
.bs-unit { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.bs-bar { height: 10px; background: #eef2fa; border-radius: 10px; margin-top: 14px; overflow: hidden; }
.bs-bar i { display: block; height: 100%; background: var(--grad); border-radius: 10px; transition: width .5s; }
.bs-sub { font-size: 12.5px; color: var(--text-3); margin-top: 9px; }
.bs-avg { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 24px; }
.bs-avg-num { font-size: 40px; font-weight: 800; color: #E39B10; line-height: 1; }
.bs-avg-lbl { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.bs-list {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; flex: 1;
}
.bs-list-title { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 1px; margin-bottom: 10px; }
.bs-item {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 7px 0;
  border-bottom: 1px dashed var(--line-2); color: var(--text);
}
.bs-item:last-child { border-bottom: none; }
.bs-item .muted { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-tip { font-size: 11.5px; color: var(--text-3); text-align: right; }

.board-foot {
  display: flex; align-items: center; gap: 12px; padding: 14px 28px 20px; border-top: 1px solid var(--line);
}
.board-link {
  flex: 1; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.board-btns { display: flex; gap: 10px; flex: none; }

/* ============================ 扫码签到页 ============================ */
.checkin-wrap { display: flex; justify-content: center; padding: 10px 0 40px; }
.checkin-card {
  width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 30px 30px 22px; box-shadow: 0 20px 50px rgba(40,70,150,.1);
  text-align: center; position: relative; overflow: hidden;
}
.checkin-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.checkin-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; color: var(--blue);
  background: rgba(47,125,225,.09); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.checkin-title { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.checkin-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center;
  font-size: 12.5px; color: var(--text-2); margin-top: 10px;
}
.checkin-person {
  display: flex; align-items: center; gap: 12px; margin: 22px auto 0; max-width: 340px;
  background: #f7f9ff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-align: left;
}
.checkin-person .avatar.lg { width: 44px; height: 44px; border-radius: 14px; font-size: 18px; }
.cp-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.cp-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.checkin-actions { margin-top: 24px; }
.checkin-done {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 18px;
  background: rgba(23,166,115,.07); border: 1px solid rgba(23,166,115,.22); border-radius: 16px; text-align: left;
}
.checkin-done-ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none;
}
.checkin-done b { font-size: 15px; color: var(--ok); }
.checkin-done p { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.checkin-foot { font-size: 11px; color: var(--text-3); margin-top: 20px; letter-spacing: .5px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; font-weight: 700; }

/* ============================ 扫码评价页 ============================ */
.rate-card {
  max-width: 720px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 26px 28px 10px; box-shadow: 0 18px 44px rgba(40,70,150,.09);
}
.rate-head { padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.rate-head .checkin-badge { background: rgba(247,183,49,.14); color: #A87209; }
.rate-head .checkin-title { font-size: 20px; }
.rate-lead { font-size: 13px; color: var(--text-2); line-height: 1.8; margin-top: 10px; }

@media (max-width: 820px) {
  .board-body { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .board-head { padding: 16px 18px 14px; flex-wrap: wrap; }
  .board-title { font-size: 19px; }
  .board-logo { height: 34px; }
  .board-footer, .board-foot { padding: 12px 18px 16px; flex-wrap: wrap; }
  .board-link { flex-basis: 100%; }
  .board-qr-box img, .board-qr-box canvas { width: 220px !important; height: 220px !important; }
  .bs-num { font-size: 48px; }
  .checkin-card, .rate-card { padding: 22px 18px 16px; border-radius: 18px; }
  .checkin-title { font-size: 19px; }
}

/* 评价题目编辑器：问答题「必填」标记 */
.rf-req{flex:0 0 auto;margin-right:6px;padding:2px 6px;border-radius:5px;font-size:11px;font-style:normal;
  color:#c2410c;background:#fff2e8;border:1px solid #ffd8bf;white-space:nowrap}
/* 评分圆圈上方的刻度小字（1-10 分） */
.rs-num {
  position: absolute; top: -17px; transform: translateX(-50%);
  font-size: 11px; font-style: normal; line-height: 1; color: #a3adc2;
  transition: color .12s, font-weight .12s; pointer-events: none; user-select: none;
}
.rs-num.active { color: #4a6cf7; font-weight: 700; }


/* 签到明细列表：一屏 4 人，其余滚动查看 */
.bs-list-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bs-list-head .bs-list-title { margin-bottom: 0; margin-right: auto; }
.bs-list-cnt { font-weight: 400; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.bs-scroll { max-height: 136px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; scrollbar-width: thin; }
.bs-scroll::-webkit-scrollbar { width: 6px; }
.bs-scroll::-webkit-scrollbar-thumb { background: #d7dfee; border-radius: 6px; }
.bs-scroll::-webkit-scrollbar-track { background: transparent; }


/* 考卷题目内联编辑器（批量录入） */
.eq-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.eq-sum { font-size: 12.5px; color: var(--text-3); }
.eq-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.eq-batch { width: 62px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; text-align: center; }
.eq-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 6px;
  margin-bottom: 10px; background: #fbfcff; }
.eq-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eq-tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #eef2fb; color: #5a6ee2; }
.eq-score-lbl { font-size: 12px; color: var(--text-3); }
.eq-input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; font-size: 13px; font-family: inherit; margin-bottom: 6px; resize: vertical; line-height: 1.6; }
.eq-input:focus { outline: none; border-color: #7b93f0; box-shadow: 0 0 0 3px rgba(90, 110, 226, .1); }
.eq-grid { display: flex; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.eq-grid label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.eq-grid select, .eq-grid input { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 13px; }
.eq-grid input[type=number] { width: 74px; }


/* 考卷编辑：底部「保存考卷」常驻可见 */
.modal.exam-form .modal-foot {
  position: sticky; bottom: 0; margin-top: 14px; padding: 12px 0 20px;
  background: #fff; border-top: 1px solid var(--line); z-index: 2;
}

/* ==================== 课程附件上传（对齐 admin-expense-platform 附件样式） ==================== */
.att-zone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px dashed #cfdcef; border-radius: 10px; background: #fafcff; }
.att-zone .att-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.att-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.att-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.att-item.uploading { opacity: .7; }
.att-badge { width: 36px; height: 24px; border-radius: 5px; background: #eef4fe; color: #1b5fd0;
  font-size: 9.5px; font-weight: 700; display: grid; place-items: center; flex: none; letter-spacing: .2px; }
.att-name { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { font-size: 11.5px; color: var(--text-3); flex: none; }
.att-ops { display: flex; gap: 6px; align-items: center; flex: none; }
.att-empty { font-size: 12px; color: var(--text-3); margin: 0; padding: 2px 2px 0; }
@media (max-width: 640px) {
  .att-item { flex-wrap: wrap; gap: 6px 8px; }
  .att-name { flex: 1 1 60%; white-space: normal; word-break: break-all; line-height: 1.45; }
  .att-ops { width: 100%; justify-content: flex-end; }
  .att-zone .att-hint { width: 100%; }
}

/* ==================== 课程可见范围选择器（仿企微选择联系人） ==================== */
.vk-mask { position: fixed; inset: 0; background: rgba(18,24,44,.45); z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(2px); }
.vk-box { background: #fff; border-radius: 14px; width: 880px; max-width: 100%; height: 640px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px rgba(18,24,44,.28); }
.vk-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px 12px; border-bottom: 1px solid var(--line-2); }
.vk-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.vk-sub { font-size: 12px; color: var(--text-3); }
.vk-sub b { color: var(--blue); font-weight: 700; }
.vk-x { margin-left: auto; border: 0; background: transparent; font-size: 20px; line-height: 1;
  color: var(--text-3); cursor: pointer; padding: 2px 7px; border-radius: 8px; }
.vk-x:hover { background: var(--line-2); color: var(--text); }
.vk-body { flex: 1; display: flex; min-height: 0; }
.vk-left { width: 52%; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; min-width: 0; }
.vk-search { display: flex; align-items: center; gap: 8px; margin: 12px 14px 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fafbfe; }
.vk-search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,125,225,.1); }
.vk-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 13px;
  font-family: inherit; color: var(--text); }
.vk-search-ico { font-size: 12px; color: var(--text-3); }
.vk-tree { flex: 1; overflow: auto; padding: 4px 10px 14px; }
.vk-group { margin-bottom: 1px; }
.vk-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  cursor: pointer; font-size: 13px; color: var(--text); }
.vk-row:hover { background: var(--blue-50); }
.vk-dept { font-weight: 600; }
.vk-dept.on { background: #eef4ff; }
.vk-dept.part { background: #f7f9ff; }
.vk-company { border-bottom: 1px solid var(--line-2); border-radius: 8px 8px 0 0;
  margin-bottom: 6px; padding-bottom: 9px; }
.vk-caret { width: 14px; text-align: center; font-size: 9px; color: var(--text-3);
  transition: transform .15s; flex: none; }
.vk-caret.open { transform: rotate(90deg); }
.vk-cb { width: 15px; height: 15px; border-radius: 3px; border: 1.5px solid #c9d2e2; background: #fff;
  flex: none; position: relative; }
.vk-cb.checked, .vk-cb.part { background: var(--blue); border-color: var(--blue); }
.vk-cb.checked::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }
.vk-cb.part::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px;
  background: #fff; margin-top: -1px; border-radius: 2px; }
.vk-folder { font-size: 12.5px; flex: none; }
.vk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-cnt { font-size: 11px; color: var(--text-3); flex: none; }
.vk-kids { padding-left: 24px; }
.vk-person { font-weight: 400; }
.vk-ava { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-soft); color: #5a6ee2;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.vk-pos { font-size: 11px; color: var(--text-3); flex: none; max-width: 92px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.vk-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vk-right-head { padding: 14px 18px 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.vk-sel { flex: 1; overflow: auto; padding: 0 12px 12px; }
.vk-sel-item { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.vk-sel-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text); display: flex;
  flex-direction: column; line-height: 1.35; }
.vk-sel-name i { font-style: normal; font-size: 11px; color: var(--text-3); }
.vk-del { border: 0; background: transparent; color: var(--text-3); font-size: 16px; line-height: 1;
  cursor: pointer; padding: 2px 7px; border-radius: 6px; }
.vk-del:hover { background: var(--danger-50); color: var(--danger); }
.vk-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-top: 1px solid var(--line-2); background: #fcfdff; }
.vk-foot .vk-tip { font-size: 11.5px; color: var(--text-3); margin-right: auto; }
.vk-empty { font-size: 12px; color: var(--text-3); padding: 12px; }
.vis-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vis-sum { font-size: 12.5px; color: var(--text-3); }
.vis-sum.on { color: var(--blue); font-weight: 600; }
@media (max-width: 720px) {
  .vk-box { height: 92vh; }
  .vk-body { flex-direction: column; }
  .vk-left { width: 100%; border-right: 0; border-bottom: 1px solid var(--line-2); max-height: 52%; }
}
