/* ============================================================
 *  考试刷题系统 · PC 版样式（仅适配桌面端浏览习惯）
 * ============================================================ */
:root {
  --primary: #3c7bfc;
  --primary-dark: #2f63d6;
  --primary-soft: #eaf1ff;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --text: #1f2733;
  --text-2: #6b7686;
  --text-3: #9aa4b2;
  --border: #e7eaf0;
  --green: #0ec358;
  --green-soft: #e6f9ef;
  --red: #ff4c4c;
  --red-soft: #ffecec;
  --orange: #ff9f00;
  --shadow: 0 6px 24px rgba(31, 39, 51, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
#app { height: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: var(--primary); text-decoration: none; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cfd6e0; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #b6c0cd; }

/* ===================== 登录页（分屏） ===================== */
.login-wrap { display: flex; height: 100vh; min-width: 1024px; }
.login-left {
  flex: 1.1;
  background: linear-gradient(135deg, #3c7bfc 0%, #5b8def 45%, #7c5cf0 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 0 8%; position: relative; overflow: hidden;
}
.login-left::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: rgba(255,255,255,.12); border-radius: 50%; }
.login-left::before { content: ""; position: absolute; left: -80px; bottom: -100px; width: 320px; height: 320px; background: rgba(255,255,255,.08); border-radius: 50%; }
.login-brand { font-size: 30px; font-weight: 800; letter-spacing: 1px; z-index: 1; }
.login-brand small { display: block; font-size: 14px; font-weight: 400; opacity: .85; margin-top: 8px; letter-spacing: 3px; }
.login-feats { margin-top: 48px; z-index: 1; }
.login-feats li { list-style: none; margin: 18px 0; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.login-feats .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.2); }
.login-foot { position: absolute; bottom: 28px; left: 8%; z-index: 1; font-size: 12px; opacity: .8; }

.login-right { flex: 1; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.login-card { width: 380px; max-width: 86%; }
.login-card h2 { font-size: 26px; margin: 0 0 6px; }
.login-card .sub { color: var(--text-3); margin: 0 0 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; outline: none; transition: .2s; background: #fbfcfe;
}
.field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.login-err { color: var(--red); font-size: 13px; margin: -10px 0 16px; min-height: 18px; }

.login-switch { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-2); }
.login-switch a { color: var(--primary); cursor: pointer; font-weight: 600; margin-left: 2px; }
.login-switch a:hover { text-decoration: underline; }

.btn-primary {
  width: 100%; height: 50px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; transition: .2s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .6; cursor: default; }

/* ===================== 桌面框架 ===================== */
.shell { display: flex; height: 100vh; min-width: 1024px; }
.sidebar {
  width: 244px; flex-shrink: 0; background: #1f2733; color: #cdd4df;
  display: flex; flex-direction: column;
}
.sidebar .logo {
  height: 64px; display: flex; align-items: center; gap: 10px;
  padding: 0 22px; font-size: 17px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; overflow: hidden;
}
.sidebar .logo .mark {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(135deg, #3c7bfc, #7c5cf0);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
/* 左侧菜单：当前科目条 + 切换面板（对齐 H5 顶部常驻科目 + 切换） */
.subject-bar {
  margin: 12px 12px 8px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.08); cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; gap: 10px; transition: .15s;
}
.subject-bar:hover { background: rgba(255,255,255,.14); }
.subject-bar .sb-text { min-width: 0; }
.subject-bar .sb-label { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .5px; }
.subject-bar .sb-name { font-size: 16px; font-weight: 700; color: #fff; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-bar .sb-caret { color: rgba(255,255,255,.8); font-size: 14px; transition: transform .2s; flex-shrink: 0; }
.subject-bar .sb-caret.open { transform: rotate(180deg); }
.subject-panel {
  margin: 0 12px 10px; padding: 8px; border-radius: 12px;
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-height: min(360px, calc(100vh - 280px));
  overflow-y: auto;
}
.subject-panel .sp-head { font-size: 13px; color: var(--text-2); padding: 4px 8px 8px; font-weight: 600; }
.subject-panel .sp-empty { color: var(--text-3); font-size: 13px; padding: 8px; }
.subject-panel .sp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--text); transition: .12s;
  min-height: 0; align-self: stretch;
}
.subject-panel .sp-item:hover { background: var(--primary-soft); }
.subject-panel .sp-item.active { background: var(--primary); color: #fff; }
/* 覆盖通用 .locked（全屏锁定页）样式：避免 padding/min-height/flex-direction 误撑高 */
.subject-panel .sp-item.locked {
  color: var(--text); cursor: not-allowed; opacity: .72;
  padding: 10px; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; text-align: left;
}
.subject-panel .sp-item.locked:hover { background: #f4f6fb; opacity: .85; }
.subject-panel .sp-item .sp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-panel .sp-item .sp-tag { font-size: 11px; background: rgba(255,255,255,.25); padding: 2px 8px; border-radius: 20px; flex-shrink: 0; }
.subject-panel .sp-item.active .sp-tag { background: rgba(255,255,255,.32); }
.subject-panel .sp-item .sp-lock {
  font-size: 11px; color: #c9810f; background: #fff5e0; border: 1px solid #f0d9a0;
  padding: 2px 8px; border-radius: 20px; flex-shrink: 0; font-weight: 600;
}
.subject-panel .sp-tip { font-size: 12px; color: var(--text-3); padding: 8px 8px 2px; text-align: center; }
/* 未选科目轻提示（替代原各视图全屏遮罩） */
.no-subject-tip {
  text-align: center; color: var(--text-2); padding: 60px 20px; font-size: 15px;
  background: var(--panel); border: 1px dashed var(--border); border-radius: 14px; margin: 20px 0;
}
.menu { flex: 1; padding: 14px 12px; overflow-y: auto; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  margin-bottom: 4px; color: #cdd4df; font-size: 15px; cursor: pointer; transition: .15s; user-select: none;
}
.menu-item .ico { width: 20px; text-align: center; font-size: 16px; opacity: .9; }
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(60,123,252,.4); }
.sidebar .user-box { border-top: 1px solid rgba(255,255,255,.06); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sidebar .user-box .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }
.sidebar .user-box .uname { font-size: 14px; color: #fff; }
.sidebar .user-box .uid { font-size: 12px; color: var(--text-3); }

/* 内容区 */
.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 64px; flex-shrink: 0; background: var(--panel); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
}
.topbar .actions { display: flex; align-items: center; gap: 14px; }
.topbar-left { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.marquee { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; min-width: 0; }
.mq-item.clickable { cursor: pointer; transition: color .15s; }
.mq-item.clickable:hover { color: var(--primary); text-decoration: underline; }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 18s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
/* 进入任意做题页面时，顶部滚动通知固定静止，给用户安静的做题环境 */
.marquee.paused .marquee-track { animation: none; }
.mq-item { padding-right: 64px; color: var(--text-2); font-size: 14px; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.btn-ghost { border: 1px solid var(--border); background: #fff; color: var(--text-2); padding: 8px 16px; border-radius: 8px; font-size: 14px; transition: .15s; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.scroll-area { flex: 1; overflow-y: auto; padding: 28px; }
/* 加宽并左对齐（适配 PC 宽屏，右侧刷题区更大） */
.container { max-width: 1600px; margin: 0; }

/* ===================== 通用卡片 / 列表 ===================== */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 18px; }
.grid-subjects { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-chapters { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-papers  { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.subj-card, .chapter-card, .paper-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: .18s; position: relative; overflow: hidden;
}
.subj-card:hover, .chapter-card:hover, .paper-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(60,123,252,.14); }
.subj-card h3 { margin: 0 0 6px; font-size: 17px; }
.subj-card .meta { color: var(--text-3); font-size: 13px; }
.subj-card.locked { opacity: .72; cursor: pointer; }
.subj-card.locked::after {
  content: '🔒'; position: absolute; top: 12px; right: 14px; font-size: 18px; opacity: .85;
}
.subj-card.locked .meta { color: #d9803a; font-weight: 600; }
.chapter-card h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.chapter-card .stat { display: flex; gap: 18px; font-size: 13px; color: var(--text-2); }
.chapter-card .stat b { color: var(--text); }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.tag-vip { background: linear-gradient(to right,#4b444c,#000); color: #ffecd5; }
.tag-last { background: var(--green-soft); color: var(--green); }
.paper-card.paper-locked { opacity: .72; }
.paper-card.paper-locked:hover { opacity: 1; }
/* 模拟考试场次三态：未开始 / 进行中 / 已结束 */
.paper-card.paper-upcoming { opacity: .72; cursor: not-allowed; }
.paper-card.paper-upcoming:hover { transform: none; box-shadow: 0 6px 18px rgba(0,0,0,.06); border-color: var(--border, #e3e8f0); }
.tag-upcoming { background: #fff5e0; color: #c9810f; border: 1px solid #f0d9a0; }
.tag-live { background: #e6f1fb; color: #185fa5; border: 1px solid #b5d4f4; }
.tag-ended { background: #f1efe8; color: #5f5e5a; border: 1px solid #d3d1c7; }

.section-title { font-size: 18px; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.section-title .line { flex: 1; height: 1px; background: var(--border); }
.sub-title { font-size: 16px; font-weight: 700; margin: 22px 0 14px; color: var(--text-2); }

.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.breadcrumb span { cursor: pointer; }
.breadcrumb span:hover { color: var(--primary); }
.breadcrumb i { margin: 0 8px; font-style: normal; color: #d2d8e0; }

/* 统一返回栏（替代层级面包屑） */
.back-bar {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #46546a; background: #f3f5f9;
  border: 1px solid #e4e9f1; border-radius: 10px; cursor: pointer;
  padding: 8px 18px; margin-bottom: 14px; user-select: none; transition: all .15s ease;
}
.back-bar:hover { background: #e9eef6; border-color: #cdd6e4; color: var(--primary); box-shadow: 0 2px 8px rgba(60,123,252,.10); }
.back-bar:active { transform: translateY(1px); }
.back-bar .back-arrow { font-size: 20px; line-height: 1; margin-top: -1px; }

.empty { text-align: center; color: var(--text-3); padding: 60px 0; }
.empty .big { font-size: 46px; margin-bottom: 12px; }

/* ===================== 刷题（练习）区：加宽 ===================== */
.practice { display: grid; grid-template-columns: 1fr clamp(440px, 30vw, 580px); gap: 22px; align-items: start; height: calc(100vh - 120px); }
.practice.single { grid-template-columns: 1fr; }
.practice.single .q-panel { max-width: 1200px; margin: 0 auto; width: 100%; }
.q-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; }
.q-head { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.q-head .type { font-size: 13px; padding: 3px 10px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.q-head .progress { font-size: 14px; color: var(--text-2); margin-left: auto; }
.back-btn { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--border); background: #fff; border-radius: 8px; font-size: 22px; line-height: 1; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: .15s; }
.back-btn:hover { border-color: var(--primary); color: var(--primary); }
.q-body { padding: 24px; flex: 1; overflow-y: auto; min-height: 0; }
.q-title { font-size: 17px; line-height: 1.8; margin-bottom: 22px; overflow-wrap: break-word; }
.q-title > *:first-child { margin-top: 0; }
.q-title > *:last-child { margin-bottom: 0; }
.q-title p, .q-title div, .q-title ul, .q-title ol, .q-title table { margin: 0 0 12px; }
.q-title img { max-width: 100%; height: auto; }
.q-title table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.q-title td, .q-title th { border: 1px solid var(--border); padding: 6px 10px; }
.q-title * { max-width: 100%; box-sizing: border-box; }

.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; transition: .15s; background: #fbfcfe;
  min-width: 0; overflow: hidden; /* 关键：防子内容撑出导致选项互相覆盖 */
}
.option:hover { border-color: var(--primary); }
.option .code { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-2); font-weight: 600; transition: .15s; }
.option .txt { flex: 1; min-width: 0; overflow-wrap: break-word; }
.option .txt p { margin: 0 0 8px; }              /* 适当段距，避免多段落紧贴 */
.option .txt p:last-child { margin-bottom: 0; }
.option .txt img { max-width: 100%; height: auto; }
.option .txt table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.option .txt td, .option .txt th { border: 1px solid var(--border); padding: 6px 10px; }
.option .txt * { max-width: 100%; box-sizing: border-box; }
.option.correct { border-color: var(--green); background: var(--green-soft); }
.option.correct .code { background: var(--green); color: #fff; border-color: var(--green); }
.option.wrong { border-color: var(--red); background: var(--red-soft); }
.option.wrong .code { background: var(--red); color: #fff; border-color: var(--red); }
.option.selected .code { background: var(--primary); color: #fff; border-color: var(--primary); }

.fill-input, .essay-input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; resize: vertical; }
.fill-input:focus, .essay-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.essay-input { min-height: 120px; }

.q-actions { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.q-actions .spacer { flex: 1; }
.btn { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 10px 20px; border-radius: 8px; font-size: 14px; transition: .15s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary-sm { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary-sm:hover { background: var(--primary-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

.result-box { margin: 18px 24px 0; padding: 16px 18px; border-radius: 10px; font-size: 14px; }
.result-box.ok { background: var(--green-soft); color: #0a8f43; }
.result-box.no { background: var(--red-soft); color: #d63a3a; }
.analysis { margin: 16px 24px 24px; padding: 16px 18px; background: #f8fafc; border-radius: 10px; font-size: 14px; color: var(--text-2); min-width: 0; overflow: hidden; }
.analysis > * { max-width: 100%; box-sizing: border-box; overflow-wrap: break-word; }
.analysis p { margin: 0 0 8px; }
.analysis p:last-child { margin-bottom: 0; }
.analysis img { max-width: 100%; height: auto; }
.analysis table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.analysis td, .analysis th { border: 1px solid var(--border); padding: 6px 10px; }
.analysis .h { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.analysis .ans { color: var(--green); font-weight: 700; }

/* 答题卡：加宽 */
.sheet { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 0; max-height: calc(100vh - 120px); overflow-y: auto; align-self: start; }
.sheet h4 { margin: 0 0 14px; font-size: 15px; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px; }
.sheet-cell {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; background: #fff; transition: .15s; color: var(--text-2);
}
.sheet-cell:hover { border-color: var(--primary); }
.sheet-cell.current { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); color: var(--primary); font-weight: 700; }
.sheet-cell.done { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.sheet-cell.right { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.sheet-cell.wrong { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.sheet-cell.answered { background: #eef2f7; color: var(--text-2); border-color: #cfd6e0; }
.sheet-legend { display: flex; gap: 14px; margin-top: 16px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.sheet-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: middle; }
.right { background: var(--green); } .wrong { background: var(--red); } .cur { background: var(--primary); } .undo { background: #cfd6e0; } .answered { background: #cfd6e0; }

/* 交卷成绩报告浮层 */
.exam-result { width: 440px; max-width: 92vw; padding: 28px 28px 22px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(20,30,50,.22); text-align: center; }
.exam-result .er-title { margin: 0 0 16px; font-size: 17px; font-weight: 700; color: var(--text-1); }
.exam-result .er-score { margin-bottom: 18px; }
.exam-result .er-big { font-size: 52px; font-weight: 800; color: var(--primary); line-height: 1; }
.exam-result .er-unit { font-size: 18px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.exam-result .er-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.exam-result .er-row { display: flex; gap: 10px; margin-bottom: 18px; }
.exam-result .er-cell { flex: 1; background: #f6f8fb; border-radius: 10px; padding: 12px 6px; }
.exam-result .er-num { font-size: 18px; font-weight: 700; color: var(--text-1); }
.exam-result .er-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.exam-result .er-pass { border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.exam-result .er-pass.ok { background: var(--green-soft); color: var(--green); }
.exam-result .er-pass.no { background: var(--red-soft); color: var(--red); }
.exam-result .er-pass.muted { background: #f1efe8; color: #5f5e5a; font-weight: 500; }
.exam-result .er-actions { display: flex; gap: 12px; }
.exam-result .er-actions .btn, .exam-result .er-actions .btn-primary { flex: 1; height: 46px; font-size: 15px; border-radius: 10px; }

/* 错题 / 收藏 / 搜索结果 / 资讯 列表 */
.rec-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: #fff; cursor: pointer; transition: .15s; }
.rec-item:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(60,123,252,.12); }
.rec-item .q { flex: 1; overflow: hidden; }
.rec-item .q .t { font-weight: 600; }
.rec-item .q .t .q-type { font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.rec-item .q .m { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.result-meta { font-size: 13px; color: var(--text-3); margin: 4px 0 14px; }
.rec-item .q .q-text { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--text); }
.rec-item .q .q-text p { margin: 0; }
.rec-item .q .q-text img { max-width: 100%; }
.rec-go { color: var(--text-3); font-size: 13px; flex-shrink: 0; }
.loadmore { width: 100%; margin-top: 8px; }

/* 题目搜索 */
.search-hint { margin-bottom: 16px; padding: 12px 16px; background: var(--primary-soft); border: 1px solid #f3d9a8; border-radius: 10px; color: #8a6d3b; font-size: 13.5px; line-height: 1.6; }
.search-bar { display: flex; gap: 12px; margin-bottom: 16px; }
.search-input { flex: 1; height: 46px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; background: #fbfcfe; }
.search-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.search-bar .btn-primary { width: auto; padding: 0 28px; height: 46px; }
.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.type-tab { padding: 7px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); cursor: pointer; transition: .15s; }
.type-tab:hover { border-color: var(--primary); color: var(--primary); }
.type-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 资讯 / 公告 */
.news-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: #fff; cursor: pointer; transition: .15s; }
.news-item:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(60,123,252,.12); }
.news-main { flex: 1; overflow: hidden; }
.news-title { font-weight: 600; font-size: 15px; }
.news-time { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.article-detail { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.art-title { font-size: 22px; margin: 14px 0 8px; }
.art-time { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.art-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.art-body p { margin: 0 0 12px; }
.art-body img { max-width: 100%; }

/* 关于我们 / 联系客服 */
.about-card { max-width: 720px; }
.about-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.about-row:last-child { border-bottom: none; }
.about-row .k { width: 140px; flex-shrink: 0; color: var(--text-2); }
.about-row .v { flex: 1; font-weight: 500; word-break: break-all; }

/* 资料设置 */
.settings { max-width: 560px; }
.setting-block h3 { margin: 0 0 16px; font-size: 16px; }
.setting-block .field input { height: 44px; }

/* 个人中心 */
.profile { max-width: 900px; }
.subject-card { margin-bottom: 8px; }
.sc-head { display: flex; align-items: center; gap: 14px; }
.sc-head .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.sc-head .avatar-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.sc-user .acct { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.sc-user { flex: 1; }
.sc-user .nm { font-size: 16px; font-weight: 700; }
.sc-user .uid { font-size: 12px; color: var(--text-3); }
.sc-subject { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.sc-subject label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.sc-subject select { flex: 1; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; background: #fbfcfe; }
.sc-subject select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.profile-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pm-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: .15s; }
.pm-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60,123,252,.12); }
.pm-item .ico { width: 22px; text-align: center; color: var(--primary); font-size: 17px; }
.pm-item .pm-name { flex: 1; font-size: 15px; font-weight: 600; }
.pm-item .pm-arrow { color: var(--text-3); font-size: 18px; }

/* 加载 / 提示 */
.loading { text-align: center; color: var(--text-3); padding: 40px 0; }
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: #1f2733; color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; z-index: 9999; box-shadow: var(--shadow); opacity: 0; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

.profile-card { max-width: 460px; }
.profile-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.profile-row .k { color: var(--text-2); }

/* 弹窗（激活题库） */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,28,40,.45);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  width: 420px; max-width: calc(100vw - 40px); background: var(--panel);
  border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 20px 60px rgba(20,28,40,.28);
  animation: modalIn .18s ease;
}
/* 激活题库弹窗：稍大 + VIP 标志 */
.modal-activate { width: 460px; padding: 30px 30px 24px; }
.modal-vip {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(253,160,133,.35);
}
.modal-vip .vip-crown { font-size: 15px; line-height: 1; }
.act-select {
  width: 100%; height: 46px; padding: 0 12px; font-size: 15px; color: var(--text-1);
  border: 1px solid var(--border); border-radius: 10px; outline: none; background: #fbfcfe;
  box-sizing: border-box; transition: .15s; margin-bottom: 16px;
}
.act-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.modal-sub { margin: 0 0 18px; font-size: 13px; color: var(--text-3); }
.act-input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 10px; outline: none; background: #fbfcfe;
  box-sizing: border-box; transition: .15s;
}
.act-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
/* 弹窗按钮：取消 / 激活 等宽，避免「激活」被 width:100% 撑满、取消过小 */
.modal-actions .btn, .modal-actions .btn-primary { width: auto; flex: 1 1 0; min-width: 0; height: 46px; font-size: 15px; border-radius: 10px; }
.modal-actions .btn-primary { font-weight: 600; }

/* 未激活科目锁面板（章节/真题/模拟 共用） */
.locked {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 70px 24px; min-height: 320px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(20,28,40,.06);
}
.locked .lock-ico {
  width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin-bottom: 18px;
  background: rgba(217,128,58,.12); border: 1px solid rgba(217,128,58,.35);
}
.locked h3 { margin: 0 0 10px; font-size: 20px; color: var(--text); }
.locked p { margin: 0 0 22px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.locked .btn-primary { min-width: 160px; height: 46px; font-size: 15px; }
.locked-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.locked-actions .btn { min-width: 150px; height: 46px; font-size: 15px; border-radius: 10px; }
