:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --primary: #534ab7;
  --primary-soft: #eeedfe;
  --accent: #1d9e75;
  --accent-soft: #e1f5ee;
  --warn: #ba7517;
  --danger: #a32d2d;
  --text: #1f1f29;
  --muted: #6b6b78;
  --border: #e6e6ef;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(40, 40, 90, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* topbar */
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 28px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.logo {
  font-size: 22px; color: var(--primary);
  background: var(--primary-soft); width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; line-height: 1; transform: translateY(4px);
}
.brand-name { font-size: 18px; font-weight: 700; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 18px; margin-left: 12px; }
.nav a { font-size: 14px; color: var(--muted); padding: 6px 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.btn-login {
  margin-left: auto; border: 1px solid var(--primary);
  color: var(--primary); background: transparent; padding: 7px 18px;
  border-radius: 20px; cursor: pointer; font-size: 14px;
}
.btn-login:hover { background: var(--primary-soft); }

main { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border-radius: 18px; padding: 38px 34px; margin-bottom: 26px;
}
.hero h1 { margin: 0 0 8px; font-size: 28px; }
.hero p { margin: 0 0 20px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  border: none; border-radius: 10px; padding: 11px 22px;
  font-size: 14px; cursor: pointer; font-weight: 600;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #433aa0; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }
.card .ico { font-size: 22px; color: var(--primary); }

/* section title */
.section-title { font-size: 20px; margin: 8px 0 16px; }
.region-title {
  font-size: 16px; margin: 24px 0 12px; padding-left: 10px;
  border-left: 4px solid var(--primary); color: var(--text);
}
.region-count { font-size: 13px; color: var(--muted); font-weight: 400; }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 6px 14px; border-radius: 18px; background: #fff;
  border: 1px solid var(--border); cursor: pointer; font-size: 13px; color: var(--muted);
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* school list */
.school {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.school-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.school-name { font-size: 17px; font-weight: 700; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.tag.city { background: var(--accent-soft); color: var(--accent); }
.school-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; margin: 12px 0 0; font-size: 13px; }
.school-meta b { color: var(--muted); font-weight: 500; margin-right: 6px; }
.quota { color: var(--warn); }
.school-foot { margin-top: 14px; }

/* school detail + brochure */
.banner {
  background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 18px;
}
.banner a { color: #b3640a; font-weight: 600; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  padding: 7px 18px; border-radius: 8px; background: #fff; border: 1px solid var(--border);
  cursor: pointer; font-size: 14px; color: var(--muted);
}
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.brochure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 20px; box-shadow: var(--shadow); }
.bro-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.bro-row:last-child { border-bottom: none; }
.bro-k { color: var(--muted); font-weight: 500; }
.bro-row a { color: var(--primary); font-weight: 600; }
.intro { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; line-height: 1.9; color: var(--text); box-shadow: var(--shadow); }
.hl-list { margin: 4px 0 0; padding-left: 20px; }
.hl-list li { font-size: 14px; line-height: 2; color: var(--text); }
.bro-note { margin-top: 16px; padding: 12px 16px; background: var(--accent-soft); border-radius: 10px; font-size: 13px; line-height: 1.7; color: var(--text); }

/* quiz */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.subject {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center;
}
.subject:hover { border-color: var(--primary); }
.subject .count { font-size: 13px; color: var(--muted); }

.quiz-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.progress { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.q-text { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px;
  cursor: pointer; font-size: 15px; display: flex; gap: 10px; align-items: center;
}
.option:hover { border-color: var(--primary); }
.option .key { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.option.correct { background: var(--accent-soft); border-color: var(--accent); }
.option.wrong { background: #fdeaea; border-color: var(--danger); }
.option.dim { opacity: 0.55; }
.explain { margin-top: 16px; padding: 14px 16px; background: var(--primary-soft); border-radius: 10px; font-size: 14px; }
.explain b { color: var(--primary); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.score-tip { font-size: 14px; color: var(--muted); }
.locked { text-align: center; padding: 50px 20px; color: var(--muted); }
.locked .big { font-size: 40px; }

/* wrong list */
.wrong-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.wrong-item .wq { font-weight: 600; margin-bottom: 6px; }
.wrong-item .wa { font-size: 13px; color: var(--accent); }
.wrong-item .ws { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* member */
.member-wrap { max-width: 520px; margin: 0 auto; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); box-shadow: var(--shadow); }
.plan h2 { margin: 0 0 6px; }
.price { font-size: 30px; font-weight: 800; color: var(--primary); }
.price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.feat { list-style: none; padding: 0; margin: 16px 0; }
.feat li { padding: 6px 0; font-size: 14px; }
.feat li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--border); }

/* ===== 驾校式刷题中心 ===== */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.mode-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; cursor: pointer; box-shadow: var(--shadow); transition: .15s;
}
.mode-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.mode-icon { font-size: 26px; }
.mode-name { font-weight: 700; margin: 8px 0 4px; }
.mode-desc { font-size: 13px; color: var(--muted); }

.school-exam-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.school-exam, .topic-pick {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: .15s;
}
.school-exam:hover, .topic-pick:hover { border-color: var(--primary); background: var(--primary-soft); }
.se-name { font-weight: 600; }
.se-count { font-size: 12px; color: var(--muted); }

/* 答题页顶栏 */
.quiz-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.exam-timer {
  margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--warn); background: #fff6e9; border: 1px solid #f2dcb8;
  padding: 4px 10px; border-radius: 20px; font-size: 14px;
}
.star-btn {
  margin-left: 4px; font-size: 20px; line-height: 1; background: none; border: none;
  cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px;
}
.star-btn:hover { background: var(--primary-soft); }
.q-badge { font-size: 12px; color: var(--muted); margin: 8px 0 2px; }

/* 出现率 / 统计条 */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.freq-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13px; }
.freq-name { width: 168px; flex: none; color: var(--text); line-height: 1.3; }
.freq-bar { flex: 1; height: 12px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.freq-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #7d74e0); border-radius: 8px; }
.freq-bar.danger i { background: linear-gradient(90deg, var(--danger), #d4605f); }
.freq-num { width: 78px; flex: none; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.result-breakdown { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 16px; box-shadow: var(--shadow); }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }

/* 主观题（名词解释 / 简答 / 论述） */
.q-type { display: inline-block; background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.subj-box { margin-top: 10px; }
.subj-input { width: 100%; min-height: 120px; padding: 12px 14px; font-size: 14px; line-height: 1.7;
  font-family: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; resize: vertical; outline: none; }
.subj-input:focus { border-color: var(--primary); background: var(--surface); }
.points { margin: 8px 0 0; padding-left: 20px; }
.points li { margin: 6px 0; line-height: 1.7; }
.no-answer { margin: 8px 0 0; padding: 12px 14px; background: var(--primary-soft, #f3f6ff);
  border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); line-height: 1.7; }

/* ===== 院校模板（统一结构，按院校填充属性） ===== */
.s-ov {
  display: flex; gap: 20px; justify-content: space-between; align-items: stretch;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow);
}
.s-ov-main { flex: 1; min-width: 0; }
.s-name { font-size: 26px; margin: 0 0 6px; }
.s-tags { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.s-level { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.s-chip { font-size: 12px; padding: 3px 11px; border-radius: 14px; background: #fff; border: 1px solid var(--border); color: var(--text); }
.s-chip-feat { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.s-slogan { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.s-ov-side {
  flex: none; width: 210px; text-align: right; display: flex; flex-direction: column; gap: 8px;
  justify-content: center; border-left: 1px dashed var(--border); padding-left: 20px;
}
.s-site { font-weight: 700; color: var(--primary); font-size: 14px; }
.s-contact { font-size: 12px; color: var(--muted); }

/* 招生简章 总分总 */
.bro-zfz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.bro-z { padding: 16px 22px; background: var(--primary-soft); font-size: 14px; line-height: 1.85; color: var(--text); }
.bro-z b { color: var(--primary); }
.bro-z-sum { background: var(--accent-soft); }
.bro-f { padding: 18px 22px; }
.bro-f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 8px; }
.bf-k { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.bf-v { font-size: 13.5px; line-height: 1.8; }
.bro-h { font-size: 14px; margin: 18px 0 10px; color: var(--text); }
.bro-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bro-table th, .bro-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.bro-table th { background: var(--bg); color: var(--muted); font-weight: 600; }
.bro-plan { text-align: center; font-weight: 700; color: var(--primary); white-space: nowrap; }
.bro-subs { display: flex; flex-direction: column; gap: 6px; }
.bro-sub { background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.tl-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tl-inline li { font-size: 13px; }
.tl-inline b { color: var(--primary); margin-right: 4px; }

/* 统计卡 + 趋势图 */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 6px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-align: center; box-shadow: var(--shadow); }
.stat-n { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.trend-svg { width: 100%; height: auto; margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.trend-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.trend-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* 师资人生履历时间轴 */
.faculty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faculty-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.fc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fc-name { font-size: 17px; font-weight: 700; }
.fc-title { font-size: 12px; color: var(--primary); }
.fc-meta { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.fc-bio { font-size: 13.5px; line-height: 1.8; margin: 0 0 10px; color: var(--text); }
.fc-research { margin-bottom: 10px; }
.fc-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin: 0 6px 6px 0; }
.tl { border-left: 2px solid var(--border); margin-left: 6px; padding-left: 4px; }
.tl-item { display: flex; align-items: baseline; gap: 8px; padding: 7px 0 7px 14px; position: relative; border-bottom: 1px dashed var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-dot { position: absolute; left: -7px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
.tl-stage { font-size: 12px; color: var(--muted); width: 84px; flex: none; }
.tl-val { font-size: 13px; color: var(--text); }
.tl-muted .tl-val { color: var(--muted); font-style: italic; }

/* 信息列 + 横向对比 */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.cmp-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.cmp-row { display: grid; grid-template-columns: 120px 1fr 44px 120px 96px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.cmp-row:last-child { border-bottom: none; }
.cmp-name { font-weight: 600; }
.cmp-cur { color: var(--primary); }
.cmp-bar { height: 12px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a82e0, var(--primary)); border-radius: 8px; }
.cmp-cur-bar { background: linear-gradient(90deg, var(--accent), #57c79c); }
.cmp-num { text-align: right; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.cmp-eval { color: var(--muted); font-size: 12px; }
.cmp-ratio { color: var(--warn); font-size: 12px; }

/* ---------- 新闻动态 ---------- */
.news-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: -6px 0 14px; }
.news-strip { margin-top: 28px; }
.ns-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ns-head h2 { font-size: 18px; margin: 0; }
.ns-more { font-size: 13px; color: var(--primary); text-decoration: none; }
.news-teaser { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; text-decoration: none; color: inherit; background: #fff; transition: border-color .15s; }
.news-teaser:hover { border-color: var(--primary); }
.nt-date { font-size: 12px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nt-cat { font-size: 12px; padding: 2px 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.nt-title { font-size: 14px; color: #2b2b33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.news-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-date { font-size: 13px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.news-title { font-size: 16px; margin: 0 0 6px; line-height: 1.5; }
.news-sum { color: #3a3a3a; font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.news-src { font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .cards, .subject-grid, .school-meta { grid-template-columns: 1fr; }
  .nav { display: none; }
  .mode-grid, .school-exam-list, .stats-grid { grid-template-columns: 1fr; }
  .freq-name { width: 96px; }
  .s-ov, .info-cols, .faculty-grid, .bro-f-grid, .stat-cards { grid-template-columns: 1fr; }
  .s-ov-side { width: auto; border-left: none; border-top: 1px dashed var(--border); padding-left: 0; padding-top: 12px; text-align: left; }
  .cmp-row { grid-template-columns: 96px 1fr 40px; }
  .cmp-eval, .cmp-ratio { display: none; }
}
