/* v376 force-refresh + !important lockdown */
:root {
  --primary: #3730a3;
  --primary-soft: #e0e7ff;
  --primary-dark: #312e81;
  /* v630：on-primary / primary-strong——深色背景配对比度达标的文字色（WCAG AA 4.5:1+） */
  --on-primary: #ffffff;          /* 默认主题（indigo）主背景上的文字色（备用） */
  --primary-strong: #312e81;      /* 默认主题专用深背景（白字专用） */
  --primary-ink: #312e81;         /* B 类浅底标签专用深色文字（minimal 下 #08321f） */
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e6e8ef;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 36px rgba(55,48,163,.18);
  /* 皮肤相关：侧边栏渐变 / 选中项渐变 / 侧边栏文字色
     注意：sidebar-grad 必须"上下同色"——之前 0% 和 100% 不同色，
     导致 sidebar 中下方整段视觉变浅（用户报"背景色又不对了"）。 */
  --sidebar-grad: linear-gradient(180deg,#ffffff 0%,#ffffff 100%);
  --active-grad: linear-gradient(90deg,#4338ca,#4f46e5);
  --sidebar-text: #475569;
  /* v683：补齐 --serif / --sans 字体栈变量（之前 var(--serif) 未定义，导致 .stu-banner-title 等元素
     fallback 到 Noto Serif SC（未装）→ SimSun Regular，font-weight:900 被吞掉，标题不粗）
     本地系统字体优先级：思源宋体 Heavy（已装）→ Noto Serif CJK SC → 宋体/苹方/PingFang → serif 兜底 */
  --serif: 'Source Han Serif SC', 'Noto Serif SC', 'Noto Serif CJK SC', 'Songti SC', 'STSong', SimSun, 'PingFang SC', serif;
  --sans: 'Source Han Sans SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* v702.7：系统默认字体统一微软雅黑（Windows 最常用中文字体，中文名「微软雅黑」写在前面保证中文系统命中） */
  --yahei: 'Microsoft YaHei', '微软雅黑', 'MSYH', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
}
/* ===== 皮肤：玻璃拟态（style-1-glass · 浅白毛玻璃 + 紫青强调） ===== */
body.theme-glass {
  --primary: #5151c8;            /* 蓝紫（用户指定） */
  --primary-soft: #e7e7f8;       /* 浅蓝紫（选中/悬浮底） */
  --primary-dark: #3f3fb0;       /* 深蓝紫（文字/强调） */
  --on-primary: #ffffff;          /* glass 主题主背景白字可达 3.86，临界但够用 */
  --primary-strong: #3f3fb0;      /* 白字专用深背景 */
  --primary-ink: #3f3fb0;         /* 浅底标签专用深色文字 */
  --bg: #f3f3fc;                 /* 浅蓝紫页面底（与 body 多色光晕配合） */
  --card: #ffffff;
  --text: #0f172a;               /* 关键：加深深灰，让卡片内文字对比度 7:1+（WCAG AAA） */
  --muted: #475569;              /* 同步加深辅助文字 */
  --border: rgba(81,81,200,.14); /* 边框也带蓝紫色调，与主题呼应 */
  --shadow: 0 1px 2px rgba(81,81,200,.06), 0 8px 24px rgba(81,81,200,.10);
  --shadow-lg: 0 14px 40px rgba(81,81,200,.22);
  /* 侧栏：白渐变 + 蓝紫细边，毛玻璃只在边缘高光显形（不再是 0.5 半透明洗白） */
  --sidebar-grad: linear-gradient(180deg, #ffffff 0%, #fafafe 100%);
  --active-grad: linear-gradient(90deg, rgba(81,81,200,.14) 0%, rgba(81,81,200,.04) 100%);
  --sidebar-text: #334155;
  /* 关键修复：body 渐变只保留 2 段、低 alpha（.12/.10）、远离主内容区
     之前 4 段 + .24 alpha 把整个背景"洗"成灰白，现在让背景接近 #f3f3fc 实色，
     只在 4 个角透一点点蓝紫光，不抢文字和图表的对比度 */
  background-color: #f3f3fc;
  background-image:
    radial-gradient(720px 480px at 0% 0%,   rgba(81,81,200,.14),  transparent 60%),
    radial-gradient(680px 420px at 100% 0%, rgba(8,145,178,.10),  transparent 60%),
    radial-gradient(620px 440px at 100% 100%, rgba(81,81,200,.12), transparent 60%),
    radial-gradient(560px 380px at 0% 100%,  rgba(99,102,241,.10), transparent 60%);
  background-attachment: fixed;
  background-size: cover;
}
body.theme-glass .sidebar {
  background: var(--sidebar-grad);
  border-right: 1px solid var(--border);
  /* 关键：毛玻璃感靠 blur + 浅边 + 外投影实现，不靠低 alpha 蒙白 */
  box-shadow: 4px 0 24px rgba(81,81,200,.08);
}
body.theme-glass .layout.legacy::before { background: transparent; }
body.theme-glass .brand { color: var(--primary-dark); border-bottom-color: var(--border); }
body.theme-glass .nav-item { color: var(--sidebar-text); }
/* v510: glass hover → 主色软底圆角矩形 */
body.theme-glass .nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
body.theme-glass .nav-item.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; box-shadow: none; }
/* v510: glass .nav-item.child.active → 主色软底圆角矩形 */
body.theme-glass .nav-item.child.active { background: var(--primary-soft) !important; color: var(--primary-dark) !important; border-radius: 8px; margin-left: 30px !important; margin-right: 0 !important; padding-left: 14px !important; padding-right: 14px !important; }
/* v377 force-refresh — child.active margin-left: 30px 对齐 .nav-children 内普通 child(30px), 原 22 让 active 偏左 8px 凸出 */
/* v510: glass .nav-item.child 默认无背景 */
body.theme-glass .nav-item.child { background: transparent; }
body.theme-glass .nav-sub { color: var(--sidebar-text); }
/* v510: glass nav-sub:hover → 主色软底圆角矩形 */
body.theme-glass .nav-sub:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
/* v510: glass nav-sub.active → 圆角矩形 */
body.theme-glass .nav-sub.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; margin-left: 0; margin-right: 0; padding-left: 14px; padding-right: 14px; }
body.theme-glass .ico-gallery { background: rgba(81,81,200,.04); border-color: var(--border); }
body.theme-glass .ico-opt { border-color: var(--border); background: #fff; }
body.theme-glass .ico-opt.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(81,81,200,.3); }
/* v511: glass caret 统一 var(--muted) */
body.theme-glass .caret { color: var(--muted); }
body.theme-glass .nav-group-label { color: rgba(71,85,105,.55); }
/* 关键修复：删掉 .dash::before 二次叠加（这是"灰"的最大元凶——和 body 渐变功能重复，叠在一起雾化） */
body.theme-glass .dash::before { display: none; }
/* main/content 仍保持透明（让 body 角部光晕微微透出），但 topbar 改用更实的白 → 顶栏工具文字不被洗白 */
body.theme-glass .main { background: transparent; }
body.theme-glass .content { background: transparent; }
body.theme-glass .topbar {
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  /* 阴影已去掉：3 个管理端主题下统一清除顶栏投影下泄，避免 banner 上方蓝紫投影；顶栏与下方浅灰 content 自然对比 */
  box-shadow: none;
  border-bottom: 0;
}
/* KPI 图标：饱和度提升（用主色实色 + 浅底，而非 .20 蒙白） */
body.theme-glass .kpi .kpi-icon { position:absolute; right:14px; top:14px; transform:none; width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; opacity:1; }
body.theme-glass .kpi:nth-of-type(1) .kpi-icon { background: linear-gradient(135deg, #e7e7f8, #d4dafa); color:#3f3fb0; }
body.theme-glass .kpi:nth-of-type(2) .kpi-icon { background: linear-gradient(135deg, #d8f0f5, #b8e6ef); color:#0e7490; }
body.theme-glass .kpi:nth-of-type(3) .kpi-icon { background: linear-gradient(135deg, #fce4f0, #f8c8e0); color:#be185d; }
body.theme-glass .kpi:nth-of-type(4) .kpi-icon { background: linear-gradient(135deg, #e0e7fa, #c8d4f6); color:#3949ab; }
body.theme-glass .kpi:nth-of-type(5) .kpi-icon { background: linear-gradient(135deg, #fef0d8, #fde2b4); color:#b45309; }
body.theme-glass .kpi:hover, body.theme-glass .dash-panel:hover { box-shadow: 0 20px 52px rgba(81,81,200,.24), 0 4px 10px rgba(99,102,241,.10); }
/* hero 走中性白底（与全站一致）；用户上传图时透明让图透出 */
body.theme-glass .dash-hero { background: #fff; border-top: 0; }
body.theme-glass .dash-hero-bg { background-color: transparent; }
body.theme-glass .dash-hero.has-image { background: transparent; }
/* rightbar 卡：与 .kpi/.dash-panel 一致 .82 alpha */
body.theme-glass .r-card { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border: 1px solid rgba(81,81,200,.14); box-shadow: 0 8px 28px rgba(81,81,200,.14); }
/* ===== 皮肤：极简清新（style-2-minimal · 白底侧栏 + 翠绿强调 + 极柔白卡） ===== */
body.theme-minimal {
  --primary: #10b981;            /* 翠绿 */
  --primary-soft: #ecfdf5;       /* 浅绿 */
  --primary-dark: #059669;       /* 深绿 */
  --on-primary: #08321f;          /* minimal 翠绿主背景白字仅 2.56，必须用深绿字 */
  --primary-strong: #059669;      /* 翠绿主题专用深背景（白字专用，深色字） */
  --primary-ink: #064e3b;         /* 浅绿底标签专用深色文字 */
  --bg: #f5f7fa;                 /* 页面浅灰蓝 */
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e8edf2;
  --shadow: 0 1px 2px rgba(15,23,42,.03), 0 8px 24px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 30px rgba(15,23,42,.08);
  --sidebar-grad: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  --active-grad: linear-gradient(90deg, #ecfdf5 0%, #ecfdf5 100%);
  --sidebar-text: #64748b;
}
body.theme-minimal .sidebar { border-right: 1px solid #eef1f5; }
body.theme-minimal .brand { color: #0f172a; border-bottom-color: #eef1f5; }
body.theme-minimal .brand .logo { color: var(--primary); }
body.theme-minimal .nav-item { color: var(--sidebar-text); }
/* v510: minimal hover → 主色软底 */
body.theme-minimal .nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
/* v510: minimal active → 圆角矩形 */
body.theme-minimal .nav-item.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
/* v510: minimal .nav-item.child.active → 主色软底 */
body.theme-minimal .nav-item.child.active { background: var(--primary-soft) !important; color: var(--primary-dark) !important; border-radius: 8px; margin-left: 30px !important; margin-right: 0 !important; padding-left: 14px !important; padding-right: 14px !important; }
/* v377 force-refresh — child.active margin-left: 30px 对齐 .nav-children 内普通 child(30px), 原 22 让 active 偏左 8px 凸出 */
/* v510: minimal .nav-item.child 默认无背景 */
body.theme-minimal .nav-item.child { background: transparent; }
body.theme-minimal .nav-sub { color: var(--sidebar-text); }
/* v510: minimal nav-sub:hover → 主色软底 */
body.theme-minimal .nav-sub:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
/* v510: minimal nav-sub.active → 圆角矩形 */
body.theme-minimal .nav-sub.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; margin-left: 0; margin-right: 0; padding-left: 14px; padding-right: 14px; }
body.theme-minimal .ico-gallery { background: var(--bg); border-color: var(--border); }
body.theme-minimal .ico-opt { border-color: var(--border); background: #fff; }
body.theme-minimal .ico-opt.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(16,185,129,.3); }
/* v511: minimal caret 统一 var(--muted) */
body.theme-minimal .caret { color: var(--muted); }
body.theme-minimal .nav-group-label { color: rgba(100,116,139,.6); }
/* 极简：卡片改极柔白色实心（去掉毛玻璃） */
body.theme-minimal .kpi, body.theme-minimal .dash-panel, body.theme-minimal .card { background: #fff; border: 1px solid var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 14px rgba(15,23,42,.04); }
body.theme-minimal .kpi:hover { box-shadow: 0 10px 30px rgba(15,23,42,.08); }
body.theme-minimal .dash::before { background: none; filter: none; }
body.theme-minimal .main { background: #f5f7fa; }
/* KPI 图标：圆角方块 + 翠绿系 */
body.theme-minimal .kpi .kpi-icon { position:absolute; right:14px; top:14px; transform:none; width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; color:var(--primary-dark); opacity:1; }
body.theme-minimal .kpi:nth-of-type(1) .kpi-icon { background: var(--primary-soft); color:#059669; }
body.theme-minimal .kpi:nth-of-type(2) .kpi-icon { background: #eff6ff; color:#2563eb; }
body.theme-minimal .kpi:nth-of-type(3) .kpi-icon { background: #fef3c7; color:#b45309; }
body.theme-minimal .kpi:nth-of-type(4) .kpi-icon { background: #fee2f3; color:#db2777; }
body.theme-minimal .kpi:nth-of-type(5) .kpi-icon { background: #e0f2fe; color:#0284c7; }
/* ===== 皮肤：商务大气（style-3-business · 深蓝渐变侧栏 + 企业蓝强调 + 蓝顶白卡） ===== */
body.theme-business {
  --primary: #2563eb;            /* 企业蓝 */
  --primary-soft: #eff4ff;       /* 浅蓝 */
  --primary-dark: #1d4ed8;       /* 深蓝 */
  --on-primary: #ffffff;          /* business 企业蓝白字 4.11，达标 */
  --primary-strong: #1d4ed8;      /* 白字专用深背景 */
  --primary-ink: #1e3a8a;         /* 浅蓝底标签专用深色文字 */
  --bg: #eef3fb;                 /* 页面浅蓝灰 */
  --card: #ffffff;
  --text: #0f2147;
  --muted: #64748b;
  --border: #e6edf8;
  --shadow: 0 1px 2px rgba(30,58,138,.05), 0 8px 24px rgba(30,58,138,.06);
  --shadow-lg: 0 12px 32px rgba(30,58,138,.12);
  --sidebar-grad: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  --sidebar-text: #475569;
}
body.theme-business .brand { color: var(--text); border-bottom-color: var(--border); }
body.theme-business .brand .logo { color: #fff; background: var(--primary); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 10px; padding: 0; }
body.theme-business .nav-item { color: var(--sidebar-text); }
body.theme-business .nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
body.theme-business .nav-item.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; box-shadow: none; }
body.theme-business .nav-item.child.active { background: var(--primary-soft) !important; color: var(--primary-dark) !important; border-radius: 8px; margin-left: 30px !important; margin-right: 0 !important; padding-left: 14px !important; padding-right: 14px !important; }
/* v377 force-refresh — child.active margin-left: 30px 对齐 .nav-children 内普通 child(30px), 原 22 让 active 偏左 8px 凸出 */
/* v510: business .nav-item.child 默认无背景（去除 v508 残留深色背景） */
body.theme-business .nav-item.child { background: transparent; color: var(--sidebar-text); }
body.theme-business .nav-sub { color: var(--sidebar-text); }
/* v510: business nav-sub:hover → 主色软底 */
body.theme-business .nav-sub:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
/* v510: business nav-sub.active → 圆角矩形 */
body.theme-business .nav-sub.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; margin-left: 0; margin-right: 0; padding-left: 14px; padding-right: 14px; }
body.theme-business .ico-gallery { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body.theme-business .ico-opt { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
body.theme-business .ico-opt.active { border-color: #fff; background: rgba(255,255,255,.18); box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
/* v511: business caret 改深灰——侧栏已白底，v508 后白色箭头不可见 */
body.theme-business .caret { color: var(--muted); }
body.theme-business .nav-group-label { color: rgba(255,255,255,.55); }
/* 顶栏：蓝色渐变 + 白字（企业感）——阴影已去掉，避免 banner 上方蓝色投影 */
body.theme-business .topbar { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); color: var(--text); border-bottom: 0; box-shadow: none; }
/* v586: business 顶栏已白底，文字默认 var(--text) 深色，无需覆盖 */
body.theme-business .topbar .crumb-sep { color: var(--muted); }
body.theme-business .topbar .crumb-home:hover { background: var(--primary-soft); }
body.theme-business .topbar .top-search, body.theme-business .topbar .top-icon-btn, body.theme-business .topbar .top-user { background: var(--primary-soft); border-color: var(--border); color: var(--text); }
body.theme-business .topbar .top-icon-btn:hover { background: var(--primary-soft); color: var(--primary-dark); }
body.theme-business .topbar .top-search input { color: var(--text); }
body.theme-business .topbar .top-search input::placeholder { color: var(--muted); }
/* 商务：白卡 + 普通边框（去掉顶部 3px 蓝色条，蓝边突兀按 v551 反馈移除） */
body.theme-business .kpi, body.theme-business .dash-panel, body.theme-business .card { background: #fff; border: 1px solid var(--border); border-top: 1px solid var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 4px 16px rgba(30,58,138,.08); }
body.theme-business .kpi:hover { box-shadow: 0 10px 28px rgba(30,58,138,.14); }
body.theme-business .dash::before { background: radial-gradient(680px 360px at 12% 8%, rgba(37,99,235,.12), transparent 60%), radial-gradient(620px 340px at 90% 4%, rgba(29,78,216,.10), transparent 60%); filter: blur(6px); }
body.theme-business .main { background: #eef3fb; }
/* KPI 图标：圆角方块 + 蓝系 */
body.theme-business .kpi .kpi-icon { position:absolute; right:14px; top:14px; transform:none; width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; color:#fff; opacity:1; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
body.theme-business .kpi:nth-of-type(1) .kpi-icon { background: linear-gradient(135deg,#1d4ed8,#2563eb); }
body.theme-business .kpi:nth-of-type(2) .kpi-icon { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
body.theme-business .kpi:nth-of-type(3) .kpi-icon { background: linear-gradient(135deg,#0ea5e9,#0284c7); }
body.theme-business .kpi:nth-of-type(4) .kpi-icon { background: linear-gradient(135deg,#6366f1,#4338ca); }
body.theme-business .kpi:nth-of-type(5) .kpi-icon { background: linear-gradient(135deg,#14b8a6,#0d9488); }
/* ===== 皮肤：亮蓝 AI（style-5-blue · 深蓝侧栏 + 亮蓝强调 + 蓝顶白卡 + SaaS 科技感 · 取色自 AI 立方体 #1E9FFF） ===== */
body.theme-blue {
  --primary: #1E9FFF;            /* 亮蓝（AI 立方体主色） */
  --primary-soft: #EAF6FF;       /* 浅亮蓝（选中/悬浮底） */
  --primary-dark: #0080E6;       /* 深亮蓝（文字/强调/数据数字） */
  --on-primary: #04263d;          /* blue 亮蓝白字仅 2.81，必须用深蓝字 */
  --primary-strong: #0080E6;      /* 白字专用深背景 */
  --primary-ink: #0c4a6e;         /* 浅蓝底标签专用深色文字 */
  --bg: #eef3fb;                 /* 页面浅蓝灰 */
  --card: #ffffff;
  --text: #0f2147;               /* 深蓝黑文字 */
  --muted: #64748b;
  --border: #e6edf8;             /* 蓝调边框 */
  --shadow: 0 1px 2px rgba(30,129,255,.05), 0 8px 24px rgba(30,129,255,.06);
  --shadow-lg: 0 12px 32px rgba(30,129,255,.12);
  --sidebar-grad: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  --active-grad: linear-gradient(90deg, #1E9FFF, #0080E6);
  --sidebar-text: #475569;
}
body.theme-blue .brand { color: var(--text); border-bottom-color: var(--border); }
body.theme-blue .brand .logo { color: #fff; background: var(--primary); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 10px; padding: 0; }
body.theme-blue .nav-item { color: var(--sidebar-text); }
body.theme-blue .nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
body.theme-blue .nav-item.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; box-shadow: none; }
body.theme-blue .nav-item.child.active { background: var(--primary-soft) !important; color: var(--primary-dark) !important; border-radius: 8px; margin-left: 30px !important; margin-right: 0 !important; padding-left: 14px !important; padding-right: 14px !important; }
/* v510: blue .nav-item.child 默认无背景 */
body.theme-blue .nav-item.child { background: transparent; color: var(--sidebar-text); }
body.theme-blue .nav-sub { color: var(--sidebar-text); }
/* v510: blue nav-sub:hover → 主色软底 */
body.theme-blue .nav-sub:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
/* v510: blue nav-sub.active → 圆角矩形 */
body.theme-blue .nav-sub.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; margin-left: 0; margin-right: 0; padding-left: 14px; padding-right: 14px; }
body.theme-blue .ico-gallery { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
body.theme-blue .ico-opt { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
body.theme-blue .ico-opt.active { border-color: #fff; background: rgba(255,255,255,.18); box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
/* v511: blue caret 改深灰——侧栏已白底，v508 后白色箭头不可见 */
body.theme-blue .caret { color: var(--muted); }
body.theme-blue .nav-group-label { color: rgba(255,255,255,.55); }
/* 顶栏：亮蓝渐变 + 白字（SaaS 科技感）——阴影已去掉 */
body.theme-blue .topbar { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); color: var(--text); border-bottom: 0; box-shadow: none; }
/* v586: blue 顶栏已白底 */
body.theme-blue .topbar .crumb-sep { color: var(--muted); }
body.theme-blue .topbar .crumb-home:hover { background: var(--primary-soft); }
body.theme-blue .topbar .top-search, body.theme-blue .topbar .top-icon-btn, body.theme-blue .top-user { background: var(--primary-soft); border-color: var(--border); color: var(--text); }
body.theme-blue .topbar .top-icon-btn:hover { background: var(--primary-soft); color: var(--primary-dark); }
body.theme-blue .topbar .top-search input { color: var(--text); }
body.theme-blue .topbar .top-search input::placeholder { color: var(--muted); }
/* 亮蓝：白卡 + 普通边框（去掉顶部 3px 亮蓝色条，蓝边突兀按 v551 反馈移除） */
body.theme-blue .kpi, body.theme-blue .dash-panel, body.theme-blue .card { background: #fff; border: 1px solid var(--border); border-top: 1px solid var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 4px 16px rgba(30,129,255,.08); }
body.theme-blue .kpi:hover { box-shadow: 0 10px 28px rgba(30,129,255,.14); }
body.theme-blue .dash::before { background: radial-gradient(680px 360px at 12% 8%, rgba(30,129,255,.12), transparent 60%), radial-gradient(620px 340px at 90% 4%, rgba(0,102,204,.10), transparent 60%); filter: blur(6px); }
body.theme-blue .main { background: #eef3fb; }
body.theme-blue .dash-hero { border-top: 0; } /* v551 反馈：去掉亮蓝 hero 顶部蓝边 */
/* KPI 图标：圆角方块 + 亮蓝系（与 AI 立方体呼应） */
body.theme-blue .kpi .kpi-icon { position:absolute; right:14px; top:14px; transform:none; width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; color:#fff; opacity:1; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
body.theme-blue .kpi:nth-of-type(1) .kpi-icon { background: linear-gradient(135deg,#1E9FFF,#0080E6); }
body.theme-blue .kpi:nth-of-type(2) .kpi-icon { background: linear-gradient(135deg,#5FB8FF,#1E9FFF); }
body.theme-blue .kpi:nth-of-type(3) .kpi-icon { background: linear-gradient(135deg,#0EA5E9,#0284C7); }
body.theme-blue .kpi:nth-of-type(4) .kpi-icon { background: linear-gradient(135deg,#38BDF8,#0066CC); }
body.theme-blue .kpi:nth-of-type(5) .kpi-icon { background: linear-gradient(135deg,#60A5FA,#2563EB); }
/* ===== 皮肤：青绿研修风（E 方案，默认；2026-08-04 调色对齐参考图：左 #2ECC71 亮翠绿 → 右 #16A085 深青绿，横向渐变） ===== */
body.theme-jade {
  --primary: #2ECC71;       /* 亮翠绿（参考图左侧主色，比旧 #18a689 更鲜亮）*/
  --primary-soft: #E8F8F1;
  --primary-dark: #16A085;  /* 深青绿（参考图右侧）*/
  --on-primary: #08321f;          /* jade 主背景白字仅 2.10，必须用深绿字 */
  --primary-strong: #16A085;      /* 学员端专用深背景（白字专用） */
  --primary-ink: #064e3b;         /* 浅绿底标签专用深色文字 */
  --bg: #F4F6F8; --card: #ffffff; --text: #1F3A36; --muted: #6B8A82;
  --border: #E5E7EB; --shadow: 0 1px 2px rgba(15,32,47,.05), 0 8px 24px rgba(15,32,47,.06);
  --shadow-lg: 0 12px 36px rgba(15,32,47,.10);
  --sidebar-grad: linear-gradient(180deg,#ffffff 0%,#E8F8F1 100%);
  --active-grad: linear-gradient(90deg,#2ECC71,#16A085);
  --sidebar-text: #2F5D54;
}
body.theme-jade .brand { color: var(--primary-dark); border-bottom-color: var(--border); }
body.theme-jade .nav-item { color: var(--sidebar-text); }
body.theme-jade .nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
body.theme-jade .nav-item.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; box-shadow: none; }
body.theme-jade .nav-item.child.active { background: rgba(46,204,113,.28) !important; margin-left: 14px !important; margin-right: 0 !important; padding-left: 14px !important; padding-right: 14px !important; }
/* v377 force-refresh — child.active margin-left: 30px 对齐 .nav-children 内普通 child(30px), 原 22 让 active 偏左 8px 凸出 */
body.theme-jade .nav-item.child { background: var(--primary-soft); }
body.theme-jade .nav-sub { color: var(--sidebar-text); }
body.theme-jade .nav-sub:hover { background: var(--primary-soft); color: var(--primary-dark); }
body.theme-jade .nav-sub.active { background: var(--primary-strong); color: #fff; margin-left: -12px; margin-right: -12px; padding-left: 48px; padding-right: 26px; }
body.theme-jade .ico-gallery { background: var(--bg); border-color: var(--border); }
body.theme-jade .ico-opt { border-color: var(--border); background: #fff; }
body.theme-jade .ico-opt.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(46,204,113,.3); }
body.theme-jade .caret { color: rgba(47,93,84,.55); }
/* 皮肤切换器 */
.skin-switch { display:flex; align-items:center; gap:6px; margin-right:4px; }
.skin-dot { width:20px; height:20px; border-radius:50%; cursor:pointer; border:2px solid #fff; box-shadow:0 0 0 1px var(--border); transition:transform .15s; }
.skin-dot:hover { transform:scale(1.15); }
.skin-dot.active { box-shadow:0 0 0 2px var(--primary); transform:scale(1.12); }
/* 管理端四套主题圆点：均独立上色，任何主题下都可见 */
.skin-dot.sk-glass { background:linear-gradient(135deg,#5151c8,#0891b2); }
.skin-dot.sk-minimal { background:linear-gradient(135deg,#10b981,#059669); }
.skin-dot.sk-business { background:linear-gradient(135deg,#1e3a8a,#1d4ed8); }
.skin-dot.sk-blue { background:linear-gradient(135deg,#1E9FFF,#0066CC); }
.cls-multi { display:flex; flex-wrap:wrap; gap:8px; max-height:160px; overflow-y:auto; padding:6px; border:1px solid var(--border); border-radius:8px; }
.cls-chk { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border:1px solid var(--border); border-radius:20px; cursor:pointer; font-size:13px; background:var(--card,#fff); }
.cls-chk:hover { border-color:var(--primary); }
.cls-chk input { margin:0; cursor:pointer; }
/* v508 班级自动补全（输入字符模糊匹配，替代大卡片复选框） */
.cls-autocomplete { position:relative; display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:6px 8px; border:1px solid var(--border); border-radius:8px; background:var(--card,#fff); cursor:text; }
.cls-autocomplete:focus-within { border-color:var(--primary); }
.cls-chips { display:inline-flex; flex-wrap:wrap; gap:6px; }
.cls-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 6px 3px 10px; border-radius:16px; background:#E6F1FB; color:#185FA5; font-size:12.5px; user-select:none; white-space:nowrap; }
.cls-chip-x { font-style:normal; cursor:pointer; width:16px; height:16px; line-height:15px; text-align:center; border-radius:50%; font-size:13px; }
.cls-chip-x:hover { background:rgba(24,95,165,.18); }
.cls-ac-input { flex:1; min-width:130px; border:none; outline:none; background:transparent; font-size:13px; font-family:inherit; padding:4px 0; }
.cls-ac-dropdown { position:absolute; left:0; right:0; top:calc(100% + 4px); background:var(--card,#fff); border:1px solid var(--border); border-radius:8px; box-shadow:0 8px 24px rgba(15,23,42,.14); max-height:240px; overflow-y:auto; z-index:80; }
.cls-ac-item { padding:8px 12px; font-size:13px; cursor:pointer; }
.cls-ac-item:hover, .cls-ac-item.active { background:#E6F1FB; color:#185FA5; }
.cls-ac-empty { padding:10px 12px; font-size:12.5px; color:#94a3b8; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* v702.7：微软雅黑优先（原栈把 -apple-system/Segoe UI/PingFang 排前面，Windows 上会落到非雅黑字体） */
  font-family: 'Microsoft YaHei', '微软雅黑', 'MSYH', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* v702.7：标题统一微软雅黑（含卡片/弹窗/页面头标题，避免被任何 serif 或主题字体覆盖） */
h1, h2, h3, h4, h5, h6,
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.page-head h1, .page-head h2, .page-head h3,
.modal h1, .modal h2, .modal h3, .modal h4 {
  font-family: 'Microsoft YaHei', '微软雅黑', 'MSYH', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
}
/* 表单控件/按钮/表格/输入框继承微软雅黑（浏览器默认会用系统 UI 字体，不继承 body） */
input, select, textarea, button, .btn, table.tbl, .tbl th, .tbl td {
  font-family: 'Microsoft YaHei', '微软雅黑', 'MSYH', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
}
/* 等宽/编号类元素保持 monospace，不受微软雅黑影响 */
.mono, .user-id-chip, code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* 文本容器统一自动换行，防止长串/URL溢出 */
.card, .modal, .tip, .empty, .tbl td, .tbl th, .dt td, .dt th, .link {
  overflow-wrap: anywhere;
  word-break: normal;
}
/* 无空格超长串（如 URL）允许在任意位置断开 */
.card a, .modal a, .tbl td a, .dt td a, .link {
  word-break: break-all;
}
textarea { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.boot { text-align: center; padding: 80px; color: var(--muted); }
.boot.error { color: var(--red); }
.boot .err-detail { color: var(--muted); font-size: 13px; margin-top: 12px; padding: 10px 16px; background: #fff; border: 1px solid var(--border); border-radius: 8px; display: inline-block; max-width: 80%; word-break: break-all; }
/* 布局 */
.layout { display: flex; height: 100vh; overflow: hidden; }
/* 关键：body 只画主题背景 --bg（学员端正常）。
   后台 .layout.legacy 自身画 sidebar-grad 占底（学员端 layout 不受影响）。 */
body {
  background: var(--bg);
}
.sidebar {
  width: 232px; background: var(--sidebar-grad);
  display: flex; flex-direction: column; position: relative; flex-shrink: 0;
}
.brand { padding: 20px 20px; font-size: 17px; font-weight: 800; color: var(--text); border-bottom: 1px solid var(--border); letter-spacing: .5px; }
.brand .logo { font-size: 22px; margin-right: 8px; }
/* 后台左上角品牌图模式：整块替换 emoji+文字，图高 80px、宽度按比例、超宽自动缩 */
.brand.brand-img { display: flex; align-items: center; padding: 18px 16px; }
.brand.brand-img img { display: block; height: 80px; width: auto; max-width: 100%; object-fit: contain; }
.nav { padding: 12px 12px; flex: 1; overflow-y: auto; }
/* sidebar 滚动条 UI 彻底隐藏 —— X5/QQ 内核不认 transparent 占位，仍会露半截灰条
   保留 overflow-y: auto 让鼠标滚轮/触屏/方向键仍可滚动 */
.nav::-webkit-scrollbar { display: none; width: 0 !important; height: 0 !important; -webkit-appearance: none; appearance: none; }
.nav { scrollbar-width: none; -ms-overflow-style: none; }
.nav-role-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.nav-role-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 400; font-size: 15px; }
.nav-role-head::before { content: ''; display: inline-block; width: 4px; height: 16px; background: var(--primary); border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.img-prev { margin-top: 8px; }
.img-prev img { max-width: 52px; max-height: 52px; border-radius: 8px; border: 1px solid var(--border); padding: 2px; background: #fff; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  color: var(--sidebar-text); cursor: pointer; margin-bottom: 4px; font-size: 14px; user-select: none;
  transition: background .15s, transform .15s;
}
.nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; }
.nav-item.active { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; box-shadow: none; }
.nav-item.child.active { background: var(--primary-soft) !important; color: var(--primary-dark) !important; border-radius: 8px; margin-left: 30px !important; margin-right: 0 !important; padding-left: 14px !important; padding-right: 14px !important; }
/* v377 force-refresh — child.active margin-left: 30px 对齐 .nav-children 内普通 child(30px), 原 22 让 active 偏左 8px 凸出 */
.nav-item .ico { width: 22px; text-align: center; font-size: 16px; }
.nav-item .ico svg, .nav-ico-svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.nav-ico-dot { width: 18px; height: 18px; fill: currentColor; stroke: none; vertical-align: middle; flex: 0 0 auto; }
/* 全站通用内联图标（emoji 替换，单色 currentColor 继承主题色） */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }
.nav-ico-img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; vertical-align: middle; }
.ico-gallery { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; }
.ico-opt { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.04); cursor: pointer; padding: 5px; }
.ico-opt img { width: 22px; height: 22px; object-fit: contain; }
.ico-opt.active { border-color: #6366f1; background: rgba(99,102,241,.18); box-shadow: 0 0 0 2px rgba(99,102,241,.35); }
.nav-item.child { margin-left: 22px; font-size: 13px; padding: 9px 14px; }
.nav-item.hidden-item { opacity: .4; font-style: italic; }
/* 可折叠分组 */
.nav-item.parent { position: relative; }
/* v511: 折叠箭头统一柔和深灰 var(--muted)，亮蓝/企业等浅底主题也能看清 */
.nav-item .caret { display: inline-block; width: 14px; text-align: center; font-size: 11px; color: var(--muted); transition: transform .2s ease; transform: rotate(0deg); flex-shrink: 0; }
.nav-item .caret.collapsed { transform: rotate(-90deg); }
.nav-item .lbl { flex: 1; }
.nav-children { display: none; margin: 2px 0 4px; }
/* v510: 4 主题统一——二级菜单容器不撑背景，折叠无空白，展开也仅有子项 hover/active 的圆角矩形 */
.nav-children.open { display: block; }
/* v509: 空组兜底——数据库没配子项时不要撑出白色空白 */
.nav-children:empty { display: none !important; }
.nav-children .nav-item.child { margin-left: 30px; }
/* 智能工具箱二级菜单（助教 / 助学 / 助研） */
.nav-sub {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 40px; margin: 2px 0 2px 8px;
  color: var(--sidebar-text); font-size: 13px; cursor: pointer; user-select: none;
  opacity: .82; transition: background .15s, opacity .15s, transform .15s;
}
.nav-sub:hover { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; opacity: 1; }
.nav-sub.active { background: var(--primary-soft); color: var(--primary-dark); opacity: 1; font-weight: 500; border-radius: 8px; margin-left: 0; margin-right: 0; padding-left: 14px; padding-right: 14px; }
.nav-sub .dot { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* 学员 E 三栏：基础 .main 不限高（避免 history 漏改） */
body.theme-jade .layout:not(.legacy) .main { min-height: 0; overflow: visible; height: auto; }
/* 注意：学员移动端 main 不可设 height:100vh（会顶满整屏 + 父容器 overflow:hidden 把底部 tabbar 裁掉）；
   交给 .main 基础规则 flex:1 自适应即可 */
/* 后台外壳（管理员/督导/班主任/授课教师）：经典两栏+底栏 */
/* - sidebar / rightbar / main 与 layout 一起 height: 100vh 锁定一屏 */
/* - sidebar 用 ::before 伪元素画 var(--sidebar-grad) 底色，且 sidebar 自己 height: 100% */
/* - rightbar overflow-y: auto 让内部 3 张 r-card 高度超出时在自己内滚动 */
/* - main 是 flex column：topbar(60px) / content(flex:1 overflow-y:auto) / app-footer(auto) */
/* - 整页布局框架稳定不动，超出内容只在 .content 出现滚动条（不再随 body 整页滚动） */
.layout.legacy {
  display: flex;
  align-items: stretch;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  position: relative;
  overflow: hidden;
  /* 注意：layout 自身不能再有 background-color 兜底！否则会把整个 layout
     box（含 main 内容区）都涂成主题色——之前踩过坑，main 区背景变蓝。
     main 区应透出 body 的 var(--bg) 浅色背景；sidebar 整高色由 ::before 伪元素画。 */
}
.layout.legacy::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 232px;
  background: var(--sidebar-grad, #ffffff);
  z-index: 0;
  pointer-events: none;
}
.layout.legacy > * { position: relative; z-index: 1; }
.layout.legacy .sidebar { width: 232px; flex: 0 0 232px; background: var(--sidebar-grad, #ffffff); border-right: 1px solid var(--border); padding: 0; height: 100%; display:flex; flex-direction:column; }
/* 兜底：jade 主题的默认 --sidebar-grad 是「白→淡绿」，在浅绿 body 上几乎透明；
   强制后台（layout.legacy）下用 jade 主色深色版 sidebar-grad 替代 */
.layout.legacy.theme-jade-bg, body.theme-jade .layout.legacy {
  --sidebar-grad: linear-gradient(90deg,#2ECC71 0%,#16A085 100%);
}
.layout.legacy.theme-jade-bg::before, body.theme-jade .layout.legacy::before {
  background: linear-gradient(180deg,#16A085 0%,#16A085 100%);
}
.layout.legacy .sidebar .brand { display: block; }
.layout.legacy .nav { padding: 12px 12px; }
.layout.legacy .rightbar { width: 280px; flex: 0 0 280px; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.layout.legacy .main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.layout.legacy .topbar { flex: 0 0 auto; }
.layout.legacy .content { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; min-height: 0; padding: 22px 26px; }
/* 主内容区背景图：JS 写入多层 background-image（白蒙版 + 图），此处定尺寸/固定 */
.layout.legacy .content.has-bg-img { background-size: cover, cover; background-position: center top, center top; background-attachment: fixed; }
.layout.legacy .app-footer { flex: 0 0 auto; flex-shrink: 0; margin-top: auto; }
.topbar {
  position: relative; z-index: 100;
  height: 60px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  /* 边框与阴影已去掉：顶栏与 .content 浅灰背景天然对比，无需 1px 描边；banner 上方不再有任何"线/阴影"压痕 */
  border-bottom: 0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px; flex-shrink: 0;
}
.topbar .crumb { display: flex; align-items: center; gap: 10px; }
.topbar .crumb-home { cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 7px; border-radius: 8px; transition: background .15s, transform .15s; }
.topbar .crumb-home:hover { background: var(--primary-soft); transform: translateY(-1px); }
.topbar .crumb-sep { color: var(--muted); font-weight: 400; user-select: none; }
.topbar .title { font-weight: 700; font-size: 17px; }
.topbar .user { display: flex; align-items: center; gap: 12px; }
/* ===== E 方案：全局三栏门户布局 ===== */
body.theme-jade .layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "topbar topbar topbar"
    "sidebar main rightbar"
    ". footer .";
  min-height: 100vh;
  /* v707.6 学员 PC 端通栏铁律：去掉主题自带的 max-width:1380px + margin:0 auto
     让 banner/focus/topbar/footer 能真正全幅出血；jade 主题最初是为了与管理端区分
     才强制居中限宽，现在学员 PC 端要求通栏，必须解除。grid gap:16px 仍保留三栏间距。 */
  max-width: none;
  margin: 0;
  overflow: visible;
  gap: 16px;
  padding: 16px 0;
}
/* v707.7 删 .layout.jade-student 老规则（line 523-538）—— 老规则 3 行版 + 3 列布局与
   v707.7 块 5 行通栏版冲突；同特异性后定义胜出在 CSS 引擎中行为不一致（grid-template-*
   解析顺序依赖浏览器实现）。直接整块删除，统一从 v707.7 块（line ~5444）单一来源。 */

.layout.jade-student .topbar { grid-area: topbar; }
.layout.jade-student .sidebar { grid-area: sidebar; }
.layout.jade-student .main { grid-area: main; min-height: 0; overflow: visible; height: auto; }
.layout.jade-student .rightbar { grid-area: rightbar; }
/* v707.7 删 .app-footer 老规则（grid-area: footer + border-radius: 16px + 白底 + 边线），
   改用 v707 块（line 5508+）的深绿 #0a5b2c + border-radius:0 + 无阴影样式 */
body.theme-jade .topbar {
  grid-area: topbar;
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(46,204,113,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 16px;
}
body.theme-jade .topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--primary-dark);
  border: none;
  padding: 0;
  min-width: 178px;
}
body.theme-jade .topbar .brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0;
}
body.theme-jade .topbar .crumb {
  flex: 1;
  min-width: 0;
}
body.theme-jade .topbar .title {
  font-size: 16px;
}
body.theme-jade .top-util {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
body.theme-jade .top-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text);
}
body.theme-jade .top-chip svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.theme-jade .topbar .user {
  gap: 10px;
}
body.theme-jade .top-skin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: 12px;
  padding: 6px 10px;
}
body.theme-jade .top-skin .skin-switch { margin: 0; }
body.theme-jade .top-skin .skin-dot { width: 18px; height: 18px; border-color: transparent; }
body.theme-jade .jade-ham {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
body.theme-jade .jade-ham:hover { background: var(--primary-soft); color: var(--primary-ink); }
@media (max-width:1000px) {
body.theme-jade .jade-ham { display: flex; }

}
body.theme-jade .top-notice {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background .15s;
}
body.theme-jade .top-notice:hover { background: var(--primary-soft); color: var(--primary-ink); }
body.theme-jade .top-notice svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.theme-jade .sidebar {
  grid-area: sidebar;
  width: auto;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 14px;
  overflow-y: visible;
}
body.theme-jade .sidebar .brand { display: none; }
body.theme-jade .sidebar .user-card {
  text-align: center;
  padding: 16px 8px 18px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 10px;
}
body.theme-jade .sidebar .user-card .u-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
  font-weight: 700;
}
body.theme-jade .sidebar .user-card .u-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
body.theme-jade .sidebar .user-card .u-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
/* v515 #10：学员端侧栏用户卡显示登录 ID（小字等宽） */
body.theme-jade .sidebar .user-card .u-uid {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .3px;
  user-select: all;
}
body.theme-jade .sidebar .user-card .u-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
body.theme-jade .nav {
  padding: 0;
}
body.theme-jade .nav-group {
  margin: 0 0 2px 0;
}
body.theme-jade .nav-group:first-child { margin-top: 0; }
body.theme-jade .nav-item {
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}
/* v377 force-refresh — child.active margin-left: 30px 对齐 .nav-children 内普通 child(30px), 原 22 让 active 偏左 8px 凸出 */
/* 浅色侧边栏：图标默认使用主题色；激活/悬停时跟随文字颜色（深色背景时变白） */
body.theme-jade .nav-item .ico svg, body.theme-jade .nav-ico-svg { stroke: var(--primary); }
body.theme-jade .nav-item:hover .ico svg, body.theme-jade .nav-item.active .ico svg, body.theme-jade .nav-item.active .nav-ico-svg, body.theme-jade .nav-sub:hover .nav-ico-svg, body.theme-jade .nav-sub.active .nav-ico-svg { stroke: currentColor; }
body.theme-jade .nav-item.child {
  margin-left: 0;
  background: transparent;
  font-size: 13px;
  padding: 9px 14px;
}
body.theme-jade .nav-item.parent .caret { color: var(--muted); }
body.theme-jade .nav-children .nav-item.child { margin-left: 14px; }
body.theme-jade .nav-sub {
  padding: 9px 14px 9px 28px;
  margin: 2px 0 2px 8px;
  color: var(--text);
  opacity: .85;
}
body.theme-jade .main {
  grid-area: main;
  min-height: 0;
  overflow: visible;
}
body.theme-jade .content {
  padding: 18px 20px;
  overflow: visible;
  min-height: 0;
}
body.theme-jade .rightbar {
  grid-area: rightbar;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 18px 0;
  overflow-y: visible;
  min-width: 0;
}
/* 后台外壳（管理员/督导/班主任/授课教师）：两栏 flex
   - 适用于所有主题（不限于 jade）
   - layout height: 100vh + overflow: hidden 锁定整页框架
   - main 是 flex column，content overflow-y: auto 当内部超过一屏时只让内容区自身滚动
   注：layout / sidebar 主体规则在 line 163 起，本处仅保留需 !important 覆盖的 sidebar 背景 */
.layout.legacy .sidebar { background: var(--sidebar-grad, #ffffff) !important; }
/* 页脚 */
.app-footer {
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}
/* E 方案：顶栏/侧边栏/页脚统一卡片化圆角阴影外壳 */
body.theme-jade .layout:not(.legacy) .topbar {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-bottom: none;
  border: 1px solid var(--border);
}
body.theme-jade .layout:not(.legacy) .sidebar {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
}
body.theme-jade .layout:not(.legacy) .app-footer {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-top: none;
  border: 1px solid var(--border);
}
/* 学员移动端：无侧边栏，左侧固定首页入口 */
.layout.mobile-student .sidebar, .layout.mobile-student .rightbar { display: none !important; }
/* 移动学员端：完全隐藏 topbar，jade 头部直接顶到 layout 顶（不占高度、不画白条） */
.layout.mobile-student .topbar { display: none !important; }
.layout.mobile-student .main { padding-top: 0; }
.layout.mobile-student .content { padding-top: 0; }
/* 满屏 App 壳：锁定视口，顶栏+内容滚动+底部固定 Tab 栏 */
.layout.mobile-student {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* 动态视口：移动浏览器显示/隐藏底部工具栏时自动调整 */
  height: 100dvh;
  height: -webkit-fill-available;
  /* !important 强制覆盖 body.theme-jade .layout 的 display:grid 三栏布局
     （学员端移动版只挂 .mobile-student，不挂 .jade-student，但 body.theme-jade 仍生效；
      后者特异性 (0,2,1) > .layout.mobile-student (0,2,0)，不加 !important 会被反吃） */
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  /* 清零 jade 的 padding/gap/margin/max-width，避免主题把内容往中列挤 */
  padding: 0 !important;
  gap: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
@supports not (height: 100dvh) {
.layout.mobile-student { height: 100vh; }

}
.layout.mobile-student .main {
  width: 100%; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
}
.layout.mobile-student .topbar { flex: 0 0 auto; }
.layout.mobile-student .app-footer { display: none !important; }
.layout.mobile-student .topbar .crumb { display: none; }
.layout.mobile-student .topbar .user { width: 100%; justify-content: flex-end; padding: 10px 14px; min-height: 0; }
.layout.mobile-student .topbar .user-col { width: auto; gap: 10px; }
.layout.mobile-student .content {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 清掉 jade 主题 content 自带的 20px 左右内边距（body.theme-jade .content），
     否则移动端内容两侧会出现空白、未占满、内部宽度被压窄。
     各 stu-* 组件自带 16~20px 横向内边距且 header（stu-head/stu-mbar/stu-me-head）全幅出血，
     故此处横向归零即可满屏；本规则特异性 (0,3,0) 高于 jade 的 (0,2,1)，无需 !important。 */
  padding-left: 0;
  padding-right: 0;
  /* 底部 tabbar position:fixed 占 60px，留出空间防止内容被遮 */
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
/* ===== 学员（任何布局下）底部 tabbar 兜底 ===== */
/* 学员移动端 footer 已被 .layout.mobile-student .app-footer { display:none!important }
兜底隐藏 */
body.role-student { padding-bottom: 0; }
/* 学员无内容要滚，body 底部让 tabbar 钉底 */
body.role-student .layout { padding-bottom: 80px; }
/* 防止 layout 内容被 tabbar 遮（覆盖 .layout 自身的 padding） */


/* ===== 学员移动端：底部固定 Tab 栏（类 App） ===== */
/* 学员端底部 tabbar：position: fixed 兜底，不依赖任何 layout 内部 flex 链路
   （学员端无论 isMobile() 误判走 E 三栏 portal 还是 mobile-student 布局，
    tabbar 都钉在 body 视口底部，绝不消失） */
.stu-tabbar {
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  background: #fff;
  border-top: 1px solid #E6E9EE;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 12px rgba(15,40,35,0.04);
}
.mobile-student .stu-tab {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 9px 0 calc(7px + env(safe-area-inset-bottom, 0px));
  font-size: 11px; font-weight: 500; line-height: 1; color: #94a3b8;
  background: transparent; border: none; cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-student .stu-tab-ico { width: 24px; height: 24px; display: block; color: #94a3b8; transition: color .15s; }
.mobile-student .stu-tab-ico svg { width: 100%; height: 100%; display: block; }
.mobile-student .stu-tab.active { color: #16A085; font-weight: 600; }
.mobile-student .stu-tab.active .stu-tab-ico { color: #16A085; }
.mobile-student .stu-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: calc(2px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #2ECC71, #16A085);
}
.mobile-student .stu-tab:active { background: rgba(46,204,113,0.06); }
/* 移动端工具页：图标+文字 3x3 网格 */
.mobile-student .stu-section-title { padding: 22px 18px 8px; font-size: 17px; font-weight: 700; color: var(--text); }
.mobile-student .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 16px 22px; }
.mobile-student .tool-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 18px 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 500;
}
.mobile-student .tool-cell:active { background: var(--primary-soft); }
.mobile-student .tool-ico { width: 30px; height: 30px; display: block; color: var(--primary-dark, #16A085); }
.mobile-student .tool-ico svg { width: 100%; height: 100%; display: block; }
.mobile-student .tool-label { font-size: 13px; color: var(--text); }
.mobile-student .tool-cell.placeholder { background: transparent; border: 1px dashed var(--border); box-shadow: none; cursor: default; }
.mobile-student .tool-cell.placeholder .tool-label { color: var(--muted); }
.mobile-student .placeholder-ico { display: none; }
/* 右上角：通用人形头像（无上传头像时显示） */
.user-avatar svg { width: 60%; height: 60%; display: block; }
/* 移动端顶栏标题前的小图标 */
.mobile-student .crumb .title { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; }
.mobile-student .page-ico { width: 19px; height: 19px; display: inline-flex; flex: 0 0 auto; color: var(--primary); }
.mobile-student .page-ico svg { width: 100%; height: 100%; display: block; }
/* ===== 学员移动端首页：大气概览（去掉重复的三入口卡片） ===== */
.mobile-student .stu-hero { padding: 30px 20px 16px; }
.mobile-student .stu-hero-name { font-size: 25px; font-weight: 800; color: var(--text); letter-spacing: .5px; }
.mobile-student .stu-hero-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; color: var(--muted); font-size: 14px; }
.mobile-student .stu-hero-cls { font-weight: 700; color: var(--primary); }
.mobile-student .stu-hero-sub .ghost.sm { padding: 3px 10px; font-size: 12px; margin-left: 2px; }
.mobile-student .stu-stats { display: flex; gap: 12px; padding: 4px 16px 16px; }
.mobile-student .stu-stat { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.mobile-student .stu-stat .num { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.mobile-student .stu-stat .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
.mobile-student .stu-today { margin: 2px 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mobile-student .stu-today-h { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.mobile-student .stu-today-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border); cursor: pointer; }
.mobile-student .stu-today-item:first-of-type { border-top: none; }
.mobile-student .stu-today-t { font-size: 15px; font-weight: 600; color: var(--text); }
.mobile-student .stu-today-s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mobile-student .stu-today-go { font-size: 22px; color: var(--muted); line-height: 1; }
/* 用户菜单 */
.user-menu { position: relative; }
.user-menu-toggle {
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text); border: 1px solid var(--border);
  padding: 5px 10px 5px 6px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow-sm); min-height: 36px;
}
.user-menu-toggle:hover { background: #fafbff; }
.user-menu-toggle .user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.user-menu-toggle .caret { font-size: 11px; color: var(--muted); }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 190px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 1000;
}
.user-menu.open .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 12px; border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.user-menu-header .user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
/* 头像图片填充（个人设置上传后） */
.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.user-menu-meta { display: flex; flex-direction: column; gap: 3px; }
.user-menu-name { font-weight: 600; font-size: 14px; }
.user-menu-skin .skin-switch { gap: 8px; }
.user-menu-item {
  width: 100%; text-align: left;
  background: transparent; color: var(--text); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; border: none;
  display: flex; align-items: center; gap: 8px;
}
.user-menu-item:hover { background: #f3f4f6; }
.user-menu-item.text-danger { color: var(--red); }
.user-menu-item.text-danger:hover { background: #fee2e2; }
/* 顶部「班级上下文」切换器（用户名下方） */
.user-col { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.class-ctx {
  display: inline-flex; align-items: center; gap: 5px; max-width: 240px;
  font-size: 12px; line-height: 1.2; color: var(--muted);
  padding: 2px 8px; border-radius: 999px; background: var(--bg);
  border: 1px solid transparent;
}
.class-ctx .cc-ico { font-size: 12px; }
.class-ctx .cc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.class-ctx .cc-caret { font-size: 10px; color: var(--primary); }
.class-ctx.multi { cursor: pointer; color: var(--primary-dark); background: var(--primary-soft); border-color: rgba(46,204,113,.25); }
.class-ctx.multi:hover { border-color: var(--primary); }
.class-ctx.empty { cursor: default; }
/* v586: 非首页时统一把"切换班级"chip 移到主区域 page-head 标题后面 —— 顶栏那个由 body.view-page + 角色类隐藏 */
body.view-page.role-student .user-col > .class-ctx,
body.view-page.role-headteacher .user-col > .class-ctx,
body.view-page.role-supervisor .user-col > .class-ctx { display: none; }
/* v586: 标题后面的挂载点：与原 .class-ctx 视觉一致 + 左侧留 10px 间距（page-head-title 已是 flex gap 8px，本身有间距） */
.page-class-ctx { display: inline-flex; align-items: center; flex-shrink: 0; }
/* 左侧用户卡内的班级切换器：放在姓名下方，居中、稍紧凑 */
body.theme-jade .sidebar .user-card .class-ctx {
  margin: 8px auto 0;
  max-width: 180px;
  font-size: 11px;
  padding: 3px 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: rgba(46,204,113,.18);
}
body.theme-jade .sidebar .user-card .class-ctx.multi:hover { background: #d6f3e7; border-color: var(--primary); }
body.theme-jade .sidebar .user-card .class-ctx.empty { background: transparent; color: var(--muted); border-color: transparent; cursor: default; }
/* 班级切换浮层 */
.class-pop {
  position: fixed; z-index: 1200; min-width: 220px; max-width: 320px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15,40,35,.18); padding: 8px;
  animation: cpIn .14s ease;
}
@keyframes cpIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
/* 学员移动端底部 tabbar 为 z9999，浮层需盖过它 */
body.role-student .class-pop { z-index: 10002; }
.class-pop .cp-h { font-size: 12px; color: var(--muted); padding: 6px 10px 8px; font-weight: 600; }
.class-pop .cp-item {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: transparent; border: none; border-radius: 10px; padding: 10px 10px;
  font-size: 14px; color: var(--text); cursor: pointer;
}
.class-pop .cp-item:hover { background: var(--primary-soft); }
.class-pop .cp-item.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.class-pop .cp-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-pop .cp-tag { font-size: 11px; color: var(--primary-dark); background: #fff; border: 1px solid rgba(46,204,113,.3); border-radius: 6px; padding: 1px 6px; }
.class-pop .cp-check { color: var(--primary); font-weight: 800; }
/* 个人设置弹窗分隔线 */
.ps-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 13px; }
.ps-divider::before, .ps-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* 个人设置：头像上传行 */
.ps-avatar-row { display: flex; align-items: center; gap: 14px; }
.ps-avatar-prev { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.ps-avatar-prev img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ps-avatar-ops { display: flex; flex-direction: column; gap: 8px; }
.ps-avatar-ops input[type=file] { font-size: 13px; max-width: 220px; }
.content { padding: 22px 26px; flex: 1; overflow-y: auto; }
/* 通用 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; transition: box-shadow .2s, transform .2s; }
/* v702.13：公开设置页卡片——减少内边距让表格占满 main 区更多空间 */
.card.pc-card { padding: 16px 16px 14px; }
/* v702.14：表格已不再外层包裹 .tbl-scroll（直接走 .tbl.pc-tbl），无需负 margin 溢出 */
.card:hover { box-shadow: var(--shadow-lg); }
.card h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
/* 通用页面标题行：标题 + 搜索/筛选/操作按钮 同行排布；窄屏允许换行 */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.page-head-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); flex: 1 1 auto; min-width: 0; }
.page-head-title h3 { margin: 0; font-size: 15px; font-weight: inherit; color: inherit; }
.page-head-search { flex: 1 1 220px; min-width: 180px; max-width: 480px; display: flex; align-items: center; gap: 12px; }
.page-head-search .dt-search-wrap { width: auto; min-width: 0; max-width: 360px; flex: 1 1 200px; }
.page-head-search .dt-count { flex: 0 0 auto; white-space: nowrap; }
.page-head-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; flex-wrap: wrap; }
.page-head-meta { color: var(--muted); font-size: 13px; flex: 0 0 auto; }
/* 卡片标题行（通知公告/培训简报等）：标题 + 操作按钮同行；窄屏允许换行。
   基础规则在所有主题生效；jade 主题另有更高 specificity 的样式覆盖（保留视觉差异）。 */
.e-card-head { margin: 0 0 14px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); }
.e-card-head > h3 { margin: 0; font-size: 15px; font-weight: inherit; color: inherit; display: flex; align-items: center; gap: 8px; }
.e-card-head .e-card-head-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; flex-wrap: wrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
.grid.cols2, .grid.cols3, .grid.cols4 { grid-template-columns: 1fr; }
.sidebar { width: 170px; }
.brand.brand-img img { height: 64px; }
 }
button, .btn {
  background: var(--primary-strong); color: #fff; border: none; padding: 9px 16px; border-radius: 9px;
  cursor: pointer; font-size: 14px; font-family: inherit; transition: background .15s, transform .1s, box-shadow .15s;
}
button:hover, .btn:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
button:active, .btn:active { transform: translateY(1px); }
button.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
button.ghost:hover { background: var(--primary-soft); box-shadow: none; }
button.sm { padding: 5px 12px; font-size: 13px; }
select.sm { width: auto; padding: 4px 8px; font-size: 13px; min-width: 72px; }
button.danger { background: var(--red); }
button.danger:hover { background: #b91c1c; }
/* v702.6：删除按钮浅红背景（红边+红字+极浅红底+hover 浅红）；不影响 button.danger 深红场景 */
button.ghost.danger,
button.sm.ghost.danger,
button.mini.ghost.danger { background: #fff5f5; color: var(--red); border-color: #fecaca; }
button.ghost.danger:hover,
button.sm.ghost.danger:hover,
button.mini.ghost.danger:hover { background: #fee2e2; border-color: #fca5a5; color: var(--red); }
button:disabled { opacity: .55; cursor: not-allowed; }
a.link { color: var(--primary); cursor: pointer; text-decoration: none; }
a.link:hover { text-decoration: underline; }
/* v491: 危险操作链接——删除问卷等，红色突出 */
a.link.danger { color: #ef4444; }
a.link.danger:hover { color: #b91c1c; text-decoration: underline; }
input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
body.theme-jade input, body.theme-jade select, body.theme-jade textarea {
  border-color: rgba(24, 166, 137, .35);
}
body.theme-jade input:hover, body.theme-jade select:hover, body.theme-jade textarea:hover {
  border-color: rgba(24, 166, 137, .6);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.field { margin-bottom: 13px; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 7px; font-size: 12px; background: #eef2ff; color: #3730a3; border: 1px solid #dfe4ff; margin: 2px 4px 2px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; background: #fafbff; position: sticky; top: 0; }
tr:hover td { background: #fafbff; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.badge.green { background: #dcfce7; color: var(--green); }
.badge.red { background: #fee2e2; color: var(--red); }
.badge.amber { background: #fef3c7; color: var(--amber); }
.badge.gray { background: #f3f4f6; color: var(--muted); }
.badge.blue { background: var(--primary-soft); color: var(--primary-ink); }
.badge.admin { background: var(--primary-soft); color: var(--primary-ink); }
.badge.teacher { background: #dcfce7; color: var(--green); }
.badge.headteacher { background: #ede9fe; color: #7c3aed; }
.badge.supervisor { background: #e0e7ff; color: #4338ca; }
.badge.student { background: #fef3c7; color: var(--amber); }
.muted { color: var(--muted); }
.sign-map { margin-top: 8px; height: 340px; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.08); }
.sign-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.sign-code-show { font-size: 40px; font-weight: 800; letter-spacing: 10px; text-align: center; color: var(--primary-dark, #16A085); background: var(--primary-soft, #E8F8F1); border: 1px dashed var(--primary, #2ECC71); border-radius: 12px; padding: 16px 0; margin: 4px 0; }
.login-err { display: none; margin-top: 10px; padding: 10px 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; font-size: 13px; line-height: 1.5; word-break: break-all; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.radio { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.radio input { width: auto; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
/* v702.14：门户公开设置页专用表格
   父级 body.pc-page 已隐藏 rightbar，main 区域约 1170px 宽；
   表格 6 列总宽 856px，标题列靠 ellipsis 自然截断，无需横向滚动。
   表格不再需要外层 .tbl-scroll —— 直接走 .pc-tbl。 */
.pc-page .layout.legacy .rightbar { display: none !important; }
.pc-page .layout.legacy .main { flex: 1 1 auto !important; }
.tbl.pc-tbl { table-layout: fixed; }
.tbl.pc-tbl td.pc-title { overflow: hidden; }
.tbl.pc-tbl td.pc-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v702.12：表格横向滚动容器（保留供其它长表格场景使用，不影响公开设置页）
   v702.14：保留以兼容旧 .tbl-scroll 调用 */
.tbl-scroll { display: block; width: 100%; min-width: 100%; overflow-x: auto; border-radius: var(--radius); box-shadow: inset -8px 0 8px -8px rgba(15,23,42,.10); }
.tbl-scroll .tbl { min-width: 1100px; box-shadow: none; border-radius: 0; }
.tbl-scroll::-webkit-scrollbar { height: 10px; }
.tbl-scroll::-webkit-scrollbar-track { background: rgba(15,23,42,.04); }
.tbl-scroll::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .32); border-radius: 4px; }
.tbl-scroll::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, .48); }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.tbl th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: 13px; }
.tbl tbody tr:hover { background: var(--primary-soft); }
.tbl tr.perm-group-head td { background: #eef2f8; font-size: 14px; padding: 10px 14px; border-bottom: 2px solid var(--border); font-weight: 600; }
.tbl tr.perm-group-head:hover td { background: #eef2f8; }
.perm-matrix th, .perm-matrix td { font-size: 13px; }
.perm-col-head { text-align: center !important; min-width: 56px; white-space: nowrap; }
.perm-cb-cell { text-align: center; }
.perm-cb { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.perm-admin-col { text-align: center; font-size: 16px; background: #f8fafc; color: var(--muted); }
.perm-admin-denied { color: #e15a5a; background: #fff4f4; }  /* v618：admin 视角下不展示此菜单（✕ 占位） */
.perm-name { white-space: nowrap; }
.perm-route { display: block; font-size: 11px; margin-top: 2px; }
.perm-matrix tbody tr:hover { background: var(--primary-soft); }
.perm-matrix tbody tr:hover .perm-admin-col { background: #eef2f8; }
/* v504：详情页头部操作按钮——平铺 + 宽度不足横向滚动，避免换行挤压布局 */
.page-head-actions.page-head-actions-scroll { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; max-width: 60vw; padding-bottom: 2px; }
.page-head-actions.page-head-actions-scroll::-webkit-scrollbar { height: 6px; }
.page-head-actions.page-head-actions-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }
/* v504：详情里行末「编辑、学员、详情」平铺不换行；总宽不够时 datatable 已包 .dt-scroll 横向滚动 */
.dt table .row-actions { flex-wrap: nowrap; }
.row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; flex-wrap: nowrap; min-width: max-content; }
.row-actions .link { display: inline-flex; align-items: center; }
.mini.ghost.danger { border-color: #fecaca; color: var(--red); }
.mini.ghost.danger:hover { background: #fee2e2; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
/* 空状态占位卡：放在主区且不在 .card 内的 .empty 自动获得白底卡外观 */
.content > .empty {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 30px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
}
/* 卡内的 .empty 保持简洁（避免卡中卡） */
.content .card .empty { background: transparent; border: 0; box-shadow: none; padding: 30px; border-radius: 0; }
/* 登录 */
/* 独立扫码页（课程签到 / 课堂测评）沿用此居中布局 */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; align-items: safe center; justify-content: center; padding: 20px 12px; box-sizing: border-box; background: radial-gradient(circle at 16% 20%, rgba(59,130,246,.20), transparent 42%), radial-gradient(circle at 84% 80%, rgba(124,58,237,.20), transparent 42%), linear-gradient(135deg, #eef2ff, #f8fafc); }
.login-card { position: relative; width: 380px; max-width: 100%; padding: 38px 36px; border-radius: 20px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 16px 48px rgba(30,41,59,.14); }
.login-card input, .login-card select, .login-card textarea { background: rgba(255,255,255,.7); }
.login-card input:focus, .login-card select:focus, .login-card textarea:focus { background: #fff; }
.login-card h1 { margin: 0 0 4px; font-size: 23px; color: var(--primary); }
.login-card .sub { color: var(--muted); margin-bottom: 22px; }
.role-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.role-tab { flex: 1; text-align: center; padding: 11px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: all .15s; }
.role-tab.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.qr-box { margin-top: 20px; padding: 16px; background: var(--primary-soft); border-radius: 14px; text-align: center; }
.qr-canvas { display: inline-block; background: #fff; padding: 8px; border-radius: 8px; }
.qr-canvas img, .qr-canvas canvas { display: block; }
.qr-hint { margin-top: 10px; font-size: 12px; color: var(--muted); word-break: break-all; }
.img-prev { width: 64px; height: 64px; border: 1px dashed #cbd5e1; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f8fafc; color: #94a3b8; font-size: 12px; }
.img-prev.wide { width: 160px; height: 90px; }
.img-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sep { border: none; border-top: 1px solid var(--border, #e2e8f0); margin: 18px 0 14px; }
.adv { margin-top: 16px; font-size: 13px; color: var(--primary); cursor: pointer; }
.adv summary { user-select: none; }
.adv[open] summary { margin-bottom: 4px; }
@media (max-width: 768px) {

}
/* 模态框 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 50; backdrop-filter: blur(3px); }
.modal { background: #fff; border-radius: 16px; padding: 24px; width: 560px; max-width: 94vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.modal.wide { width: 760px; }
/* v445 课程编辑等复杂表单弹窗：加宽到 900px，配双栏 grid 让字段排布更直观（小屏仍受 94vw 约束自动收缩） */
.modal.xwide { width: 900px; }
.modal h3 { margin-top: 0; font-size: 17px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* —— 弹窗"专业版"统一规范（class="pro" 启用；不影响旧弹窗）—— */
.modal.pro { padding: 22px 26px 16px; }
.modal.pro > h3:first-child { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.modal-pro-desc { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 14px; padding: 10px 12px; background: #f7f8fc; border-radius: 10px; border-left: 3px solid var(--primary-soft); }
.modal-pro-section { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fafbff; }
.modal-pro-section > .sec-title { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.modal-pro-section .field:last-child { margin-bottom: 0; }
/* 行内胶囊复选（视觉更明确，避免「仅下载…」散到裸 checkbox） */
.modal .check-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fafbff; cursor: pointer; user-select: none; font-size: 13px; transition: all .15s; white-space: nowrap; width: max-content; max-width: 100%; flex-shrink: 0; align-self: flex-start; }
.modal .check-pill input { margin: 0; transform: scale(1.05); cursor: pointer; flex-shrink: 0; }
.modal .check-pill:hover { border-color: var(--primary); }
.modal .check-pill.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); font-weight: 500; }
/* v681：从学员库添加已有学员（编班）弹层清单
   v681.1：改 grid + minmax(0,1fr)，显式 word-break:normal / overflow-wrap:break-word，
          根治 .modal{overflow-wrap:anywhere} 在窄列里把 "13891901320" / CJK 逐字竖排 */
.lib-list { width: 100%; max-height: 52vh; overflow: auto; margin: 4px 0 2px; box-sizing: border-box; }
.lib-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
  width: 100%;
  box-sizing: border-box;
}
.lib-row:hover { border-color: var(--primary); }
.lib-row .lib-chk { margin: 0; transform: scale(1.1); cursor: pointer; justify-self: start; }
.lib-row .lib-name { font-weight: 600; font-size: 14px; white-space: nowrap; }
.lib-row .lib-meta {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.lib-hint { color: var(--muted); font-size: 12.5px; margin: 2px 0 8px; }
/* 即便外层是 .field（block 容器），也强制让胶囊保持内容宽度 */
.modal .field > .check-pill { width: max-content; }
/* 朴素 checkbox 行（替代 .check-pill，用在「让文字直接靠近选框」的场景）
   注意：必须在 .modal 全局 label{display:block} 下也能稳定横排——
   原因：global label { display:block } + inline-flex + 匿名文本节点会触发 min-content=1ch 收缩，
   让每个字独占一行。用 inline-block + 直接 flex 布局在 input/span 子元素上，更可控。 */
.modal .check-row { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; font-size: 13px; font-weight: 400; padding: 4px 0; color: #334155; white-space: nowrap; }
.modal .check-row, .modal .check-row * { min-width: 0; }
.modal .check-row input[type=checkbox] { margin: 0; cursor: pointer; transform: scale(1.15); flex: 0 0 auto; -webkit-appearance: checkbox; appearance: checkbox; }
.modal .check-row > span { display: inline-block; white-space: nowrap; }
/* 弹窗 pro：表单控件统一样式（避免 input/select 文字被截、宽度跑偏） */
.modal.pro .field input[type=text], .modal.pro .field input[type=number], .modal.pro .field input[type=date], .modal.pro .field input[type=datetime-local], .modal.pro .field input[type=password], .modal.pro .field input[type=email], .modal.pro .field input[type=tel], .modal.pro .field input[type=search], .modal.pro .field input[type=file], .modal.pro .field textarea, .modal.pro .field select { width: 100%; min-width: 0; max-width: 100%; padding: 8px 10px; box-sizing: border-box; }
.modal.pro .field select { padding-right: 28px; }
.modal.pro .field select option { padding: 6px 8px; }
.modal.pro .field input[readonly], .modal.pro .field select:disabled { background: #f5f6fa; color: #888; cursor: not-allowed; }
.modal.pro .field input[type=number], .modal.pro .field input[type=date], .modal.pro .field input[type=datetime-local] { max-width: 200px; }
.modal.pro .field input[type=file] { padding: 6px 8px; }
/* v688：新建/编辑班级——班主任姓名自动补全的关联信息提示行（姓名+手机号配对结果反馈） */
.modal.pro .field .ht-hint { font-size: 11.5px; line-height: 1.6; margin-top: 5px; color: #9aa6b8; word-break: break-all; }
.modal.pro .field input.ht-phone[readonly] { background: #f5f6fa; color: #6b7a90; cursor: not-allowed; }
/* 主操作按钮（让「开始下载/保存」之类的主操作一眼可辨） */
.modal .actions > .pri { padding: 9px 22px; font-weight: 600; background: var(--primary); box-shadow: 0 4px 12px rgba(55,48,163,.18); }
.modal .actions > .pri:hover { background: var(--primary-dark); }
.modal .actions > .ghost.sm { padding: 6px 12px; font-size: 12px; }
/* 弹窗内：按钮行 / 段落分隔线（替代 inline hr/各种 style=margin） */
.modal .modal-actions-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.modal .modal-sep { border: none; border-top: 1px dashed var(--border); margin: 14px 0; }
/* 统计数字卡 */
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat .num { font-size: 27px; font-weight: 800; color: var(--primary); }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat-num { font-size: 27px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
/* 智能评语概要区 */
.summary-box { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border: 1px solid #c7d2fe; border-radius: 12px; padding: 14px 18px; }
.summary-box p { margin: 0 0 10px; line-height: 1.7; color: #1e293b; }
.summary-box p:last-child { margin-bottom: 0; }
/* 二维码容器 */
.qr-box { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.qr-box canvas, .qr-box img { display: block; }
/* 题块 */
.question { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fcfcff; }
.question .qt { font-weight: 600; margin-bottom: 10px; }
/* v482: 学员端章节标题——大字号、左蓝条、不计入题号 */
.survey-section { font-size: 18px; font-weight: 700; color: #2c3e50; padding: 14px 14px 14px 18px; margin: 18px 0 14px; background: linear-gradient(to right, rgba(91, 143, 249, 0.08), transparent 70%); border-left: 4px solid #5b8ff9; border-radius: 6px; line-height: 1.5; }
/* 题块、留言、作业等长文本自动换行 */
.text-wrap, .question > div:not(.qt), .note-text, .hw-sub-body { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.ref-img { max-width: 220px; max-height: 220px; border-radius: 10px; margin-top: 6px; display: block; border: 1px solid var(--border); cursor: zoom-in; object-fit: cover; }
.opt { display: block; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 7px; cursor: pointer; background: #fff; transition: all .15s; }
.opt:hover { border-color: var(--primary); }
.opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.opt input { width: auto; margin-right: 8px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px); text-align: center; line-height: 1.4; }
.toast.show { opacity: 1; }
/* 学员移动端：toast 必须跳出底部 tabbar，否则用户根本看不到错误信息 */
body.role-student .toast { bottom: calc(64px + 16px + env(safe-area-inset-bottom, 0px)); z-index: 10001; max-width: calc(100vw - 32px); }
/* 学员移动端登录卡内嵌错误条：与 toast 双保险，永远不会丢 */
.login-card .login-err { display:none; margin-top:10px; padding:10px 12px; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; border-radius:8px; font-size:13px; line-height:1.5; word-break:break-all; }
.login-card .login-err.show { display:block; }
/* ============================================================================
   登录页：PC 与移动端两套完全独立的 UI —— 严禁共享类名！
   PC 端只用 .login-pc-* ；移动端只用 .login-mobile-* ；二者类名零交集。
   任何一边改动样式都绝不会泄漏到另一边（修复此前“改一处崩两处”的顽疾）。
   ============================================================================ */

/* ---------- PC 登录（独立命名空间 .login-pc-*） ---------- */
.login-pc { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
/* 顶部细导航：白底 */
.login-pc-topbar { height: 56px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 80px; z-index: 3; position: relative; }
.login-pc-brand { display: flex; align-items: center; gap: 10px; }
.login-pc-logo { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-pc-logo img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.login-pc-logo svg { width: 30px; height: 30px; }
.login-pc-name { font-size: 17px; font-weight: 500; color: #1e293b; }
.login-pc-links { margin-left: auto; display: flex; gap: 24px; }
.login-pc-links a { font-size: 13px; color: #475569; text-decoration: none; cursor: pointer; }
.login-pc-links a:hover { color: #2563EB; }
/* 主区：浅色背景 + 左插画 + 右登录卡 */
.login-pc-hero { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 80px; gap: 40px; background: linear-gradient(135deg, #f8fafc 0%, #e8f0fa 100%); }
.login-pc-deco1, .login-pc-deco2, .login-pc-deco3 { position: absolute; border-radius: 50%; }
.login-pc-deco1 { width: 440px; height: 440px; background: #bfdbfe; opacity: .6; top: 20px; left: -120px; }
.login-pc-deco2 { width: 360px; height: 360px; background: #c7d2fe; opacity: .65; top: 240px; left: 240px; }
.login-pc-deco3 { width: 200px; height: 200px; background: #fde68a; opacity: .6; top: 60px; right: -60px; }
.login-pc-left { flex: 1; z-index: 1; max-width: 720px; align-self: flex-start; padding-top: 48px; }
.login-pc-sub { font-size: 17px; color: #475569; margin: 0 0 32px; }
/* 简笔人物插画 */
.login-pc-illu { position: relative; width: 540px; height: 240px; margin-top: 8px; }
.login-pc-desk { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 540px; height: 8px; background: #cbd5e1; border-radius: 4px; }
.login-pc-person { position: absolute; bottom: 60px; text-align: center; }
.login-pc-person .head { display: block; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 4px; }
.login-pc-person .body { display: block; width: 44px; height: 60px; border-radius: 8px; margin: 0 auto; }
.login-pc-person.p1 { left: 16px; }
.login-pc-person.p1 .head { background: #fde68a; }
.login-pc-person.p1 .body { background: #3b82f6; }
.login-pc-person.p2 { left: 130px; }
.login-pc-person.p2 .head { background: #fbcfe8; }
.login-pc-person.p2 .body { background: #0ea5e9; width: 50px; height: 68px; }
.login-pc-person.p3 { left: 270px; bottom: 80px; }
.login-pc-person.p3 .head { background: #c4b5fd; width: 36px; height: 36px; }
.login-pc-person.p3 .body { background: #dc2626; width: 56px; height: 72px; }
.login-pc-person.p4 { left: 410px; }
.login-pc-person.p4 .head { background: #fdba74; }
.login-pc-person.p4 .body { background: #10b981; }
.login-pc-plant { position: absolute; bottom: 0; }
.login-pc-plant .leaf { display: block; width: 36px; height: 120px; background: #86efac; border-radius: 8px; }
.login-pc-plant .top { position: absolute; top: -10px; left: 4px; width: 28px; height: 28px; background: #16a34a; border-radius: 50%; }
.login-pc-plant-l { left: -50px; }
.login-pc-plant-r { right: -50px; }
.login-pc-plant-r .leaf { height: 100px; }
/* PC hero 启用了上传的背景图（login_bg_url）：整块铺满背景，隐藏 CSS 装饰圆与简笔插画，左侧标题加磨砂面板保证任意底图上都可读 */
.login-pc-hero.has-bg {
  background-image: var(--login-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8f0fa;
}
.login-pc-hero.has-bg .login-pc-deco1, .login-pc-hero.has-bg .login-pc-deco2, .login-pc-hero.has-bg .login-pc-deco3, .login-pc-hero.has-bg .login-pc-illu, /* 上传背景图后用户把文字做进图里，不需要再叠磨砂面板；.login-pc-left 整体隐藏 */
.login-pc-hero.has-bg .login-pc-left { display: none; }
/* 登录卡 */
.login-pc-card { position: relative; z-index: 2; width: 360px; background: rgba(255,255,255,0.45); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,0.6); border-radius: 14px; padding: 32px 28px 28px; box-shadow: 0 12px 32px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,0.7); margin-left: auto; margin-right: 280px; }
.login-pc-card-title { font-size: 22px; font-weight: 500; color: #1e293b; margin: 0 0 6px; }
.login-pc-card-brand { font-size: 13px; color: #64748b; margin-bottom: 22px; }
.login-pc-tabs { display: flex; gap: 24px; border-bottom: 1px solid #f1f5f9; margin-bottom: 22px; }
.login-pc-tab { background: none; border: none; font-size: 15px; font-weight: 500; color: #94a3b8; padding: 0 0 10px; cursor: pointer; font-family: inherit; position: relative; }
.login-pc-tab.active { color: #2563EB; }
.login-pc-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: #2563EB; }
.login-pc-field { margin-bottom: 16px; }
.login-pc-field label { display: block; margin-bottom: 6px; color: #475569; font-size: 12px; font-weight: 500; }
.login-pc-input-wrap { display: flex; align-items: center; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7); border-radius: 8px; height: 44px; padding: 0 14px; }
.login-pc-input-wrap:focus-within { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.login-pc-prefix { color: #94a3b8; font-size: 13px; border-right: 1px solid #e5e7eb; padding-right: 10px; }
.login-pc-input { border: none; outline: none; flex: 1; padding: 0 10px; font-size: 14px; color: #1e293b; background: transparent; font-family: inherit; }
.login-pc-input::placeholder { color: #cbd5e1; }
.login-pc-eye { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 15px; padding: 0 2px; }
.login-pc-eye:hover { color: #2563EB; }
.login-pc-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 12px; }
.login-pc-check { color: #475569; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.login-pc-check input { width: 14px; height: 14px; accent-color: #2563EB; }
.login-pc-link { color: #2563EB; text-decoration: none; cursor: pointer; }
.login-pc-link:hover { text-decoration: underline; }
.login-pc-submit { width: 100%; height: 46px; border: none; border-radius: 8px; background: linear-gradient(135deg, #3B82F6, #2563EB); color: #fff; font-size: 16px; font-weight: 500; cursor: pointer; font-family: inherit; }
.login-pc-submit:active { transform: translateY(1px); }
.login-pc-err { display: none; margin-top: 12px; padding: 10px 12px; background: rgba(254,242,242,0.7); color: #b91c1c; border: 1px solid rgba(254,202,202,0.8); border-radius: 10px; font-size: 13px; line-height: 1.5; word-break: break-all; text-align: left; }
.login-pc-err.show { display: block; }
.login-pc-adv { margin-top: 12px; font-size: 12px; color: #94a3b8; }
.login-pc-hint { display: none; } /* v506-b：登录窗口不再显示说明文字，仅保留 class 防止历史引用报错 */
/* v506-b：登录胶囊选项卡——管理员/班主任/督导/学员 */
/* 角色胶囊选项卡：4 个一排内联，flex:1 均分宽度（登录卡 360px 内容区 304px） */
.login-role-tabs { display: flex; gap: 5px; margin: 2px 0 20px; }
.login-role-tab {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #5a6478;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background .15s, color .15s, opacity .15s;
  user-select: none;
}
.login-role-tab:hover:not(:disabled):not(.disabled) { background: rgba(24,95,165,.08); color: #185FA5; }
.login-role-tab.active { background: #185FA5; color: #fff; font-weight: 500; }
.login-role-tab.active:hover { background: #185FA5; color: #fff; }
.login-role-tab:disabled,
.login-role-tab.disabled {
  background: #f0f2f5;
  color: #b8bfcc;
  cursor: not-allowed;
  opacity: .85;
}
.login-pc .qr-box { margin: 16px auto; padding: 14px; background: rgba(255,255,255,0.5); border-radius: 14px; text-align: center; width: fit-content; }
.login-pc .qr-hint { margin-top: 10px; font-size: 12px; color: #9aa3af; text-align: center; }
.qr-status { margin-top: 12px; font-size: 12px; text-align: center; min-height: 18px; }
.qr-status.ok { color: var(--primary); }
.qr-status.err { color: #ef4444; }
.qr-refresh { margin: 10px auto 0; display: block; }
/* H5 扫码登录确认页 */
.qr-confirm-desc { font-size: 14px; color: #1f2937; line-height: 1.6; margin: 8px 0 18px; }
.qr-confirm-field { margin-bottom: 16px; }
.qr-confirm-field label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; font-weight: 500; }
.qr-confirm-err { color: #ef4444; font-size: 12px; min-height: 16px; margin-top: 6px; }
/* 底部单行版权 */
.login-pc-foot { background: #f8fafc; padding: 22px 80px; text-align: center; font-size: 12px; color: #94a3b8; border-top: 1px solid #e5e7eb; }
/* ---------- 移动端登录（独立命名空间 .login-mobile-*） ---------- */
.login-mobile { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #F2F3F5; }
/* 横幅：青绿渐变 */
.login-mobile-banner { position: relative; overflow: hidden; padding: 30px 24px 30px; background:
    linear-gradient(135deg, #2ECC71 0%, #16A085 55%, #0E8C6A 100%); }
/* 上传的弧形 PNG 作为前景层，覆盖在渐变背景之上（z-index 高于背景、低于文字）；透明处露出绿渐变；banner 本身是矩形窗口，弧形由图片自己决定 */
.login-mobile-banner-fg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
/* 上传了图时，去掉 banner 自带的绿色渐变底，只显示用户图片（避免矩形边缘/透明处还透出绿） */
.login-mobile-banner.has-fg { background: transparent; }
.login-mobile-avatar { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; background: #fff; margin: 30px auto 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(15,40,35,.22); }
.login-mobile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.login-mobile-avatar svg { width: 40px; height: 40px; display: block; }
.login-mobile-title { position: relative; z-index: 1; margin: 0; text-align: center; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.login-mobile-sub { position: relative; z-index: 1; margin: 8px 0 0; text-align: center; color: rgba(255,255,255,.92); font-size: 14px; }
/* 表单 */
.login-mobile-body { flex: 1; padding: 51px 24px 8px; background: transparent; }
.login-mobile-field { margin-bottom: 14px; }
.login-mobile-input { width: 100%; height: 54px; padding: 0 18px; font-size: 16px; background: #fff; border: 1.8px solid #2ECC71; border-radius: 14px; color: #1f2937; box-sizing: border-box; transition: box-shadow .15s, border-color .15s; font-family: inherit; }
.login-mobile-input::placeholder { color: #9aa3af; }
.login-mobile-input:focus { outline: none; border-color: #16A085; box-shadow: 0 0 0 3px rgba(46,204,113,.18); }
.login-mobile-submit { width: 100%; height: 52px; margin-top: 6px; border: none; border-radius: 28px; background: linear-gradient(135deg, #2ECC71, #16A085); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 4px; cursor: pointer; box-shadow: 0 10px 24px rgba(22,160,133,.32); font-family: inherit; }
.login-mobile-submit:active { transform: translateY(1px); }
.login-mobile-err { display: none; margin-top: 12px; padding: 10px 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; font-size: 13px; line-height: 1.5; word-break: break-all; text-align: center; }
.login-mobile-err.show { display: block; }
.login-mobile-back { display: block; margin-top: 14px; text-align: center; font-size: 13px; color: #6b7280; text-decoration: none; }
.login-mobile-back:hover { color: #16A085; }
.login-mobile-adv { margin-top: 8px; font-size: 12px; color: #94a3b8; }
.login-mobile-foot { text-align: center; font-size: 12px; color: #9aa3af; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); width: 100%; }

/* ===== B3-1(#7)：同手机号多身份登录——身份选择器（PC 登录卡 / 移动端登录卡 / 游客登录通用） ===== */
.login-role-picker { margin-top: 14px; padding: 14px; border: 1px solid #cfe8dd; border-radius: 12px; background: #f4fbf8; text-align: left; }
.login-role-picker-title { font-size: 13px; font-weight: 600; color: #345; margin-bottom: 10px; line-height: 1.5; }
.login-role-picker-list { display: flex; flex-direction: column; gap: 8px; }
.login-role-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid #cfe8dd; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.login-role-item:hover { border-color: #16A085; box-shadow: 0 2px 10px rgba(22,160,133,.15); }
.login-role-badge { flex: none; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: #16A085; }
.login-role-badge.r-admin { background: #8E44AD; color: #fff; }
.login-role-badge.r-headteacher { background: #1d4ed8; color: #fff; }
.login-role-badge.r-teacher { background: #16A085; color: #fff; }
.login-role-badge.r-supervisor { background: #b45309; color: #fff; }
.login-role-badge.r-student { background: #047857; color: #fff; }
.login-role-name { flex: 1; min-width: 0; font-size: 14px; color: #234; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-role-arrow { flex: none; color: #9fb8b0; font-size: 18px; line-height: 1; }
.login-role-cancel { margin-top: 10px; width: 100%; padding: 8px; border: none; background: transparent; color: #7a8a86; cursor: pointer; font-size: 13px; font-family: inherit; }
.login-role-cancel:hover { color: #16A085; }

/* ===== v506：多角色免密切换（PC 顶栏下拉角色区 + 移动端底部弹层共用） ===== */
.user-menu-roles { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #eef0f3; }
.role-switch-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid #e3e7ec; border-radius: 8px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; font-size: 13px; transition: border-color .15s, background .15s; }
.role-switch-row:hover:not(.current) { border-color: #b9c6d4; background: #f7f9fb; }
.role-switch-row.current { cursor: default; background: #f4f6f8; border-color: #dfe5ec; }
.role-switch-name { flex: 1; min-width: 0; color: #234; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-switch-check { flex: none; font-size: 12px; color: #16A085; font-weight: 600; }
.role-switch-go { flex: none; color: #9fb0bd; font-size: 16px; line-height: 1; }
.user-name-role { color: #8a97a5; font-size: 12px; }
/* v515 #10：顶栏用户菜单胶囊内显示登录 ID（小字等宽，随 .user-name 在移动端一并隐藏） */
.user-id-chip { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; opacity: .85; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .3px; user-select: all; }
/* 移动端底部弹层 */
.role-switch-sheet { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: center; }
.role-switch-mask { position: absolute; inset: 0; background: rgba(15, 30, 25, .45); }
.role-switch-panel { position: relative; width: 100%; max-width: 460px; max-height: 72vh; overflow-y: auto; background: #fff; border-radius: 16px 16px 0 0; padding: 16px 14px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; animation: roleSheetUp .22s ease; }
@keyframes roleSheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.role-switch-panel-title { font-size: 16px; font-weight: 700; color: #234; text-align: center; }
.role-switch-panel-sub { font-size: 12px; color: #8a97a5; text-align: center; margin-top: -4px; }
.role-switch-panel .role-switch-row { padding: 12px; font-size: 14px; border-radius: 10px; }
.role-switch-cancel { margin-top: 6px; padding: 11px; border: none; border-radius: 10px; background: #f1f4f7; color: #5a6a78; font-size: 14px; cursor: pointer; font-family: inherit; }
.role-switch-cancel:hover { background: #e7ecf1; }
/* PC 端弹层改为居中小卡 */
@media (min-width: 769px) {
  .role-switch-sheet { align-items: center; padding: 20px; }
  .role-switch-panel { border-radius: 14px; width: 340px; }
}

/* ===== 学员移动端首页 v3 / 平台说明 / 联系我们 / 搜索 ===== */
.mobile-student { background: #F4F6F8; }
/* 学员端整体浅灰背景（卡片之间留白） */
.mobile-student .stu-home { margin: 0; background: #F4F6F8; }
.mobile-student .stu-head {
  position: relative;  /* 给 .stu-head-cls 绝对定位用 */
  background: linear-gradient(135deg, #2ECC71, #16A085); color: #fff;
  padding: 38px 20px 18px;  /* padding-top 38 容纳右上角班级 pill 浮在头像旁 */
}
.mobile-student .stu-head-row { display: flex; align-items: center; gap: 14px; }
.mobile-student .stu-head-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; }
.mobile-student .stu-head-avatar svg { width: 28px; height: 28px; display: block; }
.mobile-student .stu-head-info { flex: 1; min-width: 0; overflow: hidden; padding-right: 130px; }
/* 右侧留 130 给班级 pill 浮 */
.mobile-student .stu-head-name { font-size: 21px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-student .stu-head-sub { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 班级 pill 浮到 jaded 右上角 */
.mobile-student .stu-head-cls {
  position: absolute; top: 18px; right: 18px;
  display: inline-flex; align-items: center; gap: 4px; max-width: 160px;
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.22);
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  z-index: 3;
}
/* 多班可切换：加箭头 + 班级数角标，明确提示可点 */
.mobile-student .stu-head-cls.switchable { cursor: pointer; background: rgba(255,255,255,.34); box-shadow: 0 0 0 1px rgba(255,255,255,.45) inset; }
.mobile-student .stu-head-cls.switchable:active { background: rgba(255,255,255,.48); }
.mobile-student .stu-head-cls .scc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-student .stu-head-cls .scc-caret { font-size: 10px; opacity: .9; }
.mobile-student .stu-head-cls .scc-badge { flex: 0 0 auto; font-size: 10px; font-weight: 700; line-height: 1;
  background: #fff; color: #16A085; border-radius: 999px; padding: 2px 5px; }
/* 课程页顶部班级切换条 */
.stu-clsbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stu-clsbar-label { font-size: 12.5px; color: var(--muted); flex: 0 0 auto; }
.stu-cls-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 260px;
  font-size: 13px; font-weight: 700; color: #16A085; background: #E8F8F1;
  border: 1px solid rgba(46,204,113,.3); border-radius: 999px; padding: 5px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 移动端：班级切换胶囊向两边延伸，留 16px 边距 */
.mobile-student .stu-clsbar { padding: 8px 16px 0; }
.mobile-student .stu-cls-chip { flex: 1 1 auto; max-width: none; justify-content: center; padding: 8px 16px; font-size: 14px; }
.stu-cls-chip.switchable { cursor: pointer; }
.stu-cls-chip.switchable:hover { border-color: #2ECC71; background: #d9f3e8; }
.stu-cls-chip .scc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-cls-chip .scc-caret { font-size: 10px; }
.stu-cls-chip .scc-badge { flex: 0 0 auto; font-size: 10px; font-weight: 700; line-height: 1;
  background: var(--primary-strong); color: #fff; border-radius: 999px; padding: 2px 5px; }
.mobile-student .stu-search { display: flex; align-items: center; gap: 10px; margin: -18px 16px 0; background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 12px 16px; box-shadow: 0 8px 22px rgba(15,40,35,.10); cursor: pointer; position: relative; z-index: 2; }
.mobile-student .stu-search-ico { width: 18px; height: 18px; color: #2ECC71; flex: 0 0 auto; }
.mobile-student .stu-search-ico svg { width: 100%; height: 100%; display: block; }
.mobile-student .stu-search-ph { color: #9aa3af; font-size: 14px; }
.mobile-student .stu-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.mobile-student .stu-mcard { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; padding: 16px 14px; box-shadow: 0 2px 8px rgba(15,40,35,.05); cursor: pointer; transition: transform .1s, box-shadow .15s; }
.mobile-student .stu-mcard:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(15,40,35,.1); }
.mobile-student .stu-mcard-ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.mobile-student .stu-mcard-ico svg { width: 22px; height: 22px; display: block; }
.mobile-student .ico-notice { background: #FFF1E6; color: #FB923C; }
.mobile-student .ico-survey { background: #E8F0FE; color: #3B82F6; }
.mobile-student .ico-news { background: #E8F8F1; color: #16A085; }
.mobile-student .ico-kp { background: #EDE9FE; color: #6366F1; }
.mobile-student .stu-mcard-body { min-width: 0; }
.mobile-student .stu-mcard-t { font-size: 15px; font-weight: 700; color: #1f2937; }
.mobile-student .stu-mcard-s { margin-top: 4px; font-size: 12px; color: #9aa3af; }
.mobile-student .stu-dot { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
/* 更多工具 + 工具列表：统一浅灰底 + 卡片白底浮在上面 */
.mobile-student .stu-section-title { padding: 22px 18px 8px; font-size: 17px; font-weight: 700; color: var(--text); background: #F4F6F8; }
.mobile-student .stu-more { padding: 4px 16px calc(64px + env(safe-area-inset-bottom, 0px)); background: #F4F6F8; }
/* bottom 64 让位传统 tabbar */
.mobile-student .stu-more-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-more-item:active { background: #f6fbf8; }
.mobile-student .stu-more-ico { width: 22px; height: 22px; color: #16A085; flex: 0 0 auto; }
.mobile-student .stu-more-ico svg { width: 100%; height: 100%; display: block; }
.mobile-student .stu-more-t { flex: 1; font-size: 15px; font-weight: 600; color: #1f2937; }
.mobile-student .stu-more-go { font-size: 22px; color: #c2c8d0; line-height: 1; }
.mobile-student .stu-more-item.danger .stu-more-ico { color: #ef4444; }
.mobile-student .stu-more-item.danger .stu-more-t { color: #ef4444; }
.mobile-student .stu-page { padding: 4px 0 calc(64px + env(safe-area-inset-bottom, 0px)); background: #F4F6F8; min-height: 100%; }
.mobile-student .stu-page-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; padding: 18px 16px; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-page-h { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: #1f2937; }
.mobile-student .stu-help-item { padding: 10px 0; border-top: 1px solid #f0f2f5; }
.mobile-student .stu-help-item:first-of-type { border-top: none; }
.mobile-student .stu-help-t { font-size: 14px; font-weight: 700; color: #16A085; }
.mobile-student .stu-help-s { margin-top: 5px; font-size: 13px; color: #5b6470; line-height: 1.7; }
.mobile-student .stu-page-tip { margin: 14px 4px 0; font-size: 12.5px; color: #9aa3af; text-align: center; }
.mobile-student .stu-contact-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #f0f2f5; }
.mobile-student .stu-contact-row:first-of-type { border-top: none; }
.mobile-student .stu-contact-ico { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: #E8F8F1; color: #16A085; display: flex; align-items: center; justify-content: center; }
.mobile-student .stu-contact-ico svg { width: 20px; height: 20px; display: block; }
.mobile-student .stu-contact-t { font-size: 15px; font-weight: 700; color: #1f2937; }
.mobile-student .stu-contact-s { margin-top: 3px; font-size: 13px; color: #5b6470; }
/* ===== 在线咨询智能体（移动端 jade 聊天） ===== */
.mobile-student .stu-consult-page { padding: 0; background: #F4F6F8; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.mobile-student .stu-chat-scroll { padding: 14px 14px 4px; flex: 1 1 auto; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.mobile-student .stu-chat-welcome { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; animation: stu-bubble-in .35s ease both; }
.mobile-student .stu-chat-bot-ava { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg,#2ECC71,#16A085); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(46,204,113,.35); animation: stu-bot-breathe 3s ease-in-out infinite; }
.mobile-student .stu-chat-bot-ava svg { width: 20px; height: 20px; display: block; }
.mobile-student .stu-chat-row { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; }
.mobile-student .stu-chat-row-user { flex-direction: row-reverse; }
.mobile-student .stu-chat-bubble { max-width: 78%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.65; word-break: break-word; white-space: pre-wrap; animation: stu-bubble-in .28s ease both; -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.mobile-student .stu-chat-bot { background: #fff; color: #2b3640; border: 1px solid #eef1f4; border-top-left-radius: 4px; box-shadow: 0 1px 3px rgba(15,40,35,.04); }
.mobile-student .stu-chat-user { background: var(--primary-strong); color: #fff; border-top-right-radius: 4px; }
.mobile-student .stu-chat-err { color: #e5484d; }
.mobile-student .stu-chat-quick { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px 0; }
.mobile-student .stu-chip { border: 1px solid #d9e8de; background: #fff; color: #16A085; font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.mobile-student .stu-chip:active { background: #E8F8F1; }
.mobile-student .stu-chip-human { color: #6366F1; border-color: #e0e2fb; }
.mobile-student .stu-chip-human:active { background: #eef0fe; }
.mobile-student .stu-chat-inputbar { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; padding: 8px 14px env(safe-area-inset-bottom, 0px); background: #F4F6F8; border-top: 1px solid #e6e9ee; position: relative; z-index: 50; }
.mobile-student .stu-chat-input { flex: 1 1 auto; height: 44px; border: 1.5px solid #e6e9ee; border-radius: 22px; padding: 0 16px; font-size: 15px; background: #fff; color: #2b3640; }
.mobile-student .stu-chat-input:focus { outline: none; border-color: #2ECC71; }
.mobile-student .stu-chat-send { flex: 0 0 auto; height: 44px; padding: 0 18px; border: none; border-radius: 22px; background: var(--primary-strong); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.mobile-student .stu-chat-send:active { background: #16A085; }
/* v690：用户开始输入时自动隐藏快速提问 chip（避免挤占对话区）；刷新页面后重新显示 */
.mobile-student .stu-chat-quick-hidden { display: none !important; }
/* 转人工卡片 */
.mobile-student .stu-card-h { font-size: 13.5px; font-weight: 800; color: #16A085; margin-bottom: 8px; }
.mobile-student .stu-card-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mobile-student .stu-card-ico { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: #E8F8F1; color: #16A085; display: flex; align-items: center; justify-content: center; }
.mobile-student .stu-card-ico svg { width: 16px; height: 16px; display: block; }
.mobile-student .stu-card-t { font-size: 13px; font-weight: 700; color: #1f2937; }
.mobile-student .stu-card-s { font-size: 12.5px; color: #5b6470; margin-top: 1px; }
/* 打字动画 */
.mobile-student .stu-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.mobile-student .stu-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b6c2cc; display: inline-block; animation: stu-typing 1.1s infinite ease-in-out; }
.mobile-student .stu-typing i:nth-child(2) { animation-delay: .18s; }
.mobile-student .stu-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes stu-typing { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes stu-bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stu-bot-breathe { 0%,100% { box-shadow: 0 2px 6px rgba(46,204,113,.3); } 50% { box-shadow: 0 2px 14px rgba(46,204,113,.55); } }
@media (prefers-reduced-motion: reduce) {
.mobile-student .stu-chat-bot-ava, .mobile-student .stu-typing i, .mobile-student .stu-chat-welcome, .mobile-student .stu-chat-bubble { animation: none !important; }

}
.mobile-student .stu-search-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.8px solid #2ECC71; border-radius: 14px; padding: 0 14px; margin-bottom: 14px; }
.mobile-student .stu-search-input { border: none; height: 48px; padding: 0; font-size: 15px; background: transparent; }
.mobile-student .stu-search-input:focus { outline: none; box-shadow: none; border: none; }
/* 课堂答题 / 扫码签到 — 学员移动端 jade 卡片 */
.mobile-student .stu-scan-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; padding: 18px 16px; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-scan-sub { font-size: 13px; color: #6b7280; margin-bottom: 14px; line-height: 1.5; }
.mobile-student .stu-scan-current { font-size: 14px; color: #374151; margin-bottom: 16px; }
.mobile-student .stu-scan-current b { color: #16A085; }
.mobile-student .stu-scan-q { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 16px; line-height: 1.5; }
.mobile-student .stu-scan-textwrap { margin-bottom: 2px; }
.mobile-student .stu-scan-opts { display: flex; flex-direction: column; gap: 10px; }
.mobile-student .stu-scan-opt { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1.5px solid #e6e9ee; border-radius: 12px; font-size: 14.5px; color: #374151; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.mobile-student .stu-scan-opt input { accent-color: #2ECC71; width: 18px; height: 18px; flex: 0 0 auto; }
.mobile-student .stu-scan-opt.sel { border-color: #2ECC71; background: #E8F8F1; }
.mobile-student .stu-scan-textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #e6e9ee; border-radius: 12px; padding: 12px; font-size: 14.5px; color: #374151; resize: vertical; font-family: inherit; }
.mobile-student .stu-scan-textarea:focus { outline: none; border-color: #2ECC71; }
.mobile-student .stu-scan-submit { margin-top: 18px; width: 100%; padding: 13px; border: none; border-radius: 12px; background: var(--primary-strong); color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.mobile-student .stu-scan-submit:active { background: #16A085; }
.mobile-student .stu-scan-ok { margin-top: 16px; text-align: center; padding: 12px; border-radius: 12px; background: #E8F8F1; color: #16A085; font-size: 15px; font-weight: 700; }
.mobile-student .stu-search-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e6e9ee; border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-search-row:active { background: #f6fbf8; }
.mobile-student .stu-search-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #16A085; background: #E8F8F1; padding: 2px 8px; border-radius: 6px; }
.mobile-student .stu-search-title { flex: 1; min-width: 0; font-size: 14px; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-box { position: relative; height: 320px; }
.part-block > .row { border-bottom: 2px solid var(--primary) !important; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tip { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 13px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: .3px; color: var(--primary); background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
/* 星级评价 */
.stars { display: flex; gap: 6px; font-size: 28px; cursor: pointer; }
.stars .star { color: #d1d5db; transition: color .15s; }
.stars .star.on { color: #ffca28; }
/* 留言墙 */
.notes-wall { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.note-item { border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 14px; background: #fff; animation: noteIn .3s ease; }
.note-item.read { border-left-color: var(--muted); background: #f8fafc; opacity: .8; }
.note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.note-head .badge.red { margin-left: auto; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* 徽章墙 */
.badge-wall { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-item { width: 130px; text-align: center; padding: 14px 8px; border: 1px dashed var(--border); border-radius: 14px; background: #f8fafc; opacity: .6; transition: all .2s; }
.badge-item.on { border-style: solid; border-color: var(--primary); background: var(--primary-soft); opacity: 1; transform: translateY(-2px); }
.badge-ico { font-size: 30px; }
.badge-name { font-weight: 600; margin-top: 4px; font-size: 13px; }
.badge-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: all .2s; }
.rank-item:hover { box-shadow: var(--shadow); }
.rank-item.me { border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.rank-no { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--primary-strong); color: #fff; font-size: 13px; }
.rank-pts { margin-left: auto; color: var(--primary); font-weight: 600; }
/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.pager .pg { min-width: 32px; text-align: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; background: #fff; }
.pager .pg.active { background: var(--primary-strong); color: #fff; border-color: var(--primary); }
.pager .pg:hover:not(.active) { background: var(--primary-soft); }
.pager .pg-info { color: var(--muted); font-size: 13px; }
/* 页面底部居中：返回 / 前进（随内容滚动） */
.nav-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; padding: 18px 0 8px; border-top: 1px dashed var(--border); }
.nav-footer button { min-width: 116px; }
/* ============ 栏目导航管理 ============ */
.nav-tree { display: flex; flex-direction: column; gap: 6px; }
.nav-node { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.nav-node.child { margin-left: 26px; background: #fafbff; }
.nav-node .line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-node .nm { font-weight: 600; }
.nav-node .rt { color: var(--muted); font-size: 12px; }
.nav-node.off { opacity: .5; }
.nav-head-sub { font-size: 12px; font-weight: 500; color: #8a94a6; margin-left: 10px; }
.nav-role-badge { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; white-space: nowrap; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.5; }
.nav-role-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.nav-role-badge[data-role="headteacher"] { color: #d35400; background: rgba(230, 126, 34, .14); }
.nav-role-badge[data-role="teacher"] { color: #2471a3; background: rgba(41, 128, 185, .14); }
.nav-role-badge[data-role="supervisor"] { color: #1e8449; background: rgba(39, 174, 96, .14); }
.nav-role-badge[data-role="student"] { color: #00838f; background: rgba(0, 131, 143, .14); }
.tree-actions { display: flex; gap: 6px; margin-left: auto; }
.mini { padding: 3px 9px; font-size: 12px; border-radius: 7px; color: #fff; }
.mini.ghost { border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; }
.mini.ghost:hover { background: var(--primary-soft); }
/* ============ 字段管理 ============ */
.field-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.field-row .k { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); }
.field-row .lb { font-weight: 600; }
.field-row .ty { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); }
.field-row.base { background: #fafbff; cursor: grab; }
.field-row.custom { border-left: 3px solid var(--green); cursor: grab; }
.field-row.custom:active { cursor: grabbing; }
.field-row.dragging { opacity: .45; border-style: dashed; }
.drag-h { color: var(--muted); font-size: 16px; line-height: 1; cursor: grab; user-select: none; }
.field-row .tree-actions .mini[disabled] { opacity: .35; cursor: not-allowed; }
.tab-row { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { padding: 8px 16px; border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; font-size: 14px; }
.tab-btn:hover:not(.active) { background: var(--primary-soft); }
.tab-btn.active { background: var(--primary-strong); color: #fff; border-color: var(--primary); }
/* ============ 数据看板（立体动感大屏）============ */
.dash { position: relative; min-height: 100%; }
/* ============== 后台 Dashboard Hero Banner（满铺背景图 + 天气实况播报） ============== */
.dash-hero {
  position: relative;
  height: 128px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  /* 文字用中灰（非纯白），在浅色背景图上仍可读 */
  color: var(--muted);
  isolation: isolate;
  /* 底层为白色/透明：用户上传图时图覆盖整个 banner 区域，不被彩色渐变遮挡 */
  background: #fff;
  /* 阴影已去掉：用户反馈 banner 阴影显得"飘"，与下方 KPI 卡视觉割裂；让 banner 与内容融为一体 */
  box-shadow: none;
  transition: none;
}
.dash-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;          /* 右对齐：主体内容靠右 */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}
.dash-hero.has-image .dash-hero-bg { opacity: 1; }
.dash-hero.has-image { background: transparent; }
/* 有图时底层完全透明，让图"原样"显示 */
.dash-hero-content {
  position: absolute;
  inset: 0;
  padding: 0 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
/* ============== 欢迎信息块（替代原天气 widget：早上好+姓名+日期+角色，头班主任额外显示班级切换） ==============
   文字深灰 #1f2937 配主题 --muted；与 banner 浅色背景协调；视觉权重接近原温度数字 */
.dash-hero-welcome { display: flex; flex-direction: column; gap: 4px; min-width: 0; pointer-events: auto; }
.dash-hero-greeting-line1 { font-size: 22px; font-weight: 700; color: #1f2937; letter-spacing: .01em; line-height: 1.15; }
.dash-hero-greeting-line1 b { font-weight: 800; }
.dash-hero-greeting-line2 { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.4; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-hero-greeting-line2 .sep { opacity: .55; }
.dash-hero-cls-ctx { display: inline-flex; align-items: center; gap: 5px; max-width: 240px; font-size: 12px; line-height: 1.2; color: var(--primary-dark); padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); border: 1px solid rgba(46,204,113,.25); }
.dash-hero-cls-ctx .cc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dash-hero-cls-ctx .cc-caret { font-size: 10px; color: var(--primary); }
.dash-hero-cls-ctx.multi { cursor: pointer; }
.dash-hero-cls-ctx.multi:hover { border-color: var(--primary); }
.dash-hero-cls-ctx.empty { cursor: default; background: transparent; border-color: transparent; color: var(--muted); }
/* 班主任在 dashboard：顶栏的班级切换隐藏（搬到 hero 左侧槽位 #dashHeroClsCtx） */
body.view-dashboard.role-headteacher .user-col .class-ctx { display: none; }
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  background: rgba(15,23,42,.32);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dash-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(15,23,42,.62);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.dash-hero[data-can-upload="1"] { cursor: pointer; }
.dash-hero[data-can-upload="1"]:hover { box-shadow: 0 12px 36px color-mix(in srgb, var(--primary) 38%, transparent); }
.dash-hero[data-can-upload="1"]:hover .dash-hero-overlay { display: flex; }
/* 旧类名（学员端 E 三栏 banner 用，不动） */
/* 学员端 dashboard banner：青绿 jade 主题色横向渐变背景（90deg，对齐参考图 Plant Delivery APP），白字内容 */
.dash-banner { position:relative; padding: 22px 26px; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); color:#fff; border-radius: 18px; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 22%, transparent); margin-bottom: 18px; overflow: hidden; }
.dash-banner .db-eyebrow { font-size:12px; letter-spacing:.18em; font-weight:700; color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); padding: 4px 10px; border-radius: 999px; display: inline-block; }
.dash-banner .db-title { margin:8px 0 6px; font-size:23px; font-weight:800; color:#fff; }
.dash-banner .db-desc { margin:0; font-size:13px; opacity:.92; max-width:640px; line-height:1.6; color:#fff; }
.dash-banner .db-tags { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.dash-banner .db-tags span { background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); padding:5px 12px; border-radius:999px; font-size:12px; font-weight:600; color:#fff; }
.dash-banner .db-actions { display:flex; align-items:center; gap:14px; margin-top:14px; flex-wrap:wrap; }
.dash-banner .dash-live { color:rgba(255,255,255,.92); }
.dash-banner-deco { position:absolute; right:-8px; top:-8px; width:190px; height:190px; color:#fff; opacity:.12; pointer-events:none; }
.dash-banner-deco svg { width:100%; height:100%; }
.db-eyebrow { font-size:12px; letter-spacing:.18em; font-weight:700; opacity:.9; }
.db-title { margin:8px 0 6px; font-size:23px; font-weight:800; }
.db-desc { margin:0; font-size:13px; opacity:.92; max-width:640px; line-height:1.6; }
.db-tags { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.db-tags span { background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); padding:5px 12px; border-radius:999px; font-size:12px; font-weight:600; }
.db-actions { display:flex; align-items:center; gap:14px; margin-top:16px; flex-wrap:wrap; }
.db-actions .ghost.light { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.4); color:#fff; }
.db-actions .ghost.light:hover { background:rgba(255,255,255,.3); }
.db-actions .dash-live { color:rgba(255,255,255,.92); }
.dash-live { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.dash-live .dot { width:9px; height:9px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.6)} 70%{box-shadow:0 0 0 10px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
/* ===== Dashboard 玻璃卡风格 ===== */
/* 内容区铺一层柔和彩色光晕，让毛玻璃的 blur 显形（hero 自带不透明背景不受影响） */
.dash { position: relative; }
.dash > * { position: relative; z-index: 1; }
/* 玻璃高光条已删除（之前 .kpi::after / .dash-panel::after 在浅灰背景上叠 hero 蓝阴影会呈现"蓝白边"，元凶） */

.kpi-grid { display:grid; grid-template-columns: repeat(5,1fr); gap:16px; }
.kpi { position:relative; padding: 18px; border-radius: 16px; overflow:hidden;
  /* 实色白卡 + 灰边 + 主题阴影（去玻璃半透明 + 蓝色外阴影 + 白色 inset 高光；避免在浅灰背景上呈现"顶部蓝色描边"） */
  background: var(--card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; }
.kpi:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.kpi .kpi-label { color:var(--muted); font-size:13px; }
.kpi .kpi-num { font-size: 38px; font-weight: 900; margin-top:4px; color: var(--text); line-height:1.1; }
.kpi .kpi-foot { color:var(--muted); font-size:12px; margin-top:4px; }
.kpi .kpi-icon { position:absolute; right:16px; top:50%; transform:translateY(-50%); width:46px; height:46px; color:var(--primary); opacity:.85; pointer-events:none; }
.kpi .kpi-icon-svg { width:100%; height:100%; display:block; stroke:currentColor !important; fill:none !important; }
/* AI 智能助教监控卡片（管理首页入口） */
.ai-mon-card { margin-top:18px; padding:16px 18px; border-radius:16px; background:var(--card); border:1px solid var(--border); box-shadow:var(--shadow); display:flex; flex-direction:column; gap:12px; }
.ai-mon-card-head { display:flex; align-items:center; gap:12px; }
.ai-mon-avatar { width:46px; height:46px; flex:none; border-radius:12px; background:#fff; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; }
.ai-mon-avatar svg { width:40px; height:40px; display:block; }
.ai-mon-card-title { flex:1; min-width:0; }
.ai-mon-card-name { font-size:15px; font-weight:800; color:var(--text); }
.ai-mon-card-sub { font-size:12.5px; color:var(--muted); margin-top:2px; }
.ai-mon-card-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.ai-mon-stat { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:10px 6px; border-radius:12px; background:var(--bg); border:1px solid var(--border); }
.ai-mon-stat b { font-size:22px; font-weight:900; color:var(--text); line-height:1.1; }
.ai-mon-stat span { font-size:12px; color:var(--muted); margin-top:3px; }
.ai-mon-stat.hl { background:color-mix(in srgb, #D85A30 14%, var(--bg)); border-color:color-mix(in srgb, #D85A30 40%, var(--border)); }
.ai-mon-stat.hl b { color:#D85A30; }
@media (max-width:1100px) {
.ai-mon-card-stats { grid-template-columns:repeat(3,1fr);}
 }
@media (max-width:560px) {
.ai-mon-card-stats { grid-template-columns:repeat(2,1fr);}
.ai-mon-card-head { flex-wrap:wrap; }
.ai-mon-card .btn { width:100%; }
 }
.dash-main { display:grid; gap:16px; min-width:0; margin-top:18px; }
/* 第一行：折线图 + 大环形图并排（2 列），窄屏堆叠为单列 */
.dash-row-2col { display:grid; grid-template-columns: 1.55fr 1fr; gap:16px; min-width:0; }
@media (max-width: 1100px) {
.dash-row-2col { grid-template-columns: 1fr; }
 }
.dash-panel { position:relative;
  /* 实色白卡 + 灰边 + 主题阴影（去玻璃半透明 + 蓝色外阴影 + 白色 inset 高光；避免在浅灰背景上呈现"顶部蓝色描边"） */
  background: var(--card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s; }
.dash-panel:hover { box-shadow: var(--shadow-lg); }
.dash-panel h4 { margin:0 0 14px; font-size:15px; color:var(--text); display:flex; align-items:center; gap:8px; font-weight:800; }
/* 大环形图：自适应主题色（var(--primary) 系列） */
.dash-donut-panel { display:flex; flex-direction:column; }
.big-donut-wrap { position:relative; flex:1; min-height:240px; display:flex; align-items:center; justify-content:center; padding:8px 0; }
.big-donut-wrap svg { width:220px; height:220px; transform:rotate(-90deg); }
.big-donut-wrap circle { fill:none; stroke-width:14; stroke-linecap:round; }
/* 大环形图用统一 .ring-track / .ring-arc（与圆环卡片、趋势环同款）：arc 用 var(--primary)，主题切换自动跟 */
.big-donut-wrap .ring-track { stroke: #e5e7eb; }
.big-donut-wrap .ring-arc { stroke: var(--primary); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.big-donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; gap:6px; }
.bd-num { font-size:42px; font-weight:900; color:var(--primary-dark); line-height:1; letter-spacing:-1px; }
.bd-lbl { font-size:13px; color:var(--muted); font-weight:500; }
.big-donut-legend { display:flex; justify-content:center; gap:24px; margin-top:14px; font-size:13px; color:var(--muted); padding-top:8px; border-top:1px dashed rgba(15,23,42,.08); }
.big-donut-legend .ld-i { display:inline-flex; align-items:center; gap:6px; }
.big-donut-legend .dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--primary); vertical-align:middle; }
.big-donut-legend .dot.muted { background: #cbd5e1; }
/* 近期开班表格（管理端首页 dash-panel 内） */
.recent-classes-table { width:100%; border-collapse:collapse; font-size:13px; }
.recent-classes-table thead th {
  text-align:left; padding:8px 10px; font-weight:700; color:var(--muted);
  border-bottom:2px solid var(--border); white-space:nowrap; font-size:12px;
  text-transform:uppercase; letter-spacing:.3px;
}
.recent-classes-table tbody td {
  padding:9px 10px; border-bottom:1px solid rgba(15,23,42,.06); color:var(--text);
  vertical-align:middle;
}
.recent-classes-table tbody tr:last-child td { border-bottom:none; }
.recent-classes-table tbody tr:hover td { background:rgba(15,23,42,.03); }
.recent-classes-table .rc-name { font-weight:600; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 右侧栏（学员端 E 三栏用） */
.r-card { background: var(--card); border:1px solid var(--border); border-radius:4px; padding:16px; box-shadow: var(--shadow); }
.r-card h4 { margin:0 0 12px; font-size:14px; font-weight:400; display:flex; align-items:center; gap:8px; color:var(--text); }
.r-card h4 .rb-ico { width:18px; height:18px; color:var(--primary); flex:none; }
.r-card h4 .rb-ico svg { width:100%; height:100%; display:block; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.guide-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
a.guide-item, .guide-item { display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 6px; border-radius:12px; background:var(--bg); color:var(--text); font-size:12px; font-weight:400; text-align:center; cursor:pointer; transition:.2s; text-decoration:none; }
.guide-item:hover { background:var(--primary-soft); text-decoration:none; }
.guide-item .g-ico { width:36px; height:36px; border-radius:10px; background:#fff; color:var(--primary); display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(46,204,113,.1); }
.guide-item .g-ico svg, .guide-item .g-ico svg * { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.guide-item .g-ico svg [fill="currentColor"] { fill:currentColor; }
/* 研修指南列表/详情/编辑页 */
.guide-list { display:flex; flex-direction:column; gap:0; margin-top:8px; }
.guide-list-row { display:flex; justify-content:space-between; align-items:flex-start; padding:14px 4px; border-bottom:1px dashed var(--border); gap:14px; flex-wrap:wrap; transition: background .15s; }
.guide-list-row:hover { background: var(--primary-soft); border-radius: 10px; }
.guide-list-row:last-child { border-bottom:0; }
.guide-list-cover { width: 76px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--primary-soft); }
.guide-list-desc { font-size: 13px; color: var(--muted); margin: 5px 0 7px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-list-title { font-size:15px; font-weight:700; color:var(--text); text-decoration:none; flex:1 1 100%; }
.guide-list-title:hover { color:var(--primary); }
.guide-list-meta { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); flex:1 1 auto; flex-wrap:wrap; }
.guide-list-actions { display:flex; gap:6px; flex:none; }
.guide-detail-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.guide-detail-title { margin:6px 0 10px; font-size:22px; font-weight:800; color:var(--text); }
.guide-detail-meta { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); margin-bottom:16px; flex-wrap:wrap; }
.guide-detail-body { line-height:1.85; font-size:14px; color:var(--text); }
.guide-detail-body h1, .guide-detail-body h2, .guide-detail-body h3 { margin:18px 0 10px; }
.guide-detail-body img { max-width:100%; border-radius:8px; }
.guide-detail-body p { margin:8px 0; }
.guide-cover { width:100%; max-height:280px; object-fit:cover; border-radius:12px; margin-bottom:16px; }
.tag { display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; background:var(--bg); color:var(--muted); font-size:11px; border:1px solid var(--border); }
.tag-ok { background:var(--primary-soft); color:var(--primary); border-color:transparent; }
.tag-warn { background:#fff3cd; color:#a06000; border-color:transparent; }
.rte-mount .rte { border:1px solid var(--border); border-radius:10px; background:#fff; }
.rank-item { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px dashed var(--border); }
.rank-item:last-child { border-bottom:0; }
.rank-item .rk { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#fff; background:var(--muted); flex:none; }
.rank-item .rk.gold { background:#f5a623; }
.rank-item .rk.silver { background:#9ca3af; }
.rank-item .rk.bronze { background:#cd7f32; }
.rank-item .rk-info { flex:1; min-width:0; }
.rank-item .rk-name { font-size:13px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-item .rk-meta { font-size:11px; color:var(--muted); }
.rank-item .rk-score { font-size:14px; font-weight:800; color:var(--primary); }
/* 达人榜：白色卡片包裹，条目之间虚线分隔，单个无线框 */
.r-card.r-rank-plain { padding:16px; }
.r-card.r-rank-plain h4 { margin-bottom:12px; }
.r-card.r-rank-plain .rank-item { display:flex; align-items:center; gap:12px; padding:10px 0; border:none; border-bottom:1px dashed var(--border); background:transparent; border-radius:0; box-shadow:none; }
.r-card.r-rank-plain .rank-item:last-child { border-bottom:0; }
.r-card.r-rank-plain .rank-item:hover { box-shadow:none; }
.r-card.r-rank-plain .rk-avatar { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:var(--primary); background:var(--primary-soft); flex:none; }
.r-card.r-rank-plain .rk { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#fff; background:var(--muted); flex:none; }
.r-card.r-rank-plain .rk.gold { background:#f5a623; }
.r-card.r-rank-plain .rk.silver { background:#9ca3af; }
.r-card.r-rank-plain .rk.bronze { background:#cd7f32; }
.r-card.r-rank-plain .rk-info { flex:1; min-width:0; }
.r-card.r-rank-plain .rk-name { font-size:13px; font-weight:400; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.r-card.r-rank-plain .rk-meta { font-size:11px; color:var(--muted); }
.r-card.r-rank-plain .rk-score { margin-left:auto; font-size:14px; font-weight:400; color:var(--primary); }
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-head .m { font-weight:800; font-size:14px; color:var(--text); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; text-align:center; }
.cal-grid .dow { font-size:11px; color:var(--muted); padding:4px 0; font-weight:700; }
.cal-grid .day { font-size:12px; padding:7px 0; border-radius:9px; color:var(--text); cursor:pointer; position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; min-height:30px; justify-content:center; }
.cal-grid .day:hover { background:var(--primary-soft); }
.cal-grid .day .d-num { line-height:1; }
.cal-grid .day .ct-dot { width:5px; height:5px; border-radius:50%; background:var(--primary); display:block; }
.cal-grid .day .ct-num { font-size:9px; color:var(--primary); line-height:1; font-weight:700; }
.cal-grid .day.has-task.overdue .ct-dot { background:#ef4444; }
.cal-grid .day.has-task.overdue .ct-num { color:#ef4444; }
.cal-grid .day.has-task:hover { background:var(--primary-soft); }
.cal-grid .day.today { background:var(--primary); color:#fff; font-weight:800; }
.cal-grid .day.today .ct-dot { background:#fff; }
.cal-grid .day.today .ct-num { color:#fff; }
.cal-grid .day.muted { color:#cbd5e1; }
/* 日历待办弹窗 */
.cal-day-modal { width:360px; max-width:92vw; background:#fff; border-radius:14px; box-shadow:0 20px 60px rgba(15,23,42,.25); overflow:hidden; }
.cal-day-body { max-height:60vh; overflow-y:auto; padding:6px 22px 18px; }
.modal-box { background:#fff; border-radius:14px; box-shadow:0 20px 60px rgba(15,23,42,.25); overflow:hidden; }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 22px 10px; border-bottom:1px solid var(--border); font-weight:700; color:var(--text); }
.modal-body { padding:6px 22px 18px; }
.modal-close { background:transparent; border:0; cursor:pointer; font-size:22px; line-height:1; color:var(--muted); padding:0 4px; border-radius:6px; }
.modal-close:hover { background:var(--bg); color:var(--text); }
.cal-day-row { display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px dashed var(--border); }
.cal-day-row:last-child { border-bottom:0; }
.cal-day-tag { font-size:11px; padding:2px 8px; border-radius:999px; font-weight:700; flex:none; }
.cal-day-tag.tag-ok { background:rgba(34,197,94,.12); color:#16a34a; }
.cal-day-tag.tag-warn { background:rgba(239,68,68,.12); color:#ef4444; }
.cal-day-tag.tag-pending { background:var(--primary-soft); color:var(--primary); }
.cal-day-title { flex:1; font-weight:600; cursor:pointer; color:var(--text); }
.cal-day-title:hover { color:var(--primary); }
.cal-day-meta { font-size:11px; color:var(--muted); flex:none; }
/* ===== dashboard 数据可视化（统一圆环 + 卡片网格；2026-08-07 重构） =====
   设计原则：
   1. 所有图表都用统一的 `.ring` 圆环组件，跟 .big-donut-wrap 大环同款
   2. 圆环弧颜色用 var(--primary) CSS 变量 → 主题切换浏览器自动重渲染，无需 JS 监听
   3. 圆环轨道统一 #e5e7eb 实色灰（100% 不透明，无任何 alpha 叠加）
   4. 数字 ease 计数（保留动画）；stroke-dashoffset 1.2s 补间（保留动画）
   5. 进度条/折线图/cls-* 整组已废弃（彻底删除相关代码） */

/* 通用圆环：宽高/半径/描边统一管理 */
.ring { position:relative; flex-shrink:0; }
.ring svg { width:100%; height:100%; transform: rotate(-90deg); display:block; }
.ring circle { fill:none; stroke-width:10; stroke-linecap:round; }
.ring-track { stroke: #e5e7eb; }
.ring-arc { stroke: var(--primary); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
/* dashboard 图表容器（chart.js canvas 自适应高度） */
.chart-area { position:relative; width:100%; height:240px; padding:6px 0; }
.chart-area-bar { height: 300px; }
@media (max-width: 700px) {
.chart-area { height: 200px; }
.chart-area-bar { height: 240px; }
 }
.cube3d .f1 { transform: translateZ(32px); }
.cube3d .f2 { transform: rotateY(180deg) translateZ(32px); }
.cube3d .f3 { transform: rotateY(90deg) translateZ(32px); }
.cube3d .f4 { transform: rotateY(-90deg) translateZ(32px); }
.cube3d .f5 { transform: rotateX(90deg) translateZ(32px); }
.cube3d .f6 { transform: rotateX(-90deg) translateZ(32px); }
@keyframes spinCube { from{transform: rotateX(-20deg) rotateY(0)} to{transform: rotateX(-20deg) rotateY(360deg)} }
@keyframes spinRing { to{ transform: rotate(360deg);} }
.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from{opacity:0; transform: translateY(14px);} to{opacity:1; transform:none;} }
/* ===== E 方案门户页（首页/数据看板）===== */
body.theme-jade .e-portal { display:flex; flex-direction:column; gap:16px; }
body.theme-jade .e-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
body.theme-jade .e-kpi { background:var(--card); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); padding:16px; display:flex; flex-direction:column; gap:10px; transition:transform .25s, box-shadow .25s; }
body.theme-jade .e-kpi:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
body.theme-jade .e-kpi .top { display:flex; align-items:center; justify-content:space-between; }
body.theme-jade .e-kpi .ico { width:38px; height:38px; border-radius:11px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; color:var(--primary); }
body.theme-jade .e-kpi .ico svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.theme-jade .e-kpi .val { font-size:26px; font-weight:800; color:var(--text); }
body.theme-jade .e-kpi .lab { font-size:12px; color:var(--muted); }
body.theme-jade .e-kpi .delta { font-size:12px; font-weight:700; color:var(--accent); }
body.theme-jade .e-task-card, body.theme-jade .e-portrait-card, body.theme-jade .e-rec-card { background:var(--card); border:1px solid var(--border); border-radius:4px; box-shadow:var(--shadow); padding:18px; }
body.theme-jade .e-card-head { margin:0 0 14px; font-size:15px; font-weight:800; display:flex; align-items:center; gap:8px; color:var(--text); }
body.theme-jade .e-card-head svg { width:18px; height:18px; stroke:var(--primary); fill:none; stroke-width:1.8; }
body.theme-jade .e-task-list { display:flex; flex-direction:column; gap:12px; }
body.theme-jade .e-task-row { display:flex; align-items:center; gap:12px; font-size:13px; }
body.theme-jade .e-task-row .t-nm { flex:1; min-width:0; padding-left:26px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); font-weight:400; }
body.theme-jade .e-task-row .t-tag { padding:2px 8px; border-radius:6px; background:var(--primary-soft); color:var(--primary-dark); font-size:11px; font-weight:700; flex:0 0 auto; }
body.theme-jade .e-task-row .t-tag.tag-submitted { background:rgba(46,204,113,.18); color:#138A72; }
body.theme-jade .e-task-row .t-tag.tag-returned { background:rgba(239,68,68,.12); color:#b91c1c; }
body.theme-jade .e-task-row .t-tag.tag-pending { background:var(--primary-soft); color:var(--primary-dark); }
body.theme-jade .e-task-row .t-due { color:var(--muted); font-size:12px; flex:0 0 auto; white-space:nowrap; }
body.theme-jade .e-task-row .t-bar { flex:0 0 auto; width:84px; height:8px; border-radius:999px; background:var(--border); overflow:hidden; }
body.theme-jade .e-task-row .t-bar i { display:block; height:100%; border-radius:999px; background:var(--primary-soft); transition:width .4s ease; }
body.theme-jade .e-task-row .t-bar.done i { background:var(--primary); }
body.theme-jade .e-task-row .t-pct { width:40px; text-align:right; font-size:12px; font-weight:700; color:var(--muted); flex:0 0 auto; }
body.theme-jade .e-task-row .t-pct.done { color:var(--primary); }
body.theme-jade .e-task-row .t-act { padding:4px 10px; border-radius:999px; background:var(--primary); color:#fff; font-size:12px; font-weight:600; cursor:pointer; border:none; }
body.theme-jade .e-task-row .t-act:hover { background:var(--primary-dark); }
body.theme-jade .e-task-row.disabled { opacity:.55; }
body.theme-jade .e-task-row.disabled .t-act { cursor:not-allowed; opacity:.5; }
body.theme-jade .e-task-row.disabled .t-act:hover { background:var(--primary); }
body.theme-jade .e-chart-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:stretch; }
/* v767：wrap 设 relative 使图例脱离文档流 —— 甜甜圈得以在整列内垂直居中，
   圆心与右列雷达圆心回到同一水平线（原先图例占位把甜甜圈整体顶高了约 34px） */
body.theme-jade .e-donut-wrap { display:flex; flex-direction:column; justify-content:center; gap:10px; position:relative; }
body.theme-jade .e-donut { position:relative; width:170px; height:170px; margin:0 auto; }
body.theme-jade .e-donut svg { width:100%; height:100%; transform:rotate(-90deg); }
body.theme-jade .e-donut-txt { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); text-align:center; }
body.theme-jade .e-donut-txt b { display:block; font-size:28px; font-weight:800; color:var(--primary); }
body.theme-jade .e-donut-txt span { font-size:11px; color:var(--muted); }
body.theme-jade .e-radar { display:flex; justify-content:center; align-items:center; min-width:0; }
body.theme-jade .e-radar svg { width:100%; height:auto; max-width:385px; }
body.theme-jade .e-donut-arc { transition: stroke-dashoffset 1s ease; }
body.theme-jade .e-radar .radar-area { fill: var(--primary-soft) !important; stroke: var(--primary) !important; }
body.theme-jade .e-radar .radar-dot { fill: var(--primary) !important; }
body.theme-jade .e-radar .radar-score-bg { fill:#fff; stroke: var(--primary-soft); }
body.theme-jade .e-radar .radar-score { fill: var(--primary); }
body.theme-jade .e-radar .radar-label { fill: var(--muted); }
body.theme-jade .e-radar .radar-grid { stroke: var(--border); }
body.theme-jade .e-radar .radar-axis { stroke: var(--border); }
body.theme-jade .e-kp-legend { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px 12px; font-size:12px; color:var(--text); text-align:center;
  position:absolute; left:0; right:0; bottom:0; }  /* v767：脱离文档流贴底，不再把甜甜圈顶高 */
body.theme-jade .e-kp-legend span { white-space:nowrap; }
body.theme-jade .e-rec-item { display:flex; gap:12px; padding:10px 0; border-bottom:1px dashed var(--border); align-items:flex-start; }
body.theme-jade .e-rec-item:last-child { border-bottom:0; }
body.theme-jade .e-rec-dot { width:30px; height:30px; border-radius:9px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; flex:none; color:var(--primary); }
body.theme-jade .e-rec-dot svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.8; }
body.theme-jade .e-rec-tx { font-size:13px; line-height:1.5; }
body.theme-jade .e-rec-tx b { color:var(--text); }
body.theme-jade .e-rec-tx .tm { font-size:11px; color:var(--muted); }
body.theme-jade .db-pills .pill { background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25); padding:5px 12px; border-radius:999px; font-size:12px; font-weight:600; color:#fff; cursor:pointer; }
body.theme-jade .db-pills .pill:hover { background:rgba(255,255,255,.24); }
body.theme-jade .db-pills .pill.active { background:#fff; color:var(--primary); }
@media (max-width:1200px) {
body.theme-jade .layout { grid-template-columns: 190px minmax(0,1fr) 240px; }
body.theme-jade .e-kpis { grid-template-columns: repeat(2,1fr); }
body.theme-jade .e-chart-row { grid-template-columns: 1fr; }

}
@media (max-width:1000px) {
body.theme-jade .layout { grid-template-columns: 1fr; grid-template-areas:"topbar" "main"; }
body.theme-jade .sidebar, body.theme-jade .rightbar { display:none; }
body.theme-jade .main { grid-area: main; }

}
/* ============ 通用数据表格：搜索 / 排序 / 批量 / 滚动 ============ */
.dt { margin-top: 12px; }
.dt-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.dt-search-wrap { position: relative; flex: 1; max-width: 360px; display: flex; align-items: center; }
.dt-search { width: 100%; padding: 8px 38px 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.dt-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dt-search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; border: none; background: var(--primary-strong); color: #fff;
  font-size: 14px; cursor: pointer; z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dt-search-btn:hover { background: var(--primary-dark); }
.dt-search-btn:active { transform: translateY(-50%) scale(.96); }
.dt-suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); z-index: 30; max-height: 240px; overflow: auto; }
.dt-suggest-item { padding: 8px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.dt-suggest-item:last-child { border-bottom: none; }
.dt-suggest-item:hover { background: var(--primary-soft); }
.dt-count { color: var(--muted); font-size: 13px; }
.dt-batch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--primary-soft); border: 1px solid #c7d2fe; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.dt-batch-info { font-size: 13px; color: var(--primary); font-weight: 600; }
/* 公共多维搜索条（v518）：可复用于审批 / 留言板等自定义列表页 */
.search-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-bar .search-input { flex: 1 1 220px; min-width: 160px; max-width: 360px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; background: #fff; }
.search-bar .search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-bar .search-filter { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; box-sizing: border-box; color: var(--text); }
.search-bar .search-filter:focus { outline: none; border-color: var(--primary); }
.dt-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.dt table { width: 100%; border-collapse: collapse; background: #fff; }
.dt th, .dt td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; white-space: nowrap; }
/* v499 B2-7(#17)/B2-6(#16)：表格单元格超长省略（title 悬浮看全文） */
.cell-clip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.cell-clip.w240 { max-width: 240px; }
.cell-clip.w280 { max-width: 280px; }
.cell-clip.w380 { max-width: 380px; }
/* v504：班级管理列宽精调——年份/学员数列窄、内容居中或右对齐；班级名称列加宽到 380；班主任姓名 100 截断 */
.dt .dt-col-year, .dt .dt-col-num { width: 80px; min-width: 80px; max-width: 100px; text-align: center; }
.dt .dt-col-num { text-align: right; }
.dt .dt-col-head-teacher { width: 110px; min-width: 100px; max-width: 140px; }
.dt .dt-col-class-name { width: 380px; min-width: 360px; max-width: 420px; }
/* v561：课程管理列表列宽精调（窄列靠左、3 列长文本两行换行、td 增上下 padding 让两行舒展） */
.dt .dt-col-course-id { width: 90px; min-width: 88px; }
.dt .dt-col-course-date { width: 110px; min-width: 104px; }
.dt .dt-col-course-name { width: 160px; min-width: 140px; max-width: 180px; white-space: normal; line-height: 1.45; vertical-align: top; word-break: break-all; }
.dt .dt-col-course-intro { width: 180px; min-width: 160px; max-width: 220px; white-space: normal; line-height: 1.45; vertical-align: top; word-break: break-all; }
.dt .dt-col-course-class { width: 200px; min-width: 180px; white-space: normal; word-break: break-all; line-height: 1.45; vertical-align: top; }
.dt .dt-col-course-teacher { width: 150px; min-width: 140px; white-space: normal; word-break: break-all; line-height: 1.45; vertical-align: top; }
.dt .dt-col-course-location { width: 180px; min-width: 160px; max-width: 200px; white-space: normal; line-height: 1.45; vertical-align: top; word-break: break-all; }
.dt .dt-col-course-method { width: 90px; min-width: 84px; }
.dt .dt-col-course-act { width: 200px; min-width: 180px; white-space: nowrap; }
/* 任务列表：标题列可换行 + 最小宽度（防止被其他列挤成竖排），班级列收窄到 200px 截断 */
.dt th.dt-col-task-title, .dt td.dt-col-task-title { min-width: 240px; width: 32%; white-space: normal; line-height: 1.4; vertical-align: top; word-break: break-all; }
.dt th.dt-col-task-class, .dt td.dt-col-task-class { max-width: 200px; min-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt .dt-col-course-name, .dt .dt-col-course-intro, .dt .dt-col-course-location,
.dt .dt-col-course-class, .dt .dt-col-course-teacher { padding-top: 14px; padding-bottom: 14px; }
/* v499 B2-2(#5)：学员班级列内联多选弹层 */
.ic-cls-pop { position: fixed; z-index: 10050; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(15,35,70,.18); padding: 10px 12px; min-width: 220px; max-width: 320px; }
.ic-cls-pop .ic-cls-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ic-cls-pop .ic-cls-list { max-height: 240px; overflow: auto; }
.ic-cls-pop .ic-cls-item { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13px; cursor: pointer; border-radius: 6px; }
.ic-cls-pop .ic-cls-item:hover { background: var(--primary-soft, #eef4ff); }
.ic-cls-pop .ic-cls-item input { cursor: pointer; }
.ic-cls-pop .ic-cls-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ic-cls-pop .mini.pri { background: var(--primary-strong); color: #fff; border: none; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
/* v499 B2-9(#21)：学员端「我的补打卡」卡片列表（PC / 移动通用，状态色条区分审批进度） */
.mk-wrap { max-width: 720px; margin: 0 auto; padding: 12px 14px 24px; }
.mk-summary { font-size: 13px; color: var(--muted); margin: 4px 2px 10px; }
.mk-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(15,35,70,.06); }
.mk-card.pending { border-left: 4px solid #F5A623; }
.mk-card.approved { border-left: 4px solid #2ECC71; }
.mk-card.rejected { border-left: 4px solid #E74C3C; }
.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-course { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.mk-reason { font-size: 13px; margin-top: 6px; word-break: break-all; }
.mk-note { font-size: 12.5px; color: #C0392B; background: rgba(231,76,60,.08); border-radius: 6px; padding: 6px 8px; margin-top: 8px; word-break: break-all; }
.dt th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: 13px; position: sticky; top: 0; z-index: 2; }
.dt th.sortable { cursor: pointer; user-select: none; }
.dt th.sortable:hover { color: var(--primary); }
/* 桌面：冻结首列，横向滚动时首列（姓名/班级名等）常驻可见 */
.dt th:first-child, .dt td:first-child { position: sticky; left: 0; z-index: 3; background: #fff; }
.dt th:first-child { z-index: 6; background: #f8fafc; box-shadow: 2px 0 6px rgba(16,24,40,.10); }
.dt td:first-child { box-shadow: 2px 0 6px rgba(16,24,40,.06); }
/* 移动端卡片视图（默认隐藏，≤768px 才显示） */
.dt-cards { display: none; }
.dt-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.dt-card-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: linear-gradient(180deg,#fafbff,#fff); border-bottom: 1px solid var(--border); }
.dt-card-sel { display: flex; align-items: center; }
.dt-card-title { font-weight: 600; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-card-body { padding: 4px 14px 8px; }
.dt-kv { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #eef1f6; font-size: 13.5px; }
.dt-kv:last-child { border-bottom: none; }
.dt-k { flex: 0 0 38%; color: var(--muted); }
.dt-v { flex: 1; color: var(--text); word-break: break-word; white-space: normal; }
.dt-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: #fcfdff; }
.dt-card-actions .link, .dt-card-actions button { font-size: 13.5px; }
.dt tbody tr:hover { background: var(--primary-soft); }
.dt .dt-sel { width: 38px; text-align: center; }
.dt-pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.dt-pager .pg { min-width: 32px; text-align: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; background: #fff; }
.dt-pager .pg.active { background: var(--primary-strong); color: #fff; border-color: var(--primary); }
.dt-pager .pg:hover:not(.active) { background: var(--primary-soft); }
.dt-pager .pg.gap { border: none; cursor: default; background: transparent; }
.dt-pager .pg-info { color: var(--muted); font-size: 13px; margin-right: auto; }
/* ============ v444 列表混合模式：顶部常驻新增行 + 双击内联编辑 ============ */
.dt .dt-add-row > td { background: var(--primary-soft); border-top: none; }
.dt .dt-add-row > td:first-child { border-left: 3px solid var(--primary); }
.dt .dt-add-row:hover > td { background: var(--primary-soft); }
.dt .dt-add-td { padding: 7px 8px; }
.dt .dt-add-in { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--primary); border-radius: 6px; background: #fff; padding: 4px 8px; font-size: 12.5px; color: var(--text); }
.dt .dt-add-in:focus { outline: none; border-color: var(--primary-dark); box-shadow: 0 0 0 2px var(--primary-soft); }
.dt .dt-add-in::placeholder { color: #9aa6b8; font-size: 11.5px; }
.dt .dt-add-dt2 { display: flex; flex-direction: column; gap: 3px; }
.dt .dt-add-muted { color: #9aa6b8; font-size: 11.5px; text-align: center; }
.dt .dt-add-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--primary-strong); color: #fff; font-size: 11px; white-space: nowrap; }
.dt .dt-add-save { display: inline-block; padding: 4px 14px; border: none; border-radius: 999px; background: var(--primary-strong); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dt .dt-add-save:hover { filter: brightness(1.08); }
.dt .dt-add-save:active { transform: scale(.96); }
.dt .dt-add-act { text-align: center; }
/* v505：thead + 添加按钮（飞书风格：标题行复选框前的 + 图标，hover 显示「添加」tooltip，避免与标题栏新建按钮逻辑重复） */
.dt th.dt-add-head { width: 32px; min-width: 32px; padding: 0; text-align: center; }
.dt .dt-add-row-head { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; padding: 0; margin: 0; border: none; background: transparent; color: #94a3b8; font-size: 18px; font-weight: 400; line-height: 1; cursor: pointer; border-radius: 6px; transition: background-color .12s ease, color .12s ease; }
.dt .dt-add-row-head:hover { background: rgba(59, 130, 246, .12); color: #3b82f6; }
.dt .dt-add-row-head:active { background: rgba(59, 130, 246, .2); }
.dt .dt-add-row-head:focus-visible { outline: 2px solid rgba(59, 130, 246, .35); outline-offset: 1px; }
.dt .dt-add-head { background: transparent; }
/* 双击内联编辑单元格 */
/* v500 B2修①：inline-block + max-width + 换行，长内容（多班级拼接）不再撑宽整表（.dt td 有 white-space:nowrap 需显式恢复 normal） */
.ic-cell { cursor: text; border-bottom: 1px dashed transparent; padding-bottom: 1px; display: inline-block; max-width: 240px; vertical-align: bottom; white-space: normal; overflow-wrap: anywhere; }
.ic-cell:hover { border-bottom-color: var(--primary); }
.ic-pen { font-size: 10px; color: var(--primary); opacity: .4; margin-left: 3px; }
.ic-cell:hover .ic-pen { opacity: .95; }
/* v500 B2修①：非内联编辑列（班主任/教师班级列）同样限宽换行 */
.cls-wrap { display: inline-block; max-width: 240px; vertical-align: bottom; white-space: normal; overflow-wrap: anywhere; }
.ic-edit-in { width: 100%; min-width: 60px; box-sizing: border-box; border: 1px solid var(--primary); border-radius: 6px; padding: 3px 6px; font-size: 12.5px; background: #fff; color: var(--text); }
.ic-edit-in:focus { outline: none; box-shadow: 0 0 0 2px var(--primary-soft); }
/* 轻量弹出菜单（操作列「详情 ▾」收纳次级动作） */
.pop-menu { position: fixed; z-index: 3200; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 35, 60, .16); padding: 5px; min-width: 116px; }
.pop-item { padding: 8px 14px; font-size: 13px; border-radius: 6px; cursor: pointer; color: var(--text); white-space: nowrap; }
.pop-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
/* 全局表格也支持横向滚动，确保完整字段可见 */
.content .card > table, .content table.tbl { display: block; overflow-x: auto; white-space: nowrap; }
.content .card > table thead th, .content table.tbl th { position: sticky; top: 0; }
/* ============ 自动完成（问卷发送对象） ============ */
.ac { margin-top: 4px; }
.ac-box { position: relative; }
.ac-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.ac-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ac-suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); z-index: 30; max-height: 240px; overflow: auto; }
.ac-item { padding: 8px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--primary-soft); }
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--primary-soft); color: var(--primary-ink); border-radius: 999px; font-size: 13px; }
.chip-jade { background: rgba(18,160,75,.10); color: #12a04b; }
.chip-x { cursor: pointer; font-weight: 700; opacity: .7; }
.chip-x:hover { opacity: 1; }

/* v703.4 小开关（行内可见/隐藏切换） */
.mini-switch { position: relative; display: inline-block; width: 34px; height: 18px; vertical-align: middle; }
.mini-switch input { opacity: 0; width: 0; height: 0; }
.mini-switch span { position: absolute; inset: 0; background: #d6dbe2; border-radius: 999px; transition: .2s; cursor: pointer; }
.mini-switch span:before { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.mini-switch input:checked + span { background: #12a04b; }
.mini-switch input:checked + span:before { transform: translateX(16px); }

/* v703.6 顶部导航菜单脏行高亮（输入后未保存提示） */
tr.pn-dirty { background: #fff7ed !important; }
tr.pn-dirty:hover { background: #fff1d6 !important; }
.pn-dirty-input { box-shadow: 0 0 0 2px rgba(241,138,50,.35) inset !important; border-color: #f18a32 !important; }
/* ============ 导航折叠 ============ */
.nav-item.parent { cursor: pointer; }
.nav-item.parent .lbl { flex: 1; }
/* ============ 栏目拖拽排序 ============ */
.nav-node { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.nav-node.dragging { opacity: .5; }
.nav-node.drop-before { border-top: 2px solid var(--primary); }
.nav-node.drop-after { border-bottom: 2px solid var(--primary); }
.nav-node .nm { flex: 1; cursor: grab; }
.nav-node .tree-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.drag-handle { cursor: grab; color: var(--muted); user-select: none; padding: 0 4px; }
/* ============ 教师课程互动按钮 ============ */
.course-actions { flex-wrap: wrap; gap: 8px; }
.course-actions .sm { margin: 0; }
/* ============ 课堂测评多题编辑器 ============ */
.asmt-courselock {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid #c7d2fe; border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
}
.asmt-courselock-ico { font-size: 28px; flex-shrink: 0; line-height: 1; }
.asmt-courselock-body { flex: 1; min-width: 0; }
.asmt-courselock-label { font-size: 12px; color: #6366f1; font-weight: 600; letter-spacing: .04em; }
.asmt-courselock-name { font-size: 16px; font-weight: 600; color: #1e293b; margin: 2px 0 4px; word-break: break-all; }
.asmt-courselock-hint { font-size: 12px; color: #64748b; }
.asmt-q { border: 1px dashed var(--border); border-radius: 10px; padding: 10px; margin-top: 10px; background: #fafbff; }
.asmt-q-head { font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; }
/* v529: 测评录入「参考答案 + 解析」（仅批阅用，学员不可见） */
.q-answer-slot { margin-top: 8px; }
.q-ca-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.q-ca-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.q-ca-opt input { margin: 0; }
.asmt-q-ai { margin-top: 8px; }
.asmt-q .field label { color: #475569; }
/* ============ 大屏分析 ============ */
.bigscreen { display: flex; flex-direction: column; height: 100%; position: relative; }
.bigscreen-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bigscreen-title { font-size: 20px; font-weight: 700; flex: 1; }
.bigscreen-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; flex: 1; min-height: 420px; }
.bigscreen-chart { min-height: 420px; }
@media (max-width: 900px) {
.bigscreen-body { grid-template-columns: 1fr; }
 }
.bigscreen-analyze { background: #1e293b; border-radius: 14px; padding: 18px; color: #f1f5f9; height: 100%; overflow-y: auto; }
/* v536 大屏头部品牌区 + 工具按钮 */
.bs-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bs-logo { width: 30px; height: 30px; background: #1d4ed8; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 500; font-size: 14px; }
.bs-name { font-size: 15px; font-weight: 500; color: #f1f5f9; white-space: nowrap; }
.bs-head-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bs-live { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(34,197,94,.12); border-radius: 12px; font-size: 12px; color: #22c55e; }
.bs-live i { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: bsPulse 1.5s ease-in-out infinite; }
@keyframes bsPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.bs-ico { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0.5px solid #475569; border-radius: 8px; color: #cbd5e1; font-size: 15px; cursor: pointer; }
.bs-ico:hover { border-color: #60a5fa; color: #f1f5f9; }
.bs-footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 10px; font-size: 11px; color: #64748b; }
.bs-footer .dot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; }
/* v536 动效层（canvas 粒子 + 彩色大字 + 白闪），覆盖大屏但不拦截交互 */
#bsFxCanvas { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
#bsFxText { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 21; }
#bsFxFlash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; z-index: 22; }
/* v536 彩色大字动效 */
.fx-big { font-size: 46px; font-weight: 700; letter-spacing: 4px; white-space: nowrap; animation: fxBounce 2s ease-out forwards; line-height: 1.1; }
.fx-big span { display: inline-block; }
.fx-sub { font-size: 15px; color: #f1f5f9; font-weight: 500; letter-spacing: 1px; animation: fxSub 2s ease-out forwards; }
@keyframes fxBounce { 0% { transform: scale(.2); opacity: 0; } 22% { transform: scale(1.35); opacity: 1; } 36% { transform: scale(.92); } 48% { transform: scale(1.12); } 62% { transform: scale(1); } 82% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1.3) translateY(-16px); opacity: 0; } }
@keyframes fxSub { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; } }
.fx-shaking { animation: fxShake 0.55s ease-out; }
@keyframes fxShake { 0%,100% { transform: translate(0,0); } 15% { transform: translate(-8px,4px); } 30% { transform: translate(7px,-5px); } 45% { transform: translate(-6px,-3px); } 60% { transform: translate(5px,3px); } 75% { transform: translate(-3px,1px); } }
/* v536 全屏模式：大屏以 position:fixed 盖满整个视口，遮住管理界面侧栏/顶栏，配合浏览器 Fullscreen API 实现纯净投影 */
body.bs-fullscreen-mode { overflow: hidden; }
body.bs-fullscreen-mode .bigscreen {
  position: fixed; inset: 0; z-index: 99999; height: 100vh; width: 100vw;
  background: #0f172a; border-radius: 0; padding: 14px 20px;
}
/* v544 全屏模式强化工具按钮对比度，全屏下隐藏"返回" */
body.bs-fullscreen-mode .bs-ico { border: 1.2px solid #94a3b8; color: #f1f5f9; }
body.bs-fullscreen-mode .bs-ico:hover { border-color: #60a5fa; }
body.bs-fullscreen-mode .bs-back-btn { display: none; }
/* v526 大屏二维码块：始终显示在 AI 分析上方，让学员投影页面时全程可扫码 */
.bs-qr-block { display: flex; flex-direction: column; align-items: center; padding: 12px; background: #0f172a; border-radius: 12px; }
.bs-qr-block .qr-box { display: inline-block; padding: 10px; background: #fff; border-radius: 8px; margin: 0; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.bs-qr-block .qr-box canvas, .bs-qr-block .qr-box img { display: block; width: 160px; height: 160px; }
.bs-qr-tip { margin-top: 8px; font-size: 13px; }
/* 主观题大屏：详细答案 + 词云 双 Tab */
.bs-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.bs-tab { padding: 8px 20px; border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--muted); transition: all .15s; }
.bs-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.bs-tab.active { background: var(--primary-strong); color: #fff; border-color: var(--primary); }
.bs-panel { display: none; }
.bs-panel.active { display: block; }
.subj-ans-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.subj-ans-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.subj-ans-head b { color: var(--text); font-size: 14px; }
.subj-ans-text { font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.analyze-dist { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.analyze-row { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 8px; font-size: 13px; }
.analyze-row .ar-label { color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analyze-row .ar-bar { background: #0f172a; border-radius: 6px; height: 14px; overflow: hidden; }
.analyze-row .ar-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--primary),var(--primary-dark)); }
.analyze-row .ar-num { color: #e2e8f0; text-align: right; }
.analyze-mastery { font-weight: 600; margin: 8px 0; color: #f8fafc; }
.analyze-advice { background: #334155; border-radius: 10px; padding: 10px; font-size: 13px; color: #f1f5f9; line-height: 1.6; }
.analyze-res .res-list { margin: 0; padding-left: 18px; color: #e2e8f0; font-size: 13px; line-height: 1.7; }
.analyze-res .res-list b { color: #f8fafc; }
/* ============ v529.c 大屏 5 卡智能分析 ============ */
.ac-empty { color:#94a3b8; font-size:13px; padding:20px 8px; text-align:center; line-height:1.6; }
.ac-card { background:#0f172a; border:1px solid #334155; border-radius:12px; padding:12px 14px; margin-top:10px; }
.ac-card-h { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:#f8fafc; margin-bottom:8px; }
.ac-card-h .ac-tag { font-size:11px; font-weight:600; color:#94a3b8; background:#1e293b; border-radius:6px; padding:1px 7px; margin-left:auto; }
.ac-source { font-size:11px; color:#64748b; font-weight:500; margin-left:auto; }
.ac-rate { display:flex; align-items:center; gap:16px; }
.ac-ring { --p:0; --ac-ring-c:#22c55e; width:84px; height:84px; border-radius:50%; flex:0 0 auto;
  background: conic-gradient(var(--ac-ring-c) calc(var(--p)*1%), #334155 0);
  display:grid; place-items:center; position:relative; }
.ac-ring::before { content:""; position:absolute; inset:9px; background:#0f172a; border-radius:50%; }
.ac-ring span { position:relative; z-index:1; font-size:19px; font-weight:800; color:#f8fafc; }
.ac-rate-meta { font-size:12.5px; color:#94a3b8; line-height:1.6; }
.ac-bar-row { display:grid; grid-template-columns: 96px 1fr 30px; align-items:center; gap:8px; font-size:12.5px; margin:4px 0; }
.ac-bar-row .ab-label { color:#cbd5e1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ac-bar-row .ab-track { background:#1e293b; border-radius:5px; height:10px; overflow:hidden; }
.ac-bar-row .ab-fill { display:block; height:100%; border-radius:5px; }
.ac-bar-row .ab-num { color:#e2e8f0; text-align:right; font-variant-numeric:tabular-nums; }
.ac-err-item { color:#e2e8f0; font-size:12.5px; line-height:1.6; margin:4px 0; }
.ac-mastery-stack { display:flex; height:14px; border-radius:7px; overflow:hidden; margin-bottom:8px; background:#1e293b; }
.ac-mastery-stack i { display:block; height:100%; }
.ac-legend { display:flex; flex-wrap:wrap; gap:5px 14px; font-size:12px; color:#cbd5e1; }
.ac-legend span { display:inline-flex; align-items:center; }
.ac-legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px; }
.ac-advice { font-size:13px; color:#e2e8f0; line-height:1.7; }
.ac-res { display:flex; flex-direction:column; gap:8px; }
.ac-res-item { background:#1e293b; border-radius:8px; padding:8px 10px; }
.ac-res-item b { display:block; color:#f8fafc; font-size:13px; margin-bottom:2px; }
.ac-res-item span { color:#94a3b8; font-size:12px; line-height:1.5; }
.ac-loading { color:#94a3b8; font-size:12.5px; display:flex; align-items:center; gap:6px; }
.ac-loading::before { content:""; width:10px; height:10px; border:2px solid #475569; border-top-color:#60a5fa; border-radius:50%; animation:ac-spin .8s linear infinite; }
@keyframes ac-spin { to { transform: rotate(360deg); } }
/* ============ v529.c 学员提交结果卡 ============ */
.stu-scan-result { margin-top:14px; border-radius:12px; padding:14px; }
.stu-scan-result.result-good { background:#E8F8F1; border:1px solid #bfe8d4; }
.stu-scan-result.result-mid { background:#FFF8E6; border:1px solid #f1dfa8; }
.stu-scan-result.result-bad { background:#FDF0EE; border:1px solid #f3c8c0; }
.stu-scan-result.result-pending { background:#F1F5F9; border:1px solid #e2e8f0; }
.stu-scan-result .sr-head { display:flex; align-items:center; gap:8px; }
.stu-scan-result .sr-emoji { font-size:18px; line-height:1; }
.stu-scan-result .sr-title { font-size:15px; font-weight:700; color:#1f2937; }
.stu-scan-result.result-good .sr-title { color:#0E5B45; }
.stu-scan-result.result-mid .sr-title { color:#92400e; }
.stu-scan-result.result-bad .sr-title { color:#b91c1c; }
.stu-scan-result.result-pending .sr-title { color:#475569; }
.stu-scan-result .sr-reason { font-size:13px; color:#374151; margin-top:6px; line-height:1.6; }
/* ============ 词云 ============ */
.wordcloud { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; line-height: 1.4; padding: 6px 0; }
.wc-word { font-weight: 700; transition: transform .15s; }
.wc-word:hover { transform: scale(1.12); }
/* ============ 生动留言卡片 ============ */
.notes-wall { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.note-item.vivid { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(15,23,42,.06); border: none; }
.note-item.vivid .note-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.note-item.vivid .note-body { flex: 1; }
.note-item.vivid .note-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.note-item.vivid .note-text { font-size: 14px; color: #1e293b; line-height: 1.5; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-opt { font-size: 20px; cursor: pointer; padding: 2px 4px; border-radius: 8px; border: 1px solid transparent; }
.emoji-opt:hover { background: #f1f5f9; }
.emoji-opt.on { border-color: var(--primary); background: var(--primary-soft); }
/* ============ 随堂作业 ============ */
.hw-subs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.hw-sub { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.hw-sub.lv-good { border-color: #86efac; background: #f0fdf4; }
.hw-sub.lv-mid { border-color: #93c5fd; background: #eff6ff; }
.hw-sub.lv-bad { border-color: #fca5a5; background: #fef2f2; }
.hw-sub-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hw-sub-body { font-size: 14px; color: #1e293b; line-height: 1.5; }
.hw-img { max-width: 220px; max-height: 220px; border-radius: 10px; margin-top: 6px; display: block; border: 1px solid var(--border); }
/* ============ 评价动画浮层 ============ */
.eva-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.35); opacity: 0; transition: opacity .25s; z-index: 9999; pointer-events: none; }
.eva-overlay.show { opacity: 1; }
.eva-pop { text-align: center; transform: scale(.6); transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.eva-overlay.show .eva-pop { transform: scale(1); }
.eva-emoji { font-size: 80px; animation: eva-bounce .6s ease infinite alternate; }
.eva-msg { margin-top: 8px; font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.eva-good .eva-msg { color: #bbf7d0; }
.eva-mid .eva-msg { color: #bfdbfe; }
.eva-bad .eva-msg { color: #fecaca; }
@keyframes eva-bounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }
/* ===== 富文本编辑器 ===== */
.rte { border: 1px solid var(--border, #d8dee9); border-radius: 10px; overflow: hidden; background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--border, #d8dee9); background: #f7f9fc; }
.rte-btn { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid transparent; background: transparent; border-radius: 6px; cursor: pointer; font-size: 13px; color: #334; line-height: 1; }
.rte-btn:hover { background: #e6ecf5; }
.rte-b { font-weight: 800; }
.rte-i { font-style: italic; }
.rte-u { text-decoration: underline; }
.rte-s { text-decoration: line-through; }
.rte-content { padding: 10px 12px; min-height: 200px; outline: none; line-height: 1.7; font-size: 14px; color: #222; overflow-y: auto; }
.rte-content:empty:before { content: attr(data-placeholder); color: #9aa4b2; }
.rte-content img { max-width: 100%; border-radius: 6px; margin: 4px 0; }
.rte-content a { color: #2563eb; text-decoration: underline; }
.rte-content blockquote { border-left: 4px solid #cbd5e1; margin: 8px 0; padding: 4px 12px; color: #555; background: #f8fafc; }
.rte-content h1 { font-size: 22px; margin: 8px 0; }
.rte-content h2 { font-size: 19px; margin: 8px 0; }
.rte-content h3 { font-size: 16px; margin: 6px 0; }
.rte-content ul, .rte-content ol { padding-left: 22px; margin: 6px 0; }
/* 富文本工具栏分组与扩展控件 */
.rte-group { display: inline-flex; align-items: center; gap: 3px; }
.rte-sep { width: 1px; height: 20px; background: var(--border, #d8dee9); margin: 0 4px; align-self: center; }
.rte-select { height: 28px; border: 1px solid var(--border, #d8dee9); border-radius: 6px; background: #fff; color: #334; font-size: 12px; padding: 0 4px; cursor: pointer; }
.rte-select:focus { outline: none; border-color: #93b4f5; }
.rte-emoji { position: absolute; z-index: 50; top: 40px; left: 8px; width: 280px; max-height: 180px; overflow-y: auto; display: none; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--border, #d8dee9); border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, .15); }
.rte-emoji-i { font-size: 18px; line-height: 1; text-align: center; padding: 3px 0; cursor: pointer; border-radius: 6px; }
.rte-emoji-i:hover { background: #eef2fb; }
/* 编辑区内容：表格 / 视频 / 音频 / 分割线 */
.rte.rte-empty .rte-content:before { content: attr(data-placeholder); color: #9aa4b2; }
.rte-content table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.rte-content td, .rte-content th { border: 1px solid #cbd5e1; padding: 6px 8px; min-width: 42px; vertical-align: top; }
.rte-content video, .rte-content audio { max-width: 100%; margin: 4px 0; border-radius: 8px; }
.rte-content iframe { max-width: 100%; border: 0; border-radius: 8px; }
.rte-content hr { border: none; border-top: 1px solid #d8dee9; margin: 12px 0; }
.rte-content figure { margin: 8px 0; text-align: center; }
.rte-content figcaption { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.kp-name { margin-top: 10px; font-weight: 600; color: #374151; }
.kp-track { position: relative; height: 10px; background: #eef0f5; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.kp-fill { height: 100%; border-radius: 6px; transition: width .6s ease; }
.kp-cfg-level { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.kp-cfg-level-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.kp-cfg-level-head .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.kp-cfg-items { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 2px solid #eef0f5; }
.kp-cfg-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-cfg-item .kp-name { padding: 4px 7px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.kp-src { font-size: 11px; }
.kp-cfg-level-head .mini, .kp-cfg-item .mini { font-size: 13px; color: #6b7280; display: inline-flex; align-items: center; gap: 4px; }
.kp-del-item { width: 22px; height: 22px; border: none; background: transparent; color: #ef4444; font-size: 18px; line-height: 1; border-radius: 6px; cursor: pointer; margin-left: auto; }
.kp-del-item:hover { background: #fee2e2; }
.kp-cfg-add { padding-left: 14px; margin-top: 8px; }
.kp-add-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px; }
.kp-add-form input, .kp-add-form select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; }
/* 评价维度管理 */
.rd-cfg-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.rd-cfg-handle { color: #9ca3af; cursor: grab; user-select: none; font-size: 12px; }
.rd-cfg-item input, .rd-cfg-item select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; }
.rd-cfg-item .mini { font-size: 13px; color: #6b7280; display: inline-flex; align-items: center; gap: 4px; }
.rd-del { width: 26px; height: 26px; border: none; background: transparent; color: #ef4444; font-size: 18px; line-height: 1; border-radius: 6px; cursor: pointer; margin-left: auto; }
.rd-del:hover { background: #fee2e2; }
/* 任务完成率迷你进度条 */
.mini-bar { display: inline-block; width: 70px; height: 8px; background: #eef0f5; border-radius: 5px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-fill { height: 100%; background: linear-gradient(90deg,var(--primary),var(--primary-dark)); border-radius: 5px; }
.mini-input { padding: 4px 7px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; }
/* ====================== 手机端适配（≤768px） ====================== */
/* 汉堡按钮：桌面隐藏，手机显示 */
.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: 4px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--primary); font-size: 20px; line-height: 1; cursor: pointer;
}
/* 侧边栏遮罩层 */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  z-index: 55; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.nav-overlay.show { opacity: 1; visibility: visible; }
@media (max-width: 768px) {
.hamburger { display: flex; }
.layout { position: relative; }
/* 侧边栏变为可滑出抽屉 */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: 82vw; max-width: 300px; height: 100%;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .35);
  }
.sidebar.open { transform: translateX(0); }
.main { width: 100%; }
.topbar { padding: 0 12px; }
.topbar .user { gap: 8px; }
/* 手机端顶栏空间紧张：皮肤切换收进用户菜单 */
  .topbar .skin-dt { display: none; }
.topbar .title {
    font-size: 15px; max-width: 52vw; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
/* 用户菜单：手机上只显示头像按钮 */
  .user-menu-toggle { padding: 4px; border-radius: 50%; min-height: 36px; width: 36px; justify-content: center; }
.user-menu-toggle .user-name, .user-menu-toggle .caret { display: none; }
.user-menu-dropdown { right: -6px; top: calc(100% + 8px); min-width: 180px; }
.content { padding: 14px 12px; }
/* 手机端底部返回/前进无意义，隐藏 */
  .nav-footer { display: none; }
/* 输入框/选择框在手机上加大，16px 字号可避免 iOS 聚焦时自动放大 */
  input, select, textarea { padding: 12px 14px; font-size: 16px; }
button, .btn { padding: 11px 16px; font-size: 15px; }
/* 登录页：卡片占满屏幕，方便手指操作 */
  .login-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 24px 18px; }
.role-tab { padding: 13px 6px; font-size: 14px; }
/* 数据表：移动端隐藏表格、改用卡片视图；显示排序控件；滚动容器随页面流 */
  .dt-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
.dt-search-wrap { max-width: none; width: 100%; }
.dt-search { padding: 11px 40px 11px 14px; font-size: 16px; }
.dt-search-btn { width: 34px; height: 34px; font-size: 16px; right: 5px; z-index: 2; }
.dt-count { font-size: 13px; color: var(--muted); }
.dt-scroll { max-height: none; overflow: visible; }
.dt-scroll > table { display: none; }
.dt-cards { display: block; }
.dt-sort-m { display: flex; align-items: center; gap: 8px; }
.dt-sort-sel { flex: 1; padding: 9px 10px; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
/* 操作链接允许换行 */
  .row-actions { flex-wrap: wrap; gap: 8px 14px; white-space: normal; }
.row-actions .link { padding: 4px 0; }
/* 普通表格在手机上整体缩小，减少横滚 */
  .tbl { font-size: 13px; }
.tbl th, .tbl td { padding: 8px 10px; }
/* 模态框手机上更贴边 */
  .modal { padding: 16px; border-radius: 12px; }
.modal .actions { flex-wrap: wrap; }
.modal .actions button { flex: 1; min-width: 96px; }
/* 提交与批阅表格：手机上改卡片 */
  .subs-table, .subs-table thead, .subs-table tbody, .subs-table th, .subs-table td, .subs-table tr { display: block; }
.subs-table thead { display: none; }
.subs-table tr { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 10px 12px; background: #fff; box-shadow: var(--shadow-sm); }
.subs-table td { border: none; padding: 6px 0; display: flex; gap: 8px; }
.subs-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; min-width: 64px; flex-shrink: 0; }
.subs-table td .mini-input { flex: 1; min-width: 60px; }
.subs-table td .mini-input + .mini-input { margin-left: 6px; }
/* 课程页学生端按钮组：手机上垂直堆叠 */
  .question .row { flex-direction: column; align-items: stretch; gap: 8px; }
.question .row button, .question .row .btn { width: 100%; }
/* 卡片标题行在手机上允许换行 */
  .card > .row { flex-wrap: wrap; gap: 10px; }
.card > .row h3 { flex: 1 1 100%; margin-bottom: 6px; }
  /* .page-head 移动端：搜索框/操作按钮 占满整行 */
  .page-head-search, .page-head-actions { flex: 1 1 100%; max-width: none; justify-content: flex-start; }
  .page-head-actions { padding-top: 2px; }
  /* .e-card-head 移动端：标题占满整行，按钮换到下一行 */
  .e-card-head { flex-wrap: wrap; }
  .e-card-head > h3 { flex: 1 1 100%; }
  .e-card-head .e-card-head-actions { width: 100%; justify-content: flex-start; padding-top: 2px; }

}
/* 超小屏（≤420px）进一步压缩间距 */
@media (max-width: 420px) {
  .content { padding: 12px 10px; }
  .topbar { padding: 0 10px; }
  .row { gap: 8px; }
}
.kp-track { height: 7px; border-radius: 6px; background: #eef2f7; margin: 9px 0 8px; overflow: hidden; }
/* 学员头像占位图（扁平插画风，按性别配色，无动画） */
.kp-avatar {
  grid-column: 2; grid-row: 1 / span 2;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 320px; gap: 10px;
}
.avt-img {
  width: 220px; height: 220px; object-fit: contain; position: relative; z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.10));
}
.avt-score { position: relative; z-index: 3; font-size: 24px; font-weight: 800; color: var(--primary); margin-top: 8px; }
.avt-score span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
@media (max-width: 860px) {
.kp-avatar { order: -1; min-height: 280px; }

}
/* ===== 班级数字画像分析看板 ===== */
.portrait-dashboard { background: #fff; }
.pd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.pd-title { font-size: 22px; font-weight: 700; color: #1e293b; }
.pd-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pd-tag { font-size: 12px; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--primary-soft)); padding: 6px 14px; border-radius: 999px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pd-left { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8fbff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 10px; }
.pd-section-title { font-size: 15px; font-weight: 700; color: #334155; margin-bottom: 6px; text-align: center; }
/* v767：viewBox 加宽到 560 后按 560/480 比例放大上限，雷达本体视觉大小保持不变 */
.radar-wrap { width: 92%; max-width: 512px; margin: 0 auto; }
.radar-svg { width: 100%; height: auto; display: block; }
.radar-grid { fill: none; stroke: #e2e8f0; stroke-width: 1; }
.radar-axis { stroke: #cbd5e1; stroke-width: 1; }
/* v767：加白色描边光晕（paint-order 先描边后填充）—— 标签即使压在网格线/数据区上也能看清 */
.radar-label { font-size: 13px; font-weight: 600; fill: #475569;
  paint-order: stroke fill; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; }
.radar-area { stroke-linejoin: round; }
.radar-dot { fill: var(--primary); stroke: #fff; stroke-width: 2; }
.radar-score-bg { fill: #fff; stroke: var(--primary-soft); stroke-width: 2; filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--primary) 18%, transparent)); }
.radar-score { font-size: 36px; font-weight: 800; fill: var(--primary-dark); }
.radar-score-label { font-size: 12px; fill: #64748b; }
.pd-right { display: flex; flex-direction: column; gap: 14px; }
.pd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pd-stat-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.pd-stat-card.blue { background: linear-gradient(180deg,#fff 0%,#eff6ff 100%); border-color: #dbeafe; }
.pd-stat-card.amber { background: linear-gradient(180deg,#fff 0%,#fffbeb 100%); border-color: #fef3c7; }
.pd-stat-card.green { background: linear-gradient(180deg,#fff 0%, color-mix(in srgb, var(--primary-soft) 50%, #fff) 100%); border-color: var(--primary-soft); }
.pd-stat-label { font-size: 12px; color: #64748b; }
.pd-stat-num { font-size: 26px; font-weight: 800; color: #1e293b; margin-top: 6px; }
.pd-stat-num span { font-size: 13px; font-weight: 500; color: #64748b; margin-left: 2px; }
.pd-stat-icon { position: absolute; top: 10px; right: 10px; font-size: 20px; opacity: .85; }
.pd-stat-icon svg, .pd-stat-svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.pd-stat-card.blue .pd-stat-icon { color: #4F7CFF; }
.pd-stat-card.amber .pd-stat-icon { color: #F59E0B; }
.pd-stat-card.green .pd-stat-icon { color: #2ECC71; }
.pd-stat-bar { height: 4px; background: #e2e8f0; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.pd-stat-bar span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg,var(--primary),var(--primary-dark)); transition: width .6s ease; }
.pd-stat-card.amber .pd-stat-bar span { background: linear-gradient(90deg,#ffca28,#f57f17); }
.pd-stat-card.green .pd-stat-bar span { background: linear-gradient(90deg,var(--primary),var(--primary-dark)); }
.pd-groups { flex: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.group-dist-svg { width: 96%; max-width: 520px; height: auto; display: block; margin: 6px auto 0; }
.group-axis { stroke: #cbd5e1; stroke-width: 1; marker-end: url(#arrow); }
.group-axis-label { font-size: 13px; fill: #64748b; }
.group-bubble { cursor: default; }
.group-bubble circle { fill-opacity: .22; stroke-width: 1.5; }
.group-bubble.high circle { fill: var(--primary); fill-opacity: .22; stroke: var(--primary-dark); }
.group-bubble.steady circle { fill: var(--primary-soft); stroke: var(--primary); }
.group-bubble.attention circle { fill: #ffca28; stroke: #f57f17; }
.group-bubble text { text-anchor: middle; dominant-baseline: middle; fill: #334155; pointer-events: none; }
.group-bubble .gn { font-weight: 700; font-size: 13px; }
.group-bubble .gv { font-size: 12px; font-weight: 600; }
.group-bubble .gp { font-size: 11px; fill: #64748b; }
.portrait-flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius); flex-wrap: wrap; }
.flow-step { display: flex; align-items: center; gap: 8px; }
.flow-dot { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-name { font-size: 13px; color: #334155; font-weight: 500; }
.flow-arrow { color: #94a3b8; font-size: 18px; }
@media (max-width: 860px) {
.pd-grid { grid-template-columns: 1fr; }
.pd-cards { grid-template-columns: 1fr; }

}
.stu-courses { display: flex; flex-direction: column; gap: 14px; }
.stu-course-card { padding: 16px; }
.stu-course { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.stu-course.upcoming { opacity: .72; }
.stu-course-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stu-course-h-l { flex: 1; min-width: 0; }
.stu-course-t { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stu-course-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.stu-course-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.stu-course-tag.today { color: #16A085; background: #E8F8F1; }
.stu-course-tag.ended { color: #166534; background: #dcfce7; }
.stu-course-tag.upcoming { color: var(--muted); background: #f1f5f9; }
.stu-course-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.stu-course-actions .stu-btn { min-width: 96px; }
.stu-course-intro { margin-top: 10px; padding: 10px 12px; background: var(--primary-soft); border-radius: 10px; font-size: 13px; color: var(--text); line-height: 1.6; }
.stu-assess-card { padding: 16px; }
.stu-assess-list { display: flex; flex-direction: column; gap: 12px; }
.stu-assess-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.stu-assess-course { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stu-assess-q { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 12px; line-height: 1.5; }
.stu-assess-btn { width: auto; padding: 8px 28px; border-radius: 999px; border: none; background: var(--primary-strong); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-block; transition: background .15s; }
.stu-assess-btn:hover { background: var(--primary-dark); }
.stu-answer-card { width: 100%; max-width: 720px; padding: 32px 36px; border-radius: 16px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 16px 48px rgba(15,23,42,.12); }
.stu-answer-card .stu-answer-q { background: #f1f5f9; }
.stu-answer-head { font-size: 18px; font-weight: 700; margin-bottom: 14px; text-align: center; }
.stu-answer-q { font-size: 16px; font-weight: 600; line-height: 1.6; margin-bottom: 16px; padding: 14px; background: #f8fafc; border-radius: 12px; }
.stu-answer-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; width: 100%; }
.stu-answer-opt { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s; width: 100%; }
.stu-answer-opt:hover { border-color: var(--primary); background: var(--primary-soft); }
.stu-answer-opt input { flex: none; width: 18px; height: 18px; margin: 0; }
.stu-answer-opt-txt { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; word-break: break-word; overflow-wrap: anywhere; color: var(--text); }
.stu-answer-opt span { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; word-break: break-word; overflow-wrap: anywhere; }
/* 兼容旧结构 */
/* v632：选中态恢复浅色态（白底+主题边框+主题 radio 高亮），不压底不白字，统一主题色 */
.stu-answer-opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.stu-answer-opt.sel input[type="radio"] { accent-color: var(--primary); }
/* 未选中项 radio 也跟主题色，去掉浏览器默认黑边框 */
.stu-answer-opt input[type="radio"] { accent-color: var(--primary); border: 0; outline: 0; box-shadow: none; background: transparent; }
.stu-answer-textarea { width: 100%; box-sizing: border-box; min-height: 110px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; line-height: 1.6; color: var(--text); resize: vertical; margin-bottom: 18px; }
.stu-answer-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,204,113,.15); }
.stu-btn { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 14px; cursor: pointer; font-weight: 600; transition: filter .15s; }
.stu-btn:hover:not(:disabled) { filter: brightness(.97); }
.stu-btn.primary { background: var(--primary-strong); color: #fff; border-color: var(--primary); }
.stu-btn.answer { min-width: 112px; box-shadow: 0 2px 8px rgba(37,99,235,.28); }
.stu-btn.answer:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); }
.stu-btn.ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.stu-btn.done { background: #dcfce7; color: var(--green); border-color: #bbf7d0; }
.stu-btn:disabled { opacity: .55; cursor: not-allowed; }
.stu-task { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.stu-task.done { opacity: .72; }
.stu-task-done { background: #f8fafc; border-radius: 8px; padding: 8px 10px; color: var(--muted); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.stu-task-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stu-task-modal-body { font-size: 14px; }
.stu-task-edit-actions { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.stu-task-file { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px dashed var(--border); border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.stu-task-file:hover { border-color: var(--primary); color: var(--primary); }
/* 移动端任务详情（已完成） */
.stu-task-done-meta { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.stu-task-done-section { margin: 14px 0 0; }
.stu-task-done-section:first-of-type { margin-top: 0; }
.stu-task-done-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.stu-task-done-label::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--primary); display: inline-block; }
.stu-task-done-content { background: #f8fafc; border-radius: 10px; padding: 12px; color: var(--text); border: 1px solid #eef0f3; word-break: break-word; }
.stu-task-done-content p { margin: 0 0 8px; }
.stu-task-done-content p:last-child { margin: 0; }
.stu-task-done-time { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stu-task-done-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #eef0f3; margin-top: 12px; font-size: 14px; color: var(--text); }
.stu-task-done-file-ico { color: var(--primary); display: inline-flex; }
.stu-task-done-file a { color: var(--primary); text-decoration: none; word-break: break-all; }
.stu-task-done-grade { background: linear-gradient(135deg, rgba(58,122,216,.10), rgba(139,92,246,.10)); border: 1px dashed rgba(58,122,216,.4); border-radius: 10px; padding: 12px 14px; font-size: 18px; color: var(--primary-dark, #1e5bb8); }
.stu-task-done-grade b { font-size: 22px; }
.stu-task-done-feedback { background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(46,204,113,.08)); border-left: 3px solid #10b981; border-radius: 8px; padding: 12px; color: var(--text); }
.stu-portrait-card { padding: 16px 80px; }
.stu-portrait-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.stu-portrait-title { font-size: 18px; font-weight: 800; }
.stu-portrait-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.stu-portrait-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.stu-portrait-actions .ghost.sm { white-space: nowrap; }
.stu-portrait-section { background: #f8fafc; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.stu-portrait-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.stu-portrait-sec-title { font-size: 15px; font-weight: 700; }
.stu-portrait-radar-row { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: center; }
.stu-portrait-radar { position: relative; }
.stu-portrait-radar .chart-box { width: 100%; }
.stu-radar-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 28px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.stu-portrait-bars { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stu-radar-bar { display: flex; align-items: center; gap: 10px; padding: 4px 0; min-width: 0; }
.stu-radar-bar-dim { font-size: 14px; font-weight: 700; color: var(--text); min-width: 36px; text-align: center; flex: none; }
.stu-radar-bar-sep { color: #cbd5e1; font-weight: 300; flex: none; }
.stu-radar-bar-desc { font-size: 13px; color: var(--text); min-width: 132px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-radar-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; min-width: 60px; }
.stu-radar-bar-fill { height: 100%; background: var(--kc); border-radius: 4px; transition: width .3s; }
.stu-radar-bar-score { font-size: 15px; font-weight: 700; color: var(--kc); min-width: 28px; text-align: right; flex: none; }
@media (max-width: 720px) {
  .stu-portrait-card { padding: 16px 16px; }
  .stu-portrait-radar-row { grid-template-columns: 1fr; }
  .stu-radar-bar-desc { min-width: 0; flex: 1; }
}
.stu-portrait-formula { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.kp-flat-card { padding: 16px; }
.kp-flat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kp-flat-title { font-size: 15px; font-weight: 700; }
.kp-flat-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kp-flat-badge { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary); flex: none; }
.kp-flat-badge b { font-size: 18px; line-height: 1; }
.kp-flat-badge span { font-size: 10px; }
.kp-flat-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-flat-sub { font-size: 12px; color: var(--muted); }
.kp-flat-weights { font-size: 12px; color: var(--muted); margin-top: 12px; }
.kp-flat-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kp-expand-btn { width: 100%; margin-top: 14px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; cursor: pointer; }
.kp-detail { margin-top: 8px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.kp-detail-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.kp-detail-row:last-child { border-bottom: none; }
.kp-flat-levels { display: flex; flex-direction: column; gap: 14px; }
/* 柯氏 · 四列表格（维度 / 描述 / 数据源 / 权重） */
.kp-tbl-wrap { margin-top: 4px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.kp-tbl thead th { text-align: left; padding: 11px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: #f6f8fa; border-bottom: 1px solid var(--border); white-space: nowrap; }
.kp-tbl th.kp-th-w, .kp-tbl td.kp-td-w { text-align: center; width: 78px; }
.kp-tbl tbody td { padding: 13px 14px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.kp-tbl tbody tr.kp-row:last-child td { border-bottom: none; }
.kp-row { transition: background .15s; }
.kp-row:hover { background: #fafdfb; }
/* 维度列：左侧色条 + 名称 + 分数 + 进度条 */
.kp-td-dim { position: relative; min-width: 150px; padding-left: 18px !important; }
.kp-bar { position: absolute; left: 6px; top: 14px; bottom: 14px; width: 4px; border-radius: 3px; background: var(--kc, var(--primary)); }
.kp-dim-name { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.kp-dim-name b { font-size: 14px; color: var(--text); }
.kp-dim-en { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.kp-dim-score { font-size: 13px; font-weight: 700; color: var(--kc, var(--primary)); margin-top: 3px; }
.kp-dim-score.pending { color: var(--muted); font-weight: 600; }
.kp-td-dim .kp-track { margin-top: 7px; max-width: 140px; }
/* 描述列 */
.kp-desc-sub { font-size: 13px; font-weight: 600; color: var(--text); }
.kp-desc-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
/* 数据源列 chip */
.kp-td-src .kp-chip { margin: 0 5px 5px 0; }
/* 权重胶囊 */
.kp-weight { display: inline-block; padding: 3px 10px; font-size: 12.5px; font-weight: 700; color: var(--kc, var(--primary)); background: #f2f9f6; background: color-mix(in srgb, var(--kc, var(--primary)) 12%, #fff); border: 1px solid #d8eee6; border: 1px solid color-mix(in srgb, var(--kc, var(--primary)) 30%, #fff); border-radius: 999px; white-space: nowrap; }
/* 展开明细行 */
.kp-detail-row-tr td { padding: 0 !important; background: #f8fafc; }
.kp-detail-row-tr .kp-detail { margin: 0; padding: 12px 18px; border-radius: 0; }
.kp-detail-row-tr .kp-detail-row { font-size: 12.5px; }
@media (max-width: 640px) {
  .kp-tbl-wrap { overflow-x: auto; }
  .kp-tbl { min-width: 520px; font-size: 12.5px; }
  .kp-tbl thead th, .kp-tbl tbody td { padding: 11px 12px; }
  .kp-td-dim { min-width: 132px; }
}
/* 展开明细 + 指标管理 同行 */
.kp-actions-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.kp-actions-row .kp-expand-btn { flex: 1; margin-top: 0; }
.kp-actions-row .ghost.sm { white-space: nowrap; }
.kp-flat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kp-flat-top b { flex: 1; font-size: 14px; }
.kp-flat-score { color: var(--muted); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kp-track { height: 10px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
/* 画像页 AI 智能解读折叠卡（PC + 移动共用，AI 紫主题） */
.kp-ai { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.kp-ai-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: transparent; border: none; cursor: pointer; text-align: left; }
.kp-ai-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#6366F1,#8b5cf6); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(99,102,241,.35); }
.kp-ai-titles { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kp-ai-title { font-size: 14px; font-weight: 700; color: #312e81; }
.kp-ai-sub { font-size: 11px; color: #6b7280; }
.kp-ai-caret { flex: none; color: #6366F1; font-size: 13px; transition: transform .2s; }
.kp-ai.open .kp-ai-caret { transform: rotate(180deg); }
.kp-ai-body { padding: 4px 14px 14px; border-top: 1px solid var(--border); }
.kp-ai-loading { display: flex; align-items: center; gap: 8px; color: #6366F1; font-size: 13px; padding: 12px 2px; }
.kp-ai-spin { width: 15px; height: 15px; border: 2px solid #c7d2fe; border-top-color: #6366F1; border-radius: 50%; animation: kpai-spin .8s linear infinite; flex: none; }
@keyframes kpai-spin { to { transform: rotate(360deg); } }
.kp-ai-segs { display: flex; flex-direction: column; gap: 12px; }
.kpair-h { font-size: 13.5px; font-weight: 700; color: #4f46e5; margin-bottom: 5px; display: flex; align-items: center; }
.kpair-h::before { content: ''; width: 4px; height: 13px; border-radius: 3px; background: #6366F1; display: inline-block; margin-right: 7px; }
.kpair-c { font-size: 13px; line-height: 1.7; color: #374151; }
.kpair-c p { margin: 0 0 4px; }
.kpair-c ul { margin: 0; padding-left: 18px; }
.kpair-c li { margin: 3px 0; }
.kp-ai-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 8px; }
.kp-ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.kp-ai-regen { padding: 7px 14px; border-radius: 9px; border: 1px solid #c7d2fe; background: #eef2ff; color: #4f46e5; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.kp-ai-regen:active { transform: translateY(1px); }
.kp-ai-time { font-size: 11px; color: #9ca3af; }
@media (max-width: 640px) {
.layout.mobile-student button, .layout.mobile-student .btn, .layout.mobile-student .stu-btn, .layout.mobile-student .stu-tl-btn, .layout.mobile-student .stu-assess-btn { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.stu-course-actions { display: grid; grid-template-columns: 1fr 1fr; }
.stu-course-actions .stu-btn { min-width: 0; }
.stu-portrait-radar-row { grid-template-columns: 1fr; }
.stu-portrait-radar { max-width: 220px; margin: 0 auto; }
.sidebar { width: 150px; }

}
/* ===================== 学员移动端 Round1：更多/课程/任务/我的 ===================== */
/* 页面级标题栏（替代被隐藏的 topbar）：白底 + 安全区 + 粗体标题 */
.mobile-student .stu-mbar {
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: #fff; color: #1f2937; font-size: 17px; font-weight: 800;
  border-bottom: 1px solid #eef1f4;
}
/* AI 智能助手推荐条 */
.mobile-student .stu-ai-banner {
  display: flex; align-items: center; gap: 12px; margin: 14px 16px 4px;
  background: linear-gradient(135deg, #2ECC71, #16A085); border-radius: 16px;
  padding: 14px 16px; color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(22,160,133,.22);
}
.mobile-student .stu-ai-ico { width: 34px; height: 34px; flex: 0 0 auto; color: #fff; }
.mobile-student .stu-ai-ico svg { width: 100%; height: 100%; display: block; }
.mobile-student .stu-ai-txt { flex: 1; min-width: 0; }
.mobile-student .stu-ai-t1 { font-size: 15px; font-weight: 800; }
.mobile-student .stu-ai-t2 { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-student .stu-ai-go { flex: 0 0 auto; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.22); padding: 5px 10px; border-radius: 999px; }
/* 工具网格（3 列） */
.mobile-student .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 16px calc(76px + env(safe-area-inset-bottom, 0px)); }
.mobile-student .tool-cell {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; padding: 18px 8px;
  box-shadow: 0 2px 8px rgba(15,40,35,.05); cursor: pointer; color: #1f2937;
}
.mobile-student .tool-cell:active { background: #f6fbf8; }
.mobile-student .tool-ico { width: 30px; height: 30px; color: var(--primary-dark, #16A085); display: flex; align-items: center; justify-content: center; }
.mobile-student .tool-ico svg { width: 100%; height: 100%; display: block; }
.mobile-student .tool-label { font-size: 13px; font-weight: 600; color: #1f2937; }
.mobile-student .tool-cell.placeholder { visibility: hidden; }
/* 课程页：中和 .card 容器，h3 作为标题栏 */
.mobile-student .stu-course-card, .mobile-student .stu-task-card { background: transparent; border: none; box-shadow: none; padding: 0; max-width: none; margin: 0; }
.mobile-student .stu-course-card > h3, .mobile-student .stu-task-card > h3 {
  margin: 0; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px;
  font-size: 17px; font-weight: 800; color: #1f2937; background: #fff; border-bottom: 1px solid #eef1f4;
}
.mobile-student .stu-courses { padding: 14px 16px calc(76px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
/* ===== 课程卡（横版 · 紧凑时间块 / 整卡 jade 主色仅靠标签区分状态 / 四色四按钮）===== */
.mobile-student .stu-course {
  display: flex; align-items: stretch;
  background: linear-gradient(135deg, #ffffff 0%, #F4FCF7 100%);
  border: 1px solid #c3e9d4; border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15,109,86,.06);
  padding: 0; overflow: hidden;
}
/* 紧凑左侧时间块（不再突出日期大字号） */
.mobile-student .stu-course-left {
  flex: 0 0 64px;
  background: linear-gradient(180deg, #E9F9F0 0%, #DBF5EA 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 4px; gap: 3px;
  border-right: 1px solid #d9efe3;
  color: #16A085;
}
.mobile-student .stu-course-time-md {
  font-size: 12px; font-weight: 500; line-height: 1; color: #5f9b80;
}
.mobile-student .stu-course-time-d {
  font-size: 19px; font-weight: 700; line-height: 1.1; margin-top: 2px;
  color: #0F6E56;
}
.mobile-student .stu-course-time-slot {
  font-size: 10.5px; font-weight: 500; color: #16A085;
  margin-top: 3px;
}
/* 右侧正文 */
.mobile-student .stu-course-right {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 12px 14px 12px;
}
.mobile-student .stu-course-title-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.35;
}
.mobile-student .stu-course-title-row .stu-course-status-inline { flex: 0 0 auto; margin-left: auto; }
.mobile-student .stu-course-title {
  flex: 1; min-width: 0;
  word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mobile-student .stu-course-meta-line {
  margin-top: 5px; font-size: 12.5px; color: #6b7480; line-height: 1.45;
}
.mobile-student .stu-course-status-inline {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
}
.mobile-student .stu-course-status-inline.ongoing { background: #D4F5E6; color: #0C6B4F; }
.mobile-student .stu-course-status-inline.ended { background: #FBE7C0; color: #8A5A10; }
.mobile-student .stu-course-status-inline.upcoming { background: #FFE6CC; color: #B5480A; }
/* 底部四按钮（紧凑四列：上图标下小字，四种点缀色，不灰底） */
.mobile-student .stu-course-actions-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  margin-top: auto; padding-top: 10px;
  border-top: 1px dashed #c3e9d4;
}
.mobile-student .stu-cbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 6px 2px;
  border: none; border-radius: 10px; background: transparent; color: inherit;
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.mobile-student .stu-cbtn:active:not(.disabled) { transform: scale(.93); }
.mobile-student .stu-cbtn-ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-student .stu-cbtn-ico svg { width: 16px; height: 16px; display: block; }
.mobile-student .stu-cbtn-label { font-size: 11.5px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
/* 四种点缀色（提高饱和度） */
.mobile-student .stu-cbtn.jade .stu-cbtn-ico { background: #D4F5E6; color: #0E9F6E; }
.mobile-student .stu-cbtn.jade { color: #0C6B4F; }
.mobile-student .stu-cbtn.purple .stu-cbtn-ico { background: #E2DEFF; color: #4F45D6; }
.mobile-student .stu-cbtn.purple { color: #312E81; }
.mobile-student .stu-cbtn.amber .stu-cbtn-ico { background: #FBE7C0; color: #D97706; }
.mobile-student .stu-cbtn.amber { color: #8A5A10; }
.mobile-student .stu-cbtn.sky .stu-cbtn-ico { background: #D8EBFC; color: #1D6FD0; }
.mobile-student .stu-cbtn.sky { color: #0B4F94; }
.mobile-student .stu-cbtn.done .stu-cbtn-ico { background: var(--primary-dark); color: #fff; }
.mobile-student .stu-cbtn.done { color: #16A085; }
.mobile-student .stu-cbtn.disabled { opacity: .4; cursor: not-allowed; }
.mobile-student .stu-course-intro { margin-top: 10px; font-size: 12.5px; color: #5b6470; line-height: 1.6; background: #f6fbf8; border-radius: 10px; padding: 10px 12px; }
/* 任务页：时间线改卡片流 */
.mobile-student .stu-timeline { padding: 14px 16px calc(76px + env(safe-area-inset-bottom, 0px)); }
.mobile-student .stu-tl-phase-head { display: flex; align-items: baseline; gap: 6px; margin: 6px 2px 10px; }
.mobile-student .stu-tl-phase-label { font-size: 15px; font-weight: 800; color: #16A085; }
.mobile-student .stu-tl-phase-sub { font-size: 12px; color: #9aa3af; }
.mobile-student .stu-tl-phase-count { margin-left: auto; font-size: 12px; color: #9aa3af; }
.mobile-student .stu-tl-phase-body { display: flex; flex-direction: column; gap: 12px; }
.mobile-student .stu-tl-item { position: relative; }
.mobile-student .stu-tl-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; padding: 14px; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-tl-card.done { background: #fafdfb; }
.mobile-student .stu-tl-title { font-size: 14.5px; font-weight: 700; color: #1f2937; line-height: 1.4; }
.mobile-student .stu-tl-meta { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6b7480; }
.mobile-student .stu-tl-type { background: #eef1f4; color: #5b6470; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.mobile-student .stu-tl-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mobile-student .stu-tl-status { font-size: 12px; font-weight: 700; }
.mobile-student .stu-tl-status.pending { color: #FB923C; }
.mobile-student .stu-tl-status.done { color: #16A085; }
.mobile-student .stu-tl-status.returned { color: #ef4444; }
.mobile-student .stu-tl-btn { border: none; border-radius: 10px; height: 34px; padding: 0 16px; font-size: 13px; font-weight: 700; cursor: pointer; background: linear-gradient(135deg, #2ECC71, #16A085); color: #fff; }
.mobile-student .stu-tl-btn.ghost { background: #eef1f4; color: #6b7480; }
/* 移动端任务页 v2：设计稿「任务 / 待办与已完成 / 胶囊 tab / 类型彩色圆卡片」 */
.mobile-student .stu-tasks-wrap { padding: 0 0 calc(80px + env(safe-area-inset-bottom, 0px)); }
.mobile-student .stu-tasks-head { padding: 14px 4px 4px; }
.mobile-student .stu-tasks-title { font-size: 26px; font-weight: 800; color: #1f2937; line-height: 1.2; }
.mobile-student .stu-tasks-sub { margin-top: 6px; font-size: 13px; color: #9aa3af; }
.mobile-student .stu-task-tabs { display: inline-flex; gap: 0; background: #f1f5f9; border-radius: 24px; padding: 4px; margin: 18px 16px 16px; }
.mobile-student .stu-task-tab {
  border: none; background: transparent; cursor: pointer;
  padding: 0 18px; height: 34px; border-radius: 20px;
  font-size: 13.5px; font-weight: 700; color: #6b7480;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
.mobile-student .stu-task-tab.active { background: var(--primary-dark); color: #fff; box-shadow: 0 2px 6px rgba(22,160,133,.28); }
.mobile-student .stu-task-tab-num { font-size: 12px; opacity: .85; font-weight: 700; }
.mobile-student .stu-task-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.mobile-student .stu-tk-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #eef1f4; border-radius: 16px;
  padding: 14px 14px; box-shadow: 0 2px 8px rgba(15,40,35,.04);
  transition: transform .12s, box-shadow .15s;
}
.mobile-student .stu-tk-card:active { transform: scale(.985); box-shadow: 0 1px 4px rgba(15,40,35,.06); }
.mobile-student .stu-tk-card.done { opacity: 1; }
.mobile-student .stu-tk-card.done .stu-tk-title { color: #1f2937; }
.mobile-student .stu-tk-ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-student .stu-tk-ico svg { display: block; }
.mobile-student .stu-tk-body { flex: 1 1 auto; min-width: 0; }
.mobile-student .stu-tk-title {
  font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; word-break: break-all;
}
.mobile-student .stu-tk-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #6b7480; min-width: 0; }
.mobile-student .stu-tk-tag { padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 11.5px; }
.mobile-student .stu-tk-meta-text {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-student .stu-tk-ring { display: inline-block; width: 22px; height: 22px; border: 1.5px solid #cbd5e1; border-radius: 50%; flex: 0 0 22px; }
.mobile-student .stu-tk-ok {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #16A085; flex: 0 0 22px;
}
/* 审核中（submitted）：琥珀色边框 + 时钟环，提示「已提交·待班主任批阅」 */
.mobile-student .stu-tk-card.reviewing { border-color: #FCD34D; background: #FFFDF5; }
.mobile-student .stu-tk-card.reviewing .stu-tk-title { color: #92400E; }
.mobile-student .stu-tk-ring.reviewing { border-color: #F59E0B; color: #B45309; display: inline-flex; align-items: center; justify-content: center; }
.mobile-student .stu-tk-card.returned { border-color: #FCA5A5; background: #FFFBFB; }
.mobile-student .stu-tk-ring.returned { border-color: #EF4444; background: #FEF2F2; }
.mobile-student .stu-tk-hint { margin-left: 2px; padding: 1px 8px; border-radius: 6px; font-weight: 700; font-size: 11px; }
.mobile-student .stu-tk-hint.reviewing { background: #FEF3C7; color: #B45309; }
.mobile-student .stu-tk-hint.returned { background: #FEE2E2; color: #DC2626; }
/* 任务弹层内的「审核中」提示条 */
.stu-task-note { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.stu-task-note.reviewing { background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E; }
.mobile-student .stu-tk-empty { text-align: center; padding: 56px 20px; color: #9aa3af; font-size: 14px; }
/* 我的（个人中心） */
.mobile-student .stu-me { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.mobile-student .stu-me-head { position: relative; background: linear-gradient(135deg, #2ECC71, #16A085); color: #fff; padding: calc(34px + env(safe-area-inset-top, 0px)) 20px 22px; }
.mobile-student .stu-me-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; }
.mobile-student .stu-me-avatar svg { width: 36px; height: 36px; display: block; }
.mobile-student .stu-me-name { margin-top: 12px; font-size: 22px; font-weight: 800; }
.mobile-student .stu-me-sub { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.88); }
.mobile-student .stu-me-cls { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: 18px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.22); padding: 4px 12px; border-radius: 999px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-student .stu-me-stats { display: flex; gap: 12px; padding: 14px 16px 4px; }
.mobile-student .stu-me-stat { flex: 1; background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 14px 8px; text-align: center; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-me-stat-v { font-size: 19px; font-weight: 800; color: #16A085; }
.mobile-student .stu-me-stat-l { margin-top: 4px; font-size: 12px; color: #6b7480; }
.mobile-student .stu-me-menu { margin: 12px 16px 0; background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-me-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.mobile-student .stu-me-item + .stu-me-item { border-top: 1px solid #f0f2f5; }
.mobile-student .stu-me-item:active { background: #f6fbf8; }
.mobile-student .stu-me-ico { width: 22px; height: 22px; color: #16A085; flex: 0 0 auto; }
.mobile-student .stu-me-ico svg { width: 100%; height: 100%; display: block; }
.mobile-student .stu-me-t { flex: 1; font-size: 15px; font-weight: 600; color: #1f2937; }
.mobile-student .stu-me-go { font-size: 22px; color: #c2c8d0; line-height: 1; }
.mobile-student .stu-me-item.danger .stu-me-ico, .mobile-student .stu-me-item.danger .stu-me-t { color: #ef4444; }
/* ===================== 学员移动端 Round2/3：画像 / 通知 / 问卷 / 搜索 / 联系 ===================== */
/* 子页统一标题栏返回按钮（左侧竖箭头，标题居中由 .stu-mbar 控制） */
.mobile-student .stu-mbar-back {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: none; background: transparent;
  color: #1f2937; font-size: 28px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mobile-student .stu-mbar-back:active { color: #16A085; }
/* 画像 */
.mobile-student .stu-pf-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 16px; background: #fff; border: 1px solid #e6e9ee; border-radius: 16px;
  padding: 16px; box-shadow: 0 2px 8px rgba(15,40,35,.05);
}
.mobile-student .stu-pf-name { font-size: 18px; font-weight: 800; color: #1f2937; }
.mobile-student .stu-pf-cls { margin-top: 4px; font-size: 13px; color: #16A085; font-weight: 700; }
.mobile-student .stu-pf-score {
  flex: none; width: 66px; height: 66px; border-radius: 50%;
  border: 3px solid #2ECC71; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #16A085;
}
.mobile-student .stu-pf-score b { font-size: 22px; line-height: 1; }
.mobile-student .stu-pf-score span { font-size: 11px; }
.mobile-student .stu-pf-card {
  margin: 0 16px 14px; background: #fff; border: 1px solid #e6e9ee; border-radius: 16px;
  padding: 16px; box-shadow: 0 2px 8px rgba(15,40,35,.05);
}
.mobile-student .stu-pf-sec-t { font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }
.mobile-student .stu-pf-radar { position: relative; max-width: 260px; margin: 0 auto 6px; }
.mobile-student .stu-pf-radar .chart-box { width: 100%; }
.mobile-student .stu-pf-radar-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; font-weight: 800; color: #16A085; }
.mobile-student .stu-pf-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.mobile-student .stu-pf-formula { font-size: 12px; color: #9aa3af; margin-top: 10px; line-height: 1.7; }
.mobile-student .stu-pf-stats { display: flex; gap: 12px; padding: 0 16px 14px; }
.mobile-student .stu-pf-stat { flex: 1; background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 14px 8px; text-align: center; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-pf-stat .v { font-size: 19px; font-weight: 800; color: #16A085; }
.mobile-student .stu-pf-stat .l { margin-top: 4px; font-size: 12px; color: #6b7480; }
/* 画像页 AI 智能解读：移动端微调（与柯氏卡片同宽，便于竖屏阅读） */
.mobile-student .kp-ai { margin-top: 12px; border-radius: 12px; }
.mobile-student .kp-ai-title { font-size: 15px; }
.mobile-student .kp-ai-sub { font-size: 11px; }
.mobile-student .kpair-c { font-size: 13.5px; }
.mobile-student .kp-ai-regen { padding: 8px 16px; }
/* 柯氏四级移动端卡片对齐 */
.mobile-student .kp-flat-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; box-shadow: 0 2px 8px rgba(15,40,35,.05); margin: 0 16px 16px; padding: 16px; }
.mobile-student .kp-flat-head { margin-bottom: 10px; }
.mobile-student .kp-flat-levels { display: flex; flex-direction: column; gap: 10px; }
.mobile-student .kp-expand-btn { width: 100%; margin-top: 12px; border: 1px solid #e6e9ee; background: #f6fbf8; color: #16A085; border-radius: 10px; height: 40px; font-weight: 700; cursor: pointer; }
/* 通知列表 — 左侧 accent bar + 同色 tag（按分类/状态着色） */
.mobile-student .stu-notice-tabs { display: flex; gap: 6px; padding: 12px 16px 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mobile-student .stu-notice-tabs::-webkit-scrollbar { display: none; }
.mobile-student .stu-notice-tab { padding: 6px 14px; border-radius: 18px; font-size: 13px; font-weight: 600; background: #fff; color: #6b7280; border: 1px solid #e6e9ee; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.mobile-student .stu-notice-tab.active { background: var(--primary-dark); color: #fff; border-color: #16A085; }
.mobile-student .stu-notice-list { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.mobile-student .stu-notice-item { background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 13px 16px 14px 18px; box-shadow: 0 2px 8px rgba(15,40,35,.04); cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 6px; transition: transform .15s; }
.mobile-student .stu-notice-item:active { transform: scale(.985); }
.mobile-student .stu-notice-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 14px 0 0 14px; }
.mobile-student .stu-notice-item.cat-top::before { background: #ef4444; }
.mobile-student .stu-notice-item.cat-class::before { background: #10b981; }
.mobile-student .stu-notice-item.cat-academic::before { background: #3b82f6; }
.mobile-student .stu-notice-item.cat-system::before { background: #9ca3af; }
.mobile-student .stu-notice-item.cat-news::before { background: #8b5cf6; }
.mobile-student .stu-notice-cat-row { display: flex; align-items: center; gap: 8px; }
.mobile-student .stu-notice-cat { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.mobile-student .stu-notice-cat.cat-top { background: #fef2f2; color: #dc2626; }
.mobile-student .stu-notice-cat.cat-class { background: #ecfdf5; color: #059669; }
.mobile-student .stu-notice-cat.cat-academic { background: #eff6ff; color: #2563eb; }
.mobile-student .stu-notice-cat.cat-system { background: #f3f4f6; color: #6b7280; }
.mobile-student .stu-notice-cat.cat-news { background: #f5f3ff; color: #7c3aed; }
.mobile-student .stu-notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex: 0 0 auto; }
.mobile-student .stu-notice-t { font-size: 15.5px; font-weight: 700; color: #1f2937; line-height: 1.45; }
.mobile-student .stu-notice-d { font-size: 13px; color: #6b7280; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-student .stu-notice-m { font-size: 12px; color: #9aa3af; }
.mobile-student .stu-notice-m b { font-weight: 600; color: #6b7280; }
/* 通知详情 */
.mobile-student .stu-nd-card { margin: 12px 16px 16px; background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; padding: 18px 16px; box-shadow: 0 2px 8px rgba(15,40,35,.05); }
.mobile-student .stu-nd-title { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: #1f2937; line-height: 1.4; }
.mobile-student .stu-nd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #6b7480; margin-bottom: 14px; }
.mobile-student .stu-nd-body { font-size: 14px; color: #374151; line-height: 1.8; }
.mobile-student .stu-nd-body img { max-width: 100%; border-radius: 8px; }
/* 我的问卷 — 左侧 accent bar + 顶部统计 chips */
.mobile-student .stu-surv-stats { display: flex; gap: 12px; padding: 10px 16px 4px; }
.mobile-student .stu-surv-stat-chip { flex: 1; padding: 14px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; border: 1px solid #e6e9ee; background: #fff; }
.mobile-student .stu-surv-stat-chip.pend { background: #FFFBEB; border-color: #FDE68A; }
.mobile-student .stu-surv-stat-chip.done { background: #ECFDF5; border-color: #A7F3D0; }
.mobile-student .stu-surv-stat-label { font-size: 12.5px; color: #6b7280; font-weight: 600; }
.mobile-student .stu-surv-stat-num { font-size: 22px; font-weight: 800; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.mobile-student .stu-surv-stat-chip.pend .stu-surv-stat-num { color: #D97706; }
.mobile-student .stu-surv-stat-chip.done .stu-surv-stat-num { color: #059669; }
.mobile-student .stu-surv-stat-unit { font-size: 13px; font-weight: 600; margin-left: 2px; }
.mobile-student .stu-surv-list { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.mobile-student .stu-surv-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 14px 16px 14px 18px; box-shadow: 0 2px 8px rgba(15,40,35,.04); cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 8px; transition: transform .15s; }
.mobile-student .stu-surv-card:active { transform: scale(.985); }
.mobile-student .stu-surv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 14px 0 0 14px; }
.mobile-student .stu-surv-card.pend::before { background: #F59E0B; }
.mobile-student .stu-surv-card.done::before { background: #10B981; }
.mobile-student .stu-surv-cat-row { display: flex; align-items: center; gap: 8px; }
.mobile-student .stu-surv-cat { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.mobile-student .stu-surv-card.pend .stu-surv-cat { background: #FEF3C7; color: #D97706; }
.mobile-student .stu-surv-card.done .stu-surv-cat { background: #D1FAE5; color: #059669; }
.mobile-student .stu-surv-t { font-size: 15.5px; font-weight: 700; color: #1f2937; line-height: 1.45; }
.mobile-student .stu-surv-meta { font-size: 13px; color: #6b7280; }
.mobile-student .stu-surv-progress { height: 5px; background: #F1F5F4; border-radius: 3px; overflow: hidden; }
.mobile-student .stu-surv-progress-bar { height: 100%; background: linear-gradient(90deg, #2ECC71, #16A085); border-radius: 3px; transition: width .3s; }
.mobile-student .stu-surv-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mobile-student .stu-surv-due { font-size: 12.5px; color: #9aa3af; }
.mobile-student .stu-surv-act { padding: 6px 16px; border-radius: 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity .15s, transform .1s; line-height: 1.4; }
.mobile-student .stu-surv-act.go { background: var(--primary-strong); color: #fff; border: none; }
.mobile-student .stu-surv-act.go:active { background: #16A085; transform: scale(.97); }
.mobile-student .stu-surv-act.cont { background: #fff; color: #16A085; border: 1.5px solid #2ECC71; }
.mobile-student .stu-surv-act.cont:active { background: #E8F8F1; transform: scale(.97); }
/* 空状态 */
.mobile-student .stu-empty { text-align: center; color: #9aa3af; font-size: 14px; padding: 60px 20px; }
/* 调研填写/查看详情（移动端） */
.mobile-student .stu-surv-detail { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.mobile-student .stu-surv-d-title { font-size: 19px; font-weight: 700; color: #1f2937; line-height: 1.4; }
.mobile-student .stu-surv-d-desc { font-size: 13px; color: #6b7280; line-height: 1.7; background: #f6f9fc; border-left: 3px solid #16A085; padding: 10px 12px; border-radius: 8px; }
.mobile-student .stu-surv-d-status { font-size: 13px; font-weight: 600; }
.mobile-student .stu-surv-d-status.open { color: #16A085; }
.mobile-student .stu-surv-d-status.done { color: #9ca3af; }
.mobile-student .stu-surv-q { background: #fff; border: 1px solid #eef2f1; border-radius: 14px; padding: 14px; box-shadow: 0 1px 3px rgba(16,160,133,.06); }
.mobile-student .stu-surv-qt { font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.5; margin-bottom: 10px; }
.mobile-student .stu-surv-qbadge { font-size: 11px; font-weight: 500; color: #16A085; background: #e8f8f1; border-radius: 6px; padding: 2px 6px; margin-left: 4px; vertical-align: middle; }
.mobile-student .stu-surv-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px; background: #f7faf9; border: 1px solid #eef3f1; border-radius: 10px; font-size: 14px; color: #374151; cursor: pointer; }
.mobile-student .stu-surv-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.mobile-student .stu-surv-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; flex: 0 0 auto; box-sizing: border-box; transition: all .15s; }
.mobile-student .stu-surv-opt.on { border-color: #2ECC71; background: #e8f8f1; color: #16A085; font-weight: 600; }
.mobile-student .stu-surv-opt.on .stu-surv-dot { border-color: #2ECC71; background: #2ECC71; box-shadow: inset 0 0 0 3px #fff; }
.mobile-student .stu-surv-box { width: 18px; height: 18px; border-radius: 4px; border: 2px solid #cbd5e1; flex: 0 0 auto; box-sizing: border-box; transition: all .15s; position: relative; }
.mobile-student .stu-surv-opt.on .stu-surv-box { border-color: #2ECC71; background: #2ECC71; }
.mobile-student .stu-surv-opt.on .stu-surv-box::after { content: ''; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mobile-student .stu-surv-ol { flex: 1; }
.mobile-student .stu-surv-blank { width: 100%; border: 1px solid #e3e8e6; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.6; resize: vertical; font-family: inherit; box-sizing: border-box; }
.mobile-student .stu-surv-blank-ro { white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: #374151; background: #f7faf9; border-radius: 10px; padding: 10px 12px; }
.mobile-student .stu-surv-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 4px; }
.mobile-student .stu-surv-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.mobile-student .stu-surv-matrix th, .mobile-student .stu-surv-matrix td { border: 1px solid #eef3f1; padding: 6px 8px; text-align: center; }
.mobile-student .stu-surv-matrix th:first-child, .mobile-student .stu-surv-matrix td:first-child { text-align: left; white-space: nowrap; }
/* v521 手机端矩阵量表题（堆叠卡片：每行陈述上方 + 5 列评分按钮下方，等宽 pile，选中绿底） */
.mobile-student .stu-surv-mmatrix { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mobile-student .stu-surv-mmrow { background: #f7faf9; border: 1px solid #eef3f1; border-radius: 10px; padding: 11px 12px; }
.mobile-student .stu-surv-mmrow-t { font-size: 14px; color: #1f2937; line-height: 1.55; margin-bottom: 9px; word-break: break-word; }
.mobile-student .stu-surv-mroptions { display: flex; flex-wrap: wrap; gap: 5px; }
.mobile-student .stu-surv-mcell { position: relative; flex: 1 1 0; min-width: 58px; padding: 7px 4px; border: 1.5px solid #eef3f1; border-radius: 8px; background: #fff; text-align: center; font-size: 12.5px; color: #5b6470; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1.25; transition: border-color .15s, background .15s, color .15s, transform .1s; }
/* v522：input 必须真覆盖在 label 上且可接收点击，原来 width:0/pointer-events:none 让 iOS/微信浏览器不响应 */
.mobile-student .stu-surv-mcell input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.mobile-student .stu-surv-mcell:active { transform: scale(.96); }
.mobile-student .stu-surv-mcell.is-on { border-color: #2ECC71; background: #e8f8f1; color: #16A085; font-weight: 600; }
.mobile-student .stu-surv-mcell-text { display: block; word-break: break-word; pointer-events: none; }
.mobile-student .stu-surv-d-submit { margin-top: 4px; width: 100%; height: 48px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#2ECC71,#16A085); color: #fff; font-size: 16px; font-weight: 600; }
.mobile-student .stu-surv-d-closed { color: #ef4444; font-size: 13px; text-align: center; background: #fef2f2; border-radius: 10px; padding: 10px; }
.mobile-student .stu-surv-d-back { text-align: center; color: #9ca3af; font-size: 14px; padding: 6px; }
/* 简报详情封面（移动端） */
.mobile-student .stu-nd-card-news .stu-nd-cover { width: 100%; border-radius: 12px; margin-bottom: 12px; display: block; }
/* 待答题列表（移动端 jade 紧凑卡片） */
.mobile-student .stu-ass-stat { padding: 10px 14px 2px; }
.mobile-student .stu-ass-chip { display: inline-flex; align-items: center; gap: 6px; background: #E8F8F1; color: #16A085; padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.mobile-student .stu-ass-chip .stu-ass-dot { width: 6px; height: 6px; border-radius: 50%; background: #2ECC71; }
.mobile-student .stu-ass-list { padding: 8px 14px 16px; }
.mobile-student .stu-ass-card { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(16,160,133,.05); }
.mobile-student .stu-ass-tag { display: inline-block; background: #E8F8F1; color: #16A085; font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; }
.mobile-student .stu-ass-q { font-size: 14px; font-weight: 500; color: #1f2937; line-height: 1.5; margin-bottom: 10px; }
.mobile-student .stu-ass-bot { display: flex; align-items: center; justify-content: space-between; }
.mobile-student .stu-ass-due { font-size: 11px; color: #9aa3af; }
.mobile-student .stu-ass-go { background: var(--primary-strong); color: #fff; border: none; padding: 6px 14px; border-radius: 14px; font-size: 12px; font-weight: 500; }
/* ============ 学员移动端：答题板 / 纸条箱 / 日历 / 扫一扫（#396） ============ */
.mobile-student .stu-loading { text-align: center; color: #9aa3af; font-size: 14px; padding: 60px 20px; }
/* 答题板 */
.mobile-student .stu-ab-sum { font-size: 12.5px; color: #6b7280; padding: 16px 18px 6px; }
.mobile-student .stu-ab-card { background: #fff; border: 1px solid #eef2f1; border-radius: 14px; padding: 14px; margin: 0 16px 12px; box-shadow: 0 1px 3px rgba(16,160,133,.05); }
.mobile-student .stu-ab-q { font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.5; margin-bottom: 10px; }
.mobile-student .stu-ab-opts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.mobile-student .stu-ab-opt { font-size: 12.5px; color: #6b7280; background: #f4f6f8; border: 1px solid #e6e9ee; border-radius: 8px; padding: 4px 10px; }
.mobile-student .stu-ab-opt.sel { color: #16A085; background: #E8F8F1; border-color: #2ECC71; font-weight: 600; }
.mobile-student .stu-ab-a { display: flex; align-items: baseline; gap: 8px; background: #f7faf9; border-radius: 10px; padding: 9px 11px; }
.mobile-student .stu-ab-a-l { font-size: 12px; color: #9aa3af; flex: 0 0 auto; }
.mobile-student .stu-ab-a-v { font-size: 14.5px; color: #16A085; font-weight: 600; word-break: break-word; }
.mobile-student .stu-ab-a-v.text { color: #374151; font-weight: 500; }
.mobile-student .stu-ab-meta { font-size: 12px; color: #9aa3af; margin-top: 8px; }
/* 纸条箱 */
.mobile-student .stu-nb-card { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #eef2f1; border-radius: 14px; padding: 13px 14px; margin: 0 16px 12px; box-shadow: 0 1px 3px rgba(16,160,133,.05); }
.mobile-student .stu-nb-emoji { font-size: 22px; line-height: 1.2; flex: 0 0 auto; }
.mobile-student .stu-nb-body { flex: 1; min-width: 0; }
.mobile-student .stu-nb-content { font-size: 14.5px; color: #374151; line-height: 1.6; word-break: break-word; }
.mobile-student .stu-nb-meta { font-size: 12px; color: #9aa3af; margin-top: 6px; }
/* 日历 */
.mobile-student .stu-cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.mobile-student .stu-cal-btn { width: 36px; height: 36px; border: 1px solid #e6e9ee; background: #fff; border-radius: 10px; font-size: 20px; color: #16A085; line-height: 1; cursor: pointer; }
.mobile-student .stu-cal-btn:active { background: #E8F8F1; }
.mobile-student .stu-cal-ym { font-size: 16px; font-weight: 700; color: #1f2937; }
.mobile-student .stu-cal-card { margin: 6px 16px 0; background: #fff; border: 1px solid #eef2f1; border-radius: 16px; padding: 14px 12px 16px; box-shadow: 0 1px 3px rgba(16,160,133,.05); }
.mobile-student .stu-cal-hint { font-size: 12px; color: #9aa3af; text-align: center; padding: 12px 18px calc(76px + env(safe-area-inset-bottom, 0px)); }
/* 复用 PC 月历组件，移动端尺寸收敛 */
.mobile-student .stu-cal-card .cal-head { display: none; }
.mobile-student .stu-cal-card .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mobile-student .stu-cal-card .dow { text-align: center; font-size: 12px; color: #9aa3af; padding: 4px 0; }
.mobile-student .stu-cal-card .day { position: relative; min-height: 44px; border-radius: 10px; background: #f7faf9; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: #374151; cursor: default; }
.mobile-student .stu-cal-card .day.muted { background: transparent; }
.mobile-student .stu-cal-card .day.today { box-shadow: inset 0 0 0 2px #2ECC71; font-weight: 700; }
.mobile-student .stu-cal-card .day.has-task { background: #E8F8F1; cursor: pointer; }
.mobile-student .stu-cal-card .day.has-task.overdue { background: #fdecea; }
.mobile-student .stu-cal-card .d-num { line-height: 1; }
.mobile-student .stu-cal-card .ct-dot { display: none; }
.mobile-student .stu-cal-card .ct-num { position: absolute; top: 4px; right: 5px; font-size: 10px; font-weight: 700; color: #16A085; background: #fff; border-radius: 8px; padding: 0 4px; min-width: 14px; text-align: center; }
.mobile-student .stu-cal-card .day.has-task.overdue .ct-num { color: #ef4444; }
/* 月历当日弹窗（复用 .modal-mask，移动端宽屏收敛） */
.mobile-student .cal-day-modal { width: min(92vw, 420px); }
.mobile-student .cal-day-row { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px dashed #e6e9ee; font-size: 13.5px; }
.mobile-student .cal-day-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; flex: 0 0 auto; }
.mobile-student .cal-day-tag.tag-ok { color: #16A085; background: #E8F8F1; }
.mobile-student .cal-day-tag.tag-pending { color: #b45309; background: #fef3c7; }
.mobile-student .cal-day-tag.tag-warn { color: #ef4444; background: #fdecea; }
.mobile-student .cal-day-title { flex: 1; min-width: 0; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-student .cal-day-meta { font-size: 11px; color: #9aa3af; flex: 0 0 auto; }
/* 扫一扫 */
.mobile-student .stu-scan-entry { padding: 16px; }
.mobile-student .stu-scan-video-wrap { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1 / 1; background: #0f172a; border-radius: 16px; overflow: hidden; }
.mobile-student .stu-scan-video-wrap #scanVideo { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-student .stu-scan-mask { position: absolute; inset: 18%; border: 2px solid rgba(46,204,113,.9); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15,23,42,.45); pointer-events: none; }
.mobile-student .stu-scan-line { position: absolute; left: 18%; right: 18%; top: 18%; height: 2px; background: #2ECC71; box-shadow: 0 0 8px #2ECC71; animation: stu-scan-move 2s ease-in-out infinite; pointer-events: none; }
@keyframes stu-scan-move { 0%,100% { top: 18%; } 50% { top: 82%; } }
.mobile-student .stu-scan-tip { font-size: 13px; color: #6b7280; text-align: center; line-height: 1.7; margin: 16px auto 0; max-width: 320px; }
.mobile-student .stu-scan-tip b { color: #16A085; }
.mobile-student .stu-scan-degrade { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mobile-student .stu-scan-big { width: 100%; padding: 15px; border: none; border-radius: 14px; background: linear-gradient(135deg,#2ECC71,#16A085); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.mobile-student .stu-scan-big:active { opacity: .9; }
.mobile-student .stu-scan-big.alt { background: #fff; color: #16A085; border: 1.6px solid #2ECC71; }
/* 递纸条全屏页（jade 风）*/
.mobile-student .stu-nc > .stu-nc-tip {
  font-size: 13.5px; color: #0F6E56; line-height: 1.7;
  background: linear-gradient(135deg, #E8F8F1 0%, #D4F5E6 100%);
  border: 1.5px solid #2ECC71; border-radius: 14px;
  padding: 12px 14px 12px 36px; margin: 12px 16px 0;
  position: relative; box-shadow: 0 2px 6px rgba(22,160,133,.12);
}
.mobile-student .stu-nc > .stu-nc-tip::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316A085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E");
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
}
.mobile-student .stu-nc > .stu-nc-tip b { color: #0F6E56; }
.mobile-student .stu-nc > .stu-nc-target { font-size: 13px; color: #6b7280; padding: 10px 18px 0; }
.mobile-student .stu-nc-card {
  background: #fff; border: 1px solid #eef2f1; border-radius: 14px;
  padding: 14px 14px 16px; margin: 12px 16px 0;
  box-shadow: 0 1px 3px rgba(16,160,133,.05);
}
.mobile-student .stu-nc-label { font-size: 12.5px; color: #9aa3af; margin-bottom: 10px; }
/* emoji 网格：固定每格宽度 + flex-wrap，撑不出卡片 */
.mobile-student .stu-nc-emoji {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mobile-student .stu-nc-emo {
  flex: 0 0 calc((100% - 7 * 6px) / 8);
  width: calc((100% - 7 * 6px) / 8);
  height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f4f6f8; border: 1px solid transparent; border-radius: 10px;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: transform .12s, background .12s, border-color .12s;
}
.mobile-student .stu-nc-emo:active { transform: scale(.92); }
.mobile-student .stu-nc-emo.on { background: #D4F5E6; border-color: #2ECC71; }
.mobile-student .stu-nc-textarea { width: 100%; background: #f4f6f8; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; color: #1f2937; outline: none; resize: vertical; min-height: 80px; }
.mobile-student .stu-nc-textarea:focus { background: #fff; border-color: #2ECC71; box-shadow: 0 0 0 3px rgba(46,204,113,.12); }
.mobile-student .stu-nc-actions { display: flex; gap: 10px; padding: 14px 16px 0; }
.mobile-student .stu-nc-btn { flex: 1; padding: 13px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; }
.mobile-student .stu-nc-btn.ghost { background: #fff; color: #16A085; border: 1px solid #2ECC71; }
.mobile-student .stu-nc-btn.primary { background: linear-gradient(135deg,#2ECC71,#16A085); color: #fff; box-shadow: 0 8px 20px rgba(22,160,133,.25); }
.mobile-student .stu-nc-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.mobile-student .stu-nc-loading { display: none; text-align: center; color: #16A085; font-size: 13px; padding: 8px 0; }
/* 纸条箱「+ 发新纸条」按钮 */
.mobile-student .stu-ab-add { float: right; background: var(--primary-strong); color: #fff; border: none; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.mobile-student .stu-ab-add:active { background: #16A085; }
/* ============================================================
   学员端 4 页样式升级（补签 / 评价弹窗 · 单选题 · 答题列表）
   玻璃质感 + jade 主色，后定义覆盖既有规则，不影响桌面端
   ============================================================ */

/* —— 弹窗皮肤（补签 / 课程评价，UI.modal 居中卡片内升级） —— */
.stu-modal { }
.stu-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.stu-modal-ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px;
  background: linear-gradient(135deg, #2ECC71, #16A085); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(46,204,113,.40); }
.stu-modal-titles { display: flex; flex-direction: column; gap: 2px; }
.stu-modal-title { font-size: 17px; font-weight: 800; color: #0F2A24; }
.stu-modal-sub { font-size: 12.5px; color: #5C7068; }
.stu-modal-tip { font-size: 13px; color: #5C7068; line-height: 1.6; margin: 0 0 14px; }
.stu-modal-suggest-label { font-size: 12px; color: #5C7068; margin-top: 14px; line-height: 1.5; }
.stu-modal-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }   /* v684：8 chip 紧凑：gap 8→6px */
.stu-modal-s { font-size: 12px; padding: 6px 11px; border-radius: 999px; cursor: pointer; font-weight: 600; white-space: nowrap;
  background: rgba(46,204,113,.08); color: #0E7A5C; border: 1px dashed rgba(46,204,113,.30); }
.stu-modal-s:active { background: rgba(46,204,113,.16); }
.stu-modal-rate { text-align: center; font-size: 12px; color: #5C7068; min-height: 16px; margin-top: 6px; }
/* 主按钮缩小一档 + jade 渐变（弹窗内） */
.stu-modal-send { padding: 11px 20px !important; font-size: 14px !important; border-radius: 13px !important;
  background: linear-gradient(135deg, #2ECC71, #16A085) !important; color: #fff !important; border: none !important;
  font-weight: 800 !important; cursor: pointer; box-shadow: 0 6px 16px rgba(46,204,113,.30) !important; }
.stu-modal-send:active { transform: translateY(1px); }
/* —— v747 定位签到页（学员端：地图 + 实时距离 + 确认打卡）—— */
.lc-modal .stu-modal-tip { margin-bottom: 10px; }
/* v748：弹窗上下铺满屏幕，让地图区域尽量大 */
@media (max-width: 700px) {
  .lc-modal-mask { align-items: stretch !important; justify-content: stretch !important; background: rgba(15,23,42,.32); }
  .lc-modal-mask > .modal { width: 100vw !important; max-width: 100vw !important;
                              height: 100vh !important; max-height: 100vh !important;
                              padding: 0 !important; border-radius: 0 !important;
                              box-shadow: none !important; overflow: hidden !important; }
  .stu-modal.lc-modal { display: flex; flex-direction: column; height: 100vh;
                        padding: 14px 14px 12px; box-sizing: border-box; }
  .stu-modal.lc-modal > .stu-modal-head { flex: 0 0 auto; margin-bottom: 6px; }
  .stu-modal.lc-modal > .stu-modal-tip { flex: 0 0 auto; margin: 4px 0 8px; }
  .stu-modal.lc-modal > .lc-map { flex: 1 1 auto; min-height: 0; height: auto !important; margin: 0 0 10px; border-radius: 12px; }
  .stu-modal.lc-modal > .lc-dist { flex: 0 0 auto; margin: 0 0 10px; }
  .stu-modal.lc-modal > .lc-btn { flex: 0 0 auto; margin: 0; }
  .stu-modal.lc-modal > .lc-note { flex: 0 0 auto; margin: 8px 0 0; }
  .stu-modal.lc-modal > .lc-re { flex: 0 0 auto; margin: 8px 0 12px; }
}
.lc-close { width: 30px; height: 30px; border: 0; background: rgba(15,40,35,.06); color: #5C7068;
  border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; margin-left: auto;
  display: flex; align-items: center; justify-content: center; padding: 0; font-weight: 300; }
.lc-close:active { background: rgba(15,40,35,.12); }
/* v748.2：地图右上角图例，半透明白底不挡地图 */
.lc-legend { position: absolute; top: 8px; right: 8px; z-index: 10;
  background: rgba(255,255,255,.92); padding: 5px 9px; border-radius: 8px;
  font-size: 11px; color: #5C7068; box-shadow: 0 2px 6px rgba(0,0,0,.08);
  display: flex; gap: 10px; align-items: center; line-height: 1.2;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lc-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin-right: 4px; vertical-align: -1px; }
.lc-legend-dot.sign { background: #12a04b; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #12a04b; }
.lc-legend-dot.me { background: #1a7fe0; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #1a7fe0; }
.lc-map { position: relative; height: 160px; border-radius: 10px; overflow: hidden;
  background: #E7F4EC; border: 1px solid #D6E9DF; margin-bottom: 12px; }
.lc-map-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #5C7068; background: rgba(255,255,255,.88); padding: 0 18px; text-align: center;
  line-height: 1.5; z-index: 2; }
.lc-dist { background: #F3F7F5; border-radius: 10px; padding: 12px 14px; display: flex;
  align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.lc-dnum { font-size: 26px; font-weight: 700; line-height: 1; color: #B9C4BE; }
.lc-dlab { font-size: 11.5px; color: #5C7068; }
.lc-badge { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; font-weight: 600;
  background: #E8EDED; color: #5C7068; }
.lc-badge.ok { background: #E7F4EC; color: #0d7e40; }
.lc-badge.bad { background: #FCEBEB; color: #A32D2D; }
.lc-badge.warn { background: #FAEEDA; color: #854F0B; }
.lc-btn { display: block; width: 100%; padding: 13px; border-radius: 12px; font-size: 15px;
  font-weight: 700; border: 0; background: #12a04b; color: #fff; cursor: pointer; }
.lc-btn:disabled { background: #D8DFDC; color: #fff; cursor: not-allowed; }
.lc-btn:active { transform: translateY(1px); }
.lc-note { font-size: 11.5px; color: #5C7068; text-align: center; margin-top: 9px; line-height: 1.5; }
.lc-re { text-align: center; font-size: 11.5px; color: #0d7e40; margin-top: 10px; cursor: pointer; font-weight: 600; }
.lc-ok { text-align: center; padding: 18px 0 12px; }
.lc-ok-ico { width: 62px; height: 62px; border-radius: 50%; background: #E7F4EC; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; }
.lc-ok-t { font-size: 19px; font-weight: 700; color: #0d7e40; margin: 0 0 7px; }
.lc-ok-s { font-size: 11.5px; color: #5C7068; margin: 3px 0; line-height: 1.5; }
/* —— 单选题（#/scan/assessment 移动端） —— */
.mobile-student .stu-scan-card {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 12px 36px rgba(22,160,133,.12), 0 2px 6px rgba(15,40,35,.05);
  border-radius: 20px;
}
.mobile-student .stu-scan-q {
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(232,248,241,.75));
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px; padding: 16px 16px; box-shadow: 0 4px 14px rgba(22,160,133,.08);
}
.mobile-student .stu-scan-opt { background: #fff; border: 1.5px solid rgba(15,40,35,.08); box-shadow: 0 2px 8px rgba(15,40,35,.04); }
.mobile-student .stu-scan-opt.sel {
  border-color: #2ECC71;
  background: linear-gradient(135deg, #E8F8F1, #D4F1E1);
  box-shadow: 0 6px 18px rgba(46,204,113,.18);
}
.mobile-student .stu-scan-opt.sel span { color: #0E5B45; font-weight: 700; }
.mobile-student .stu-scan-submit { padding: 12px; font-size: 14.5px; border-radius: 13px;
  box-shadow: 0 6px 16px rgba(46,204,113,.30), inset 0 1px 0 rgba(255,255,255,.25); }
.mobile-student .stu-scan-ok { background: linear-gradient(135deg, #2ECC71, #16A085); color: #fff;
  box-shadow: 0 6px 18px rgba(46,204,113,.30); }
/* 签到拦截提示（微信扫码 / 未扫码直接进入） */
.mobile-student .stu-scan-warn { margin: 6px 0 10px; text-align: center; padding: 11px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #FDBA74, #F59E0B); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(245,158,11,.28); }
/* —— 答题列表（#/assessment 移动端） —— */
.mobile-student .stu-ass-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 24px rgba(22,160,133,.10);
  border-radius: 18px;
}
.mobile-student .stu-ass-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
}
.mobile-student .stu-ass-tag { border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.mobile-student .stu-ass-go {
  background: linear-gradient(135deg, #2ECC71, #16A085); color: #fff; border: none;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(46,204,113,.30); cursor: pointer;
}
.mobile-student .stu-ass-go::after { content: " ›"; font-weight: 800; margin-left: 1px; }
.mobile-student .stu-ass-go:active { transform: translateY(1px); }
/* ===================== 学员端 PC · 研修指南升级（2026-08-06） ===================== */
/* 背景已在 body.theme-jade 改为 #F4F6F8 浅灰，与移动端统一；作用域限定学员端 PC */

/* 列表行：白卡浮起 + 左侧类型色条 */
body.theme-jade .layout.jade-student .guide-list-row {
  background: #fff; border: 1px solid #EEF1F4; border-radius: 12px;
  padding: 16px 18px 16px 22px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(15,32,47,.04); position: relative; align-items: center;
}
body.theme-jade .layout.jade-student .guide-list-row::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
body.theme-jade .layout.jade-student .guide-list-row.type-newsletter::before { background: #9B6BFF; }
body.theme-jade .layout.jade-student .guide-list-row .guide-list-title { font-size: 15px; font-weight: 600; color: #111827; }
body.theme-jade .layout.jade-student .guide-list-row .guide-list-meta { font-size: 12px; margin-top: 4px; }
body.theme-jade .layout.jade-student .guide-list-row .guide-list-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 类型 chip */
.guide-pill { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.guide-pill-notice { background: #EFF4FF; color: #4F7CFF; }
.guide-pill-newsletter { background: #F3EEFF; color: #9B6BFF; }
.guide-pill-pinned { background: #FEF4E3; color: #F59E0B; }
/* 详情卡浮起 */
body.theme-jade .layout.jade-student .card.guide-detail { border-radius: 4px; padding: 32px 40px; box-shadow: var(--shadow-lg); }
body.theme-jade .layout.jade-student .guide-cover { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin: 4px 0 22px; }
body.theme-jade .layout.jade-student .guide-detail-meta { gap: 10px; }
/* 手册文档卡（管理员上传 PDF/Word，学员下载） */
.manual-doc { background: #fff; border: 1px solid #EEF1F4; border-radius: 16px; padding: 30px 24px; text-align: center; max-width: 560px; margin: 18px auto 0; box-shadow: var(--shadow); }
.manual-doc-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 14px; }
.manual-doc-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: #111827; word-break: break-all; }
.manual-doc-meta { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.btn-download { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg,#2ECC71,#16A085); color: #fff; border: none; padding: 10px 22px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn-download:hover { transform: translateY(-1px); }
.manual-doc-note { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
/* 联系我们四宫格 */
.contact-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.contact-card4 { background: #fff; border: 1px solid #EEF1F4; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.contact-card4:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17, 24, 39, .10); }
.contact-card4 h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 12px; color: #111827; }
.contact-card4 .ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.contact-ico-svg { width: 18px; height: 18px; display: block; }
.contact-row { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.contact-row:last-child { border-bottom: none; }
.contact-row b { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-bottom: 2px; letter-spacing: .3px; }
.contact-row span { color: var(--text); font-weight: 500; }
@media (max-width: 720px) {
.contact-grid4 { grid-template-columns: 1fr; }
 }
/* 手册编辑页：文件上传区 */
.doc-upload { border: 1.5px dashed #CFE3D8; background: var(--primary-soft); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; color: var(--primary-dark); font-size: 13px; transition: background .15s; }
.doc-upload:hover { background: #DDF3E8; }
.doc-remove { color: #E25C5C; margin-left: 8px; cursor: pointer; text-decoration: underline; }
/* ===================== 研修资源库 #/resources =====================
   管理端：统计卡 + 筛选 + 表格 + 新增/编辑弹窗
   学员端：PC 卡片网格 / 手机列表。主色跟随主题变量，类型色为固定语义色。 */
.res-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.res-admin-title { display: flex; align-items: center; gap: 12px; }
.res-admin-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.res-admin-title h3 { margin: 0; font-size: 17px; }
.res-admin-title p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.res-btn-jade { padding: 10px 16px; border-radius: 11px; border: none; font-weight: 700; font-size: 14px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); transition: filter .18s; }
.res-btn-jade:hover { filter: brightness(1.06); }
.res-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.res-stat { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 12px 14px; position: relative; overflow: hidden; }
.res-stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sc, var(--primary)); }
.res-stat .n { font-size: 22px; font-weight: 800; line-height: 1.1; }
.res-stat .l { font-size: 12px; color: var(--muted); margin-top: 3px; }
.res-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.res-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; color: var(--muted); }
.res-search input { border: none; outline: none; flex: 1; font: inherit; font-size: 14px; background: transparent; color: var(--text); padding: 0; margin: 0; }
.res-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.res-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.res-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.res-chip.on { background: var(--primary-soft); color: var(--primary-dark); border-color: transparent; }
.res-table-wrap { overflow-x: auto; }
.res-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-table thead th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.res-table tbody td { padding: 12px; border-bottom: 1px solid #eef5f1; vertical-align: middle; }
.res-table tbody tr:hover { background: var(--primary-soft); }
.res-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.res-name { font-weight: 600; }
.res-intro { font-size: 12px; color: var(--muted); margin-top: 2px; }
.res-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--bc); background: color-mix(in srgb, var(--bc) 13%, #fff); white-space: nowrap; }
.res-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--bc); display: inline-block; }
.res-ops { display: flex; gap: 6px; justify-content: flex-end; }
.res-op { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--border); background: #fff; font: inherit; font-size: 12.5px;
  font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; line-height: 1.4; }
.res-op:hover { border-color: var(--primary); }
.res-op.edit { color: var(--primary-dark); }
.res-op.del { color: #e25b5b; }
.res-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.res-form .field.full { grid-column: 1 / -1; }
.res-form .res-ro { background: #f3f7f5; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.res-form .doc-upload { padding: 13px; }
/* ---- 学员端 PC ---- */
.res-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 16px; padding: 22px 24px; color: #fff;
  margin-bottom: 18px; position: relative; overflow: hidden; }
.res-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.res-hero h2 { margin: 0; font-size: 21px; color: #fff; }
.res-hero p { margin: 6px 0 0; font-size: 13.5px; opacity: .92; }
/* 学员端通用页面 banner：青绿渐变（与 .res-hero 同款），给课程/工作坊/任务/问卷/课堂答题等所有二级页统一风格 */
.stu-page-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 16px; padding: 20px 24px; color: #fff;
  margin-bottom: 18px; position: relative; overflow: hidden; }
.mobile-student .stu-page-hero { margin-left: 16px; margin-right: 16px; }
.stu-page-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.stu-page-hero h2 { margin: 0; font-size: 21px; color: #fff; }
.stu-page-hero p { margin: 6px 0 0; font-size: 13.5px; opacity: .92; }
.stu-page-hero .stu-page-hero-search { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stu-page-hero .stu-page-hero-search input { background: rgba(255, 255, 255, .15); border-color: transparent; }
.stu-page-hero .stu-page-hero-search input::placeholder { color: rgba(255, 255, 255, .6); }
/* 有 banner 图：背景图 + 暗色遮罩 + 白字 */
.stu-page-hero.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; aspect-ratio: 3 / 1; min-height: 100px; display: flex; flex-direction: column; justify-content: center; }
.stu-page-hero.has-img::after { display: none; }
.stu-page-hero.has-img .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.48)); border-radius: 16px; }
.stu-page-hero.has-img h2, .stu-page-hero.has-img p { position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 12px rgba(0,0,0,.35); }
.stu-page-hero .stu-page-hero-search .dt-count { color: rgba(255, 255, 255, .75); font-size: 13px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res-card { background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 16px; transition: .18s; display: flex; flex-direction: column; }
.res-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(22, 80, 65, .12); }
.res-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.res-card h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.res-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.res-card-meta { font-size: 12px; color: var(--muted); }
.res-card-intro { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.res-size { font-size: 12px; color: var(--muted); }
.res-dl { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px; background: var(--primary-soft);
  color: var(--primary-dark); font-weight: 700; font-size: 13px; cursor: pointer; border: none; text-decoration: none; transition: .15s; }
.res-dl:hover { background: var(--primary-strong); color: #fff; }
@media (max-width: 1180px) {
.res-grid { grid-template-columns: repeat(2, 1fr); }
.res-stats { grid-template-columns: repeat(3, 1fr); }
 }
@media (max-width: 760px) {
.res-grid { grid-template-columns: 1fr; }
.res-stats { grid-template-columns: repeat(2, 1fr); }
.res-form { grid-template-columns: 1fr; }
 }
/* ---- 学员端 手机 ---- */
.res-stu-m { padding: 0 0 16px; }
.res-m-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 16px 18px 15px; border-radius: 16px; position: relative; overflow: hidden; }
.mobile-student .res-m-hero { margin-left: 16px; margin-right: 16px; }
.res-m-hero .t { font-size: 17px; font-weight: 800; }
.res-m-hero .s { font-size: 12px; opacity: .9; margin-top: 3px; }
.res-m-hero.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; aspect-ratio: 3 / 1; min-height: 100px; display: flex; flex-direction: column; justify-content: center; }
.res-m-hero.has-img .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.48)); border-radius: inherit; }
.res-m-hero.has-img .t, .res-m-hero.has-img .s { position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 12px rgba(0,0,0,.35); }
.res-m-chips { display: flex; gap: 7px; overflow-x: auto; padding: 12px 16px 4px; background: #fff; -webkit-overflow-scrolling: touch; }
.res-m-chips .res-chip { white-space: nowrap; flex: none; }
.res-m-search { margin: 10px 16px 4px; background: #fff; }
.res-m-list { padding: 10px 16px 8px; }
.res-m-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.res-m-item .res-ic { width: 42px; height: 42px; border-radius: 11px; }
.res-m-item .mi { flex: 1; min-width: 0; }
.res-m-item .mi h4 { margin: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-m-item .mi p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.res-m-item .res-dl { padding: 9px 11px; flex: none; }
/* ===================== v719 视频课程（管理端 PC） ===================== */
.vc-admin { padding: 18px 20px 20px; }
.vc-crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.vc-crumb a { color: var(--primary); text-decoration: none; }
.vc-crumb a:hover { text-decoration: underline; }
.vc-crumb b { color: var(--text); font-weight: 500; }
.vc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vc-head-sub { margin-top: 4px; }
.vc-head-l { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.vc-head-l h3 { margin: 0; font-size: 17px; font-weight: 500; }
.vc-head-l p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.vc-head-ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; background: linear-gradient(135deg, #12a04b, #0d7e40); }
.vc-head-r { display: flex; align-items: center; gap: 8px; }
.vc-btn-main { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-size: 13.5px; cursor: pointer; font-weight: 400; }
.vc-btn-main:hover { filter: brightness(1.06); }
.vc-btn-sub { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 400; }
.vc-btn-sub.ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.vc-btn-sub.ghost:hover { border-color: var(--primary); color: var(--primary); }
.vc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 14px; }
.vc-stat { background: #fafbfc; border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px; text-align: center; }
.vc-stat .n { font-size: 20px; font-weight: 500; color: var(--text); line-height: 1.2; }
.vc-stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.vc-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vc-search { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; height: 34px; min-width: 260px; color: var(--muted); }
.vc-search input { border: 0; outline: none; flex: 1; font-size: 13px; background: transparent; color: var(--text); }
.vc-chips { display: flex; gap: 6px; }
.vc-chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.vc-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.vc-usage { margin-left: auto; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.vc-usage b { color: var(--text); font-weight: 500; }
.vc-usage-l { color: var(--muted); }
/* v756：视频体检状态徽标 */
.vn-b { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; background: #eef2f5; color: #64748b; white-space: nowrap; }
.vn-b.wait { background: #eef2f5; color: #64748b; }
.vn-b.run  { background: #fff5e6; color: #b45309; }
.vn-b.ok   { background: #e7f4ec; color: #0d7e40; }
.vn-b.bad  { background: #fdecec; color: #c0392b; }
.vc-table-wrap { overflow-x: auto; }
.vc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vc-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12.5px; padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.vc-table td { padding: 11px 10px; border-bottom: 1px solid #f1f3f5; vertical-align: middle; }
.vc-table tbody tr:hover { background: #fafbfc; }
.vc-cover { width: 58px; height: 34px; border-radius: 6px; overflow: hidden; background: #f1f3f5; display: flex; align-items: center; justify-content: center; color: #b9c0c7; }
.vc-cover img { width: 100%; height: 100%; object-fit: cover; }
.vc-cover-ph { display: flex; align-items: center; justify-content: center; }
.vc-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); }
.vc-name { font-size: 13.5px; color: var(--text); font-weight: 400; }
.vc-intro { font-size: 12px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
/* v740：门户首页「精品课程」推送标记（点击可取消推送） */
.vc-feat { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px; font-size: 11px; line-height: 1.6; vertical-align: middle; background: #eef4ff; color: #2a5cd6; border: 1px solid #d6e2ff; cursor: pointer; }
.vc-feat:hover { background: #2a5cd6; color: #fff; border-color: #2a5cd6; }
.vc-url { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #9aa3ab; }
.vc-switch { display: inline-flex; align-items: center; gap: 6px; background: #f1f3f5; border: 0; border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.vc-switch i { width: 6px; height: 6px; border-radius: 50%; background: #b9c0c7; display: inline-block; }
.vc-switch.on { background: #e7f4ec; color: #0d7e40; }
.vc-switch.on i { background: #12a04b; }
.vc-ops { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.vc-op { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; font-size: 12px; color: var(--text); cursor: pointer; text-decoration: none; line-height: 1.5; }
.vc-op:hover { border-color: var(--primary); color: var(--primary); }
.vc-op.main { background: var(--primary); border-color: var(--primary); color: #fff; }
.vc-op.main:hover { filter: brightness(1.06); color: #fff; }
.vc-op.del { color: #d9534f; }
.vc-op.del:hover { border-color: #d9534f; color: #d9534f; }
.vc-op[disabled] { opacity: .4; cursor: not-allowed; }
/* ---------- 弹窗表单 ---------- */
.vc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.vc-form .field { display: flex; flex-direction: column; gap: 5px; }
.vc-form .field.full { grid-column: 1 / -1; }
.vc-form .field label { font-size: 12.5px; color: var(--muted); }
.vc-form .field input, .vc-form .field select, .vc-form .field textarea { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; outline: none; background: #fff; color: var(--text); font-family: inherit; }
.vc-form .field input:focus, .vc-form .field select:focus, .vc-form .field textarea:focus { border-color: var(--primary); }
.vc-form .vc-ro { background: #f6f7f9; color: var(--muted); }
.vc-ck { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px; font-size: 13px !important; color: var(--text) !important; cursor: pointer; }
.vc-ck input { width: 15px; height: 15px; }
.vc-cover-box { display: flex; gap: 12px; align-items: flex-start; }
.vc-cover-prev { width: 168px; height: 94px; border-radius: 8px; border: 1px dashed var(--border); background: #fafbfc; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 12px; }
.vc-cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.vc-cover-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vc-hint { font-size: 11.5px; color: var(--muted); }
.vl-drop { border: 1px dashed var(--border); border-radius: 8px; padding: 18px 14px; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; background: #fafbfc; }
.vl-drop:hover { border-color: var(--primary); color: var(--primary); }
.vc-remove { color: #d9534f; margin-left: 6px; }
/* v720：进度条重写（之前 .vl-prog::before + position:absolute 嵌套布局错乱，灰底覆盖在前景上看不到；改为单层 flex + 嵌套条） */
.vl-prog { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.vl-prog-bar { flex: 1; height: 6px; background: #eef0f2; border-radius: 3px; overflow: hidden; }
.vl-prog-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .15s linear; }
/* v724：客户端发完后 server 转存 COS 期间没有进度可报，用流光条表示「还在跑」而不是假死 */
.vl-prog-bar i.vl-indet {
  width: 100% !important;
  background: linear-gradient(90deg, rgba(18,160,75,.18) 0%, rgba(18,160,75,.18) 30%, var(--primary) 50%, rgba(18,160,75,.18) 70%, rgba(18,160,75,.18) 100%);
  background-size: 260% 100%;
  animation: vlIndet 1.2s linear infinite;
}
@keyframes vlIndet { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.vl-prog > span { font-size: 12px; color: var(--muted); flex: none; min-width: 38px; text-align: right; }
.vl-err { margin-top: 8px; padding: 7px 10px; background: #fdf1f1; border: 1px solid #f5c2c0; border-radius: 6px; color: #c33; font-size: 12.5px; line-height: 1.6; }
/* v723：上传成功后的「还需点保存」提示（用户亲历：传完以为好了，关弹窗后列表空的） */
.vl-hint { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); font-size: 12.5px; color: #8a6d3b; }
.vl-hint b { color: #b8860b; }
/* v723：保存按钮脉冲高亮 3 秒，吸引用户注意去点 */
@keyframes vcPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(18,160,75,.45); } 50% { box-shadow: 0 0 0 8px rgba(18,160,75,0); } }
.vc-btn-pulse { animation: vcPulse 1.1s ease-out 3; }
@media (max-width: 900px) {
  .vc-stats { grid-template-columns: repeat(2, 1fr); }
  .vc-form { grid-template-columns: 1fr; }
  .vc-usage { margin-left: 0; }
}
/* ===================== 学员端 PC 改版 · 课程学习 / 研修任务 / 我的画像（2026-08-06） ===================== */
/* 设计稿：view/pc-redesign.html + view/pc-redesign-more.html
   规范：浅灰底 #F4F6F8 + 白卡 + 1px #ECEFF3 描边 + 左侧 3px 主色条；
        整屏只留 1 个主色按钮，其余描边/灰底；辅助色 黄#FEF3C7/#B45309 紫#FCE7F3/#BE185D 蓝#E0F2FE/#0369A1 冷灰#F1F5F9/#64748B */

/* ---------- ① 课程学习页（限学员端 PC） ---------- */
/* 外层容器去卡片化：白卡直接浮在浅灰底上（原来是白卡套白卡） */
body.theme-jade .layout.jade-student .card.stu-course-card { background: transparent; border: none; box-shadow: none; padding: 0; }
body.theme-jade .layout.jade-student .card.stu-course-card > h3 { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
body.theme-jade .layout.jade-student .stu-course {
  position: relative; background: #fff; border: 1px solid #ECEFF3; border-radius: 14px;
  padding: 16px 18px 16px 22px; box-shadow: 0 1px 3px rgba(15,40,35,.04);
  transition: box-shadow .2s, transform .2s;
}
body.theme-jade .layout.jade-student .stu-course::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}
body.theme-jade .layout.jade-student .stu-course.ended::before { background: #CBD5E1; }
body.theme-jade .layout.jade-student .stu-course.upcoming::before { background: #E2E8F0; }
body.theme-jade .layout.jade-student .stu-course:hover { box-shadow: 0 4px 14px rgba(15,40,35,.06); transform: translateY(-1px); }
body.theme-jade .layout.jade-student .stu-course.upcoming { opacity: 1; }
body.theme-jade .layout.jade-student .stu-course-t { font-size: 14.5px; }
body.theme-jade .layout.jade-student .stu-course-sub { font-size: 12.5px; color: #6b7480; }
/* 状态 chip：已结束改冷灰（原绿底绿字） */
body.theme-jade .layout.jade-student .stu-course-tag.ended { color: #64748B; background: #F1F5F9; }
body.theme-jade .layout.jade-student .stu-course-tag.upcoming { color: #94A3B8; background: #F8FAFC; }
/* 操作区：两行合并为一行（1 主 + 1 状态 + 2 描边） */
.stu-course-actions.one-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stu-act-sep { width: 1px; height: 18px; background: #ECEFF3; flex: none; margin: 0 2px; }
.stu-btn .ti { flex: none; }
body.theme-jade .layout.jade-student .stu-course-actions .stu-btn {
  min-width: 0; padding: 7px 16px; font-size: 12.5px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px;
}
body.theme-jade .layout.jade-student .stu-pctask {
  border-radius: 6px; padding: 12px 16px; gap: 12px; box-shadow: 0 1px 2px rgba(15,40,35,.04);
}
body.theme-jade .layout.jade-student .stu-pctask:hover { box-shadow: 0 2px 6px rgba(15,40,35,.06); transform: none; }
body.theme-jade .layout.jade-student .stu-pctask .ico { width: 32px; height: 32px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); }
body.theme-jade .layout.jade-student .stu-pctask .ico svg { width: 16px; height: 16px; }
body.theme-jade .layout.jade-student .stu-pctask .ico.work,
body.theme-jade .layout.jade-student .stu-pctask .ico.test,
body.theme-jade .layout.jade-student .stu-pctask .ico.read,
body.theme-jade .layout.jade-student .stu-pctask .ico.prac { background: var(--primary-soft); color: var(--primary-dark); }
body.theme-jade .layout.jade-student .stu-pctask .body .t { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
body.theme-jade .layout.jade-student .stu-pctask .body .t .type { padding: 1px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; background: var(--primary-soft); color: var(--primary-dark); }
body.theme-jade .layout.jade-student .stu-pctask .body .t .type.work,
body.theme-jade .layout.jade-student .stu-pctask .body .t .type.test,
body.theme-jade .layout.jade-student .stu-pctask .body .t .type.read,
body.theme-jade .layout.jade-student .stu-pctask .body .t .type.prac { background: var(--primary-soft); color: var(--primary-dark); }
body.theme-jade .layout.jade-student .stu-pctask .meta { font-size: 12px; }
body.theme-jade .layout.jade-student .stu-pctask .progress { height: 3px; max-width: 220px; margin-top: 6px; background: #F1F5F9; }
body.theme-jade .layout.jade-student .stu-pctask .progress i { background: var(--primary); }
body.theme-jade .layout.jade-student .stu-pctask .progress i.over { background: #DC2626; }
body.theme-jade .layout.jade-student .stu-pctask .act { padding: 6px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
body.theme-jade .layout.jade-student .stu-pctask .act.pri { background: #fff; color: var(--primary-dark); border: 1px solid var(--primary); box-shadow: none; }
body.theme-jade .layout.jade-student .stu-pctask .act.pri:hover { background: var(--primary-soft); filter: none; transform: none; }
body.theme-jade .layout.jade-student .stu-pctask .act.ghost { background: #fff; border: 1px solid #E2E8F0; color: #475569; }
/* ---------- v711.5 · 工作坊/答题/资源 · 学员 PC 端彩色细节扁平化 ---------- */
body.theme-jade .layout.jade-student .stu-btn.primary {
  background: #fff; color: var(--primary-dark); border: 1px solid var(--primary);
  box-shadow: none; font-weight: 600;
}
body.theme-jade .layout.jade-student .stu-btn.primary:hover:not(:disabled) { background: var(--primary-soft); filter: none; transform: none; }
body.theme-jade .layout.jade-student .stu-btn.answer {
  background: #fff; color: var(--primary-dark); border: 1px solid var(--primary);
  box-shadow: none; font-weight: 600;
}
body.theme-jade .layout.jade-student .stu-btn.answer:hover:not(:disabled) { background: var(--primary-soft); filter: none; transform: none; }
body.theme-jade .layout.jade-student .stu-btn.amber {
  background: #fff; color: #B45309; border: 1px solid #F59E0B; box-shadow: none; font-weight: 600;
}
body.theme-jade .layout.jade-student .stu-btn.amber:hover:not(:disabled) { background: #FEF3C7; filter: none; transform: none; }
body.theme-jade .layout.jade-student .stu-btn.done {
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #BBF7D0;
  font-weight: 600; cursor: default;
}
body.theme-jade .layout.jade-student .stu-assess-item { border-radius: 6px; box-shadow: 0 1px 2px rgba(15,40,35,.04); }
body.theme-jade .layout.jade-student .stu-assess-btn { background: #fff; color: var(--primary-dark); border: 1px solid var(--primary); border-radius: 6px; box-shadow: none; font-weight: 600; }
body.theme-jade .layout.jade-student .stu-assess-btn:hover { background: var(--primary-soft); }
body.theme-jade .layout.jade-student .res-card { border-radius: 6px; box-shadow: 0 1px 2px rgba(15,40,35,.04); }
body.theme-jade .layout.jade-student .res-card:hover { transform: none; box-shadow: 0 2px 6px rgba(15,40,35,.06); }
body.theme-jade .layout.jade-student .res-card .top { gap: 10px; margin-bottom: 8px; }
body.theme-jade .layout.jade-student .res-card h3 { font-size: 14.5px; font-weight: 600; }
body.theme-jade .layout.jade-student .res-ic { width: 36px; height: 36px; border-radius: 6px; color: var(--primary-dark); border: 1px solid var(--primary-soft); }
body.theme-jade .layout.jade-student .res-ic svg { color: inherit; }
body.theme-jade .layout.jade-student .res-dl { padding: 5px 12px; border-radius: 6px; background: #fff; color: var(--primary-dark); border: 1px solid var(--primary); font-weight: 600; }
body.theme-jade .layout.jade-student .res-dl:hover { background: var(--primary-soft); color: var(--primary-dark); }
body.theme-jade .layout.jade-student .stu-btn.answer { min-width: 0; box-shadow: 0 2px 6px rgba(46,204,113,.22); }
body.theme-jade .layout.jade-student .stu-btn.ghost { background: #fff; border: 1px solid #E2E8F0; color: #475569; font-weight: 600; }
body.theme-jade .layout.jade-student .stu-btn.ghost:hover:not(:disabled) { border-color: #CBD5E1; background: #F8FAFC; filter: none; }
body.theme-jade .layout.jade-student .stu-btn.dim { background: #F1F5F9; border-color: #F1F5F9; color: #94A3B8; box-shadow: none; }
body.theme-jade .layout.jade-student .stu-btn.dim:disabled { opacity: 1; }
body.theme-jade .layout.jade-student .stu-course-intro { background: #F8FAFC; color: #475569; }
/* ---------- ② 研修任务页 PC（新结构，仅学员端渲染） ---------- */
.stu-pctasks { max-width: 1080px; }
.stu-pctasks-head { margin-bottom: 18px; }
.stu-pctasks-title { font-size: 22px; font-weight: 800; color: var(--text); }
.stu-pctasks-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stu-pcphase { margin-bottom: 22px; }
.stu-pcphase-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.stu-pcphase-head .lb { font-size: 16px; font-weight: 800; color: var(--text); }
.stu-pcphase-head .sb { font-size: 12.5px; color: var(--muted); }
.stu-pcphase-head .sp { flex: 1; }
.stu-pcphase-head .cnt { font-size: 12px; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); padding: 2px 9px; border-radius: 10px; }
.stu-pcphase-head .pg { width: 96px; height: 4px; background: #EDF1F4; border-radius: 2px; overflow: hidden; flex: none; }
.stu-pcphase-head .pg i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.stu-pctask {
  background: #fff; border: 1px solid #ECEFF3; border-radius: 14px; padding: 14px 18px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 3px rgba(15,40,35,.04);
  transition: box-shadow .2s, transform .2s;
}
.stu-pctask:hover { box-shadow: 0 4px 14px rgba(15,40,35,.06); transform: translateY(-1px); }
.stu-pctask.done { background: #FCFDFD; }
.stu-pctask.reviewing { background: #FFFDF5; border-color: #FDE68A; }
.stu-pctask .ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-dark); }
.stu-pctask .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stu-pctask .ico.work { background: #FEF3C7; color: #B45309; }
.stu-pctask .ico.test { background: #FCE7F3; color: #BE185D; }
.stu-pctask .ico.read { background: #E0F2FE; color: #0369A1; }
.stu-pctask .ico.prac { background: var(--primary-soft); color: var(--primary-dark); }
.stu-pctask .body { flex: 1; min-width: 0; }
.stu-pctask .body .t { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stu-pctask .body .t .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stu-pctask .body .t .type { flex: none; padding: 1px 8px; border-radius: 5px; font-size: 10.5px; font-weight: 700; background: #EEF2FF; color: #4F46E5; }
.stu-pctask .body .t .type.work { background: #FEF3C7; color: #B45309; }
.stu-pctask .body .t .type.test { background: #FCE7F3; color: #BE185D; }
.stu-pctask .body .t .type.read { background: #E0F2FE; color: #0369A1; }
.stu-pctask .body .t .type.prac { background: var(--primary-soft); color: var(--primary-dark); }
.stu-pctask.done .body .t .tx { color: #6b7480; }
.stu-pctask .meta { font-size: 12px; color: #6b7480; display: flex; gap: 14px; flex-wrap: wrap; }
.stu-pctask .meta .m { display: inline-flex; align-items: center; gap: 4px; }
.stu-pctask .meta .m svg { width: 12px; height: 12px; flex: none; }
.stu-pctask .meta .m.ok { color: var(--primary-dark); }
.stu-pctask .meta .m.warn { color: #B45309; }
.stu-pctask .progress { margin-top: 8px; height: 4px; max-width: 240px; background: #F1F5F9; border-radius: 2px; overflow: hidden; }
.stu-pctask .progress i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.stu-pctask .progress i.over { background: linear-gradient(90deg, #FBBF24, #B45309); }
.stu-pctask .act { flex: none; padding: 8px 18px; border: none; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: filter .15s, transform .15s, background .15s; }
.stu-pctask .act.pri { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 2px 6px rgba(46,204,113,.22); }
.stu-pctask .act.pri:hover { filter: brightness(1.04); transform: translateY(-1px); }
.stu-pctask .act.ghost { background: #fff; border: 1px solid #E2E8F0; color: #475569; }
.stu-pctask .act.ghost:hover { border-color: #CBD5E1; background: #F8FAFC; }
@media (max-width: 900px) {
.stu-pctask { align-items: flex-start; }
 }
/* ---------- ③ 我的画像 PC：综合分圆环进度卡 + 底部三块统计（v584：从硬色块改为 SVG 圆环 + 居中数字 + 评级 chip，与左侧雷达图视觉呼应） ---------- */
.stu-score-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 124px; padding: 10px 14px 12px; flex: none;
}
.stu-score-card .sc-l { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .04em; }
.stu-score-card .sc-ring { position: relative; width: 88px; height: 88px; }
.stu-score-card .sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.stu-score-card .sc-track { fill: none; stroke: var(--primary-soft); stroke-width: 6.5; }
.stu-score-card .sc-fg { fill: none; stroke: var(--primary); stroke-width: 6.5; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.4,.0,.2,1); }
.stu-score-card .sc-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; line-height: 1; color: var(--primary-dark); }
.stu-score-card .sc-num i { font-size: 11px; font-weight: 600; color: var(--text-2); margin-left: 2px; font-style: normal; }
.stu-score-card .sc-t { font-size: 11.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); }
.stu-portrait-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stu-portrait-stats .pst { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stu-portrait-stats .pst-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.stu-portrait-stats .pst-ico svg { width: 20px; height: 20px; }
.stu-portrait-stats .pst-ico.c1 { background: var(--primary-soft); color: var(--primary-dark); }
.stu-portrait-stats .pst-ico.c2 { background: #FEF3C7; color: #B45309; }
.stu-portrait-stats .pst-ico.c3 { background: #F3EEFF; color: #8B5CF6; }
.stu-portrait-stats .pst-b { min-width: 0; }
.stu-portrait-stats .pst-v { font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.15; }
.stu-portrait-stats .pst-v .pst-sm { font-size: 13px; font-weight: 700; color: var(--muted); }
.stu-portrait-stats .pst-l { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) {
.stu-portrait-stats { grid-template-columns: 1fr; }
 }
body.theme-jade .layout.jade-student .card.stu-portrait-card { border: 1px solid #ECEFF3; border-radius: 4px; padding: 24px 26px; box-shadow: 0 1px 3px rgba(15,40,35,.05); }
body.theme-jade .layout.jade-student .stu-portrait-section { background: #F8FAFC; border: 1px solid #F1F5F9; }
/* ===== 班级过滤提示条（班级列表 → 各业务模块跳转） ===== */
.cls-filter-bar { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 9px 14px;
  background: var(--primary-soft, #E8F8F1); border: 1px solid rgba(0,0,0,.05); border-left: 3px solid var(--primary, #2ECC71);
  border-radius: 10px; font-size: 13px; color: var(--text, #22303A); }
.cls-filter-bar .cfb-ico { color: var(--primary-dark, #16A085); font-weight: 700; }
.cls-filter-bar b { color: var(--primary-dark, #16A085); }
.cls-filter-bar button { margin-left: auto; }
/* ===== 考勤情况：统计卡 + 分类标签 ===== */
.att-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 6px; }
.att-stat { background: #F8FAFC; border: 1px solid #ECEFF3; border-radius: 12px; padding: 12px 14px; text-align: center; }
.att-stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.att-stat span { display: block; font-size: 12px; color: var(--muted, #7A8A99); margin-top: 4px; }
.att-stat.ok b { color: #16A34A; }
.att-stat.bad b { color: #DC2626; }
.att-stat.all b { color: var(--text, #22303A); }
.att-stat.rate b { color: var(--primary-dark, #16A085); }
/* v593：出勤率卡底部 4px 进度条 */
.att-stat.rate { position: relative; }
.att-rate-bar { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 4px; background: #EEF2F6; border-radius: 2px; overflow: hidden; }
.att-rate-bar span { display: block; height: 100%; background: var(--primary-dark, #16A085); border-radius: 2px; transition: width .35s ease; }
/* v593：左右双卡（默认折叠，紧凑布局） */
.att-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; margin-top: 16px; }
.att-card { background: #fff; border: 1px solid #ECEFF3; border-radius: 12px; padding: 14px 16px; }
.att-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.att-card-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text, #22303A); }
.att-card-title.ok { color: #27500A; }
.att-card-title.bad { color: #791F1F; }
.att-badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 500; }
.att-badge.ok { background: #EAF3DE; color: #27500A; }
.att-badge.bad { background: #FCEBEB; color: #791F1F; }
.att-card-meta { margin-left: auto; font-size: 12px; color: var(--muted, #7A8A99); }
.att-expand-btn { margin-left: auto; background: transparent; border: 0; color: var(--primary-dark, #16A085); font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; }
.att-expand-btn:hover { text-decoration: underline; }
.att-done-list { max-height: 340px; overflow-y: auto; }
.att-done-row { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed #F0F2F5; font-size: 13px; }
.att-done-row:last-child { border-bottom: 0; }
.att-done-row .att-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 13px; }
.att-done-name { font-weight: 500; color: var(--text, #22303A); }
.att-done-meta { font-size: 12px; color: var(--muted, #7A8A99); }
.att-done-idx { font-size: 11px; color: var(--muted, #7A8A99); background: #F4F6F8; padding: 2px 7px; border-radius: 999px; }
/* 九宫 */
.att-miss-preview { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px 8px; padding: 4px 0 12px; }
.att-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.att-chip .att-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px; }
.att-name { font-size: 11px; color: var(--muted, #7A8A99); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-miss-more { text-align: center; color: var(--muted, #7A8A99); font-size: 12px; padding: 6px; border-top: 1px dashed #ECEFF3; }
/* 展开后的表格区 */
.att-miss-table { margin-top: 4px; }
.att-tabs { display: flex; gap: 8px; margin: 14px 0 2px; flex-wrap: wrap; }
.att-tab { background: #fff; border: 1px solid #E3E8EE; color: var(--muted, #7A8A99); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.att-tab:hover { border-color: var(--primary, #2ECC71); color: var(--primary-dark, #16A085); }
.att-tab.active { background: var(--primary, #2ECC71); border-color: var(--primary, #2ECC71); color: #fff; }
@media (max-width: 760px) {
.att-stats { grid-template-columns: repeat(2, 1fr); }
.att-split { grid-template-columns: 1fr; }
.att-miss-preview { grid-template-columns: repeat(6, 1fr); }
.att-done-row { grid-template-columns: 34px 1fr auto; }
.att-done-row .att-done-idx { display: none; }
.att-card-meta { display: none; }
 }
/* Excel 导入：进度条 + 失败行明细 */
.imp-prog { margin: 12px 0 4px; display: none; }
.imp-prog.on { display: block; }
.imp-prog-bar { height: 10px; background: #EEF2F6; border-radius: 6px; overflow: hidden; }
.imp-prog-fill { height: 100%; width: 0; background: var(--primary, #2ECC71); border-radius: 6px; transition: width .2s ease; }
.imp-prog-txt { font-size: 12px; color: var(--muted, #7A8A99); margin-top: 5px; }
.imp-err-head { margin: 10px 0 6px; color: #B4541B; font-size: 13px; }
.imp-err { max-height: 280px; overflow: auto; border: 1px solid #F0C8A8; border-radius: 8px; background: #FFF8F2; }
.imp-err table { width: 100%; border-collapse: collapse; font-size: 12px; }
.imp-err th, .imp-err td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #F3DFCB; white-space: nowrap; }
.imp-err th { position: sticky; top: 0; background: #FBE9D6; color: #8A4B18; font-weight: 700; z-index: 1; }
.imp-err tbody tr:nth-child(even) { background: #FFF2E6; }
.imp-err .err-row { color: #B4541B; font-weight: 700; }
.imp-err .err-msg { color: #DC2626; max-width: 220px; }
/* ============================================================
   dashboard 卡片强制中性白卡（无视任何主题，根除蓝/紫描边反复复发）
   2026-08-07 根因有两类：
   (1) 各主题 --shadow / --border 是蓝紫色，白卡边框/阴影渲染成蓝边；
   (2) .dash-hero 蓝色 box-shadow 往下泄到首排卡片顶部（"上部蓝边"主因）。
   用 .dash 作用域 + 高特异性 !important 锁死中性灰边 + 无阴影，
   挂在文件末尾以压过任何 body.theme-* 规则。
   ============================================================ */
html body .dash .kpi, html body .dash .dash-panel {
  background: #ffffff !important;
  border: 1px solid #e8ecf2 !important;
  border-top: 1px solid #e8ecf2 !important;
  border-left: 1px solid #e8ecf2 !important;
  border-right: 1px solid #e8ecf2 !important;
  border-bottom: 1px solid #e8ecf2 !important;
  box-shadow: none !important;
  outline: none !important;
}
html body .dash .kpi::before, html body .dash .kpi::after, html body .dash .dash-panel::before, html body .dash .dash-panel::after { display: none !important; content: none !important; }
html body .dash .kpi:hover, html body .dash .dash-panel:hover { box-shadow: none !important; transform: none !important; outline: none !important; }
/* hero 蓝阴影往下泄到卡片顶部 -> 用户决策：彻底去掉 banner 阴影（none !important 顶住一切覆盖） */
html body .dash .dash-hero { box-shadow: none !important; }
/* ===== AI 模型管理 ===== */
.ai-admin-tabs { display:flex; gap:8px; margin-bottom:16px; border-bottom:1px solid var(--line,#eef1f6); padding-bottom:8px; }
.ai-admin-tabs .tab { background:transparent; border:1px solid transparent; padding:8px 16px; border-radius:10px; cursor:pointer; font-size:14px; color:var(--muted,#8a93a3); }
.ai-admin-tabs .tab.active { background:var(--primary-soft,#e8f8f1); color:var(--primary,#2ecc71); font-weight:600; }
.ai-prompt-card { border:1px solid var(--line,#eef1f6); border-radius:12px; padding:14px 16px; margin-bottom:12px; background:#fff; }
.ai-prompt-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.ai-prompt-prev { color:var(--muted,#8a93a3); font-size:13px; margin:8px 0 10px; line-height:1.6; white-space:pre-wrap; max-height:84px; overflow:hidden; }
.tag { display:inline-block; font-size:11px; padding:1px 8px; border-radius:999px; background:var(--primary-soft,#eef4ff); color:var(--primary,#2ecc71); margin-left:6px; }
.tag.off { background:#f1f3f6; color:#9aa3b2; }
.kb-row { border:1px solid var(--line,#eef1f6); border-radius:12px; padding:12px 14px; margin-bottom:10px; }
.kb-main { font-size:14px; }
.kb-ans { font-size:12px; margin:4px 0 8px; }
.row.end { justify-content:flex-end; }
.row.between { justify-content:space-between; }
.cb { display:inline-flex; align-items:center; gap:6px; font-weight:normal; cursor:pointer; }
.ai-modal-overlay { position:fixed; inset:0; background:rgba(20,28,40,.45); display:flex; align-items:center; justify-content:center; z-index:10000; padding:20px; }
.ai-modal { background:#fff; border-radius:14px; width:min(720px,96vw); max-height:90vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.ai-modal-head { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line,#eef1f6); position:sticky; top:0; background:#fff; }
.ai-modal-x { border:none; background:transparent; font-size:22px; line-height:1; cursor:pointer; color:var(--muted,#8a93a3); }
.ai-modal-body { padding:18px; }
/* ===== 工作坊研修（列表卡片 / 详情 / 编辑器）=====
   配色全部走 CSS 变量：管理端跟随四主题，学员端 jade 自动变青绿，不硬编码蓝色。 */

/* —— 学员端：分组 + 活动卡片 —— */
.ws-group { margin-bottom: 18px; }
.ws-group-t { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin: 0 0 10px; }
.ws-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; cursor: pointer; transition: transform .16s, box-shadow .16s; }
.ws-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.ws-card.past { opacity: .72; }
.ws-card-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.ws-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.45; }
.ws-card-tags { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.ws-card-theme { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.ws-card-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ws-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.ws-card-quota { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.ws-card-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
/* —— 学员端卡片主题图 —— */
.ws-card-main { display: flex; gap: 12px; align-items: flex-start; }
.ws-card-cover { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--primary-soft); border: 1px solid var(--border); cursor: pointer; }
.ws-card-info { flex: 1; min-width: 0; }
/* —— 管理端宫格布局 —— */
.ws-grid-wrap { padding: 16px 20px; }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.ws-grid-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s; }
.ws-grid-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ws-grid-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--primary-soft); overflow: hidden; }
.ws-grid-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-grid-status { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; backdrop-filter: blur(4px); }
.ws-grid-status.green { background: #047857; color: #fff; }
.ws-grid-status.amber { background: #b45309; color: #fff; }
.ws-grid-status.gray { background: #475569; color: #fff; }
.ws-grid-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ws-grid-no { font-size: 11px; color: var(--muted); }
.ws-grid-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }
.ws-grid-theme { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ws-grid-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ws-grid-meta { font-size: 12px; color: var(--muted); }
.ws-grid-loc { font-size: 12px; color: var(--muted); }
.ws-grid-stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; margin-top: 6px; }
.ws-grid-ops { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--border); background: rgba(81,81,200,.02); }
.ws-grid-ops .link { font-size: 12px; }
/* —— 分页 —— */
.ws-pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 16px 0 4px; flex-wrap: wrap; }
.ws-pg-btn, .ws-pg-num { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); font-size: 12px; cursor: pointer; transition: all .15s; }
.ws-pg-btn:hover, .ws-pg-num:hover { border-color: var(--primary); color: var(--primary); }
.ws-pg-num.active { background: var(--primary-strong); color: #fff; border-color: var(--primary); }
.ws-pg-info { font-size: 12px; margin-left: 6px; }
/* —— 编辑器主题图上传 —— */
.ws-cover-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ws-cover-section .field-label { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 8px; }
.ws-cover-preview-wrap { display: flex; gap: 14px; align-items: flex-start; }
.ws-cover-preview-img { width: 128px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: var(--primary-soft); }
.ws-cover-btns { display: flex; flex-direction: column; gap: 6px; }
.ws-cover-hint { font-size: 12px; margin-top: 8px; }
/* —— 详情页 —— */
.ws-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-detail-title { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.4; }
.ws-detail-theme { font-size: 14px; color: var(--muted); margin: 6px 0 14px; line-height: 1.6; }
.ws-kv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ws-kv > span:first-child { color: var(--muted); min-width: 52px; flex-shrink: 0; }
.ws-kv b { font-weight: 600; color: var(--text); word-break: break-all; }
.ws-sec { margin-top: 18px; }
.ws-sec-t { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; padding-left: 9px; border-left: 3px solid var(--primary); line-height: 1.2; }
.ws-intro { font-size: 13.5px; color: var(--text); line-height: 1.75; }
.ws-timeline { border-left: 2px solid var(--border); margin-left: 6px; padding-left: 14px; }
.ws-tl-item { position: relative; padding: 8px 0; }
.ws-tl-item::before { content: ""; position: absolute; left: -20px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.ws-tl-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-tl-topic { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; }
.ws-tl-speaker { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ws-actionbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
/* —— 工作坊详情·管理端顶部快捷操作条 —— */
.ws-admin-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: -8px 0 14px; padding: 10px 12px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(22, 160, 133, 0.04));
  border: 1px solid var(--border); border-radius: 10px;
}
.ws-admin-bar-tip { font-size: 12px; color: var(--muted); padding: 0 4px 0 0; border-right: 1px solid var(--border); margin-right: 6px; line-height: 1; }
.ws-admin-bar .mini { padding: 5px 10px; font-size: 12.5px; }
@media (max-width: 720px) {
.ws-admin-bar { padding: 8px; gap: 6px; }
.ws-admin-bar-tip { width: 100%; border-right: none; border-bottom: 1px dashed var(--border); padding: 0 0 6px; margin: 0 0 4px; }

}
/* —— 工作坊讨论区弹窗 —— */
.ws-disc { display: flex; flex-direction: column; max-height: 78vh; }
.ws-disc > h3 { margin: 0 0 4px; }
.ws-disc #wsDiscList { flex: 1 1 auto; overflow-y: auto; margin: 6px -4px 8px; padding: 4px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ws-disc-item { padding: 12px 4px; border-bottom: 1px dashed var(--border); }
.ws-disc-item:last-child { border-bottom: none; }
.ws-disc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ws-disc-meta .muted { font-size: 12px; }
.ws-disc-role { font-size: 11px; padding: 1px 6px; }
.ws-disc-text { margin: 6px 0 8px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ws-disc-ops { margin-bottom: 6px; }
.ws-disc-replies { margin: 4px 0 4px 18px; border-left: 2px solid var(--border); padding-left: 12px; }
.ws-disc-reply { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.ws-disc-reply:last-child { border-bottom: none; }
.ws-disc-reply .ws-disc-text { margin: 4px 0 0; }
.ws-disc-compose { border-top: 1px solid var(--border); padding-top: 10px; }
.ws-disc-compose-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ws-disc-reply-box { margin-top: 8px; padding: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.ws-disc-reply-box .ws-disc-compose-bar { margin-top: 6px; }
.ws-disc .check-row { margin: 0; }
/* —— 讨论区：头像 / 富文本 / 分页 —— */
.ws-disc-item-row { display: flex; gap: 10px; align-items: flex-start; }
.ws-disc-reply-row { display: flex; gap: 8px; align-items: flex-start; }
.ws-disc-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; user-select: none; margin-top: 2px; }
.ws-disc-avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.ws-disc-text .ws-disc-img { display: block; max-width: 260px; max-height: 220px; border-radius: 8px; border: 1px solid var(--border); margin: 6px 0; cursor: zoom-in; }
.ws-disc-text .ws-disc-file { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; margin: 4px 6px 4px 0; background: rgba(91,141,239,.08); border: 1px solid rgba(91,141,239,.35); border-radius: 16px; font-size: 13px; text-decoration: none; color: inherit; }
.ws-disc-text .ws-disc-file:hover { background: rgba(91,141,239,.16); }
.ws-disc-text .ws-disc-file .muted { font-size: 11px; }
.ws-disc-tools { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.ws-disc-emoji-pop { position: fixed; z-index: 10000; width: 264px; max-height: 176px; overflow-y: auto; background: var(--card, #fff); border: 1px solid var(--border, #ddd); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.ws-disc-emoji-btn { border: none; background: transparent; font-size: 20px; cursor: pointer; border-radius: 6px; padding: 4px 0; line-height: 1; }
.ws-disc-emoji-btn:hover { background: rgba(0,0,0,.06); }
.ws-disc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0 4px; font-size: 13px; }
/* —— 添加学员弹窗 —— */
.ws-add-stu h3 { margin: 0 0 14px; }
.ws-add-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ws-add-label { width: 76px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.ws-add-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px; margin-bottom: 12px; background: var(--card); }
.ws-add-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.ws-add-item:nth-child(odd) { background: var(--bg); }
.ws-add-item:hover { background: var(--primary-soft, rgba(46,204,113,0.08)); }
.ws-add-item .ws-add-name { font-weight: 600; color: var(--text); min-width: 64px; }
.ws-add-item .muted { font-size: 12px; }
/* —— 工作坊作业行（管理端 / 学员端共用） —— */
.ws-sec-act { float: right; display: inline-flex; gap: 6px; margin: -2px 0 0 8px; }
.ws-task-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); margin-top: 8px; }
.ws-task-row:nth-child(odd) { background: var(--bg); }
.ws-task-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ws-task-main b { font-weight: 600; color: var(--text); word-break: break-all; }
.ws-task-type { font-size: 11.5px; color: var(--primary); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; flex-shrink: 0; }
.ws-task-grade { font-size: 12.5px; color: var(--green); font-weight: 600; }
.ws-task-ops { display: inline-flex; gap: 6px; flex-shrink: 0; }
/* —— 成绩看板弹窗 —— */
.modal:has(.grade-dash) { width: 96vw; max-width: 1120px; }
.grade-dash h3 { margin: 0 0 12px; }
.grade-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.grade-summary .gs { flex: 1; min-width: 92px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; text-align: center; }
.grade-summary .gs b { display: block; font-size: 22px; color: var(--primary); line-height: 1.1; }
.grade-summary .gs span { font-size: 12px; color: var(--muted); }
.grade-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.grade-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px; font-size: 12.5px; }
.grade-stat b { display: block; color: var(--text); font-size: 13px; }
.grade-stat span { color: var(--muted); }
.grade-tbl-wrap { max-height: 54vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.grade-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.grade-table th, .grade-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: center; }
.grade-table thead th { position: sticky; top: 0; background: var(--bg); color: var(--muted); font-size: 12.5px; z-index: 1; }
.grade-table .g-name { text-align: left; position: sticky; left: 0; background: var(--card); font-weight: 600; color: var(--text); }
.grade-table .g-total, .grade-table .g-avg { font-weight: 600; }
.grade-table .g-ok { color: var(--green); font-weight: 600; }
.grade-table .g-bad { color: var(--red, #e23d3d); font-weight: 600; }
.grade-table .g-wait { color: var(--amber, #d68a00); }
.grade-table .g-none { color: var(--muted); }
/* —— 管理端编辑器：议程动态行 —— */
.ws-editor { max-height: 78vh; overflow-y: auto; padding-right: 4px; }
.ws-agenda { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ws-agenda-row { display: grid; grid-template-columns: 118px 1fr 110px 32px; gap: 8px; align-items: center; }
.ws-agenda-row input { width: 100%; }
/* —— 报名名单弹窗 —— */
.ws-signups { min-width: min(860px, 92vw); }
.ws-signup-table { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.ws-signup-table th { position: sticky; top: 0; background: var(--bg); text-align: left; font-size: 12.5px; color: var(--muted); padding: 9px 10px; white-space: nowrap; }
.ws-signup-table td { padding: 9px 10px; border-top: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
/* —— 签到二维码弹窗 —— */
.ws-qr-box { display: flex; justify-content: center; padding: 14px 0; }
.ws-qr-box img, .ws-qr-box canvas { border: 8px solid #fff; border-radius: 10px; box-shadow: var(--shadow); }
/* —— 证书查看 / 打印弹窗 —— */
.cert-modal-mask .modal { max-width: 800px; }
.cert { width: min(680px, 92vw); background: #fff; border: 12px solid #c9a24b; border-radius: 10px; padding: 32px 36px 28px; box-shadow: var(--shadow); color: #1f2937; text-align: center; position: relative; }
.cert::before { content: ''; position: absolute; inset: 6px; border: 1px solid #e4c97a; border-radius: 6px; pointer-events: none; }
@media print {
body * { visibility: hidden; }
.modal-mask, .modal-mask * { visibility: visible; }
.modal-mask { position: absolute; inset: 0; background: #fff; }
.modal { box-shadow: none; max-width: none; }
.cert-modal-mask .modal { max-width: none; }

}
@media (max-width: 720px) {
.ws-agenda-row { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
.ws-card-foot { align-items: flex-start; flex-direction: column; }
.ws-detail-title { font-size: 17px; }
.ws-signups { min-width: auto; }

}
/* ===== 分组研讨 ===== */
.ws-gm-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ws-gm-group { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: var(--card); }
.ws-gm-ghead { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ws-gm-name { flex: 1; font-weight: 600; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.ws-gm-mem { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ws-gm-mem .chip, .ws-grp-mem .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 3px 10px; font-size: 13px; }
.ws-gm-mem .chip i, .ws-grp-mem .chip i { color: var(--muted); font-style: normal; font-size: 12px; }
.ws-gm-mem .chip-x, .chip-x { color: var(--muted); cursor: pointer; font-weight: 700; }
.ws-gm-mem .chip-x:hover, .chip-x:hover { color: #e74c3c; }
.ws-gm-add { display: flex; gap: 8px; align-items: center; }
.ws-cc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 8px; background: var(--card); }
.ws-cc-row.on { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(46,204,113,.18); }
.ws-cc-info { display: flex; flex-direction: column; gap: 2px; }
.ws-cc-score { font-size: 12px; color: var(--muted); }
.ws-cc-comment { margin-top: 10px; }
.ws-cc-comment textarea { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.ws-grp-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--card); }
.ws-grp-name { font-weight: 700; margin-bottom: 8px; }
.ws-grp-mem { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ws-grp-cast { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.ws-grp-comment { margin-top: 6px; color: var(--text); font-size: 14px; }
.ws-grp-vote { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--card); }
.ws-vote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ws-vote-row:last-child { border-bottom: none; }
.ws-vote-title { display: flex; flex-direction: column; gap: 2px; }
.ws-vote-stars { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* v499: 工作坊投票星样式限定到 .ws-vote-stars 作用域，避免污染课程评价弹窗的金色纯星 */
.ws-vote-stars .star { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); cursor: pointer; user-select: none; font-size: 13px; font-weight: 700; }
.ws-vote-stars .star.on { background: #2ECC71; border-color: #2ECC71; color: #fff; }
.ws-vote-stars .star:not(.disabled):hover { border-color: #2ECC71; color: #2ECC71; }
.ws-vote-stars .star.disabled { opacity: .55; cursor: not-allowed; }
/* 大屏投屏 */
.cast-screen { min-height: 100vh; background: linear-gradient(135deg, #0f2e25 0%, #103a2e 100%); color: #eafff5; padding: 28px 32px; }
.cast-loading, .cast-empty { display: flex; align-items: center; justify-content: center; height: 60vh; font-size: 20px; color: #9fe7cf; }
.cast-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid rgba(46,204,113,.4); padding-bottom: 12px; margin-bottom: 18px; }
.cast-title-s { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.cast-sub { color: #7fd9bf; font-size: 14px; }
.cast-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.cast-main { background: rgba(255,255,255,.06); border: 1px solid rgba(46,204,113,.35); border-radius: 14px; padding: 22px; }
.cast-tag { display: inline-block; background: #2ECC71; color: #08321f; font-weight: 700; padding: 3px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 10px; }
.cast-grp { color: #9fe7cf; font-size: 16px; margin-bottom: 4px; }
.cast-title { font-size: 30px; margin: 4px 0 14px; }
.cast-body { font-size: 17px; line-height: 1.7; }
.cast-body img { max-width: 100%; border-radius: 8px; }
.cast-link { margin-top: 12px; }
.cast-link a { color: #7fe0ff; word-break: break-all; }
.cast-comment { margin-top: 14px; background: rgba(46,204,113,.12); border-left: 4px solid #2ECC71; padding: 10px 14px; border-radius: 8px; }
.cast-comment-lbl { color: #9fe7cf; font-size: 13px; margin-right: 8px; }
.cast-score { margin-top: 14px; font-size: 18px; }
.cast-score b { color: #2ECC71; font-size: 24px; }
.cast-rank { background: rgba(255,255,255,.06); border: 1px solid rgba(46,204,113,.25); border-radius: 14px; padding: 18px; }
.cast-rank-h { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.cast-rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cast-rank-no { width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; background: #2ECC71; color: #08321f; font-weight: 800; flex: none; }
.cast-rank-main { flex: 1; }
.cast-rank-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cast-bar { height: 10px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; }
.cast-bar-fill { height: 100%; background: linear-gradient(90deg, #2ECC71, #16A085); border-radius: 6px; transition: width .6s; }
.cast-rank-avg { font-size: 20px; font-weight: 800; color: #2ECC71; }
.cast-rank-cnt { font-size: 12px; color: #9fe7cf; }
@media (max-width: 900px) {
.cast-cols { grid-template-columns: 1fr; }
}



/* ===== 后台：栏目 Banner 管理 ===== */
.pb-head { margin-bottom: 18px; }
.pb-head h2 { margin: 0 0 6px; font-size: 18px; }
.pb-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pb-list { display: flex; flex-direction: column; gap: 14px; }
.pb-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.pb-preview { width: 150px; height: 50px; border-radius: 8px; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; }
.pb-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-empty { font-size: 24px; color: rgba(255,255,255,.7); }
.pb-info { flex: 1; min-width: 0; }
.pb-label { font-size: 15px; font-weight: 500; color: var(--text); }
.pb-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pb-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .pb-row { flex-wrap: wrap; }
  .pb-preview { width: 100%; height: auto; aspect-ratio: 3 / 1; }
  .pb-actions { width: 100%; }
}
/* v680：学员移动端首页快捷入口管理（复用 .pb-row/.pb-info/.pb-actions） */
.hi-preview { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.hi-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-title-row { display: flex; align-items: center; gap: 8px; }
.hi-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.pb-info input.hi-t, .pb-info input.hi-s { width: 100%; margin-top: 6px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; box-sizing: border-box; background: #fff; color: var(--text); }
.pb-info input.hi-t:focus, .pb-info input.hi-s:focus { outline: none; border-color: var(--primary); }
@media (max-width: 640px) { .hi-preview { width: 48px; height: 48px; } }

/* ===== v451: 问卷编辑页（弹窗迁移为页面 + 左右实时预览，仿问卷星） ===== */
.sv-edit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.sv-edit-head-txt { min-width: 0; flex: 1; }
.sv-edit-head-txt h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sv-edit-head-act { flex: 0 0 auto; }
/* ===== v455: 基础设置两列布局（发送对象 / 截止时间 横排）+ 高级折叠 ===== */
.sv-base-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 720px) { .sv-base-grid { grid-template-columns: 1fr; } }
.sv-advanced { margin-top: 6px; }
.sv-advanced summary { cursor: pointer; padding: 6px 4px; color: #5a6878; user-select: none; }
.sv-advanced summary:hover { color: var(--pri, #1890ff); }
.sv-advanced[open] summary { margin-bottom: 8px; }
/* ===== v454: 撤销 v451 双栏 .sv-edit-grid 预览区样式（已用 .sv-stage 单栏所见即所得取代） ===== */

/* ===== v454: 问卷编辑器——所见即所得（题干/选项 contenteditable） =====
   撤销 v451 双栏 .sv-edit-grid，编辑器本身 = 学员视角，单栏 .sv-stage 渲染 */

.sv-mode-toggle .ghost.active { background: var(--pri, #1890ff); color: #fff; border-color: var(--pri, #1890ff); }
.sv-mode-toggle .ghost { padding: 4px 12px; }

.sv-stage-wrap { padding-bottom: 8px; }
.sv-stage { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px 16px; max-width: 100%; transition: max-width .2s ease; }
/* v455: 撤销 v454 手机端隐藏 .sv-q-acts 的策略——toolbar 改用换行 + 缩小保留所有控件 */
.sv-stage[data-mode="mobile"] { max-width: 380px; margin: 0 auto; padding: 18px 16px 14px; }
.sv-stage[data-mode="mobile"] .sv-q-side { width: 22px; }
.sv-stage[data-mode="mobile"] .sv-q-toolbar { width: 100px; }

.sv-stage-title { font-size: 28px; font-weight: 600; text-align: center; padding: 6px 12px; margin: 4px 0 16px; outline: none; border-radius: 6px; min-height: 1.6em; line-height: 1.4; }
.sv-stage-title:focus { background: #eef5ff; outline: 2px dashed var(--pri, #1890ff); outline-offset: -2px; }
.sv-stage-title:empty::before { content: attr(data-placeholder); color: #c0c8d0; }
.sv-stage-title:hover:not(:focus):empty::before { color: #9bb0c8; }

.sv-stage-welcome { line-height: 1.9; color: #444; background: #f6f9fc; border-left: 3px solid #4a89c9; padding: 12px 14px; border-radius: 6px; margin: 6px 0 22px; font-size: 13px; outline: none; min-height: 24px; white-space: pre-wrap; }
.sv-stage-welcome:hover { background: #f0f5fb; }
.sv-stage-welcome:focus { background: #fff; outline: 2px dashed var(--pri, #1890ff); outline-offset: -2px; }
.sv-stage-welcome:empty::before { content: attr(data-placeholder); color: #c0c8d0; }

/* 题目卡片 */
/* ===== v455: 题目卡 3 列布局（题号 / 主体 / toolbar），toolbar 在题号同行右侧 ===== */
.sv-q { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px dashed var(--border, #e6ebf2); position: relative; }
.sv-q:last-child { border-bottom: 0; }
/* v463: 删旧 .sv-q-side 块级定义，避免与下方 .sv-paper 下的 row 定义冲突 */
.sv-q-main { flex: 1; min-width: 0; }
.sv-q-toolbar { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 4px; width: 130px; flex-shrink: 0; }
.sv-q-toolbar select, .sv-q-toolbar input[type="number"] { padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 12px; }
.sv-q-toolbar .sv-q-type { font-weight: 500; }
.sv-q-toolbar .sv-q-config { font-size: 12px; color: #5a6878; display: inline-flex; align-items: center; gap: 4px; }
.sv-q-toolbar .sv-q-config input[type="number"] { width: 48px; padding: 1px 4px; }
.sv-q-toolbar .sv-q-req { font-size: 12px; color: #5a6878; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sv-q-acts { display: flex; flex-wrap: wrap; gap: 3px; opacity: .55; transition: opacity .2s; }
.sv-q:hover .sv-q-acts { opacity: 1; }
.sv-q-acts .mini { padding: 3px 7px; font-size: 12px; }
.sv-q-acts .danger { color: #d44; }

/* v455: 撤销 .sv-q-topbar（控件已搬到 .sv-q-toolbar） */
.sv-q-topbar { display: none; }
.sv-q-type { padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; }
.sv-q-config { font-size: 12px; color: #5a6878; display: inline-flex; align-items: center; gap: 4px; }
.sv-q-config input[type="number"] { width: 48px; padding: 1px 4px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }

/* 题干（contenteditable） */
.sv-q-title { padding: 6px 10px; margin: 4px 0 8px; font-size: 16px; line-height: 1.55; outline: none; border-radius: 6px; cursor: text; min-height: 1.4em; }
.sv-q-title:hover { background: #fafbfd; }
.sv-q-title:focus { background: #eef5ff; outline: 2px dashed var(--pri, #1890ff); outline-offset: -2px; }
.sv-q-title:empty::before { content: attr(data-placeholder); color: #c0c8d0; }
.sv-q-title:hover:not(:focus):empty::before { color: #9bb0c8; }

/* 选项（contenteditable 单行，每行一项） */
.sv-q-opts { display: flex; flex-direction: column; gap: 4px; }
.sv-q-opt { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.sv-q-opt:hover { background: #f5f8fc; }
/* v455: 真实 radio / checkbox 图形（与题型联动） */
.sv-q-opt-mark { width: 16px; height: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.sv-q-opt-mark input[type="radio"], .sv-q-opt-mark input[type="checkbox"] { width: 14px; height: 14px; margin: 0; cursor: default; accent-color: var(--pri, #1890ff); }
.sv-q-opt-text { flex: 1; outline: none; padding: 4px 6px; border-radius: 4px; min-height: 1.6em; line-height: 1.5; cursor: text; }
.sv-q-opt-text:hover { background: #eef5ff; }
.sv-q-opt-text:focus { background: #fff; outline: 2px dashed var(--pri, #1890ff); outline-offset: -1px; }
.sv-q-opt-text:empty::before { content: '点击输入选项'; color: #c0c8d0; font-size: 13px; }
/* v464: 选项行右侧 ⊕− 也改成方块小按钮，跟右侧图标列风格统一 */
.sv-q-opt-tool { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.sv-q-opt:hover .sv-q-opt-tool, .sv-q-opt:focus-within .sv-q-opt-tool { opacity: 1; }
.sv-q-opt-tool .mini { padding: 0; width: 24px; height: 24px; font-size: 13px; border: 1px solid #e0e6ed; border-radius: 4px; background: #fff; color: #6b7785; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; transition: all .15s; }
.sv-q-opt-tool .mini:hover { background: rgba(24, 144, 255, .10); border-color: var(--pri, #1890ff); color: var(--pri, #1890ff); }
.sv-q-opt-tool .mini:last-child:hover { background: rgba(244, 63, 63, .10); border-color: #ef4444; color: #ef4444; }

/* 矩阵题 */
/* v469: 矩阵题问卷星化——CSS Grid 表格、列头/行头可编辑、⋮ 删除、＋ 添加列/行 */
.sv-q-matrix-grid { display: grid; grid-template-columns: 480px repeat(var(--cols), minmax(96px, 1fr)) 36px; gap: 6px; margin: 8px 0 4px; align-items: stretch; }
.sv-q-matrix-grid .mg-corner { padding: 14px 10px; background: #f5f7fa; color: #5a6878; font-size: 12.5px; text-align: center; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.sv-q-matrix-grid .mg-col-head, .sv-q-matrix-grid .mg-row-head { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 32px 8px 12px; background: #fff; border: 1px solid #d5dfe9; border-radius: 6px; min-height: 38px; overflow-wrap: anywhere; word-break: break-word; }
.sv-q-matrix-grid .mg-col-head:hover, .sv-q-matrix-grid .mg-row-head:hover { border-color: var(--pri, #1890ff); background: #fafcff; }
.sv-q-matrix-grid .mg-head-text { flex: 1; min-width: 0; font-size: 13.5px; color: #333; outline: none; }
.sv-q-matrix-grid .mg-head-text:focus { background: #fff; color: var(--pri, #1890ff); }
.sv-q-matrix-grid .mg-head-text:empty::before { content: attr(data-placeholder); color: #b8c2cf; }
.sv-q-matrix-grid .mg-act { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0; border: none; background: transparent; color: #9aa6b8; cursor: pointer; border-radius: 4px; font-size: 16px; line-height: 22px; }
.sv-q-matrix-grid .mg-act:hover { background: #fee; color: #f56c6c; }
.sv-q-matrix-grid .mg-add { background: transparent; border: 1px dashed #c9d4e0; color: #9aa6b8; border-radius: 6px; cursor: pointer; font-size: 18px; padding: 0; }
.sv-q-matrix-grid .mg-add:hover { border-color: var(--pri, #1890ff); color: var(--pri, #1890ff); background: #fafcff; }
.sv-q-matrix-grid .mg-cell { display: flex; align-items: center; justify-content: center; min-height: 38px; }
.sv-q-matrix-grid .mg-cell input[type="radio"] { width: 16px; height: 16px; cursor: not-allowed; }
/* v470: 行末占位填满 N+2 列（防 Grid 自动放置错位）＋"添加行"固定在第 1 列行头下方 */
.sv-q-matrix-grid .mg-spacer { min-height: 38px; }
.sv-q-matrix-grid .mg-add-row { grid-column: 1; }
/* v469: 矩阵题学员作答端 table 视觉升级——边框、padding、thead 灰底（与编辑器 grid 视觉一致） */
.stu-surv-q table { margin: 8px 0; }
.stu-surv-q table th, .stu-surv-q table td { border: 1px solid #e3e8ef; padding: 10px 8px; text-align: center; font-size: 13.5px; }
.stu-surv-q table th { background: #f5f7fa; color: #5a6878; font-weight: 500; }
.stu-surv-q table td:first-child, .stu-surv-q table th:first-child { background: #f5f7fa; color: #5a6878; text-align: left; min-width: 80px; }
.stu-surv-q table input[type="radio"] { width: 16px; height: 16px; cursor: pointer; }

/* v472/v473: 评分题所见即所得——设置区（分制）+ 学员视图预览（复用 stu-rate-* 类，所见即所编辑） */
.sv-q-rating { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sv-q-rate-setup { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: #f8fafd; border: 1px solid #e3e8ef; border-radius: 8px; }
.sv-q-rate-setup-line { display: flex; align-items: flex-start; gap: 10px; }
.sv-q-rate-setup-k { font-size: 13px; color: #5a6878; font-weight: 500; flex-shrink: 0; line-height: 34px; }
.sv-q-rate-setup-line input[type="number"] { width: 64px; flex-shrink: 0; }
.sv-q-rate-setup-line .muted { font-size: 12.5px; color: #9aa6b8; line-height: 34px; }
.sv-q-rate-preview { padding: 10px 12px 12px; border: 1px dashed #c9d4e0; border-radius: 8px; background: #fff; }
.sv-q-rate-preview-label { font-size: 12px; color: #9aa6b8; }
.sv-q-rate-preview .stu-rate-grid { margin: 6px 0 0; }
.sv-q-rate-preview .stu-rate-cell { cursor: default; }
.sv-q-rate-preview .stu-rate-cell:hover { border-color: #e3e8ef; background: #fff; }
.sv-q-rate-preview input[type="radio"] { cursor: not-allowed; }
/* v473: 编辑合一——行头 contenteditable + × 删除 + + 添加 */
.sv-q-rate-editor .stu-rate-row { position: relative; }
.sv-q-rate-editor .stu-rate-row-head-edit { cursor: text; transition: background .15s, border-color .15s; }
.sv-q-rate-editor .stu-rate-row-head-edit:hover { background: #fff; border-color: var(--pri, #1890ff); }
.sv-q-rate-editor .stu-rate-row-head-edit:focus { outline: none; background: #fff; border-color: var(--pri, #1890ff); }
.sv-q-rate-editor .stu-rate-row-head-edit:empty::before { content: attr(data-placeholder); color: #c9d4e0; }
.sv-q-rate-row-del { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; padding: 0; line-height: 18px; background: #fff; border: 1px solid #e3e8ef; border-radius: 50%; color: #9aa6b8; cursor: pointer; font-size: 14px; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
.sv-q-rate-editor .stu-rate-row:hover .sv-q-rate-row-del { opacity: 1; }
.sv-q-rate-row-del:hover { color: var(--red, #e74c3c); border-color: var(--red, #e74c3c); }
.sv-q-rate-add-row-wrap { align-self: flex-start; margin-top: 4px; }
.sv-q-rate-add-row { background: #f8fafd; border: 1px dashed #c9d4e0; border-radius: 6px; padding: 6px 14px; color: #5a6878; font-size: 13px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 4px; }
.sv-q-rate-add-row:hover { background: #fff; border-color: var(--pri, #1890ff); color: var(--pri, #1890ff); }
.sv-q-rate-add-plus { font-size: 16px; line-height: 1; font-weight: 600; }

.stu-rate-grid { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; }
.stu-rate-row { display: flex; align-items: stretch; gap: 4px; }
.stu-rate-row-head { width: 320px; min-width: 200px; max-width: 400px; flex-shrink: 0; padding: 8px 10px; background: #f5f7fa; border: 1px solid #e3e8ef; border-radius: 6px; color: #303a47; font-size: 13.5px; display: flex; align-items: center; }
.stu-rate-cell { flex: 1; min-width: 56px; padding: 6px 4px; border: 1px solid #e3e8ef; border-radius: 6px; background: #fff; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .15s, background .15s; }
.stu-rate-cell:hover { border-color: var(--pri, #1890ff); background: #fafcff; }
.stu-rate-cell input[type="radio"] { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--pri, #1890ff); }
.stu-rate-cell.is-on { border-color: var(--pri, #1890ff); background: rgba(24,144,255,.07); }
.stu-rate-cell.is-on .stu-rate-num { color: var(--pri, #1890ff); font-weight: 600; }
.stu-rate-hcell { background: #f5f7fa; cursor: default; padding: 8px 4px; }
.stu-rate-hcell:hover { border-color: #e3e8ef; background: #f5f7fa; }
.stu-rate-num { font-size: 13.5px; color: #303a47; line-height: 1.2; }
.stu-rate-unit { font-size: 11px; color: #9aa6b8; line-height: 1.2; }
/* 移动端：行头自动缩小，分值卡也可点击 */
.mobile-student .stu-rate-row-head { width: 90px; min-width: 80px; font-size: 13px; padding: 6px 8px; }
.mobile-student .stu-rate-cell { min-width: 48px; padding: 5px 2px; }
.mobile-student .stu-rate-num { font-size: 13px; }
/* v495: 学员端矩阵评分 radio 改为自定义圆点（与 .stu-surv-dot 同款），去掉原生控件的黑边 */
.mobile-student .stu-rate-cell:hover { border-color: #2ECC71; background: #f1faf5; }
.mobile-student .stu-rate-cell input[type="radio"] { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; box-sizing: border-box; transition: all .15s; }
.mobile-student .stu-rate-cell.is-on { border-color: #2ECC71; background: #e8f8f1; }
.mobile-student .stu-rate-cell.is-on input[type="radio"] { border-color: #2ECC71; background: #2ECC71; box-shadow: inset 0 0 0 3px #fff; }
.mobile-student .stu-rate-cell.is-on .stu-rate-num { color: #16A085; font-weight: 600; }
.sv-q-rows { padding: 6px 10px; border: 1px dashed var(--border, #e6ebf2); border-radius: 6px; outline: none; min-height: 38px; line-height: 1.7; }
.sv-q-rows:hover { background: #fafbfd; }
.sv-q-rows:focus { background: #fff; outline: 2px dashed var(--pri, #1890ff); outline-offset: -1px; }

/* 评分题：v472 样式统一在上方 .sv-q-rating 定义（此处旧规则已删，防止覆盖 flex-direction/gap） */

/* ===== v474/v553: 问卷统计分析页（问卷星化）——每题一卡：题头 + 常驻图表 + 可折叠数据表 ===== */
/* v574: 问卷统计页——白色试卷容器（顶部 head + 数据概览 + 所有题目统一收纳） */
.wjx-paper { max-width: 940px; margin: 16px auto 32px; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(20, 30, 60, 0.06); padding: 56px 74px 58px; }  /* v637: 白卡 max-width +60（880→940）；v638 L/R=122 太宽；v639=64；v640=74（介于 v620 原始 72 附近） */
.wjx-paper-head { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 18px; border-bottom: 1px solid #eef1f6; margin-bottom: 4px; }  /* v620: 标题与按钮组上下两行（标题居中、按钮靠右上角） */
.wjx-paper-title { font-size: 18px; font-weight: 700; color: #1f2a37; line-height: 1.4; padding: 0; text-align: center; }  /* v620: 单独一行居中 */
.wjx-paper-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex-shrink: 0; align-self: flex-end; }  /* v620: 按钮组靠右上角 */
.wjx-paper-actions .badge { font-size: 12px; padding: 4px 10px; border-radius: 12px; }
.wjx-paper-ai { margin: 14px 0 10px; padding: 14px 16px; background: #f7f9fc; border: 1px solid #e6ebf2; border-radius: 8px; }
.wjx-paper-ai-h { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #1f2a37; margin-bottom: 6px; }
.wjx-paper-ai-h svg.ic { width: 16px; height: 16px; color: var(--primary); } /* v582: 跟主题 */
/* v573/v574: 每题分段（顶部容器已在 paper 内，分段只保留虚线分隔） */
.wjx-qsection { padding: 22px 4px; border-top: 1px dashed #e6eaf0; }
.wjx-qsection:first-of-type { border-top: none; padding-top: 16px; }
.wjx-qsection:last-of-type { padding-bottom: 8px; }
.wjx-qhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wjx-qhead-title { font-size: 15.5px; font-weight: 600; color: var(--text, #303a47); display: flex; align-items: baseline; gap: 10px; }
.wjx-qno { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--text, #303a47); padding: 0 2px; background: transparent; } /* v617: 题号跟随正文同色（用户反馈题目序号不用主题色跟后面的题目颜色一致，去 v582 主题色） */
.wjx-qhead-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wjx-pill { padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 18px; }
.wjx-qcount { font-size: 12.5px; color: #9aa6b8; }
/* 概览总览条 */
/* v574: 数据概览——与 paper 白底协调，紫色渐变改为浅灰描边 */
.wjx-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 16px; margin: 14px 0 6px; background: #fafbfc; border: 1px solid #eef1f6; border-radius: 8px; }
.wjx-ov { display: flex; flex-direction: column; gap: 3px; }
.wjx-ov-k { font-size: 12px; color: #8a86a8; }
.wjx-ov-v { font-size: 22px; font-weight: 700; color: var(--primary-dark, var(--primary)); line-height: 1.2; } /* v582: 跟主题 */
.wjx-ov-dist { font-size: 14px; font-weight: 600; color: var(--text, #5b51a8); }
.wjx-ov-insight { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-size: 13px; color: #6b7280; background: #fff; border-radius: 6px; padding: 8px 12px; border: 1px solid #f0eef8; }
.wjx-ov-insight .ic { width: 16px; height: 16px; color: #7662fa; flex-shrink: 0; }
/* 数据表格：选项/小计/比例条（问卷星版式） */
.wjx-tbl { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: 13.5px; }
.wjx-tbl th { text-align: center; font-weight: 500; color: #8a97a8; font-size: 12.5px; padding: 7px 10px; border-bottom: 1px solid #e6ebf2; }
.wjx-tbl th.tl { text-align: left; }
.wjx-tbl th.wjx-th-pct { width: 46%; }
.wjx-tbl td { padding: 8px 10px; border-bottom: 1px solid #e6ebf2; color: var(--text, #303a47); } /* v613: 分隔线 #f0f3f8→#e6ebf2（与 th 统一） */
.wjx-tbl td.wjx-td-num { text-align: center; font-weight: 600; width: 70px; }
.wjx-tbl tbody tr:last-child td { border-bottom: none; } /* v613: 表格最后一行不画分隔线 */
.wjx-pbar { position: relative; height: 10px; background: #f0f3f8; border-radius: 4px; overflow: hidden; } /* v612: 占比条高度 20→10（减半） */
.wjx-pbar-fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 2px; border-radius: 4px; transition: width .3s ease; background: color-mix(in srgb, var(--primary) 75%, #ffffff); } /* v583: 75% 浓度（v582 50% 用户反馈偏浅） */
.wjx-pbar-txt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; height: 10px; padding: 0 6px; font-size: 11px; color: var(--text, #303a47); font-weight: 600; } /* v612: 跟随占比条减半（20→10 / 12→11 / 8→6） */
/* v641: 模拟演示工具条 + 可编辑小计输入框 */
.wjx-simbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 11px 14px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 10px; font-size: 13px; color: #8a5a00; }
.wjx-simbar .wjx-sim-total { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.wjx-simbar input.wjx-sim-tot { width: 76px; padding: 5px 7px; border: 1px solid #e0c48a; border-radius: 6px; font-size: 13px; text-align: center; background: #fffdf6; color: #7a4f00; }
.wjx-simbar .sim-note { flex: 1 1 220px; min-width: 180px; color: #a06b00; line-height: 1.5; }
.wjx-simbar .sim-note b { color: #b8860b; }
.wjx-sim-cnt { width: 64px; padding: 3px 4px; border: 1px solid color-mix(in srgb, var(--primary) 35%, #ffffff); border-radius: 5px; font-size: 12.5px; text-align: center; background: #fffdf5; color: #b8860b; }
.wjx-sim-cnt:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
/* 多维题（矩阵/评分）子表 */
.wjx-sub { margin-bottom: 10px; }
.wjx-sub-title { font-size: 13.5px; font-weight: 600; color: #303a47; margin: 8px 0 2px; }
/* v580: 评分题汇总迷你表（评分项名 / 平均分 / 比例条） */
/* v616: 评分题表格最简化（参照截图：选项/纯数字平均分/纯bar占比，无百分比文字、无徽章背景），bar 蓝紫渐变 */
.wjx-rating-summary .wjx-tbl { table-layout: fixed; }
.wjx-rating-summary .wjx-tbl th,
.wjx-rating-summary .wjx-tbl td { white-space: nowrap; }
.wjx-rating-summary .wjx-tbl td.tl,
.wjx-rating-summary .wjx-tbl th.tl { width: 40%; } /* 选项列给 40%，更多空间给 bar */
.wjx-rating-summary .wjx-tbl th:nth-child(2),
.wjx-rating-summary .wjx-tbl td.wjx-rating-avg { width: 90px; text-align: center; font-weight: 600; font-size: 13px; color: #303a47; } /* 纯数字居中粗体，无背景色 */
.wjx-rating-summary .wjx-tbl td:last-child .wjx-pbar-fill { background: color-mix(in srgb, var(--primary) 75%, #ffffff); border-radius: 4px; } /* v617: 评分题 bar 跟主题色（去 v616 蓝紫渐变；用户反馈跟主题色走；与 L4400 全局风格一致） */
/* v642: 评分题「总体平均分」块——主题色高亮、独立一行，位于 9 项明细表上方 */
.wjx-rating-overall { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; margin-bottom: 12px; background: color-mix(in srgb, var(--primary) 8%, #ffffff); border: 1px solid color-mix(in srgb, var(--primary) 22%, #ffffff); border-radius: 8px; }
.wjx-rating-overall .wjx-ro-ico { width: 16px; height: 16px; align-self: center; color: var(--primary-strong, #2bb3a3); }
.wjx-rating-overall .wjx-ro-k { font-size: 13.5px; font-weight: 600; color: #303a47; }
.wjx-rating-overall .wjx-ro-v { font-size: 22px; font-weight: 700; line-height: 1; color: var(--primary-strong, #2bb3a3); }
.wjx-rating-overall .wjx-ro-unit { font-size: 12px; color: #8a96a8; }
.wjx-rating-overall .wjx-ro-pct { font-size: 14px; font-weight: 600; color: var(--primary-strong, #2bb3a3); margin-left: 2px; padding-left: 10px; border-left: 1px solid color-mix(in srgb, var(--primary) 25%, #ffffff); } /* v643: 总体平均分后补充满分 5 换算的百分比 */
.wjx-rating-detail { margin-bottom: 14px; }
.wjx-rating-detail:last-child { margin-bottom: 4px; }
.wjx-rating-summary > .wjx-detailbtn { display: block; margin: 8px auto 0; } /* 按钮居中 */
.wjx-avg { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 1px 8px; border-radius: 10px; } /* v582: 跟主题色走 */
/* 图表切换栏（紧凑 SVG 图标） */
.wjx-chartbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0 10px; border-top: 1px dashed #e6ebf2; }
.wjx-chartbar-k { font-size: 12.5px; color: #9aa6b8; margin-right: 2px; }
.wjx-switch { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; padding: 0; border: 1px solid #dfe6ee; border-radius: 7px; background: #fff; color: #5a6878; cursor: pointer; transition: all .15s; }
.wjx-switch .wjx-ic { width: 18px; height: 18px; fill: currentColor; }
.wjx-switch:hover:not(:disabled) { border-color: #7662fa; color: #634ce2; }
.wjx-switch.on { background: #5a48d8; border-color: #5a48d8; color: #fff; }
.wjx-switch:disabled { opacity: .35; cursor: not-allowed; }
/* 数据明细折叠 */
.wjx-detailbtn { margin: 2px 0 8px; padding: 5px 14px; border: 1px solid #e3e8ef; border-radius: 7px; background: #fff; color: #5a6878; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.wjx-detailbtn:hover { border-color: #7662fa; color: #634ce2; }
.wjx-detailbtn.open { color: #7662fa; border-color: #7662fa; }
.wjx-detail { margin-top: 2px; }
/* 填空题样本列表 */
.wjx-blank-list { margin: 6px 0; padding-left: 22px; }
.wjx-blank-list li { font-size: 13.5px; color: #444; line-height: 1.9; }
/* v475: 填空题词云分析——Tab 栏 / 词云画布 / 词频表 / AI 面板 */
.wjx-btabs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.wjx-btab { padding: 6px 16px; border: 1px solid #e3e8ef; border-radius: 6px; background: #fff; color: #5a6878; font-size: 13px; cursor: pointer; }
.wjx-btab.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; } /* v617: tab 选中态跟主题色（去 v570 #7662fa 紫色硬编码） */
.wjx-btab:not(.on):hover { border-color: var(--primary); color: color-mix(in srgb, var(--primary) 80%, #000); } /* v617: hover 边框/文字也跟主题色 */
.wjx-btoggle { margin-left: auto; padding: 6px 12px; border: 1px dashed #c9d4e0; border-radius: 6px; background: transparent; color: #9aa6b8; font-size: 12.5px; cursor: pointer; }
.wjx-btoggle:hover { color: #5a6878; border-color: #9aa6b8; }
.wjx-btoggle.open { color: #7662fa; border-color: #7662fa; }
/* v609：填空题词云题「配色」按钮靠右 */
.wjx-btab-pal { margin-left: auto; }
/* v611：词云容器——斜条纹背景 + 弹性入场 + canvas 持续轻微呼吸 */
.wjx-cloud-box {
  position: relative;
  overflow: hidden;
  border: 1px dashed #cfdcef;
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(99,145,234,0.07) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  padding: 6px;
  margin-bottom: 12px;
  animation: wjxCloudInElast 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.wjx-cloud-box canvas { display: block; width: 100%; max-width: 100%; transform-origin: center; }
/* 主 canvas 上叠加的呼吸动画（入场结束后 1s 开始）——保持词云持续有动感 */
.wjx-cloud-box > canvas.wjx-cloud-main { animation: wjxCloudBreathe 4s ease-in-out 1s infinite alternate; }
/* hover 浮动提示气泡（v611 新增） */
.wjx-cloud-tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  background: rgba(255,255,255,0.97);
  border: 1.5px solid #005eff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #005eff;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0,94,255,0.30);
  opacity: 0;
  transform: translate(-50%, -130%) scale(0.65);
  transition: opacity 0.22s ease-out, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.wjx-cloud-tip.show { opacity: 1; transform: translate(-50%, -130%) scale(1); }
.wjx-cloud-tip-text { letter-spacing: 0.5px; }
.wjx-cloud-tip-freq { font-size: 11.5px; color: #4a5568; margin-left: 8px; font-weight: 500; background: #eef2f7; border-radius: 4px; padding: 1px 6px; vertical-align: 2px; }
@keyframes wjxCloudInElast {
  0%   { opacity: 0; transform: scale(0.82) translateY(12px); }
  55%  { opacity: 1; }
  78%  { transform: scale(1.04) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wjxCloudBreathe {
  0%   { transform: scale(1) translateY(0); }
  100% { transform: scale(1.018) translateY(-4px); }
}
.wjx-freq-tbl { max-height: 340px; overflow-y: auto; border: 1px solid #edf1f6; border-radius: 8px; }
.wjx-freq-tbl .wjx-tbl { margin: 0; }
.wjx-freq-ttl { font-size: 13px; color: #5a6878; margin: 4px 0; font-weight: 500; }
.wjx-ai-pane { white-space: pre-wrap; line-height: 1.75; font-size: 13.5px; color: #303a47; background: #f8fafd; border: 1px solid #e3e8ef; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; min-height: 60px; }
.wjx-ai-err { color: #d64545; }
.wjx-ai-btn { margin-top: 2px; }
/* 响应式：概览两列 */
@media (max-width: 720px) {
  .wjx-overview { grid-template-columns: repeat(2, 1fr); }
}
/* v554: 可视化总览——4 种增强图表（圆形网格雷达 / 南丁格尔玫瑰 / 矩阵热力图 / 问卷回收漏斗） */
.wjx-viz { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.wjx-viz-card { border: 1px solid #e9edf4; border-radius: 12px; background: #fff; padding: 14px 16px; display: flex; flex-direction: column; }
.wjx-viz-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.wjx-viz-ttl { font-size: 14.5px; font-weight: 700; color: #303a47; }
.wjx-viz-sub { font-size: 12px; color: #9aa6b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wjx-viz-body { position: relative; flex: 1; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.wjx-viz-body canvas { max-width: 100%; }
.wjx-viz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.wjx-viz-legend .it { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #5a6878; }
.wjx-viz-legend .sw { width: 10px; height: 10px; border-radius: 3px; }
/* 矩阵热力图 */
.wjx-heat-wrap { align-items: stretch; }
.wjx-heat { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 12.5px; }
.wjx-heat th { font-weight: 500; color: #8a97a8; padding: 6px 8px; font-size: 12px; }
.wjx-heat td, .wjx-heat th.wjx-heat-rh { text-align: center; padding: 8px 6px; border-radius: 5px; }
.wjx-heat td { font-weight: 600; min-width: 46px; }
.wjx-heat-rh { text-align: left !important; color: #303a47; font-weight: 600; background: #f6f8fb; white-space: nowrap; }
.wjx-heat-pct { display: block; font-size: 10.5px; font-weight: 400; opacity: .82; }
/* 问卷回收漏斗 */
.wjx-funnel { width: 100%; max-width: 320px; height: auto; }
/* v555: 单题热力图宿主（DOM 表格，与 canvas 互斥）+ 切换器置灰 + 增强图分组分隔 */
.wjx-heat-host { width: 100%; max-height: 340px; overflow: auto; padding: 2px; }
.wjx-heat-host .wjx-heat { margin: 0 auto; }
.wjx-switch[disabled] { opacity: .32; cursor: not-allowed; }
.wjx-switch[disabled]:hover { background: #fff; border-color: #e6ebf2; }
.wjx-switch[disabled] svg { color: #b3bccb; }
.wjx-chartbar .wjx-switch[data-t="radar"] { margin-left: 6px; padding-left: 10px; border-left: 1px solid #e6ebf2; }
@media (max-width: 720px) {
  .wjx-viz { grid-template-columns: 1fr; }
}

/* 填空题 */
.sv-q-blank-hint { padding: 8px 10px; border: 1px dashed var(--border, #e6ebf2); border-radius: 6px; background: #fafbfd; }

/* 空状态 */
.sv-empty { text-align: center; padding: 32px 18px; color: #9aa6b8; font-size: 14px; }

/* 底部插入面板 */
.sv-insert-panel { margin-top: 28px; padding: 14px; border: 2px dashed var(--border, #d6deea); border-radius: 12px; text-align: center; background: #fafbfd; }
.sv-insert-title { font-weight: 600; color: #5a6878; margin-bottom: 8px; }
.sv-insert-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sv-insert-btns .ghost { padding: 6px 14px; font-size: 14px; }

/* 校验警告色（沿用 v453 的高亮） */
.sv-q.has-warn { border-left: 4px solid #e8a33d; background: #fffaf0; padding-left: 8px; }

/* ===== v460: 新建/编辑问卷「空白试卷」版式（参考用户参考图） ===== */
/* 顶部工具条：一行平铺，无边框无底色 */
.sv-paper-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 2px 12px; border-bottom: 1px solid var(--border, #e6ebf2); }
.sv-paper-bar-t { font-size: 15px; font-weight: 600; color: #333; margin-right: 6px; }
/* 居中白纸（v461: 去掉 max-width，自适应整页宽；字号整体放大） */
.sv-paper { max-width: none; margin: 0; padding: 24px 18px 10px; }
/* v494: 问卷编辑页（#/survey/edit）加大内边距到 80px——给"问卷管理"内容区更宽松的呼吸感 */
.card.sv-edit.sv-paper { padding: 80px; }
/* 试卷头部字段：下划线输入框，紧凑一行 */
.sv-paper-meta { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; margin: 14px 0 4px; font-size: 14.5px; color: #5a6878; }
.sv-paper-meta-item { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.sv-paper-meta-item input { border: none; border-bottom: 1px solid #c9d4e0; border-radius: 0; background: transparent; padding: 3px 6px; font-size: 14.5px; color: #333; min-width: 140px; margin: 0; }
.sv-paper-meta-item input:focus { outline: none; border-bottom-color: var(--pri, #1890ff); }
.sv-paper-meta-item input[type="number"] { min-width: 56px; text-align: center; }
.sv-paper-meta-item input[type="datetime-local"] { min-width: 210px; }
/* v466: 班级已锁定时的发送对象 input：去掉下划线，浅灰底强调不可改主项 */
.sv-paper-meta-item input[readonly] { background: #f5f7fa; border-bottom: 1px dashed #c9d4e0; color: #5a6878; cursor: default; }
/* v466: 🔒 已锁定 XX 标签 */
.sv-locked-tip { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 2px 8px; background: rgba(24, 144, 255, .10); color: var(--pri, #1890ff); border-radius: 10px; font-size: 12px; font-weight: 500; }
/* v468: "发送对象" 字段直接 inline 多选，ac 输入框做成下划线样式与 meta 行其它字段对齐 */
.sv-paper-meta-targets { flex: 1; min-width: 320px; }
.sv-paper-meta-ac { flex: 1; min-width: 220px; }
.sv-paper-meta-targets .ac { margin-top: 0; }
.sv-paper-meta-targets .ac-input { border: none; border-bottom: 1px solid #c9d4e0; border-radius: 0; background: transparent; padding: 3px 6px; font-size: 14.5px; color: #333; width: 100%; box-sizing: border-box; }
.sv-paper-meta-targets .ac-input::placeholder { color: #b8c2cf; }
.sv-paper-meta-targets .ac-input:focus { border-bottom-color: var(--pri, #1890ff); box-shadow: none; outline: none; }
.sv-paper-meta-targets .ac-chips { margin-top: 4px; gap: 6px; }
.sv-paper-meta-targets .chip { padding: 2px 8px; font-size: 13px; }
/* 欢迎词：去色块去左边线，平铺文字 */
.sv-paper .sv-stage-welcome { background: transparent; border-left: none; border-radius: 0; padding: 6px 0 0; margin: 8px 0 20px; }
.sv-paper .sv-stage-welcome:hover, .sv-paper .sv-stage-welcome:focus { background: transparent; }
/* v481: 题号从独立 60px 列改为与题干同行 inline；.sv-q-side 旧规则保留兼容但不再生成该元素 */
.sv-paper .sv-q { border-bottom: 1px solid #eef0f4; padding: 18px 0; gap: 14px; align-items: flex-start; }
.sv-paper .sv-q-side { display: flex; flex-direction: row; align-items: center; gap: 6px; flex-shrink: 0; width: 60px; min-width: 60px; padding-top: 8px; flex-wrap: wrap; }
.sv-paper .sv-q-side .sv-q-no { font-size: 19px; font-weight: 600; color: #5a6878; white-space: nowrap; line-height: 1.2; }
.sv-paper .sv-q-side .badge { white-space: nowrap; flex-shrink: 0; font-size: 11px; padding: 1px 6px; }
/* v481: 题号+题干同行 flex 容器 */
.sv-paper .sv-q-title-line { display: flex; align-items: flex-start; gap: 6px; }
.sv-paper .sv-q-no-inline { font-size: 19px; font-weight: 600; color: #5a6878; white-space: nowrap; line-height: 1.6; flex-shrink: 0; padding-top: 4px; }
/* v464: 主体区——题干 + 配置行 + 选项区，纵向排 */
.sv-paper .sv-q-main { flex: 1; min-width: 0; }
.sv-paper .sv-q-title { padding: 4px 0; margin: 0; font-size: 19px; line-height: 1.6; min-width: 0; word-break: break-word; }
.sv-paper .sv-q-title:hover { background: transparent; }
.sv-paper .sv-q-title:focus { background: transparent; outline: 2px dashed rgba(24, 144, 255, .35); outline-offset: 2px; }
/* v465: 配置行 3 件套（题型 + 最多选 + 必填）强制挤在一行；select 限宽、label 紧凑、横排不换行 */
.sv-q-cfg { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin: 6px 0 10px; font-size: 14px; color: #5a6878; padding-left: 0; }
.sv-q-cfg .sv-q-type { border: none; border-bottom: 1px solid #d5dfe9; border-radius: 0; background: transparent; font-size: 14px; color: #5a6878; padding: 2px 4px; cursor: pointer; white-space: nowrap; width: 76px; min-width: 60px; max-width: 88px; flex-shrink: 0; }
.sv-q-cfg .sv-q-type:hover, .sv-q-cfg .sv-q-type:focus { border-bottom-color: var(--pri, #1890ff); outline: none; }
.sv-q-cfg .sv-q-req { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; flex-shrink: 0; font-size: 14px; color: #5a6878; margin: 0; }
.sv-q-cfg input[type="number"] { border: none; border-bottom: 1px solid #d5dfe9; border-radius: 0; background: transparent; width: 38px; text-align: center; font-size: 14px; padding: 1px 2px; flex-shrink: 0; }
.sv-q-cfg input[type="number"]:focus { outline: none; border-bottom-color: var(--pri, #1890ff); }
.sv-q-cfg input[type="checkbox"] { margin: 0 2px 0 0; flex-shrink: 0; cursor: pointer; }
/* v464: 右侧竖排工具列——4 个方块按钮独立竖排，不再横排在配置同行 */
.sv-q-rail { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; width: 34px; padding-top: 4px; opacity: .7; transition: opacity .15s; }
.sv-q:hover .sv-q-rail, .sv-q:focus-within .sv-q-rail { opacity: 1; }
.sv-q-rail-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid #e0e6ed; border-radius: 5px; background: #fff; color: #6b7785; font-size: 15px; cursor: pointer; line-height: 1; padding: 0; transition: all .15s; }
.sv-q-rail-btn:hover:not(:disabled) { background: rgba(24, 144, 255, .10); border-color: var(--pri, #1890ff); color: var(--pri, #1890ff); }
.sv-q-rail-btn.danger { color: #6b7785; }
/* v466: 删除按钮默认+hover 与其他 3 个图标完全一致——button.sv-q-rail-btn.danger 特异性 (0,2,1) > 全局 button.danger (0,1,1)，强制 background:#fff 战胜全局 var(--red)。删除风险由点击前的二次确认承担 */
button.sv-q-rail-btn.danger { background: #fff; border-color: #e0e6ed; color: #6b7785; }
button.sv-q-rail-btn.danger:hover:not(:disabled) { background: rgba(24, 144, 255, .10); border-color: var(--pri, #1890ff); color: var(--pri, #1890ff); }
.sv-q-rail-btn:disabled { opacity: .3; cursor: not-allowed; background: #f5f7fa; color: #b8c0cb; }
/* v484 + v490: 章节标题题卡——level-1 标题样式（去胶囊底，加大加粗，左侧蓝条） */
.sv-paper .sv-q-section { padding: 8px 0 4px; margin: 8px 0 4px; background: transparent; border-left: 0; border-radius: 0; }
.sv-paper .sv-q-section-line { display: flex; align-items: center; gap: 10px; padding: 0; }
.sv-paper .sv-q-section-tag { display: none; }
.sv-paper .sv-q-section-title {
  display: block; width: 100%;
  padding: 6px 12px; margin: 0;
  font-size: 20px; font-weight: 700;
  color: #1a2c4e; line-height: 1.4;
  word-break: break-word;
  background: transparent; border-radius: 0;
  border-left: 4px solid #5b8ff9;
  max-width: 100%;
  outline: none;
}
.sv-paper .sv-q-section-title:hover { background: rgba(91, 143, 249, 0.05); }
.sv-paper .sv-q-section-title:focus { background: rgba(91, 143, 249, 0.10); outline: 2px dashed rgba(91, 143, 249, .4); outline-offset: 0; }
.sv-paper .sv-q-section-tip { display: none; }
/* v485: 每题顶部插入条——hover 时显示，默认透明且不占视觉 */
.sv-paper .sv-q-insert-above {
  /* v487: 改用 position: absolute 脱离 flex 流——之前 width: 100% + flex row nowrap 把 .sv-q-main 挤到 0 宽，题干每个字换行 */
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  z-index: 2;
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  border: 1px dashed transparent;
  border-radius: 4px;
  background: transparent;
  color: rgba(91, 143, 249, 0.6);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  overflow: hidden;
  text-align: center;
  line-height: 1;
}
.sv-paper .sv-q-insert-above:hover {
  height: auto;
  padding: 6px 0;
  background: rgba(91, 143, 249, 0.08);
  border-color: rgba(91, 143, 249, 0.5);
  color: #5b8ff9;
}
/* v485: 拖拽排序视觉反馈 */
.sv-paper .sv-q.dragging { opacity: .35; }
.sv-paper .sv-q.drag-over-top { box-shadow: inset 0 3px 0 0 #5b8ff9; }
.sv-paper .sv-q.drag-over-bottom { box-shadow: inset 0 -3px 0 0 #5b8ff9; }
/* v490: 拖拽手柄——专用非交互元素（避免 contenteditable/radio 干扰 dragstart）；默认半透明，hover 时高亮 */
/* v491: 手柄自身 draggable=true，-webkit-user-drag:element 强制 Chrome 把整个元素当拖拽源（不会因为 contenteditable 兄弟节点劫持而失败） */
.sv-paper .sv-q-drag {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 28px; margin: 0 6px 0 0;
  border-radius: 4px;
  cursor: grab; user-select: none;
  -webkit-user-drag: element;
  color: #b8c2cf; font-size: 14px; line-height: 1;
  opacity: .35; transition: opacity .15s, background .15s, color .15s;
}
.sv-paper .sv-q:hover .sv-q-drag { opacity: .9; color: #5b8ff9; background: rgba(91, 143, 249, 0.06); }
.sv-paper .sv-q-drag:active { cursor: grabbing; }
.sv-paper .sv-q-section .sv-q-drag { margin-top: 2px; }
/* v491: 父级 .sv-q 不再 draggable，避免非手柄起步拖导致浏览器"无目标"禁止图标 */
.sv-paper .sv-q { cursor: default; }
.sv-paper .sv-q button, .sv-paper .sv-q select, .sv-paper .sv-q input, .sv-paper .sv-q [contenteditable="true"] { cursor: auto; }
/* v491: 拖拽过程中手柄变蓝（视觉提示已进入拖拽状态） */
.sv-paper .sv-q.dragging .sv-q-drag { opacity: 1; color: #5b8ff9; background: rgba(91, 143, 249, 0.14); }
/* v482: 插入按钮区"章节标题"按钮——蓝紫色突出，与普通题型按钮区分 */
.sv-insert-btns .sv-insert-section { color: #5b8ff9; border-color: #5b8ff9; background: rgba(91, 143, 249, 0.06); }
.sv-insert-btns .sv-insert-section:hover { background: rgba(91, 143, 249, 0.14); }
/* 选项行：去 hover 底色 */
.sv-paper .sv-q-opt { padding: 2px 0; }
.sv-paper .sv-q-opt:hover { background: transparent; }
.sv-paper .sv-q-opt-text { padding: 2px 0; }
.sv-paper .sv-q-opt-text:hover { background: transparent; }
.sv-paper .sv-q-opt-text:focus { background: transparent; outline: 2px dashed rgba(24, 144, 255, .35); outline-offset: 1px; }
.sv-paper .sv-q-blank-hint { border: none; background: transparent; padding: 2px 0; }
.sv-paper .sv-q-rows { border-style: solid; border-color: #eef0f4; }
.sv-paper .sv-q-rating { padding: 2px 0; }
.sv-paper .sv-q-rating input[type="number"] { border: none; border-bottom: 1px solid #d5dfe9; border-radius: 0; background: transparent; }
/* 底部插入面板：去虚线框去底色，一行居中 */
.sv-paper .sv-insert-panel { border: none; background: transparent; border-radius: 0; padding: 20px 0 6px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sv-paper .sv-insert-title { margin: 0; font-weight: 500; }

/* ===== v458: 粘贴文本问卷星风格（左输入右预览，零中间步骤） ===== */
.sv-paste-body { display: flex; gap: 12px; margin-top: 8px; }
.sv-paste-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sv-paste-left textarea { min-height: 280px; font-size: 13px; line-height: 1.6; }
.sv-paste-right { flex: 1.15; min-width: 0; background: #fff; border: 1px solid var(--border, #e6ebf2); border-radius: 6px; max-height: 420px; overflow-y: auto; }
.sv-paste-right-hd { font-weight: 600; font-size: 13px; color: #5a6878; padding: 8px 12px; border-bottom: 1px solid #eef0f4; position: sticky; top: 0; background: #fff; z-index: 1; }
.sv-paste-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border, #e6ebf2); }
.sv-paste-mode { font-size: 13px; color: #5a6878; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.sv-paste-mode input { accent-color: var(--pri, #1890ff); }
.sv-paste-adv { margin-top: 4px; border: 1px solid #eef0f4; border-radius: 4px; background: #fff; padding: 4px 6px; }
.sv-paste-adv summary { cursor: pointer; padding: 4px 2px; color: #5a6878; user-select: none; font-size: 12px; }
.sv-paste-adv summary:hover { color: var(--pri, #1890ff); }
.sv-paste-adv-hint { padding: 4px 8px; font-size: 11px; color: #999; }
#ptAdvLines { max-height: 200px; overflow-y: auto; }
.sv-paste-adv-line { display: flex; align-items: flex-start; gap: 6px; padding: 2px 4px; border-bottom: 1px solid #f5f5f5; }
.sv-paste-adv-btn { flex-shrink: 0; min-width: 44px; padding: 1px 6px; border: 1px solid #d9d9d9; border-radius: 3px; background: #fafafa; font-size: 11px; cursor: pointer; text-align: center; margin-top: 1px; transition: all .15s; }
.sv-paste-adv-btn:hover { filter: brightness(.95); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sv-paste-adv-text { font-size: 12px; white-space: pre-wrap; word-break: break-all; flex: 1; min-width: 0; line-height: 1.5; padding-top: 2px; }
/* 高级行分类色彩 */
.sv-paste-adv-btn.cls-qhead, .sv-paste-adv-btn.cls-title { background: #e6f7ff; border-color: #91d5ff; color: #1890ff; }
.sv-paste-adv-btn.cls-title-cont { background: #f0f9ff; border-color: #bae0ff; color: #4096ff; }
.sv-paste-adv-btn.cls-option { background: #f6ffed; border-color: #b7eb8f; color: #52c41a; }
.sv-paste-adv-btn.cls-blank, .sv-paste-adv-btn.cls-ignored { background: #fafafa; border-color: #d9d9d9; color: #999; }
.sv-paste-adv-btn.cls-section, .sv-paste-adv-btn.cls-rating { background: #f9f0ff; border-color: #d3adf7; color: #722ed1; }
.sv-paste-adv-btn.cls-mrow, .sv-paste-adv-btn.cls-mopt { background: #e6fffb; border-color: #87e8de; color: #13c2c2; }
.sv-paste-adv-btn.cls-unknown { background: #fff7e6; border-color: #ffd591; color: #fa8c16; }
.sv-paste-adv-btn.hint-title { background: #1d4ed8; border-color: #1d4ed8; color: #fff; font-weight: 600; }
.sv-paste-adv-btn.hint-option { background: #047857; border-color: #047857; color: #fff; font-weight: 600; }
.sv-paste-adv-btn.hint-ignore { background: #6b7280; border-color: #6b7280; color: #fff; font-weight: 600; }

/* 只读预览卡（v461 扁平结构；v463 字号再放大：题号 13→14、标题 16→18、选项 15→16） */
.sv-pv-card { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; background: #fff; }
.sv-pv-card:last-child { border-bottom: 0; }
.sv-pv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sv-pv-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pri, #1890ff); color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.sv-pv-type { font-size: 13px; color: #5a6878; }
.sv-pv-title { font-size: 18px; color: #1f2d3d; line-height: 1.6; word-break: break-word; margin: 2px 0 10px; font-weight: 500; }
.sv-pv-req { color: #f5222d; margin-left: 4px; }
.sv-pv-opts { display: flex; flex-direction: column; }
.sv-pv-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 16px; color: #333; line-height: 1.6; }
.sv-pv-opt input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--pri, #1890ff); }
.sv-pv-opt-txt { flex: 1; min-width: 0; word-break: break-word; }
.sv-pv-max { font-size: 12px; color: #999; margin-top: 4px; }
.sv-pv-blank { font-size: 14px; color: #999; padding: 4px 0; }
.sv-pv-matrix { display: flex; flex-direction: column; }
.sv-pv-mrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; color: #333; }
.sv-pv-mrow input { flex-shrink: 0; width: 14px; height: 14px; margin: 0; accent-color: var(--pri, #1890ff); }
.sv-pv-mopts { font-size: 12px; color: #999; margin-top: 6px; word-break: break-word; }
.sv-pv-rating { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sv-pv-empty { color: #999; font-size: 13px; text-align: center; padding: 40px 10px; }

@media (max-width: 760px) {
  .sv-paste-body { flex-direction: column; }
  .sv-paste-right { max-height: 300px; }
}

/* ============ v546: 学员端按课过滤（答题板本课/全部切换 + 弹窗本课提示）============ */
.ab-scope-seg { display: flex; gap: 0; margin: 12px 0 0; background: #eef7f1; border-radius: 10px; padding: 3px; }
.ab-scope-btn { flex: 1; border: 0; background: transparent; color: #16a085; font-size: 14px; font-weight: 600; padding: 8px 0; border-radius: 8px; cursor: pointer; transition: all .15s; }
.ab-scope-btn.on { background: #fff; color: #16a085; box-shadow: 0 1px 4px rgba(22, 160, 133, .18); }
.ab-scope-name { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #1e293b; word-break: break-all; }
.stu-modal-scope-hint { color: #94a3b8 !important; font-weight: 400 !important; }

/* ============ v549: 柯氏评价画像（学员端卡片 + 综合考评手动入口）============ */
.kp-flat-en { margin-left: 6px; font-size: 12px; font-weight: 500; color: #94a3b8; letter-spacing: .3px; }
.kp-flat-sub { margin-top: 3px; font-size: 13px; color: #64748b; }
.kp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kp-chip { display: inline-block; padding: 2px 9px; font-size: 12px; line-height: 1.6; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; }


/* ==================== v563：提交与批阅整页（#review/taskId）==================== */
:root {
  --rev-pending: #f59e0b;
  --rev-pending-bg: #fff5e0;
  --rev-ok: #10b981;
  --rev-ok-bg: #e6f8f1;
  --rev-warn: #ef4444;
  --rev-warn-bg: #fde8e8;
  --rev-c1: #7662fa;
  --rev-c2: #6489fa;
  --rev-c3: #45d2c8;
  --rev-c4: #fcc63e;
  --rev-c5: #fa6492;
  --rev-line: #eef0f5;
  --rev-line-2: #f1f3f8;
  --rev-muted: #9aa1b1;
  --rev-text: #2c3445;
  --rev-text-2: #6b7588;
}
.review-page { padding: 6px 4px 24px; max-width: 1280px; margin: 0 auto; }
.rev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.rev-crumbs { font-size: 12.5px; color: var(--rev-muted); margin-bottom: 6px; }
.rev-crumbs b { color: var(--rev-text-2); font-weight: 600; }
.rev-title { font-size: 22px; font-weight: 700; margin: 4px 0 8px; color: var(--rev-text); }
.rev-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--rev-text-2); }
.rev-type { background: #f0ebff; color: var(--rev-c1); border-radius: 6px; padding: 2px 10px; font-weight: 600; font-size: 12px; }
.rev-cls-tag { background: #eaf3ff; color: #2756a8; border-radius: 6px; padding: 2px 10px; font-size: 12px; font-weight: 500; }
.rev-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rev-toolbar .btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--rev-line); background: #fff; color: var(--rev-text-2); font-size: 13px; cursor: pointer; }
.rev-toolbar .btn.pri { background: var(--rev-c1); border-color: var(--rev-c1); color: #fff; }

/* 三张统计卡（v565 扩展为四张：新增完成率） */
.rev-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.rev-card { background: #fff; border: 1px solid var(--rev-line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(30, 45, 90, .04); }
.rev-lab { font-size: 12px; letter-spacing: .5px; color: var(--rev-muted); font-weight: 600; }
.rev-num { font-size: 28px; font-weight: 800; margin-top: 6px; color: var(--rev-text); }
.rev-num small { font-size: 12.5px; font-weight: 500; color: var(--rev-muted); margin-left: 4px; }
.rev-bar { margin-top: 8px; height: 6px; background: var(--rev-line-2); border-radius: 4px; overflow: hidden; }
.rev-bar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.s-pending .rev-num { color: var(--rev-pending); }
.s-pending .rev-bar i { background: linear-gradient(90deg, var(--rev-pending), var(--rev-c4)); }
.s-approved .rev-num { color: var(--rev-ok); }
.s-approved .rev-bar i { background: linear-gradient(90deg, var(--rev-c3), var(--rev-c1)); }
.s-returned .rev-num { color: var(--rev-c5); }
.s-returned .rev-bar i { background: linear-gradient(90deg, var(--rev-c5), var(--rev-c4)); }
.s-rate .rev-num { color: var(--rev-c1); }
.s-rate .rev-bar i { background: linear-gradient(90deg, var(--rev-c3), var(--rev-c1)); }
.rev-foot { margin-top: 8px; font-size: 12px; color: var(--rev-muted); }

/* 主列表卡 + 右侧筛选 */
.rev-list-card { background: #fff; border: 1px solid var(--rev-line); border-radius: 14px; box-shadow: 0 4px 16px rgba(30,45,90,.04); display: grid; grid-template-columns: 1fr 360px; }
.rev-tabs { grid-column: 1 / 3; display: flex; gap: 4px; padding: 12px 14px 0; border-bottom: 1px solid var(--rev-line-2); }
.rev-tab { padding: 8px 14px; border-radius: 8px 8px 0 0; font-size: 13px; color: var(--rev-text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rev-tab .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rev-tab.cur { color: var(--rev-c1); font-weight: 700; background: #fff; position: relative; top: 1px; border: 1px solid var(--rev-line); border-bottom-color: #fff; }
.rev-badge { color: #fff; border-radius: 8px; padding: 1px 8px; font-size: 11px; font-weight: 600; }

/* 列表 */
.rev-table { padding: 8px 14px 14px; }
.rev-row { display: flex; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--rev-line-2); align-items: center; cursor: pointer; transition: background .2s; }
.rev-row:hover { background: #fbfaff; }
.rev-row.cur { background: #f6f3ff; }
.rev-row:last-child { border-bottom: none; }
.rev-row.rev-row-nosub { cursor: default; background: #fff; }
.rev-row.rev-row-nosub:hover { background: #fbfaff; }
/* v625：未提交 tab 分页 */
.rev-pager { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; padding: 10px 0 4px; border-top: 1px dashed var(--rev-line-2); }
.rev-pg-btn, .rev-pg-num { padding: 4px 10px; border: 1px solid var(--rev-line); border-radius: 6px; background: #fff; color: var(--rev-text); font-size: 12px; cursor: pointer; transition: all .15s; }
.rev-pg-btn:hover:not(:disabled), .rev-pg-num:hover { border-color: var(--primary); color: var(--primary); }
.rev-pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.rev-pg-num.active { background: var(--primary-strong); color: #fff; border-color: var(--primary); }
.rev-pg-info { font-size: 12px; color: var(--rev-text-2); margin-left: 6px; }
.rev-head-row { font-size: 12px; color: var(--rev-muted); padding: 8px; border-bottom: 1px solid var(--rev-line); background: #fafbff; font-weight: 600; }
.rev-avt { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.rev-avt.av1 { background: linear-gradient(135deg, #7662fa, #9c8ffb); }
.rev-avt.av2 { background: linear-gradient(135deg, #6489fa, #9baffb); }
.rev-avt.av3 { background: linear-gradient(135deg, #45d2c8, #7ee0d8); }
.rev-avt.av4 { background: linear-gradient(135deg, #fcc63e, #fdd87a); color: #7a5b00; }
.rev-who { flex: 1; min-width: 0; }
.rev-nm { font-weight: 600; font-size: 14px; color: var(--rev-text); display: inline-flex; align-items: center; gap: 8px; }
.rev-cls-mini { font-size: 11.5px; background: #f0ebff; color: var(--rev-c1); border-radius: 4px; padding: 1px 6px; font-weight: 500; }
.rev-task-title { font-size: 13px; color: var(--rev-text-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.rev-urgent { font-size: 11px; margin-top: 3px; color: var(--rev-warn); font-weight: 600; }
.rev-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.rev-pill.p-pending { background: var(--rev-pending-bg); color: #a16207; }
.rev-pill.p-ok { background: var(--rev-ok-bg); color: #0e8e6f; }
.rev-pill.p-warn { background: var(--rev-warn-bg); color: #c53030; }
.rev-pill.p-word { background: #f3f4f8; color: var(--rev-text-2); }
.rev-pill.p-gray { background: #e9edf6; color: var(--rev-text-2); }
.rev-act-btn { background: var(--rev-c1); color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 8px rgba(118, 98, 250, .25); }
.rev-act-btn:hover { background: var(--rev-c1); filter: brightness(1.05); }

/* 右侧筛选 */
.rev-filters { padding: 16px 18px; border-left: 1px solid var(--rev-line-2); background: #fbfcff; display: flex; flex-direction: column; gap: 16px; }
.rev-filters h4 { font-size: 11.5px; color: var(--rev-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; font-weight: 700; }
.rev-f-group { display: flex; flex-direction: column; gap: 6px; }
.rev-f-chip { padding: 6px 10px; border: 1px solid var(--rev-line); border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--rev-text-2); cursor: pointer; }
.rev-f-chip.cur { background: var(--rev-c1); color: #fff; border-color: var(--rev-c1); font-weight: 600; }
.rev-f-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.rev-f-meta div { background: #fff; border: 1px solid var(--rev-line); border-radius: 8px; padding: 6px 8px; font-size: 11.5px; color: var(--rev-text-2); }
.rev-f-meta b { color: var(--rev-text); font-weight: 800; font-size: 14px; display: block; margin-top: 2px; }

/* 右侧抽屉 */
.rev-mask { position: fixed; inset: 0; background: rgba(20,28,46,.35); z-index: 9998; animation: rev-fade .2s; }
@keyframes rev-fade { from { opacity: 0 } to { opacity: 1 } }
.rev-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 96vw; background: #fff; z-index: 9999; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(20,28,46,.18); animation: rev-slide .3s cubic-bezier(.2,.8,.3,1); }
@keyframes rev-slide { from { transform: translateX(100%) } to { transform: translateX(0) } }
.rev-d-head { padding: 16px 22px 14px; border-bottom: 1px solid var(--rev-line-2); background: linear-gradient(180deg,#fafaff,#fff); position: relative; }
.rev-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rev-line); background: #fff; color: var(--rev-text-2); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rev-close:hover { background: #f3f4f8; }
.rev-d-crumb { font-size: 12px; color: var(--rev-muted); margin-bottom: 4px; }
.rev-d-crumb b { color: var(--rev-text-2); font-weight: 600; }
.rev-d-title { margin: 4px 0 8px; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev-d-title .rev-avt { width: 34px; height: 34px; }
.rev-d-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--rev-text-2); margin-top: 8px; }
.rev-d-meta span { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--rev-line); border-radius: 8px; padding: 4px 10px; }
.rev-d-meta span .k { color: var(--rev-muted); }
.rev-d-meta .rev-meta-warn { background: var(--rev-pending-bg); color: #a16207; border-color: #fde2b3; font-weight: 600; }
.rev-d-meta .rev-meta-ok { background: var(--rev-ok-bg); color: #0e8e6f; border-color: #b6ecdc; font-weight: 600; }
.rev-d-meta .rev-meta-back { background: var(--rev-warn-bg); color: #c53030; border-color: #f7c8c8; font-weight: 600; }
.rev-attach { color: var(--rev-c1); text-decoration: none; }

/* 抽屉 body */
.rev-d-body { flex: 1; overflow: auto; padding: 16px 22px; }
.rev-d-body h5 { font-size: 11.5px; color: var(--rev-muted); text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 8px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rev-d-body h5::before { content: ''; width: 3px; height: 12px; background: var(--rev-c1); border-radius: 2px; }
.rev-md { padding: 4px 0; font-size: 14px; line-height: 1.7; color: var(--rev-text); }
.rev-md h1, .rev-md h2, .rev-md h3, .rev-md h4 { font-weight: 700; margin: 14px 0 6px; }
.rev-md h3 { font-size: 16px; color: var(--rev-text); }
.rev-md h4 { font-size: 14.5px; color: var(--rev-text-2); }
.rev-md p { margin: 6px 0; }
.rev-md ol, .rev-md ul { padding-left: 22px; margin: 8px 0; }
.rev-md li { margin: 4px 0; }
.rev-md code { background: #f1f3f8; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; color: var(--rev-c1); }
.rev-md blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--rev-c3); background: #f0fbf9; color: var(--rev-text-2); border-radius: 0 6px 6px 0; }
.rev-md em { font-style: normal; color: var(--rev-c1); font-weight: 600; }
.rev-md table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.rev-md table th, .rev-md table td { border: 1px solid var(--rev-line); padding: 6px 10px; }
.rev-md table th { background: #f8fafc; }
.rev-fb-box { background: var(--rev-warn-bg); border: 1px dashed #f3c5c5; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #742a2a; white-space: pre-wrap; word-break: break-word; }

/* 抽屉底部 sticky */
.rev-d-foot { padding: 12px 22px 14px; border-top: 1px solid var(--rev-line-2); background: linear-gradient(180deg,#fff,#fbfaff); box-shadow: 0 -8px 24px rgba(20,28,46,.04); }
.rev-fb-input { width: 100%; box-sizing: border-box; border: 1px solid var(--rev-line); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; color: var(--rev-text); resize: none; height: 42px; margin-bottom: 10px; }
.rev-fb-input:focus { outline: none; border-color: var(--rev-c1); box-shadow: 0 0 0 3px rgba(118, 98, 250, .12); }
.rev-d-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rev-text-2); }
.rev-d-row input[type=number] { width: 78px; padding: 7px 10px; border: 1px solid var(--rev-line); border-radius: 8px; font-size: 14px; font-weight: 600; text-align: center; }
.rev-d-row input[type=number]:focus { outline: none; border-color: var(--rev-c1); box-shadow: 0 0 0 3px rgba(118, 98, 250, .12); }
.rev-hint { color: var(--rev-muted); font-size: 12px; }
.rev-spacer { flex: 1; }
.rev-btn { padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.rev-btn.back { background: #fff; border: 1px solid #f3c5c5; color: #c53030; }
.rev-btn.back:hover { background: #fef2f2; }
.rev-btn.pass { background: linear-gradient(135deg, var(--rev-c1), #634ce2); color: #fff; box-shadow: 0 6px 16px rgba(118, 98, 250, .35); }
.rev-btn.pass:hover { transform: translateY(-1px); }

/* 响应式 */
@media (max-width: 1180px) {
  .rev-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .rev-stats { grid-template-columns: 1fr; }
  .rev-list-card { grid-template-columns: 1fr; }
  .rev-filters { border-left: none; border-top: 1px solid var(--rev-line-2); }
  .rev-drawer { width: 100vw; max-width: 100vw; }
}

/* ============ v567：附件预览弹窗（图片点开大图，其他下载）============ */
.att-preview {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.att-preview-mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: zoom-out;
}
.att-preview-body {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 92vh;
  display: flex; flex-direction: column; align-items: center;
}
.att-preview-img {
  max-width: 90vw; max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #fff;
}
.att-preview-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.16); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.att-preview-close:hover { background: rgba(255,255,255,0.32); }
.att-preview-bar {
  margin-top: 14px; display: flex; align-items: center; gap: 14px;
  color: #fff; font-size: 14px;
}
.att-preview-name {
  max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0.9;
}
.att-preview-dl {
  flex: none;
  padding: 6px 14px; border-radius: 8px;
  background: var(--primary-strong); color: #fff; text-decoration: none;
  font-size: 13px;
}
.att-preview-dl:hover { filter: brightness(1.08); }

/* ============ v569：问卷统计页配色方案面板（仿问卷星，每题独立切换 + localStorage 持久化）============ */
.wjx-pal-open {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px; padding: 0 10px 0 9px; height: 30px;
  border: 1px solid #dfe6ee; border-left: 1px solid #e6ebf2;
  border-radius: 7px; background: #fff; color: #5a6878;
  font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.wjx-pal-open .ic { width: 16px; height: 16px; fill: currentColor; }
.wjx-pal-open:hover { border-color: #7662fa; color: #634ce2; }
.wjx-pal-picker {
  position: fixed; z-index: 120;
  width: 218px; background: #fff;
  border: 1px solid #e3e8f0; border-radius: 12px;
  box-shadow: 0 12px 36px rgba(20,30,60,.18);
  overflow: hidden; font-size: 13px;
}
.wjx-pal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; font-weight: 600; color: #2a3346;
  border-bottom: 1px solid #f0f2f7;
}
.wjx-pal-x { cursor: pointer; color: #9aa6b8; font-size: 18px; line-height: 1; padding: 0 2px; }
.wjx-pal-x:hover { color: #5a6878; }
.wjx-pal-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
}
.wjx-pal-row:hover { background: #f6f8fc; }
.wjx-pal-row.on { background: #eef4ff; }
.wjx-pal-sw-row { display: inline-flex; gap: 3px; }
.wjx-pal-sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.wjx-pal-name { flex: 1; color: #3a4458; }
.wjx-pal-check { width: 14px; color: #3b7bff; font-weight: 700; text-align: center; }
.wjx-pal-foot { padding: 10px 14px; border-top: 1px solid #f0f2f7; text-align: right; }
.wjx-pal-save {
  background: #3b7bff; color: #fff; border: none;
  border-radius: 7px; padding: 7px 18px; font-size: 12.5px; cursor: pointer;
  transition: background .15s;
}
.wjx-pal-save:hover { background: #2f6ae8; }

/* v573: 问卷统计页改造——去卡片化 + 底部胶囊切换 + 右侧浮动导航 + 回到顶部 */
.wjx-chartbox { margin-top: 10px; }
.wjx-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #eef1f6; }
.wjx-pills-k { font-size: 12.5px; color: #9aa6b8; margin-right: 4px; }
.wjx-pill-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid #dfe6ee; border-radius: 999px; background: #fff; color: #5a6878; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.wjx-pill-btn svg.wjx-ic { width: 14px; height: 14px; flex-shrink: 0; }
.wjx-pill-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.wjx-pill-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; } /* v582: on 状态跟主题色走 */
.wjx-pill-btn:disabled { opacity: .35; cursor: not-allowed; }
.wjx-pills .wjx-pal-open { border-radius: 999px; margin-left: 4px; }
/* 右侧浮动题号导航 */
.wjx-float { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow-y: auto; padding: 8px 5px; background: rgba(255,255,255,.92); border: 1px solid #eef1f6; border-radius: 16px; box-shadow: 0 6px 20px rgba(20,30,60,.10); }
.wjx-float-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e3e8ef; background: #fff; color: #5a6878; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; flex-shrink: 0; }
.wjx-float-dot:hover, .wjx-float-dot.on { background: #5a48d8; border-color: #5a48d8; color: #fff; }
/* 右下回到顶部 */
.wjx-totop { position: fixed; right: 18px; bottom: 22px; z-index: 60; width: 44px; height: 44px; border: none; border-radius: 50%; background: #5a48d8; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(118,98,250,.40); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .15s; }
.wjx-totop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wjx-totop:hover { background: #634ce2; }
@media (max-width: 720px) {
  .wjx-float { display: none; }
  .wjx-totop { right: 12px; bottom: 14px; width: 40px; height: 40px; }
}

/* ===== v594 课程评价页（4 卡 + 双卡 + 智能云 + AI/明细折叠） ===== */
.cm-page { background: #fff; }
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.cm-stat { background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 14px 16px; position: relative; min-height: 110px; display: flex; flex-direction: column; gap: 6px; }
.cm-stat-lbl { font-size: 12px; color: #7A8A99; font-weight: 500; }
.cm-stat-num { font-size: 28px; font-weight: 500; color: #2C3E50; line-height: 1.1; }
.cm-stat-unit { font-size: 13px; color: #94A3B8; margin-left: 4px; font-weight: 400; }
.cm-stat-bar { position: relative; height: 4px; background: #EEF2F6; border-radius: 2px; overflow: hidden; margin: 4px 0; }
.cm-stat-bar span { display: block; height: 100%; background: var(--primary, #2ECC71); border-radius: 2px; transition: width .35s; }
.cm-stat-bar.cm-bar-warm span { background: #BA7517; }
.cm-stat-foot { font-size: 11px; color: #94A3B8; margin-top: auto; }
.cm-stat-pair { font-size: 13px; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
.cm-stat-sep { color: #CBD5E0; margin: 0 2px; }
.cm-best { color: var(--primary-dark, #16A085); font-weight: 500; }
.cm-worst { color: #C0392B; font-weight: 500; }

.cm-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; margin: 8px 0 14px; }
.cm-card { background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 14px 16px; }
.cm-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #EEF2F6; }
.cm-card-title { font-size: 14px; font-weight: 500; color: #2C3E50; }
.cm-card-link { font-size: 12px; color: var(--primary-dark, #16A085); cursor: pointer; }
.cm-card-link:hover { text-decoration: underline; }
.cm-card-sub { font-size: 11px; color: #94A3B8; }

/* 评论节选 */
.cmt-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #F1F5F9; }
.cmt-row:last-child { border-bottom: none; }
.cmt-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px; flex-shrink: 0; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta { font-size: 11.5px; color: #94A3B8; margin-bottom: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.cmt-meta b, .cmt-meta .cmt-star { color: #BA7517; }
.cmt-star { font-size: 11px; }
.cmt-text { font-size: 12.5px; color: #4A5568; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 月度参与度热力图 */
.hm-tbl { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 11px; }
.hm-tbl th { color: #94A3B8; font-weight: 400; padding: 4px 0; text-align: center; }
.hm-tbl td { text-align: center; padding: 5px 0; border-radius: 3px; font-size: 10.5px; color: #64748B; }
.hm-y { background: transparent !important; color: #64748B !important; font-weight: 500; padding-right: 6px !important; text-align: right !important; }
.hm-tot { background: transparent !important; color: var(--primary-dark, #16A085) !important; font-weight: 500; padding-left: 6px !important; }
/* v634: 5 档颜色全部跟随主题色（基于 --primary-soft / --primary / --primary-strong 三色梯度） */
.hm0 { background: #F1F5F9; color: #94A3B8; }                                                                                                              /* 空：中性浅灰，不与主题冲突 */
.hm1 { background: color-mix(in srgb, var(--primary-soft) 55%, var(--primary) 45%); color: var(--primary-ink); }                                            /* 浅底深字 */
.hm2 { background: color-mix(in srgb, var(--primary-soft) 25%, var(--primary) 75%); color: var(--primary-ink); }
.hm3 { background: color-mix(in srgb, var(--primary) 50%, var(--primary-strong) 50%); color: #fff; }                                                       /* 深底白字 */
.hm4 { background: color-mix(in srgb, var(--primary) 30%, var(--primary-strong) 70%); color: #fff; }
.hm5 { background: var(--primary-strong); color: #fff; }
.hm3, .hm4, .hm5 { text-shadow: 0 1px 2px rgba(0,0,0,.28); }                                                                                                /* 提升亮主题（minimal/jade）下深底白字可读性 */
.hm-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; justify-content: flex-end; }
.hm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }

/* 往期评价智能云 */
.cl-years { display: flex; flex-direction: column; gap: 8px; }
.cl-year { border: 1px solid #E3E8EE; border-radius: 10px; overflow: hidden; background: #FBFCFD; transition: all .15s; }
.cl-year-cur { background: #F8FBFA; border-color: #C7E5DD; box-shadow: 0 1px 4px rgba(22,160,133,.06); }
.cl-year-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: transparent; border: none; cursor: pointer; text-align: left; }
.cl-year-head:hover { background: #F1F5F9; }
.cl-year-pill { display: inline-block; padding: 4px 12px; background: var(--primary, #2ECC71); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 500; flex-shrink: 0; min-width: 48px; text-align: center; }
.cl-year-pill-dim { background: #E2E8F0; color: #5A6878; }
.cl-year-meta { font-size: 12px; color: #64748B; flex: 1; min-width: 0; }
.cl-year-bar { display: flex; gap: 2px; align-items: center; }
.cl-year-bar i { width: 8px; height: 12px; border-radius: 1.5px; background: #F1F5F9; display: inline-block; }
.cl-year-toggle { font-size: 11px; color: #94A3B8; width: 18px; text-align: center; flex-shrink: 0; }
.cl-year-body { padding: 4px 16px 12px; border-top: 1px dashed #E2E8F0; }
.cl-year-body[hidden] { display: none; }
.cl-year-row { display: flex; gap: 8px; padding: 6px 0; font-size: 12px; color: #4A5568; align-items: baseline; }
.cl-yr-date { font-family: 'SFMono-Regular', Consolas, monospace; color: #94A3B8; font-size: 11px; flex-shrink: 0; min-width: 38px; }
.cl-yr-star { color: #BA7517; flex-shrink: 0; min-width: 64px; font-size: 11px; }
.cl-yr-name { color: var(--primary-dark, #16A085); font-size: 11.5px; flex-shrink: 0; min-width: 60px; }
.cl-yr-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; color: #4A5568; }

/* AI/明细折叠 */
.cm-collapse { margin-top: 12px; background: #FBFCFD; border: 1px solid #E3E8EE; border-radius: 10px; overflow: hidden; transition: all .15s; }
.cm-collapse[open] { background: #fff; box-shadow: 0 1px 4px rgba(20,30,60,.04); }
.cm-collapse summary { padding: 12px 16px; cursor: pointer; font-size: 13px; display: flex; justify-content: space-between; align-items: center; list-style: none; user-select: none; }
.cm-collapse summary::-webkit-details-marker { display: none; }
.cm-collapse summary:hover { background: #F1F5F9; }
.cm-collapse-title { font-weight: 500; color: #2C3E50; }
.cm-collapse-hint { font-size: 11px; color: #94A3B8; font-weight: 400; }
.cm-collapse-body { padding: 0 16px 16px; }

/* v595 课程评价明细：授课教师小型色块标签 */
.cmt-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #EEEDFE;
  color: #534AB7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.mt .cmt-tag { vertical-align: middle; }

/* v596 课程明细表列头排序 */
#cmCoursesTable th.cm-sort { cursor: pointer; user-select: none; position: relative; white-space: nowrap; }
#cmCoursesTable th.cm-sort:hover { background: #F1F5F9; color: var(--primary, #4f6ef7); }
#cmCoursesTable th.cm-sort .cm-sort-arrow { color: #94A3B8; font-weight: 400; font-size: 11px; margin-left: 4px; }
#cmCoursesTable th.cm-sort.cm-sort-active { color: var(--primary, #4f6ef7); background: #EEEDFE; }
#cmCoursesTable th.cm-sort.cm-sort-active .cm-sort-arrow { color: var(--primary, #4f6ef7); font-weight: 700; }

/* 移动端 */
@media (max-width: 920px) {
  .cm-stats { grid-template-columns: repeat(2, 1fr); }
  .cm-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cm-stats { grid-template-columns: 1fr; }
}

/* ===== v600 班主任移动端（亮天蓝 #1FA9F5 主题，单色平面图标）===== */
.layout.mobile-student.staff-mobile {
  --primary: #1FA9F5;
  --primary-dark: #0E8FDB;
  --primary-light: #E8F5FE;
  --primary-soft: #B3DFFB;
  --bg: #F4F8FC;
  --card: #ffffff;
  --border: #E5EBF2;
  --text: #1F2937;
  --text2: #64748B;
  --text3: #94A3B8;
  --green: #2ECC71; --orange: #F59E0B; --red: #EF4444;
}
.staff-mobile .content { padding: 0 0 76px; background: var(--bg); }
/* v762：底部 tabbar 的选中色原写死 #16A085（学员青绿）→ 班主任/督导/管理员的蓝色外壳里串出绿色。
   并入 var(--primary) 后，staff-mobile 下自动跟随 --primary: #1FA9F5。 */
.layout.mobile-student.staff-mobile .stu-tab.active { color: var(--primary); }
.layout.mobile-student.staff-mobile .stu-tab.active .stu-tab-ico { color: var(--primary); }
.layout.mobile-student.staff-mobile .stu-tab.active::after { background: var(--primary); }
.layout.mobile-student.staff-mobile .stu-tab:active { background: rgba(31,169,245,.08); }
.staff-header { height: 52px; background: var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; position:relative; font-size:17px; font-weight:600; }
.staff-back { position:absolute; left:8px; top:50%; transform:translateY(-50%); background:none; border:none; color:#fff; font-size:26px; line-height:1; font-weight:300; padding:0 10px; cursor:pointer; }
.staff-header-title { padding:0 40px; }
.staff-avatar { position:absolute; right:14px; top:50%; transform:translateY(-50%); width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.25); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; cursor:pointer; }
.staff-page { padding: 14px 0 8px; }
.staff-loading, .staff-empty { padding:24px; text-align:center; color:var(--text3); font-size:13px; }
.staff-banner { margin:0 14px 12px; padding:18px; border-radius:14px; background:var(--primary); color:#fff; position:relative; overflow:hidden; }
.staff-banner h3 { font-size:17px; font-weight:600; margin-bottom:4px; }
.staff-banner p { font-size:12px; opacity:.9; }
.staff-banner-deco { position:absolute; right:-20px; top:-20px; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,.15); }
.staff-section { padding:14px 16px 8px; font-size:13px; color:var(--text2); font-weight:600; display:flex; justify-content:space-between; }
.staff-card { margin:0 14px 12px; padding:14px; background:#fff; border-radius:14px; border:1px solid var(--border); box-shadow:0 2px 8px rgba(0,0,0,.03); }
.staff-fn-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 14px; }
.staff-fn-card { background:#fff; border-radius:14px; padding:16px; border:1px solid var(--border); position:relative; }
.staff-fn-card .staff-count { position:absolute; top:10px; right:10px; background:var(--red); color:#fff; font-size:11px; padding:2px 7px; border-radius:10px; }
.staff-fn-ic { width:40px; height:40px; border-radius:12px; background:var(--primary-light); color:var(--primary-dark); display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.staff-fn-ic svg { width:20px; height:20px; }
.staff-fn-card h5 { font-size:15px; color:var(--text); font-weight:600; }
.staff-fn-sub { font-size:11px; color:var(--text3); margin-top:2px; }
.staff-todo-row { display:flex; align-items:center; gap:12px; padding:12px 14px; cursor:pointer; }
.staff-todo-ic { width:36px; height:36px; border-radius:10px; background:var(--primary-light); color:var(--primary-dark); display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.staff-todo-ic svg { width:18px; height:18px; }
.staff-todo-text { flex:1; font-size:13px; }
.staff-todo-text small { display:block; color:var(--text3); font-size:11px; margin-top:2px; }
.staff-todo-pill { font-size:12px; font-weight:600; color:var(--primary-dark); }
.staff-noti-box { margin:14px; padding:14px; background:#fff; border-radius:14px; border:1px solid var(--border); border-left:4px solid var(--primary); }
.staff-input { width:100%; border:1px solid var(--border); border-radius:10px; padding:10px; font-size:13px; font-family:inherit; margin-bottom:8px; color:var(--text); box-sizing:border-box; }
textarea.staff-input { resize:none; }
.staff-chip-row { display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.staff-sub-label { font-size:13px; color:var(--text2); margin:12px 2px 6px; font-weight:600; }
.staff-chip { padding:5px 12px; border-radius:14px; font-size:12px; background:#fff; color:#475569; border:1px solid var(--border); }
.staff-chip.on { background:var(--primary-light); color:var(--primary-dark); border-color:var(--primary-soft); }
.staff-code-attach { display:flex; align-items:center; justify-content:space-between; background:var(--primary-light); border:1px dashed var(--primary-soft); border-radius:10px; padding:8px 12px; margin-bottom:10px; font-size:12px; color:var(--text2); }
.staff-code-val { font-family:Menlo, Consolas, monospace; font-weight:700; color:var(--primary); font-size:16px; letter-spacing:3px; }
.staff-sw { width:38px; height:22px; border-radius:11px; background:#CBD5E1; position:relative; flex:none; cursor:pointer; transition:background .15s; }
.staff-sw.on { background:var(--primary); }
.staff-sw::after { content:''; position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:right .15s; }
.staff-sw.on::after { right:18px; }
.staff-btn { padding:9px 16px; border-radius:18px; font-size:13px; font-weight:600; border:none; cursor:pointer; }
.staff-btn.primary { background:var(--primary); color:#fff; width:100%; }
.staff-btn.primary.sm { width:auto; padding:6px 12px; font-size:12px; }
.staff-btn.green { background:var(--green); color:#fff; }
.staff-btn.green.sm { padding:6px 12px; font-size:12px; }
.staff-btn.line { background:#fff; color:var(--primary); border:1px solid var(--primary-soft); }
.staff-btn.line.sm { padding:6px 12px; font-size:12px; }
.staff-btn.ghost { background:#fff; color:var(--orange); border:1px solid var(--orange); }
/* v605 信息维护：重置密码按钮 + 修改记录审计日志 */
.staff-btn.warn { background:var(--orange); color:#fff; }
.staff-log-row { margin:0 14px 10px; padding:13px 14px; background:#fff; border-radius:14px; border:1px solid var(--border); }
.staff-log-top { display:flex; align-items:center; justify-content:space-between; }
.staff-log-top b { font-size:14px; }
.staff-log-time { font-size:12px; color:#999; }
.staff-log-target { font-size:13px; color:var(--primary); margin:4px 0; }
.staff-log-changes { font-size:13px; color:#555; line-height:1.55; word-break:break-all; }
.staff-noti-row { margin:0 14px 12px; padding:14px; background:#fff; border-radius:14px; border:1px solid var(--border); }
.staff-noti-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.staff-noti-row h4 { font-size:14px; color:var(--text); font-weight:600; }
.staff-noti-meta { font-size:11px; color:var(--text3); margin-bottom:8px; }
.staff-noti-code { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--primary); background:var(--primary-light); border:1px solid var(--primary-soft); border-radius:12px; padding:2px 8px; margin-top:8px; }
.staff-noti-code b { font-family:Menlo, Consolas, monospace; letter-spacing:2px; font-size:12px; }
.staff-field { margin:0 14px 12px; }
.staff-field label { display:block; font-size:12px; color:var(--text2); margin-bottom:4px; }
.staff-code-card { margin:0 14px 12px; padding:18px; background:#fff; border-radius:16px; border:1px solid var(--border); text-align:center; }
.staff-code-course { font-size:13px; color:var(--text2); }
.staff-qr { width:150px; height:150px; margin:10px auto; }
.staff-qr canvas, .staff-qr img { width:150px !important; height:150px !important; border-radius:10px; }
.staff-code-num-label { font-size:12px; color:var(--text3); margin-top:14px; display:flex; align-items:center; justify-content:center; gap:4px; }
.staff-code-num-label::before, .staff-code-num-label::after { content:''; flex:1; height:1px; background:var(--border); max-width:40px; }
.staff-code-row { display:flex; justify-content:center; gap:6px; margin:10px 0 4px; }
.staff-code-ch { width:46px; height:54px; line-height:54px; text-align:center; font-size:30px; font-weight:700; color:var(--primary); background:var(--primary-light); border:1px solid var(--primary-soft); border-radius:10px; font-family:Menlo, Consolas, monospace; }
.staff-code-tip { font-size:11px; color:var(--text3); margin-bottom:6px; }
.staff-code-warn { font-size:12px; color:#b45309; background:#fff7ed; border:1px solid #fed7aa; border-radius:10px; padding:7px 10px; margin:4px 0 10px; line-height:1.5; }
.staff-code-actions { display:flex; gap:8px; justify-content:center; }
.staff-copy { font-size:12px; padding:6px 14px; border-radius:14px; background:#fff; color:var(--primary); border:1px solid var(--primary); cursor:pointer; display:inline-flex; align-items:center; gap:4px; }
.staff-copy.ghost { color:var(--orange); border-color:var(--orange); }
.staff-timer { font-size:13px; color:var(--orange); font-weight:600; margin-top:14px; }
.staff-att-tabs { display:flex; gap:14px; padding:8px 14px; border-bottom:1px solid var(--border); background:#fff; }
.staff-att-tab { font-size:13px; color:var(--text2); padding:6px 0; position:relative; cursor:pointer; }
.staff-att-tab.active { color:var(--primary); font-weight:600; }
.staff-att-tab.active::after { content:''; position:absolute; bottom:-9px; left:0; right:0; height:2px; background:var(--primary); border-radius:2px; }
.staff-appr-row { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid #F1F5F9; background:#fff; }
.staff-av { width:38px; height:38px; border-radius:50%; background:var(--primary-light); color:var(--primary-dark); display:flex; align-items:center; justify-content:center; font-weight:600; flex-shrink:0; }
.staff-appr-info { flex:1; font-size:13px; }
.staff-appr-info small { display:block; color:var(--text3); font-size:11px; margin-top:2px; }
.staff-appr-acts { display:flex; gap:6px; }
.staff-stat4 { display:flex; justify-content:space-around; text-align:center; }
.staff-stat-n { font-size:20px; font-weight:700; }
.staff-stat-l { font-size:11px; color:var(--text3); }
.staff-task-row { margin:0 14px 12px; padding:14px; background:#fff; border-radius:14px; border:1px solid var(--border); }
.staff-task-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.staff-task-row h4 { font-size:14px; color:var(--text); font-weight:600; }
.staff-task-stu { font-size:13px; color:var(--text2); margin-bottom:4px; }
.staff-task-time { font-size:11px; color:var(--text3); margin-bottom:10px; }
.staff-task-acts { display:flex; gap:8px; justify-content:flex-end; }
.staff-pass-one { background:var(--primary-light); color:var(--primary-dark); border:1px dashed var(--primary); border-radius:18px; padding:10px 14px; font-size:13px; font-weight:600; width:calc(100% - 28px); margin:6px 14px 14px; cursor:pointer; }
.staff-survey-row { margin:0 14px 12px; padding:14px; background:#fff; border-radius:14px; border:1px solid var(--border); }
.staff-survey-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.staff-survey-row h4 { font-size:14px; color:var(--text); font-weight:600; }
.staff-survey-meta { font-size:11px; color:var(--text3); margin-bottom:8px; }
.staff-profile-lg { margin:14px; padding:18px; border-radius:14px; background:var(--primary); color:#fff; display:flex; align-items:center; gap:14px; }
.staff-profile-av { width:60px; height:60px; border-radius:50%; background:#fff; color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; }
.staff-profile-info { flex:1; }
.staff-profile-info h3 { font-size:17px; font-weight:600; }
.staff-profile-info p { font-size:12px; opacity:.9; margin-top:2px; }
.staff-profile-arr { font-size:20px; opacity:.7; }
.staff-stat-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:0 14px; }
.staff-stat-box { background:#fff; border-radius:12px; padding:12px 4px; text-align:center; border:1px solid var(--border); }
.staff-stat-box b { display:block; color:var(--primary); font-size:18px; font-weight:700; }
.staff-stat-box span { font-size:11px; color:var(--text2); }
.staff-menu-list { margin:0 14px; background:#fff; border-radius:14px; overflow:hidden; border:1px solid var(--border); }
.staff-menu-row { padding:14px; display:flex; align-items:center; gap:12px; border-bottom:1px solid #F1F5F9; cursor:pointer; }
.staff-menu-row:last-child { border-bottom:none; }
.staff-menu-ic { width:30px; height:30px; border-radius:8px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; }
.staff-menu-ic svg { width:16px; height:16px; }
.staff-menu-name { flex:1; font-size:14px; }
.staff-menu-arrow { color:#CBD5E1; font-size:14px; }
.staff-sub-detail h3, .staff-profile-modal h3 { font-size:15px; margin-bottom:10px; }
.staff-sub-text { background:var(--primary-light); border-radius:10px; padding:12px; font-size:13px; white-space:pre-wrap; max-height:50vh; overflow:auto; }
.staff-survey-meta { font-size:12px; color:var(--text2); margin-bottom:10px; }
.staff-profile-card { margin-top:6px; padding:14px; background:#fff; border-radius:14px; border:1px solid var(--border); }
.staff-profile-ttl { font-size:13px; font-weight:600; color:var(--text); margin-bottom:10px; }
.staff-sat-row { display:flex; align-items:center; gap:10px; margin-bottom:8px; font-size:12px; }
.staff-sat-lab { width:80px; color:var(--text2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.staff-sat-bar { flex:1; height:8px; background:#E5E7EB; border-radius:4px; overflow:hidden; }
.staff-sat-bar > i { display:block; height:100%; border-radius:4px; }
.staff-sat-v { width:36px; text-align:right; color:var(--text2); }
.staff-mobile .staff-header { position:sticky; top:0; z-index:20; }

/* ===== v602 学员端通知 4 位数字考勤码展示（需求③闭环） ===== */
.stu-notice-code { display:inline-flex; align-items:center; gap:6px; margin-top:8px; padding:5px 12px; background:var(--primary-light,#E6F9F1); border:1px solid var(--primary); border-radius:12px; font-size:12px; color:var(--text2); }
.stu-notice-code-lbl { color:var(--text3); }
.stu-notice-code-v { color:var(--primary); font-size:15px; letter-spacing:2px; font-weight:700; }
.stu-nd-code { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0; padding:12px 14px; background:var(--primary-light,#E6F9F1); border:1px dashed var(--primary); border-radius:12px; }
.stu-nd-code-lbl { font-size:13px; color:var(--text2); font-weight:600; }
.stu-nd-code-v { color:var(--primary); font-size:22px; letter-spacing:3px; font-weight:700; }

/* ===== v604 班主任移动端：信息维护（学员/课程编辑） ===== */
.staff-search-wrap { padding:10px 14px; background:#fff; border-bottom:1px solid var(--border); }
.staff-search-wrap .staff-input { margin:0; }
.staff-info-row { display:flex; align-items:center; gap:10px; margin:0 14px 10px; padding:13px 14px; background:#fff; border-radius:14px; border:1px solid var(--border); cursor:pointer; }
.staff-info-main { flex:1; min-width:0; }
.staff-info-main b { font-size:14px; color:var(--text); font-weight:600; display:block; }
.staff-info-main span { display:block; font-size:12px; color:var(--text2); margin-top:2px; }
.staff-info-sub { font-size:11px; color:var(--text3); margin-top:3px; flex:1.1; }
.staff-info-arr { color:#CBD5E1; font-size:18px; flex-shrink:0; }
.staff-lock-btn { width:32px; height:32px; border-radius:50%; background:#FEF3C7; border:none; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; color:#D97706; cursor:pointer; transition:background .15s; }
.staff-lock-btn:active { background:#FDE68A; }
.staff-lock-btn svg { width:16px; height:16px; }
.staff-edit-modal h3 { font-size:15px; margin-bottom:12px; }
.staff-edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; max-height:62vh; overflow:auto; }
.staff-edit-lab { display:block; font-size:11px; color:var(--text3); margin-bottom:3px; }
.staff-edit-grid .staff-input { margin:0; width:100%; }
.staff-edit-grid .actions { grid-column:1 / -1; display:flex; gap:10px; margin-top:4px; }
.staff-edit-grid .actions .staff-btn { flex:1; }

/* ===== v707.2 学员 PC 端首页（纯绿 #12a04b 系 · banner/focus 通栏） ===== */
body.theme-jade {
  --primary: #12a04b;
  --primary-soft: #E7F4EC;
  --primary-dark: #0d7e40;
}
/* v707.8：layout 用 3 列 grid + 中部 wrapper，让 sidebar/main/rightbar 居中限宽（max 1380px）。
   col 1 / col 3 是 1fr 自动均分剩余空间，col 2 是中部 wrapper 容器（限宽）。
   wrapper 内部是 flex 容器，sidebar / main / rightbar 三栏排列。 */
/* v707.12 终解：彻底破 grid，改用 mockup 的「全宽条 + 内部限宽容器」模式。
   【根因】`body.theme-jade .layout` 特异性 (0,2,1=2类+1元素) 高于 `.layout.jade-student`
   (0,2,0=2类)，所以之前所有 `.layout.jade-student { display:block }` 全被 grid 压掉，
   layout 始终是 `210px / minmax(0,1fr) / 280px` 三列 grid，banner/focus 作为 grid 子项
   被卡在列宽里（1366 屏只有 ~810px）。v707.3~v707.11 的所有 grid-area 折腾都白费。
   【解法】选择器必须带 `body.theme-jade` 前缀拉高特异性到 (0,3,1)：
   每个区块（topbar/banner/focus/footer）都是 width:100% 的全宽条，
   区块内容用 `padding: 0 max(16px, calc((100% - 1380px)/2))` 或 max-width 限宽居中。
   参考 `public/_mockup/mockup_stu_pc_home_v706.html`（自含 CSS，布局正确）。 */
/* v707.14：footer 吸底——layout 改 flex column + footer margin-top: auto
   之前 layout 是 block，footer 在内容流末尾自然停下；内容不够高时下方露灰边。
   改成 flex column 后，flex 容器高度 = viewport 100vh，footer 用 margin-top:auto 推到底，
   中部 .stu-middle 用 flex:1 1 auto 撑满剩余空间（避免 footer 上方出现大段灰色）。
   其他子元素（topbar/banner/focus）作为 flex item 仍 100% 宽（align-self: stretch）。 */
body.theme-jade .layout.jade-student,
.layout.jade-student {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
  background: var(--bg);
  box-sizing: border-box;
}
/* v707.11：学员端 body 防 100vw 横向溢出 */
body.theme-jade { overflow-x: hidden; }
/* v707.12：Banner 保持 flex 垂直居中（不能设 block），内部文字限宽对齐 1380px */
body.theme-jade .layout.jade-student > .stu-banner {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
body.theme-jade .layout.jade-student > .stu-focus {
  display: grid !important;
  grid-template-columns: 533px 1fr;
  gap: 18px;
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
/* v707.12：区块内容限宽 —— 与中部三栏 1380px 对齐（窄屏保底 16px 内边距） */
body.theme-jade .layout.jade-student > .topbar,
body.theme-jade .layout.jade-student > .stu-focus,
body.theme-jade .layout.jade-student > .app-footer {
  padding-left: max(16px, calc((100% - 1380px) / 2)) !important;
  padding-right: max(16px, calc((100% - 1380px) / 2)) !important;
}
/* v707.13：footer 彻底贴边——破第 783 行 `body.theme-jade .layout:not(.legacy) .app-footer`
   设的 border-radius:16px + box-shadow + 1px 边线（特异性 0,3,1 压住了之前 (0,2,0) 的 border-radius:0）。
   本规则特异性 (0,4,2) = body+theme-jade+layout.jade-student+>+.app-footer，稳赢。
   同时用 100vw + 负 margin 把 footer 撑满 viewport 宽度，绕过 layout 父容器宽度，
   保证左/右/下都贴边。 */
body.theme-jade .layout.jade-student > .app-footer {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  /* v764：用户反馈"版权条颜色改为灰色"——原深绿 #0a5b2c 换成中性浅灰，
     与页面 --bg(#F4F6F8) / 白卡片拉开层次但不抢眼。加一条极浅上边线做分隔。 */
  background: #EDF0EF !important;
  color: #7A8983 !important;
  border-top: 1px solid #E2E6E5 !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
  /* 文字内容靠 padding-left/right 限宽居中（继承上一规则），背景 100vw 全幅 */
  margin-top: auto !important;  /* v707.14：吸底推到 layout 底部 */
}
body.theme-jade .layout.jade-student .stu-banner-inner {
  padding-left: max(36px, calc((100% - 1380px) / 2)) !important;
  padding-right: max(36px, calc((100% - 1380px) / 2)) !important;
  max-width: none !important;
}
.layout.jade-student > .topbar,
.layout.jade-student > .stu-banner,
.layout.jade-student > .stu-focus,
.layout.jade-student > .app-footer {
  display: block;
  width: 100%;
}
.layout.jade-student .topbar { background: #fff; border-bottom: 1px solid var(--border); box-shadow: none !important; padding: 0; gap: 14px; flex-wrap: nowrap; border-radius: 0 !important; height: 64px; display: flex; align-items: center; border: 0 !important; }
.layout.jade-student .stu-banner { position: relative; height: 230px; border-radius: 0; overflow: hidden; background: url('/images/banner_check.png') center/cover no-repeat; display: flex; align-items: center; }
.layout.jade-student .stu-focus { display: grid; grid-template-columns: 533px 1fr; gap: 18px; align-items: stretch; padding: 16px 0; box-sizing: border-box; }
.layout.jade-student .app-footer { background: #0a5b2c; color: rgba(255,255,255,.78); border: none; border-radius: 0; box-shadow: none; padding: 22px 24px; }

/* 中部三栏 wrapper：限宽 1380px 居中 */
.layout.jade-student .stu-middle {
  display: flex;
  flex-direction: row;
  gap: 16px;
  /* v764：原 align-items:start 让三栏各自内容高 → 左侧导航比主体矮一截（用户反馈"导航增加到与主体相同高度"）。
     改 stretch 后三栏等高，sidebar/rightbar 的框体与 main 齐平。 */
  align-items: stretch;
  /* 宽屏锁定 1380px 居中；窄屏（<1412px）自动收缩到 100% - 32px，避免横向溢出。
     注意：不能用纯 width:100%（flex 容器会 shrink-to-fit），也不能纯 1380px（窄屏撑爆）。 */
  width: min(1380px, calc(100% - 32px));
  max-width: 1380px;
  margin: 16px auto;
  padding: 0;
  box-sizing: border-box;
  /* v707.14：flex-grow:1 让中部三栏在 viewport 高于内容时撑满剩余空间，
     这样 footer 上方不会出现大段灰色空白，footer 始终紧贴中部内容底部 */
  flex: 1 1 auto;
  min-height: 0;
}
/* v764：去掉 align-self:start —— 与 .stu-middle 的 stretch 配合，让导航框体拉到与主体等高 */
.layout.jade-student .stu-middle > .sidebar { flex: 0 0 210px; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 10px; box-shadow: 0 1px 3px rgba(15,40,35,.05); overflow: visible; min-width: 0; }
/* v766：侧栏圆角对齐同页其他卡片。⚠️ 这两条必须带 .jade-student + .stu-middle：
   上面第 800 行的 body.theme-jade .layout:not(.legacy) .sidebar { border-radius:16px }
   特异性 (0,4,1) 会压过 L5863 的 4px 与 L5890 的 8px（都是 (0,4,0)），
   所以首页侧栏实际渲染成 16px、内页也是 16px（而非预期的 8px）。此处提升到 (0,5,1)/(0,6,1) 才能生效。
   经本地渲染实测：首页侧栏 4px、内页侧栏 8px，与同页的 .e-task-card(4px) / 内页 main(8px) 一致。 */
body.theme-jade .layout.jade-student .stu-middle > .sidebar { border-radius: 4px; }
body.theme-jade .layout.jade-student.is-inner .stu-middle > .sidebar { border-radius: 8px; }
.layout.jade-student .stu-middle > main { flex: 1 1 auto; min-width: 0; }
/* v764：右栏原继承 body.theme-jade .rightbar 的 padding-top:18px → 两张卡片比主体低 18px（用户截图实测）。
   清零上内边距后与 main 首卡顶部齐平；右内边距保留。 */
.layout.jade-student .stu-middle > .rightbar { flex: 0 0 300px; background: transparent; min-width: 0; padding-top: 0; }

/* v710：学员PC端内页扁平化（学习 portal 风格：去右栏 + 青绿二级页头 + 深色通栏 footer + 主体限宽 1200px + 卡片扁平化） */
/* 二级页头（青绿 hero）—— 仅内页（is-inner）显示 */
.layout.jade-student > .stu-subhead { display: none; }
.layout.jade-student.is-inner > .stu-subhead { display: flex; align-items: center; }
.stu-subhead { position: relative; overflow: hidden; height: 132px; background: linear-gradient(112deg, #34d399 0%, #2ECC71 44%, #16A085 100%); color: #fff; }
.stu-subhead::before, .stu-subhead::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.14); pointer-events: none; }
.stu-subhead::before { width: 300px; height: 300px; right: -90px; top: -150px; }
.stu-subhead::after { width: 170px; height: 170px; right: 420px; bottom: -110px; background: rgba(255, 255, 255, 0.10); }
.stu-subhead .sh-inner { position: relative; z-index: 2; width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.stu-subhead .sh-crumb { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); margin-bottom: 9px; letter-spacing: .5px; }
.stu-subhead .sh-crumb span { margin: 0 7px; color: rgba(255, 255, 255, 0.55); }
.stu-subhead h1 { margin: 0 0 5px; font-size: 34px; font-weight: 700; letter-spacing: 2px; line-height: 1.2; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.stu-subhead .sh-sub { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.85); letter-spacing: .5px; }
/* v717：后台上传的背景图模式 —— 图片铺满 + 深色蒙版保证白字可读（青绿渐变保留作兜底） */
.stu-subhead.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.stu-subhead.has-img::before { display: none; }
.stu-subhead.has-img::after { content: ''; position: absolute; inset: 0; width: auto; height: auto; right: auto; bottom: auto; border-radius: 0; background: linear-gradient(90deg, rgba(10, 60, 40, .68) 0%, rgba(10, 60, 40, .42) 55%, rgba(10, 60, 40, .10) 100%); pointer-events: none; }

/* 内页模式：去掉 rightbar，主体限宽 1200px */
.layout.jade-student.is-inner .stu-middle { width: min(1200px, calc(100% - 32px)); max-width: 1200px; display: flex; gap: 22px; align-items: start; margin: 20px auto; padding: 0; }
.layout.jade-student.is-inner .stu-middle > .rightbar { display: none !important; }
.layout.jade-student.is-inner .stu-middle > .sidebar { flex: 0 0 200px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.layout.jade-student.is-inner .stu-middle > .sidebar .nav { padding: 0; }
.layout.jade-student.is-inner .stu-middle > .sidebar .nav-item { padding: 9px 18px 9px 15px; border-radius: 0; border-left: 3px solid transparent; font-size: 13.5px; color: #5f7570; margin: 0; }
.layout.jade-student.is-inner .stu-middle > .sidebar .nav-item:hover { background: #E8F8F1; color: #1a1a1a; border-radius: 0; }
.layout.jade-student.is-inner .stu-middle > .sidebar .nav-item.active { border-left-color: #2ECC71; color: #1a1a1a; font-weight: 600; background: #E8F8F1; border-radius: 0; box-shadow: none; }
.layout.jade-student.is-inner .stu-middle > .sidebar .nav-item.child { background: transparent; }
.layout.jade-student.is-inner .stu-middle > .sidebar .nav-item.child.active { background: #E8F8F1 !important; margin: 0 !important; padding: 9px 18px 9px 15px !important; border-left: 3px solid #2ECC71 !important; }
.layout.jade-student.is-inner .stu-middle > .sidebar .nav-sub { display: none; }  /* 内页 sidebar 隐藏子项折叠器，避免占位 */
/* 内页 main 内容区扁平化（白底+1px 边框+圆角+极轻阴影） */
.layout.jade-student.is-inner main { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); padding: 22px 24px 26px; min-height: 380px; }
.layout.jade-student.is-inner main .content { padding: 0; background: transparent; border: 0; box-shadow: none; }

/* v715：学员PC端"细线条+细字重"扁平化 —— 严格对齐效果图
   - SVG 图标统一 stroke-width: 1.4（覆盖全部 inline stroke-width 1.5~2.5）
   - 标题/按钮/标签/chip/导航文字统一 font-weight: 400（regular）
   - 例外保留 600：当前 nav 高亮 + 统计大数字
   - H5 端完全不动 */
body.theme-jade .layout.jade-student svg:not([stroke-width="0"]) { stroke-width: 1.4 !important; }
/* nav 文字 / sidebar / 顶栏 / footer 全部统一 400（覆盖范围扩大到 main 外） */
body.theme-jade .layout.jade-student .nav-item,
body.theme-jade .layout.jade-student .topbar,
body.theme-jade .layout.jade-student .stu-subhead,
body.theme-jade .layout.jade-student .app-footer { font-weight: 400; }
body.theme-jade .layout.jade-student .stu-subhead .sh-crumb { font-weight: 400; }
.stu-subhead h1 { font-weight: 700 !important; letter-spacing: 2px; }
/* main 内统一 400 */
body.theme-jade .layout.jade-student main h1, body.theme-jade .layout.jade-student main h2, body.theme-jade .layout.jade-student main h3, body.theme-jade .layout.jade-student main h4, body.theme-jade .layout.jade-student main h5,
body.theme-jade .layout.jade-student main .card-title, body.theme-jade .layout.jade-student main .sec-head h3, body.theme-jade .layout.jade-student main .page-head h3,
body.theme-jade .layout.jade-student main .stu-pctask .body .t, body.theme-jade .layout.jade-student main .stu-pctask .body .t .tx,
body.theme-jade .layout.jade-student main .stu-assess-q, body.theme-jade .layout.jade-student main .stu-assess-course,
body.theme-jade .layout.jade-student main .res-card h3, body.theme-jade .layout.jade-student main .res-card-meta,
body.theme-jade .layout.jade-student main .res-size, body.theme-jade .layout.jade-student main .res-card-intro,
body.theme-jade .layout.jade-student main .tbl th, body.theme-jade .layout.jade-student main .tbl td,
body.theme-jade .layout.jade-student main .dt th, body.theme-jade .layout.jade-student main .dt td,
body.theme-jade .layout.jade-student main .row-actions a, body.theme-jade .layout.jade-student main .row-actions .link,
body.theme-jade .layout.jade-student main .tip, body.theme-jade .layout.jade-student main .empty { font-weight: 400; }
body.theme-jade .layout.jade-student main .stu-pctask .act,
body.theme-jade .layout.jade-student main .stu-btn,
body.theme-jade .layout.jade-student main .stu-assess-btn,
body.theme-jade .layout.jade-student main .res-dl,
body.theme-jade .layout.jade-student main .btn,
body.theme-jade .layout.jade-student main button.btn,
body.theme-jade .layout.jade-student main .link,
body.theme-jade .layout.jade-student main a.btn { font-weight: 400; }
body.theme-jade .layout.jade-student main .stu-pctask .body .t .type,
body.theme-jade .layout.jade-student main .badge,
body.theme-jade .layout.jade-student main .tag-ok, body.theme-jade .layout.jade-student main .tag-warn, body.theme-jade .layout.jade-student main .tag-pending, body.theme-jade .layout.jade-student main .tag-error,
body.theme-jade .layout.jade-student main .ws-tag, body.theme-jade .layout.jade-student main .ws-card-tags span { font-weight: 400; }
/* 例外：保留加粗的关键视觉 */
body.theme-jade .layout.jade-student .stu-middle > .sidebar .nav-item.active,
body.theme-jade .layout.jade-student main .stu-pctask .body .t .tx,
body.theme-jade .layout.jade-student main .stu-portrait-stats .pst-v,
body.theme-jade .layout.jade-student main .stu-score-card .sc-num { font-weight: 600; }

/* v716：学员PC端细字重收尾。修复 specificity 冲突 —— 早期 v711 时代样式单独把 .ghost/.stu-pctask .act/.stu-assess-btn/.res-dl 等设为 600，specificity 比 v715 main 块高，被单独拦截。这些全部统一降到 400。 */
body.theme-jade .layout.jade-student .stu-pctask .body .t,
body.theme-jade .layout.jade-student .stu-pctask .body .t .type,
body.theme-jade .layout.jade-student .stu-pctask .act,
body.theme-jade .layout.jade-student .stu-assess-btn,
body.theme-jade .layout.jade-student .res-card h3,
body.theme-jade .layout.jade-student .res-dl,
body.theme-jade .layout.jade-student .stu-btn.ghost { font-weight: 400 !important; }

/* footer 深色通栏（学习 portal 风格 + jade 主题色） */
.layout.jade-student > .app-footer { background: #16A085 !important; color: #cce8dd !important; font-size: 13px; padding: 0 !important; margin: 32px 0 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.layout.jade-student > .app-footer .fwrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 18px; }
.layout.jade-student > .app-footer .f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.layout.jade-student > .app-footer .f-brand .bn { font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 7px; letter-spacing: 1px; }
.layout.jade-student > .app-footer .f-brand p { margin: 0; line-height: 1.85; color: rgba(255, 255, 255, 0.7); font-size: 12.5px; }
.layout.jade-student > .app-footer .f-col h5 { margin: 0 0 12px; font-size: 13.5px; color: #fff; font-weight: 600; letter-spacing: 1px; }
.layout.jade-student > .app-footer .f-col a { display: block; margin-bottom: 9px; color: rgba(255, 255, 255, 0.7); font-size: 12.5px; cursor: pointer; }
.layout.jade-student > .app-footer .f-col a:hover { color: #fff; }
.layout.jade-student > .app-footer .f-bot { padding-top: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.layout.jade-student > .app-footer .f-links { display: flex; gap: 18px; }
.layout.jade-student > .app-footer .f-links a { color: rgba(255, 255, 255, 0.6); font-size: 12px; cursor: pointer; }
.layout.jade-student > .app-footer .f-links a:hover { color: #fff; }
.layout.jade-student .topbar .brand { color: var(--primary-dark); min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout.jade-student .top-util { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; flex: 0 1 auto; }
.layout.jade-student .top-class { min-width: 0; max-width: 240px; overflow: hidden; }
.layout.jade-student .top-class .class-ctx { display: none; max-width: 100%; }
body.view-dashboard .layout.jade-student .top-class .class-ctx { display: inline-flex; }
.top-class .class-ctx {
  align-items: center; gap: 6px; padding: 5px 14px;
  border: 1px solid #C2E5CF; background: #fff; color: var(--primary-dark);
  font-weight: 600; font-size: 12px; border-radius: 999px; cursor: pointer;
  max-width: 240px; overflow: hidden;
}
.top-class .class-ctx.empty { cursor: default; }
.top-class .class-ctx .cc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; display: inline-block; vertical-align: middle; }

/* 照片 Banner：绿色作为最底背景层（图片之下），图片在上直接显示无蒙版。
   background 多层写法：先写的在上层、后写的在下层。
   图片靠右让出左侧 1/3 给绿色 + 文字；多层 background 中绿色渐变垫在图片之下 */
.stu-banner {
  grid-area: 2 / 1 / 3 / -1;
  position: relative; height: 230px; border-radius: 0; overflow: hidden;
  background:
    url('/images/banner_check.png') right center / cover no-repeat,
    linear-gradient(105deg, #0a5b2c 0%, #0d7e40 60%);
  display: flex; align-items: center;
}
.stu-banner-inner {
  position: relative; z-index: 2; padding: 0 36px; max-width: 760px;
  /* v683：去掉 ::before 蒙版，让标题直接放在 banner 图片上；可读性靠 title/sub 的 text-shadow 保证 */
}
/* v683：删掉 .stu-banner-inner::before 整段——之前那条「左侧深绿到透明」的横条就是它（用户截图里红框标注的「中间绿色条」）。
   留下 .stu-banner-inner 不再需要 position:relative 吗？需要：title/sub/tags 是 block 流，没 position 也能在 inner 内；
   但 inner 后续可能扩展（比如底部对 banner 的浮层）所以保留 position:relative。 */
.stu-banner-title { font-family: var(--serif, 'Noto Serif SC', serif); font-weight: 900; font-size: 34px; line-height: 1.2; color: #fff; margin: 0; letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.25); }
.stu-banner-sub { margin: 12px 0 0; font-size: 15px; color: rgba(255,255,255,.96); font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.45); }
.stu-banner-tags { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.stu-banner-tags span { font-size: 12px; color: #fff; font-weight: 600; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.42); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); box-shadow: 0 1px 6px rgba(0,0,0,.18); }

/* 焦点区：左焦点图 + 右资讯 tab —— 两者等高（固定 300px，焦点图背景 cover 自适配）
   v685：左焦点图锁定 533px，右侧资讯 tab 占满剩余空间 */
.stu-focus { grid-area: 3 / 1 / 4 / -1; display: grid; grid-template-columns: 533px 1fr; gap: 18px; align-items: stretch; padding: 16px 0; box-sizing: border-box; }
/* 焦点图：图片在上直接显示（无全图蒙版），底部文字带子用内嵌 ::before 做由深到浅的绿色蒙版 */
.stu-focus-main {
  position: relative; border-radius: 0; overflow: hidden;
  height: 300px;
  background-color: #0a5b2c;
  background: url('/images/focus.jpg') center/cover no-repeat, #0a5b2c;
  display: flex; align-items: flex-end;
}
/* 文字带子：只在底部 ~50% 高度铺一层深绿渐变，让白色文字可读；图片上半部分完全可见 */
.stu-focus-inner {
  position: relative; z-index: 2; padding: 50px 22px 18px;
  width: 100%;
  background: linear-gradient(to top, rgba(10,91,44,.92) 0%, rgba(10,91,44,.62) 50%, rgba(10,91,44,0) 100%);
  box-sizing: border-box;
}
.stu-focus-title { font-family: var(--serif, 'Noto Serif SC', serif); font-weight: 900; font-size: 20px; line-height: 1.35; color: #fff; margin: 0; }
/* 新闻资讯板块：与焦点图同高 300px，内部 flex 列表自适应（白卡统一 4px 圆角） */
.stu-news { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 14px 18px 10px; display: flex; flex-direction: column; box-shadow: var(--shadow, 0 1px 3px rgba(15,40,35,.05)); height: 300px; min-height: 0; }
.stu-news-tabs { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.stu-news-tab { padding: 7px 16px; border: 1px solid transparent; background: #F4F6F8; color: var(--muted, #8a94a6); font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all .15s; font-family: inherit; }
.stu-news-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 3px 8px rgba(18,160,75,.22); }
.stu-news-more { margin-left: auto; font-size: 11px; color: var(--muted, #8a94a6); cursor: pointer; }
.stu-news-more:hover { color: var(--primary); }
.stu-news-list { display: none; flex-direction: column; flex: 1; list-style: none; margin: 0; padding: 0; }
.stu-news-list.active { display: flex; }
.stu-news-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; color: var(--text, #111); border-bottom: 1px dashed var(--border-soft, #F0F0F0); transition: color .15s; cursor: pointer; }
.stu-news-list li:last-child { border-bottom: none; }
.stu-news-list li:hover { color: var(--primary); }
.stu-news-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex: none; }
.stu-news-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-news-date { font-size: 11px; color: var(--muted, #8a94a6); flex: none; }
.stu-news-foot { margin-top: auto; padding-top: 8px; text-align: right; }
.stu-news-foot a { font-size: 12px; color: var(--primary); font-weight: 600; cursor: pointer; }

/* 三栏：侧栏白卡 + 中内容 + 右栏 */
.layout.jade-student .sidebar { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: var(--shadow, 0 1px 3px rgba(15,40,35,.05)); overflow: visible; }
.layout.jade-student .nav { padding: 4px; }
.layout.jade-student .nav .nav-item { border-radius: 10px; }
.layout.jade-student main { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.layout.jade-student .stu-banner, .layout.jade-student .stu-focus { flex: none; }
.layout.jade-student .content { padding: 0; flex: 1 1 auto; min-height: 0; }
.layout.jade-student .app-footer {
  grid-column: 1 / -1; background: #0a5b2c; color: rgba(255,255,255,.78);
  border: none; border-radius: 0; box-shadow: none; padding: 22px 24px;
}
.layout.jade-student .app-footer a { color: #fff; }

/* 移动端：焦点区单列堆叠 */
@media (max-width: 980px) {
  .stu-focus { grid-template-columns: 1fr; }
  .stu-focus-main { min-height: 160px; }
}

/* ==================== v701 新闻资讯（后台管理 + 编辑器）==================== */
.news-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-tab { border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: 14px; height: 30px; padding: 0 14px; cursor: pointer; font-size: 13px; color: #444; }
.chip-tab:hover { background: #f3f4f6; }
.chip-tab.on { background: var(--blue, #1a7fe0); color: #fff; border-color: var(--blue, #1a7fe0); font-weight: 600; }
.nw-badge { display: inline-block; border-radius: 4px; font-size: 11px; line-height: 18px; padding: 0 6px; white-space: nowrap; }
.nw-badge-on { background: #e6f7ee; color: #12a05a; }
.nw-badge-off { background: #f1f2f4; color: #8a9099; }
.nw-badge-arch { background: #fdf3e7; color: #b4751a; }
.nw-badge-top { background: #fdecec; color: #d93838; margin-right: 6px; }
.nw-cover { width: 52px; height: 34px; object-fit: cover; border-radius: 4px; margin-right: 8px; vertical-align: middle; border: 1px solid var(--line, #eee); }
.nw-title { color: inherit; text-decoration: none; font-weight: 500; }
.nw-title:hover { color: var(--blue, #1a7fe0); text-decoration: underline; }

/* 编辑页 */
.news-edit-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.news-edit-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .news-edit-wrap { grid-template-columns: 1fr; } }
.ne-title { width: 100%; box-sizing: border-box; border: none; border-bottom: 1px solid var(--line, #e5e7eb); font-size: 24px; font-weight: 700; padding: 14px 18px 12px; outline: none; background: transparent; color: inherit; font-family: inherit; }
.ne-title:focus { border-bottom-color: var(--blue, #1a7fe0); }
.ne-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line, #e5e7eb); background: rgba(0, 0, 0, .02); position: sticky; top: 0; z-index: 3; }
.ne-tb { border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: 6px; height: 30px; min-width: 32px; padding: 0 9px; cursor: pointer; font-size: 13px; color: #333; line-height: 1; }
.ne-tb:hover { background: #f3f4f6; }
.ne-sep { width: 1px; height: 18px; background: var(--line, #e5e7eb); margin: 0 2px; }
.ne-body { min-height: 440px; padding: 18px; outline: none; line-height: 1.9; font-size: 15px; }
.ne-body:empty::before { content: attr(data-ph); color: #9ca3af; }
.ne-body p { margin: 0 0 10px; }
.ne-body img { max-width: 100%; border-radius: 6px; margin: 10px 0; height: auto; }
.ne-body h2 { font-size: 20px; margin: 18px 0 10px; line-height: 1.5; }
.ne-body h3 { font-size: 17px; margin: 16px 0 8px; line-height: 1.5; }
.ne-body blockquote { border-left: 3px solid var(--blue, #1a7fe0); margin: 12px 0; padding: 6px 14px; color: #555; background: #f8fafc; }
.ne-body ul, .ne-body ol { margin: 8px 0; padding-left: 26px; }
.ne-body hr { border: none; border-top: 1px solid var(--line, #e5e7eb); margin: 18px 0; }
.ne-body a { color: var(--blue, #1a7fe0); }
.ne-foot { border-top: 1px solid var(--line, #f0f0f0); padding: 8px 18px; font-size: 12px; text-align: right; }
.ne-side { display: flex; flex-direction: column; gap: 12px; }
.ne-side .card { padding: 14px 16px; }
.ne-switch { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line, #eee); font-size: 13px; }
.ne-field { margin-bottom: 12px; }
.ne-field label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.ne-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line, #e5e7eb); background: #f7f8fa; display: block; }

/* v702：wangEditor 5 编辑器容器（边线/最小高度贴合原有卡片视觉） */
.news-wtoolbar { background: #fff; border: 1px solid var(--line, #e5e7eb); border-bottom: none; }
.news-wbody { background: #fff; border: 1px solid var(--line, #e5e7eb); border-top: none; min-height: 440px; }
/* v702.7：新闻编辑器正文默认行距 1.75（覆盖 wangEditor 自带行高，编辑所见 = 前台所得） */
.news-wbody .w-e-text,
.news-wbody .w-e-text p,
.news-wbody .w-e-text li,
.news-wbody .w-e-text blockquote,
.news-wbody .w-e-text h1,
.news-wbody .w-e-text h2,
.news-wbody .w-e-text h3,
.news-wbody .w-e-text h4 { line-height: 1.75; }
.news-wbody .w-e-text p { margin: 0 0 12px; }
.news-wbody .w-e-text { font-family: 'Microsoft YaHei', '微软雅黑', 'MSYH', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif; font-size: 15px; }
/* 旧版 contenteditable（.ne-body）行距同步 1.9 → 1.75 */
.ne-body { line-height: 1.75; }
.ne-body p { line-height: 1.75; }
/* v702.7：wangEditor 工具栏 / 下拉面板 / 弹窗浮层同步微软雅黑（其自带 CSS 会覆盖 body 字体） */
.w-e-bar, .w-e-bar-item, .w-e-bar-item-menus, .w-e-drop-panel, .w-e-select-list,
.w-e-tooltip, .w-e-modal, .w-e-input-area, .w-e-progress-bar {
  font-family: 'Microsoft YaHei', '微软雅黑', 'MSYH', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
}

/* v702.4：快速新增弹窗内 wangEditor 容器高度适配 */
.qa-intro-wrap { grid-column: 2; }
.qa-tb.news-wtoolbar { padding: 4px 6px; }
.qa-body.news-wbody { min-height: 120px; }

/* ===== v704：学员数字画像 · 2×2 网格（基本信息 / 柯氏四级 / 学情玫瑰 / 综合表现） ===== */
.pt-wrap{padding:2px 0 8px}
.pt-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.pt-title{font-size:24px;font-weight:800;color:var(--text);letter-spacing:.5px}
.pt-sub{margin-top:2px;color:var(--muted);font-size:13px}
.pt-head-score{text-align:right}
.pt-hs-v{font-size:34px;font-weight:800;color:var(--primary);line-height:1}
.pt-hs-v i{font-size:14px;font-style:normal;font-weight:600;margin-left:3px}
.pt-hs-l{margin-top:2px;color:var(--muted);font-size:12px}

/* 移动端基本信息卡：头像 + 信息网格（v710） */
.pt-info-head{display:flex;gap:14px;align-items:center;margin-bottom:14px}
.pt-info-ava{width:64px;height:64px;border-radius:50%;overflow:hidden;flex:none;border:2px solid var(--primary-soft,#E8F8F1)}
.pt-info-ava img{width:100%;height:100%;object-fit:cover}
.pt-info-sub b{display:block;font-size:17px;font-weight:800;color:var(--text)}
.pt-info-sub span{display:block;margin-top:3px;font-size:12.5px;color:var(--muted)}
.pt-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pt-info-cell{display:flex;gap:6px;background:#f7faf9;border-radius:10px;padding:9px 11px;font-size:13px;align-items:center;min-width:0}
.pt-info-cell .k{color:var(--muted);flex:none;white-space:nowrap}
.pt-info-cell .v{color:var(--text);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.pt-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;align-items:stretch}
.pt-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px;min-width:0}
.pt-sec-t{font-size:15px;font-weight:700;color:var(--text);margin:0 0 12px;display:flex;align-items:center;gap:8px}
.pt-sec-t::before{content:"";display:inline-block;width:4px;height:15px;background:var(--primary);border-radius:2px;flex:none}
.pt-empty{padding:20px 0;text-align:center;color:var(--muted);font-size:13px}

/* ① 基本信息：蘑菇拱形底图 + V 型磨砂玻璃标签（v708） */
/* v768：定位从「-49px」改为「26%」——底图 1280×800 用 cover 后按高缩放（×0.575 → 736×460），
   卡片内宽只有 ~385px，原 -49px 偏移把可视窗口推到源图 x85~755，人物（源图 x472~808）右侧被卡边裁掉约 31px，
   表现为「画像右边被吃掉」。改为按宽度百分比定位后窗口落在源图 x158~828，人物整体落在卡内且与左侧标签留出间隙。 */
.pt-vshape{position:relative;background-repeat:no-repeat;background-size:cover;background-position:26% center;border-radius:12px;overflow:hidden;min-height:460px;width:100%}
.pt-vtag{position:absolute;width:120px;background:linear-gradient(135deg,rgba(255,255,255,0.92) 0%,rgba(255,255,255,0.74) 100%);backdrop-filter:blur(8px) saturate(1.4);-webkit-backdrop-filter:blur(8px) saturate(1.4);border:1px solid rgba(255,255,255,0.65);box-shadow:0 4px 18px rgba(30,60,100,0.10);border-radius:8px;padding:9px 10px;font-size:14px;line-height:1.2;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:3;transform:translate(-50%,-50%)}
.pt-vtag .lbl{color:#94a3b8;font-weight:400}
.pt-vtag .sep{color:#cbd5e1;margin:0 4px}
.pt-vtag .val{color:#475569;font-weight:500}
.pt-vtag.L1{left:75px;top:136px}.pt-vtag.L2{left:87px;top:199px}.pt-vtag.L3{left:99px;top:262px}.pt-vtag.L4{left:111px;top:325px}
.pt-vtag.R1{left:525px;top:136px}.pt-vtag.R2{left:513px;top:199px}.pt-vtag.R3{left:501px;top:262px}.pt-vtag.R4{left:489px;top:325px}

/* ② 柯氏四级条形（四层每层一行） */
.pt-kp-row{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.pt-kp-lvl{width:64px;flex:none;font-weight:700;font-size:13.5px;color:var(--text)}
.pt-kp-bar{flex:1;height:24px;background:#f1f3f9;border-radius:6px;overflow:hidden;position:relative;min-width:0}
.pt-kp-fill{height:100%;border-radius:6px;display:flex;align-items:center;justify-content:flex-end;padding-right:8px;color:#fff;font-weight:700;font-size:12px;min-width:0;transition:width .4s ease}
.pt-kp-val{width:62px;flex:none;text-align:right;color:var(--text);font-weight:600;font-size:13px}
.pt-kp-rings{margin-top:18px;padding-top:16px;border-top:1px dashed var(--border);display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.pt-kp-ring{display:flex;flex-direction:column;align-items:center;min-width:0}
.pt-kp-ring svg{width:110px;height:110px;flex:none}
.pt-kp-ring-info{text-align:center;margin-top:2px;max-width:100%}
.pt-kp-ring-info .n{font-size:12.5px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-kp-ring-info .n.muted{color:var(--muted)}
.pt-kp-ring-info .d{font-size:10.5px;color:#6b7280;margin-top:2px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pt-kp-ring-info .d.muted{color:var(--muted)}
.pt-kp-toggle{margin-top:14px;text-align:right}
.pt-kp-toggle a{color:var(--primary);font-size:12.5px;text-decoration:none;border-bottom:1px dashed var(--primary);cursor:pointer}
.pt-kp-detail{margin-top:18px}

/* ③ 参与期间学情数据（7 瓣玫瑰图） */
.pt-rose{display:grid;grid-template-columns:1fr 172px;gap:14px;align-items:center}
.pt-rose-svg{width:100%;height:250px;display:block}
.pt-rose-legend{font-size:13px;min-width:0}
.pt-rl{display:flex;align-items:center;gap:7px;padding:5px 0;border-bottom:1px dashed var(--border)}
.pt-rl:last-child{border-bottom:0}
.pt-rl .dot{width:10px;height:10px;border-radius:50%;flex:none}
.pt-rl .n{margin-left:auto;font-weight:700;color:var(--text);font-size:13px;white-space:nowrap}
.pt-rl .n small{color:var(--muted);font-weight:500;margin-left:2px;font-size:11px}
.pt-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px;padding-top:12px;border-top:1px dashed var(--border)}
.pt-stat{text-align:center}
.pt-stat .v{font-size:20px;font-weight:800;color:var(--primary);line-height:1.2}
.pt-stat .v i{font-size:12px;font-style:normal;color:var(--muted);font-weight:600}
.pt-stat .l{margin-top:2px;color:var(--muted);font-size:11.5px}

/* ④ 学员综合表现（5 维雷达，每项满分 20） */
 .pt-radar-wrap{display:grid;grid-template-columns:1fr 190px;gap:14px;align-items:start}
.pt-radar-svg{width:100%;height:300px;display:block}
.pt-radar-info{text-align:center;min-width:0}
.pt-radar-info .big{font-size:46px;font-weight:800;color:var(--primary);line-height:1}
.pt-radar-info .big small{font-size:16px;font-weight:600;color:var(--muted);margin-left:2px}
.pt-radar-info .lvl{display:inline-block;margin-top:8px;padding:5px 14px;border-radius:20px;background:var(--primary);color:#fff;font-weight:700;font-size:13px}
.pt-radar-info .meta{margin-top:8px;color:var(--muted);font-size:11.5px;line-height:1.85;padding-bottom:4px}
.pt-radar-info .meta b{color:var(--text)}
.pt-radar-info .meta .tip{color:#9ca3af}
.pt-perf-inputs{margin-top:14px;text-align:left;border-top:1px dashed var(--border);padding-top:10px}
.pt-perf-li{display:flex;align-items:center;gap:6px;padding:3px 0;font-size:12px;color:var(--text)}
.pt-perf-li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-perf-li input{width:52px;padding:3px 6px;border:1px solid var(--border);border-radius:5px;text-align:center;font-size:12.5px;font-weight:600;color:var(--text);background:#fff}
.pt-perf-li i{font-style:normal;color:var(--muted);font-size:11px}

@media (max-width:1080px){
  .pt-grid{grid-template-columns:1fr}
  .pt-rose,.pt-radar-wrap{grid-template-columns:1fr}
  .pt-vshape{min-height:auto;padding:16px;background-image:none!important}
  .pt-vtag{position:static!important;width:auto!important;display:inline-flex;transform:none!important;margin:4px;left:auto!important;top:auto!important}
  .pt-kp-rings{grid-template-columns:repeat(2,1fr)}
  .pt-mobile{padding:12px 14px 24px}
  .pt-head{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:14px}
  .pt-head-score{text-align:left}
  .pt-title{font-size:21px}
}

/* ===================== v724 视频课程 · 学员端（jade 主题） ===================== */
/* 所有样式用 body.theme-jade .layout.jade-student main 前缀限定，避免影响后台 */
body.theme-jade .layout.jade-student main .stu-ov { display:flex; align-items:center; padding:16px 18px; margin-bottom:16px; background:#fff; border:1px solid var(--border); border-radius:8px; box-shadow: var(--shadow); }
body.theme-jade .layout.jade-student main .ov-i { flex:1; text-align:center; }
body.theme-jade .layout.jade-student main .ov-v { font-size:24px; color:var(--p-dark); line-height:1.3; font-weight:400; }
body.theme-jade .layout.jade-student main .ov-v em { font-size:13px; font-style:normal; color:var(--t4); margin-left:2px; font-weight:400; }
body.theme-jade .layout.jade-student main .ov-l { font-size:12.5px; color:var(--t4); margin-top:2px; }
body.theme-jade .layout.jade-student main .ov-sp { width:1px; height:30px; background:var(--border); }

body.theme-jade .layout.jade-student main .vcs-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
body.theme-jade .layout.jade-student main .vcs { background:#fff; border:1px solid var(--border); border-radius:8px; overflow:hidden; box-shadow: var(--shadow); text-decoration:none; color:inherit; display:block; transition:.18s; }
body.theme-jade .layout.jade-student main .vcs:hover { box-shadow:0 6px 20px rgba(18,160,75,.13); border-color:#cfe6d8; }
body.theme-jade .layout.jade-student main .vcs-cov { position:relative; height:118px; display:flex; align-items:center; justify-content:center; }
body.theme-jade .layout.jade-student main .vcs-play { width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; }
body.theme-jade .layout.jade-student main .vcs-badge { position:absolute; left:8px; top:8px; background:rgba(255,255,255,.92); color:var(--p-dark); font-size:11.5px; padding:1px 8px; border-radius:3px; }
body.theme-jade .layout.jade-student main .vcs-badge.done { background:var(--p-dark); color:#fff; }
body.theme-jade .layout.jade-student main .vcs-b { padding:11px 13px 13px; }
body.theme-jade .layout.jade-student main .vcs-t { font-size:14px; color:var(--t2); line-height:1.45; margin-bottom:7px; height:40px; overflow:hidden; font-weight:400; }
body.theme-jade .layout.jade-student main .vcs-m { font-size:12px; color:var(--t4); margin-bottom:9px; }
body.theme-jade .layout.jade-student main .vcs-p { height:4px; background:#eef1f0; border-radius:2px; overflow:hidden; margin-bottom:6px; }
body.theme-jade .layout.jade-student main .vcs-p i { display:block; height:100%; background:var(--primary); border-radius:2px; }
body.theme-jade .layout.jade-student main .vcs-f { display:flex; justify-content:space-between; font-size:12px; color:var(--t4); }
body.theme-jade .layout.jade-student main .vcs-f b { font-weight:400; color:var(--p-dark); }

/* 播放页 */
body.theme-jade .layout.jade-student main .stu-vp { display:flex; gap:18px; align-items:flex-start; }
body.theme-jade .layout.jade-student main .stu-vp-l { flex:1 1 auto; min-width:0; }
body.theme-jade .layout.jade-student main .stu-vp-r { flex:0 0 320px; }
body.theme-jade .layout.jade-student main .crumb-back { font-size:12.5px; color:var(--t4); margin-bottom:10px; cursor:pointer; }
body.theme-jade .layout.jade-student main .crumb-back:hover { color:var(--p-dark); }
body.theme-jade .layout.jade-student main .stu-player { width:100%; aspect-ratio:16/9; background:#111; border-radius:8px; overflow:hidden; }
body.theme-jade .layout.jade-student main .stu-player video { width:100%; height:100%; display:block; }
body.theme-jade .layout.jade-student main .stu-vp-meta { margin-top:14px; }
body.theme-jade .layout.jade-student main .stu-vp-title { font-size:18px; color:var(--t2); margin-bottom:7px; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-vp-info { font-size:12.5px; color:var(--t4); display:flex; gap:16px; margin-bottom:11px; flex-wrap:wrap; }
body.theme-jade .layout.jade-student main .stu-vp-act { display:flex; gap:9px; flex-wrap:wrap; }
body.theme-jade .layout.jade-student main .stu-btn { padding:7px 17px; border-radius:5px; font-size:13px; border:1px solid var(--bd, #E8E8E8); background:#fff; color:var(--t3); cursor:pointer; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-btn.pri { background:var(--primary); border-color:var(--primary); color:#fff; }
body.theme-jade .layout.jade-student main .stu-btn.ghost { background:#fff; color:var(--t3); }

/* 课程简介 + 授课专家 */
body.theme-jade .layout.jade-student main .stu-vp-about { margin-top:18px; background:#fff; border:1px solid var(--border); border-radius:8px; box-shadow: var(--shadow); overflow:hidden; }
body.theme-jade .layout.jade-student main .stu-vp-tabs { display:flex; border-bottom:1px solid var(--border-soft, #F0F0F0); background:#FCFCFA; }
body.theme-jade .layout.jade-student main .stu-vp-tab { padding:10px 18px; font-size:14px; color:var(--t3); cursor:pointer; position:relative; transition:color .15s; user-select:none; }
body.theme-jade .layout.jade-student main .stu-vp-tab:hover { color:var(--p-dark); }
body.theme-jade .layout.jade-student main .stu-vp-tab.active { color:var(--p-dark); font-weight:600; }
body.theme-jade .layout.jade-student main .stu-vp-tab::after { content:''; position:absolute; left:14px; right:14px; bottom:-1px; height:2px; background:transparent; transition:background .15s; }
body.theme-jade .layout.jade-student main .stu-vp-tab.active::after { background:var(--primary); }
body.theme-jade .layout.jade-student main .stu-vp-pane { display:none; padding:14px 18px; }
body.theme-jade .layout.jade-student main .stu-vp-pane.active { display:block; }
body.theme-jade .layout.jade-student main .stu-about-block { background:#fff; border:1px solid var(--border); border-radius:8px; padding:13px 16px; box-shadow: var(--shadow); }
body.theme-jade .layout.jade-student main .stu-about-h { display:flex; align-items:center; gap:6px; font-size:13.5px; color:var(--p-dark); margin-bottom:8px; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-about-h svg { color:var(--primary); }
body.theme-jade .layout.jade-student main .stu-about-c { font-size:13px; color:var(--t3); line-height:1.8; }
body.theme-jade .layout.jade-student main .stu-teacher { display:flex; gap:13px; }
body.theme-jade .layout.jade-student main .stu-teacher-av { width:48px; height:48px; border-radius:50%; background:#12a04b; background:linear-gradient(135deg,#12a04b,#0d7e40); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; flex:none; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-teacher-info { flex:1; min-width:0; }
body.theme-jade .layout.jade-student main .stu-teacher-name { font-size:14px; color:var(--t2); margin-bottom:3px; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-teacher-title { font-size:12.5px; color:var(--t4); margin-left:8px; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-teacher-bio { font-size:12.5px; color:var(--t3); line-height:1.75; }

/* 课时目录 */
body.theme-jade .layout.jade-student main .stu-les-h { padding:13px 15px; border-bottom:1px solid var(--border); display:flex; align-items:baseline; gap:8px; }
body.theme-jade .layout.jade-student main .stu-les-h h3 { font-size:14.5px; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-les-h .pg { margin-left:auto; font-size:12px; color:var(--p-dark); }
body.theme-jade .layout.jade-student main .stu-les-b { max-height:560px; overflow:auto; }
body.theme-jade .layout.jade-student main .stu-chap { padding:9px 15px; background:#fafbfb; font-size:12.5px; color:var(--t3); border-bottom:1px solid #f0f2f1; letter-spacing:.3px; }
body.theme-jade .layout.jade-student main .stu-les { display:flex; align-items:center; gap:9px; padding:10px 15px; border-bottom:1px solid #f4f6f5; font-size:13px; color:var(--t3); cursor:pointer; }
body.theme-jade .layout.jade-student main .stu-les:last-child { border-bottom:none; }
body.theme-jade .layout.jade-student main .stu-les:hover { background:#fafbfb; }
body.theme-jade .layout.jade-student main .stu-les .stu-les-no { width:17px; flex:none; text-align:center; color:var(--t4); font-size:12px; }
body.theme-jade .layout.jade-student main .stu-les .stu-les-nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:400; }
body.theme-jade .layout.jade-student main .stu-les .stu-les-du { font-size:12px; color:var(--t4); flex:none; }
body.theme-jade .layout.jade-student main .stu-les.done .stu-les-nm { color:var(--t4); }
body.theme-jade .layout.jade-student main .stu-les.done .stu-les-no { color:var(--primary); }
body.theme-jade .layout.jade-student main .stu-les.cur { background:var(--light); }
body.theme-jade .layout.jade-student main .stu-les.cur .stu-les-nm { color:var(--p-dark); }
body.theme-jade .layout.jade-student main .stu-les.cur .stu-les-no { color:var(--p-dark); }

/* 响应式：窄屏 3 列→2 列→1 列 */
@media (max-width: 1200px) {
  body.theme-jade .layout.jade-student main .vcs-grid { grid-template-columns:repeat(2,1fr); }
  body.theme-jade .layout.jade-student main .stu-vp { flex-direction:column; }
  body.theme-jade .layout.jade-student main .stu-vp-r { flex:0 0 auto; width:100%; }
}
@media (max-width: 720px) {
  body.theme-jade .layout.jade-student main .vcs-grid { grid-template-columns:1fr; }
}

/* v727 学员端任务弹窗：视频课程卡 */
.stu-task-video { display:flex; gap:14px; align-items:center; padding:12px; border:1px solid #E8E8E8; border-radius:8px; background:#FCFCFA; margin-bottom:12px; }
.stu-task-video-cov { width:104px; height:64px; flex:none; border-radius:6px; background:#E7F4EC center/cover no-repeat; display:flex; align-items:center; justify-content:center; color:#12a04b; overflow:hidden; }
.stu-task-video-main { flex:1; min-width:0; }
.stu-task-video-title { font-size:15px; font-weight:600; color:#1a1a1a; margin-bottom:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stu-task-video-teacher { font-size:12px; color:#888; margin-bottom:8px; }
.stu-task-video-prog { height:6px; border-radius:3px; background:#EAEAEA; overflow:hidden; }
.stu-task-video-prog i { display:block; height:100%; background:#12a04b; border-radius:3px; transition:width .3s; }
.stu-task-video-num { font-size:12px; color:#666; margin-top:5px; }

/* ===== v728：学员端课程中心 / 我的课程 卡片扩展 + 班级课程计划 ===== */
/* 卡片改为 div 承载（内部可放选课按钮），保留原有 <a> 视觉 */
body.theme-jade .layout.jade-student main .vcs { cursor:pointer; }
body.theme-jade .layout.jade-student main .vcs:hover { border-color:#12a04b; box-shadow:0 6px 18px rgba(18,160,75,.12); }
body.theme-jade .layout.jade-student main .vcs.is-od { border-color:#E2B33C; }
body.theme-jade .layout.jade-student main .vcs-badge.req { background:var(--p-dark); color:#fff; }
body.theme-jade .layout.jade-student main .vcs-badge.od { background:#C0392B; color:#fff; }
body.theme-jade .layout.jade-student main .vcs-dl { font-size:11.5px; color:#B08D3F; margin:2px 0 6px; }
body.theme-jade .layout.jade-student main .vcs-dl.od { color:#C0392B; }
body.theme-jade .layout.jade-student main .vcs-act { padding:0 12px 12px; }
body.theme-jade .layout.jade-student main .vcs-act .mini { width:100%; text-align:center; }
/* 课程中心 / 我的课程 顶部切换 */
body.theme-jade .layout.jade-student main .vcs-sw { display:flex; gap:8px; margin-bottom:14px; }
body.theme-jade .layout.jade-student main .vcs-sw-b { background:#fff; border:1px solid var(--border); border-radius:6px; padding:6px 18px; font-size:13px; color:#555; cursor:pointer; }
body.theme-jade .layout.jade-student main .vcs-sw-b.on { background:#12a04b; border-color:#12a04b; color:#fff; font-weight:500; }
/* 我的课程：分组标题 */
body.theme-jade .layout.jade-student main .vcs-sec { margin-top:18px; }
body.theme-jade .layout.jade-student main .vcs-sec-h { display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
body.theme-jade .layout.jade-student main .vcs-sec-h h4 { font-size:15px; font-weight:600; color:#1a1a1a; margin:0; }
body.theme-jade .layout.jade-student main .vcs-sec-h span { font-size:12px; color:#888; }
body.theme-jade .layout.jade-student main .vcs-tip { background:#FFF8E6; border:1px solid #F0D9A0; color:#8A6D1F; font-size:13px; padding:9px 14px; border-radius:6px; margin-bottom:14px; }
body.theme-jade .layout.jade-student main .vcs-tip.od { background:#FDEDEC; border-color:#F0B8B2; color:#A93226; }
/* 管理端：班级课程计划（全局，后台用） */
.cvp-tip { font-size:12.5px; color:#888; padding:0 0 12px; }
.cvp-sub { font-size:12px; color:#999; font-weight:400; margin-top:2px; }
.cvp-tag { display:inline-block; font-size:11.5px; padding:1px 8px; border-radius:3px; background:#F2F2F2; color:#666; }
.cvp-tag.req { background:#E7F4EC; color:#0d7e40; }
.cvp-bar { height:6px; border-radius:3px; background:#EFEFEF; overflow:hidden; margin-bottom:4px; }
.cvp-bar i { display:block; height:100%; background:#12a04b; border-radius:3px; }
.cvp-ok { color:#12a04b; font-size:12px; }
.cvp-no { color:#C0392B; font-size:12px; }
/* v731：工作坊配套视频课（管理端表格复用 .cvp-*，学员端卡片用 .wvp-*） */
.wvp-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.wvp-card { border:1px solid #E8E8E8; border-radius:8px; background:#fff; padding:12px 14px; cursor:pointer; transition:box-shadow .15s, border-color .15s; }
.wvp-card:hover { border-color:#12a04b; box-shadow:0 4px 14px rgba(18,160,75,.10); }
.wvp-card .wvp-title { font-size:14.5px; font-weight:600; color:#222; display:flex; align-items:center; gap:6px; }
.wvp-card .cvp-bar { margin:10px 0 6px; }
.wvp-foot { display:flex; align-items:center; justify-content:space-between; font-size:12.5px; color:#888; }
.wvp-go { color:#12a04b; font-weight:600; }
@media (max-width:640px) {
  .wvp-cards { grid-template-columns:1fr; }
}
@media (max-width:900px) {
  body.theme-jade .layout.jade-student main .vcs-grid { grid-template-columns:1fr; }
}

/* ===================== v754：学员移动端（H5）视频课程 ===================== */
/* 背景：v724 的学员端视频课程样式（.vcs-* / .stu-vp* 等 55 条）全部限定在
   body.theme-jade .layout.jade-student 下，而手机浏览器打开 SPA 时学员外壳是
   .mobile-student（不含 jade-student），导致手机上视频课程列表与播放页完全没有样式。
   此处补齐一套 .mobile-student 规则；配色一律硬编码，不依赖仅 PC 主题下才有的 CSS 变量。 */

/* 顶部数据卡：4~5 项一行放下 */
.mobile-student .stu-ov { display:flex; flex-wrap:nowrap; align-items:center; padding:13px 6px; margin-bottom:12px; background:#fff; border:1px solid #EAEAEA; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.03); }
.mobile-student .stu-ov .ov-i { flex:1 1 0; min-width:0; text-align:center; }
.mobile-student .stu-ov .ov-v { font-size:17px; line-height:1.3; color:#0d7e40; font-weight:600; }
.mobile-student .stu-ov .ov-v em { font-size:10.5px; font-style:normal; color:#9aa0a6; margin-left:1px; font-weight:400; }
.mobile-student .stu-ov .ov-l { font-size:10.5px; color:#8a8f99; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mobile-student .stu-ov .ov-sp { display:none; }

/* 课程中心 / 我的课程 切换 */
.mobile-student .vcs-sw { display:flex; gap:8px; margin-bottom:12px; }
.mobile-student .vcs-sw-b { flex:1 1 0; background:#fff; border:1px solid #EAEAEA; border-radius:9px; padding:9px 0; font-size:14px; color:#555; cursor:pointer; }
.mobile-student .vcs-sw-b.on { background:#12a04b; border-color:#12a04b; color:#fff; font-weight:600; }

/* 提示条 */
.mobile-student .vcs-tip { font-size:12.5px; padding:9px 12px; border-radius:9px; margin-bottom:12px; background:#FFF8E6; border:1px solid #F0D9A0; color:#8A6D1F; }
.mobile-student .vcs-tip.od { background:#FDEDEC; border-color:#F0B8B2; color:#A93226; }

/* 课程卡片：单列横向（左封面 + 右信息），一屏能看更多 */
.mobile-student .vcs-grid { display:grid; grid-template-columns:1fr; gap:10px; }
.mobile-student .vcs { display:flex; flex-wrap:wrap; align-items:center; gap:11px; padding:11px 12px; background:#fff; border:1px solid #EAEAEA; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.03); cursor:pointer; }
.mobile-student .vcs.is-od { border-color:#E2B33C; }
/* v754.1：封面改为「四角统一圆角」的独立缩略图（原来贴左边缘 → 只有左侧两角是圆的，观感割裂） */
.mobile-student .vcs-cov { position:relative; width:112px; height:80px; flex:none; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.mobile-student .vcs-play { width:32px; height:32px; border-radius:50%; background:#12a04b; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 10px rgba(18,160,75,.3); }
.mobile-student .vcs-play svg { width:14px; height:14px; }
.mobile-student .vcs-badge { position:absolute; left:5px; top:5px; font-size:10.5px; padding:1px 7px; border-radius:4px; background:rgba(255,255,255,.96); color:#0d7e40; box-shadow:0 1px 6px rgba(18,160,75,.16); }
.mobile-student .vcs-badge.done { background:#0d7e40; color:#fff; }
.mobile-student .vcs-badge.req { background:#0d7e40; color:#fff; }
.mobile-student .vcs-badge.od { background:#C0392B; color:#fff; }
.mobile-student .vcs-b { flex:1 1 0; min-width:0; padding:0; display:flex; flex-direction:column; justify-content:center; }
.mobile-student .vcs-t { font-size:14.5px; font-weight:600; color:#1a1a1a; line-height:1.42; margin-bottom:5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mobile-student .vcs-m { font-size:11.5px; color:#8a8f99; margin-bottom:8px; }
.mobile-student .vcs-dl { font-size:11px; color:#B08D3F; margin:-3px 0 6px; }
.mobile-student .vcs-dl.od { color:#C0392B; }
.mobile-student .vcs-p { height:4px; background:#eef1f0; border-radius:2px; overflow:hidden; margin-bottom:5px; }
.mobile-student .vcs-p i { display:block; height:100%; background:#12a04b; border-radius:2px; }
.mobile-student .vcs-f { display:flex; justify-content:space-between; font-size:11.5px; color:#8a8f99; }
.mobile-student .vcs-f b { color:#0d7e40; font-weight:600; }
.mobile-student .vcs-act { flex:1 1 100%; padding:0; }
.mobile-student .vcs-act .mini { width:100%; text-align:center; }

/* 分组标题（我的课程：必修 / 选修 / 已完成） */
.mobile-student .vcs-sec { margin-top:16px; }
.mobile-student .vcs-sec-h { display:flex; align-items:baseline; gap:8px; margin-bottom:10px; }
.mobile-student .vcs-sec-h h4 { font-size:15px; font-weight:600; color:#1a1a1a; margin:0; }
.mobile-student .vcs-sec-h span { font-size:11.5px; color:#8a8f99; }

/* ---------- 播放页（H5） ---------- */
.mobile-student .stu-vp { display:block; }
.mobile-student .crumb-back { display:none; }            /* 顶部已有统一返回栏，去重 */
/* v754.1：视频区改通栏矩形（去圆角 + 去 overflow:hidden）。
   圆角会让画面四角被啃掉；overflow:hidden 在部分安卓浏览器全屏时会裁掉视频层导致黑屏。 */
.mobile-student .stu-player { width:100%; aspect-ratio:16/9; background:#000; border-radius:0; overflow:visible; }
.mobile-student .stu-player video { width:100%; height:100%; display:block; }
.mobile-student .stu-vp-meta { margin-top:12px; }
.mobile-student .stu-vp-title { font-size:16.5px; font-weight:600; color:#1a1a1a; line-height:1.45; margin-bottom:7px; }
.mobile-student .stu-vp-info { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:#8a8f99; margin-bottom:12px; }
.mobile-student .stu-vp-act { display:flex; gap:8px; flex-wrap:wrap; }
.mobile-student .stu-vp-act .stu-btn { flex:1 1 0; min-width:82px; padding:11px 10px; font-size:13.5px; }
.mobile-student .stu-btn.pri { background:#12a04b; border-color:#12a04b; color:#fff; }
.mobile-student .stu-vp-r { margin-top:16px; }
.mobile-student .stu-vp-r .card { background:#fff; border:1px solid #EAEAEA; border-radius:12px; overflow:hidden; padding:0; box-shadow:0 2px 8px rgba(0,0,0,.03); }

/* 课程简介 / 授课专家 选项卡 */
.mobile-student .stu-vp-about { margin-top:14px; background:#fff; border:1px solid #EAEAEA; border-radius:12px; overflow:hidden; }
.mobile-student .stu-vp-tabs { display:flex; border-bottom:1px solid #F0F0F0; background:#FCFCFA; }
.mobile-student .stu-vp-tab { padding:11px 16px; font-size:13.5px; color:#8a8f99; position:relative; }
.mobile-student .stu-vp-tab.active { color:#0d7e40; font-weight:600; }
.mobile-student .stu-vp-tab.active::after { content:''; position:absolute; left:12px; right:12px; bottom:-1px; height:2px; background:#12a04b; }
.mobile-student .stu-vp-pane { display:none; padding:13px 15px; }
.mobile-student .stu-vp-pane.active { display:block; }
.mobile-student .stu-about-c { font-size:13px; color:#5a6270; line-height:1.8; }
.mobile-student .stu-teacher { display:flex; gap:12px; }
.mobile-student .stu-teacher-av { width:42px; height:42px; flex:none; border-radius:50%; background:#E7F4EC; color:#0d7e40; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:600; }
.mobile-student .stu-teacher-info { flex:1 1 0; min-width:0; }
.mobile-student .stu-teacher-name { font-size:14.5px; font-weight:600; color:#1a1a1a; margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.mobile-student .stu-teacher-title { font-size:11px; font-weight:400; color:#0d7e40; background:#E7F4EC; padding:1px 7px; border-radius:4px; }
.mobile-student .stu-teacher-bio { font-size:12.5px; color:#8a8f99; line-height:1.7; }

/* 课时目录 */
.mobile-student .stu-les-h { display:flex; align-items:center; justify-content:space-between; padding:12px 15px; border-bottom:1px solid #F0F0F0; }
.mobile-student .stu-les-h h3 { font-size:14.5px; font-weight:600; color:#1a1a1a; margin:0; }
.mobile-student .stu-les-h .pg { font-size:12px; color:#8a8f99; }
.mobile-student .stu-les-b { max-height:none; }
.mobile-student .stu-chap { padding:9px 15px; background:#FAFBFA; font-size:12px; color:#8a8f99; border-bottom:1px solid #F0F2F1; }
.mobile-student .stu-les { display:flex; align-items:center; gap:9px; padding:12px 15px; border-bottom:1px solid #F4F6F5; font-size:13.5px; color:#4a5260; cursor:pointer; }
.mobile-student .stu-les:last-child { border-bottom:none; }
.mobile-student .stu-les.cur { background:#F2FAF5; }
.mobile-student .stu-les-no { width:16px; flex:none; text-align:center; color:#b6bcc4; font-size:12px; }
.mobile-student .stu-les.cur .stu-les-no { color:#0d7e40; }
.mobile-student .stu-les.done .stu-les-no { color:#12a04b; }
.mobile-student .stu-les-nm { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mobile-student .stu-les.cur .stu-les-nm { color:#0d7e40; font-weight:600; }
.mobile-student .stu-les-du { flex:none; font-size:11.5px; color:#a8aeb6; }
