:root {
  color-scheme: light;
  --navy: #102b58;
  --navy-deep: #091a38;
  --blue: #2d64c8;
  --red: #d84942;
  --ink: #172238;
  --muted: #768198;
  --line: #e8edf4;
  --surface: #ffffff;
  --paper: #f6f8fb;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { min-height: calc(100vh - 52px); overflow: hidden; }
.hero { position: relative; background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #1b4f96); color: #fff; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(246,248,251,.6)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 68px 24px 78px; text-align: center; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .3; }
.hero-glow-one { width: 320px; height: 320px; top: -190px; right: -80px; background: #5da4ff; }
.hero-glow-two { width: 250px; height: 250px; bottom: -180px; left: -70px; background: #d84942; }
.eyebrow, .section-kicker { margin: 0 0 14px; letter-spacing: .18em; font-size: 11px; font-weight: 700; color: #a8c6f7; }
h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 5vw, 58px); line-height: 1.2; letter-spacing: .04em; }
h1 span { color: #d9e7ff; }
.hero-copy { max-width: 560px; margin: 20px auto 28px; color: #c4d4ef; line-height: 1.8; font-size: 14px; }
.education-brand { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 30px auto 0; }
.education-brand-logo { display: block; flex: 0 0 auto; width: 72px; height: 72px; object-fit: cover; border: 2px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.education-brand-copy { min-width: 0; text-align: left; }
.education-brand-copy strong { display: block; color: #111827; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 29px; font-weight: 900; letter-spacing: .06em; line-height: 1.4; }
.education-brand-copy span { display: block; margin-top: 4px; color: #111827; font-size: 10px; letter-spacing: .13em; }
@media (max-width: 640px) {
  .education-brand { gap: 10px; margin-top: 25px; }
  .education-brand-logo { width: 56px; height: 56px; border-radius: 12px; }
  .education-brand-copy strong { font-size: clamp(20px, 5.5vw, 26px); }
  .education-brand-copy span { font-size: 8px; letter-spacing: .08em; }
}
.search-box { display: flex; align-items: center; max-width: 650px; margin: 0 auto; padding: 6px 8px 6px 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px rgba(3,18,46,.24); }
.search-icon { color: var(--red); font-size: 30px; line-height: 1; transform: rotate(-20deg); }
.search-box input { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 12px; color: var(--ink); font-size: 16px; }
.search-box input::placeholder { color: #9ba5b5; }
.clear-button { display: none; border: 0; background: transparent; color: #98a3b3; font-size: 24px; }
.clear-button.visible { display: block; }
.suggestions { width: 100%; max-width: 650px; margin: 8px auto 0; text-align: left; }
.suggestion { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #edf1f7; background: #fff; color: var(--ink); font-size: 14px; }
.suggestion:first-child { border-radius: 12px 12px 0 0; }.suggestion:last-child { border-radius: 0 0 12px 12px; }
.suggestion small { color: var(--muted); }.suggestion:hover { background: #f5f8fd; }
.content-area { max-width: 980px; margin: 0 auto; padding: 48px 24px 54px; }
.section-heading, .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-kicker { color: var(--red); margin-bottom: 8px; }.section-heading h2 { margin: 0; font-size: 26px; }.result-count { color: var(--muted); font-size: 13px; }
.selected-major { margin: 26px 0 18px; padding: 14px 18px; border-left: 4px solid var(--red); background: #fff; border-radius: 0 12px 12px 0; box-shadow: 0 8px 22px rgba(35,54,85,.06); }
.selected-major strong { margin-right: 12px; }.selected-major span { color: var(--muted); font-size: 13px; }
.toolbar { margin-top: 26px; margin-bottom: 18px; }
.year-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #eaf0f8; }.year-tab { border: 0; border-radius: 9px; padding: 8px 12px; background: transparent; color: var(--muted); font-size: 13px; }.year-tab.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(23,44,77,.1); font-weight: 700; }
.category-chip { padding: 8px 12px; border: 1px solid #dce5f2; border-radius: 999px; color: var(--blue); background: #f6f9fe; font-size: 12px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.result-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 24px rgba(31,52,88,.04); }.result-card:hover { border-color: #b8cbeb; transform: translateY(-1px); transition: .18s ease; }
.major-pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: left; }
.major-pick:hover { border-color: #b8cbeb; background: #f9fbff; }
.major-pick span { font-weight: 700; }.major-pick small { flex: 0 0 auto; color: var(--muted); }
.card-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }.school { margin: 0; color: var(--blue); font-size: 14px; font-weight: 700; line-height: 1.45; }.major-name { margin: 0 0 5px; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.4; }.major-code { margin-top: 5px; color: #9ba7ba; font-size: 11px; }.plan-row, .score-row { display: flex; align-items: end; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }.plan-row { margin-top: 18px; }.score-row { margin-top: 8px; }.score-label { color: var(--muted); font-size: 12px; }.plan { color: var(--blue); font-size: 18px; font-weight: 800; }.score { color: var(--red); font-size: 24px; font-weight: 800; letter-spacing: -.04em; }.year-badge { max-width: 92px; padding: 4px 8px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 11px; text-align: center; }
.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); }.empty-icon { font-size: 42px; color: #b9c8dd; }.empty-state h3 { margin: 8px 0; color: var(--ink); }.empty-state p { margin: 0; font-size: 13px; }.data-note { margin: 30px 0 0; color: #8a96a8; font-size: 12px; line-height: 1.7; }.data-note span { color: var(--ink); font-weight: 700; }.site-footer { padding: 18px 24px 30px; text-align: center; color: #a1aaba; font-size: 12px; }.hidden { display: none !important; }
.load-more { display: block; width: 180px; margin: 24px auto 0; padding: 12px 18px; border: 1px solid #cad7ea; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; }
.load-more:hover { border-color: var(--blue); color: var(--blue); }
.results-head { display: grid; grid-template-columns: minmax(240px, 1.55fr) 120px minmax(300px, 1fr); gap: 0; margin-top: 24px; padding: 9px 16px; background: #050505; color: #fff; font-size: 13px; font-weight: 800; }
.results-head span:nth-child(2) { text-align: center; }.results-head span:last-child { text-align: center; }
.results-grid { grid-template-columns: 1fr; gap: 3px; }
.result-card { padding: 0; overflow: hidden; border-radius: 0; box-shadow: 0 1px 5px rgba(31,52,88,.08); }
.card-main { display: grid; grid-template-columns: minmax(240px, 1.55fr) 120px minmax(300px, 1fr); min-height: 92px; }
.major-info { padding: 12px 16px; }.major-name { font-size: 18px; }.school { font-size: 14px; }
.attributes { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 8px; }
.math-badge, .type-badge { min-width: 62px; padding: 4px 9px; border-radius: 999px; background: #920008; color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.type-badge { background: #a70008; }
.years-data { display: grid; grid-template-columns: 54px repeat(3, minmax(52px, 1fr)); grid-template-rows: 1fr 1fr; align-items: stretch; text-align: center; font-size: 17px; font-weight: 800; }
.metric-label { display: flex; align-items: center; justify-content: center; background: #f1f3f5; color: #66717d; font-size: 11px; font-weight: 700; width: 45px;}
.year-cell, .score-cell { display: flex; align-items: center; justify-content: center; color: #fff; background: #b9bdc1; }.year-2024 { background: #b9bdc1; width: 45px;}.year-2025 { background: #777b80;   width: 45px;}.year-2026 { background: #090909;   width: 45px;}
.score-cell { background: #d8bfc1; }.score-cell.year-2025 { background: #b87f82;  width: 45px;}.score-cell.year-2026 { background: #860006;  width: 45px;}
@media (max-width: 640px) {
  .results-head, .card-main { grid-template-columns: minmax(150px, 1.25fr) 78px minmax(178px, 1fr); }
  .results-head { padding: 8px 8px; font-size: 11px; }.card-main { min-height: 88px; }.major-info { padding: 11px 10px; }.major-name { font-size: 15px; }.school { font-size: 12px; }.major-code { font-size: 10px; }.attributes { padding: 5px 2px; }.math-badge, .type-badge { min-width: 58px; padding: 4px 5px; font-size: 11px; }.years-data { grid-template-columns: 38px repeat(3, minmax(46px, 1fr)); font-size: 15px; }.metric-label { font-size: 10px; }
}

.school-info { min-width: 0; }
.school-info strong { display: block; }
.school-info .school-type { display: block; width: max-content; margin: 4px 0 0; padding: 2px 6px; border-radius: 999px; background: #edf3fb; color: #6d84a3; font-size: 10px; font-weight: 600; white-space: nowrap; }
.school-info .school-type:empty { display: none; }

/* 年份由 app-data.js 自动注入，新增年度时不再需要修改 CSS。 */
.school-year-head { grid-template-columns: minmax(0, 1fr) repeat(var(--year-count, 3), minmax(30px, 1fr)); }
.school-years .data-row { grid-template-columns: 23px repeat(var(--year-count, 3), minmax(30px, 1fr)); }
@media (max-width: 640px) {
  .school-year-head { grid-template-columns: minmax(105px, 1fr) repeat(var(--year-count, 3), minmax(34px, 1fr)); }
  .school-years .data-row { grid-template-columns: 22px repeat(var(--year-count, 3), minmax(34px, 1fr)); }
}
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(31,52,88,.04); }
.result-card:hover { border-color: #b8cbeb; transform: translateY(-1px); transition: .18s ease; }
.card-main { display: block; min-height: 0; }
.major-info { padding: 0; min-width: 0; }.major-name { margin-bottom: 5px; color: var(--ink); font-size: 17px; }.school { font-size: 14px; }.major-code { margin-top: 5px; }
.card-top { align-items: flex-start; }.attributes { flex: 0 0 82px; align-items: flex-end; padding: 0; }.math-badge, .type-badge { min-width: 70px; font-size: 11px; }.type-badge { background: #a70008; }
.years-data { display: block; margin-top: 18px; font-size: 15px; font-weight: 800; }.year-labels, .data-row { display: grid; grid-template-columns: 86px repeat(3, minmax(0, 1fr)); }.year-labels { margin-bottom: 3px; color: var(--muted); font-size: 11px; text-align: center; }.year-labels span:first-child { text-align: left; }.data-row { min-height: 31px; margin-top: 2px; }.metric-label { display: flex; align-items: center; color: var(--muted); font-size: 11px; font-weight: 600; }.year-cell, .score-cell { display: flex; align-items: center; justify-content: center; margin-left: 3px; color: #fff; }.year-cell { background: #b9bdc1; }.year-cell.year-2025 { background: #777b80; }.year-cell.year-2026 { background: #090909; }.score-cell { background: #d8bfc1; }.score-cell.year-2025 { background: #b87f82; }.score-cell.year-2026 { background: #860006; }
@media (max-width: 640px) { .results-grid { grid-template-columns: 1fr; gap: 10px; }.result-card { padding: 17px; }.year-labels, .data-row { grid-template-columns: 78px repeat(3, minmax(0, 1fr)); }.major-name { font-size: 16px; }.school { font-size: 13px; }.attributes { flex-basis: 76px; }.math-badge, .type-badge { min-width: 64px; padding-left: 5px; padding-right: 5px; } }
.major-group { padding: 0; border: 1px solid #e5ebf3; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 7px 20px rgba(55,82,115,.06); }
.major-group[open] { border-color: #c8d8eb; box-shadow: 0 10px 26px rgba(55,82,115,.10); }
.major-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; padding: 20px; cursor: pointer; list-style: none; }
.major-summary::-webkit-details-marker { display: none; }.major-summary::after { content: "+"; color: #8da3c2; font-size: 24px; font-weight: 300; }.major-group[open] .major-summary::after { content: "−"; }
.major-summary .major-info { flex: 1; }.major-summary .major-name { font-size: 19px; }.major-summary .major-code { color: #8b9ab0; }
.major-summary .attributes { flex: 0 0 auto; align-items: center; }.math-badge { min-width: 92px; padding: 9px 13px; border-radius: 12px; background: #eaf2fc; color: #2d64c8; font-size: 15px; font-weight: 800; }.type-badge { min-width: 76px; padding: 5px 8px; background: #f3e9eb; color: #a14f59; font-size: 11px; }
.expand-hint { display: none; color: #91a1b6; font-size: 11px; }
.school-list { border-top: 1px solid #edf1f6; background: #fbfcfe; }.school-year-head { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, 64px); gap: 4px; padding: 9px 16px; color: #8190a3; font-size: 11px; font-weight: 700; text-align: center; }.school-year-head span:first-child { text-align: left; }
.school-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.1fr); gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid #edf1f6; }.school-info strong { color: var(--blue); font-size: 13px; line-height: 1.5; }.school-years .data-row { display: grid; grid-template-columns: 58px repeat(3, minmax(45px, 1fr)); min-height: 26px; margin-top: 3px; gap: 3px; }.school-years .metric-label { font-size: 10px; }.school-years .year-cell, .school-years .score-cell { border-radius: 5px; color: #405066; font-size: 13px; font-weight: 700; }.school-years .year-cell.year-2024 { background: #edf3f9; }.school-years .year-cell.year-2025 { background: #e3edf7; }.school-years .year-cell.year-2026 { background: #d4e2f1; }.school-years .score-cell { background: #fbefef; }.school-years .score-cell.year-2025 { background: #f5dfe1; }.school-years .score-cell.year-2026 { background: #f0cacc; }
@media (max-width: 640px) { .major-summary { min-height: 92px; padding: 16px; gap: 8px; }.major-summary .major-name { font-size: 17px; }.major-summary .major-code { font-size: 10px; }.major-summary .attributes { flex-basis: 82px; }.math-badge { min-width: 78px; padding: 8px 7px; font-size: 14px; }.expand-hint { display: block; position: absolute; right: 14px; bottom: 7px; }.major-summary { position: relative; padding-bottom: 25px; }.school-year-head { grid-template-columns: minmax(130px, 1fr) repeat(3, 48px); padding: 8px 10px; }.school-row { grid-template-columns: 1fr; gap: 7px; padding: 11px 10px; }.school-years .data-row { grid-template-columns: 55px repeat(3, minmax(42px, 1fr)); }.school-years .year-cell, .school-years .score-cell { font-size: 12px; } }
.school-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.school-years { min-width: 0; overflow-x: auto; }
.school-years .data-row { min-width: 180px; }
@media (min-width: 641px) and (max-width: 1100px) { .results-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero-inner { padding: 48px 18px 58px; } h1 { font-size: 34px; }.hero-copy { font-size: 13px; }.content-area { padding: 34px 16px 40px; }.section-heading h2 { font-size: 22px; }.toolbar { display: block; }.year-tabs { width: max-content; max-width: 100%; overflow: auto; }.category-chip { display: inline-block; margin-top: 12px; }.results-grid { grid-template-columns: 1fr; gap: 10px; }.result-card { padding: 17px; }.search-box { border-radius: 15px; padding-left: 14px; }.search-box input { font-size: 15px; } }
.school-row { grid-template-columns: minmax(110px, 1.1fr) minmax(145px, .9fr); gap: 7px; }
.school-years { min-width: 0; overflow: visible; }
.school-years .data-row { min-width: 0; grid-template-columns: 23px repeat(3, minmax(30px, 1fr)); gap: 2px; }
.school-years .metric-label { width: auto; min-height: 32px; writing-mode: vertical-rl; font-size: 10px; line-height: 1; letter-spacing: 1px; }
.school-years .year-cell, .school-years .score-cell, .school-years .year-2024, .school-years .year-2025, .school-years .year-2026 { width: auto; min-width: 0; margin-left: 0; padding: 0 1px; font-size: 12px; }
.school-year-head { grid-template-columns: minmax(110px, 1.1fr) repeat(3, minmax(30px, .3fr)); gap: 2px; }
.major-summary .attributes { flex-basis: 94px; }.major-summary .math-badge { min-width: 90px; }
@media (min-width: 901px) and (max-width: 1100px) { .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 900px) { .results-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .school-row { grid-template-columns: 1fr; }.school-years .data-row { grid-template-columns: 23px repeat(3, minmax(38px, 1fr)); }.school-year-head { grid-template-columns: minmax(105px, 1fr) repeat(3, 42px); } }
.results-grid { align-items: start; }
.major-group { align-self: start; }
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; align-items: start; justify-content: normal; justify-items: stretch; column-gap: 16px; row-gap: 16px; }
.results-column { display: flex; flex-direction: column; width: 100%; min-width: 0; gap: 16px; }
#results.results-grid { display: grid !important; width: 100% !important; max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 16px; justify-content: stretch !important; justify-items: stretch !important; }
#results.results-grid > .results-column { width: auto !important; min-width: 0; }
#results.results-grid .major-group { width: 100%; }
@media (max-width: 640px) {
  .major-pick { justify-content: flex-start; }
  .major-pick span { flex: 1; min-width: 0; }
  .major-pick small { display: none; }
  #results.results-grid { grid-template-columns: 1fr !important; column-gap: 0; row-gap: 10px; }
  .results-column { display: contents; }
  .school-row { grid-template-columns: minmax(120px, .9fr) minmax(210px, 1.6fr); gap: 8px; align-items: center; }
  .school-row { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); width: 100%; box-sizing: border-box; }
  .school-info, .school-years { min-width: 0; width: 100%; box-sizing: border-box; }
  .school-years { overflow: hidden; }
  .school-info strong { display: block; font-size: 12px; line-height: 1.45; word-break: break-all; }
  .school-years .data-row { grid-template-columns: 22px repeat(var(--year-count, 3), minmax(30px, 1fr)); }
  .school-years .year-cell, .school-years .score-cell { min-height: 28px; font-size: 12px; }
  .school-year-head { width: 100%; box-sizing: border-box; }
}

.site-footer .registration-hotline { margin: 16px 0 0; color: #111827; font-size: 16px; font-weight: 600; line-height: 1.6; }
.registration-hotline a { color: inherit; text-decoration: none; white-space: nowrap; }
.registration-hotline a:hover { text-decoration: underline; }
.registration-hotline a:focus-visible { outline: 2px solid #2d64c8; outline-offset: 4px; }
.site-footer .icp-record { margin: 18px 0 0; font-size: 12px; line-height: 1.6; }
.icp-record a { color: #667085; text-decoration: none; }
.icp-record a:hover { color: #2d64c8; text-decoration: underline; }
.icp-record a:focus-visible { outline: 2px solid #2d64c8; outline-offset: 4px; }

/* 表头和数据共用两层网格，包含“计划/投档线”的占位列。 */
.school-list { --school-columns: minmax(0, 1.1fr) minmax(0, .9fr); --school-gap: 7px; --school-padding: 16px; --metric-width: 23px; }
.school-list .school-year-head, .school-list .school-row {
  display: grid;
  grid-template-columns: var(--school-columns);
  column-gap: var(--school-gap);
  padding-left: var(--school-padding);
  padding-right: var(--school-padding);
  width: 100%;
  box-sizing: border-box;
}
.school-list .school-years { min-width: 0; width: 100%; }
.school-list .school-year-head > .school-years,
.school-list .school-row > .school-years { grid-column: 2; }
.school-list .school-years .data-row {
  grid-template-columns: var(--metric-width) repeat(var(--year-count, 3), minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.school-list .school-year-head .data-row { min-height: 0; margin: 0; align-items: center; }
.school-list .school-year-head .data-row > span { text-align: center; }
@media (max-width: 640px) {
  .school-list { --school-columns: minmax(0, .92fr) minmax(0, 1.08fr); --school-gap: 8px; --school-padding: 10px; --metric-width: 22px; }
}
