/* =========================================================
   ZDKHot 功能页样式
   覆盖侧栏「内容 / 招考 / 更多」三组共 11 个页面的呈现：
   热点榜、招考日报、专题、收藏、分数线速查、政策原文库、
   关于、更新日志、反馈。
   命名统一 pv- 前缀，避免与 style.css / tools.css 冲突。
   ========================================================= */

/* ---------------- 容器 ---------------- */

.page-view { animation: pvIn .26s ease; }
@keyframes pvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pv-sec {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.pv-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pv-h {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  line-height: 1.25;
}
.pv-hint { font-size: 12.5px; color: var(--text-3); }
.pv-note {
  font-size: 12px;
  color: var(--text-3);
  margin: 14px 0 0;
  line-height: 1.7;
}
.pv-lead { font-size: 13.5px; color: var(--text-2); line-height: 1.8; margin: 0 0 16px; }
.pv-muted { color: var(--text-3); }
.pv-loading { padding: 34px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* ---------------- 空态 ---------------- */

.pv-empty { padding: 40px 20px; text-align: center; }
.pv-empty-ic { font-size: 22px; color: var(--text-3); opacity: .55; margin-bottom: 8px; }
.pv-empty-t { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.pv-empty-h { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }

/* ---------------- 通用小组件 ---------------- */

.pv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--text-2);
  font-family: inherit;
}
.pv-chip em { font-style: normal; color: var(--text-3); font-size: 11.5px; margin-left: 3px; }
.pv-chip.is-btn { cursor: pointer; transition: .14s; }
.pv-chip.is-btn:hover { border-color: var(--brand-line); color: var(--brand); }
.pv-chip.is-btn.is-on {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-dark);
  font-weight: 600;
}

