/* ============================================================
   高考信息查询 - 全站样式（浅色/深色双主题，移动端优先自适应）
   ============================================================ */
:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #4f6ef7;
  --accent-weak: #eef1fe;
  --accent-text: #3b5bdb;
  --danger: #e5484d;
  --ok: #18a058;
  --warn: #b7791f;
  --hover: #f3f4f6;
  --shadow: 0 1px 3px rgba(16,24,40,.08);
  --radius: 12px;
}
[data-theme="dark"] {
  --bg: #14161c;
  --card: #1d2027;
  --text: #e8eaf0;
  --muted: #9aa0ab;
  --border: #2c3038;
  --accent: #6d87f8;
  --accent-weak: #232a3f;
  --accent-text: #a5b4fc;
  --hover: #262a33;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--accent-text); text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand svg rect { fill: var(--accent); }
.global-search { flex: 1; position: relative; max-width: 480px; }
.global-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.global-search input {
  width: 100%; padding: 8px 12px 8px 36px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 14px; outline: none; transition: border-color .15s;
}
.global-search input:focus { border-color: var(--accent); }
.search-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; z-index: 200;
}
.search-panel .sp-label { padding: 8px 14px 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.search-panel a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 14px; color: var(--text); font-size: 14px;
}
.search-panel a:hover, .search-panel a.active { background: var(--hover); }
.search-panel .sp-sub { color: var(--muted); font-size: 12px; white-space: nowrap; }
.search-panel .sp-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.icon-btn {
  background: none; border: none; color: var(--text); width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn .icon { width: 20px; height: 20px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: block; }

/* ---------- 导航 ---------- */
.site-nav { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 57px; z-index: 99; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  padding: 10px 14px; color: var(--muted); font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav-inner a.active { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
.nav-inner a:hover { color: var(--text); }

/* ---------- 通用 ---------- */
main#view { padding: 20px 16px 60px; min-height: 55vh; }
.page-title { font-size: 22px; font-weight: 700; margin: 4px 0 4px; }
.page-desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1; }
input[type="search"], input[type="text"], select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text); font-size: 14px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
select { cursor: pointer; }
.btn {
  padding: 8px 16px; border-radius: 8px; border: none; font-size: 14px;
  background: var(--accent); color: #fff; font-weight: 500;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--accent-weak); color: var(--accent-text); }
.chip {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 13px; cursor: pointer; user-select: none;
}
.chip.on { background: var(--accent-weak); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px;
  background: var(--accent-weak); color: var(--accent-text); white-space: nowrap;
}
.badge.b-wu { background: #eef7ee; color: #187a46; }
[data-theme="dark"] .badge.b-wu { background: #1c3327; color: #5cd69a; }
.badge.b-hua { background: #fdf0ec; color: #c2542c; }
[data-theme="dark"] .badge.b-hua { background: #3a241c; color: #f0956e; }
.badge.b-sheng { background: #eef4fb; color: #2b6cb0; }
[data-theme="dark"] .badge.b-sheng { background: #1c2a3d; color: #7ab3f0; }
.badge.b-zheng { background: #fbf0f6; color: #a4458a; }
[data-theme="dark"] .badge.b-zheng { background: #331f2c; color: #e388c6; }
.badge.b-di { background: #f4f0fb; color: #6b4fb3; }
[data-theme="dark"] .badge.b-di { background: #251f3d; color: #a68fe8; }

/* ---------- 院校层次标签（985 / 211 / 双一流） ---------- */
.tag-list { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: 1px; margin-left: 6px; }
.tag {
  display: inline-block; padding: 0 5px; border-radius: 5px; line-height: 1.6;
  font-size: 11px; font-weight: 700; letter-spacing: .2px; white-space: nowrap;
  border: 1px solid transparent;
}
.tag-985 { background: #fdecea; color: #c0392b; border-color: #f5c6c2; }
.tag-211 { background: #e8f0fe; color: #1a56db; border-color: #cddffb; }
.tag-sy { background: #e4f5f1; color: #0f766e; border-color: #bfe6dd; }
[data-theme="dark"] .tag-985 { background: #3a1d1b; color: #ff9b90; border-color: #5a2b27; }
[data-theme="dark"] .tag-211 { background: #16243d; color: #86aaf9; border-color: #24395e; }
[data-theme="dark"] .tag-sy { background: #12302c; color: #5bd6c1; border-color: #1d4a44; }
.tag-legend { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- 学科评估等级 ---------- */
.grade {
  display: inline-block; min-width: 26px; text-align: center; margin-left: 5px;
  padding: 0 5px; border-radius: 5px; line-height: 1.6;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; vertical-align: 1px;
}
.grade.gA { background: #fdecea; color: #c0392b; }
.grade.gB { background: #e8f0fe; color: #1a56db; }
.grade.gC { background: #eef0f3; color: #5b6270; }
[data-theme="dark"] .grade.gA { background: #3a1d1b; color: #ff9b90; }
[data-theme="dark"] .grade.gB { background: #16243d; color: #86aaf9; }
[data-theme="dark"] .grade.gC { background: #262a33; color: #9aa0ab; }
/* 院校详情：双一流建设学科 / 学科评估优势学科 */
.disc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.disc-chips .chip { padding: 3px 10px; font-size: 12.5px; cursor: default; background: var(--bg); }
.disc-chips .chip:hover { border-color: var(--border); }
.eval-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.eval-row:last-child { border-bottom: none; }
.eval-row .ev-name { flex: 1; min-width: 0; }
.eval-row .grade { margin-left: 0; }
.eval-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }

.muted { color: var(--muted); font-size: 13px; }
.stat-line { color: var(--muted); font-size: 13px; margin: 8px 0; }
.stat-line b { color: var(--accent-text); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
thead th {
  position: sticky; top: 0; background: var(--card); z-index: 1;
  padding: 10px; text-align: left; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap; cursor: default;
}
thead th.sortable { cursor: pointer; }
thead th.sortable:hover { color: var(--accent-text); }
tbody td { padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--hover); }
tbody tr.hit { background: var(--accent-weak); }
td.num, th.num { font-variant-numeric: tabular-nums; }
.score { color: var(--danger); font-weight: 700; }

/* ---------- 列表 / 加载更多 ---------- */
.list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item .li-main { min-width: 0; }
.list-item .li-name { font-weight: 600; font-size: 15px; color: var(--text); }
.list-item .li-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.list-item .li-right { color: var(--muted); font-size: 13px; text-align: right; flex: none; }
.load-more {
  display: block; width: 100%; padding: 10px; margin-top: 8px;
  background: var(--accent-weak); color: var(--accent-text); border: none;
  border-radius: 8px; font-size: 14px;
}

/* ---------- 空状态 / 加载中 ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }
.empty svg { width: 46px; height: 46px; color: var(--border); margin-bottom: 8px; }
.loading-box { text-align: center; padding: 30px 16px; color: var(--muted); font-size: 14px; }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 10px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; max-width: 320px; margin: 10px auto; }
.progress-bar > div { height: 100%; background: var(--accent); transition: width .25s; }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 36px 16px 24px; }
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero p { color: var(--muted); font-size: 14px; }
.hero-search { max-width: 560px; margin: 18px auto 0; position: relative; }
.hero-search input {
  width: 100%; padding: 13px 18px; font-size: 15px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow);
}
.hero-tags { margin-top: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-tags .chip { font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.feature-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); transition: transform .12s, box-shadow .12s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,24,40,.1); }
.feature-card svg { width: 34px; height: 34px; flex: none; color: var(--accent); }
.feature-card .fc-name { font-weight: 700; font-size: 16px; }
.feature-card .fc-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.feature-card .fc-count { color: var(--accent-text); font-size: 12px; margin-top: 4px; }

/* ---------- 手风琴 ---------- */
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--card); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 14px; background: none; border: none; text-align: left; color: var(--text);
}
.acc-head:hover { background: var(--hover); }
.acc-head .acc-title { font-weight: 600; font-size: 14.5px; }
.acc-body { padding: 4px 14px 12px; border-top: 1px solid var(--border); }
.acc-arrow { transition: transform .2s; color: var(--muted); flex: none; }
.acc-item.open .acc-arrow { transform: rotate(90deg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 9px 18px; border-radius: 999px;
  font-size: 13px; z-index: 300; box-shadow: var(--shadow); max-width: 90vw;
}

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 18px 0 90px; color: var(--muted); font-size: 12.5px; }
.site-footer p { margin-bottom: 4px; }

/* ---------- 专业组内专业（录取分数线页展开面板） ---------- */
.mini-btn {
  padding: 2px 10px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--accent); background: var(--accent-weak); color: var(--accent-text);
}
.mini-btn:hover { filter: brightness(.96); }
.mini-btn:disabled { opacity: .6; cursor: default; }
th.gm-th, td.gm-td { white-space: nowrap; }
.gm-row > td { white-space: normal; padding: 0 0 10px; background: var(--bg); }
.gm-box {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 14px; font-size: 13px;
}
.gm-head { font-weight: 600; margin-bottom: 8px; color: var(--text); }
.gm-head b { color: var(--accent-text); }
.gm-warn { display: block; font-weight: 400; color: var(--warn); font-size: 12px; margin-top: 3px; }
.gm-loading { color: var(--muted); }
.gm-loading .spinner { width: 18px; height: 18px; border-width: 2px; margin: 0 8px 0 0; display: inline-block; vertical-align: middle; }
.gm-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--border); }
.gm-group:first-of-type { border-top: none; }
.gm-n { color: var(--muted); font-size: 12px; margin-right: 2px; }
.gm-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.gm-chips .chip { padding: 2px 9px; font-size: 12.5px; cursor: default; background: var(--bg); }
.gm-chips .chip:hover { border-color: var(--border); }
.gm-foot { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.gm-empty { color: var(--muted); }

/* 录取分数线：按专业名称搜索的开关与命中标记 */
.ckline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.ckline input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.mf-hits { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.mf-hits .chip { padding: 1px 8px; font-size: 12px; cursor: default; background: var(--accent-weak); border-color: var(--accent); color: var(--accent-text); }
.mf-hits .chip:hover { border-color: var(--accent); }

/* 组内专业：官方招生计划标识（区别于"按选科要求推导"） */
.gm-src { display: inline-block; font-weight: 400; font-size: 12px; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--accent-weak); color: var(--accent-text); }
.badge.b-official { background: #eaf6ee; color: #1f7a45; }
[data-theme="dark"] .badge.b-official { background: #17301f; color: #6cc48f; }
.badge.b-ref { background: #fdf6e3; color: #8a6d1a; }

/* 体检限制查询页：条件原文 chip（完整文字展示，折行） */
.bl-chip {
  display: inline-block; margin: 2px 6px 2px 0; padding: 3px 8px;
  font-size: 12.5px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--accent-weak, rgba(79,110,247,.06)); color: var(--text); max-width: 100%;
}

/* 专业组对比页：转置表格（行=维度，列=收藏的组） */
.cmp-wrap { overflow-x: auto; }
.cmp-table td, .cmp-table th { vertical-align: top; text-align: left; white-space: normal; }
.cmp-table .cmp-label { font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; width: 1%; }
.cmp-table .cmp-majors { max-width: 340px; line-height: 1.9; }
.cmp-table thead th { white-space: normal; min-width: 150px; }


[data-theme="dark"] .badge.b-ref { background: #332f1c; color: #e3c96b; }

/* ---------- 志愿推荐：冲 / 稳 / 保 ---------- */
.rk {
  display: inline-block; min-width: 24px; text-align: center; padding: 1px 8px;
  border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.7; white-space: nowrap;
}
.rk-chong { background: #fdf0e6; color: #b45309; }
.rk-wen   { background: #e8f0fe; color: #1a56db; }
.rk-bao   { background: #e7f6ec; color: #187a46; }
[data-theme="dark"] .rk-chong { background: #3a2a12; color: #f0b95e; }
[data-theme="dark"] .rk-wen   { background: #16243d; color: #86aaf9; }
[data-theme="dark"] .rk-bao   { background: #16301f; color: #5cd69a; }

.bucket-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.bucket-head .bucket-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.bucket-head .muted { font-size: 12px; }
.rec-table td.hist { font-size: 12px; color: var(--muted); white-space: nowrap; line-height: 1.5; }
.k {
  display: inline-block; padding: 0 7px; border-radius: 5px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.k-chong { background: #fdf0e6; color: #b45309; }
.k-wen   { background: #e8f0fe; color: #1a56db; }
.k-bao   { background: #e7f6ec; color: #187a46; }
[data-theme="dark"] .k-chong { background: #3a2a12; color: #f0b95e; }
[data-theme="dark"] .k-wen   { background: #16243d; color: #86aaf9; }
[data-theme="dark"] .k-bao   { background: #16301f; color: #5cd69a; }

/* ---------- 专业就业前景 ---------- */
.card-title { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.car-box {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  background: var(--bg); font-size: 13px;
}
.car-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.car-head .car-name { font-weight: 700; }
.car-head .muted { font-size: 12px; }
.car-trend {
  display: inline-block; padding: 1px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.car-trend.t0 { background: #eef0f3; color: #5b6270; }
.car-trend.t1 { background: #fdf0e6; color: #b45309; }
.car-trend.t2 { background: #e8f0fe; color: #1a56db; }
.car-trend.t3 { background: #e4f5f1; color: #0f766e; }
.car-trend.t4 { background: #e7f6ec; color: #187a46; }
[data-theme="dark"] .car-trend.t0 { background: #262a33; color: #9aa0ab; }
[data-theme="dark"] .car-trend.t1 { background: #3a2a12; color: #f0b95e; }
[data-theme="dark"] .car-trend.t2 { background: #16243d; color: #86aaf9; }
[data-theme="dark"] .car-trend.t3 { background: #12302c; color: #5bd6c1; }
[data-theme="dark"] .car-trend.t4 { background: #16301f; color: #5cd69a; }
.car-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 5px 0; border-top: 1px dashed var(--border); }
.car-block:first-of-type { border-top: none; }
.car-label { flex: none; width: 96px; color: var(--muted); font-size: 12.5px; }
.car-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.car-chips .chip { padding: 2px 9px; font-size: 12.5px; cursor: default; background: var(--card); }
.car-chips .chip:hover { border-color: var(--border); }
.car-pg { flex: 1; }
.car-foot { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; line-height: 1.55; }
@media (max-width: 768px) {
  .car-label { width: 100%; }
}

/* ---------- 高考升学途径（/pathways） ---------- */
.pw-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pw-card {
  display: block; padding: 16px; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.pw-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,24,40,.1); }
.pw-card .pw-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; }
.pw-card .pw-t svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.pw-card .pw-tag { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 7px; }
.pw-card .pw-ft { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--accent-text); font-size: 12px; }
.pw-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pw-info > div { background: var(--hover); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.65; }
.pw-info .k { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.pw-key { margin: 0; padding-left: 20px; }
.pw-key li { margin: 6px 0; font-size: 13.5px; line-height: 1.68; }
.pw-sec { margin-top: 12px; }
.pw-sec:first-child { margin-top: 0; }
.pw-sec h3 { font-size: 14px; margin-bottom: 4px; }
.pw-sec p { font-size: 13.5px; line-height: 1.75; }
.pw-schools { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; margin-top: 4px; }
.pw-schools .chip { font-size: 12.5px; }

/* ---------- 身体限招标记 ---------- */
.bl-tag {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px;
  font-size: 11px; line-height: 16px; vertical-align: 1px;
  color: #9a4a00; background: #fff2d9; border: 1px solid #f0d3a0; cursor: help;
}
.bl-warn { color: #9a4a00; }

/* ---------- 数据版本提示条 ---------- */
.ver-bar {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.7;
  background: var(--accent-weak); color: var(--text); border: 1px solid var(--border);
}
.ver-bar.ver-ref { background: #fff6e5; border-color: #f0d3a0; }
.ver-bar a { color: var(--accent-text); white-space: nowrap; }

/* ---------- 志愿草表 ---------- */
.pl-slot { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.pl-slot:first-child { border-top: none; }
.pl-idx { flex: none; width: 92px; color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.pl-main { flex: 1; min-width: 0; }
.pl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-row b { font-size: 14px; }
.pl-majors, .pl-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pl-pick { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.pl-err { margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: #c0392b; }
.pl-warn { color: #9a4a00; }
.pl-avoid { background: #fdecea !important; border-color: #f5b7b1 !important; color: #a93226 !important; }
.pl-limit { background: #fff2d9 !important; border-color: #f0d3a0 !important; }
.plan-btn { margin-left: 4px; }

/* ---------- 填报规则页 ---------- */
.rule-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.rule-nav .chip { font-size: 12.5px; }
.rule-card { margin-bottom: 14px; transition: box-shadow .15s, border-color .15s; }
.rule-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, rgba(79,110,247,.14)); }
.rule-hd { display: flex; align-items: flex-start; gap: 10px; }
.rule-hd > svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.rule-src { margin-top: 10px; color: var(--muted); font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-inner { gap: 8px; }
  .brand span { display: none; }
  .page-title { font-size: 19px; }
  main#view { padding-bottom: 90px; }
  .hero h1 { font-size: 23px; }
  .site-footer { padding-bottom: 110px; }
  /* 底部导航 */
  .bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    display: flex; background: var(--card); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .bottom-nav::-webkit-scrollbar { display: none; }
  .bottom-nav a {
    flex: 1 0 56px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 0 5px; color: var(--muted); font-size: 10.5px; white-space: nowrap;
  }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a.active { color: var(--accent-text); font-weight: 600; }
}
@media (min-width: 769px) { .bottom-nav { display: none; } }
/* 中等屏幕（平板）微调 */
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
