/* =============================================================================
 * query-upgrade.css —— 2026-07 查询体验升级配套样式
 * 覆盖点：① 学校查询“搜索→点选”候选与额度条 ② 一校一查确认弹窗
 *        ③ 学校档案内“分数线速查 / 指标到校·我的初中定位” ④ 政策 2026 三批次横幅
 *        ⑤ 学生端导航收敛（隐藏 分数线查询 / 指标到校 独立入口） ⑥ 市县地图外观
 * ========================================================================== */

/* ---------- ⑤ 学生端：查询组只留 学校查询 / 学校对比 / 位次查询 ---------- */
body[data-role="student"] #mainnav button[data-go="line"],
body[data-role="student"] #mainnav button[data-go="target"],
body[data-role="student"] .feat[data-go="line"],
body[data-role="student"] .feat[data-go="target"] { display: none !important; }

/* ---------- ① 学校查询：候选下拉 / 空态 / 额度条 ---------- */
.sug-hint { text-align: center; padding: 42px 18px 46px; color: var(--muted); border: 1.5px dashed var(--line, #e4ded2); border-radius: 14px; background: var(--card, #fff); }
.sug-hint .ico { font-size: 30px; margin-bottom: 8px; }
.sug-hint h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--ink); }
.sug-hint p { margin: 0 auto; max-width: 640px; font-size: 13px; line-height: 1.8; }

