/* ===== 涌考 · AI 能力考核认证平台 设计系统 ===== */
:root {
  --primary: #1b66f0;
  --primary-dark: #0e3ea8;
  --primary-light: #63c0f5;
  --navy: #0a1f44;
  --navy-2: #122c5e;
  --bg: #f3f6fc;
  --card: #ffffff;
  --border: #e3e9f4;
  --text: #1c2434;
  --muted: #64748b;
  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 42, 100, 0.06), 0 6px 24px rgba(16, 42, 100, 0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px;
}
.container { max-width: 880px; margin: 0 auto; padding: 28px 20px; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 13px; }
a { color: var(--primary); text-decoration: none; }

/* ---- 卡片 ---- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ---- 按钮 ---- */
button {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: all 0.15s ease;
}
button:hover { background: var(--primary-dark); }
button:active { transform: scale(0.98); }
button.secondary {
  background: #fff; color: var(--text); border: 1px solid var(--border);
}
button.secondary:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
button.ghost { background: transparent; color: var(--muted); }
button.ghost:hover { background: rgba(27, 102, 240, 0.06); color: var(--primary); }
button.danger { background: var(--bad); }
button.danger:hover { background: #b91c1c; }
button:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; transform: none; }

/* ---- 表单 ---- */
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; margin-bottom: 12px; font-family: inherit; background: #fff;
  transition: border-color 0.15s; color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 102, 240, 0.12);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }

/* ---- 布局辅助 ---- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---- 顶栏 ---- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
  /* 顶栏比正文容器（880）宽一些：学员端导航有 7 个按钮，880 挤得「退出」会掉到第二行 */
  max-width: 1160px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.topbar-inner .brand-sub { white-space: nowrap; }
/* 后台是左侧导航布局，顶栏不居中：品牌钉到最左边，跟侧栏的图标列对齐 */
.topbar-inner.topbar-wide { max-width: none; padding-left: 24px; padding-right: 24px; }
/* 学员端首页同理（它也是左侧导航），但左内边距要 22px 不是 24px ——
   .stu-sidebar .nav-item 的横向内边距是 22，跟 .admin-sidebar 的 24 差 2px。
   跟着侧栏走，logo 才跟下面「首页」那一列真正对齐。 */
.topbar-inner.topbar-stu { max-width: none; padding-left: 22px; padding-right: 22px; }
/* 1100 以下先把导航按钮收紧，比直接换行好看；再窄才靠 640 那档隐藏品牌名 */
@media (max-width: 1100px) {
  .topbar-inner { gap: 8px; }
  .topbar-inner .row { gap: 2px; }
  .topbar-inner .row button { padding: 8px 10px; font-size: 13px; }
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; flex: 0 0 auto; }
.brand .brand-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.brand .brand-sub { font-size: 12px; color: var(--muted); }
/* 产品名固定挂在左上角：页名（brand-name）会被各页 JS 改写，所以品牌单独一块，
   中间加一道竖线分隔，窄屏时把品牌名和竖线收起来只留图标 */
.brand .brand-mark {
  font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: 1px;
  /* 头部横向挤的时候产品名会被折成两行，钉死不换行、不参与压缩 */
  white-space: nowrap; flex: 0 0 auto;
}
.brand .brand-div { width: 1px; height: 22px; background: var(--border); flex: 0 0 auto; }
@media (max-width: 640px) {
  .brand .brand-mark, .brand .brand-div { display: none; }
}

/* ---- 徽标 ---- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500; background: #e8f1ff; color: var(--primary);
}
.badge.warn { background: #fef3c7; color: var(--warn); }
.badge.ok { background: #dcfce7; color: var(--ok); }
.badge.bad { background: #fee2e2; color: var(--bad); }

/* ---- 表格 ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
tr:last-child td { border-bottom: none; }
.correct { color: var(--ok); }
.wrong { color: var(--bad); }
.hidden { display: none !important; }

/* ===== 登录页（浅底 + 居中一张卡，版式参考考试星） =====
   【原来是左右分屏，为什么改】左边 55% 的深蓝介绍栏在讲"这是什么平台"，
   把真正要用的账号密码挤到右半边。可来考试的人是被通知了才来的，不需要
   在登录页被推销一遍。现在整页只留一件事：填账号密码。
   【窄屏为什么不用再写一堆覆盖规则】分屏那版在窄屏要把左栏整块 display:none，
   还得把藏在里面的演示链接单独捞出来重新定位 —— 一层套一层的补丁。
   居中单卡天生就是响应式的，卡片缩到 100% 宽就完事。 */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  /* 【为什么不用纯 var(--bg) 平铺】纯色平铺配一张白卡太干，卡片边界发虚。
     顶部压一层极淡的蓝白渐变，跟考试星那个"上浅下更浅"的底一个意思。 */
  background: linear-gradient(180deg, #eef3fd 0%, var(--bg) 42%, #f7f9fe 100%);
}
/* 左上角小 logo。它只起"我没打错网址"的作用，所以要小、靠边、不抢重心。 */
.login-logo {
  position: absolute; top: 26px; left: 34px; line-height: 0;
  /* 【为什么给个内边距和负偏移】图片本身贴边的话，键盘 Tab 上来的焦点框
     会被裁在窗口外面看不见。留点余量让 outline 有地方画。 */
  padding: 6px; margin: -6px;
}
/* 【为什么是 52px 不是原来的 30px】logo.svg 的画布是 300×72，里面副标题
   「AI 能力考核认证平台」写的是 11px。按 30px 渲染等于整体缩到 41.7%，
   那行字实际只画出 4.6px —— 那不是"偏小"，是低于能看清的下限，
   所以在浅底上看着就是一条灰线。52px 让它落到 8px 上，能认出来了。
   【为什么不改 SVG 里的字号】把副标题单独调大就跟「涌考」两个字的比例失衡了，
   而这个 svg 是按 300×72 整体排的版。整体放大不动内部比例。 */
.login-logo img { height: 52px; width: auto; }
.login-logo:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
/* 卡片背后那圈光晕：纯白卡压在浅底上边界会发虚，垫一层略深的圆把卡托起来。
   纯装饰，所以 pointer-events:none —— 不然它盖在卡上，点击会被它吃掉。 */
