:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fff7ed;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warn: #d97706;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --dark: #0f172a;
  --dark2: #1e293b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.app { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.nav { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); background: var(--card); position: sticky; top: 0; z-index: 20; }
.nav .brand { font-size: 20px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav .brand .logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #fb923c); display: grid; place-items: center; color: #fff; font-size: 18px; }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--muted); font-size: 14px; }
.nav a.link:hover { color: var(--primary); }

/* 通用卡片/按钮 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.btn { border: none; border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; transition: .15s; background: var(--primary); color: #fff; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: var(--primary-light); color: var(--primary); }
.btn.ghost:hover { background: #ffedd5; }
.btn.ghost.active { background: var(--primary); color: #fff; }
.btn.light { background: #e2e8f0; color: var(--text); }
.btn.light:hover { background: #cbd5e1; }
.btn.success { background: var(--success); }
.btn.success:hover { background: #15803d; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.grid { display: grid; gap: 16px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px){ .cols-3,.cols-2 { grid-template-columns: 1fr; } }

/* 首页 */
.hero { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; border-radius: 16px; padding: 36px 28px; margin: 22px 0; }
.hero h1 { font-size: 26px; margin-bottom: 8px; }
.hero p { opacity: .92; }
.section-title { font-size: 18px; font-weight: 700; margin: 26px 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }

.cat-card { cursor: pointer; transition: .15s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.cat-card .ic { font-size: 26px; }
.cat-card h3 { font-size: 16px; margin: 8px 0 4px; }
.cat-card .sub { font-size: 12px; color: var(--muted); }

.bank-card { display: flex; flex-direction: column; gap: 10px; }
.bank-card h3 { font-size: 16px; }
.bank-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.mode-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.mode-row .btn { font-size: 13px; padding: 8px 4px; }
@media (max-width: 760px){ .mode-row { grid-template-columns: repeat(2, 1fr); } }

/* 题库筛选条 */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 答题区 */
.session-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 15px; }
.timer.warn { color: var(--danger); border-color: var(--danger); }
.progress { flex: 1; min-width: 160px; }
.bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); transition: .2s; }

