/* ============ 智愿通 · 高考志愿填报系统 ============ */
:root {
  --brand: #1a5cff;
  --brand-2: #4f8bff;
  --brand-dark: #1240b8;
  --brand-soft: #eef3ff;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --muted: #86909c;
  --line: #e6eaf2;
  --bg: #f4f7fc;
  --white: #fff;
  --chong: #ff7d45;
  --wen: #14b866;
  --bao: #1a5cff;
  --dian: #7c6cf5;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(23, 43, 91, .06);
  --shadow-lg: 0 12px 34px rgba(23, 43, 91, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { border: 0; vertical-align: middle; }
button, input, select { font-family: inherit; font-size: 14px; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { margin: 26px 0; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 19px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ""; width: 4px; height: 17px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.section-sub { color: var(--muted); font-size: 13px; margin-left: 4px; font-weight: 400; }
.more-link { color: var(--muted); font-size: 13px; }
.more-link:hover { color: var(--brand); }
.hide { display: none !important; }

/* ---------- 顶栏 ---------- */
header.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1a5cff, #4f8bff); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px rgba(26, 92, 255, .28);
}
.logo-text b { font-size: 17px; letter-spacing: .5px; }
.logo-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1.4px; margin-top: -2px; }
nav.mainnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav.mainnav::-webkit-scrollbar { display: none; }
nav.mainnav a { padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; transition: .16s; }
nav.mainnav a:hover { background: var(--brand-soft); color: var(--brand); }
nav.mainnav a.active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 6px 14px rgba(26, 92, 255, .24); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pill-badge { background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; padding: 5px 10px; border-radius: 20px; border: 1px solid #dbe6ff; }
.btn-ghost { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 9px; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 按钮 ---------- */
.btn { border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; transition: .16s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(26, 92, 255, .22); }
.btn-primary:hover { background: #0f4ee6; }
.btn-light { background: var(--brand-soft); color: var(--brand); }
.btn-light:hover { background: #e2ebff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-disabled { background: #eef0f5; color: #a9b0bd; cursor: not-allowed; box-shadow: none; }

/* ---------- 首页 Hero ---------- */
.hero {
  margin-top: 26px; border-radius: 22px; padding: 42px 44px 38px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 88% -10%, #63a0ff 0%, #2f6cff 42%, #1644c8 100%);
  box-shadow: 0 18px 40px rgba(26, 76, 214, .26);
}
.hero::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 68%);
}
.hero h1 { margin: 0; font-size: 30px; letter-spacing: .6px; }
.hero .hero-sub { margin: 10px 0 24px; color: rgba(255, 255, 255, .84); font-size: 14px; }
.hero-search {
  background: #fff; border-radius: 14px; padding: 8px; display: flex; gap: 8px; max-width: 660px;
  box-shadow: 0 12px 30px rgba(9, 32, 90, .25);
}
.hero-search input { flex: 1; border: 0; outline: 0; padding: 8px 12px; color: var(--ink); }
.hero-search .btn { padding: 10px 22px; }
.hero-stats { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats .st b { font-size: 24px; font-weight: 700; }
.hero-stats .st span { display: block; color: rgba(255, 255, 255, .75); font-size: 12px; letter-spacing: .5px; }
.hero-links { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.hero-links a { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); padding: 7px 14px; border-radius: 20px; font-size: 13px; }

/* ---------- 工具入口 ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { background: #fff; border-radius: var(--radius); padding: 18px 16px; text-align: center; box-shadow: var(--shadow); transition: .18s; border: 1px solid transparent; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d9e4ff; }
.tool-ico { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0; }
.tool-card b { display: block; font-size: 15px; }
.tool-card small { color: var(--muted); font-size: 12px; }

/* ---------- 院校卡 ---------- */
.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.school-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: .18s; cursor: pointer; border: 1px solid transparent; position: relative; }
.school-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #dbe6ff; }
.sc-head { display: flex; gap: 12px; align-items: flex-start; }
.sc-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #f7f9fd; border: 1px solid var(--line); flex-shrink: 0; }
.sc-name { font-size: 16px; font-weight: 700; line-height: 1.35; }
.sc-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #f2f5fa; color: #5a6478; border: 1px solid #e8ecf4; }
.tag.hot { background: #fff3ea; color: #e2652a; border-color: #ffe0cc; }
.tag.blue { background: var(--brand-soft); color: var(--brand); border-color: #dbe6ff; }
.tag.green { background: #eafaf1; color: #0f9c56; border-color: #d3f3e2; }
.sc-scores { display: flex; gap: 8px; margin-top: 12px; }
.score-box { flex: 1; background: #f8fafe; border: 1px solid #eef1f7; border-radius: 9px; padding: 7px 10px; }
.score-box i { font-style: normal; font-size: 11px; color: var(--muted); display: block; }
.score-box b { font-size: 17px; color: var(--brand); }
.score-box em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 11px 12px; background: #f7f9fd; white-space: nowrap; font-size: 12.5px; }
table.tbl th:first-child { border-radius: 9px 0 0 9px; }
table.tbl th:last-child { border-radius: 0 9px 9px 0; }
table.tbl td { padding: 12px; border-bottom: 1px solid #f0f3f9; }
table.tbl tr:hover td { background: #fafcff; }
table.tbl .num { font-weight: 700; color: var(--brand); }
table.tbl .muted { color: var(--muted); }
.rank-medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #f0f3fa; color: #5a6478; font-weight: 700; font-size: 12px; }
.rank-medal.top1 { background: #ffe9d6; color: #c85a1b; }
.rank-medal.top2 { background: #eaf0ff; color: #2c56c4; }
.rank-medal.top3 { background: #eafaf1; color: #12895a; }

/* ---------- 省份快查 ---------- */
.prov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.prov-cell { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; transition: .16s; cursor: pointer; }
.prov-cell:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(26, 92, 255, .1); }
.prov-cell b { font-size: 14.5px; }
.prov-cell .pl { display: flex; gap: 14px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.prov-cell .pl em { font-style: normal; color: var(--brand); font-weight: 700; }

/* ---------- 日程 / 资讯 ---------- */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.timeline { padding-left: 6px; }
.tl-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #edf0f6; }
.tl-item:last-child { border-bottom: 0; }
.tl-date { width: 56px; flex-shrink: 0; text-align: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 8px; padding: 6px 0; font-weight: 700; font-size: 12px; height: 40px; }
.tl-body b { font-size: 14px; }
.tl-body small { display: block; color: var(--muted); }
.news-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #edf0f6; }
.news-item:last-child { border-bottom: 0; }
.news-item .nd { color: var(--muted); font-size: 12px; width: 66px; flex-shrink: 0; }
.news-item .nt { flex: 1; }
.news-item .nt b { font-weight: 500; font-size: 13.5px; }
.news-item .nt small { color: var(--muted); font-size: 11.5px; }

/* ---------- 页头（内页） ---------- */
.pagehead { padding: 30px 0 6px; }
.pagehead h1 { font-size: 26px; margin: 0; }
.pagehead p { color: var(--muted); margin: 8px 0 0; }

/* ---------- 筛选栏 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px 20px; }
.filters select, .filters input[type=text], .filters input[type=number] {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: #fff; color: var(--ink); outline: 0; min-width: 120px;
}
.filters select:focus, .filters input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 92, 255, .1); }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 6px 13px; border-radius: 20px; font-size: 13px; color: var(--ink-2); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip:hover { border-color: #b9ccff; }
.search-inline { flex: 1; min-width: 220px; position: relative; }
.search-inline input { width: 100%; padding-left: 34px !important; }
.search-inline svg { position: absolute; left: 11px; top: 11px; width: 15px; height: 15px; opacity: .5; }
.result-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; color: var(--muted); font-size: 13px; }

/* ---------- 智能选志愿 ---------- */
.vol-form { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 22px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.field select, .field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: 0; background: #fff; }
.field select:focus, .field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 92, 255, .1); }
.summary-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 18px; align-items: center; padding: 16px 22px; background: linear-gradient(90deg, #f4f8ff, #fff); border-radius: 12px; }
.summary-bar .sb { font-size: 13px; color: var(--ink-2); }
.summary-bar .sb b { display: block; font-size: 21px; color: var(--brand); }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.tabs { display: flex; gap: 6px; padding: 0 22px 4px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 9px; color: var(--ink-2); font-size: 14px; background: transparent; border: 0; }
.tab.on { background: var(--brand); color: #fff; font-weight: 600; }
.tab:hover { background: var(--brand-soft); color: var(--brand); }
.tab.on:hover { background: var(--brand); color: #fff; }
.vlist { padding: 8px 22px 22px; }
.vrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f1f4f9; }
.vrow:last-child { border-bottom: 0; }
.vrow .prob { width: 62px; flex-shrink: 0; text-align: center; }
.vrow .prob b { font-size: 19px; }
.vrow .prob small { display: block; font-size: 11px; color: var(--muted); }
.vrow .info { flex: 1; min-width: 0; }
.vrow .info b { font-size: 15px; }
.vrow .info .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.vrow .cta { flex-shrink: 0; }
.badge-chong { background: #fff0e8; color: #e2652a; }
.badge-wen { background: #eafaf1; color: #0f9c56; }
.badge-bao { background: var(--brand-soft); color: var(--brand); }
.badge-dian { background: #f2f0ff; color: #6a58e8; }
.badge-meng { background: #f1f3f7; color: #8b93a7; }
.lv-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* ---------- 志愿表 ---------- */
.vol-table { padding: 4px 0; }
.slot { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #f1f4f9; }
.slot:last-child { border-bottom: 0; }
.slot .no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f2f5fa; color: var(--ink-2); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.slot .nm { flex: 1; min-width: 0; }
.slot .nm b { font-size: 14.5px; }
.slot .nm small { display: block; color: var(--muted); font-size: 12px; }
.slot .ops { display: flex; gap: 4px; }
.icon-btn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--muted); line-height: 1; font-size: 13px; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 44px 20px; font-size: 13.5px; }

/* ---------- 一分一段 ---------- */
.query-box { display: flex; gap: 10px; align-items: center; padding: 18px 22px; flex-wrap: wrap; }
.query-box input { width: 150px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: 0; }
.query-result { background: linear-gradient(135deg, #eef4ff, #fff); border: 1px solid #dfe9ff; border-radius: 12px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-2); }
.query-result b { color: var(--brand); font-size: 17px; }

/* ---------- PK ---------- */
.pk-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; align-items: start; }
.pk-slot { padding: 18px; }
.pk-vs { display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 18px; padding-top: 60px; }
.pk-row { display: grid; grid-template-columns: 1fr 150px 1fr; border-bottom: 1px solid #f1f4f9; }
.pk-row div { padding: 12px 16px; }
.pk-row .lab { text-align: center; color: var(--muted); font-size: 12.5px; background: #fafbfe; }
.pk-win { color: var(--brand); font-weight: 700; }
.pk-bar { height: 6px; border-radius: 4px; background: #eef1f8; margin-top: 6px; overflow: hidden; }
.pk-row .pk-bar { padding: 0; }
.pk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1a5cff, #6fa0ff); }

/* ---------- 详情页 ---------- */
.detail-head { display: flex; gap: 20px; padding: 26px; align-items: flex-start; }
.detail-logo { width: 82px; height: 82px; border-radius: 14px; object-fit: contain; background: #f7f9fd; border: 1px solid var(--line); flex-shrink: 0; }
.detail-head h1 { font-size: 26px; margin: 0 0 6px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 30px; margin-top: 16px; }
.kv div { font-size: 13px; color: var(--ink-2); }
.kv span { color: var(--muted); margin-right: 8px; }
.split-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.side-card { position: sticky; top: 84px; }

/* ---------- 报告 ---------- */
.report { background: #fff; border-radius: var(--radius); padding: 40px 46px; box-shadow: var(--shadow); }
.report-head { border-bottom: 2px solid var(--brand); padding-bottom: 16px; margin-bottom: 22px; }
.report-head h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: 1px; }
.report-head .rmeta { color: var(--muted); font-size: 12.5px; display: flex; gap: 20px; flex-wrap: wrap; }
.rep-block { margin-top: 26px; }
.rep-block h3 { font-size: 15.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.rep-block h3::before { content: ""; width: 3px; height: 14px; background: var(--brand); border-radius: 2px; }
.alert { background: #fff8f0; border: 1px solid #ffe3c9; color: #a35a20; border-radius: 10px; padding: 12px 16px; font-size: 13px; }
.alert.info { background: #f2f7ff; border-color: #dbe6ff; color: #3257a8; }
.alert.ok { background: #f0fbf5; border-color: #d2f2e0; color: #127a4d; }

/* ---------- 页脚 ---------- */
footer.site-foot { margin-top: 44px; padding: 26px 0 40px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.9; border-top: 1px solid var(--line); }
footer.site-foot .fbadges { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
footer.site-foot .fbadges span { background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(14px); background: rgba(21, 33, 58, .92); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .22s; z-index: 200; box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 自适应 ---------- */
@media (max-width: 1360px) {
  .topbar-right .btn-ghost { display: none; }
}
@media (max-width: 1180px) {
  nav.mainnav a { font-size: 12px; padding: 6px 7px; }
  .logo-text b { font-size: 15px; }
  .summary-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .pill-badge { display: none; }
}
@media (max-width: 1080px) {
  .tools-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tool-card { padding: 16px 10px; }
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .prov-grid { grid-template-columns: repeat(3, 1fr); }
  .vol-form { grid-template-columns: repeat(2, 1fr); }
  .two-col, .split-2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .school-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 12px; }
  .topbar-inner { height: 56px; padding: 0 10px; gap: 10px; }
  .logo-text span { display: none; }
  nav.mainnav a { font-size: 12.5px; padding: 6px 8px; }
  .summary-bar { gap: 10px; }
  .hero { padding: 26px 18px; border-radius: 16px; }
  .hero h1 { font-size: 22px; line-height: 1.35; }
  .hero .search-box, .hero .hero-search { flex-direction: column; }
  table.tbl { font-size: 12.5px; }
  table.tbl th, table.tbl td { padding: 9px 8px; }
  .slot { gap: 8px; padding: 11px 12px; }
  .detail-head { flex-direction: column; }
  .report { padding: 20px 14px; }
  .pk-grid { display: none; }
}

/* 打印 */
@media print {
  header.topbar, nav.mainnav, footer.site-foot, .no-print { display: none !important; }
  body { background: #fff; }
  .report { box-shadow: none; padding: 0; }
}