/* 高校大全：标签筛选（层次 / 联盟 / 行业直属） */
.uni-tags-filter { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.utg { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.utg-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-right: 2px;
  min-width: 52px;
}
.utag.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 分数线速查：科类筛选行（与省份筛选行分开，避免 30+ 个 chip 挤成一片） */
.pv-chips-kind { margin-top: 8px; }
.pv-chips-lab {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-right: 2px;
}

.pv-btn-ghost {
  margin-left: auto;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  font-family: inherit;
  cursor: pointer;
  transition: .14s;
}
.pv-btn-ghost:hover { border-color: #f0c4c4; color: #c0392b; background: #fef6f6; }

.pv-back {
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  font-family: inherit;
  cursor: pointer;
}
.pv-back:hover { border-color: var(--brand-line); color: var(--brand); }

.pv-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.pv-kv {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
}
.pv-kv b { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; margin-bottom: 3px; }
.pv-kv span { font-size: 14px; font-weight: 600; color: var(--text); }

/* 占位：侧栏徽标与收藏按钮 */

.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef0f4;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-item.is-active .nav-count { background: #fff; color: var(--brand); }

.star-btn {
  border: 0;
  background: transparent;
  padding: 2px;
  line-height: 0;
  cursor: pointer;
  color: #c9ccd4;
  border-radius: 6px;
  transition: color .14s, background .14s, transform .14s;
}
.star-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.star-btn:hover { color: #f5a623; background: #fff8ec; transform: scale(1.08); }
.star-btn.is-on { color: #f5a623; }
.star-btn.is-on svg { fill: #f5a623; }

.pv-star-list .item { margin-bottom: 0; }
.item.is-starred .item-card { background: #fffdf7; border-color: #f4e3bf; }

/* ---------------- 热点榜 ---------------- */

.pv-hot-list { list-style: none; margin: 0; padding: 0; }
.pv-hot-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.pv-hot-row:last-child { border-bottom: 0; }
.pv-hot-rank {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pv-hot-body { flex: 1; min-width: 0; }
.pv-hot-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.pv-hot-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; }
.pv-avatars { display: inline-flex; gap: 3px; }
.pv-avatars .av {
  width: 18px; height: 18px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.pv-hot-heat { flex: none; width: 128px; display: flex; align-items: center; gap: 8px; }
.pv-hot-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd9a0, #f76b15);
  min-width: 4px;
}
.pv-hot-heat b { font-size: 12.5px; color: #b25b00; font-variant-numeric: tabular-nums; }

/* ---------------- 招考日报 ---------------- */

.pv-daily-wrap { display: flex; flex-direction: column; gap: 14px; }
.pv-daily {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  background: #fcfdff;
}
.pv-daily-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; }
.pv-daily-date { font-size: 15px; font-weight: 700; color: var(--text); }
.pv-daily-week { font-size: 12px; color: var(--text-3); }
.pv-daily-n {
  margin-left: auto;
  font-size: 12px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 2px 10px;
}
.pv-daily-sum { margin: 0 0 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.pv-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--brand);
  text-decoration: none;
}
.pv-more:hover { text-decoration: underline; }

/* ---------------- 原文链接列表 ---------------- */

.pv-link-list { list-style: none; margin: 0; padding: 0; }
.pv-link-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.pv-link-item:last-child { border-bottom: 0; }
.pv-li-date {
  flex: none;
  width: 78px;
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.pv-li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pv-li-title { line-height: 1.55; }
.pv-li-title a { color: var(--text); text-decoration: none; }
.pv-li-title a:hover { color: var(--brand); }
.pv-li-extra { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.pv-li-src { flex: none; font-size: 11.5px; color: var(--text-3); padding-top: 3px; max-width: 150px; }

/* ---------------- 专题 ---------------- */

.pv-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px;
}
.pv-topic {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 15px 17px;
  font-family: inherit;
  cursor: pointer;
  transition: .16s;
}
.pv-topic:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pv-topic.is-empty { opacity: .62; }
.pv-topic-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.pv-topic-n {
  font-size: 11.5px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 1px 9px;
}
.pv-topic-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.65; }
.pv-topic-latest {
  font-size: 12px;
  color: var(--text-2);
  border-top: 1px dashed var(--border);
  padding-top: 7px;
  margin-top: 3px;
  width: 100%;
  line-height: 1.6;
}

/* ---------------- 分数线速查 ---------------- */

.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pv-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg-soft);
}
.pv-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.pv-table tbody tr:last-child td { border-bottom: 0; }
.pv-table b { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.pv-td-name { font-weight: 600; }
/* 控制线一列是「429 分」这种带单位的短值。列宽紧的时候「分」会被挤到下一行，
   整张表看着像每行都断了一次；这里禁止换行，窄屏交给外层 .pv-lines-wrap 横向滚动。 */
.pv-td-score { white-space: nowrap; }
.pv-td-note { color: var(--text-3); font-size: 12.5px; }

/* 科类徽章：物理类 / 历史类 / 文史 / 理工 / 文科 / 理科 / 不分文理
   每一行都标出「这条线管哪一类考生」，3+3 省份显式写「不分文理」，
   免得孤零零一条本科线被读成「数据缺了」。 */
.pv-td-kind { white-space: nowrap; }
.pv-kind {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
}
.pv-kind.k-wl { background: #eef3ff; color: #2f5bd0; border-color: #d9e3ff; }
.pv-kind.k-ls { background: #fff4e8; color: #a8620f; border-color: #ffe1c2; }
.pv-kind.k-ws { background: #f6effc; color: #7238ad; border-color: #e9dbf7; }
.pv-kind.k-lg { background: #e9f7f2; color: #0f7a60; border-color: #cfece3; }
.pv-kind.k-wk { background: #f6effc; color: #7238ad; border-color: #e9dbf7; }
.pv-kind.k-lk { background: #e9f7f2; color: #0f7a60; border-color: #cfece3; }
.pv-kind.k-na { background: var(--bg-soft); color: var(--text-3); border-color: var(--border); }

/* 全省一览：31 省 × 各批次控制线合成一张长表，表头吸顶、限定高度可滚动 */
.pv-lines-wrap {
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pv-lines-wrap .pv-table { font-size: 13px; }
.pv-lines-wrap .pv-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.pv-td-prov {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-soft);
}
.pv-lines-wrap .pv-table tbody tr[data-prov] { cursor: pointer; }
.pv-lines-wrap .pv-table tbody tr[data-prov]:hover td { background: var(--bg-soft); }

/* ---------------- 高考分数查询入口（独立页） ----------------
   状态卡 + 31 省入口表。表格沿用 .pv-table，这里只补这一页独有的几件。 */
.se-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--bg-soft);
}
.se-status-ic { font-size: 20px; line-height: 1.2; color: var(--brand); }
.se-status b { display: block; font-size: 14px; color: var(--text); }
.se-status p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }
.se-badge {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.se-badge.is-on { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); }
.se-entry { display: flex; flex-direction: column; gap: 3px; }
.se-link {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.se-link:hover { text-decoration: underline; }
.se-org { font-size: 11.5px; color: var(--text-3); }
.se-td-ref { white-space: nowrap; color: var(--text-3); font-size: 12.5px; }
.se-wrap {
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.se-wrap .pv-table th { position: sticky; top: 0; z-index: 1; background: var(--bg-soft); }
/* 「最近核查」现在是状态卡之后的独立区块，不再需要跟表格画分隔线 */
.se-check .pv-kv-grid { margin-bottom: 10px; }

/* ---- 报考参考（v0.141）：高校大全的参考筛选条与卡片徽章 ---- */
.uni-ref-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 4px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft);
}
.uni-ref-lab { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.uni-ref-select {
  padding: 5px 9px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 12.5px;
}
.uni-ref-hint { font-size: 11.5px; color: var(--text-3); }
.uni-tag.is-ref { border-color: var(--brand); color: var(--brand); }

/* ---- 数据说明：城市产业与来源台账 ---- */
.ref-h4 { margin: 16px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.ref-details { margin: 6px 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; }
.ref-details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ref-table { margin-top: 8px; }
.ref-details .pv-note { margin: 8px 0 0; }

/* ---------------- 政策原文库 ---------------- */

.pv-lib-bar { margin-bottom: 12px; }
.pv-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 340px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
}
.pv-search svg { width: 15px; height: 15px; fill: none; stroke: var(--text-3); stroke-width: 1.8; flex: none; }
.pv-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.pv-src-group { margin-bottom: 16px; }
.pv-src-group:last-child { margin-bottom: 0; }
.pv-src-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 4px;
}
.pv-src-name { font-size: 13.5px; font-weight: 600; }
.pv-src-n { font-size: 12px; color: var(--text-3); }

/* ---------------- 关于 ---------------- */

.pv-about { max-width: 720px; }
.pv-about p { font-size: 13.5px; line-height: 1.9; color: var(--text-2); margin: 10px 0 0; }
.pv-about .pv-h { margin-bottom: 12px; }

/* ---------------- 站名释义：Z / D / K / Hot 逐字对上「中大考热点」 ---------------- */

.pv-name {
  margin-bottom: 20px;
  padding: 20px 16px 18px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  text-align: center;
}
.pv-name-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.pv-name-cell {
  min-width: 64px;
  padding: 9px 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pv-name-cell .c {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand);
  line-height: 1.2;
}
.pv-name-cell .w {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.3;
}
.pv-name-tag {
  margin-top: 13px;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: .16em;
  padding-left: .16em;
}

.pv-tips { margin: 0; padding-left: 20px; }
.pv-tips li { font-size: 13.5px; line-height: 1.9; color: var(--text-2); margin-bottom: 7px; }
.pv-tips b { color: var(--text); }

.pv-src-table { display: flex; flex-direction: column; gap: 2px; }
.pv-src-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.pv-src-line:nth-child(odd) { background: var(--bg-soft); }
.pv-src-line-name { flex: 1; min-width: 0; }
.pv-src-line-kind, .pv-src-line-prov { color: var(--text-3); font-size: 12px; }
.pv-src-line-prov { width: 62px; }
.pv-src-line-ok { font-size: 12px; color: #1a7f4b; }
.pv-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #c9ccd4; }
.pv-dot.is-ok { background: #30a46c; }
.pv-dot.is-bad { background: #e5484d; }

/* ---------------- 更新日志 ---------------- */

.pv-timeline { position: relative; padding-left: 20px; }
.pv-timeline:before {
  content: "";
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border-strong);
}
.pv-tl-item { position: relative; padding-bottom: 20px; }
.pv-tl-item:last-child { padding-bottom: 0; }
.pv-tl-dot {
  position: absolute;
  left: -20px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}
.pv-tl-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.pv-tl-date { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pv-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 1px 9px;
}
.pv-tl-title { font-size: 14px; font-weight: 600; }
.pv-tl-list { margin: 0; padding-left: 18px; }
.pv-tl-list li { font-size: 13px; line-height: 1.85; color: var(--text-2); }

/* ---------------- 反馈 ---------------- */

/* 「反馈」页上打开右侧意见抽屉的按钮 */
.pv-fb-open {
  margin: 0 0 16px;
  padding: 9px 18px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pv-fb-open:hover { background: #e3edff; border-color: var(--brand); }

.pv-fb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pv-fb-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: #fcfdff;
}
.pv-fb-ic { font-size: 17px; color: var(--brand); display: block; margin-bottom: 7px; }
.pv-fb-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.pv-fb-card p { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.75; }

/* ---------------- 订阅（关于页） ---------------- */

.pv-sub-row {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 14px; flex-wrap: wrap;
}
.pv-sub-label { font-size: 12.5px; color: var(--text-3); flex: none; }
.pv-sub-select,
.pv-sub-url {
  height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text-1); background: #fff; padding: 0 10px;
}
.pv-sub-select { flex: none; min-width: 108px; cursor: pointer; }
.pv-sub-url {
  flex: 1 1 240px; min-width: 0; font-family: ui-monospace, Consolas, monospace;
  color: var(--text-2); background: #fbfcfe; cursor: text;
}
.pv-sub-url:focus { outline: none; border-color: var(--brand); background: #fff; }
.pv-sub-copy {
  flex: none; height: 34px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600;
}
.pv-sub-copy:hover { filter: brightness(1.06); }
.pv-tips code {
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  background: #f2f5fa; border-radius: 4px; padding: 1px 5px; color: var(--text-2);
}

/* ---------------- 窄屏 ---------------- */

@media (max-width: 720px) {
  .pv-hot-heat { display: none; }
  .pv-li-date { width: 62px; font-size: 11.5px; }
  .pv-li-src { display: none; }
  .pv-sec { padding: 16px 15px; }
}

/* ---------------- 学校大全 ---------------- */

.sch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.sch-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 17px;
  background: #fff;
  transition: border-color .15s;
}
.sch-card:hover { border-color: var(--brand-line); }
.sch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.sch-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.sch-rank {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 7px;
  padding: 3px 8px;
  white-space: nowrap;
}
.sch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}
.sch-tag {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.sch-tag.is-tier {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: var(--brand-line);
  font-weight: 600;
}
.sch-intro {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.sch-rows {
  border-top: 1px dashed var(--border-strong);
  padding-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sch-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.sch-row-lab { flex: none; color: var(--text-3); }
.sch-row-val {
  color: var(--text-2);
  min-width: 0;
  word-break: break-all;
}
.sch-row-val a { color: var(--brand); text-decoration: none; }
.sch-row-val a:hover { text-decoration: underline; }

/* 初中分配生卡片 */
.sch-junior { border-left: 3px solid var(--brand-line); }
.sch-quota {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  padding: 3px 8px;
  white-space: nowrap;
}
.sch-detail { margin-top: 2px; }
.sch-detail summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--brand);
  user-select: none;
}
.sch-detail summary:hover { text-decoration: underline; }
.sch-quota-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.sch-q-item {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}
.sch-q-item b {
  color: var(--brand-dark);
  font-weight: 700;
  margin-right: 3px;
}

/* ---------------- 学校对比 ---------------- */

.sch-head-r {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.sch-cmp {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .14s;
}
.sch-cmp:hover { border-color: var(--brand); color: var(--brand); }
.sch-cmp.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.sch-cmp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.sch-cmp-picked {
  font-size: 13px;
  color: var(--brand-dark);
  flex: 1 1 260px;
  min-width: 0;
}
.sch-cmp-wrap { overflow-x: auto; }
.sch-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}
.sch-cmp-table th, .sch-cmp-table td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.sch-cmp-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.sch-cmp-table td { color: var(--text-2); }
.sch-cmp-table .sch-cmp-dim {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 90px;
}
.sch-cmp-table td a { color: var(--brand); text-decoration: none; }
.sch-cmp-table td a:hover { text-decoration: underline; }

/* ---------------- 高校大全 ---------------- */

.uni-card { border-top: 3px solid var(--brand-line); }
.uni-rank {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  padding: 3px 8px;
  white-space: nowrap;
}
.uni-tag {
  font-size: 11px;
  color: #fff;
  background: #c05621;
  border-radius: 5px;
  padding: 2px 7px;
  font-weight: 600;
}
.uni-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.uni-major {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

.uni-search { margin-bottom: 12px; }
.uni-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.uni-search input:focus { border-color: var(--brand); outline: none; }

/* 分页条 */
.uni-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.uni-pg[disabled] { opacity: .45; cursor: default; }
.uni-pg-ell { color: var(--text-3); padding: 0 2px; }
.uni-pager-info { margin-left: auto; color: var(--text-3); font-size: 12.5px; }

/* 高校大全：数据说明入口 */
.uni-doc-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
}
.uni-doc-link:hover { text-decoration: underline; }

/* 文档页：内容较宽，允许横向滚动，避免表格撑破布局 */
.doc-sec { overflow-x: auto; }
.doc-sec .doc-wrap { max-width: 100%; }

/* 历史人文折叠块 */
.uni-culture-box { margin: 0 0 10px; }
.uni-culture-box > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--brand);
  list-style: none;
  user-select: none;
}
.uni-culture-box > summary::-webkit-details-marker { display: none; }
.uni-culture-box > summary::before { content: '▸ '; color: var(--text-3); }
.uni-culture-box[open] > summary::before { content: '▾ '; }
.uni-culture-text {
  margin: 6px 0 0;
  padding: 9px 11px;
  background: #fbfaf7;
  border-left: 3px solid var(--brand-line);
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* 知名人物标签 */
.uni-figures { display: flex; flex-wrap: wrap; gap: 5px; }
.uni-figure {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 11px;
  background: #f4f1ea;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.uni-figure-more { background: transparent; color: var(--text-3); border-style: dashed; }

/* 录取分数线：可展开看各省各年投档最低分 */
.uni-score-box summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: 12.5px;
  list-style: none;
}
.uni-score-box summary::-webkit-details-marker { display: none; }
.uni-score-box summary::before { content: '▸ '; color: var(--text-3); }
.uni-score-box[open] summary::before { content: '▾ '; }
.uni-score-list { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.uni-score-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.uni-score-item b { color: var(--text); font-weight: 600; }

.uni-major-cmp { margin: 18px 0; }
.uni-major-cmp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.uni-major-cmp-head strong { font-size: 14px; color: var(--text); }
.uni-major-cmp-hint { font-size: 12px; color: var(--text-3); }
.uni-major-cmp-head select {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
}