.sug-list { border: 1px solid var(--line, #e4ded2); border-radius: 13px; overflow: hidden; background: var(--card, #fff); box-shadow: 0 6px 22px rgba(30, 40, 30, .06); }
.sug-row { display: flex; align-items: center; gap: 9px; padding: 11px 14px; cursor: pointer; border-bottom: 1px dashed rgba(0, 0, 0, .06); transition: background .12s; }
.sug-row:last-child { border-bottom: none; }
.sug-row:hover { background: var(--pine-light, #eaf5f0); }
.sug-ava { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--pine, #0d8a76); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sug-nm { font-weight: 600; color: var(--ink); font-size: 13.5px; margin-right: 2px; }
.sug-go { margin-left: auto; color: var(--pine-dark, #0d6e5f); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sug-badge { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2.5px 8px; white-space: nowrap; }
.sug-badge.free { background: var(--pine-light, #e2f2ec); color: var(--pine-dark, #0d6e5f); }
.sug-badge.cost { background: #fff3e4; color: #a35a17; border: 1px solid #eed3ae; }

.sq-quota { margin: 0 0 12px; padding: 11px 14px; border: 1px solid #dbe7e0; border-left: 4px solid var(--pine, #0d8a76); border-radius: 11px; background: linear-gradient(180deg, #f3faf7, #fbfefd); }
.sq-quota .sq-line { font-size: 13px; color: #2e4a41; line-height: 1.7; }
.sq-quota .sq-line small { color: #7d948a; margin-left: 4px; }
.sq-quota .sq-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pine, #0d8a76); margin-right: 7px; vertical-align: 1px; }
.sq-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.sq-chip { border: 1px solid rgba(13, 138, 118, .35); background: #fff; color: var(--pine-dark, #0d6e5f); border-radius: 999px; padding: 4.5px 11px; font-size: 12px; cursor: pointer; transition: .12s; }
.sq-chip:hover { background: var(--pine-light, #e2f2ec); }
.sq-chip.jr { cursor: default; color: #6b7f9a; border-color: #ccd8e6; background: #f4f8fc; }

/* ---------- ② 一校一查 · 确认弹窗 ---------- */
.stu-unlock-mask { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(24, 30, 26, .42); backdrop-filter: blur(2px); padding: 18px; }
.stu-unlock-mask.on { display: flex; }
.stu-unlock-card { width: min(420px, 94vw); background: #fff; border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 18px 48px rgba(0, 0, 0, .22); text-align: center; }
.stu-unlock-card .suc-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 13px; background: var(--pine-light, #e2f2ec); color: var(--pine-dark, #0d6e5f); display: flex; align-items: center; justify-content: center; }
.stu-unlock-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink, #26302b); line-height: 1.5; }
.stu-unlock-card .suc-body { font-size: 13.5px; color: #3c4a44; }
.stu-unlock-card .suc-body .suc-left { color: var(--pine-dark, #0d6e5f); }
.stu-unlock-card .suc-note { margin-top: 10px; font-size: 12px; color: #8a948e; line-height: 1.7; text-align: left; background: #f7f8f7; border-radius: 9px; padding: 9px 11px; }
.stu-unlock-card .suc-btns { display: flex; gap: 10px; margin-top: 15px; }
.stu-unlock-card .suc-btns button { flex: 1; border-radius: 11px; padding: 10px 0; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.stu-unlock-card .suc-cancel { background: #f1f2f0; color: #5a655f; }
.stu-unlock-card .suc-ok { background: var(--pine, #0d8a76); color: #fff; }
.stu-unlock-card .suc-ok:hover { filter: brightness(1.06); }

/* ---------- ③ 学校档案 · 分数线速查 / 指标定位 ---------- */
.sch-lnbar { margin-top: 10px; }
.suit-gap { color: var(--muted, #8a948e); font-family: "DM Mono", monospace; font-size: 11px; margin-left: 2px; }
.zb-me { margin: 12px 0; border: 1px solid #d7d2f0; border-left: 4px solid #6c5ce7; border-radius: 12px; background: linear-gradient(180deg, #f7f5ff, #fcfbff); padding: 13px 15px; }
.zb-me.hint { display: flex; gap: 10px; align-items: baseline; font-size: 12.8px; color: #5b5378; line-height: 1.75; border-style: dashed; }
.zb-me.hint b { flex: none; color: #4a3f8a; }
.zb-me-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.zb-me-h > b { font-size: 14px; color: #4a3f8a; }
.zb-me-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; }
.zb-me-grid > div { font-size: 13px; color: #35304e; line-height: 1.6; }
.zb-me-grid i { display: block; font-style: normal; font-size: 11px; color: #8a82a8; margin-bottom: 2px; }
.zb-me-grid small { color: #8a82a8; font-size: 11px; }
.zb-me-q { font-family: var(--serif, Georgia, serif); font-size: 20px; color: #2b6ca3; }
tr.zb-mine td { background: #f4f0ff; }

/* ---------- ④ 政策 · 2026 三批次横幅与历年对照 ---------- */
.pol-2026-banner { margin: 6px 0 12px; padding: 13px 16px; border: 1px solid rgba(194, 69, 45, .35); border-left: 5px solid #C2452D; border-radius: 12px; background: linear-gradient(180deg, #fff6f2, #fffdfb); font-size: 13.2px; line-height: 1.85; color: #5a3a30; }
.pol-2026-banner b { color: #a63a24; }
.tag-mini.pol-old { background: #efe9dc; color: #7a6a4a; }
.tag-mini.pol-gone { background: #fbe3da; color: #b8452c; }
.pol-legacy-wrap { margin-top: 26px; border: 1.5px dashed #d9cdb8; border-radius: 13px; background: #fbf8f1; padding: 4px 14px 14px; }
.pol-legacy-wrap > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 2px; }
.pol-legacy-wrap > summary::-webkit-details-marker { display: none; }
.pol-legacy-wrap .pol-legacy-t { font-weight: 800; font-size: 13.5px; color: #7a6a4a; }
.pol-legacy-wrap > summary .cl-cv { margin-left: auto; color: #a3988a; transition: transform .15s; }
.pol-legacy-wrap[open] > summary .cl-cv { transform: rotate(180deg); }
.cl-row.pol-legacy { opacity: .93; }
.cl-row.pol-legacy summary .cl-main > b { color: #6f6250; }

/* ---------- ⑥ 市县地图（卷四）外观 ---------- */
.cz-map .cz-sea { fill: #d6e8f8; }
.cz-map .cz-land { fill: #f8f4e6; stroke: #b9c9a8; stroke-width: 2; stroke-linejoin: round; }
.cz-map .cz-strait { fill: #4a7fb5; font-size: 13px; font-weight: 700; letter-spacing: 7px; opacity: .85; }
.cz-map .cz-seaname { fill: #6f97bd; font-size: 11.5px; letter-spacing: 4px; }
.cz-map .cz-inset rect { fill: #e6f0fa; stroke: #9db8d4; stroke-dasharray: 4 3; stroke-width: 1; }
.cz-map .cz-inset text { fill: #6f97bd; font-size: 9.5px; letter-spacing: 1px; }
.cz-map .cz-lab { paint-order: stroke; stroke: #ffffff; stroke-width: 3px; stroke-linejoin: round; }

@media (max-width: 640px) {
  .zb-me-grid { grid-template-columns: 1fr 1fr; }
  .stu-unlock-card { padding: 18px 16px 14px; }
}

/* ---------- ⑦ 2026-07 需求一:指标到校「目标高中」匹配横幅 + 命中行高亮 ---------- */
.tg-goal { margin: 10px 0; padding: 13px 15px; border-radius: 12px; font-size: 13px; line-height: 1.75; }
.tg-goal.hit { border: 1px solid #e3cf95; border-left: 4px solid #c9971f; background: linear-gradient(180deg, #fdf7e4, #fffdf5); color: #6b5312; }
.tg-goal.miss { border: 1px solid #d5dde5; border-left: 4px solid #7d93a8; background: linear-gradient(180deg, #f4f7fa, #fbfdff); color: #46586a; }
.tg-goal-h { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.tg-goal.hit .tg-goal-h { color: #9a6d05; }
.tg-goal.miss .tg-goal-h { color: #3f5972; }
.tg-goal-row { margin-top: 4px; }
.tg-goal-row b { font-variant-numeric: tabular-nums; }
tr.zb-goalrow { background: linear-gradient(90deg, #fdf3d3, #fffbef) !important; box-shadow: inset 3px 0 0 #c9971f; }
tr.zb-goalrow td.nm { font-weight: 800; }
tr.zb-goalrow.zb-landed { background: linear-gradient(90deg, #fbeec2, #fff8e2) !important; }
.tg-goal-flag { display: inline-block; font-size: 10.5px; font-weight: 800; color: #9a6d05; background: #fbedc4; border: 1px solid #e8d190; border-radius: 6px; padding: 1.5px 6px; margin-right: 5px; vertical-align: 1px; }

/* ---------- ⑧ 2026-07 需求五:学生端隐藏「学生管理」独立入口(填写已上移到报告页顶部「考生信息」) ---------- */
body[data-role="student"] #mainnav button[data-go="students"],
body[data-role="student"] .feat[data-go="students"] { display: none !important; }

/* ---------- ⑨ 2026-07 需求十:访客核验卡 / 学生两段式解锁 ---------- */
.brief-card { border: 1px solid var(--line, #e4ded2); border-radius: 15px; background: var(--card, #fff); padding: 18px 20px; margin-top: 14px; box-shadow: 0 8px 26px rgba(30, 40, 30, .06); }
.brief-foot { margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 12.8px; line-height: 1.8; color: #3c4a44; }
.brief-foot.anon { background: linear-gradient(180deg, #f3faf7, #fbfefd); border: 1px solid #d5e6dd; border-left: 4px solid var(--pine, #0d8a76); }
.brief-foot.stu { background: linear-gradient(180deg, #fff8ee, #fffdf8); border: 1px solid #eed9b5; border-left: 4px solid #d98a2b; color: #6b5535; }
.sq-quota.anon-note { border-left-color: #7d93a8; background: linear-gradient(180deg, #f4f7fa, #fbfdff); }
.sq-quota.anon-note .sq-dot { background: #7d93a8; }

/* ---------- ⑩ 2026-07 三批:学生端草表提示 / 通用确认门沿用原样式 ---------- */
.df-stu-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #33503f; background: #eef7f0; border: 1px solid #bfe3c9; border-radius: 9px; padding: 7px 11px; line-height: 1.6; max-width: 560px; }
