﻿:root{color-scheme:light;--bg:#f7f8fb;--panel:#fff;--ink:#172033;--muted:#617086;--line:#dbe2ec;--accent:#176b87;--accent-strong:#0f4f65;--rush:#b64228;--steady:#176b87;--safe:#2d7b48;--shadow:0 18px 45px rgba(23,32,51,.08)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC","Segoe UI",Arial,sans-serif;letter-spacing:0}button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 48px}.search-panel,.summary-band,.results{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}.search-panel{padding:24px;border-radius:8px}.brand-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.eyebrow{margin:0 0 6px;color:var(--accent);font-size:14px;font-weight:700}h1{margin:0;font-size:clamp(28px,4vw,44px);line-height:1.1}.source-note{max-width:360px;color:var(--muted);font-size:13px;line-height:1.6;text-align:right}.controls-grid,.advanced-grid{display:grid;grid-template-columns:180px 1fr 280px;gap:16px;align-items:end}.field{display:grid;gap:8px}.field span,.subject-field legend,.summary-label{color:var(--muted);font-size:13px;font-weight:700}.field input,.field select,#sortSelect{width:100%;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:0 12px;background:#fff;color:var(--ink)}.score-field input{font-size:28px;font-weight:800}.subject-field{min-width:0;margin:0;padding:0;border:0}.subject-options{display:grid;grid-template-columns:repeat(6,minmax(64px,1fr));gap:8px}.subject-options label,.toggle{min-height:44px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:0 12px;background:#fff;color:var(--ink);white-space:nowrap}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}.advanced{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.advanced summary{color:var(--accent-strong);font-weight:800;margin-bottom:14px}.advanced-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.summary-band{margin-top:18px;border-radius:8px;padding:16px 20px;display:grid;grid-template-columns:repeat(3,1fr) auto;gap:14px;align-items:center}.summary-band div{display:grid;gap:4px}.summary-band strong{font-size:24px}#exportBtn{min-height:42px;border:0;border-radius:6px;padding:0 16px;background:var(--accent);color:#fff;font-weight:800}.tabs{display:flex;gap:8px;margin:18px 0 0;overflow-x:auto}.tab{min-width:108px;min-height:42px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);font-weight:800}.tab.active{border-color:var(--accent);background:var(--accent);color:#fff}.results{margin-top:12px;border-radius:8px;overflow:hidden}.result-head{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}#resultHint{margin:0;color:var(--muted)}#sortSelect{max-width:180px}.result-list{display:grid}.result-row{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(260px,2fr) 92px 86px 120px;gap:14px;padding:16px;border-bottom:1px solid var(--line);align-items:start}.result-row:last-child{border-bottom:0}.school-name,.major-name{font-weight:850;line-height:1.35}.meta{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.5}.score-pill,.bucket-pill{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border-radius:999px;padding:0 10px;font-weight:850;white-space:nowrap}.score-pill{background:#edf4f7;color:var(--accent-strong)}.bucket-pill{color:#fff}.bucket-rush{background:var(--rush)}.bucket-steady{background:var(--steady)}.bucket-safe{background:var(--safe)}.tag-list{display:flex;flex-wrap:wrap;gap:6px}.tag{border:1px solid var(--line);border-radius:999px;padding:5px 8px;color:var(--muted);font-size:12px;background:#fff}.empty{padding:38px 18px;text-align:center;color:var(--muted)}@media (max-width:900px){.brand-row,.result-head{display:grid}.source-note{max-width:none;text-align:left}.controls-grid,.advanced-grid,.summary-band{grid-template-columns:1fr}.subject-options{grid-template-columns:repeat(3,minmax(0,1fr))}.result-row{grid-template-columns:1fr}#sortSelect{max-width:none}}@media (max-width:520px){.app-shell{width:min(100% - 20px,1180px);padding-top:16px}.search-panel{padding:18px}.subject-options{grid-template-columns:repeat(2,minmax(0,1fr))}}


.school-group {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.school-group:last-child {
  border-bottom: 0;
}

.school-group-head {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.major-list {
  display: grid;
}

.major-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 92px 86px 150px;
  gap: 14px;
  padding: 14px 16px 14px 28px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.major-row:last-child {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .school-group-head,
  .major-row {
    grid-template-columns: 1fr;
  }

  .major-row {
    padding-left: 16px;
  }
}

.top-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.major-group {
  border-top: 1px solid var(--line);
}

.major-group:first-child {
  border-top: 0;
}

.major-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 16px 10px 28px;
  background: #f5f8fb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.major-group-head strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.notice-page .search-panel {
  margin-bottom: 18px;
}

.notice-disclaimer {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fbfcfe;
  color: var(--muted);
  line-height: 1.7;
}

.notice-card {
  padding: 22px;
}

.notice-content {
  display: grid;
  gap: 14px;
  color: var(--ink);
  line-height: 1.85;
}

.notice-content p {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}

.notice-content p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .top-actions {
    justify-items: start;
  }

  .major-group-head {
    padding-left: 16px;
  }
}

.image-card {
  padding: 12px;
  overflow: auto;
}

.notice-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.school-name {
  color: #c61212;
  font-weight: 900;
}