.login-halo {
  position: absolute; left: 50%; top: 50%; width: 620px; height: 620px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(27,102,240,.055), transparent 68%);
}
.login-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  /* 上边留够 100px 是给左上角那个 logo 的：窄屏上 logo 是绝对定位的，
     不占高度，padding 少了卡片会顶到它上面去。 */
  padding: 100px 20px 48px; position: relative; z-index: 1;
}
.login-card {
  width: 100%; max-width: 440px; background: var(--card);
  border-radius: 18px; padding: 44px 48px 40px;
  /* 考试星那张卡是无边框纯阴影。这里给一道极淡的边：涌考的底色比考试星深一点，
     纯阴影在这个底上不够立得住。 */
  border: 1px solid rgba(227,233,244,.9);
  box-shadow: 0 2px 8px rgba(16,42,100,.04), 0 18px 48px rgba(16,42,100,.08);
}
/* 「学员，你好」那两行。考试星是两行同号加粗，这里让第一行略小、第二行是主标题 ——
   第一行是称呼（会随身份变），第二行才是这页在说什么。 */
.login-greet { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.5; }
.login-greet-sub {
  font-size: 20px; font-weight: 700; line-height: 1.5;
  margin: 0 0 4px; color: var(--text);
}
/* 机构名（后台 orgName）和 slogan：都是"读一下就好"的信息，压在标题下面小一号。
   两个都默认 hidden，后台配了才由 login.js 放出来。 */
/* 【.login-org / .login-slogan 删了】原来是打招呼下面那两行（机构名"云涌世纪"
   和后台配的欢迎语）。两行都从登录页去掉了，节点也删了，规则跟着删 ——
   留着就是下一个人查"这个 class 谁在用"的时间。 */
/* 打招呼和表单之间的距离：考试星那张卡这里空得很开（约 60px），
   留白本身在说"上面是招呼，下面才是要填的"。这里给 30px —— 涌考的卡比它矮，
   照抄 60 会让卡片下半截显得空。 */
.login-step { margin-top: 30px; }
.login-hint { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
/* 输入框改成考试星那种下划线式：只留底边一条线，聚焦时变蓝加粗。
   【为什么这一页要单独覆盖全局的圆角框】全局那套（style.css:57）是给管理端
   密集表单用的，一屏十几个框，有边框才分得清哪个是哪个。登录页只有两三个框，
   下划线更轻，视觉重心让给「登录」那个按钮。 */
.login-card input,
.login-card select {
  border: none; border-bottom: 1.5px solid var(--border);
  border-radius: 0; padding: 12px 2px; margin-bottom: 22px;
  background: transparent; font-size: 14.5px;
}
.login-card input:focus,
.login-card select:focus {
  /* 【为什么必须显式关掉 box-shadow】全局的 :focus 给了一圈 3px 光晕，
     那是配圆角框的。下划线框上会变成一条糊在底边的蓝雾。 */
  box-shadow: none; border-bottom-color: var(--primary); border-bottom-width: 2px;
}
.login-card input::placeholder { color: #9aa6b8; }
.login-card select { color: var(--text); }
/* 主按钮：整宽、比全局按钮高一点。这一页它是唯一的主行动。 */
.login-submit {
  width: 100%; padding: 13px; font-size: 15px; font-weight: 600;
  border-radius: 10px; margin-top: 10px;
}
/* 验证码那一行：输入框和「发送验证码」并排。
   输入框的 margin-bottom 归到整行上，不然两个元素各带一份底边距会错位。 */
.login-code-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.login-code-row input { flex: 1; min-width: 0; margin-bottom: 0; }
.login-code-row button {
  flex: none; white-space: nowrap; padding: 11px 14px; border-radius: 10px;
}
/* 「管理号和学员号是两个账号」那块黄底提示。
   原来这些颜色是写在 login.html 的 style 属性里的，搬到这儿 —— 内联样式改起来
   得翻 HTML，而且盖不住伪类。 */
.login-callout {
  font-size: 13px; line-height: 1.6; margin: 0 0 18px;
  padding: 11px 13px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #f0d9a0; color: #7a5b12;
}
/* 报错这一行。
   【为什么从"一行红字"改成带底色的框】线上真实踩到的：验证码过了 10 分钟有效期，
   点「注册并进入」后端返回「验证码已过期，请重新获取」，这行字确实写进去了 ——
   但用户报的是"点了没反应"。原因是它在按钮下面（login.html:131 在 #registerBtn 之后），
   注册表单有 6 个字段，手机上按钮本来就贴着屏幕底边，这行 13px 的细红字落在
   折线以下，人根本没往下看；加上 .catch(() => {}) 把异常吞了，控制台也是干净的
   —— 三样凑一起就完全等于按钮坏了。
   【为什么不干脆挪到按钮上面】按钮上面是 6 个输入框，报错插在那儿会把刚填的
   内容整体往下推一截，正在填的框会跳位。留在原位、把它做成看得见的块更稳。
   min-height 只在有内容时才撑开（:empty 收掉），否则空框会在卡底留一块灰。 */
.login-err {
  color: var(--bad); font-size: 13.5px; line-height: 1.6;
  margin-top: 14px; padding: 10px 13px; border-radius: 10px;
  background: #fef2f2; border: 1px solid #f5c2c2;
}
/* 没报错的时候整个收掉，不占位、不显框 */
.login-err:empty { display: none; }
/* 演示入口在卡片最底下，用一条分隔线跟表单隔开 —— 它不属于"要填的东西"。 */
#loginDemoLink {
  display: block; margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--primary); font-size: 13.5px; text-align: center;
}
#loginDemoLink:hover { color: var(--primary-dark); }
/* 说明文案在卡片外面下方，跟考试星那句「不知道什么是组织ID？」一个位置。 */
.login-foot {
  max-width: 440px; margin: 20px auto 0; text-align: center;
  color: var(--muted); font-size: 12.5px; line-height: 1.7;
}
/* 「‹ 换个身份」在卡片里紧贴 tab 上方 */
#backToRole { margin-bottom: 14px; }
.login-card .tabs { margin-bottom: 22px; }

@media (max-width: 560px) {
  /* 手机上卡片撑满、去掉边框阴影，看起来就是页面本身 —— 小屏上一张
     带边距的卡片会把可用宽度又切掉一截。 */
  .login-card {
    padding: 32px 22px 28px; border-radius: 14px;
    border-color: transparent; box-shadow: none; background: transparent;
  }
  .login-wrap { padding: 84px 16px 32px; }
  .login-logo { top: 20px; left: 20px; }
  /* 窄屏也得跟着放大：原来是 26px，副标题只剩 4px，等于一条脏边。
     42px 是这里放得下的上限（再大就顶到卡片了），副标题落在 6.4px ——
     窄屏上贴脸看，勉强能认。 */
  .login-logo img { height: 42px; }
  .login-halo { display: none; }
}