.q-card { margin-bottom: 18px; }
.q-stem { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.q-type { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.opt { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: .12s; }
.opt:hover { border-color: var(--primary); background: var(--primary-light); }
.opt.sel { border-color: var(--primary); background: var(--primary-light); }
.opt.correct { border-color: var(--success); background: var(--success-light); }
.opt.wrong { border-color: var(--danger); background: var(--danger-light); }
.opt .key { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #e2e8f0; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.opt.sel .key, .opt.correct .key, .opt.wrong .key { background: var(--primary); color: #fff; }
.opt.correct .key { background: var(--success); }
.opt.wrong .key { background: var(--danger); }
.opt .txt { flex: 1; }

.analysis { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f8fafc; border: 1px dashed var(--border); }
.analysis .h { font-weight: 700; color: var(--primary); font-size: 13px; margin-bottom: 6px; }
.analysis.ok { border-color: var(--success); background: var(--success-light); }
.analysis.no { border-color: var(--danger); background: var(--danger-light); }

.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* 结果页 */
.result-hero { text-align: center; padding: 30px; }
.score-circle { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: conic-gradient(var(--success) calc(var(--p)*1%), #e2e8f0 0); position: relative; }
.score-circle > div { width: 120px; height: 120px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.score-num { font-size: 34px; font-weight: 800; color: var(--primary); }
.stat-row { display: flex; justify-content: center; gap: 28px; margin: 18px 0; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .n { font-size: 24px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); }

.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-item .badge { font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.badge.ok { background: var(--success-light); color: var(--success); }
.badge.no { background: var(--danger-light); color: var(--danger); }
.badge.warn { background: var(--warn); color: #fff; }

/* 分页 */
.pager { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:16px; }
.pager button { padding:6px 14px; font-size:13px; }

/* 大弹窗（必须用 .modal.modal-wide 提高特异性，否则被下方 .modal 覆盖宽度） */
.modal.modal-wide { width: 920px; max-width: 96vw; }

/* 学员详情 */
.student-detail { }
.sd-header { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.sd-info { display:flex; gap:16px; align-items:center; min-width:0; }
.sd-info h3 { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.sd-meta { display:flex; gap:8px 20px; flex-wrap:wrap; font-size:13px; color: var(--muted); }
.sd-actions { display:flex; gap:8px; flex-wrap:wrap; flex:0 0 auto; }
.avatar.lg { width:64px; height:64px; border-radius:50%; background:var(--primary); color:#fff; display:grid; place-items:center; font-size:28px; font-weight:700; flex:none; }

/* 学员详情内 KPI：固定 3 列，避免窄屏下文字被挤压竖排 */
.student-detail .kpi2 { grid-template-columns: repeat(3, 1fr); }
.student-detail .kpi2 .card { padding:14px 10px; }
.student-detail .kpi2 .n { font-size:22px; }

.detail-tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:16px; flex-wrap:wrap; }
.detail-tabs span { padding:10px 16px; font-size:14px; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; }
.detail-tabs span.active { color:var(--primary); border-color:var(--primary); font-weight:600; }

.sd-body { max-height: calc(100vh - 280px); overflow-y: auto; }

.bank-select-list { max-height:360px; overflow-y:auto; border:1px solid var(--border); border-radius:10px; padding:8px; }
.bank-select-item { display:flex; gap:10px; align-items:flex-start; padding:10px; border-radius:8px; cursor:pointer; }
.bank-select-item:hover { background:var(--primary-light); }
.bank-select-item input { margin-top:4px; flex:none; }
.bank-select-item > div { flex:1; min-width:0; }
.bank-select-item > div > div:first-child { word-break:break-word; line-height:1.4; }

/* 空态 */
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* 管理后台 */
.admin-wrap { display: flex; align-items: flex-start; gap: 0; min-height: 100vh; }
.login-box { max-width: 360px; margin: 80px auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }

/* 导入模式切换 / 增量同步报告 */
.seg { display: inline-flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.seg button { border: none; background: transparent; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sync-report { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fafcff; }
.sync-report .sr-head { font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.sync-report .sr-sum { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sync-report .tag { background: #eef2f7; border-radius: 20px; padding: 3px 12px; font-size: 13px; }
.sync-report .tag.ok { background: #dcfce7; color: #166534; }
.sync-report .tag.warn { background: #fef9c3; color: #854d0e; }
.sync-report .tag.err { background: #fee2e2; color: #991b1b; }
.sync-report .tbl { margin-top: 6px; }
.warn-tip { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 10px 0; }
.file-list { list-style: none; padding: 0; margin: 8px 0 14px; }
.file-list li { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.quick-expire { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-expire .btn { padding: 5px 12px; font-size: 12px; border-radius: 6px; }

/* 侧边栏 */
.sidebar { width: 220px; flex: 0 0 220px; background: #1f2937; color: #cbd5e1; min-height: 100vh; padding: 18px 12px; position: sticky; top: 0; }
.sidebar .brand { font-size: 16px; font-weight: 800; color: #fff; padding: 0 8px 16px; border-bottom: 1px solid #374151; margin-bottom: 12px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar .nav-item { display: block; padding: 11px 12px; border-radius: 8px; color: #cbd5e1; font-size: 14px; cursor: pointer; }
.sidebar .nav-item:hover { background: #374151; color: #fff; }
.sidebar .nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar .nav-group { margin-top: 6px; }
.sidebar .nav-group-title { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #94a3b8; cursor: pointer; }
.sidebar .nav-group-title:hover { color: #fff; }
.sidebar .nav-group-title .arrow { transition: transform .15s; font-size: 10px; }
.sidebar .nav-group-title .arrow.open { transform: rotate(90deg); }
.sidebar .nav-sub { display: block; padding: 9px 12px 9px 28px; border-radius: 8px; color: #cbd5e1; font-size: 13px; cursor: pointer; }
.sidebar .nav-sub:hover { background: #374151; color: #fff; }
.sidebar .nav-sub.active { background: var(--primary); color: #fff; font-weight: 600; }

.admin-main { flex: 1; padding: 20px 26px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.admin-head h2 { font-size: 20px; }
.admin-head-right { display: flex; align-items: center; gap: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-grid .card { text-align: center; }
.kpi-grid .n { font-size: 26px; font-weight: 800; color: var(--primary); }
.kpi-grid .n.ok { color: var(--success); }
.kpi-grid .n.warn { color: var(--warn); }
.kpi-grid .l { color: var(--muted); font-size: 13px; }

.price-input { width: 90px !important; padding: 6px 8px !important; }
.search-result { border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; max-height: 180px; overflow: auto; }
.search-item { padding: 8px 10px; cursor: pointer; font-size: 13px; }
.search-item:hover { background: var(--primary-light); }
.trend svg text { font-family: system-ui, sans-serif; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
table.tbl th { color: var(--muted); font-weight: 600; }
.upload-zone { border: 2px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 400; box-shadow: var(--shadow); }
.toast.ok { background: var(--success); }
.toast.err { background: var(--danger); }

/* 学员账户 */
.btn-sm { padding: 6px 12px; font-size: 13px; }
.nav-user { font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.nav .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color:#fff; display:grid; place-items:center; font-size:13px; }

/* 登录/注册弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; z-index: 200; overflow-y: auto; padding: 24px; }
.modal { width: 340px; max-width: 92vw; max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.modal h3 { margin-bottom: 14px; }
.modal .tabs { display: flex; gap: 18px; margin-bottom: 14px; }
.modal .tabs span { cursor: pointer; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.modal .tabs span.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

/* 学习中心 */
.sc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.sc-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; height: fit-content; position: sticky; top: 76px; }
.sc-side a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; margin-bottom: 4px; cursor: pointer; }
.sc-side a.active, .sc-side a:hover { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sc-card .q-card { margin-bottom: 14px; }
.fav-btn { font-size: 13px; padding: 5px 10px; }
.kpi2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 760px){ .sc-grid { grid-template-columns: 1fr; } .kpi2 { grid-template-columns: repeat(2,1fr); } .modal-mask{ padding:16px; } }
.pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; background: var(--primary-light); color: var(--primary); }
.pill.warn { background: var(--danger-light); color: var(--danger); }
.bar-mini { height: 8px; background:#e2e8f0; border-radius:999px; overflow:hidden; flex:1; }
.bar-mini > i { display:block; height:100%; background: var(--primary); }

/* ========== Landing page (cszhusheng.com style) ========== */

/* 顶部公告条 */
.topbar { background: var(--dark2); color: #cbd5e1; font-size: 13px; padding: 8px 0; }
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar a { color: #f97316; }
.topbar .close { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 16px; line-height: 1; }

/* 白色 Header */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.header .inner { max-width: 1200px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 24px; }
.header .brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--text); }
.header .brand .logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #fb923c); display: grid; place-items: center; color: #fff; font-size: 20px; }
.header .brand span { color: var(--primary); }
.header .search { flex: 1; max-width: 420px; position: relative; }
.header .search input { width: 100%; padding: 10px 16px 10px 38px; border: 2px solid var(--primary); border-radius: 999px; font-size: 14px; outline: none; }
.header .search::before { content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.header .nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text); }
.header .nav-links a { color: var(--text); }
.header .nav-links a:hover { color: var(--primary); }
.header .nav-links .btn-sm { padding: 8px 16px; }
.header .nav-user { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* 主导航 */
.main-nav { background: var(--dark2); color: #fff; }
.main-nav .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 32px; font-size: 14px; }
.main-nav a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav .home-link { background: var(--primary); color: #fff; padding: 12px 18px; margin-left: -16px; }
.main-nav .home-link:hover { background: var(--primary-dark); color: #fff; }

/* 页面容器 */
.land { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Hero banner */
.hero-land { background: linear-gradient(120deg, #0f172a 0%, #1e293b 55%, #334155 100%); color: #fff; border-radius: 20px; margin: 24px auto; max-width: 1200px; position: relative; overflow: hidden; display: flex; align-items: stretch; min-height: 360px; }
.hero-land .text { flex: 1; padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-land h1 { font-size: 38px; line-height: 1.3; margin-bottom: 16px; font-weight: 800; }
.hero-land h1 em { color: var(--primary); font-style: normal; }
.hero-land p { color: #cbd5e1; font-size: 16px; margin-bottom: 26px; max-width: 520px; line-height: 1.7; }
.hero-land .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-land .btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 999px; }
.hero-land .btn-orange { background: var(--primary); color: #fff; border: none; font-weight: 700; }
.hero-land .btn-orange:hover { background: var(--primary-dark); }
.hero-land .btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.hero-land .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-land .stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-land .stats .s .n { font-size: 24px; font-weight: 800; color: var(--primary); }
.hero-land .stats .s .l { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.hero-land .visual { flex: 0 0 420px; position: relative; display: grid; place-items: center; padding: 24px; }
.hero-land .visual svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero-land .visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,23,43,.25)); pointer-events: none; }

/* Section common */
.section { margin: 40px auto; }
.section-hd { text-align: center; margin: 46px 0 26px; }
.section-hd h2 { font-size: 27px; font-weight: 800; display: inline-block; position: relative; padding-bottom: 14px; color: var(--text); }
.section-hd h2::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 46px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), #fbbf24); }
.section-hd .sub { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* 首页：在线题库等区块与 Hero、分类卡片区统一左对齐 */
#qbank .section-hd,
#qbank .section-hd h2,
#qbank .section-hd .sub { text-align: left; }
#qbank .section-hd h2 { display: block; }
#qbank .section-hd h2::after { left: 0; transform: none; }
.more-center { text-align: center; margin-top: 24px; }
.more-center a, .more-center button { display: inline-block; padding: 10px 28px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 14px; background: #fff; cursor: pointer; transition: .15s; }
.more-center a:hover, .more-center button:hover { border-color: var(--primary); color: var(--primary); }

/* 精品好课 / 课程卡片 */
.course-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.course-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: .15s; cursor: pointer; display: flex; flex-direction: column; width: 230px; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.course-card .thumb { height: 140px; overflow: hidden; position: relative; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.course-card:hover .thumb img { transform: scale(1.06); }
.course-card .body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.course-card h4 { font-size: 15px; line-height: 1.4; height: 42px; overflow: hidden; margin-bottom: 8px; }
.course-card .meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.course-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.course-card .price { color: var(--danger); font-size: 16px; font-weight: 800; }
.course-card .price span { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.course-card .btn-mini { padding: 6px 14px; font-size: 12px; border-radius: 6px; background: var(--primary); color: #fff; border: none; }
.course-card .btn-mini:hover { background: var(--primary-dark); }

/* 在线题库 */
/* 「全部」按大类分栏 */
.cat-group { margin: 30px 0; }
.cat-group:first-of-type { margin-top: 18px; }
.cat-group-hd { font-size: 21px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.cat-group-hd .cat-emoji { font-size: 22px; line-height: 1; }
.cat-group-hd::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 12px; }
.qbank-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.qbank-bar .chip { border-radius: 999px; padding: 7px 16px; font-size: 13px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; }
.qbank-bar .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.qbank-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
.qbank-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0; display: flex; overflow: hidden; transition: .15s; width: 360px; }
.qbank-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.qbank-card .pic { flex: 0 0 130px; overflow: hidden; }
.qbank-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.qbank-card .info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qbank-card h4 { font-size: 16px; }
.qbank-card .meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.qbank-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.qbank-card .tag { background: #f1f5f9; color: var(--text); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.qbank-card .mode-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 2px; }
.qbank-card .mode-row .btn { padding: 6px 4px; font-size: 12px; }

/* 直播 + 资讯 两栏 */
.split-row { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.live-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: .15s; }
.live-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.live-card .thumb { height: 150px; position: relative; overflow: hidden; }
.live-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.live-card:hover .thumb img { transform: scale(1.05); }
.live-card .tag { position: absolute; top: 8px; left: 8px; background: var(--primary); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.live-card .time { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.live-card .body { padding: 12px; }
.live-card h4 { font-size: 14px; margin-bottom: 6px; line-height: 1.4; }
.live-card .teacher { font-size: 12px; color: var(--muted); }

.news-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.news-list li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; transition: .15s; }
.news-list li:hover { background: #f8fafc; }
.news-list .num { flex: 0 0 22px; height: 22px; border-radius: 6px; background: #f1f5f9; color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.news-list .num.hot { background: var(--primary); color: #fff; }
.news-list .pic { flex: 0 0 64px; height: 48px; border-radius: 8px; overflow: hidden; }
.news-list .pic img { width: 100%; height: 100%; object-fit: cover; }
.news-list a { flex: 1; font-size: 14px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list a:hover { color: var(--primary); }
.news-list { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.news-list li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.news-list li:last-child { border-bottom: none; }
.news-list .num { width: 22px; height: 22px; border-radius: 4px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.news-list .num.hot { background: var(--danger); color: #fff; }
.news-list a { color: var(--text); }
.news-list a:hover { color: var(--primary); }

/* 项目集锦 */
.project-zone { background: var(--dark2); border-radius: 16px; padding: 28px; color: #fff; }
.project-zone .section-hd h2::before { background: var(--primary); }
.project-zone .section-hd h2 { color: #fff; }
.project-zone .section-hd .more { color: #94a3b8; }
.project-zone .layout { display: grid; grid-template-columns: 160px 1fr; gap: 20px; }
.project-zone .side-tabs { display: flex; flex-direction: column; gap: 4px; }
.project-zone .side-tabs span { padding: 11px 14px; border-radius: 8px; font-size: 14px; color: #cbd5e1; cursor: pointer; }
.project-zone .side-tabs span:hover { background: #334155; color: #fff; }
.project-zone .side-tabs span.active { background: var(--primary); color: #fff; font-weight: 700; }
.project-zone .sub-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.project-zone .sub-tabs span { padding: 6px 14px; border-radius: 999px; background: #334155; color: #cbd5e1; font-size: 13px; cursor: pointer; }
.project-zone .sub-tabs span.active { background: var(--primary); color: #fff; }
.project-zone .pj-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.project-zone .pj-card { background: #fff; color: var(--text); border-radius: 12px; overflow: hidden; transition: .15s; width: 200px; }
.project-zone .pj-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.project-zone .pj-card .pic { height: 100px; overflow: hidden; }
.project-zone .pj-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.project-zone .pj-card:hover .pic img { transform: scale(1.05); }
.project-zone .pj-card .inner { padding: 12px; }
.project-zone .pj-card h4 { font-size: 14px; margin-bottom: 6px; line-height: 1.4; height: 38px; overflow: hidden; }
.project-zone .pj-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.project-zone .pj-card .btn { padding: 6px 12px; font-size: 12px; }

/* 师资、优势、好评 */
.teacher-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.teacher-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; text-align: center; transition: .15s; width: 200px; }
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.teacher-card .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; background: #e2e8f0; border: 3px solid var(--primary-light); }
.teacher-card h4 { font-size: 16px; margin-bottom: 4px; }
.teacher-card .title { color: var(--primary); font-size: 13px; margin-bottom: 8px; }
.teacher-card .desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.adv-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 16px; text-align: center; transition: .15s; }
.adv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.adv-card .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 22px; margin: 0 auto 12px; }
.adv-card h4 { font-size: 15px; margin-bottom: 6px; }
.adv-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }

.review-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; transition: .15s; width: 280px; }
.review-card:hover { box-shadow: var(--shadow); }
.review-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-card .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.review-card .name { font-weight: 700; }
.review-card .stars { color: #f59e0b; font-size: 14px; }
.review-card .body { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* 深色 Footer */
.footer-dark { background: var(--dark); color: #94a3b8; padding: 44px 0 24px; margin-top: 50px; }
.footer-dark .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer-dark .top { display: grid; grid-template-columns: 280px 1fr 240px; gap: 40px; margin-bottom: 30px; }
.footer-dark .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-dark .brand .logo { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #fb923c); display: grid; place-items: center; color: #fff; }
.footer-dark .intro { font-size: 13px; line-height: 1.7; }
.footer-dark .links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-dark .col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-dark .col a { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 8px; }
.footer-dark .col a:hover { color: #fff; }
.footer-dark .qr { width: 100px; height: 100px; background: #fff; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.footer-dark .bottom { border-top: 1px solid #334155; padding-top: 20px; text-align: center; font-size: 13px; }

/* 学习中心新主题兼容 */
.sc-header { background: #fff; border-bottom: 1px solid var(--border); margin-bottom: 20px; padding: 14px 0; }
.sc-header .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }

/* Responsive landing */
@media (max-width: 1024px){
  .hero-land { flex-direction: column; }
  .hero-land .visual { flex: none; height: auto; padding: 16px 0; }
  .hero-land .text { padding: 40px 32px; }
  .split-row { grid-template-columns: 1fr; }
  .project-zone .layout { grid-template-columns: 120px 1fr; }
}
@media (max-width: 760px){
  .live-grid { grid-template-columns: 1fr; }
  .qbank-card { flex-direction: column; width: 100%; }
  .qbank-card .pic { flex: none; height: 130px; }
  .qbank-card .mode-row { grid-template-columns: repeat(4, 1fr); }
  .course-card { width: 100%; }
  .teacher-card { width: 100%; }
  .review-card { width: 100%; }
  .project-zone .pj-card { width: 100%; }
  .split-row { grid-template-columns: 1fr; }
  .footer-dark .top { grid-template-columns: 1fr; }
  .hero-land h1 { font-size: 28px; }
  .hero-land .text { padding: 32px 22px; }
  .header .inner { flex-wrap: wrap; }
  .header .search { order: 3; max-width: 100%; width: 100%; margin-top: 10px; }
  .main-nav .inner { overflow-x: auto; gap: 20px; }
}

/* ========== 个人中心 Personal Center ========== */
.pc-wrap { display: flex; gap: 20px; align-items: flex-start; max-width: 1200px; margin: 0 auto; padding: 24px 16px; min-height: calc(100vh - 200px); }
.pc-sidebar { width: 240px; flex: none; position: sticky; top: 80px; }

/* 顶部 5 列累计统计 banner */
.stats-banner { background: linear-gradient(135deg,#3b82f6,#1e40af); color: #fff; border-radius: 14px; padding: 22px 26px; margin-bottom: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; box-shadow: 0 8px 24px rgba(59,130,246,.18); }
.stats-banner .sb-item { text-align: center; padding: 4px 8px; }
.stats-banner .sb-n { font-size: 28px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats-banner .sb-l { font-size: 13px; opacity: .85; margin-top: 4px; }
@media (max-width: 760px){
  .stats-banner { grid-template-columns: repeat(2, 1fr); padding: 16px; }
}

/* 我的题库 - 科目 tabs */
.subj-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.subj-tabs .chip { padding: 6px 14px; border-radius: 999px; background: #f1f5f9; color: var(--muted); font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: .12s; }
.subj-tabs .chip:hover { color: var(--primary); }
.subj-tabs .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 我的题库 - 段卡片 */
.seg-list { display: flex; flex-direction: column; gap: 12px; }
.seg-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: .12s; }
.seg-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,.08); }
.seg-card .seg-info { flex: 1; min-width: 0; }
.seg-card .seg-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.seg-card .seg-meta { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.seg-card .seg-meta b { color: var(--primary); }
.seg-card .seg-actions { display: flex; gap: 8px; flex: none; }
.seg-card .seg-actions .btn { padding: 6px 14px; font-size: 13px; }
@media (max-width: 760px){
  .seg-card { flex-direction: column; align-items: stretch; }
  .seg-card .seg-actions { justify-content: stretch; }
  .seg-card .seg-actions .btn { flex: 1; }
}
.btn.sm { padding: 5px 12px; font-size: 13px; }

/* ========== 真实机考布局（机考模式 mock 专用） ========== */
.mock-room-top { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr; align-items: center; background: linear-gradient(180deg,#3b82f6,#1e40af); color: #fff; border-radius: 10px 10px 0 0; padding: 12px 18px; box-shadow: 0 4px 12px rgba(59,130,246,.25); }
.mock-room-top .mrt-left { display: flex; align-items: center; gap: 14px; }
.mock-room-top .mrt-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.mock-room-top .mrt-info { font-size: 12px; line-height: 1.7; }
.mock-room-top .mrt-name { font-size: 14px; font-weight: 700; }
.mock-room-top .mrt-info .mrt-sub { opacity: .92; }
.mock-room-top .mrt-mid { text-align: center; }
.mock-room-top .mrt-title { font-size: 18px; font-weight: 700; }
.mock-room-top .mrt-mid .mrt-sub { font-size: 12px; opacity: .8; }
.mock-room-top .mrt-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.mock-room-top .mrt-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 8px; }

.mock-room-body { display: grid; grid-template-columns: 360px 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; min-height: 600px; }
.mock-room-card { background: #f8fafc; border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; min-width: 0; max-height: calc(100vh - 200px); }
.mock-room-card .mrc-head { font-weight: 700; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mock-room-card .mrc-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; flex: 1; align-content: flex-start; }
.mock-room-card .mrc-item { aspect-ratio: 1/1; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; transition: .1s; font-weight: 500; color: var(--muted); padding: 0; min-height: 24px; }
.mock-room-card .mrc-item.todo { background: #fde2e2; border-color: #fca5a5; color: #b91c1c; }     /* 未答：淡红底 */
.mock-room-card .mrc-item.unjudged { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }    /* 已答（机考未判）：蓝底白字 */
.mock-room-card .mrc-item.marked { background: #fde68a; border-color: #facc15; color: #92400e; }    /* 标记：黄底 */
.mock-room-card .mrc-item.marked-unjudged { background: #1d4ed8; border-color: #facc15; color: #fde68a; box-shadow: inset 0 0 0 2px #facc15; }  /* 已答+标记：蓝底黄边 */
.mock-room-card .mrc-item.current { outline: 2px solid #2563eb; outline-offset: 1px; z-index: 1; }
.mock-room-card .mrc-item:hover { filter: brightness(1.05); }
.mock-room-card .mrc-tip { margin-top: 14px; padding: 10px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; font-size: 12px; line-height: 1.7; color: #7c2d12; }
.mock-room-card .mrc-tip b { color: #b45309; }

.mock-room-main { background: #fff; padding: 24px 28px; }
.mock-room-main .mrm-pane { max-width: 760px; }
.mock-room-main .mrm-head { background: linear-gradient(90deg,#3b82f6,#1e40af); color: #fff; padding: 8px 14px; font-size: 13px; border-radius: 6px; margin-bottom: 18px; display: inline-block; }
.mock-room-main .mrm-stem { font-size: 16px; line-height: 1.8; margin-bottom: 16px; font-weight: 500; }
.mock-room-main .opt { padding: 10px 14px; margin: 8px 0; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: .12s; }
.mock-room-main .opt:hover { border-color: var(--primary); }
.mock-room-main .opt.sel { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.mock-room-main .opt .key { display: inline-block; min-width: 22px; }

@media (max-width: 900px){
  .mock-room-top { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .mock-room-top .mrt-left, .mock-room-top .mrt-right { justify-content: center; }
  .mock-room-body { grid-template-columns: 1fr; }
  .mock-room-card { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* 用户信息卡（居中） */
.pc-profile { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 18px; margin-bottom: 14px; text-align: center; }
.pc-profile .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; margin: 0 auto 10px; }
.pc-profile .name { font-weight: 700; line-height: 1.2; }
.pc-profile .role { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 侧边栏菜单（扁平，去掉分组占位） */
.pc-menu { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; margin-bottom: 14px; }
.pc-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; color: var(--text); position: relative; cursor: pointer; border-radius: 9px; transition: .12s; }
.pc-menu a:hover { background: var(--primary-light); color: var(--primary); }
.pc-menu a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.pc-menu a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--primary); border-radius: 0 3px 3px 0; }
.pc-menu a .ic { width: 18px; text-align: center; }
.pc-menu a .pill { margin-left: auto; }

/* 右侧主内容 */
.pc-main { flex: 1; min-width: 0; }
.pc-section-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.pc-section-card .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.pc-section-card .hd h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pc-section-card .hd .sub { color: var(--muted); font-size: 13px; font-weight: 400; }

/* 空态：居中（单信息块，对称美观） */
.pc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 22px; }
.empty-svg { width: 96px; height: 76px; margin: 0 0 14px; }
.pc-empty .body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pc-empty p { color: var(--muted); margin: 0 0 14px; }
.pc-empty p.lead { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.pc-empty .tip { font-size: 12px; color: var(--muted); margin: 0 0 14px; }

/* 日历 */
.pc-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 13px; }
.pc-calendar .th { color: var(--muted); padding: 6px; font-weight: 600; }
.pc-calendar .day { padding: 8px; border-radius: 8px; cursor: pointer; transition: .12s; }
.pc-calendar .day:hover { background: var(--primary-light); }
.pc-calendar .day.today { background: var(--primary); color: #fff; font-weight: 700; }
.pc-calendar .day.other { color: #cbd5e1; }

/* 月切换 */
.month-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.month-switch button { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; }
.month-switch button:hover { border-color: var(--primary); color: var(--primary); }

/* 直播提示 */
.live-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.live-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }

/* 题库进度迷你列表 */
.bank-mini .bm { margin-bottom: 14px; }
.bank-mini .bm-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bank-mini .btn.block { width: 100%; margin-top: 4px; }

/* 欢迎横幅（居中） */
.pc-welcome { display: flex; flex-direction: column; align-items: center; gap: 16px; background: linear-gradient(120deg, #f97316, #fb923c); color: #fff; border-radius: 16px; padding: 28px 26px; margin-bottom: 18px; text-align: center; }
.pc-welcome .wl { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pc-welcome .avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.pc-welcome .hi { font-size: 20px; font-weight: 700; }
.pc-welcome .sub { font-size: 13px; opacity: .92; }
.pc-welcome .wr { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.pc-welcome .stat { text-align: center; min-width: 56px; }
.pc-welcome .stat .n { font-size: 22px; font-weight: 800; line-height: 1.1; }
.pc-welcome .stat .l { font-size: 12px; opacity: .92; margin-top: 2px; }

/* 三栏卡片网格（按内容高度，避免底部空出大片） */
.pc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.pc-grid3 .pc-section-card { margin-bottom: 0; display: flex; flex-direction: column; }

/* 未登录提示 */
.pc-login-prompt { text-align: center; padding: 40px 20px; }
.pc-login-prompt .lock { width: 48px; height: 48px; margin: 0 auto 10px; }

/* 顶栏返回首页链接 */
.header .back-home { color: var(--muted); font-size: 14px; margin-left: 16px; }
.header .back-home:hover { color: var(--primary); }

/* 我的题库卡片 */
.bank-list-title { font-size: 16px; font-weight: 700; margin: 4px 0 14px; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bank-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bank-card .bc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bank-card .bc-name { font-weight: 700; font-size: 15px; }
.bank-card .bc-total { font-size: 12px; color: var(--muted); flex: none; }
.bank-card .bc-sub { font-size: 12px; color: var(--muted); margin-top: -4px; line-height: 1.5; }
.bank-card .bc-bar { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.bank-card .bc-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.bank-card .bc-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.bank-card .bc-meta .warn { color: var(--danger); }
.bank-card .bc-actions { display: flex; gap: 8px; margin-top: 2px; }
.bank-card .bc-actions .btn { flex: 1; }
.bank-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 20px; background: #fff; border: 1px dashed var(--border); border-radius: 14px; }

/* 题目富文本与图片自适应（v-html 渲染 stem_html/analysis_html 时本地化图片正常显示） */
.q-stem img, .analysis img, .mrm-stem img, .q-card img, .opt img, .mrm-pane img {
  max-width: 100%; height: auto; border-radius: 6px; margin: 6px 0; display: inline-block;
}
.q-stem, .analysis, .mrm-stem, .q-card, .mrm-pane { line-height: 1.8; }
.q-stem p, .analysis p, .mrm-stem p, .q-card p, .mrm-pane p { margin: 0 0 8px; }
.q-no { color: var(--primary); font-weight: 700; margin-right: 4px; }

/* ===================== 课程（PC 个人中心 / 课程中心 / 学习页） ===================== */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.course-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.course-card .cc-cover { position: relative; height: 132px; background: linear-gradient(120deg, #0f172a, #334155); display: grid; place-items: center; overflow: hidden; }
.course-card .cc-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-card .cc-cover-ph { font-size: 40px; }
.course-card .cc-type { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #fff; }
.course-card .cc-type.record { background: rgba(15,23,42,.7); }
.course-card .cc-type.live { background: #ef4444; }
.course-card .cc-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card .cc-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.course-card .cc-teacher { font-size: 12px; color: var(--muted); }
.course-card .cc-price { font-size: 15px; font-weight: 800; color: var(--primary-d); }
.course-card .cc-progress { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.course-card .cc-progress .bar { flex: 1; height: 7px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.course-card .cc-progress .bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.course-card .btn { margin-top: auto; }

/* 课程学习页 */
.course-head { display: flex; gap: 20px; align-items: stretch; }
.course-head .ch-cover { position: relative; width: 200px; height: 132px; border-radius: 12px; overflow: hidden; background: linear-gradient(120deg, #0f172a, #334155); display: grid; place-items: center; flex-shrink: 0; }
.course-head .ch-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-head .ch-ph { font-size: 46px; }
.course-head .ch-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.course-head .ch-info h2 { font-size: 22px; }
.course-head .ch-meta { font-size: 13px; color: var(--muted); }
.course-head .ch-intro { font-size: 13px; color: #475569; line-height: 1.6; }
.course-head .ch-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.course-head .ch-progress .bar { flex: 1; height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.course-head .ch-progress .bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.course-head .ch-actions { display: flex; gap: 10px; margin-top: 4px; }

.course-body { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
/* 目录独立滚动：翻到靠后的课时时页面不动，视频始终留在视野内 */
.lesson-list {
  border-right: 1px solid var(--border); padding-right: 16px;
  max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain;
}
.lesson-list .ll-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; position: sticky; top: 0; background: #fff; z-index: 2; }
.lesson { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; transition: .15s; }
.lesson:hover { background: #f8fafc; }
/* 当前课时：左侧橙色条 + 主色文字（原来只有极淡背景，几乎看不出选中） */
.lesson.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 0 var(--primary);
}
.lesson.active .ltt { color: var(--primary-dark); font-weight: 700; }
/* 课时行状态标记：✓ 已学 / ● 当前 / ▶ 有视频 / · 无视频（去掉了原本无意义的序号） */
.lesson .ln { width: 20px; height: 20px; border-radius: 50%; background: #eef2f7; color: #94a3b8; font-size: 11px; line-height: 1; display: grid; place-items: center; flex-shrink: 0; }
.lesson.active .ln { background: var(--primary); color: #fff; }
.lesson.done .ln { background: var(--success); color: #fff; }
.lesson .lt { flex: 1; min-width: 0; }
.lesson .ltt { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson .ltd { font-size: 11px; color: var(--muted); }
.lesson .ldone { font-size: 12px; color: var(--success); flex-shrink: 0; }
.lesson .lplay { font-size: 12px; color: var(--primary); flex-shrink: 0; }
.ll-group + .ll-group { margin-top: 10px; }
.llg-subj { font-size: 13px; font-weight: 800; color: var(--primary); padding: 8px 4px 6px; position: sticky; top: 0; background: #fff; z-index: 1; }
.llg-clsname { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; margin-left: 6px; }
/* 班级标题：点击折叠 / 展开
   字号与「课程目录」标题统一为 14px，并把触控区放大到 42px 高，方便手机上点 */
.llg-clsname.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; border-radius: 8px; padding: 10px; margin-left: 0; min-height: 42px; }
.llg-clsname.toggle:hover { background: #f8fafc; }
/* 折叠按钮：加号 + / 减号 −（不用三角，避免旋转动画看不清状态） */
.llg-clsname.toggle .caret { display: inline-block; font-size: 12px; color: var(--muted); flex: none; }
.llg-clsname.toggle .caret.plus {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cbd5e1;
  display: grid; place-items: center; font-size: 15px; line-height: 1; font-weight: 700;
  color: #64748b; background: #fff;
}
.llg-clsname.toggle .caret.plus.open { border-color: var(--primary); color: #fff; background: var(--primary); }
.llg-clsname.toggle .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llg-clsname.toggle .pg { flex: none; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
/* 班级学习进度条 */
.llg-bar { height: 4px; background: #eef2f7; border-radius: 999px; margin: 0 10px 6px; overflow: hidden; }
.llg-bar i { display: block; height: 100%; background: var(--success); border-radius: 999px; transition: width .3s; }
/* 每个视频单独的学习进度（取代原来那串时长秒数） */
.lp-line { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.lp-track { flex: 1; min-width: 36px; height: 3px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.lp-track i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.lesson.done .lp-track i { background: var(--success); }
.lp-txt { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-dur { flex: none; font-size: 11px; color: #cbd5e1; }
/* 播放区吸顶：滚动目录时视频始终可见 */
.lesson-player { min-width: 0; position: sticky; top: 12px; align-self: start; }
.lesson-player .lp-video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.lesson-player .lp-video iframe { width: 100%; height: 100%; border: 0; }
.lesson-player .lp-ph { aspect-ratio: 16/9; background: #f1f5f9; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.lesson-player .lp-ph .lp-ico { font-size: 44px; }
.lesson-player .lp-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.lesson-player .lp-cur { font-size: 14px; font-weight: 600; }
.lesson-player .lp-ok { color: var(--success); font-weight: 600; }
@media (max-width: 760px){
  .course-head { flex-direction: column; }
  .course-head .ch-cover { width: 100%; height: 160px; }
  .course-body { grid-template-columns: 1fr; }
  /* 窄屏取消目录独立滚动与播放区吸顶（改为目录/播放二选一） */
  .lesson-list {
    border-right: none; border-bottom: 1px solid var(--border);
    padding-right: 0; padding-bottom: 12px; max-height: none; overflow-y: visible;
  }
  .lesson-player { position: static; }
  /* 窄屏：目录 / 播放 二选一 —— 点课时进入播放，再「返回目录」回到总目录 */
  .course-body.play-only .lesson-list { display: none; }
  .course-body:not(.play-only) .lesson-player { display: none; }
}

/* 练习页 */
.q-head { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; flex-wrap: wrap; }
.q-head .timer { margin-left: auto; color: var(--danger); font-variant-numeric: tabular-nums; }
.q-nav { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.q-nav .btn { flex: 1; min-width: 110px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.result-head .r-score { font-size: 40px; font-weight: 800; line-height: 1; }
.result-head .r-total { font-size: 18px; color: var(--muted); font-weight: 600; }
.result-head .r-stat { display: flex; gap: 26px; }
.result-head .r-stat div { text-align: center; }
.result-head .r-stat b { display: block; font-size: 20px; }
.result-head .r-stat span { font-size: 12px; color: var(--muted); }

/* 做题记录卡片 */
.record-card { cursor: pointer; transition: .12s; margin-bottom: 12px; }
.record-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

/* 顶部用户下拉 */
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); min-width: 140px; padding: 6px 0; z-index: 50; }
.user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.user-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.user-dropdown a .ic { width: 16px; text-align: center; }

/* ============ 全真机考：状态条 + 答题卡 ============ */
.mock-statusbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg,#1e3a8a,#2563eb); color: #fff; border-radius: 12px; padding: 12px 18px; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(37,99,235,.25); }
.mock-statusbar .ms-left { display: flex; align-items: center; gap: 12px; }
.mock-statusbar .ms-subj { font-weight: 800; font-size: 16px; }
.mock-statusbar .ms-mode { font-size: 12px; background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 999px; }
.mock-statusbar .ms-right { display: flex; align-items: center; gap: 10px; }
.mock-statusbar .ms-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.mock-statusbar .ms-progress { font-size: 13px; background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 999px; }
.mock-statusbar .btn.ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.mock-statusbar .btn.ghost:hover { background: rgba(255,255,255,.28); }
.mock-statusbar .ms-mid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mock-statusbar .ms-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.mock-statusbar .ms-stat .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.mock-statusbar .ms-stat.ms-ok { color: #bbf7d0; }
.mock-statusbar .ms-stat.ms-ok .dot { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.3); }
.mock-statusbar .ms-stat.ms-no { color: #fecaca; }
.mock-statusbar .ms-stat.ms-no .dot { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.3); }
.mock-statusbar .ms-stat.ms-todo { color: #e2e8f0; }
.mock-statusbar .ms-stat.ms-todo .dot { background: #cbd5e1; box-shadow: 0 0 0 2px rgba(203,213,225,.3); }
.mock-statusbar .ms-stat.ms-unjudged { color: #dbeafe; }
.mock-statusbar .ms-stat.ms-unjudged .dot { background: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.3); }

.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.ghost.marked, .btn.ghost.marked:hover { background: #fbbf24; color: #1f2937; border-color: #fbbf24; }

.mock-card { width: 280px; flex: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; align-self: flex-start; position: sticky; top: 16px; }
.mock-card .mc-head { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.mock-card .mc-stat { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.mock-card .mc-stat b { color: var(--primary); }
.mock-card .mc-stat .mc-flag { color: #d97706; margin-left: 4px; }
.mock-card .mc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mock-card .mc-item { aspect-ratio: 1/1; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: .12s; color: var(--muted); }
.mock-card .mc-item:hover { border-color: var(--primary); }
.mock-card .mc-item.todo { background: #f8fafc; color: var(--muted); }
.mock-card .mc-item.answered { background: var(--success-light); border-color: var(--success); color: var(--success); }
.mock-card .mc-item.correct { background: #dcfce7; border-color: #22c55e; color: #15803d; }
.mock-card .mc-item.wrong { background: #fee2e2; border-color: #ef4444; color: #b91c1c; }
.mock-card .mc-item.unjudged { background: #dbeafe; border-color: #3b82f6; color: #1d4ed8; }
.mock-card .mc-item.marked { background: #fef3c7; border-color: #fbbf24; color: #b45309; }
.mock-card .mc-item.marked-answered { background: #fef3c7; border-color: var(--success); color: #b45309; }
.mock-card .mc-item.marked-correct { background: #ecfdf5; border-color: #22c55e; color: #15803d; box-shadow: inset 0 0 0 2px #fbbf24; }
.mock-card .mc-item.marked-wrong { background: #fef2f2; border-color: #ef4444; color: #b91c1c; box-shadow: inset 0 0 0 2px #fbbf24; }
.mock-card .mc-item.marked-unjudged { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; box-shadow: inset 0 0 0 2px #fbbf24; }
.mock-card .mc-legend { display: flex; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.mock-card .mc-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.mock-card .mc-legend .dot.todo { background: #e2e8f0; }
.mock-card .mc-legend .dot.correct { background: #22c55e; }
.mock-card .mc-legend .dot.wrong { background: #ef4444; }
.mock-card .mc-legend .dot.unjudged { background: #3b82f6; }
.mock-card .mc-legend .dot.answered { background: var(--success); }
.mock-card .mc-legend .dot.marked { background: #fbbf24; }

/* 响应式 */
@media (max-width: 1024px){
  .pc-grid3 { grid-template-columns: repeat(2, 1fr); }
  .pc-welcome .wr { gap: 18px; }
}

/* 题库底部操作按钮组：上一题 [查看解析][收藏][设置][纠错][答疑] 下一题 */
.q-actions { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px; padding: 6px 8px; border: 1px dashed var(--border); border-radius: 10px; background: #fff; }
.qa-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; transition: .12s; }
.qa-btn:hover { background: #f1f5f9; color: var(--primary); }
.qa-btn.active { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.qa-btn.active .qa-icon { color: #1d4ed8; }
.qa-icon { display: inline-block; width: 16px; height: 16px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.icon-analysis { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M13 9V3.5L18.5 9z M8 12h8v2H8z M8 16h5v2H8z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M13 9V3.5L18.5 9z M8 12h8v2H8z M8 16h5v2H8z'/></svg>"); }
.icon-star { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2 9.19 8.62 2 9.24l5.46 4.73L5.82 21z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2 9.19 8.62 2 9.24l5.46 4.73L5.82 21z'/></svg>"); }
.icon-settings { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65a.5.5 0 0 0 .12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1a7.03 7.03 0 0 0-1.69-.98l-.38-2.65A.5.5 0 0 0 14 2h-4a.5.5 0 0 0-.49.42l-.38 2.65c-.61.25-1.17.58-1.69.98l-2.49-1a.5.5 0 0 0-.61.22l-2 3.46a.5.5 0 0 0 .12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65a.5.5 0 0 0-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65A.5.5 0 0 0 10 22h4a.5.5 0 0 0 .49-.42l.38-2.65c.61-.25 1.17-.58 1.69-.98l2.49 1a.5.5 0 0 0 .61-.22l2-3.46a.5.5 0 0 0-.12-.64l-2.11-1.65zM12 15.5A3.5 3.5 0 1 1 12 8.5a3.5 3.5 0 0 1 0 7z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65a.5.5 0 0 0 .12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1a7.03 7.03 0 0 0-1.69-.98l-.38-2.65A.5.5 0 0 0 14 2h-4a.5.5 0 0 0-.49.42l-.38 2.65c-.61.25-1.17.58-1.69.98l-2.49-1a.5.5 0 0 0-.61.22l-2 3.46a.5.5 0 0 0 .12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65a.5.5 0 0 0-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65A.5.5 0 0 0 10 22h4a.5.5 0 0 0 .49-.42l.38-2.65c.61-.25 1.17-.58 1.69-.98l2.49 1a.5.5 0 0 0 .61-.22l2-3.46a.5.5 0 0 0-.12-.64l-2.11-1.65zM12 15.5A3.5 3.5 0 1 1 12 8.5a3.5 3.5 0 0 1 0 7z'/></svg>"); }
.icon-bug { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6 6 0 0 0-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20z M14 16h-4v-2h4v2z M14 12h-4v-2h4v2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6 6 0 0 0-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20z M14 16h-4v-2h4v2z M14 12h-4v-2h4v2z'/></svg>"); }
.icon-ask { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2C6.48 2 2 6.48 2 12c0 1.54.36 2.98.97 4.29L1 23l6.71-1.97C9.02 21.64 10.46 22 12 22c5.52 0 10-4.48 10-10S17.52 2 12 2z M14 16h-4v-2h4v2z M16.07 11.25l-1.7 1.65c-.78.78-1.37 1.35-1.37 2.1h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2C6.48 2 2 6.48 2 12c0 1.54.36 2.98.97 4.29L1 23l6.71-1.97C9.02 21.64 10.46 22 12 22c5.52 0 10-4.48 10-10S17.52 2 12 2z M14 16h-4v-2h4v2z M16.07 11.25l-1.7 1.65c-.78.78-1.37 1.35-1.37 2.1h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/></svg>"); }
.icon-note { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 2 5 5h-5V4zM8 12h8v2H8v-2zm0 4h5v2H8v-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 2 5 5h-5V4zM8 12h8v2H8v-2zm0 4h5v2H8v-2z'/></svg>"); }

.qa-btn.hasnote { color: var(--primary); }
.qa-btn.hasnote::after { content: "·"; margin-left: 2px; color: var(--primary); font-weight: 700; }

.next-top { white-space: nowrap; }

/* 多选题确认条：勾选后需点「确定」才判分，避免选一个就弹答案 */
.multi-confirm { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border: 1px dashed #93c5fd; border-radius: 12px; background: #eff6ff; }
.multi-confirm .muted { flex: 1; min-width: 180px; }

.note-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; background: #fffbeb; }
.note-head { font-weight: 700; font-size: 14px; color: #92400e; margin-bottom: 10px; }
.note-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.note-foot .muted { font-size: 12px; }

@media (max-width: 760px){
  .q-actions { order: 5; flex-basis: 100%; justify-content: center; flex-wrap: wrap; }
}

/* 弹层（设置 / 纠错 / 答疑 复用） */
.qa-modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.qa-modal-body { width: 100%; max-width: 440px; background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.qa-modal-head { font-weight: 700; font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.qa-modal-close { font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }
.qa-modal-tip { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.qa-modal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.qa-modal-row:first-of-type { border-top: 0; }
.qa-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; }
.qa-textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 90px; }
.qa-textarea:focus { outline: none; border-color: var(--primary); }
.qa-switch { position: relative; width: 38px; height: 22px; }
.qa-switch input { opacity: 0; width: 0; height: 0; }
.qa-switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .18s; cursor: pointer; }
.qa-switch i::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; left: 2px; top: 2px; transition: .18s; }
.qa-switch input:checked + i { background: var(--primary); }
.qa-switch input:checked + i::before { transform: translateX(16px); }
@media (max-width: 760px){
  .pc-wrap { flex-direction: column; padding: 16px; }
  .pc-sidebar { width: 100%; position: static; }
  .pc-menu a { padding: 12px 16px; }
  .pc-section-card { padding: 16px; }
  .pc-grid3 { grid-template-columns: 1fr; }
  .pc-welcome { padding: 22px 18px; }
}

/* ═══ 机考结束全屏遮罩 ═══ */
.exam-finish-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #bfdbfe 0%, #93c5fd 40%, #60a5fa 70%, #3b82f6 100%);
}
.exam-finish-content { text-align: center; max-width: 560px; width: 90%; padding: 48px 32px; }
.ef-title {
  font-size: 36px; font-weight: 900; color: #f59e0b;
  text-shadow: 0 2px 8px rgba(245,158,11,.35), 0 0 24px rgba(245,158,11,.15);
  margin-bottom: 28px; letter-spacing: 4px;
}
.ef-body {
  background: rgba(255,255,255,.92); border-radius: 16px;
  padding: 28px 24px 22px; box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.ef-body p { margin: 0 0 18px; font-size: 16px; color: #374151; line-height: 1.6; }
.ef-btn {
  display: inline-block; padding: 14px 40px; font-size: 17px; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
  border-radius: 10px; cursor:pointer; border:none; box-shadow: 0 4px 14px rgba(37,99,235,.3);
  transition: .15s;
}
.ef-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ef-note { font-size: 12px !important; color: #ef4444 !important; margin-top: 14px !important; opacity: .8; }

/* ═══ 我的题库 - 题库切换下拉 ═══ */
.bank-switch {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 12px 14px;
  background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
}
.bs-label { font-size: 14px; font-weight: 600; color: var(--text-2, #475569); }
.bs-dropdown { position: relative; }
.bs-btn {
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--primary, #2563eb);
  background: var(--primary-light, #eff6ff); border: 1px solid var(--primary, #2563eb);
  border-radius: 9px; cursor: pointer; min-width: 220px; text-align: left;
}
.bs-btn:hover { filter: brightness(.98); }
.bs-menu {
  position: absolute; top: 100%; left: 0; margin-top: 6px; z-index: 30;
  min-width: 280px; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 6px;
}
.bs-item {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  background: none; border: none; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--text, #1e293b);
}
.bs-item:hover { background: var(--primary-light, #eff6ff); }
.bs-item.active { background: var(--primary-light, #eff6ff); color: var(--primary, #2563eb); font-weight: 700; }

/* ═══ 我的课程 - 按 cszhusheng 风格的科目分组列表 ═══ */
.mc-package { }
.mc-head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.mch-left { display:flex; align-items:center; gap:14px; flex:1; min-width:0; }
.mch-cover { position:relative; width:120px; height:68px; border-radius:10px;
  background:linear-gradient(135deg,#3b82f6,#2563eb); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mch-cover .mch-ph { font-size:28px; }
.mch-cover .mch-type { position:absolute; top:4px; left:4px; padding:2px 8px; font-size:11px;
  background:rgba(255,255,255,.25); color:#fff; border-radius:4px; }
.mch-info h3 { margin:0; font-size:17px; font-weight:700; color:#1e293b; line-height:1.3; }
.mch-meta { font-size:13px; color:#64748b; margin-top:3px; }
.mch-actions { display:flex; gap:8px; flex-shrink:0; }

/* 科目折叠面板 */
.mc-subjects { border:1px solid var(--border,#e5e7eb); border-radius:12px; overflow:hidden; }
.ms-bar { display:flex; align-items:center; gap:10px; padding:13px 16px; cursor:pointer;
  background:#f8fafc; border-bottom:1px solid var(--border,#e5e7eb); transition:.15s; user-select:none; }
.ms-bar:hover { background:#eff6ff; }
.ms-arrow { width:20px; text-align:center; font-size:11px; color:#94a3b8;
  transition:transform .2s; display:inline-block; }
.ms-arrow.expanded { transform:rotate(90deg); }
.ms-name { font-size:15px; font-weight:600; color:#1e293b; }
.ms-count { margin-left:auto; font-size:12px; color:#94a3b8; }

/* 班级+课时 */
.ms-body { background:#fff; }
.mscls-name { padding:8px 16px 4px; font-size:13px; font-weight:600; color:#475569;
  border-bottom:1px dashed #e5e7eb; }
.ms-lesson-row { display:flex; align-items:center; gap:8px; padding:9px 16px;
  transition:background .1s; cursor:pointer; border-bottom:1px solid #f1f5f9; }
.ms-lesson-row:hover { background:#fafafe; }
.ms-lesson-row:last-child { border-bottom:none; }
.msl-tag { font-size:11px; color:#ea580c; background:#fff7ed; padding:2px 8px; border-radius:4px;
  white-space:nowrap; flex-shrink:0; font-weight:600; }
.msl-title { font-size:14px; color:#334155; flex:2; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msl-teacher { font-size:12px; color:#64748b; width:50px; text-align:right; flex-shrink:0; }
.msl-progress { font-size:12px; color:#94a3b8; width:48px; text-align:right; flex-shrink:0; }
.msl-detail { padding:4px 10px !important; font-size:12px !important; flex-shrink:0; }
.msl-go { padding:4px 12px !important; font-size:12px !important; flex-shrink:0; }

/* 视频缓冲提示遮罩（避免看起来像打不开） */
.lp-video { position: relative; }
.lp-buffer {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: rgba(0,0,0,.55); color: #fff; border-radius: 8px;
  pointer-events: none;
}
.lp-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.3); border-top-color: #4f8cff;
  animation: lp-spin .8s linear infinite;
}
.lp-buf-txt { font-size: 14px; letter-spacing: .5px; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* 行内可编辑：常显淡铅笔提示，hover 出下划线 + 高亮 */
.editable { cursor: pointer; border-bottom: 1px dashed transparent; padding: 2px 0; transition: border-color .15s, color .15s; }
.editable::after { content: "✎"; margin-left: 6px; font-size: 12px; color: var(--primary); opacity: .35; transition: opacity .15s; }
.editable:hover { border-bottom-color: var(--primary); color: var(--primary); }
.editable:hover::after { opacity: 1; }

/* 行内编辑输入框：贴合单元格 */
.cell-edit { width: 100%; min-width: 140px; padding: 6px 10px; border: 1px solid var(--primary);
  border-radius: 6px; font-size: 13px; outline: none; box-shadow: 0 0 0 3px var(--primary-light); background: #fff; }
.cell-edit:focus { box-shadow: 0 0 0 3px rgba(249,115,22,.18); }

/* 学习报表：可滚动列表框 + 进度条 */
.report-scroll { max-height: 64vh; overflow: auto; border: 1px solid #ececec; border-radius: 8px; }
.report-scroll .tbl { margin: 0; border: none; }
.report-scroll .tbl thead th { position: sticky; top: 0; background: #fafafa; z-index: 1; }
.mini-bar { display: inline-block; vertical-align: middle; width: 80px; height: 6px; background: #eee; border-radius: 4px; overflow: hidden; }
.mini-bar > span { display: block; height: 100%; background: var(--primary, #f97316); border-radius: 4px; }
