:root {
  /* 新设计系统：靛蓝主色 + 青绿辅色 + Slate 中性色阶（已对齐 redesign 原型） */
  /* —— 品牌主色阶梯 —— */
  --brand-50:#EEF2FF; --brand-100:#E0E7FF; --brand-200:#C7D2FE; --brand-300:#A5B4FC;
  --brand-400:#818CF8; --brand-500:#6366F1; --brand-600:#4F46E5; --brand-700:#4338CA; --brand-800:#3730A3;
  /* —— 成长/完成 青绿阶梯 —— */
  --teal-50:#ECFDF5; --teal-400:#2DD4BF; --teal-500:#14B8A6; --teal-600:#0D9488;
  /* —— 中性 slate 阶梯 —— */
  --slate-50:#F8FAFC; --slate-100:#F1F5F9; --slate-200:#E2E8F0; --slate-300:#CBD5E1;
  --slate-400:#94A3B8; --slate-500:#64748B; --slate-600:#475569; --slate-700:#334155;
  --slate-800:#1E293B; --slate-900:#0F172A;
  /* —— 语义色 —— */
  --success:#2BB673; --success-bg:#DCFCE7;
  --danger:#EF4444;  --danger-bg:#FEE2E2;
  --warning:#F59E0B; --warning-bg:#FEF3C7;
  --info:#4F46E5;    --info-bg:#E0E7FF;

  /* —— 语义别名（兼容旧引用，值不变） —— */
  --primary:var(--brand-600); --primary-dark:var(--brand-700); --primary-light:var(--brand-50);
  --accent:var(--teal-500);   --accent-soft:var(--teal-50);
  --bg:var(--slate-50); --bg-soft:var(--slate-100); --panel:#FFFFFF;
  --text:var(--slate-900); --text-soft:var(--slate-500); --border:var(--slate-200);

  /* —— 字号尺度（基准 16px：正文 16 / 辅助 14 / 微 12；标题 17→19→21→26→32→38，做到该大则大、该小则小） —— */
  --fs-xs:12px; --fs-sm:14px; --fs-base:16px; --fs-md:16px; --fs-lg:17px;
  --fs-xl:19px; --fs-2xl:21px; --fs-3xl:26px; --fs-4xl:32px; --fs-5xl:38px;
  /* —— 间距尺度(4px 基准) —— */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px;
  --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;
  /* —— 圆角 —— */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:20px; --r-pill:999px;
  /* —— 阴影/层级 —— */
  --sh-xs:0 1px 2px rgba(15,23,42,.04);
  --sh-sm:0 1px 3px rgba(15,23,42,.06),0 1px 2px rgba(15,23,42,.04);
  --sh-md:0 4px 12px rgba(15,23,42,.08);
  --sh-lg:0 12px 32px rgba(15,23,42,.12);
  --sh-xl:0 24px 60px rgba(15,23,42,.18);
  /* —— 动效 —— */
  --t-fast:120ms cubic-bezier(.4,0,.2,1); --t:200ms cubic-bezier(.4,0,.2,1); --t-slow:320ms cubic-bezier(.4,0,.2,1);

  /* —— 多主题支持：字体族 / 登录渐变 / 大阴影 / 标题字距（由 data-theme 覆盖） —— */
  --font-base:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --font-display:var(--font-base);
  --ls-display:0;
  --login-grad:linear-gradient(135deg,#4F46E5 0%,#6366F1 50%,#14B8A6 100%);
  --shadow-lg:0 12px 32px rgba(15,23,42,.12);

  /* —— 兼容别名 —— */
  --radius:var(--r-md); --shadow:var(--sh-xs);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.65;
}
/* 标题使用可切换的展示字体（衬线/几何），正文保持不变 */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: var(--ls-display); }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: var(--fs-base); }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--login-grad);
  padding: 20px;
}
.login-card {
  background: #fff; width: 400px; max-width: 100%; border-radius: 16px;
  padding: 40px 34px; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-logo .logo-badge {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.logo-img { width: auto; height: 38px; max-width: 200px; min-width: 0; flex: 0 1 auto; border-radius: 9px; object-fit: contain; background: #fff; padding: 3px; box-sizing: border-box; border: 1px solid var(--border); }
.login-card h1 { font-size: var(--fs-3xl); margin-bottom: 4px; }
.login-sub { color: var(--text-soft); font-size: 13px; margin-bottom: 26px; }
.login-hint {
  margin-top: 18px; font-size: 12px; color: var(--text-soft);
  background: var(--primary-light); border-radius: 8px; padding: 10px 12px; line-height: 1.8;
}
.login-hint b { color: var(--primary-dark); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px;
  background: #fbfcfe; transition: .15s; color: var(--text);
}
/* 选项行内的单选/多选框：恢复固有小尺寸，避免被上方 .field input 的 width:100% 在 flex 容器中撑大、挤占文本框空间 */
.field input[type="radio"], .field input[type="checkbox"] { width: auto; flex: 0 0 auto; }
/* 选项文本输入框：在 flex 行内正常撑满剩余空间（覆盖 .field input 的 width:100%） */
.field input.opt-input { width: auto; flex: 1 1 0%; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.field textarea { resize: vertical; min-height: 80px; }
/* 课程广场筛选控件（搜索框 / 分类下拉） */
.ctrl { padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; background: #fbfcfe; color: var(--text); transition: .15s; }
.ctrl:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.cat-filter-bar { gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border: none; border-radius: 9px; background: var(--primary); color: #fff;
  font-size: var(--fs-base); font-weight: 600; transition: .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.ghost:hover { background: var(--primary-light); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #d8445a; }
.btn.muted { background: #eef1f6; color: var(--text-soft); }
.btn.soft { background: var(--primary-light); color: var(--primary-dark); }
.btn.soft:hover { background: var(--brand-100); }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--r-sm); color: var(--text-soft); background: #fff; border: 1px solid var(--border); }
.btn-icon:hover { background: var(--slate-50); color: var(--primary); }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.brand .logo-badge { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
/* 左上角品牌 Logo：横向加宽成「长方形」样式，保持原始比例；max-width + 允许收缩，避免小屏溢出 */
.brand .logo-img { width: auto; height: 34px; max-width: 180px; min-width: 0; flex: 0 1 auto; border-radius: 9px; object-fit: contain; background:#fff; padding:3px; box-sizing:border-box; border:1px solid var(--border); }
.brand b { font-size: var(--fs-lg); flex: 0 0 auto; min-width: 0; }
.nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px;
  color: var(--text-soft); margin-bottom: 4px; cursor: pointer; font-size: var(--fs-base); transition: .12s;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.nav-item .ic { width: 18px; text-align: center; }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-soft); }
.sidebar-foot .uname { color: var(--text); font-weight: 600; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 5;
}
.topbar h2 { font-size: var(--fs-2xl); }
.content { padding: 26px; flex: 1; }

/* ---------- 通知铃铛（学员端） ---------- */
.notif-wrap { position: relative; flex: 0 0 auto; }
.notif-bell {
  position: relative; width: 40px; height: 40px; border: 1px solid var(--border); background: #fff;
  border-radius: 9px; font-size: 18px; cursor: pointer; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.notif-bell:hover { background: var(--primary-light); }
.notif-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; line-height: 18px;
  text-align: center; font-weight: 600;
}
.notif-panel {
  position: absolute; top: 48px; right: 0; width: 320px; max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.12));
  z-index: 50; padding: 6px;
}
.notif-item { padding: 10px 12px; border-radius: 9px; cursor: pointer; border-left: 3px solid transparent; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item.unread { border-left-color: var(--primary); background: var(--primary-light, rgba(94,124,255,.06)); }
.notif-title { font-weight: 600; font-size: 14px; color: var(--text); }
.notif-body { font-size: 13px; color: var(--text-soft); margin-top: 2px; line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--text-muted, #9aa0aa); margin-top: 4px; }
.notif-empty { padding: 22px 12px; text-align: center; color: var(--text-muted, #9aa0aa); font-size: 13px; }
.notif-foot { padding: 8px; border-top: 1px solid var(--border); text-align: right; }
/* 通知类型标签：按类别配色，便于学员一眼区分 */
.notif-tag { display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 999px; margin-bottom: 6px; font-weight: 600; }
.notif-tag.nt-retake { background: rgba(255,138,76,.14); color: #d9722a; }
.notif-tag.nt-online { background: rgba(94,124,255,.14); color: #4a5bd0; }
.notif-tag.nt-offline { background: rgba(34,167,120,.14); color: #1f9d6e; }
.notif-tag.nt-exam { background: rgba(235,87,87,.14); color: #cf4b4b; }
.notif-tag.nt-survey { background: rgba(153,102,255,.14); color: #7a4fd0; }

/* 移动端抽屉：汉堡按钮 + 遮罩（默认在桌面端隐藏） */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: 12px; flex: 0 0 auto;
  border: 1px solid var(--border); background: #fff; border-radius: 9px;
  font-size: 18px; color: var(--text);
}
.nav-toggle:active { background: var(--primary-light); }
.nav-overlay { display: none; }

/* ---------- 卡片 ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
/* 响应式网格：平板保留多列，手机单列（侧栏抽屉仍按 900px 触发，见下方） */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* 移动端：侧栏改为离屏抽屉，由 .nav-toggle 打开、.nav-overlay 关闭 */
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 40; height: 100vh; width: 230px;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(15,23,42,.25);
  }
  .sidebar.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4);
    z-index: 30; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
}

.stat { background: var(--panel); border:1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .num { font-size: 28px; font-weight: 700; color: var(--primary-dark); }
.stat .lbl { color: var(--text-soft); font-size: 13px; margin-top: 4px; }
.stat .ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* ---------- 学员端顶部统计卡：图标 + 数字/标签 横向排布 ---------- */
.stu-stats .stat { display: flex; align-items: center; gap: 14px; }
.stu-stats .stat .st { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.stu-stats .stat .num { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.stu-stats .stat .lbl { font-size: var(--fs-sm); margin-top: 0; white-space: nowrap; }

.card-hover:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.trend { font-size: 12px; font-weight: 600; }
.trend.up { color: var(--success); }
.trend.down { color: var(--danger); }

.course-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); transition:.15s; cursor:pointer; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,.1); }
.course-cover { position: relative; height: 120px; background: linear-gradient(135deg,#4F46E5,#14B8A6); display:flex; align-items:center; justify-content:center; color:#fff; font-size:34px; overflow:hidden; }
.course-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cover-preview { width:100%; height:120px; border:1px dashed var(--border); border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#f7f8fa; margin-bottom:8px; }
.cover-preview img { width:100%; height:100%; object-fit:cover; }
/* Logo 上传预览：完整适配预览区域、保持原始比例、不裁剪不溢出（区别于课程封面的 cover 填充） */
#logo-preview img { object-fit: contain; padding: 8px; background: #fff; }
.cover-empty { color: var(--text-soft); font-size:13px; }
/* 上传进度条 + 完成标志 */
.progress-wrap { display:flex; align-items:center; gap:8px; }
.progress-bar { flex:1; height:8px; background:#eef0f4; border-radius:6px; overflow:hidden; }
.progress-bar > span { display:block; height:100%; width:0; background:linear-gradient(135deg,#4F46E5,#14B8A6); border-radius:6px; transition:width .15s; }
.progress-pct { font-size:12px; color:var(--text-soft); width:38px; text-align:right; flex:none; }
.upload-status { margin-top:4px; }
.upload-done { font-size:13px; color:#16a34a; margin-top:4px; font-weight:600; }
.course-body { padding: 14px 16px; }
.course-body h4 { font-size: var(--fs-lg); line-height: 1.4; margin-bottom: 6px; }
.course-meta { color: var(--text-soft); font-size: var(--fs-sm); display:flex; gap:10px; }
.task-tag { display:inline-block; margin-top:6px; font-size:12px; color:var(--brand-600); background:var(--brand-50, #eef4ff); border:1px solid var(--brand-100, #dbe7ff); padding:2px 8px; border-radius:6px; }
/* 线下培训卡片专属：信息盒逐项 + 步骤徽章（无灰底，避免旧版「底部灰底」） */
.stu-task .ot-info { flex-direction: column; gap: 6px; align-items: stretch; }
.stu-task .ot-line { display: flex; gap: 8px; line-height: 1.6; }
.stu-task .ot-k { flex: 0 0 auto; color: var(--text-soft); font-weight: 600; white-space: nowrap; }
.stu-task .ot-v { color: var(--text); }
.ot-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-step { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-soft); background: #fff; }
.ot-step.done { color: var(--success); border-color: var(--success-bg); background: var(--success-bg); font-weight: 600; }
.ot-step.miss { color: #c0392b; border-color: #f1c2bd; background: #fdecea; font-weight: 600; }
.ot-step.warn { color: var(--warning, #b7791f); border-color: #f6e2b3; background: #fdf6e3; font-weight: 600; }
.course-cover .cat { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.88); color: #0f172a; font-size: var(--fs-xs); font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.course-cover .dur { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.88); color: #0f172a; font-size: var(--fs-xs); font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }

.badge { display:inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.blue { background: var(--primary-light); color: var(--primary-dark); }
.badge.green { background: #e4f7ee; color: var(--success); }
.badge.gray { background: #eef1f6; color: var(--text-soft); }
.badge.orange { background: #fdf0d5; color: var(--warning); }
.badge.gold { background: #fbf3d9; color: #a9802b; }
.badge.purple { background: #efe7ff; color: #6b3fb5; }
.badge.teal { background: var(--teal-50); color: var(--teal-600); }
.badge.amber { background: var(--warning-bg); color: #b45309; }

/* 通用：线下任务逐项（班级卡片内复用，不依赖 .stu-task 作用域） */
.ot-info { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ot-line { display: flex; gap: 8px; line-height: 1.6; align-items: baseline; }
.ot-k { flex: 0 0 auto; color: var(--text-soft); font-weight: 600; white-space: nowrap; }
.ot-v { color: var(--text); }

/* ---------- 新人任务规则卡片（onboarding 列表） ---------- */
.ob-grid { align-items: start; }
.ob-card { display: flex; flex-direction: column; }
.ob-head { display: flex; align-items: flex-start; gap: 12px; }
.ob-ic { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--teal-500)); }
.ob-title { flex: 1; min-width: 0; }
.ob-title h4 { font-size: var(--fs-lg); margin: 0 0 3px; }
.ob-dept { font-size: var(--fs-sm); color: var(--text-soft); }
.ob-courses { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.ob-due { font-size: 12px; color: var(--text-soft); }
/* 线下培训任务卡片：底部操作区统一排版
   结构：.ot-actions（四行）—— ①内容配置(2 等分) ②结果查看(2 等分) ③次操作(3 等分) ④危险操作(右对齐)
   ①②同宽对齐形成「试卷列 / 调查列」视觉对应关系；
   统一尺寸 34px、间距 8px、图标+文字、超长文案 ellipsis；同行卡片等高，按钮区底部对齐。 */
.ot-grid { align-items: stretch; }               /* 覆盖 .ob-grid 的 align-items:start，仅作用于线下培训列表 */
.ot-grid > .ot-card { display: flex; flex-direction: column; }  /* ot-card 亦被学员端复用，限定在本列表内才改布局 */
.ot-actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ot-acts { display: grid; gap: 8px; }
.ot-acts.main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ot-acts.result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ot-acts.sub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ot-act-del { display: flex; justify-content: flex-end; }

.btn.ot-act {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; min-height: 34px; padding: 0 10px;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; border-radius: var(--r-sm);
  background: #fff; color: var(--text-soft); border: 1px solid var(--border);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn.ot-act .ot-act-ic { flex: none; font-size: var(--fs-base); line-height: 1; }
.btn.ot-act .ot-act-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* 主操作：内容配置（靛蓝 / 青绿） */
.btn.ot-act.exam:hover   { background: var(--brand-50); border-color: var(--brand-200); color: var(--primary-dark); }
.btn.ot-act.survey:hover { background: var(--teal-50);  border-color: var(--teal-400);  color: var(--teal-600); }
/* 结果查看：与内容配置同列对齐，用实心底色区分「配置」与「查看」 */
.btn.ot-act.result { color: var(--text); }
.btn.ot-act.result.exam:hover   { background: var(--brand-50); border-color: var(--brand-300); color: var(--primary-dark); }
.btn.ot-act.result.survey:hover { background: var(--teal-50);  border-color: var(--teal-400);  color: var(--teal-600); }
/* 未配置试卷/调查时结果按钮置灰：保留占位以维持两列对齐，disabled 阻断点击 */
.btn.ot-act:disabled { opacity: .5; cursor: not-allowed; }
.btn.ot-act:disabled:hover { background: #fff; border-color: var(--border); color: var(--text-soft); }
/* 次操作：任务维护与签到运营（中性灰，弱一级） */
.btn.ot-act.plain { font-weight: 500; }
.btn.ot-act.plain:hover { background: var(--slate-50); border-color: var(--slate-300); color: var(--text); }
/* 危险操作：弱化红，独立一行右对齐 */
.btn.ot-act.del { min-height: 30px; padding: 0 12px; font-size: var(--fs-xs); font-weight: 500; color: var(--danger); border-color: #f3c7c7; }
.btn.ot-act.del:hover { background: var(--danger-bg); border-color: var(--danger); color: #b91c1c; }
.btn.ot-act.del:hover .ot-act-tx { color: #b91c1c; }

@media (max-width: 420px) {
  .ot-acts.main, .ot-acts.result, .ot-acts.sub { grid-template-columns: minmax(0, 1fr); }  /* 极窄屏改为纵向满宽排列 */
}

.section-title { font-size: var(--fs-xl); line-height: 1.4; font-weight: 700; margin: 4px 0 16px; display:flex; align-items:center; justify-content:space-between; }
/* 成员数量等说明性行：与正文保持一致（14px / 常规字重 / 正常字距），不再使用大号加粗的 section-title */
.count-line { font-size: var(--fs-base); font-weight: 400; letter-spacing: normal; color: var(--text); margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; }
.count-line .hint { font-size: 12px; color: var(--text-soft); font-weight: 400; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: var(--fs-base); }
.table th { color: var(--text-soft); font-weight: 600; background: #fafbfe; }
.table tr:hover td { background: #fafbff; }

/* 弹窗内结果明细表（复用 .table 视觉，适配 table.tbl 类） */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: var(--fs-base); white-space: nowrap; }
.tbl th { color: var(--text-soft); font-weight: 600; background: #fafbfe; position: sticky; top: 0; z-index: 1; }
.tbl tbody tr:hover td { background: #fafbff; }

/* 满意度调查：逐题汇总（评分分布 + 文本意见） */
.sr-list { display: flex; flex-direction: column; gap: 14px; max-height: 52vh; overflow: auto; }
.sr-block { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; }
.sr-q { font-weight: 600; margin-bottom: 8px; }
.sr-stars { color: var(--warning); font-size: 18px; letter-spacing: 2px; margin-bottom: 8px; }
.sr-dist { display: flex; flex-direction: column; gap: 4px; }
.sr-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sr-row > span { width: 38px; color: var(--text-soft); flex: none; }
.sr-bar { position: relative; flex: 1; background: #f1f4f9; border-radius: 6px; height: 18px; overflow: hidden; }
.sr-bar-f { position: absolute; left: 0; top: 0; height: 100%; background: var(--teal-400); border-radius: 6px 0 0 6px; transition: width var(--t-fast); }
.sr-bar em { position: absolute; right: 8px; top: 0; line-height: 18px; font-style: normal; font-weight: 600; font-size: 12px; color: var(--text); }
.sr-texts { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.sr-texts li { font-size: 13px; line-height: 1.5; }
.sr-name { color: var(--primary-dark); font-weight: 600; margin-right: 4px; }

/* 满意度调查：评分星选中反馈（高亮 + 勾选态）+ 低分强制备注框 */
.exam-q { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.exam-q:last-child { border-bottom: none; }
.rating-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.star {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-soft);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1; user-select: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.star .star-num { font-size: var(--fs-base); font-weight: 700; }
.star .star-ic { font-size: 17px; margin-top: 2px; color: #d9dee8; transition: color var(--t-fast); }
.star:hover { border-color: var(--brand-200); background: var(--brand-50); transform: translateY(-1px); }
.star.on {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}
.star.on .star-ic { color: #ffd666; }
.star:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sv-note { margin-top: 8px; }
.sv-note-label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--warning, #b45309); margin-bottom: 4px; }
.sv-note textarea { width: 100%; min-height: 64px; resize: vertical; }
.sv-note[hidden] { display: none; }

/* ---------- 分页（通用） ---------- */
.list-col { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 学习任务：响应式多列卡片网格 ---------- */
.task-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1400px) { .task-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .task-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .task-grid { grid-template-columns: 1fr; } }

/* ---------- 学员端「我的学习任务」：桌面/平板 4 列，移动端单列（沿用原自适应逻辑） ---------- */
.stu-tasks-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
/* 仅移动端（≤680px）回退为单列，桌面/平板视图保持 4 列 */
@media (max-width: 680px) { .stu-tasks-grid { grid-template-columns: 1fr; } }
.task-card { display: flex; flex-direction: column; }
.task-card .ob-head { flex-wrap: wrap; }
.task-desc { font-size: var(--fs-base); color: var(--text-soft); line-height: 1.55; margin: 10px 0 12px; max-height: 3.2em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-wrap; }
.task-progress { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.task-progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-soft); margin-bottom: 7px; }
.task-progress-top b { color: var(--brand-600); font-size: var(--fs-base); }
.prog-bar { height: 8px; border-radius: 6px; background: #e6e9f2; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-500), var(--teal-500)); transition: width .35s ease; }
.task-progress-sub { font-size: var(--fs-xs); color: var(--text-soft); margin-top: 6px; }
.pagination-wrap { margin-top: 14px; }
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.pager-left { display: flex; align-items: center; gap: 6px; }
.pg-pages { display: flex; align-items: center; gap: 4px; }
.pg-btn, .pg-num { min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid var(--border); background: var(--panel); border-radius: 8px; color: var(--text); font-size: 13px; cursor: pointer; transition: .12s; }
.pg-btn:hover:not(:disabled), .pg-num:hover { border-color: var(--primary); color: var(--primary-dark); }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-num.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pg-ellipsis { color: var(--text-soft); padding: 0 4px; }
.pager-right { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 13px; }
.pg-size-label { display: flex; align-items: center; gap: 6px; }
.pg-size { padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; color: var(--text); }
.pg-info { white-space: nowrap; }

/* ---------- 进度条 ---------- */
.progress { height: 8px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--teal-400)); border-radius: 6px; transition: width .4s var(--t); }

/* ---------- 播放器 ---------- */
.player-wrap { background:#000; border-radius: var(--radius); overflow:hidden; }
.player-wrap video, .player-wrap audio { width: 100%; display:block; }
#player-area { display:flex; flex-direction:column; min-height:520px; }
/* 文档类课程：统一容器，简化嵌套层级 */
.doc-lesson { display:flex; flex-direction:column; flex:1; min-height:0; }
.doc-countdown-wrap { padding-bottom:14px; }
.doc-countdown-label { font-size:13px; color:var(--text-soft); margin-bottom:8px; }
.doc-countdown-time { font-size:28px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--primary-dark); margin-bottom:8px; letter-spacing:1px; }
.doc-countdown-track { height:8px; background:#e5e7eb; border-radius:4px; overflow:hidden; }
.doc-countdown-fill { height:100%; background:linear-gradient(90deg,var(--primary),var(--primary-dark)); width:100%; transition:width 1s linear; border-radius:4px; }
.doc-render-body { flex:1; min-height:0; overflow:auto; background:#fff; border:1px solid var(--border); border-radius:8px; }
.doc-render-body > .doc-reader,
.doc-render-body > .docx-render,
.doc-render-body > .pptx-viewer,
.doc-render-body > .doc-fallback-box { min-height:100%; box-sizing:border-box; }
.doc-reader { padding: 28px 34px; line-height: 1.9; }
.doc-reader h3 { margin: 14px 0 8px; }
.doc-frame { width:100%; height:100%; min-height:520px; border:0; display:block; background:#f4f6fb; }
.doc-loading { padding: 40px; text-align: center; color: var(--text-soft); }
/* PDF 在线预览（canvas 渲染，移动端友好） */
.pdf-viewer { display: block; }
.pdf-toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; background: #f7f8fb; border-bottom: 1px solid var(--border); touch-action: manipulation; }
.pdf-btn { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); background: #fff; border-radius: 8px; font-size: 16px; line-height: 1; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .12s; }
.pdf-btn:hover { background: #eef2ff; border-color: var(--primary); }
.pdf-btn:active { transform: scale(.96); }
.pdf-btn.txt { font-size: 13px; }
.pdf-flex { flex: 1; }
.pdf-pageinfo { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-base); color: var(--text); }
.pdf-page-input { width: 54px; height: 34px; text-align: center; border: 1px solid var(--border); border-radius: 8px; font-size: var(--fs-base); background: #fff; color: var(--text); }
.pdf-zoom { min-width: 46px; text-align: center; font-size: 13px; color: var(--text-soft); }
.pdf-canvas-wrap { padding: 12px; background: #f4f6fb; }
.pdf-canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); border-radius: 2px; }
.pdf-loading { padding: 48px; text-align: center; color: var(--text-soft); }
.docx-render { padding:24px 32px; line-height:1.9; color:#222; word-break:break-word; }
.docx-render img { max-width:100%; height:auto; }
.docx-render table { border-collapse:collapse; width:100%; margin:10px 0; }
.docx-render td, .docx-render th { border:1px solid #ddd; padding:6px 8px; }
.docx-render h1, .docx-render h2, .docx-render h3 { margin:16px 0 8px; line-height:1.3; }
.pptx-viewer { background:#1f2430; padding:14px; min-height:100%; }
.pptx-viewer .slide { margin:0 auto 14px; box-shadow:0 4px 18px rgba(0,0,0,.35); display:block; max-width:100%; height:auto; }
.pptx-viewer .slide:last-child { margin-bottom:0; }
.doc-fallback-box { text-align:center; padding:36px 20px; background:#fff8e6; border:1px solid #ffe2a8; border-radius:10px; }
.doc-fallback-ic { font-size:34px; margin-bottom:8px; }
.doc-fallback-msg { color:#8a6d1a; font-size:13px; margin-bottom:14px; line-height:1.6; }
.doc-actions { display:flex; justify-content:space-between; align-items:center; padding-top:14px; margin-top:14px; border-top:1px solid var(--border); }
.lesson-list { display:flex; flex-direction:column; gap:8px; }
.lesson-row { display:flex; align-items:center; gap:12px; padding: 12px 14px; border:1px solid var(--border); border-radius: 10px; cursor:pointer; transition:.12s; }
.lesson-row:hover { border-color: var(--primary); background: var(--primary-light); }
.lesson-row.done { background:#eefaf3; border-color:#cdeadb; }
.lesson-ic { width: 34px; height:34px; border-radius:8px; background: var(--primary-light); color: var(--primary-dark); display:flex; align-items:center; justify-content:center; font-size:16px; }
.lesson-row.done .lesson-ic { background:#d6f2e2; color: var(--success); }
.lesson-info { flex:1; }
.lesson-info .t { font-weight:600; }
.lesson-info .s { color: var(--text-soft); font-size:12px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset:0; background: rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; z-index: 50; padding: 20px; }
.modal { background:#fff; border-radius: 14px; width: 520px; max-width:100%; max-height: 90vh; overflow-y:auto; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding: 18px 22px; border-bottom:1px solid var(--border); }
.modal-head h3 { font-size: var(--fs-xl); }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }
.x-btn { background:none; border:none; font-size:20px; color: var(--text-soft); }
.modal.wide { width: 960px; }
@media (max-width: 1000px) { .modal.wide { width: 96vw; } }

/* ---------- 学习进度统计弹窗 ---------- */
.stats-summary { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-bottom: 16px; }
.stats-summary .stat { padding: 14px 16px; }
.stats-summary .stat .num { font-size: 24px; }
.stats-summary .stat .lbl { font-size: 12px; }
.prog-mini { height: 8px; background: var(--border); border-radius: 6px; overflow:hidden; margin-bottom: 5px; }
.prog-mini .bar { height: 100%; background: var(--primary); border-radius: 6px; }
.prog-txt { font-size: 12px; color: var(--text-soft); }
.ex-cell { margin-top: 5px; }
.ex-detail { font-size: var(--fs-xs); color: var(--text-soft); margin-top: 3px; line-height: 1.45; }
.badge.red { background: #fde8e8; color: #c0392b; }

/* 考试结果明细（按课程分组） */
.exam-course-group { border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin-bottom:14px; background: var(--bg-soft); }
.exam-course-h { font-weight:700; font-size:var(--fs-lg); margin-bottom:10px; color: var(--primary); }
.exam-block { border:1px solid var(--border); border-radius:8px; padding:10px 12px; margin-bottom:10px; background:#fff; }
.exam-block-h { font-weight:600; margin-bottom:8px; font-size:14px; }
.exam-person { border-top:1px dashed var(--border); padding:8px 0; }
.exam-person:first-of-type { border-top:none; }
.ep-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:5px; }
.ep-meta { font-size:12px; color: var(--text-soft); }
.q-dots { display:flex; flex-wrap:wrap; gap:4px; margin:4px 0; }
.q-dot { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 4px; border-radius:5px; font-size:11px; font-weight:700; }
.q-dot.ok { background:#e6f7ee; color:#1f9254; }
.q-dot.bad { background:#fde8e8; color:#c0392b; }
.q-detail { display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.q-row { font-size:12px; }
.q-idx.ok { color:#1f9254; font-weight:600; }
.q-idx.bad { color:#c0392b; font-weight:600; }
.q-score { color: var(--text-soft); margin-left:4px; }
.ok { color:#1f9254; }
.bad { color:#c0392b; }

/* ---------- 试卷 ---------- */
.q-item { border:1px solid var(--border); border-radius:10px; padding:16px; margin-bottom:14px; }
.q-item .q-t { font-weight:600; margin-bottom:10px; }
.q-opt { display:block; padding:9px 12px; border:1px solid var(--border); border-radius:8px; margin-bottom:8px; cursor:pointer; transition:.12s; }
.q-opt:hover { border-color: var(--primary); background: var(--primary-light); }
.q-opt.sel { border-color: var(--primary); background: var(--primary-light); font-weight:600; }
.q-blank-input { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:8px; font-size:14px; margin-top:6px; }
.q-blank-input:focus { outline:none; border-color: var(--primary); background: var(--primary-light); }
.opt-img { height:30px; width:auto; max-width:60px; border-radius:6px; object-fit:cover; border:1px solid var(--border); }

/* ---------- 考试记录对比 / 补考 ---------- */
.exam-compare { align-items:start; }
.exam-attempt { background:var(--surface); }
.exam-detail-list { max-height:60vh; overflow:auto; padding-right:4px; }
.q-item.q-ok { border-color:#bfe6cd; }
.q-item.q-bad { border-color:#f2c4bd; }
.q-line { font-size:13.5px; margin-top:6px; color:var(--text-soft); }
.q-line b { color:var(--text); }
.q-correct { color:#1f9254; }
.q-analysis { color:#7a6a3a; background:var(--warning-bg); border-radius:6px; padding:6px 8px; margin-top:6px; }
.exam-rec-row .mini { color:var(--text-soft); font-size:12.5px; }
.q-opt-img { height:22px; width:auto; max-width:40px; border-radius:5px; vertical-align:middle; margin-left:6px; object-fit:cover; border:1px solid var(--border); }
#exam-review .rev-item { border:1px solid var(--border); border-left-width:4px; border-radius:8px; padding:10px 12px; margin-bottom:10px; }
#exam-review .rev-item.ok { border-left-color: #2faa6b; }
#exam-review .rev-item.no { border-left-color: #e8833a; }
#exam-review .rev-q { font-weight:600; margin-bottom:6px; }
#exam-review .rev-a { font-size:13px; color:var(--text); }
#exam-review .rev-an { font-size:12px; color:var(--text-soft); margin-top:4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #0F172A; color:#fff; padding: 11px 20px; border-radius: 9px; font-size: var(--fs-base);
  opacity: 0; pointer-events:none; transition: .25s; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--success); }

.empty { text-align:center; color: var(--text-soft); padding: 40px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: var(--fs-base); }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-soft); font-weight: 600; background: #fafbfe; }
.data-table td.op, .data-table th.op { width: 1%; white-space: nowrap; }
.data-table tbody tr:hover { background: #fafbfe; }
.row { display:flex; gap:10px; align-items:center; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.tag-input { display:flex; gap:8px; }
/* 学员：我的证书 — 高级感烫金样式 */
.cert-card {
  --cg: #c9a24b; --cg-deep: #9c7a2e; --cg-soft: #b08d3c;
  position: relative;
  border-radius: 16px;
  padding: 30px 24px 26px;
  text-align: center;
  background: radial-gradient(130% 120% at 50% -10%, #fffdf6 0%, #fbf5e6 55%, #f3e7cc 100%);
  border: 1px solid rgba(156,122,46,.35);
  box-shadow: 0 12px 30px -14px rgba(120,90,20,.40), inset 0 0 0 1px rgba(255,255,255,.55);
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
/* 内层细金线框 */
.cert-card::before {
  content: ""; position: absolute; inset: 11px;
  border: 1px solid rgba(184,134,11,.40); border-radius: 10px;
  pointer-events: none; z-index: 0;
}
/* 悬停光泽扫过 */
.cert-card::after {
  content: ""; position: absolute; top: 0; left: -70%;
  width: 55%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-16deg);
  transition: left .8s ease; pointer-events: none; z-index: 1;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -16px rgba(120,90,20,.50), inset 0 0 0 1px rgba(255,255,255,.7); }
.cert-card:hover::after { left: 140%; }
.cert-card > * { position: relative; z-index: 2; }
.cert-card .seal {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; color: #fff;
  background: radial-gradient(circle at 32% 26%, #f6dca0 0%, #c9a24b 52%, #9c7a2e 100%);
  box-shadow: 0 5px 12px -2px rgba(150,110,30,.50), inset 0 0 0 2px rgba(255,255,255,.45), inset 0 0 0 5px rgba(156,122,46,.55);
}
.cert-card .cert-type { font-size: 12px; letter-spacing: 6px; text-indent: 6px; color: var(--cg-soft); font-weight: 600; margin-bottom: 2px; }
.cert-card .cert-title { font-family: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif; font-size: 20px; color: #5b4a1f; margin: 8px 0 0; letter-spacing: .5px; font-weight: 700; }
.cert-card .cert-standard { font-size: 12px; color: #9a8454; margin-top: 8px; letter-spacing: .3px; }
.cert-card .cert-divider { width: 42px; height: 1px; margin: 14px auto; background: linear-gradient(90deg, transparent, rgba(156,122,46,.6), transparent); }
.cert-card .cert-recipient { font-size: 14px; color: #4a3f1c; }
.cert-card .cert-recipient b { color: #5b4a1f; font-weight: 700; }
.cert-card .cert-date { font-size: 12px; color: #9a8454; letter-spacing: .5px; margin-top: 4px; }

/* 学员：我的证书 — 中式传统 + 立体金属感 */
.cn-cert {
  position: relative;
  background:
    radial-gradient(circle at 18% 22%, rgba(160,120,70,.05) 0%, transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(160,120,70,.05) 0%, transparent 28%),
    #f8f4e8;
  padding: 14px;
  border-radius: 3px;
  box-shadow:
    0 0 0 2px #b32424,
    0 0 0 4px #f8f4e8,
    0 0 0 6px #b32424,
    0 0 0 7px #c9a24b,
    0 18px 46px -14px rgba(80,50,30,.45);
  transition: transform .25s ease;
}
.cn-cert:hover { transform: translateY(-4px); }
.cn-cert-inner {
  border: 1px solid #c45c5c;
  padding: 28px 22px 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.corner { position: absolute; width: 52px; height: 52px; pointer-events: none; }
.corner.tl { top: -4px; left: -4px; }
.corner.tr { top: -4px; right: -4px; transform: scaleX(-1); }
.corner.br { bottom: -4px; right: -4px; transform: scale(-1); }
.corner.bl { bottom: -4px; left: -4px; transform: scaleY(-1); }
.corner circle { fill: #c9a24b; }
.cn-cert-title {
  font-family: "KaiTi","STKaiti","楷体","SimKaiti","SimSun",serif;
  font-size: 38px; color: #b32424; text-align: center;
  letter-spacing: 13px; text-indent: 13px; font-weight: 700;
  margin: 6px 0 4px;
  text-shadow: 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(130,40,40,.22);
}
.cn-cert-subtitle {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 12px; color: #b32424; text-align: center;
  letter-spacing: 3px; margin-bottom: 8px;
}
.cn-cert-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 20px; }
.cn-cert-divider .line {
  width: 80px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #c9a24b 25%, #f3dc9c 50%, #c9a24b 75%, transparent);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6);
}
.cn-cert-body {
  font-family: "KaiTi","STKaiti","楷体","SimKaiti","SimSun",serif;
  font-size: 16px; line-height: 2; color: #4a3a3a; padding: 0 6px;
}
.cn-cert-body p { margin: 0 0 12px; }
.cn-cert-body .recipient {
  font-size: 22px; color: #b32424; border-bottom: 1px solid #b32424;
  padding: 0 8px 2px; display: inline-block; min-width: 72px; text-align: center;
}
.cn-cert-body .class-name { color: #b32424; }
.cn-cert-footer {
  margin-top: auto; text-align: right; padding-right: 118px;
  font-family: "KaiTi","STKaiti","楷体","SimKaiti","SimSun",serif;
  font-size: 15px; line-height: 1.8; color: #4a3a3a;
}
.cn-cert-footer .issuer { font-size: 17px; margin-bottom: 2px; }
.cn-seal-medal {
  position: absolute; right: 30px; bottom: 26px;
  width: 102px; height: 102px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 6px 10px rgba(80,55,15,.45));
}
@media (max-width: 1100px) {
  .cn-cert-inner { padding: 24px 16px 22px; }
  .cn-cert-title { font-size: 32px; letter-spacing: 10px; text-indent: 10px; }
  .cn-cert-body { font-size: 15px; }
  .cn-cert-body .recipient { font-size: 20px; }
  .cn-cert-divider .line { width: 56px; }
  .corner { width: 44px; height: 44px; }
  .cn-cert-footer { padding-right: 104px; }
  .cn-seal-medal { width: 88px; height: 88px; right: 24px; bottom: 22px; }
}

hr.sep { border:none; border-top:1px solid var(--border); margin: 16px 0; }

/* 分类 / 部门树节点 */
.cat-node { padding: 6px 8px; font-size: var(--fs-base); border-left: 3px solid var(--primary-light); margin-bottom: 4px; border-radius: 0 6px 6px 0; }
.cat-node.lv1 { font-weight: 600; }
.cat-node.lv2 { margin-left: 16px; font-size: 13px; border-left-color: #d6defb; }
.cat-node.lv3 { margin-left: 32px; font-size: 13px; color: var(--text-soft); }
.cat-row { display:flex; align-items:center; gap:10px; padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: var(--fs-base); }
.cat-row .lv1 { font-weight: 600; }
.cat-row .lv2 { padding-left: 14px; }
.cat-row .lv3 { padding-left: 28px; }
.cat-row > span:first-child { flex: 1; }

/* 树状可折叠结构（分类 / 部门通用） */
.tree { font-size: var(--fs-base); user-select: none; }
.tree-node { position: relative; padding: 2px 0; }
.tree-children { margin-left: 14px; border-left: 1px dashed var(--border); padding-left: 8px; }
.tree-node.collapsed > .tree-children { display: none; }
.tw-toggle { display: inline-block; width: 16px; color: var(--text-soft); cursor: pointer; text-align: center; }
.tw-label { cursor: pointer; padding: 3px 8px; border-radius: 6px; display: inline-block; }
.tw-label:hover { background: var(--primary-light); }
.tree-node.selected > .tw-label { background: var(--primary); color: #fff; }
.thumb { width: 40px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; }

/* 多选分配对象：可滚动的复选框列表 */
.check-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; background: #fbfcfe; }
.check-list .chk { font-size: 13px; }
.check-list .chk:hover { color: var(--primary-dark); }

/* 带搜索的学员/对象选择器（分配对象、任务成员、班级成员复用） */
.student-picker { display: flex; flex-direction: column; gap: 8px; }
.sp-search { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; box-sizing: border-box; }
.sp-search:focus { border-color: var(--primary); }
.sp-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; padding: 4px 12px; background: #fbfcfe; }
.sp-list .chk { font-size: 13px; }
.sp-list .chk:hover { color: var(--primary-dark); }

/* 学习任务成员 chips / 编辑弹窗成员列表 */
.member-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; font-size: 12px; color: var(--text); }
.chip.course { background: #eef4ff; border-color: #cfe0ff; color: #2456c8; font-weight: 500; }
.chip.btn-chip { cursor: pointer; transition: background .15s, transform .05s; }
.chip.btn-chip:hover { background: #dde9ff; }
.chip.btn-chip:active { transform: scale(.96); }
.course-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.course-row { padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fbfcfe; cursor: pointer; }
.course-row:hover { border-color: var(--primary); background: #f3f8ff; }
.member-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; background: #fbfcfe; }
.ed-member { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.ed-member:last-child { border-bottom: none; }
.mm-detail { margin: 6px 0 2px; padding-left: 6px; border-left: 2px solid var(--border); }
.mm-detail .ot-line { font-size: 12.5px; line-height: 1.7; }

/* 排行 */
.tabs { display: flex; gap: 8px; }
.tab { padding: 8px 18px; border: 1px solid var(--border); background: var(--panel); border-radius: 20px; cursor: pointer; font-size: var(--fs-base); color: var(--text-soft); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 管理员：学员学习详情独立页面 */
.study-page { max-width: 1000px; margin: 0 auto; }
.study-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.study-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.study-name { font-size: var(--fs-2xl); font-weight: 700; }
.study-points { margin-left: auto; text-align: center; }
.study-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.study-kv > div { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.study-kv .k { color: var(--text-soft); min-width: 96px; flex: none; }
.study-kv .v { font-weight: 600; }
.course-prog-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.course-prog-row:last-child { border-bottom: none; }
.class-card { width: 100%; max-width: 460px; border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: var(--panel); cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.class-card:hover { box-shadow: 0 8px 22px -14px rgba(60,50,120,.45); transform: translateY(-2px); border-color: var(--primary); }
.class-name { font-size: var(--fs-lg); }
.class-meta { color: var(--text-soft); font-size: var(--fs-sm); margin-bottom: 8px; }
.class-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.class-member-row { align-items: center; }
@media (max-width: 640px) { .study-kv { grid-template-columns: 1fr; } }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-item { display:flex; align-items:center; gap:12px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: none; }
.rank-no { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display:flex; align-items:center; justify-content:center; font-weight:700; font-size: 13px; flex-shrink:0; }
.rank-item.top .rank-no { background: var(--warning); color:#fff; }
.rank-name { font-weight: 600; flex: 1; }
.rank-dept { color: var(--text-soft); font-size: 13px; width: 120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rank-val { font-weight: 600; color: var(--primary-dark); font-size: var(--fs-base); }

/* 播放器 + 防录屏跑马灯 */
.player-wrap { position: relative; background: #000; border-radius: 10px; overflow: hidden; }
.player-wrap video, .player-wrap audio { width: 100%; display: block; }
.wm-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.wm-text { position: absolute; color: rgba(255,255,255,0.32); font-size: var(--fs-base); font-weight: 600; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.5); user-select: none; }
.anti-record-tip { margin-top: 10px; font-size: var(--fs-sm); color: var(--text-soft); background: var(--panel); border: 1px dashed var(--border); border-radius: 8px; padding: 8px 12px; }

/* 个人设置：头像与密码 */
.side-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--primary-light); display: block; margin: 0 auto 8px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.pf-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--primary-light); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.hint { font-size: var(--fs-sm); color: var(--text-soft); }
.form-msg { font-size: 13px; min-height: 18px; margin: 6px 0 2px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--success, #1f9d55); }
.av-file { display: block; width: 100%; margin-bottom: 12px; }
.av-stage { position: relative; width: 300px; height: 300px; margin: 0 auto; overflow: hidden; background: #1f2430; border-radius: 10px; touch-action: none; cursor: grab; }
.av-stage:active { cursor: grabbing; }
.av-stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.av-frame { position: absolute; left: 30px; top: 30px; width: 240px; height: 240px; border: 2px dashed rgba(255,255,255,0.85); box-sizing: border-box; border-radius: 6px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,0.45); }
.pwd-strength { display: flex; align-items: center; gap: 6px; margin: -2px 0 4px; }
.pwd-strength span { flex: 1; height: 6px; border-radius: 3px; background: #e6e9f0; transition: background .15s; }
.pwd-strength span.lv1 { background: #e8635f; }
.pwd-strength span.lv2 { background: #e8a33d; }
.pwd-strength span.lv3 { background: #2eaf6a; }
.pwd-strength em { font-style: normal; font-size: 12px; color: var(--text-soft); margin-left: 4px; }

/* ---------- 考试防复制 ---------- */
.anti-copy, .anti-copy *:not(input):not(textarea) { user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
.anti-copy { -webkit-user-drag: none; }

/* ---------- 开关（播放设置） ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.switch-row > span:first-child { font-size: var(--fs-base); line-height: 1.5; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #cdd3df; border-radius: 26px; transition: background .2s; }
.switch .slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.switch input:checked + .slider { background: var(--primary, #4338CA); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- 复选框列表（课程多选） ---------- */
.chk-list { display: flex; flex-wrap: wrap; gap: 8px 18px; max-height: 220px; overflow: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.chk-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); margin-left: 4px; cursor: pointer; }

/* ---------- 自定义播放控制条（禁止拖动进度条） ---------- */
.pc-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px; background: #1f2430; border-radius: 8px; }
.pc-btn { width: 34px; height: 34px; flex: 0 0 auto; border: none; border-radius: 50%; background: #fff; color: #1f2430; font-size: 15px; cursor: pointer; }
.pc-time { flex: 0 0 auto; font-size: 12px; color: #cdd3df; min-width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
.pc-track { position: relative; flex: 1; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.16); overflow: hidden; touch-action: none; }
.pc-learned { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: rgba(99,102,241,0.42); }   /* 已学区域（可拖动/回看） */
.pc-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--primary, #4338CA); }      /* 当前播放头（已在已学范围内） */
.pc-locked { position: absolute; top: 0; height: 100%; width: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, rgba(255,255,255,0.04) 6px 12px); cursor: not-allowed; }  /* 未学区域：不可交互、不可跳转 */

/* ---------- 播放器跑马灯 ---------- */
.marquee-layer { position: absolute; left: 0; right: 0; bottom: 12%; z-index: 6; pointer-events: none; white-space: nowrap; overflow: hidden; }
.marquee-layer { color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.6); padding-left: 100%; animation: marquee-scroll 14s linear infinite; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* =====================================================================
   响应式与学员端视觉增强
   —— 手机端自适应、触控友好、清晰的视觉层级
   ===================================================================== */

/* 触控设备：关闭卡片 hover 的位移动效，避免点击后“卡住”的悬浮态 */
@media (hover: none) {
  .card-hover:hover, .course-card:hover { transform: none !important; box-shadow: var(--sh-sm) !important; }
}

/* ---------- 全局：内容区与顶栏留白随屏幕收紧 ---------- */
@media (max-width: 768px) {
  .content { padding: 16px !important; }
  .topbar { padding: 0 16px !important; height: 54px; }
  .topbar h2 { font-size: 18px; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card-pad { padding: 16px; }
  .section-title { font-size: 16px; margin: 2px 0 12px; }
  .grid { gap: 14px; }
  /* 统计卡在手机端两列（4 张卡组成 2×2，体积小不浪费） */
  .stu-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .stu-stats .stat { padding: 14px 10px; gap: 8px; }
  .stu-stats .stat .num { font-size: 18px; }
  .stu-stats .stat .lbl { font-size: 11px; }
  .stu-stats .stat .ic { width: 32px; height: 32px; font-size: 15px; }
}

/* ---------- 课程广场筛选条：手机端纵向堆叠、控件占满 ---------- */
@media (max-width: 768px) {
  .cat-filter-bar { flex-direction: column; align-items: stretch !important; }
  .cat-filter-bar .ctrl,
  .cat-filter-bar input.ctrl,
  .cat-filter-bar select.ctrl { width: 100% !important; }
  .cat-filter-bar > .row { width: 100%; justify-content: space-between; }
}

/* ---------- 学员：学习任务卡片（重新设计视觉层级） ---------- */
.stu-task { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.stu-task::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-500), var(--teal-500));
}
.stu-task .ob-head { align-items: flex-start; }
.stu-task .ob-ic { background: linear-gradient(135deg, var(--brand-500), var(--teal-500)); }
.stu-task .ob-title h4 { font-size: var(--fs-lg); line-height: 1.4; }
.stu-task .ob-dept { margin-top: 2px; }
.stu-task .course-meta { font-size: var(--fs-base); line-height: 1.6; color: var(--text); background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
/* 进度区：百分比内联在标题右侧，层级更清晰 */
.stu-task .task-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.stu-task .task-foot-btn { flex: 0 0 auto; }
@media (max-width: 768px) {
  .stu-task .ob-head { flex-wrap: wrap; }
  .stu-task .ob-head > .badge { order: 3; margin-left: auto; }
}

/* ---------- 学员：课程学习页（播放器 + 课时目录） ---------- */
/* 桌面端：左目录(1) 右播放器(2)；手机端：播放器置顶、目录在下，避免先滚目录再找视频 */
@media (max-width: 900px) {
  .learn-side { order: 2; }
  .learn-main { order: 1; }
  #player-area { min-height: 0 !important; }
  .doc-frame { min-height: 60vh !important; }
  .doc-render-body { min-height: 56vh; }
  .doc-lesson { min-height: 0; }
}
/* 播放器卡片顶部加标题条，明确当前学习内容 */
.learn-backbar { margin-bottom: 12px; }
.learn-main-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); font-weight: 600; color: var(--text); margin-bottom: 12px; }
.learn-main-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); flex: 0 0 auto; }
/* 视频在手机端自然撑满，保持 16:9 观感 */
@media (max-width: 768px) {
  .player-wrap { border-radius: 10px; }
  .player-wrap video { display: block; width: 100%; height: auto; }
}

/* ---------- 触控友好：按钮与可点区域加高 ---------- */
@media (max-width: 768px) {
  .btn { padding: 12px 18px; font-size: 15px; }
  .btn.sm { padding: 9px 14px; font-size: var(--fs-base); min-height: 38px; }
  .lesson-row { padding: 14px; gap: 14px; }
  .lesson-ic { width: 40px; height: 40px; font-size: 18px; }
  .nav-item { padding: 13px 14px; font-size: 15px; }
  .q-opt { padding: 12px 14px; font-size: 15px; }
  .q-blank-input { padding: 12px 14px; font-size: 15px; }
  .chip { padding: 5px 12px; font-size: 13px; }
}

/* ---------- 弹窗：手机端贴边、减少内边距 ---------- */
@media (max-width: 768px) {
  .modal-mask { padding: 0; }
  .modal { width: 100% !important; height: 100vh; max-height: 100vh; border-radius: 0; }
  .modal-head { padding: 16px 18px; position: sticky; top: 0; background: #fff; z-index: 2; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 14px 18px; position: sticky; bottom: 0; background: #fff; }
  .q-item { padding: 14px; }
  .modal.wide { width: 100% !important; }
}

/* ---------- 安全区：刘海屏底部留白 ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  .modal-foot, .sidebar-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .content { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- 线下培训卡片操作区：尺寸统一补丁 ----------
   上方「触控友好」规则把 .btn.sm 放大到 min-height:38px / 14px 字号（移动端全局策略）。
   卡片操作区要求跨断点尺寸一致、且主/次/危险三级高度分明，故用更高特异性 .btn.sm.ot-act 锁死，
   避免移动端出现「主按钮 38px、删除按钮 30px」的参差与卡片间高度错位。 */
@media (max-width: 768px) {
  .btn.sm.ot-act { min-height: 34px; padding: 0 10px; font-size: var(--fs-sm); }
  .btn.sm.ot-act.del { min-height: 30px; padding: 0 12px; font-size: var(--fs-xs); }
}

/* ---------- 线下培训：参训人员选择器（按学员 / 按部门 / 按培训班 + 搜索） ---------- */
.pp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pp-head b { color: var(--primary); }
.pp-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.pp-tab { flex: 1; padding: 8px 10px; border: 1px solid var(--border, #e3e8ef); background: var(--surface, #fff); color: var(--text-soft, #6b7280); border-radius: 8px; cursor: pointer; font-size: 13px; transition: all .15s; }
.pp-tab:hover { border-color: var(--primary, #4f7cff); color: var(--primary, #4f7cff); }
.pp-tab.active { background: var(--primary, #4f7cff); border-color: var(--primary, #4f7cff); color: #fff; }
.pp-search { margin-bottom: 8px; }
.pp-search .ctrl { width: 100%; }
.pp-body { max-height: 240px; overflow: auto; border: 1px solid var(--border, #e3e8ef); border-radius: 8px; padding: 6px; background: var(--surface, #fff); }
.pp-list { display: flex; flex-direction: column; gap: 2px; }
.pp-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: var(--fs-base); }
.pp-row:hover { background: var(--surface-2, #f5f7fb); }
.pp-row input { flex: 0 0 auto; width: 16px; height: 16px; }
.pp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-sub { flex: 0 0 auto; font-size: 12px; }

/* =====================================================================
   主题 B：沉岳 ShenYue（专业稳重）
   墨蓝 + 鎏金；衬线标题；锐利圆角；近无影、靠描边
   ===================================================================== */
[data-theme="shenyue"]{
  /* 品牌主色 → 墨蓝 */
  --brand-50:#F4F1EA; --brand-100:#EDE7DA; --brand-200:#DCD2BD; --brand-300:#C2B393;
  --brand-400:#A89267; --brand-500:#7E6A44; --brand-600:#16263F; --brand-700:#11203A; --brand-800:#0E1B30;
  /* 强调 → 鎏金 */
  --teal-50:#FBF4E6; --teal-400:#C9A24B; --teal-500:#B0894A; --teal-600:#9A7330;
  /* 中性 → 暖灰 */
  --slate-50:#F4F1EA; --slate-100:#EFEBE1; --slate-200:#E2DCD0; --slate-300:#CFC7B8;
  --slate-400:#A79E8E; --slate-500:#6A6F76; --slate-600:#4A5159; --slate-700:#33414F;
  --slate-800:#23303F; --slate-900:#16263F;
  /* 语义 */
  --success:#2F8F6B; --success-bg:#DDEFE6;
  --danger:#B4453A;  --danger-bg:#F5DEDC;
  --warning:#C0882E; --warning-bg:#F5E9D3;
  --info:#16263F;    --info-bg:#EDE7DA;
  /* 别名 */
  --primary:var(--brand-600); --primary-dark:var(--brand-700); --primary-light:var(--brand-50);
  --accent:var(--teal-500);   --accent-soft:var(--teal-50);
  --bg:var(--slate-50); --bg-soft:var(--slate-100); --panel:#FFFFFF;
  --text:var(--slate-900); --text-soft:var(--slate-500); --border:var(--slate-200);
  /* 字号（更小正文、更大标题，营造权威落差） */
  --fs-xs:12px; --fs-sm:14px; --fs-base:15px; --fs-md:15px; --fs-lg:17px;
  --fs-xl:20px; --fs-2xl:24px; --fs-3xl:28px; --fs-4xl:34px; --fs-5xl:42px;
  /* 圆角：锐利 */
  --r-sm:4px; --r-md:6px; --r-lg:8px; --r-xl:10px; --r-pill:999px;
  --radius:6px;
  /* 阴影：近无影、靠描边 */
  --sh-xs:0 1px 2px rgba(14,27,48,.05);
  --sh-sm:0 1px 2px rgba(14,27,48,.06);
  --sh-md:0 2px 6px rgba(14,27,48,.08);
  --sh-lg:0 8px 20px rgba(14,27,48,.10);
  --sh-xl:0 14px 36px rgba(14,27,48,.12);
  --shadow:var(--sh-sm); --shadow-lg:0 10px 28px rgba(14,27,48,.12);
  /* 字体 */
  --font-base:"Source Han Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --font-display:"Songti SC","Noto Serif SC","Source Han Serif SC","SimSun",serif;
  --ls-display:-.2px;
  --login-grad:linear-gradient(135deg,#0E1B30 0%,#2C4A6E 55%,#B0894A 100%);
}

/* =====================================================================
   主题 C：云川 YunChuan（开放通透）
   天青 + 珊瑚；极细几何黑体；圆润圆角；弥散光影
   ===================================================================== */
[data-theme="yunchuan"]{
  /* 品牌主色 → 天青 */
  --brand-50:#E9F6FE; --brand-100:#D2ECFB; --brand-200:#A9DCF6; --brand-300:#7FC8F0;
  --brand-400:#54B2EC; --brand-500:#2E9BE6; --brand-600:#2E9BE6; --brand-700:#1E7FC2; --brand-800:#155F94;
  /* 强调 → 珊瑚 */
  --teal-50:#E6F8F0; --teal-400:#34D399; --teal-500:#2BB673; --teal-600:#1F9E63;
  /* 中性 → 冷调浅灰蓝 */
  --slate-50:#F5FAFE; --slate-100:#EAF3FA; --slate-200:#E1EEF6; --slate-300:#C7DCEA;
  --slate-400:#9BB4C7; --slate-500:#6B7E90; --slate-600:#4E6275; --slate-700:#34485B;
  --slate-800:#223445; --slate-900:#16293B;
  /* 语义 */
  --success:#2BB673; --success-bg:#E6F8F0;
  --danger:#FF6B6B;  --danger-bg:#FFE6E6;
  --warning:#F5A623; --warning-bg:#FEF1DA;
  --info:#2E9BE6;    --info-bg:#D2ECFB;
  /* 别名 */
  --primary:var(--brand-600); --primary-dark:var(--brand-700); --primary-light:var(--brand-50);
  --accent:#FF8A65;  --accent-soft:#FFEDE6;
  --bg:var(--slate-50); --bg-soft:var(--slate-100); --panel:#FFFFFF;
  --text:var(--slate-900); --text-soft:var(--slate-500); --border:var(--slate-200);
  /* 字号（更大更舒展） */
  --fs-xs:13px; --fs-sm:14px; --fs-base:16px; --fs-md:16px; --fs-lg:18px;
  --fs-xl:20px; --fs-2xl:22px; --fs-3xl:26px; --fs-4xl:32px; --fs-5xl:40px;
  /* 圆角：圆润 */
  --r-sm:14px; --r-md:18px; --r-lg:22px; --r-xl:26px; --r-pill:999px;
  --radius:18px;
  /* 阴影：弥散 */
  --sh-xs:0 2px 6px rgba(46,155,230,.06);
  --sh-sm:0 4px 12px rgba(46,155,230,.10);
  --sh-md:0 10px 26px rgba(46,155,230,.14);
  --sh-lg:0 16px 40px rgba(46,155,230,.18);
  --sh-xl:0 28px 64px rgba(46,155,230,.22);
  --shadow:var(--sh-md); --shadow-lg:0 20px 48px rgba(46,155,230,.20);
  /* 字体 */
  --font-base:"PingFang SC","Source Han Sans SC","Microsoft YaHei",sans-serif;
  --font-display:"PingFang SC","Source Han Sans SC","Microsoft YaHei",sans-serif;
  --ls-display:.5px;
  --login-grad:linear-gradient(135deg,#2E9BE6 0%,#54B2EC 50%,#8FD0F5 100%);
}

/* ============ 系统设置：主题选择器 ============ */
.theme-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.theme-opt{position:relative;display:flex;flex-direction:column;gap:2px;border:1px solid var(--border);border-radius:var(--r-md);padding:14px 14px;cursor:pointer;background:var(--panel);transition:.15s}
.theme-opt:hover{border-color:var(--primary)}
.theme-opt input{position:absolute;top:12px;right:12px;width:16px;height:16px}
.theme-opt .to-name{font-weight:700;font-size:15px;color:var(--text)}
.theme-opt .to-desc{font-size:12px;color:var(--text-soft)}
.theme-opt .to-sw{display:flex;gap:5px;margin-top:8px}
.theme-opt .to-sw i{width:22px;height:14px;border-radius:4px;display:block}
.theme-opt:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
@media(max-width:680px){.theme-opts{grid-template-columns:1fr}}