/* 身份选择（我是学员 / 我是管理员）。
   用 button 而不是 div，是为了键盘能 Tab 到、回车能触发 —— 客户的员工里
   有靠键盘操作的人，换成 div 就点不了。所以这里要把按钮的默认样式全覆盖掉。 */
.role-card {
  display: block; width: 100%; text-align: left;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.role-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(27,102,240,.12); }
.role-card:active { transform: translateY(1px); }
/* 键盘焦点必须看得见：默认 outline 被上面的 border 改动盖住了容易看不出来 */
.role-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.role-card .role-title { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.role-card .role-desc { display: block; font-size: 13px; color: var(--muted); }

/* 「‹ 换个身份」这类文字按钮 */
.link-btn {
  background: transparent; border: none; padding: 0;
  color: var(--muted); font-size: 13px; cursor: pointer;
}
.link-btn:hover { color: var(--primary); }

/* ===== 考试页 ===== */
.exam-topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.exam-topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.exam-topbar .title { font-size: 15px; font-weight: 600; color: var(--navy); }
.progress-track { height: 4px; background: var(--border); }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: width 0.3s ease;
}
.timer-pill {
  background: var(--navy); color: #fff; padding: 6px 16px; border-radius: 20px;
  font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600;
}
.timer-pill.urgent { background: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.75; } }

.exam-layout {
  max-width: 1080px; margin: 0 auto; padding: 24px 20px;
  display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start;
}
@media (max-width: 820px) { .exam-layout { grid-template-columns: 1fr; } }

