:root {
  --ink: #16262f;
  --ink-soft: #52636c;
  --muted: #87949a;
  --line: #dfe7e6;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --green: #26745f;
  --green-deep: #165342;
  --green-soft: #e6f2ed;
  --amber: #a96817;
  --amber-soft: #fff1da;
  --red: #9a4d42;
  --red-soft: #f8e9e5;
  --blue: #376d8b;
  --shadow: 0 14px 34px rgba(31, 54, 59, 0.07);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; }

.topbar {
  height: 74px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  color: #f7fbf9;
  background: #13222b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup, .topbar-meta, .result-meta, .filter-row, .results-footer,
.field-label-row { display: flex; align-items: center; }

.brand-lockup { gap: 11px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #17342c;
  background: #a4d7c4;
  font-weight: 800;
  border-radius: 7px;
}
.brand-name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.brand-caption { margin: 2px 0 0; color: #9eafb4; font-size: 11px; letter-spacing: 0; }
.topbar-meta { gap: 19px; color: #bac7c8; font-size: 12px; }
.status-dot { width: 7px; height: 7px; background: #85c8a5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(133, 200, 165, 0.13); }
.text-button, .link-button {
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
}
.text-button { color: #d3e2dd; font-size: 12px; border-bottom: 1px solid rgba(211, 226, 221, 0.4); }
.text-button:hover, .link-button:hover { color: var(--green); }

main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 34px; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.eyebrow, .section-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 39px); line-height: 1.18; font-weight: 700; }
.intro { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.head-tools { display: grid; justify-items: end; gap: 10px; }
.sample-badge { padding: 8px 12px; color: var(--amber); background: #fff5e5; border: 1px solid #f2ddbd; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.data-status-strip { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; }
.data-status-strip > div { display: grid; gap: 2px; text-align: right; }
.data-status-strip strong { color: var(--green-deep); font-size: 11px; }
.data-status-strip span:not(.data-status-dot) { color: var(--muted); }
.data-status-dot { width: 7px; height: 7px; background: #7eb89d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(126, 184, 157, .14); }
.data-status-strip .text-button { margin-left: 3px; color: var(--green); }

.tool-grid { display: grid; grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.72fr); gap: 24px; align-items: start; }
.panel, .results-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel { border-radius: 8px; }
.input-panel { padding: 26px 25px 22px; }
.panel-heading, .results-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.step-count { color: var(--muted); font-size: 11px; }
.input-panel form { margin-top: 29px; }
.field-label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.score-input-wrap { position: relative; display: flex; align-items: center; }
.score-input-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 50px 0 15px;
  color: var(--ink);
  background: #f9fbfa;
  border: 1px solid #c9d9d5;
  border-radius: 5px;
  outline: none;
  font-size: 27px;
  font-weight: 700;
}
.score-input-wrap input:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 3px rgba(38, 116, 95, 0.12); }
.score-input-wrap span { position: absolute; right: 15px; color: var(--ink-soft); font-size: 14px; }
.field-hint { margin: 8px 0 23px; color: var(--muted); font-size: 11px; line-height: 1.5; }
select { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: #f9fbfa; border: 1px solid #c9d9d5; border-radius: 5px; outline: none; font-size: 13px; }
select:focus { border-color: var(--green); }
.field-label-row { justify-content: space-between; margin-top: 23px; }
.optional-label { color: var(--muted); font-size: 11px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { height: 31px; padding: 0 12px; color: var(--ink-soft); background: #fff; border: 1px solid #d4e0dd; border-radius: 4px; font-size: 12px; }
.choice-chip:hover { border-color: var(--green); color: var(--green-deep); }
.choice-chip.is-selected { color: var(--green-deep); background: var(--green-soft); border-color: #9bceb9; }
.form-divider { height: 1px; margin: 26px 0 19px; background: var(--line); }
.primary-button { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #fff; background: var(--green); border: 0; border-radius: 5px; font-size: 13px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: var(--green-deep); transform: translateY(-1px); }
.privacy-note { display: flex; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.privacy-icon { flex: 0 0 auto; width: 15px; height: 15px; display: grid; place-items: center; color: var(--green); border: 1px solid #a9cabc; border-radius: 50%; font-size: 10px; font-weight: 700; }
.download-panel { margin-top: 22px; padding: 17px 15px 14px; background: #f1f8f5; border: 1px solid #b9d9cc; border-radius: 6px; }
.download-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.download-panel-heading .section-kicker { margin-bottom: 5px; color: var(--green); }
.download-panel-heading h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.3; }
.download-count { flex: 0 0 auto; padding: 4px 6px; color: var(--green-deep); background: #dcefe7; border-radius: 3px; font-size: 10px; white-space: nowrap; }
.download-stack { display: grid; gap: 8px; }
.download-card { width: 100%; min-height: 51px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--ink); text-align: left; background: #fff; border: 1px solid #b8d3c8; border-radius: 5px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.download-card:hover { border-color: var(--green); background: #fafffc; transform: translateY(-1px); }
.download-card-primary { color: #fff; background: var(--green); border-color: var(--green); }
.download-card-primary:hover { color: #fff; background: var(--green-deep); border-color: var(--green-deep); }
.download-card-icon { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; color: var(--green-deep); background: #dff1e8; border-radius: 4px; font-size: 18px; font-weight: 700; line-height: 1; }
.download-card-primary .download-card-icon { color: #fff; background: rgba(255, 255, 255, .18); }
.download-card-copy { min-width: 0; display: grid; gap: 3px; }
.download-card-copy strong { font-size: 12px; line-height: 1.2; }
.download-card-copy small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.download-card-primary .download-card-copy small { color: #d6eee4; }
.download-card:disabled { cursor: not-allowed; color: #a6b3b1; background: #eef2f0; border-color: #dbe5e1; transform: none; }
.download-card:disabled .download-card-icon { color: #9cacaa; background: #e2eae6; }
.download-card:disabled .download-card-copy small { color: #a6b3b1; }
.download-note { margin: 10px 0 0; color: #6f8580; font-size: 10px; line-height: 1.45; }

.results-panel { min-width: 0; padding: 25px 26px 17px; border-radius: 8px; }
.results-summary { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.match-band-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.result-meta { display: grid; justify-items: end; gap: 10px; color: var(--muted); font-size: 11px; }
.result-meta-top { display: flex; align-items: center; gap: 12px; }
.outline-button { padding: 6px 10px; color: var(--ink-soft); background: #fff; border: 1px solid #cfddda; border-radius: 4px; font-size: 11px; }
.outline-button:hover { color: var(--green); border-color: var(--green); }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 23px; padding: 15px 0; background: #f5f9f7; border: 1px solid #e1ece8; border-radius: 5px; }
.stat-item { min-width: 0; padding: 0 18px; border-right: 1px solid #dfe9e5; }
.stat-item:last-child { border-right: 0; }
.stat-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.stat-item strong { color: var(--ink); font-size: 19px; font-weight: 700; }
.stat-note strong { font-size: 13px; color: var(--green-deep); }
.filter-row { justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.filter-tabs { display: flex; gap: 22px; overflow-x: auto; }
.filter-tab { position: relative; display: flex; align-items: center; gap: 5px; height: 31px; padding: 0; color: var(--muted); background: none; border: 0; font-size: 12px; white-space: nowrap; }
.filter-tab span { color: #aab6b8; font-size: 10px; }
.filter-tab.is-active { color: var(--green-deep); font-weight: 700; }
.filter-tab.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--green); }
.sort-button { flex: 0 0 auto; padding: 7px 9px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.sort-button:hover { border-color: #a9cabc; color: var(--green-deep); }
.school-list { display: grid; gap: 10px; }
.school-card { min-width: 0; padding: 17px 17px 15px; border: 1px solid #dfe7e5; border-radius: 6px; transition: border-color .18s ease, box-shadow .18s ease; }
.school-card:hover { border-color: #a9cabc; box-shadow: 0 7px 18px rgba(31, 54, 59, .06); }
.school-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.school-card-actions { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.official-link { flex: 0 0 auto; padding: 4px 0; color: var(--green); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.official-link:hover { color: var(--green-deep); text-decoration: underline; }
.official-link.is-missing { color: var(--muted); font-weight: 400; }
.school-heading { display: flex; min-width: 0; gap: 11px; }
.school-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--green-deep); background: #ecf5f1; border-radius: 5px; font-size: 13px; font-weight: 800; }
.school-name { margin: 0; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.school-subtitle { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.school-subtitle span + span::before { content: "/"; margin-right: 7px; color: #bdc8c7; }
.fit-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.fit-badge.冲刺 { color: var(--red); background: var(--red-soft); }
.fit-badge.稳妥 { color: var(--amber); background: var(--amber-soft); }
.fit-badge.保底 { color: var(--green-deep); background: var(--green-soft); }
.fit-badge.低分参考 { color: var(--blue); background: #eaf2f6; }
.school-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 15px 0 12px 47px; padding: 11px 0; border-top: 1px solid #edf1f0; border-bottom: 1px solid #edf1f0; }
.metric { min-width: 0; padding-right: 11px; }
.metric + .metric { padding-left: 12px; border-left: 1px solid #edf1f0; }
.metric-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.metric-value { display: block; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.school-reason { display: flex; gap: 7px; margin-left: 47px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.reason-prefix { color: var(--green); font-weight: 700; }
.school-employers, .school-risk { display: flex; gap: 7px; margin: 8px 0 0 47px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.employer-prefix, .school-risk > span:first-child { flex: 0 0 auto; color: var(--blue); font-weight: 700; }
.school-risk { color: var(--red); }
.school-risk > span:first-child { color: var(--red); }
.tag-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0 0 47px; }
.mini-tag { padding: 4px 7px; color: var(--blue); background: #eef5f8; border-radius: 3px; font-size: 10px; }
.mini-tag.neutral { color: #6d777b; background: #f1f3f3; }
.results-footer { gap: 7px; margin-top: 17px; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.footer-indicator { width: 6px; height: 6px; background: #88bba8; border-radius: 50%; }
.link-button { margin-left: auto; color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.empty-state { padding: 42px 20px 48px; text-align: center; }
.empty-mark { color: var(--green); font-size: 32px; }
.empty-state h3 { margin: 9px 0 6px; font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.site-footer { width: min(1240px, calc(100% - 48px)); display: flex; justify-content: space-between; margin: 0 auto; padding: 0 0 24px; color: #9aa7a7; font-size: 11px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(16, 32, 39, .46); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(430px, 100%); padding: 28px; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(15, 32, 39, .2); }
.modal h2 { margin-bottom: 13px; font-size: 21px; }
.modal > p:not(.section-kicker) { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.modal-close { position: absolute; top: 15px; right: 17px; width: 28px; height: 28px; color: var(--muted); background: none; border: 0; font-size: 22px; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-points { display: grid; gap: 12px; margin: 22px 0; }
.modal-points div { display: flex; gap: 11px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.modal-points strong { color: var(--green); font-size: 11px; }
.data-total-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 21px; }
.data-total-grid div { padding: 11px 9px; background: #f5f9f7; border: 1px solid #e1ece8; border-radius: 4px; }
.data-total-grid strong { display: block; color: var(--ink); font-size: 16px; }
.data-total-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.source-links { display: grid; gap: 8px; margin: 0 0 21px; padding-top: 15px; border-top: 1px solid var(--line); }
.source-links a { color: var(--green); font-size: 11px; text-decoration: none; }
.source-links a:hover { color: var(--green-deep); text-decoration: underline; }
.modal-action { justify-content: center; }

@media (max-width: 850px) {
  .topbar { padding: 0 20px; }
  .topbar-meta > span:not(.status-dot) { display: none; }
  main { width: min(100% - 32px, 650px); padding-top: 31px; }
  .workspace-head { display: block; margin-bottom: 23px; }
  .head-tools { justify-items: start; margin-top: 16px; }
  .sample-badge { display: inline-block; }
  .data-status-strip > div { text-align: left; }
  .tool-grid { grid-template-columns: 1fr; gap: 16px; }
  .input-panel { padding: 22px 20px 19px; }
  .download-panel { margin-top: 19px; padding: 16px 13px 13px; }
  .download-card { min-height: 54px; }
  .results-panel { padding: 21px 18px 16px; }
  .results-summary h2 { font-size: 18px; }
  .stat-item { padding: 0 12px; }
  .stat-item strong { font-size: 17px; }
  .school-card { padding: 15px 13px; }
  .school-metrics, .school-reason, .school-employers, .school-risk, .tag-line { margin-left: 0; }
  .school-metrics { margin-top: 13px; }
  .site-footer { width: min(100% - 32px, 650px); }
}

@media (max-width: 480px) {
  .topbar { height: 65px; }
  .brand-caption { display: none; }
  main { width: calc(100% - 24px); padding-top: 25px; }
  h1 { font-size: 27px; }
  .intro { font-size: 13px; }
  .results-summary { display: block; }
  .result-meta { justify-items: stretch; margin-top: 10px; }
  .result-meta-top { justify-content: space-between; }
  .stats-strip { margin-top: 16px; }
  .stat-item { padding: 0 9px; }
  .stat-label { font-size: 10px; }
  .stat-item strong { font-size: 15px; }
  .stat-note strong { font-size: 12px; }
  .filter-row { display: block; }
  .filter-tabs { gap: 18px; margin-bottom: 11px; }
  .sort-button { width: 100%; text-align: center; }
  .school-card-top { gap: 8px; }
  .school-card-actions { gap: 6px; }
  .school-name { max-width: 180px; }
  .fit-badge { padding: 4px 6px; font-size: 10px; }
  .school-metrics { gap: 6px; }
  .school-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .metric + .metric { padding-left: 7px; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric-value { font-size: 12px; }
  .results-footer { align-items: flex-start; line-height: 1.5; }
  .site-footer { display: block; line-height: 1.8; }
  .site-footer span:last-child { display: block; }
}
