* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei","PingFang SC",sans-serif; font-size:14px; color:#26313d; background:#f0f2f5; }
a { color:#2b6cb0; text-decoration:none; }
.layout { display:flex; min-height:100vh; }
.sidebar { width:232px; background:#1f2a3d; color:#cbd5e1; flex-shrink:0; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:10px; padding:20px 18px; border-bottom:1px solid #334155; }
.brand-logo { width:40px; height:40px; object-fit:contain; flex-shrink:0; }
.brand-text b { display:block; color:#fff; font-size:16px; letter-spacing:1px; }
.brand-text span { font-size:14px; color:#cbd5e1; }
.nav { padding:12px 0; flex:1; overflow-y:auto; }
.nav a { display:flex; align-items:center; gap:10px; padding:11px 20px; color:#cbd5e1; font-size:15px; font-weight:600; border-left:3px solid transparent; text-decoration:none; }
.nav a:hover { background:#2b3a52; color:#fff; }
.nav a.active { background:#2b3a52; color:#fff; border-left-color:#f59e0b; }
/* 学员端：大图标纵向导航（菜单少，显示更饱满） */
.nav-student { padding:18px 0; }
.nav-student a { display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; padding:18px 12px; margin:0 10px 10px; border-left:none; border-radius:10px;
  font-size:15px; font-weight:500; text-align:center; }
.nav-student a .nav-ico { font-size:34px; line-height:1; filter:drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.nav-student a.active { background:#2b3a52; color:#fff; border-left:none; box-shadow:inset 0 0 0 1px #3d5170; }
.nav-student a:hover { background:#2b3a52; color:#fff; }
.nav-sep { padding:14px 20px 6px; font-size:15px; color:#cbd5e1; font-weight:700; letter-spacing:.5px; }
.sidebar-foot { padding:14px 18px; font-size:13px; color:#94a3b8; border-top:1px solid #334155; line-height:1.5; text-align:center; }
.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar { height:58px; background:#fff; border-bottom:1px solid #e2e8f0; display:flex; align-items:center; justify-content:space-between; padding:0 24px; flex-shrink:0; }
.crumb { color:#475569; font-size:14px; font-weight:500; }
.user-box { display:flex; align-items:center; gap:10px; font-size:13px; }
.user-name { font-weight:600; }
.role-tag { background:#eff6ff; color:#2563eb; padding:2px 8px; border-radius:10px; font-size:11px; }
.logout { color:#94a3b8; }
.logout:hover { color:#dc2626; }
.content { padding:22px 24px 40px; flex:1; }
.page-head { margin-bottom:16px; }
.page-head h2 { font-size:20px; color:#1e293b; }
.page-head p { margin-top:4px; }
.muted { color:#94a3b8; font-size:13px; }
.hidden { display:none !important; }
.center { text-align:center; }
.nowrap { white-space:nowrap; }
.highlight { color:#d97706; font-weight:600; }
.alert { padding:11px 16px; border-radius:6px; margin-bottom:14px; font-size:13px; }
.alert.error { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.alert.ok { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
.card { background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:18px 20px; margin-bottom:16px; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.card h3 { font-size:15px; margin-bottom:14px; color:#1e293b; }
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:16px; margin-bottom:16px; }
.stat-card { background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:22px; text-align:center; }
.stat-num { font-size:34px; font-weight:bold; color:#2563eb; }
.stat-label { color:#64748b; margin-top:6px; font-size:13px; }
.table { width:100%; border-collapse:collapse; font-size:13px; }
.table th { background:#f8fafc; text-align:left; padding:10px 12px; color:#475569; font-weight:600; border-bottom:1px solid #e2e8f0; white-space:nowrap; }
.table td { padding:9px 12px; border-bottom:1px solid #f1f5f9; }
.table tr:hover td { background:#f8fafc; }
.table-sm { font-size:12px; }
.table-sm th,.table-sm td { padding:6px 8px; }
.num { text-align:right; font-variant-numeric:tabular-nums; }
.dir-in { color:#dc2626; font-weight:600; }
.dir-out { color:#16a34a; font-weight:600; }
.tag-green { color:#16a34a; font-weight:600; }
.tag-gray { color:#94a3b8; }
.code-tag { background:#f1f5f9; padding:1px 7px; border-radius:4px; font-size:11px; color:#64748b; margin-left:6px; }
.pill { display:inline-block; background:#eff6ff; color:#2563eb; padding:3px 10px; border-radius:12px; font-size:12px; margin:2px 4px 2px 0; }
.pill-green { background:#dcfce7; color:#15803d; }
.pill-gray { background:#f1f5f9; color:#64748b; }
.btn-primary { background:#2563eb; color:#fff; border:none; padding:9px 20px; border-radius:6px; font-size:14px; cursor:pointer; display:inline-block; }
.btn-primary:hover { background:#1d4ed8; }
.btn-ghost { background:#fff; color:#475569; border:1px solid #cbd5e1; padding:9px 20px; border-radius:6px; font-size:14px; cursor:pointer; display:inline-block; }
.btn-ghost:hover { background:#f8fafc; }
.btn-block { display:block; width:100%; }
.btn-print { background:#0891b2; color:#fff; padding:9px 18px; border-radius:6px; font-size:13px; }
.btn-print:hover { background:#0e7490; color:#fff; }
.btn-export { background:#059669; color:#fff; padding:9px 18px; border-radius:6px; font-size:13px; }
.btn-export:hover { background:#047857; color:#fff; }
.btn-danger { background:#dc2626; color:#fff; border:none; padding:9px 20px; border-radius:6px; font-size:14px; cursor:pointer; display:inline-block; }
.btn-danger:hover { background:#b91c1c; color:#fff; }
.btn-mini { background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; padding:3px 10px; border-radius:4px; font-size:12px; cursor:pointer; }
.btn-mini.danger { background:#fef2f2; color:#dc2626; border-color:#fecaca; }
.form-row { margin-bottom:16px; }
.lbl { display:block; font-size:13px; font-weight:600; color:#475569; margin-bottom:7px; }
.req { color:#dc2626; }
input[type=text],input[type=password],input[type=number],input[type=date],select { border:1px solid #cbd5e1; border-radius:6px; padding:8px 11px; font-size:13px; font-family:inherit; width:100%; max-width:420px; background:#fff; }
input:focus,select:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.12); }
input[type=file] { padding:8px 0; font-size:13px; }
.hint { color:#94a3b8; font-size:12px; margin-top:5px; }
.form-actions { display:flex; gap:10px; align-items:center; margin-top:18px; }
.fgrid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px 18px; margin-bottom:12px; }
.fitem label { display:block; font-size:12px; color:#64748b; margin-bottom:5px; }
.fitem select,.fitem input { max-width:380px; width:100%; padding:10px 12px; font-size:13px; line-height:1.5; min-height:42px; }
.fwide { grid-column:1/-1; }
.chk { display:inline-flex; align-items:center; gap:6px; font-size:13px; margin:6px 16px 6px 0; cursor:pointer; }
.chk input { width:auto; }
.notes { padding-left:20px; line-height:2; color:#475569; font-size:13px; }
.notes li { list-style:disc; }
/* 账户数据概览 */
.acct-overview { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin-bottom:16px; }
.acct-chip { background:#fff; border:1px solid #e2e8f0; border-left:3px solid #3b82f6; border-radius:6px; padding:12px 14px; cursor:pointer; transition:.15s; }
.acct-chip:hover { border-color:#93c5fd; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.acct-chip.selected { border-left-color:#f59e0b; background:#fffbeb; }
.chip-name { font-size:13px; color:#475569; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chip-stat { margin-top:6px; color:#64748b; font-size:12px; }
.chip-stat b { font-size:19px; color:#2563eb; }
.chip-date { float:right; color:#94a3b8; font-size:11px; }
.page-jump { display:inline-flex; align-items:center; gap:6px; color:#475569; margin-left:auto; }
.page-jump input { width:56px; padding:4px 6px; text-align:center; }
.page-jump button { padding:5px 12px; border:1px solid #cbd5e1; background:#fff; border-radius:4px; cursor:pointer; font-size:12px; }
.page-jump button:hover { background:#eff6ff; border-color:#93c5fd; }
.filter-form .fgrid { grid-template-columns:repeat(4,1fr); }
.filter-actions { display:flex; gap:10px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.filter-spacer { flex:1; }
.last-info { background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; padding:12px 16px; margin:6px 0 18px; }
.last-row { display:flex; padding:3px 0; font-size:13px; }
.last-key { color:#64748b; width:150px; flex-shrink:0; }
.last-val { color:#334155; }
.confirm-target { display:flex; gap:40px; flex-wrap:wrap; font-size:14px; }
.parse-meta { display:flex; gap:18px; flex-wrap:wrap; font-size:12px; color:#475569; margin-bottom:10px; }
.parse-stat { margin-bottom:10px; }
.table-scroll { overflow-x:auto; }
.table-bank { font-size:12px; min-width:1000px; }
.table-bank th { text-align:center; }
.remark-cell { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sum-bar { display:flex; gap:30px; background:#f8fafc; padding:10px 14px; border-radius:6px; margin-bottom:12px; font-size:13px; }
.pagination { display:flex; gap:14px; align-items:center; justify-content:center; margin-top:14px; font-size:13px; }
.pagination a { border:1px solid #cbd5e1; padding:5px 12px; border-radius:4px; }
.tip { margin-top:12px; }
.role-card { padding:14px 18px; }
.role-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.perm-list { border-top:1px solid #f1f5f9; padding-top:8px; }
.perm-checks { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; border:1px solid #e2e8f0; padding:12px; border-radius:6px; }
.done-wrap { text-align:center; background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:40px 20px; max-width:640px; margin:20px auto; }
.done-icon { width:64px; height:64px; border-radius:50%; background:#dcfce7; color:#16a34a; font-size:36px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.done-stat { display:flex; justify-content:center; gap:60px; margin:24px 0; }
.done-num { font-size:38px; font-weight:bold; }
.done-num.green { color:#16a34a; }
.done-num.gray { color:#94a3b8; }
.done-label { color:#64748b; font-size:13px; }
.done-actions { display:flex; gap:12px; justify-content:center; margin-top:20px; }
/* 登录 */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#1e3a8a,#0f172a); }
.login-card { background:#fff; width:400px; padding:36px 40px; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.login-logo { width:56px; height:56px; border-radius:14px; background:linear-gradient(135deg,#f59e0b,#d97706); color:#fff; font-size:30px; font-weight:bold; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.login-card h1 { text-align:center; font-size:20px; color:#1e293b; }
.login-sub { text-align:center; color:#94a3b8; font-size:12px; margin:6px 0 24px; }
.login-card label { display:block; font-size:13px; color:#475569; margin:12px 0 6px; }
.login-card input { max-width:none; width:100%; }
.login-card .btn-primary { margin-top:22px; }
.login-tip { text-align:center; color:#94a3b8; font-size:11px; margin-top:18px; line-height:1.6; }
/* 工作台快捷入口 */
.quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.quick-item { display:flex; flex-direction:column; align-items:center; gap:5px; padding:18px 10px;
  border:1px solid #e5eaf1; border-radius:10px; text-decoration:none; color:#334155;
  background:linear-gradient(180deg,#fff,#f8fafc); transition:.18s; text-align:center; }
.quick-item:hover { transform:translateY(-2px); border-color:#93b4ec; box-shadow:0 8px 20px rgba(37,99,235,.1); }
.quick-item .qi-ico { font-size:26px; line-height:1; }
.quick-item b { font-size:13px; color:#1e293b; }
.quick-item small { font-size:11px; color:#94a3b8; }
@media(max-width:800px){ .quick-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:1100px){ .filter-form .fgrid{grid-template-columns:repeat(2,1fr);} .fgrid{grid-template-columns:1fr;} }
/* 分组导航：默认只显示一级菜单，点击后展开二级菜单 */
.nav-group { width:100%; display:flex; align-items:center; gap:10px; padding:12px 18px; margin-top:2px;
  border:0; border-top:1px solid #2b3a52; background:transparent; color:#e2e8f0;
  font-family:inherit; font-size:15px; font-weight:700; letter-spacing:.4px; text-align:left; cursor:pointer; }
.nav-group:hover { background:#2b3a52; }
.nav-group .nav-ico { width:28px; height:28px; border-radius:9px; display:inline-flex; align-items:center;
  justify-content:center; font-size:14px; flex-shrink:0; box-shadow:0 3px 8px rgba(0,0,0,.22); }
.nav-group .nav-caret { margin-left:auto; color:#94a3b8; font-size:11px; transition:transform .2s ease; }
.nav-group.open .nav-caret { transform:rotate(180deg); }
.nav-children { display:none; padding:2px 0 8px; background:rgba(15,23,42,.28); }
.nav-children.open { display:block; }
.nav-children .nav-sub { display:flex; align-items:center; gap:9px; padding:9px 12px 9px 40px;
  font-size:13px; font-weight:400; color:#cbd5e1; border-left:3px solid transparent; }
.nav-children .nav-sub .nav-ico { width:20px; height:20px; border-radius:6px; display:inline-flex;
  align-items:center; justify-content:center; font-size:11px; flex-shrink:0;
  background:rgba(148,163,184,.16); }
.nav-children .nav-sub:hover { background:#2b3a52; color:#fff; }
.nav-children .nav-sub.active { background:#2b3a52; color:#fff; border-left-color:#f59e0b; }
.nav-children .nav-sub.active .nav-ico { background:rgba(245,158,11,.25); }
.nav-subtitle { padding:8px 14px 2px 40px; font-size:11px; color:#94a3b8; letter-spacing:.5px; }
.nav .nav-ico.ico-blue { background:linear-gradient(135deg,#3b82f6,#1d4ed8); }
.nav .nav-ico.ico-teal { background:linear-gradient(135deg,#14b8a6,#0f766e); }
.nav .nav-ico.ico-purple { background:linear-gradient(135deg,#a78bfa,#6d28d9); }
.nav .nav-ico.ico-orange { background:linear-gradient(135deg,#fb923c,#c2410c); }
.nav .nav-ico.ico-rose { background:linear-gradient(135deg,#fb7185,#be123c); }
.nav .nav-ico.ico-amber { background:linear-gradient(135deg,#fbbf24,#b45309); }
.nav .nav-ico.ico-slate { background:linear-gradient(135deg,#64748b,#334155); }
.nav .nav-ico.ico-green { background:linear-gradient(135deg,#34d399,#047857); }
.nav-student .nav-ico { background:linear-gradient(135deg,#3b82f6,#1d4ed8); }
/* 员工档案 */
textarea { border:1px solid #cbd5e1; border-radius:6px; padding:8px 11px; font-size:13px; font-family:inherit; width:100%; max-width:420px; }
.detail-table th { width:130px; color:#64748b; background:#f8fafc; }
.detail-table td { color:#334155; }
.file-existing { display:block; margin-top:6px; font-size:12px; }
.file-link { font-size:12px; margin-left:8px; }
.attach-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; }
.attach-item { border:1px solid #e2e8f0; border-radius:6px; padding:12px; text-align:center; }
.attach-name { font-size:12px; color:#475569; margin-bottom:8px; }
.emp-thumb { width:100%; height:120px; object-fit:contain; background:#f8fafc; border-radius:4px; margin-bottom:8px; }
.cert-row input[type=text],.cert-row input:not([type]),.cert-row input[type=date] { max-width:none; width:100%; padding:6px 8px; }
.cert-row input[type=file] { max-width:100%; font-size:12px; }

/* ===== 移动端抽屉基础（桌面隐藏） ===== */
.menu-toggle { display:none; width:38px; height:38px; border:0; background:transparent; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px; margin-right:8px; border-radius:8px; }
.menu-toggle span { display:block; width:22px; height:2px; background:#475569; border-radius:2px; }
.menu-toggle:active { background:#eef2f7; }
.sidebar-mask { display:none; }
.sidebar-close { display:none; }
body.menu-open { overflow:hidden; }

/* ===== 平板与手机（<=900px）：侧边栏抽屉化 ===== */
@media(max-width:900px){
  .sidebar { position:fixed; left:0; top:0; height:100vh; z-index:60; transform:translateX(-100%);
    transition:transform .25s ease; box-shadow:4px 0 24px rgba(0,0,0,.25); width:260px; }
  .sidebar.open { transform:translateX(0); }
  .sidebar-mask { display:block; position:fixed; inset:0; background:rgba(15,23,42,.5); z-index:50;
    opacity:0; visibility:hidden; transition:opacity .25s ease; }
  .sidebar-mask.show { opacity:1; visibility:visible; }
  .sidebar-close { display:flex; position:absolute; right:10px; top:18px; width:32px; height:32px;
    border:0; background:rgba(255,255,255,.08); color:#fff; font-size:22px; line-height:1;
    border-radius:8px; align-items:center; justify-content:center; cursor:pointer; }
  .main { width:100%; }
  .topbar { padding:0 14px; }
  .menu-toggle { display:flex; }
  .content { padding:16px 14px 40px; }
  /* 表格横向滚动由 .table-scroll 容器负责 */
  .table-scroll { -webkit-overflow-scrolling:touch; }
  .fgrid { grid-template-columns:1fr; }
  .filter-form .fgrid { grid-template-columns:repeat(2,1fr); }
  .quick-grid { grid-template-columns:repeat(2,1fr); }
  .sum-bar { flex-wrap:wrap; gap:8px 20px; }
  .done-stat { gap:30px; }
}

/* ===== 手机（<=600px） ===== */
@media(max-width:600px){
  body { font-size:13px; -webkit-text-size-adjust:100%; }
  .topbar { height:52px; }
  .crumb { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .user-box { gap:6px; }
  .role-tag { display:none; }
  .page-head h2 { font-size:18px; }
  .card { padding:14px 14px; border-radius:8px; }
  .content { padding:12px 10px 32px; }
  .filter-form .fgrid { grid-template-columns:1fr; }
  .stat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .stat-card { padding:14px 8px; }
  .stat-num { font-size:26px; }
  .acct-overview { grid-template-columns:repeat(2,1fr); gap:8px; }
  .acct-chip { padding:10px; }
  .chip-stat b { font-size:16px; }
  .chip-date { float:none; display:block; margin-top:2px; }
  .quick-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
  .quick-item { padding:14px 6px; }
  .quick-item .qi-ico { font-size:22px; }
  /* 输入框、按钮触控友好 */
  input[type=text],input[type=password],input[type=number],input[type=date],select,textarea { max-width:none; font-size:16px; padding:10px 12px; }
  .btn-primary,.btn-ghost,.btn-print,.btn-export { padding:11px 16px; font-size:14px; }
  .btn-mini { padding:6px 10px; font-size:12px; }
  .form-actions { flex-wrap:wrap; }
  .form-actions > * { flex:1 1 auto; }
  .last-row { flex-direction:column; }
  .last-key { width:auto; color:#94a3b8; font-size:12px; }
  .confirm-target { gap:16px; }
  .sum-bar { font-size:12px; }
  .pagination { flex-wrap:wrap; gap:8px; }
  .page-jump { margin-left:0; width:100%; justify-content:center; }
  .perm-checks { grid-template-columns:repeat(2,1fr); }
  .done-stat { gap:18px; }
  .done-num { font-size:30px; }
  .done-actions { flex-wrap:wrap; }
  .attach-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .detail-table th { width:96px; }
  .detail-table th,.detail-table td { padding:7px 8px; font-size:12px; }
  .table { font-size:12px; }
  .table th,.table td { padding:7px 8px; }
  /* 登录页小屏增强 */
  .login-page { padding:16px; }
  .login-shell { max-width:100%; }
  .login-panel { padding:34px 22px; }
  .login-head h2 { font-size:23px; }
  .login-btn { height:50px; font-size:16px; }
}

@media(max-width:380px){
  .stat-grid,.acct-overview,.quick-grid,.attach-grid,.perm-checks { grid-template-columns:1fr; }
}

.detail-table-wrap { max-width:760px; }

/* ===== 短信模块 ===== */
.tag-red { color:#dc2626; font-weight:600; }
.fitem small.muted { display:block; margin-top:4px; font-size:12px; }
label.inline { display:inline-flex; align-items:center; gap:6px; font-size:13px; }
label.inline input { width:auto; }
@media(max-width:600px){
  .sms-login { padding:24px 20px; }
}

/* ===== 题库 V2 / 练习中心 ===== */
.toolbar, .action-row, .inline-form, .filter-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.toolbar { margin-bottom:14px; }
.inline-form { display:inline-flex; margin:0; }
.req { color:#dc2626; }
.inline-label { display:inline-flex; align-items:center; gap:6px; font-size:13px; }
.inline-label input { width:auto; }
.form-grid-2, .form-grid-3 { display:grid; grid-template-columns:repeat(2,1fr); gap:0 16px; }
.form-grid-3 { grid-template-columns:repeat(3,1fr); }
.chapter-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.chapter-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:16px; background:#f1f5f9; color:#475569; font-size:12px; }
.chapter-chip.chip-on { background:#eff6ff; color:#1d4ed8; }
.chip-x { background:none; border:none; color:#94a3b8; cursor:pointer; font-size:15px; line-height:1; padding:0; }
.chip-x:hover { color:#dc2626; }
.chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.filter-form input, .filter-form select { max-width:260px; }
/* 题目管理页：章节名/筛选关键字输入框加大 */
.inline-form .big-field, .filter-form .big-field { max-width:none; width:260px; min-height:40px; padding:9px 12px; font-size:14px; }
@media(max-width:700px){ .inline-form .big-field, .filter-form .big-field { width:100%; } }
.mapping-table select { min-width:150px; }
.cell-preview { max-width:320px; word-break:break-all; color:#64748b; }
.preview-table td { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.danger-zone { border-color:#fecaca; background:#fffafa; }
.danger-zone h3 { color:#b91c1c; }
.reason-list { padding-left:20px; color:#b45309; font-size:13px; }
.token-cell { font-family:Consolas,monospace; font-size:11px; word-break:break-all; max-width:280px; }
.subtotal { font-weight:600; color:#2563eb; }

.practice-toolbar { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-bottom:16px; }
.start-card { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:16px; box-shadow:0 1px 2px rgba(0,0,0,.03); display:flex; flex-direction:column; gap:8px; }
.start-card .start-ico { font-size:26px; }
.start-card b { font-size:15px; color:#1e293b; }
.start-card small { color:#64748b; min-height:32px; }
.start-card select { width:100%; }
.start-card .btn-primary, .start-card .btn-ghost { text-align:center; margin-top:auto; }
.practice-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:16px 20px; margin-bottom:18px; font-size:14px; }
.timer { font-family:Consolas,monospace; font-size:18px; color:#0f766e; font-weight:700; }
.timer-warn { color:#dc2626; animation:qbBlink 1s infinite; }
@keyframes qbBlink { 50% { opacity:.45; } }
.question-card .question-meta { display:flex; gap:14px; align-items:center; margin-bottom:20px; }
.tag-blue { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; padding:3px 10px; border-radius:4px; font-size:12px; }
.question-card .stem { font-size:17px; line-height:2; color:#0f172a; margin-bottom:26px; white-space:pre-wrap; }
.option-list { display:flex; flex-direction:column; gap:14px; margin-bottom:26px; }
.option-item { display:flex; align-items:flex-start; gap:14px; padding:16px 18px; border:1px solid #e2e8f0; border-radius:8px; cursor:pointer; line-height:1.85; font-size:15px; }
.option-item:hover { border-color:#93c5fd; background:#f8fbff; }
.option-item input { margin-top:5px; width:auto; }
.opt-key { font-weight:700; color:#2563eb; min-width:20px; }
.practice-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:22px; }
.result-badge { display:inline-block; padding:4px 12px; border-radius:16px; font-size:13px; font-weight:600; }
.result-badge.ok { background:#dcfce7; color:#15803d; }
.result-badge.bad { background:#fee2e2; color:#b91c1c; }
.result-summary { text-align:center; }
.score-big { font-size:46px; font-weight:700; color:#1d4ed8; margin-bottom:10px; }
.score-big small { font-size:16px; color:#64748b; font-weight:400; }
.result-meta { margin-top:10px; color:#475569; font-size:13px; }
.tabs { display:flex; gap:8px; margin-bottom:14px; }
.tabs a { padding:8px 16px; border:1px solid #cbd5e1; border-radius:6px; color:#475569; background:#fff; }
.tabs a.active { background:#2563eb; color:#fff; border-color:#2563eb; }
.wrong-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:16px; }
.wrong-stat-card { background:#fff; border:1px solid #e2e8f0; border-radius:8px; overflow:hidden; }
.stat-link { display:block; width:100%; background:none; border:none; cursor:pointer; padding:16px 10px; }
.stat-link:hover { background:#f8fafc; }
/* ===== 答题后同页反馈：选项高亮、正确答案、解析 ===== */
.answer-feedback { border:1px solid #e2e8f0; border-radius:8px; padding:20px 22px; background:#f8fafc; margin-bottom:24px; }
.fb-line { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.fb-score { font-size:14px; }
.fb-options .fb-option { cursor:default; background:#fff; }
.fb-options .fb-option:hover { background:#fff; border-color:#e2e8f0; }
.fb-option.is-correct { border-color:#86efac; background:#f0fdf4; color:#15803d; font-weight:600; }
.fb-option.is-wrong { border-color:#fca5a5; background:#fef2f2; color:#b91c1c; font-weight:600; }
.fb-option .fb-mark { margin-left:auto; font-size:18px; font-weight:700; }
.fb-option .mark-correct { color:#16a34a; }
.fb-option .mark-wrong { color:#dc2626; }
.fb-answer-box { display:flex; flex-wrap:wrap; gap:14px 34px; padding:16px 20px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; font-size:15px; line-height:1.9; }
.fb-analysis { margin-top:16px; background:#fff; border:1px solid #e2e8f0; border-left:3px solid #2563eb; border-radius:8px; padding:16px 20px; }
.fb-analysis-title { font-weight:700; color:#1d4ed8; margin-bottom:10px; font-size:15px; }
.fb-analysis-text { line-height:2.1; color:#334155; white-space:pre-wrap; font-size:15px; }
.fb-toggle { background:#eff6ff; border-color:#93c5fd; color:#1d4ed8; font-weight:600; }
.preview-box { border-left:3px solid #2563eb; }
.question-card #favForm { margin-top:24px; }
.question-card #favForm .btn-mini { padding:6px 14px; font-size:13px; }
.question-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:14px 18px; margin-bottom:18px; }
.question-nav .qnav-pos { font-weight:700; color:#475569; font-size:14px; }
.btn-ghost.disabled { opacity:.45; pointer-events:none; cursor:default; }
/* 模拟考题号卡片（答题卡） */
.question-sheet { background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:18px 20px; margin-bottom:18px; }
.sheet-legend { display:flex; align-items:center; gap:18px; margin-bottom:14px; font-size:13px; color:#64748b; flex-wrap:wrap; }
.sheet-legend .sheet-title { font-weight:700; color:#1e293b; font-size:14px; margin-right:4px; }
.sheet-legend .lg { display:inline-flex; align-items:center; gap:5px; }
.lg-box { display:inline-block; width:13px; height:13px; border-radius:3px; vertical-align:middle; }
.lg-done { background:#3b82f6; }
.lg-todo { background:#e2e8f0; border:1px solid #cbd5e1; }
.lg-cur { background:#fff; border:2px solid #2563eb; }
.sheet-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; max-width:420px; }
.sheet-cell { display:flex; align-items:center; justify-content:center; height:36px; border-radius:5px; text-decoration:none; font-size:14px; font-weight:600; transition:transform .08s; }
.sheet-cell:hover { transform:translateY(-1px); }
.sheet-cell.done { background:#3b82f6; color:#fff; }
.sheet-cell.todo { background:#f1f5f9; color:#475569; border:1px solid #cbd5e1; }
.sheet-cell.current { border:2px solid #2563eb !important; box-shadow:0 0 0 2px rgba(37,99,235,.15); color:#1d4ed8; }
.sheet-cell.done.current { color:#fff; }
/* ===== 模拟考三栏布局：左考生信息 / 中题目 / 右答题卡 ===== */
.exam-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; background:#0d5aa7; color:#fff; border-radius:6px; padding:12px 20px; margin-bottom:16px; font-size:16px; font-weight:700; }
.exam-topbar-sub { font-size:13px; font-weight:500; opacity:.85; }
.exam-layout { display:grid; grid-template-columns:176px minmax(0,1fr) 216px; gap:16px; align-items:start; }
.exam-panel { background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:18px 16px; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.exam-left { text-align:center; position:sticky; top:12px; }
.exam-avatar { width:64px; height:64px; border-radius:50%; background:#f1f5f9; border:1px solid #e2e8f0; display:flex; align-items:center; justify-content:center; font-size:30px; margin:0 auto 12px; }
.exam-user { font-weight:700; color:#1e293b; margin-bottom:18px; }
.exam-info-row { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; color:#64748b; padding:9px 0; border-bottom:1px dashed #e2e8f0; }
.exam-info-row b { color:#0f172a; }
.exam-timer { font-family:Consolas,monospace; font-size:22px; font-weight:700; color:#0f766e; margin:18px 0; }
.exam-submit { width:100%; }
.exam-mini-nav { display:flex; justify-content:space-between; gap:6px; margin-top:14px; font-size:12px; }
.exam-mini-nav a { color:#2563eb; text-decoration:none; }
.exam-main { min-width:0; }
.exam-paper-title { text-align:center; font-size:16px; font-weight:700; color:#1e293b; padding:4px 0 14px; border-bottom:1px solid #e2e8f0; margin-bottom:14px; }
.exam-scroll { max-height:calc(100vh - 170px); overflow-y:auto; padding-right:8px; }
.exam-question { background:#fff; border:0; border-bottom:1px dashed #e2e8f0; border-radius:0; padding:0 0 20px; margin-bottom:20px; box-shadow:none; }
.exam-q-title { font-size:15px; font-weight:700; color:#0f172a; line-height:1.7; margin-bottom:12px; }
.exam-options { display:flex; flex-direction:column; gap:8px; }
.exam-option { display:flex; align-items:center; gap:10px; border:1px solid #e2e8f0; border-radius:5px; padding:10px 12px; font-size:14px; color:#334155; cursor:pointer; background:#fff; line-height:1.6; }
.exam-option:hover { border-color:#93c5fd; }
.exam-option.selected { border-color:#3b82f6; background:#eff6ff; color:#1d4ed8; }
.exam-option input { width:auto; margin:0; accent-color:#2563eb; }
.exam-option .opt-key { color:#64748b; font-weight:600; }
.exam-option.selected .opt-key { color:#2563eb; }
.exam-textarea { width:100%; border:1px solid #e2e8f0; border-radius:5px; padding:10px; font:inherit; }
.exam-sheet-type { font-weight:700; font-size:13px; color:#475569; margin:4px 0 10px; }
.exam-sheet-tip { font-size:12px; color:#94a3b8; margin-top:12px; text-align:center; }
.exam-qindex { font-size:14px; font-weight:700; color:#0f172a; margin-bottom:12px; }
.exam-card-title { font-size:15px; margin:0 0 14px !important; color:#1e293b; }
.exam-progress-head { display:flex; justify-content:space-between; font-size:13px; color:#64748b; margin-bottom:8px; }
.exam-progress-head b { color:#0f766e; }
.exam-progress { height:7px; background:#e2e8f0; border-radius:99px; overflow:hidden; margin-bottom:16px; }
.exam-progress i { display:block; height:100%; background:#16a34a; border-radius:99px; }
.exam-progress-pct { text-align:right; font-size:12px; color:#64748b; margin:-10px 0 12px; }
.exam-legend { display:flex; flex-wrap:wrap; gap:10px; font-size:12px; color:#64748b; margin-bottom:14px; }
.exam-legend span { display:inline-flex; align-items:center; gap:5px; }
.exam-right .sheet-grid { max-width:none; }
.exam-right .sheet-cell { height:34px; font-size:13px; }
.lg-doubt { background:#f59e0b; }
.sheet-cell.current { border-color:#f59e0b !important; box-shadow:0 0 0 2px rgba(245,158,11,.22); }
.sheet-cell.done.current, .sheet-cell.doubt.current, .sheet-cell.todo.current { color:#fff; }
.sheet-cell.doubt { background:#f59e0b; color:#fff; border-color:#f59e0b; }
.sheet-cell.doubt:hover { filter:brightness(1.08); }
/* ===== 工作台：云资源运行状态 ===== */
.cloud-card { padding:20px 22px; }
.cloud-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:18px; }
.cloud-head h3 { margin:0 0 4px; }
.cloud-head .muted { margin:0; font-size:12px; }
.cloud-actions { display:flex; gap:8px; flex-wrap:wrap; }
.inline-check { display:inline-flex; align-items:center; gap:8px; }
.inline-check input { width:auto; margin:0; }
.cloud-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.cloud-panel { border:1px solid #e2e8f0; border-radius:8px; padding:16px 18px; background:#fbfdff; min-width:0; }
.cloud-panel-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.cloud-ico { width:38px; height:38px; border-radius:8px; background:#eff6ff; display:flex; align-items:center; justify-content:center; font-size:20px; }
.cloud-title { display:flex; flex-direction:column; min-width:0; flex:1; }
.cloud-title b { font-size:15px; color:#1e293b; }
.cloud-title small { font-size:12px; color:#64748b; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cloud-status { padding:3px 10px; border-radius:99px; font-size:12px; font-weight:600; }
.cloud-status.ok { background:#dcfce7; color:#15803d; }
.cloud-status.partial { background:#fef3c7; color:#b45309; }
.cloud-status.error { background:#fee2e2; color:#b91c1c; }
.cloud-status.unconfigured { background:#f1f5f9; color:#64748b; }
.cloud-meta { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:12px; color:#64748b; margin-bottom:14px; }
.cloud-meta span { background:#fff; border:1px solid #e2e8f0; border-radius:4px; padding:3px 8px; }
.metric-row { margin-bottom:11px; }
.metric-row:last-child { margin-bottom:0; }
.metric-top { display:flex; align-items:center; justify-content:space-between; font-size:13px; color:#475569; margin-bottom:5px; }
.metric-top b { color:#0f172a; font-variant-numeric:tabular-nums; }
.metric-top b.warn { color:#d97706; }
.metric-top b.danger { color:#dc2626; }
.metric-bar { height:6px; background:#e2e8f0; border-radius:99px; overflow:hidden; }
.metric-bar i { display:block; height:100%; background:#2563eb; border-radius:99px; }
.metric-bar i.warn { background:#f59e0b; }
.metric-bar i.danger { background:#dc2626; }
.metric-row.plain .metric-top { margin-bottom:0; padding:6px 0; border-bottom:1px dashed #e2e8f0; }
.cloud-empty { padding:22px; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:8px; text-align:center; }
.cloud-empty p { margin:8px 0 16px; }
.cloud-empty-small { font-size:13px; color:#94a3b8; padding:18px 0; text-align:center; }
.cloud-error { background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; border-radius:6px; padding:10px 14px; font-size:13px; margin-bottom:14px; }
.service-card { padding:20px 22px; }
.service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.service-panel { border:1px solid #e2e8f0; border-radius:8px; padding:16px 18px; background:#fbfdff; min-width:0; }
.service-label { font-size:14px; font-weight:600; color:#475569; margin-bottom:10px; }
.service-date { font-size:26px; font-weight:700; color:#0f172a; letter-spacing:.5px; line-height:1.4; }
.service-days { font-size:14px; font-weight:600; color:#059669; margin:4px 0 8px; }
.service-days.warn { color:#d97706; }
.service-days.danger { color:#dc2626; }
.service-source { font-size:12px; color:#94a3b8; margin-top:8px; }
.sms-numbers { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13px; color:#475569; margin:10px 0 12px; }
.sms-numbers b { display:block; font-size:20px; color:#0f172a; line-height:1.5; }
.sms-numbers b.danger { color:#dc2626; }
/* 云服务器 + 云数据库合并面板 */
.service-expiry-row { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; padding:6px 0; border-bottom:1px dashed #e2e8f0; }
.service-expiry-row:last-of-type { border-bottom:0; }
.expiry-name { min-width:78px; color:#475569; font-weight:600; font-size:13px; }
.service-ai .sms-numbers span { min-width:130px; }
@media(max-width:980px){
  .cloud-grid { grid-template-columns:1fr; }
  .service-grid { grid-template-columns:1fr; }
}
@media(max-width:700px){
  .exam-layout { grid-template-columns:1fr; }
  .exam-left { position:static; }
  .exam-scroll { max-height:none; }
}
/* 学生端练习页表格：更宽松的行距 */
.practice-table th { padding:14px 14px; font-size:13px; }
.practice-table td { padding:13px 14px; font-size:13px; line-height:1.8; }
.practice-table.table-sm th, .practice-table.table-sm td { padding:13px 14px; }
.wrong-options { display:flex; flex-direction:column; gap:4px; min-width:280px; color:#334155; }
.wrong-options div { white-space:pre-wrap; word-break:break-word; }
.wrong-options b { display:inline-block; min-width:20px; color:#1d4ed8; }
@media(max-width:520px){
  .sheet-grid { grid-template-columns:repeat(5, 1fr); gap:6px; }
  .sheet-cell { height:32px; font-size:13px; }
}
@media(max-width:800px){
  .form-grid-2, .form-grid-3 { grid-template-columns:1fr; }
  .practice-toolbar { grid-template-columns:1fr 1fr; }
  .cell-preview { max-width:160px; }
}
@media(max-width:520px){
  .practice-toolbar { grid-template-columns:1fr; }
  .practice-header { font-size:13px; }
  .question-card .stem { font-size:16px; }
  .option-item { padding:10px; }
  .filter-form input, .filter-form select { max-width:100%; width:100%; }
  .start-card .btn-primary, .start-card .btn-ghost { width:100%; }
}

/* 个人工作台设置 */
.dash-list { display:flex; flex-direction:column; gap:8px; max-width:680px; }
.dash-item { display:flex; align-items:center; gap:12px; border:1px solid #e2e8f0; border-radius:6px; padding:9px 12px; background:#f8fafc; }
.dash-item.checked { background:#fff; border-color:#bfdbfe; }
.dash-label { flex:1; cursor:pointer; font-size:14px; color:#334155; }
.dash-order { width:24px; text-align:center; color:#94a3b8; font-size:12px; }
.dash-move { display:flex; gap:4px; }
.dash-quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.dash-quick-item { display:flex; flex-direction:column; align-items:flex-start; gap:3px; border:1px solid #e2e8f0; border-radius:6px; padding:10px 12px; cursor:pointer; background:#f8fafc; font-size:13px; }
.dash-quick-item.checked { background:#eff6ff; border-color:#bfdbfe; }
.dash-quick-item small { color:#94a3b8; font-size:11px; }
@media(max-width:900px){ .dash-quick-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .dash-quick-grid { grid-template-columns:1fr; } }

/* 云资源 + 服务期限：5 个面板排成一行（2+3 等宽） */
.dash-cloud-service { display:grid; grid-template-columns:2fr 3fr; gap:14px; align-items:stretch; }
.dash-cloud-service > .card { margin:0; min-width:0; display:flex; flex-direction:column; }
.dash-cloud-service .cloud-card,
.dash-cloud-service .service-card { padding:14px 16px; }
.dash-cloud-service .cloud-head { margin-bottom:12px; }
.dash-cloud-service .cloud-grid,
.dash-cloud-service .service-grid { gap:10px; flex:1; align-items:stretch; }
.dash-cloud-service .cloud-panel,
.dash-cloud-service .service-panel { padding:12px 14px; display:flex; flex-direction:column; }
.dash-cloud-service .service-panel > .service-source { margin-top:auto; padding-top:8px; }
.dash-cloud-service .service-expiry .service-date { font-size:18px; }
.dash-cloud-service .service-expiry .service-days { margin:0 0 2px; }
.dash-cloud-service .service-expiry-row { padding:4px 0; }
.dash-cloud-service .metric-row { margin-bottom:8px; }
@media(max-width:900px){ .dash-cloud-service { grid-template-columns:1fr; } }

/* 一级菜单顺序设置 */
.menu-sort-list { list-style:none; margin:12px 0 0; padding:0; max-width:520px; }
.menu-sort-list li { display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:8px 12px; margin-bottom:6px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.menu-sort-list .msi-name { font-size:13px; color:#334155; font-weight:600; }
.menu-sort-list .msi-btns { display:flex; gap:6px; }
.menu-sort-list .msi-btns button { border:1px solid #cbd5e1; background:#f8fafc; color:#334155;
  border-radius:6px; padding:4px 10px; font-size:12px; cursor:pointer; }
.menu-sort-list .msi-btns button:hover { background:#eef2ff; border-color:#93b4ec; }