/* 答题卡 */
.palette-card { position: sticky; top: 76px; }
.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.palette-btn {
  aspect-ratio: 1; padding: 0; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--muted); border: 1.5px solid var(--border);
}
.palette-btn:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.palette-btn.answered { background: #e8f1ff; color: var(--primary); border-color: #bcd6ff; }
.palette-btn.current { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,102,240,0.15); color: var(--primary); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.legend .l-a { background: #e8f1ff; border: 1px solid #bcd6ff; }
.legend .l-u { background: #fff; border: 1px solid var(--border); }

/* 题目卡（一屏一题） */
.q-card { padding: 30px 32px; }
.q-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.q-num { font-size: 13px; font-weight: 600; color: var(--primary); }
.q-text { font-size: 18px; font-weight: 600; line-height: 1.7; margin-bottom: 22px; }
.q-text .pts { font-size: 13px; font-weight: 400; color: var(--muted); }
.option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 10px;
  cursor: pointer; transition: all 0.12s ease; background: #fff; user-select: none;
}
.option:hover { border-color: var(--primary-light); background: #f7fbff; }
.option.selected { border-color: var(--primary); background: #e8f1ff; }
.option .key {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--muted); margin-top: 1px;
}
.option.selected .key { background: var(--primary); color: #fff; }
.q-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 10px; }

/* 弹层 */
.overlay {
  position: fixed; inset: 0; background: rgba(10, 31, 68, 0.66);
  backdrop-filter: blur(3px); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.overlay .card { max-width: 500px; width: 100%; padding: 28px; margin: 0; }
.overlay .card h2 { font-size: 19px; }

/* ===== 成绩页 ===== */
.score-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, var(--primary-dark) 100%);
  color: #fff; border: none;
}
.score-hero .muted { color: rgba(255, 255, 255, 0.66); }
.score-ring {
  width: 120px; height: 120px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.score-ring .inner {
  width: 96px; height: 96px; border-radius: 50%; background: var(--navy-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring .num { font-size: 32px; font-weight: 700; line-height: 1.1; }
.score-ring .cap { font-size: 11px; color: rgba(255,255,255,0.6); }
.explain {
  background: #f6f9ff; border-left: 3px solid var(--primary-light);
  border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 13px; margin-top: 10px;
}

/* ===== 管理后台 ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs button { background: transparent; color: var(--muted); border-radius: 10px; padding: 8px 16px; }
.tabs button:hover { background: rgba(27,102,240,0.07); color: var(--primary); }
.tabs button.active { background: var(--navy); color: #fff; }

/* ===== 图表组件（后台报表 / 我的成长） ===== */
.bar-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.bar-name { flex: none; width: 64px; font-size: 13px; color: var(--muted); text-align: right; }
.bar-track { flex: 1; height: 18px; background: var(--bg); border-radius: 9px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 9px; transition: width 0.4s ease; }
.bar-fill.ok { background: linear-gradient(90deg, #6ee7a0, var(--ok)); }
.bar-fill.bad { background: linear-gradient(90deg, #fca5a5, var(--bad)); }
.bar-fill.brand { background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.bar-pass { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--navy); opacity: 0.45; z-index: 2; }
.bar-row b { flex: none; width: 36px; font-variant-numeric: tabular-nums; }
.picks { margin-top: 4px; font-size: 12.5px; }
.picks summary { color: var(--primary); cursor: pointer; font-size: 12px; }
.picks div { padding: 1px 0 1px 10px; }

/* 趋势图（SVG 容器） */
.trend-wrap { overflow-x: auto; }
.trend-svg { width: 100%; min-width: 320px; height: 200px; display: block; }
.trend-svg text { font-size: 11px; fill: var(--muted); }
.trend-svg .pt-label { font-size: 12px; font-weight: 600; fill: var(--navy); }

/* ===== 题库 / 组卷 ===== */
.bank-layout { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .bank-layout { grid-template-columns: 1fr; } }

/* 分类树 */
.cat-tree { font-size: 14px; }
.cat-tree ul { list-style: none; margin: 0; padding-left: 14px; }
.cat-tree > ul { padding-left: 0; }
.cat-node {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px;
  cursor: pointer; transition: background 0.12s;
}
.cat-node:hover { background: rgba(27, 102, 240, 0.07); }
.cat-node.active { background: #e8f1ff; color: var(--primary); font-weight: 600; }
.cat-node .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-node .c { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-node.active .c { color: var(--primary); }
.cat-node .act { flex: none; display: none; gap: 2px; }
.cat-node:hover .act { display: flex; }
.cat-node .act span { padding: 0 3px; font-size: 12px; color: var(--muted); }
.cat-node .act span:hover { color: var(--primary); }

/* 题目列表 */
.q-list { display: flex; flex-direction: column; gap: 10px; }
.q-item {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff;
  transition: border-color 0.12s;
}
.q-item:hover { border-color: var(--primary-light); }
.q-item.picked { border-color: var(--primary); background: #f7fbff; }
.q-item .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.q-item .stem { font-size: 14.5px; line-height: 1.6; }
.q-item .opts { margin-top: 8px; font-size: 13px; color: var(--muted); }
.q-item .opts .o { padding: 1px 0; }
.q-item .opts .o.right { color: var(--ok); font-weight: 600; }
.q-item .ft { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.q-item .ft button { padding: 5px 12px; font-size: 13px; }
.tag-chip {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px;
  background: #eef2fb; color: var(--muted); margin-right: 4px;
}
.qid-chip { font-size: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }

/* 筛选条 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { margin-bottom: 0; width: auto; min-width: 120px; padding: 8px 12px; }
.filters .grow { flex: 1; min-width: 160px; }

/* 分页 */
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.pager button { padding: 6px 14px; font-size: 13px; }
.pager .info { font-size: 13px; color: var(--muted); }

/* 组卷篮子 */
.basket { position: sticky; top: 76px; }
.basket-list { max-height: 300px; overflow-y: auto; margin: 10px 0; }
.basket-item {
  display: flex; gap: 8px; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.basket-item:last-child { border-bottom: none; }
.basket-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-item .x { flex: none; color: var(--muted); cursor: pointer; padding: 0 4px; }
.basket-item .x:hover { color: var(--bad); }
.basket-sum { font-size: 13px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--border); }

/* 组卷分组配置 */
.grp-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 90px 90px 34px; gap: 8px;
  align-items: center; margin-bottom: 8px;
}
.grp-row input, .grp-row select { margin-bottom: 0; padding: 8px 10px; font-size: 13px; }
.grp-row .del { background: transparent; color: var(--muted); padding: 4px; }
.grp-row .del:hover { color: var(--bad); background: transparent; }
@media (max-width: 760px) { .grp-row { grid-template-columns: 1fr 1fr; } }

/* 填空题输入 */
.fill-blank {
  display: inline-block; width: 150px; margin: 0 4px; padding: 5px 10px;
  border: none; border-bottom: 2px solid var(--primary); border-radius: 0;
  background: #f7fbff; font-size: 15px; text-align: center;
}
.fill-blank:focus { box-shadow: none; background: #e8f1ff; }
.fill-list { display: flex; flex-direction: column; gap: 10px; }
.fill-list .fl-row { display: flex; align-items: center; gap: 10px; }
.fill-list .fl-row label { flex: none; font-size: 14px; color: var(--muted); width: 54px; }
.fill-list .fl-row input { margin-bottom: 0; }

/* 多选提示 */
.multi-hint { font-size: 13px; color: var(--warn); margin-bottom: 12px; }
.option.multi .key { border-radius: 6px; }

/* 保存状态 */
.save-state { font-size: 12px; color: var(--muted); }
.save-state.saving { color: var(--warn); }
.save-state.saved { color: var(--ok); }
.save-state.failed { color: var(--bad); }

/* 错题本 */
.wb-opts { margin: 12px 0; }
.wb-opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 8px;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; transition: .15s;
}
.wb-opt:hover { border-color: var(--primary); background: rgba(27, 102, 240, .04); }
.wb-opt input { width: auto; margin: 0; flex: none; cursor: pointer; }
.wb-opt span { flex: 1; }
.wb-feedback:empty { display: none; }
.wb-feedback .explain { margin-top: 12px; }

/* 学习包阅读页 */
.study-body h1 { font-size: 21px; margin: 18px 0 10px; }
.study-body h2 { font-size: 18px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.study-body h3 { font-size: 15.5px; margin: 16px 0 8px; color: var(--navy); }
.study-body p { margin: 8px 0; }
.study-body ul { margin: 8px 0 8px 22px; }
.study-body li { margin: 4px 0; }
.study-body blockquote { background: #f6f9ff; border-left: 3px solid var(--primary-light); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 10px 0; font-size: 13.5px; }
.study-body code { background: #eef2fb; border-radius: 5px; padding: 1px 6px; font-size: 13px; }
.study-body hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.study-body .hl-target { background: #fef3c7; border-radius: 8px; padding: 2px 8px; }

/* ===== 管理后台首页仪表盘 ===== */
.admin-sidebar {
  width: 190px;
  background: #f8f9fc;
  border-right: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  color: #5a6c7d;
  transition: all 0.2s;
}

.nav-item:hover {
  background: #eef2f7;
  color: var(--navy);
}

.nav-item.active {
  background: #e8f1ff;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.admin-main {
  flex: 1;
  overflow-y: auto;
  background: #f4f7fa;
}

.admin-tab {
  padding: 24px;
}

.admin-tab.hidden {
  display: none;
}

.welcome-bar {
  background: linear-gradient(135deg, #5b7cff 0%, #7b93ff 100%);
  border-radius: 12px;
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(91, 124, 255, 0.25);
}

.welcome-bar h1 {
  font-size: 22px;
  margin: 0 0 20px;
  font-weight: 600;
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.qa-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.2s;
}

.qa-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.qa-icon {
  font-size: 18px;
}

.dashboard-grid {
  display: flex;
  gap: 24px;
}

.dash-left {
  flex: 1;
  min-width: 0;
}

.dash-right {
  width: 320px;
  flex-shrink: 0;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
  font-size: 16px;
  margin: 0 0 20px;
  color: var(--navy);
  font-weight: 600;
}

.stat-row {
  display: flex;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.stat-cards-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.mini-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mini-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.mini-value {
  font-size: 14px;
  color: var(--navy);
}

.mini-value b {
  font-size: 28px;
  font-weight: 700;
  display: block;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  font-size: 15px;
  margin: 0 0 16px;
  color: var(--navy);
  font-weight: 600;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f2f5;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: var(--muted);
}

.info-row span:last-child {
  color: var(--navy);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* 正在进行的考试卡片 */
.ongoing-item {
  background: #fafbfc;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.ongoing-item:last-child {
  margin-bottom: 0;
}

.ongoing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ongoing-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
}

.ongoing-links a {
  font-size: 12.5px;
  margin-left: 12px;
  color: var(--primary);
}

.ongoing-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

.ongoing-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}

.ongoing-live {
  font-size: 13px;
  color: var(--muted);
}

.ongoing-live b {
  font-size: 26px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.ongoing-stats {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
  border-left: 2px solid #e8eaed;
  padding-left: 14px;
}

.ongoing-stats b {
  color: var(--ok);
}

/* 二维码占位 */
#qrCode canvas, #qrCode img {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.qr-fallback {
  width: 150px;
  height: 150px;
  background: #f4f6f9;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
  margin: 0 auto;
}

/* ========== 侧边栏：对齐考试星结构 ========== */
.admin-sidebar { display: flex; flex-direction: column; position: relative; }
.nav-main { padding-top: 8px; }
.nav-more { padding: 20px 14px 8px; }
.nav-more-label { font-size: 12.5px; color: #a8adbb; margin-bottom: 10px; }
.nav-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-chip {
  padding: 7px 18px; background: #eef0f5; border-radius: 4px;
  font-size: 13.5px; color: #4a5060; cursor: pointer; user-select: none;
}
.nav-chip:hover { background: #e8f1ff; color: var(--primary); }
.nav-chip.active { background: #e8ebff; color: var(--primary); }
.nav-bottom { margin-top: auto; padding-bottom: 16px; }
.nav-bottom .nav-item { font-size: 13.5px; }

/* 悬浮二级菜单 */
.nav-submenu {
  position: absolute; left: 190px; z-index: 50; min-width: 180px;
  background: #fff; border-radius: 6px; padding: 14px 0 8px;
  box-shadow: 0 6px 24px rgba(20, 30, 60, 0.14);
}
.nav-submenu.hidden { display: none; }
.nav-submenu-title { font-size: 12.5px; color: #a8adbb; padding: 0 22px 10px; }
.nav-sub-item {
  padding: 11px 22px; font-size: 14px; color: #333a4d; cursor: pointer;
}
.nav-sub-item:hover { background: #f2f5ff; color: var(--primary); }
.nav-sub-item.active { background: #eef1ff; color: var(--primary); }

/* ========== 页头 + 工具栏 ========== */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 600; color: #1f2533; display: flex; align-items: center; gap: 12px; }
.page-title-div { color: #dde0e8; font-weight: 400; }
.page-sublink { font-size: 15px; font-weight: 400; color: #4a5060; text-decoration: none; }
.page-sublink:hover { color: var(--primary); }
.tag-new { font-size: 12px; color: #ff4d4f; font-weight: 600; }
.page-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-tools button { padding: 9px 18px; font-size: 14px; }

.search-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e3e6ee; background: #fff; border-radius: 6px; padding: 4px 12px;
}
.search-box input { border: none; outline: none; padding: 5px 2px; width: 170px; font-size: 14px; background: transparent; }
.search-box a { font-size: 14px; color: var(--primary); text-decoration: none; white-space: nowrap; }
.search-box a.muted-link { color: #6b7280; }

/* 顶部二级 tab（阅卷中心 / 统计分析） */
.sub-tab {
  font-size: 18px; font-weight: 500; color: #6b7280; cursor: pointer;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.sub-tab + .sub-tab { margin-left: 4px; }

/* ========== 表格（考试星风格：白底 / 浅灰表头 / 细分隔线） ========== */
.table-wrap { background: #fff; border-radius: 8px; overflow-x: auto; box-shadow: 0 1px 3px rgba(20,30,60,.05); }
.ks-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ks-table thead th {
  background: #f7f8fb; color: #4a5060; font-weight: 500; text-align: left;
  padding: 15px 16px; white-space: nowrap; border-bottom: 1px solid #edeff4;
}
.ks-table tbody td {
  padding: 15px 16px; color: #333a4d; border-bottom: 1px solid #f2f4f8; white-space: nowrap;
}
.ks-table tbody tr:hover { background: #fafbff; }
.ks-table .col-check { width: 44px; }
.ks-table .empty-row td { text-align: center; color: var(--muted); padding: 48px 0; }
.row-actions { display: flex; gap: 14px; }
.row-actions a { color: var(--primary); text-decoration: none; font-size: 13.5px; }
.row-actions a:hover { text-decoration: underline; }
.badge-status { padding: 2px 9px; border-radius: 3px; font-size: 12.5px; }
.badge-status.on { background: #e8f7ee; color: #17a34a; }
.badge-status.off { background: #f2f3f6; color: #6b7280; }

/* 表格底部 */
.table-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 4px; font-size: 13.5px; color: #6b7280;
}
.page-size { padding: 7px 10px; border: 1px solid #e3e6ee; border-radius: 5px; background: #fff; font-size: 13.5px; }
.chk-inline { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pager { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pager button {
  min-width: 32px; padding: 6px 9px; font-size: 13.5px;
  background: #fff; color: #4a5060; border: 1px solid #e3e6ee;
}
.pager button.active { background: #fff; color: var(--primary); border-color: var(--primary); }
.goto input { width: 48px; padding: 6px; text-align: center; border: 1px solid #e3e6ee; border-radius: 5px; }

/* ========== 左分类树 + 右主区 ========== */
.split-layout { display: flex; gap: 16px; align-items: flex-start; }
.tree-panel {
  width: 300px; flex: none; background: #fff; border-radius: 8px;
  min-height: 460px; box-shadow: 0 1px 3px rgba(20,30,60,.05);
}
.tree-panel-head {
  padding: 18px 20px; font-size: 16px; color: #333a4d;
  border-bottom: 1px solid #f2f4f8; display: flex; justify-content: space-between;
}
.gear { color: #a8adbb; cursor: pointer; }
.tree-search { padding: 14px 16px 4px; }
.tree-search input { width: 100%; padding: 8px 10px; border: 1px solid #e3e6ee; border-radius: 5px; font-size: 13.5px; }
.tree-body { padding: 12px 8px 20px; }
.tree-node {
  padding: 10px 14px; font-size: 14px; color: #333a4d;
  border-radius: 5px; cursor: pointer; display: flex; gap: 6px;
}
.tree-node:hover { background: #f4f6fb; }
.tree-node.active { background: #eef1ff; color: var(--primary); }
.tree-node .cnt { color: #a8adbb; font-size: 13px; }
.split-main { flex: 1; min-width: 0; }

/* 筛选栏（试卷库） */
.filter-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(20,30,60,.05);
}
.filter-row input { padding: 9px 12px; border: 1px solid #e3e6ee; border-radius: 5px; font-size: 13.5px; min-width: 200px; }
.filter-row button { padding: 9px 20px; font-size: 14px; }

/* 试卷卡片 */
.paper-card {
  background: #fff; border-radius: 8px; padding: 20px 24px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(20,30,60,.05);
}
.paper-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.paper-card-title { font-size: 19px; font-weight: 600; color: #1f2533; }
.paper-card-nums { font-size: 14px; color: #4a5060; display: flex; gap: 14px; align-items: center; }
.paper-card-nums i { color: #dde0e8; font-style: normal; }
.paper-card-meta { margin-top: 10px; font-size: 13.5px; color: #6b7280; }
.paper-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.paper-card-ops { display: flex; gap: 18px; }
.paper-card-ops a { color: #4a5060; text-decoration: none; font-size: 13.5px; }
.paper-card-ops a:hover { color: var(--primary); }

/* 空态页 / 空态提示 */
.empty-page { background: #fff; border-radius: 8px; padding: 80px 24px; text-align: center; }
.empty-hint { padding: 100px 24px; text-align: center; color: #b6bac6; font-size: 17px; line-height: 2; }

/* 指挥中心：深色考试全景入口 */
.panorama {
  background: #1e2233; border-radius: 8px; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.panorama-box { text-align: center; color: #e8eaf2; max-width: 420px; width: 100%; padding: 24px; }
.panorama-box h2 { font-size: 22px; margin-bottom: 8px; color: #fff; }
.panorama-box .muted { color: #8b90a3; }
.panorama-select {
  width: 100%; margin-top: 22px; padding: 11px 14px; font-size: 14px;
  background: #2a2f45; color: #e8eaf2; border: 1px solid #3a4058; border-radius: 6px;
}

/* ========== 宽版弹窗（选择考试 / 选择学员，对齐 9-10.png） ========== */
.overlay .card.wide { max-width: 1030px; }
.modal-title { text-align: center; font-size: 21px; font-weight: 600; color: #1f2533; margin-bottom: 26px; }
.modal-form {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px 26px; margin-bottom: 22px;
}
.modal-field { display: flex; align-items: center; gap: 10px; }
.modal-field label { flex: none; width: 58px; text-align: right; font-size: 14px; color: #4a5060; }
.modal-field input, .modal-field select {
  flex: 1; min-width: 0; padding: 9px 11px; font-size: 13.5px;
  border: 1px solid #e3e6ee; border-radius: 5px; background: #fff;
}
.modal-field select { background: #f7f8fb; }
.modal-actions { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }
.modal-divider { border-bottom: 2px solid var(--primary); margin: 4px 0 8px; }
.modal-table-wrap { max-height: 320px; overflow: auto; }
.modal-foot { display: flex; justify-content: center; gap: 14px; padding-top: 20px; }




/* ---------- 首页趋势图 ---------- */
.trend-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; flex-wrap:wrap; gap:8px; }
.trend-tab, .trend-range {
  border:1px solid #e3e6eb; background:#fff; color:#4a5060; cursor:pointer;
  font-size:12.5px; padding:4px 11px; border-radius:4px; margin-right:6px;
}
.trend-tab:hover, .trend-range:hover { border-color:#5b7cff; color:#5b7cff; }
.trend-tab.active, .trend-range.active { background:#5b7cff; border-color:#5b7cff; color:#fff; }
#trendCanvas { width:100%; max-width:640px; height:220px; }
.trend-legend { font-size:12.5px; color:#6b7280; margin-top:6px; }
.trend-legend .dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
#qrCanvas { display:block; image-rendering:pixelated; }

/* ---------- 分页器 ---------- */
.pager { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.pager button {
  min-width:30px; height:28px; padding:0 8px; border:1px solid #e3e6eb; background:#fff;
  color:#4a5060; font-size:12.5px; border-radius:4px; cursor:pointer;
}
.pager button:hover:not(:disabled) { border-color:#5b7cff; color:#5b7cff; }
.pager button.active { background:#5b7cff; border-color:#5b7cff; color:#fff; }
.pager button:disabled { color:#c3c8d1; cursor:not-allowed; }
.pager .pager-gap { color:#9ca3af; padding:0 2px; }
.pager .pager-info { color:#9ca3af; font-size:12px; margin-left:8px; }

/* ---------- 进度条 ---------- */
.prog { height:5px; background:#eef0f3; border-radius:3px; overflow:hidden; margin:4px 0 2px; min-width:70px; }
.prog i { display:block; height:100%; background:#5b7cff; border-radius:3px; }

/* ---------- 在线指示 ---------- */
.dot-on, .dot-off { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; }
.dot-on { background:#22a06b; box-shadow:0 0 0 2px rgba(34,160,107,.18); }
.dot-off { background:#c3c8d1; }

/* ---------- 广播 ---------- */
.bc-input {
  width:100%; border:1px solid #e3e6eb; border-radius:4px; padding:8px 10px;
  font-size:13.5px; font-family:inherit; resize:vertical; box-sizing:border-box;
}
.bc-input:focus { outline:none; border-color:#5b7cff; }
.bc-history { max-height:220px; overflow:auto; }
.bc-item { border-left:3px solid #5b7cff; background:#f7f9fc; padding:8px 12px; margin-bottom:8px; border-radius:0 4px 4px 0; }
.bc-text { font-size:13.5px; color:#2c3038; }
.bc-meta { font-size:12px; color:#9ca3af; margin-top:4px; }

/* ---------- 监考详情：抓拍墙 ---------- */
.modal-sec-title { font-size:13.5px; font-weight:600; color:#2c3038; margin:12px 0 8px; }
/* 固定 120px 一列自动铺：一场考试抓拍张数不定，写死列数会在人多时溢出 */
.snap-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));
  gap:10px; max-height:300px; overflow:auto;
}
.snap-cell { margin:0; }
.snap-cell img {
  width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:4px;
  border:1px solid #e3e6eb; cursor:zoom-in; display:block; background:#f2f4f7;
}
.snap-cell figcaption { font-size:11px; color:#9ca3af; margin-top:3px; text-align:center; }

/* ---------- 指挥中心全景 ---------- */
#panoramaView { padding:4px 0 20px; }
.pano-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.pano-title { font-size:16px; font-weight:600; color:#2c3038; }
.pano-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px; margin-bottom:14px; }
.pano-kpi { background:#1f2430; border-radius:6px; padding:16px 14px; text-align:center; }
.pano-kpi-num { font-size:26px; font-weight:600; color:#7fa0ff; line-height:1.2; }
.pano-kpi-label { font-size:12.5px; color:#9aa3b2; margin-top:4px; }
.pano-panel { background:#fff; border:1px solid #e9ecf1; border-radius:6px; padding:14px 16px; margin-bottom:14px; }
.pano-panel-title { font-size:14px; font-weight:600; color:#2c3038; margin-bottom:10px; }
.pano-tag { font-size:12px; font-weight:400; color:#5b7cff; background:#eef2ff; padding:2px 8px; border-radius:10px; margin-left:6px; }
.pano-focus-row { display:flex; gap:24px; flex-wrap:wrap; }
.pano-focus-row > div { text-align:center; }
.pano-focus-row b { display:block; font-size:22px; color:#2c3038; }
.pano-focus-row span { font-size:12.5px; color:#9ca3af; }
.pano-focus-row .risky b { color:#e5484d; }
.pano-acts { margin-top:12px; display:flex; gap:8px; }
.pano-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:1100px) { .pano-grid { grid-template-columns:1fr; } }
.pano-live-item { border-left:3px solid #22a06b; background:#f6faf8; padding:8px 12px; margin-bottom:8px; border-radius:0 4px 4px 0; }
.pano-live-title { font-size:13.5px; color:#2c3038; font-weight:500; }
.pano-live-meta { font-size:12px; color:#6b7280; margin-top:3px; }
.pano-chips { display:flex; flex-wrap:wrap; gap:8px; }
.pano-chip { background:#f2f4f8; border-radius:14px; padding:4px 12px; font-size:12.5px; color:#4a5060; }
.pano-chip span { color:#9ca3af; margin-left:6px; font-size:11.5px; }
.pano-empty { color:#9ca3af; font-size:13px; padding:8px 0; margin:0; }

/* ---------- 大题分析热力图 ---------- */
.heat-table td.heat { text-align:center; font-size:12.5px; }
td.heat.h0 { color:#c3c8d1; }
td.heat.h1 { background:#fde8e8; color:#b42318; }
td.heat.h2 { background:#fdf0e0; color:#a95c17; }
td.heat.h3 { background:#fdf9e0; color:#8a7215; }
td.heat.h4 { background:#e8f5ec; color:#227a4b; }
td.heat.h5 { background:#d5efe0; color:#1a6b41; }
.heat-legend { margin-top:10px; font-size:12px; color:#6b7280; display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.heat-legend .heat { display:inline-block; width:14px; height:12px; border-radius:2px; margin-left:10px; }
.heat-legend .heat.h1 { background:#fde8e8; }
.heat-legend .heat.h2 { background:#fdf0e0; }
.heat-legend .heat.h3 { background:#fdf9e0; }
.heat-legend .heat.h4 { background:#e8f5ec; }
.heat-legend .heat.h5 { background:#d5efe0; }
.mini-sub { font-size:11.5px; color:#9ca3af; margin-top:2px; }

/* ---------- 试题分析选项分布 ---------- */
.pick-row { display:flex; align-items:center; gap:6px; margin-bottom:4px; font-size:12px; }
.pick-key { min-width:28px; text-align:center; border-radius:3px; padding:1px 4px; font-weight:600; }
.pick-key.ok { background:#e8f5ec; color:#227a4b; }
.pick-key.no { background:#fde8e8; color:#b42318; }
.pick-key.na { background:#f2f4f8; color:#9ca3af; }
.pick-bar { flex:0 0 70px; height:6px; background:#eef0f3; border-radius:3px; overflow:hidden; }
.pick-bar i { display:block; height:100%; border-radius:3px; }
.pick-bar i.ok { background:#22a06b; }
.pick-bar i.no { background:#e5484d; }
.pick-num { color:#6b7280; white-space:nowrap; }
.pick-text { color:#9ca3af; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; }

/* ---------- 题目预览 ---------- */
.pv-stem { font-size:14px; color:#2c3038; line-height:1.7; margin:4px 0 12px; white-space:pre-wrap; }
.pv-opts { margin-bottom:12px; }
.pv-opt { border:1px solid #e9ecf1; border-radius:4px; padding:8px 12px; margin-bottom:6px; font-size:13.5px; color:#4a5060; }
.pv-opt.right { border-color:#22a06b; background:#f6faf8; color:#1a6b41; }
.pv-tag { font-size:11.5px; color:#22a06b; margin-left:8px; }
.pv-line { font-size:13px; color:#4a5060; line-height:1.7; margin-bottom:6px; }

/* ---------- 考生端监考通知 ---------- */
.ann-box { position:fixed; right:20px; top:20px; z-index:9999; width:280px; display:flex; flex-direction:column; gap:10px; }
.ann-item {
  background:#fff; border:1px solid #ffd8a8; border-left:4px solid #f0883e;
  border-radius:5px; padding:10px 12px; box-shadow:0 4px 14px rgba(0,0,0,.12);
  animation:annIn .22s ease-out;
}
@keyframes annIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }
.ann-head { font-size:12.5px; font-weight:600; color:#b45309; display:flex; justify-content:space-between; align-items:center; }
.ann-close { cursor:pointer; color:#9ca3af; font-size:16px; line-height:1; padding:0 2px; }
.ann-close:hover { color:#4a5060; }
.ann-text { font-size:13.5px; color:#2c3038; line-height:1.6; margin-top:5px; white-space:pre-wrap; word-break:break-word; }
.ann-time { font-size:11.5px; color:#9ca3af; margin-top:4px; }

/* ---------- 使用场景选择 ---------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.scene-card {
  background: #fff;
  border: 2px solid #e8ebf2;
  border-radius: 12px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.scene-card:hover { border-color: #b9c3dd; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.scene-card.on { border-color: var(--primary); box-shadow: 0 3px 12px rgba(22,119,255,.12); }
.scene-card h4 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.scene-card .scene-cur { font-size: 12px; color: var(--primary); border: 1px solid var(--primary); border-radius: 3px; padding: 0 5px; }
.scene-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.scene-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.scene-meta span { font-size: 12px; background: #f2f5fb; color: #4b5563; border-radius: 3px; padding: 2px 7px; }

/* ---------- 系统设置表单 ---------- */
.set-group {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  margin-bottom: 16px;
}
.set-group > h4 {
  margin: 0 0 4px;
  font-size: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f6;
}
.set-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed #eef1f6;
}
.set-item:last-child { border-bottom: none; }
.set-label { width: 190px; flex: none; font-size: 14px; padding-top: 6px; }
.set-ctl { flex: none; width: 230px; }
.set-ctl input[type=text], .set-ctl input[type=number], .set-ctl select {
  width: 100%; padding: 7px 10px; border: 1px solid #e3e6ee;
  border-radius: 5px; font-size: 13.5px;
}
.set-effect { flex: 1; font-size: 12.5px; color: var(--muted); line-height: 1.7; padding-top: 7px; }
.set-effect b { color: #4b5563; font-weight: 600; }
.set-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding-top: 5px; }
.set-switch input { width: 15px; height: 15px; cursor: pointer; }
.set-switch span { font-size: 13.5px; }
.set-dirty { color: #d97706; font-size: 12px; margin-left: 6px; }
@media (max-width: 900px) {
  .set-item { flex-wrap: wrap; gap: 8px; }
  .set-label, .set-ctl { width: 100%; }
}

/* ============ 学员端布局（对齐考试星：左导航 + 主区 + 右栏） ============ */
/* 学员端和后台共用 .admin-sidebar 那套导航样式，这里只补学员端特有的骨架 */
.stu-layout { display: flex; min-height: calc(100vh - 64px); }
.stu-sidebar {
  width: 180px; background: #fff; border-right: 1px solid var(--border);
  padding: 16px 0; flex-shrink: 0; display: flex; flex-direction: column;
}
.stu-sidebar .nav-item { padding: 12px 22px; }

/* 侧栏底部的「使用演示」入口。
   margin-top:auto 把它顶到最下面 —— .stu-sidebar 本来就是 flex column，
   所以不用给它定位，导航项多一条少一条都不影响它贴底。
   【为什么跟功能项拉开距离并加一条分隔线】它不是功能，是"不会用的时候点的"。
   紧贴在「证书」下面，第一次登录的人会以为又是一个要学的模块。 */
.nav-help { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--border); }
.nav-demo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 10px 11px; border-radius: 10px; background: #f2f7ff;
  border: 1px solid #d9e6ff; color: var(--text);
}
.nav-demo:hover { background: #e8f0ff; border-color: var(--primary); }
.nav-demo-ico {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center; padding-left: 2px;
}
.nav-demo b { display: block; font-size: 13px; font-weight: 600; }
.nav-demo i { font-style: normal; font-size: 11.5px; color: var(--muted); }

.stu-main { flex: 1; min-width: 0; padding: 20px 24px; }
/* 右栏定宽，主区自适应；窄屏时右栏整体落到主区下面 */
.stu-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.stu-right { display: flex; flex-direction: column; gap: 16px; }

/* 欢迎横幅 */
.stu-hero {
  border-radius: var(--radius); padding: 34px 36px; margin-bottom: 22px;
  background: linear-gradient(115deg, #dfe8ff 0%, #eef2ff 42%, #e6ecff 100%);
  position: relative; overflow: hidden;
}
.stu-hero::after {
  content: ''; position: absolute; right: -40px; bottom: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.85), rgba(160,190,255,.35) 60%, transparent 70%);
}
.stu-hero h1 { font-size: 30px; color: #1e3a8a; margin: 0 0 8px; letter-spacing: 1px; }
.stu-hero p { margin: 0; color: #5b6b91; font-size: 13.5px; }

/* 区块标题（进行中的考试 / 待办 …） */
.stu-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 14px;
}
.stu-sec-head h2 { font-size: 17px; margin: 0; color: var(--text); }
.stu-sec-more { font-size: 13px; color: var(--muted); cursor: pointer; }
.stu-sec-more:hover { color: var(--primary); }

/* 考试卡片：封面 + 信息区 + 右下角按钮 */
.stu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.stu-exam-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.stu-exam-card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(16,42,100,.12); }
.stu-exam-card.hl { border-color: var(--primary); }
.stu-cover {
  height: 132px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f7d9a8 0%, #cfd7fb 40%, #a9c3f7 75%, #dcd0f5 100%);
}
.stu-cover-txt { font-size: 26px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: 3px; }
.stu-cover-badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 4px;
  font-size: 12px; background: rgba(255,255,255,.92); color: var(--primary);
}
.stu-cover-badge.warn { color: var(--warn); }
.stu-cover-badge.bad { color: var(--bad); }
.stu-cover-badge.ok { color: var(--ok); }
.stu-card-body { padding: 14px 16px 16px; }
.stu-card-title {
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stu-card-line { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.stu-card-line b { color: var(--text); font-weight: 500; }
.stu-card-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* 右栏：个人卡 */
.stu-me {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px 16px; text-align: center; box-shadow: var(--shadow);
}
.stu-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #6f7ffb 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 600;
}
.stu-greet { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.stu-greet b { color: var(--primary); }
.stu-greet-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.stu-me-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stu-me-num { background: #f5f8ff; border-radius: 8px; padding: 10px 4px; }
.stu-me-num .lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.stu-me-num .val { font-size: 18px; font-weight: 600; color: var(--text); }
/* 证书是预留位，灰掉表示还没开放，别让人以为坏了 */
.stu-me-num.off .val { color: #b6bdcc; }

/* 右栏：公告栏 / 排行榜 通用外壳 */
.stu-panel { border-radius: var(--radius); padding: 16px 18px; border: 1px solid transparent; }
.stu-panel.ann { background: linear-gradient(160deg, #fff0ef 0%, #fff7f6 100%); border-color: #fbdedb; }
.stu-panel.rank { background: linear-gradient(160deg, #fff8e6 0%, #fffdf6 100%); border-color: #f6e6bd; }
.stu-panel-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--text);
}
.stu-panel-head .more { margin-left: auto; font-size: 13px; color: #b0b6c4; cursor: pointer; }
.stu-panel-head .more:hover { color: var(--primary); }
.stu-panel-empty { text-align: center; color: #a8aebb; font-size: 13px; padding: 14px 0; }

/* 公告条目 */
.stu-ann-item { padding: 8px 0; border-top: 1px dashed #f3d9d6; }
.stu-ann-item:first-of-type { border-top: 0; }
.stu-ann-text { font-size: 13px; color: var(--text); line-height: 1.6; }
.stu-ann-meta { font-size: 11.5px; color: #a9a3a2; margin-top: 3px; }

/* 排行榜条目 */
.stu-rank-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.stu-rank-item.me { background: #fff4d6; border-radius: 6px; padding: 7px 8px; margin: 0 -8px; }
.stu-rank-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: #e7eaf2; color: #7b8496;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
/* 前三名换金银铜，一眼能分出头部 */
.stu-rank-item:nth-of-type(1) .stu-rank-dot { background: #ffd76a; color: #7a5200; }
.stu-rank-item:nth-of-type(2) .stu-rank-dot { background: #dfe4ee; color: #5c6472; }
.stu-rank-item:nth-of-type(3) .stu-rank-dot { background: #f0c9a0; color: #7a4a1c; }
.stu-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-rank-pt { color: #d98324; font-weight: 600; }

/* 空态 */
.stu-empty {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 52px 20px; text-align: center; color: var(--muted); font-size: 14px;
}

@media (max-width: 1080px) {
  .stu-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .stu-sidebar { display: none; }
  /* 【侧栏在窄屏是整块隐藏的】所以「使用演示」也会跟着没了 ——
     手机上恰恰是最需要它的场景。顶栏那个 #demoTopBtn 只在窄屏出现，
     补上这个入口。改这段时别忘了两边是一对。 */
  #demoTopBtn { display: inline-flex !important; }
  .stu-main { padding: 14px; }
  .stu-hero { padding: 24px 20px; }
  .stu-hero h1 { font-size: 23px; }
}
