:root {
  --ink: #102a43;
  --ink-soft: #334e68;
  --paper: #f7f8fa;
  --white: #ffffff;
  --line: #d8e1e8;
  --line-strong: #b7c6d3;
  --accent: #c33c2f;
  --accent-dark: #9e2c22;
  --blue-pale: #eaf1f7;
  --green: #1f6d56;
  --green-pale: #e8f4ef;
  --amber: #996515;
  --amber-pale: #fff5dc;
  --shadow: 0 18px 50px rgba(16, 42, 67, .12);
  --radius: 14px;
  --content-width: 1500px;
  --content-gutter: clamp(16px, 3vw, 42px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Noto Sans JP", "Yu Gothic UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.topbar {
  min-height: 82px;
  padding: 14px 0;
  color: white;
  background: var(--ink);
}
.topbar-inner {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  padding: 0 var(--content-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 132px; height: 88px; flex: 0 0 auto; display: grid; place-items: center;
  padding: 6px; background: white; border: 1px solid var(--line); border-radius: 10px;
}
.brand-logo { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.brand > div:last-child { min-width: 0; }
.brand h1 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; letter-spacing: .02em; }
.brand p { margin: 4px 0 0; color: #c9d6e2; font-size: .82rem; }
.topbar-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-meta span { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #e7eef4; font-size: .78rem; }

.workspace { width: min(var(--content-width), 100%); margin: 0 auto; padding: 24px var(--content-gutter) 90px; }
.page-intro { --page-tone: #102a43; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; padding: 18px 22px; border-left: 4px solid var(--page-tone); background: white; border-radius: 10px; }
.page-intro[data-kind="修士"] { --page-tone: #1f6d56; background: #eff7f3; }
.page-intro[data-kind="专门学校"] { --page-tone: #80588d; background: #f7f2f9; }
.page-intro[data-kind="recommend"] { --page-tone: #996515; background: #fbf6ea; }
.page-audience { margin: 0 0 3px; color: var(--page-tone); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.page-intro h2 { margin: 0; color: var(--page-tone); font-size: clamp(1.35rem,2vw,1.8rem); line-height: 1.3; }
.page-description { max-width: 760px; margin: 7px 0 0; color: var(--ink-soft); font-size: .9rem; }
.page-count { flex: 0 0 auto; margin: 0; padding: 8px 12px; color: var(--page-tone); border: 1px solid currentColor; border-radius: 6px; font-size: .85rem; }
@media(max-width:900px){.page-intro{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.page-count{max-width:100%;overflow-wrap:anywhere}}
.banner-carousel { position: relative; width: 100%; aspect-ratio: 2.5 / 1; min-height: 0; margin-bottom: 22px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.banner-slides, .banner-slide, .banner-link { width: 100%; height: 100%; }
.banner-slides { position: absolute; inset: 0; display: flex; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.banner-slide { flex: 0 0 100%; min-width: 0; }
.banner-link { display: block; }
.banner-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.banner-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.06); color: rgba(255,255,255,.72); font-size: 0; opacity: .8; backdrop-filter: blur(8px) saturate(115%); -webkit-backdrop-filter: blur(8px) saturate(115%); transition: background .2s, border-color .2s, box-shadow .2s, color .2s, opacity .2s; }
.banner-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(calc(-50% - 2px), -50%) rotate(-45deg); filter: drop-shadow(0 1px 2px rgba(16,42,67,.38)); }
.banner-prev::before { transform: translate(calc(-50% + 2px), -50%) rotate(135deg); }
.banner-arrow:hover, .banner-arrow:focus-visible { background: rgba(16,42,67,.32); border-color: rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 12px rgba(16,42,67,.10); color: white; opacity: 1; }
@media(prefers-reduced-motion:reduce){.banner-arrow{transition:none}}
.banner-prev { left: 12px; }.banner-next { right: 12px; }
.banner-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: nowrap; justify-content: center; gap: 2px; padding: 0 6px; max-width: 95%; background: transparent; }
.banner-dot { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 44px; padding: 0; border: 0; background: transparent; }
.banner-dot::before { content: ''; display: block; width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.5); box-shadow: 0 1px 3px rgba(16,42,67,.25); transition: width .25s ease, background-color .25s ease; }
.banner-dot[aria-pressed="true"]::before { width: 32px; background: white; }
.banner-controls button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 470px) { .banner-carousel { margin-bottom: 16px; }.banner-arrow { width: 34px; height: 40px; }.banner-prev { left: 6px; }.banner-next { right: 6px; }.banner-dots { bottom: 4px; } }
@media (prefers-reduced-motion: reduce) { .banner-slides, .banner-dot::before { transition: none; } }
.search-surface {
  position: relative;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(16, 42, 67, .06);
}
.search-row { position: relative; display: flex; gap: clamp(6px, 1.1vw, 12px); align-items: center; }
.search-box {
  flex: 1; min-width: 0; min-height: 54px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; border: 2px solid var(--ink); border-radius: 12px; background: white;
}
.search-box:focus-within { outline: 3px solid rgba(195, 60, 47, .16); border-color: var(--accent); }
.search-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex: 0 0 auto; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 1rem; background: transparent; }
.search-box input::placeholder { color: #788b9b; }
.search-help-toggle { flex: 0 0 44px; min-height: 44px; align-self: stretch; display: grid; place-items: center; border: 0; padding: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); }
.search-help-toggle span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 750; font-size: 14px; }
.search-help-toggle:hover span, .search-help-toggle[aria-expanded="true"] span { background: var(--blue-pale); color: var(--ink); }
.search-help-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.search-help-panel { position: absolute; z-index: 8; inset-inline-end: 0; inset-block-start: 100%; width: min(330px, 100%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 24px rgba(16, 42, 67, .14); background: var(--white); color: var(--ink); }
.search-help-panel strong { display: block; }
.search-help-panel p { margin: 5px 0 0; color: var(--ink-soft); font-size: .875rem; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; color: #60788d; background: #f7f9fb; font-size: .73rem; white-space: nowrap; }
.quick-tabs { display: flex; gap: 8px; margin: 18px 0; overflow-x: auto; scrollbar-width: none; }
.quick-tab { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink-soft); background: white; white-space: nowrap; }
.quick-tab:hover, .quick-tab.active { color: white; background: var(--ink); border-color: var(--ink); }
.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 14px; align-items: end; }
.filter-panel label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .82rem; font-weight: 650; }
.filter-panel select { width: 100%; min-height: 42px; padding: 0 34px 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: white; }
.filter-panel select:focus { outline: 3px solid rgba(32, 88, 125, .13); border-color: #547d9b; }

.primary-button, .secondary-button, .text-button, .load-more, .compare-launcher {
  min-height: 42px; border-radius: 8px; padding: 9px 15px; font-weight: 700; text-decoration: none; text-align: center;
}
.primary-button { color: white; background: var(--accent); border: 1px solid var(--accent); }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { color: var(--ink); background: white; border: 1px solid var(--line-strong); }
.secondary-button:hover { border-color: var(--ink); }
.text-button { border: 0; color: var(--accent-dark); background: transparent; justify-self: start; padding-inline: 0; }
.mobile-only { display: none; }

.results-section { margin-top: 28px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--accent-dark); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.results-heading h2 { margin: 0; font-family: "Yu Mincho", "Songti SC", serif; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.result-summary { margin: 0; color: #62798d; font-size: .86rem; text-align: right; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.result-card {
  position: relative; display: grid; gap: 13px; padding: 18px 18px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.result-card:hover { transform: translateY(-2px); border-color: #9eb1c0; box-shadow: 0 10px 24px rgba(16, 42, 67, .08); }
.card-top { display: flex; justify-content: space-between; gap: 14px; }
.school-name { margin: 0; font-size: 1.08rem; font-weight: 800; }
.card-top > div { min-width: 0; }
.school-translations { display: flex; flex-direction: column; gap: 3px; margin-top: 7px; color: var(--ink-soft); font-size: .875rem; font-weight: 500; line-height: 1.5; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.name-label { display: inline-block; min-width: 2.7em; margin-right: 5px; color: var(--ink); font-size: .75rem; font-weight: 700; }
.department { margin: 3px 0 0; color: var(--ink-soft); font-size: .88rem; }
.favorite-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; color: #6d8090; font-size: 1.25rem; line-height: 1; }
.favorite-button.active { color: var(--accent); border-color: #d9a39d; background: #fff6f4; }
.route { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 650; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 6px; background: var(--blue-pale); color: #315a78; font-size: .74rem; font-weight: 700; }
.badge.published { color: var(--green); background: var(--green-pale); }
.badge.pending { color: var(--amber); background: var(--amber-pale); }
.badge.sgu { color: #743d84; background: #f3eafa; }
.key-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.key-facts div { min-width: 0; padding: 10px 8px 10px 0; }
.key-facts div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.key-facts dt { color: #708494; font-size: .7rem; }
.key-facts dd { margin: 3px 0 0; overflow: hidden; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compare-check { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .8rem; }
.compare-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.detail-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 8px; color: white; background: var(--accent); font-size: .875rem; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.detail-button:hover, .detail-button:active { background: var(--accent-dark); border-color: var(--accent-dark); }
.detail-button:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.load-more { display: block; margin: 20px auto 0; min-width: 180px; color: var(--ink); background: white; border: 1px solid var(--line-strong); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-soft); }
.empty-symbol { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: serif; font-size: 1.3rem; }
.empty-state h3 { margin: 0; color: var(--ink); }
.empty-state p { margin: 7px 0 18px; }

.compare-launcher { position: fixed; right: 24px; bottom: 22px; z-index: 20; color: white; background: var(--accent); border: 0; box-shadow: var(--shadow); }
.compare-launcher span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 5px; border-radius: 999px; color: var(--accent-dark); background: white; }
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 25, 40, .48); backdrop-filter: blur(2px); }
.detail-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(660px, 96vw); padding: 22px; overflow-y: auto; background: white; box-shadow: -18px 0 55px rgba(16, 42, 67, .22); transform: translateX(102%); transition: transform .22s ease; }
.detail-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font-family: "Yu Mincho", "Songti SC", serif; line-height: 1.35; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; font-size: 1.55rem; line-height: 1; }
.detail-content { padding: 18px 0 82px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.detail-item { padding: 12px; border-radius: 8px; background: #f4f7f9; }
.detail-item.wide { grid-column: 1 / -1; }
.detail-item dt { color: #6a8091; font-size: .76rem; font-weight: 700; }
.detail-item dd { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.detail-item a { color: #0f5f94; }
.drawer-actions { position: sticky; bottom: -22px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 14px 0 22px; background: linear-gradient(transparent, white 18%, white); z-index: 5; }
.detail-drawer.timeline-open { width:min(1250px,98vw); }
.school-timeline { margin-top:28px; padding-top:22px; border-top:3px solid #149ed7; scroll-margin-top:20px; }
.school-timeline h3 { font-size:1.4rem; }
.timeline-coverage { font-size:.875rem; color:#34536a; }
.timeline-legend { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.timeline-legend-item { border:1px solid; padding:5px 10px; border-radius:4px; font-size:.875rem; }
.event-application { background:#ffe1eb; color:#982245; border-color:#ed789c; }
.event-exam { background:#fff1c9; color:#785010; border-color:#e6b239; }
.event-result { background:#d9f3ef; color:#126159; border-color:#69bab0; }
.event-enrollment { background:#e9f3d4; color:#3e5c13; border-color:#a7c86b; }
.timeline-scroll,.timeline-status-scroll { overflow:auto; max-width:100%; border:1px solid #48b5e7; }
.timeline-table { border-collapse:separate; border-spacing:0; font-size:.875rem; width:100%; }
.timeline-table caption { text-align:left; padding:12px; background:#eef9ff; font-weight:700; }
.timeline-table th,.timeline-table td { padding:7px; border-right:1px solid #6bc5ed; border-bottom:1px dashed #6bc5ed; vertical-align:top; }
.timeline-table thead th { background:#daf1fd; white-space:nowrap; min-width:180px; color:#104d70; }
.timeline-table th:first-child { position:sticky; left:0; min-width:240px; max-width:280px; background:#eff9ff; z-index:1; }
.timeline-table td { min-width:180px; }
.timeline-table th span,.timeline-table th small,.timeline-status th span,.timeline-status th small { display:block; margin:6px 0; font-weight:400; }
.timeline-table a,.timeline-status a { font-size:.875rem; }
.timeline-selected th:first-child { box-shadow:inset 4px 0 #149ed7; }
.timeline-event { padding:9px; border:1px solid; margin-bottom:6px; line-height:1.5; border-radius:2px; }
.timeline-event strong,.timeline-event span,.timeline-event small { display:block; }
.timeline-event small { font-size:.8125rem; }
.timeline-empty { padding:20px; background:#eff6fa; border-left:4px solid #6f8aa0; line-height:1.7; }
.timeline-status { width:100%; border-collapse:collapse; font-size:.875rem; }
.timeline-status th,.timeline-status td { padding:12px; text-align:left; vertical-align:top; border:1px solid #d4e5ef; }
.timeline-status th { min-width:220px; max-width:320px; background:#f3f9fd; }
.timeline-pending { display:block; padding:4px 0; color:#5b6470; }
@media(max-width:720px){.detail-drawer.timeline-open{width:98vw}.timeline-table th:first-child{min-width:170px;max-width:190px}.drawer-actions{grid-template-columns:1fr}.timeline-status th{min-width:160px}}
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(8, 25, 40, .55); }
.modal-card { width: min(1180px, 98vw); max-height: 92vh; overflow: auto; padding: 22px; border-radius: 14px; background: white; box-shadow: var(--shadow); }
.compare-table-wrap { overflow-x: auto; margin-top: 18px; }
.compare-table { width: 100%; min-width: 800px; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 12px; vertical-align: top; border: 1px solid var(--line); overflow-wrap: anywhere; font-size: .82rem; }
.compare-table th { color: var(--ink); background: var(--blue-pale); text-align: left; }
.compare-table th:first-child, .compare-table td:first-child { width: 140px; color: var(--ink-soft); font-weight: 750; background: #f7f9fb; }
.scope-card { width: min(1320px, 98vw); }
.scope-controls { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.compact-search { min-height: 43px; max-width: 380px; border-width: 1px; }
.scope-controls .secondary-button { white-space: nowrap; }
.scope-controls .active-scope-filter { color: white; border-color: var(--ink); background: var(--ink); }
.scope-summary { margin: 12px 0 0; text-align: left; }
.scope-table th:first-child, .scope-table td:first-child { width: 240px; }
.scope-table th:nth-child(2), .scope-table td:nth-child(2) { width: 75px; }
.scope-table a { color: #0f5f94; font-weight: 700; }
.remove-compare { margin-top: 8px; border: 0; color: var(--accent-dark); background: transparent; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 10px 16px; border-radius: 8px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-inner { align-items: flex-start; }
  .topbar-meta { max-width: 330px; }
}
@media (max-width: 720px) {
  .topbar-inner { display: block; }
  .topbar-meta { margin-top: 13px; justify-content: flex-start; max-width: none; }
  .workspace { padding-top: 14px; }
  .mobile-only { display: inline-flex; align-items: center; }
  .search-box kbd { display: none; }
  .filter-panel { display: none; grid-template-columns: 1fr 1fr; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .filter-panel.open { display: grid; }
  .results-grid { grid-template-columns: 1fr; }
  .results-heading { display: block; }
  .result-summary { margin-top: 5px; text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item.wide { grid-column: auto; }
}
@media (max-width: 470px) {
  .brand { gap: 10px; }
  .brand-mark { width: 100px; height: 70px; padding: 5px; }
  .brand p { overflow-wrap: anywhere; }
  .topbar-meta span { font-size: .72rem; }
  .search-row { align-items: stretch; }
  .search-box { min-height: 48px; padding-inline: 11px; }
  .mobile-only { padding-inline: 11px; }
  .filter-panel { grid-template-columns: 1fr; }
  .key-facts { grid-template-columns: 1fr; }
  .key-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .drawer-actions { grid-template-columns: 1fr; }
  .compare-launcher { right: 14px; bottom: 14px; }
  .scope-controls { align-items: stretch; flex-direction: column; }
  .compact-search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* The existing navy/red identity, with school-type color ribbons. */
.quota-block{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin:14px 0;padding:12px 14px;border-radius:7px;background:#edf1f5;color:#455b70;border-left:5px solid #73879a;font-size:.875rem;line-height:1.5}
.quota-block strong{font-size:1.3rem;grid-column:2;grid-row:1 / span 2;align-self:center;max-width:180px;overflow-wrap:anywhere}.quota-block span:not(.quota-caption){font-size:.875rem}.quota-caption{font-weight:700}
.quota-unknown strong,.quota-unpublished strong{font-size:1rem}.detail-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.detail-shortcuts button{border:1px solid var(--line);border-radius:5px;padding:7px 12px;color:var(--ink);font-size:.875rem;background:white;cursor:pointer}.detail-shortcuts button:hover{background:#edf4fa}
.quota-numeric{background:#e3f0fb;color:#114c7d;border-color:#1b6197}.quota-shared{background:#fff0c9;color:#6d4500;border-color:#b97900}.quota-few{background:#e0f0e9;color:#15563e;border-color:#1c7050}.quota-total{background:#ede7f5;color:#573b7a;border-color:#74519a}.quota-unpublished{background:#f1f3f5;color:#526373;border-color:#8492a0}
.quota-block p,.quota-block .evidence-links,.quota-block small{grid-column:1 / -1;margin:0}.quota-block small{font-size:.8rem}
.tuition-line{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;padding-top:12px;margin:0 0 16px;border-top:1px solid var(--line);font-size:.875rem}.tuition-line span{color:var(--ink-soft)}.tuition-line strong{font-size:1rem}.tuition-line small{font-size:.8rem;color:var(--ink-soft)}
.support-section{margin-top:24px;padding-top:20px;border-top:2px solid var(--line)}.support-section h3{font-size:1.15rem;margin:0 0 14px}.evidence-links{display:flex;gap:8px 16px;flex-wrap:wrap;margin:10px 0}.support-section small{color:var(--ink-soft);font-size:.8rem}
.dorm-status{padding:10px 14px;border-radius:6px;background:#edf1f5;font-weight:750}.dorm-available{background:#e0f0e9;color:#15563e}.dorm-unavailable{background:#fdeae8;color:#912d24}.fee-subtotal{background:#edf4fa;padding:14px;border-radius:7px;font-size:.95rem;line-height:1.7}
.navigation-bar {background:var(--accent)}
.primary-nav {display:flex;gap:0;width:min(var(--content-width),100%);margin:0 auto;padding:0 var(--content-gutter)}
.primary-nav button {position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:58px;padding:14px 12px;white-space:nowrap;background:transparent;border:0;border-radius:0;font-size:1rem;font-weight:650;color:white}
.primary-nav button:hover {background:rgba(0,0,0,.1)}
.primary-nav button.active {background:var(--accent-dark)}
.primary-nav button.active::after {content:'';position:absolute;bottom:0;left:20%;right:20%;height:3px;background:white}
.primary-nav button:focus-visible {outline:3px solid white;outline-offset:-5px}
.admissions-tools {display:flex;justify-content:flex-end;margin:0 0 10px}
.admissions-tools .active {font-weight:750;text-decoration:underline;text-underline-offset:4px}
.placeholder-view {min-height:360px}
.home-content {padding:10px 0 0}
.home-heading h2 {margin:4px 0 10px;font-size:clamp(1.65rem,2.6vw,2.2rem);line-height:1.3}
.home-heading>p:last-child {max-width:780px;margin:0;color:var(--ink-soft)}
.home-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:26px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.home-stats>div {display:flex;flex-direction:column;gap:4px;padding:0 22px}
.home-stats>div:first-child {padding-left:0}
.home-stats>div+div {border-left:1px solid var(--line)}
.home-stats strong {font-size:clamp(1.15rem,2.5vw,1.9rem);line-height:1.3;overflow-wrap:anywhere}
.home-stats span {font-size:.85rem;color:var(--ink-soft)}
.home-entries {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-entry {--entry-tone:#275b86;--entry-start:#f5fbff;--entry-paper:#dfedf9;--entry-end:#d3e7f8;--entry-border:#bdd7ed;--entry-accent:#7fb1d9;display:flex;align-items:flex-start;flex-direction:column;gap:12px;min-width:0;padding:24px;text-align:left;background:var(--entry-paper);background-image:linear-gradient(135deg,var(--entry-start) 0%,var(--entry-paper) 55%,var(--entry-end) 100%);border:1px solid var(--entry-border);border-top:3px solid var(--entry-accent);border-radius:10px;color:var(--entry-tone);box-shadow:0 4px 16px rgba(42,48,53,.035);transition:box-shadow .2s ease,border-color .2s ease}
.home-entry[data-page="修士"] {--entry-tone:#27684e;--entry-start:#f5fcf7;--entry-paper:#e2f3e8;--entry-end:#d4efdf;--entry-border:#bcddc9;--entry-accent:#81bea0}
.home-entry[data-page="专门学校"] {--entry-tone:#72518c;--entry-start:#fcf7ff;--entry-paper:#eee4f8;--entry-end:#e4d8f3;--entry-border:#d5c0e5;--entry-accent:#b297cc}
.home-entry[data-page="recommend"] {--entry-tone:#94552f;--entry-start:#fff9f1;--entry-paper:#ffeadc;--entry-end:#ffe1ce;--entry-border:#edccaf;--entry-accent:#e8ac82}
.home-entry:hover {border-color:var(--entry-accent);box-shadow:0 8px 24px rgba(42,48,53,.08)}
.home-entry:focus-visible {outline:3px solid var(--entry-tone);outline-offset:4px}
.home-entry strong {font-size:1.45rem;color:var(--entry-tone)}
.home-entry>span:not(.home-entry-number):not(.home-entry-link) {color:#34434c;font-size:.9rem;line-height:1.7}
.home-entry-number {font-size:.75rem;color:var(--entry-tone);font-weight:700;letter-spacing:.03em}
.home-entry-link {display:flex;align-items:center;justify-content:space-between;gap:12px;align-self:stretch;margin-top:auto;padding-top:12px;color:var(--entry-tone);font-size:.875rem;font-weight:700}
.home-data-note {display:flex;align-items:center;justify-content:space-between;gap:24px;margin:26px 0 0;padding:22px;border:1px solid var(--line);border-radius:10px;background:#edf2f6}
.home-data-note h3 {margin:0 0 8px;font-size:1rem}
.home-data-note p {margin:5px 0;font-size:.875rem;color:var(--ink-soft);max-width:900px}
.home-data-note button {flex:0 0 auto}
@media(max-width:1050px){.primary-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.primary-nav button{min-height:48px}.home-entries{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.primary-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.primary-nav button{min-height:48px;padding:10px 6px;font-size:.875rem}}
@media(max-width:600px){.home-data-note{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.home-stats>div{padding:0 10px}.home-entry{padding:18px}.home-entries{gap:12px}}
@media(max-width:380px){.home-entries{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.home-entry{transition:none}}
.route-tabs {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.route-tabs button {border:1px solid var(--line-strong);border-radius:7px;padding:8px 14px;background:white;color:var(--ink);font-size:.95rem}
.route-tabs button.active {background:var(--accent-dark);color:white;border-color:var(--accent-dark)}
.filter-note,.requirement-legend {font-size:.875rem;color:var(--ink-soft);margin:10px 0 14px;line-height:1.6}
.data-notes {font-size:.875rem;margin-top:16px;color:var(--ink-soft);border-top:1px solid var(--line);padding-top:12px}.data-notes summary{cursor:pointer}
.requirement-legend {display:flex;flex-wrap:wrap;gap:5px 12px;border-top:1px solid var(--line);padding-top:12px;margin-bottom:0}
.nature-block {display:inline-flex;align-items:center;justify-content:center;min-width:60px;padding:6px 12px;border-radius:5px;color:white;font-size:.875rem;font-weight:800;white-space:nowrap}
.nature-block.national {background:#155a8a}.nature-block.public {background:#006959}.nature-block.private {background:#873c72}.nature-block.unconfirmed {background:#596a76}
.nature-national {border-top:5px solid #155a8a}.nature-public {border-top:5px solid #006959}.nature-private {border-top:5px solid #873c72}
.school-meta {display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:.875rem;color:var(--ink-soft)}
.program-name {font-size:.9rem;color:var(--ink-soft);margin:8px 0;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.key-facts dt {display:flex;gap:6px;align-items:center;font-size:.875rem;font-weight:700;color:var(--ink-soft)}
.key-facts dt svg {width:19px;height:19px}
.key-facts dd {display:block;overflow:visible;font-size:.875rem;margin-top:8px}
.requirement summary {display:flex;gap:7px;align-items:center;flex-wrap:wrap;cursor:pointer;list-style:none;font-weight:650}
.requirement summary::-webkit-details-marker {display:none}
.requirement summary small {font-size:.75rem;font-weight:400}
.requirement summary::after {content:'展开';font-size:.75rem;font-weight:400;color:#62798d}
.requirement[open] summary::after {content:'收起'}
.requirement-symbol {display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:1.05rem;flex-shrink:0}
.requirement-symbol.required {background:#e1f0e9;color:#155843}.requirement-symbol.not-required {background:#e9eff5;color:#315a78}.requirement-symbol.conditional {background:#fff1ce;color:#805212}.requirement-symbol.unknown {background:#edf0f2;color:#526371}
.requirement p {white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;line-height:1.6;font-weight:400}
.brand p,.filter-panel label,.badge,.compare-check,.compare-table th,.compare-table td,.detail-item dt {font-size:.875rem}
.detail-item dd {font-size:1rem}
.compare-table-wrap {max-height:65vh;overflow:auto}
.unlimited-compare {min-width:0}.unlimited-compare th:not(:first-child),.unlimited-compare td:not(:first-child){width:300px}
.unlimited-compare th:first-child {position:sticky;left:0;z-index:2;width:140px;box-shadow:2px 0 3px #102a4314}
.unlimited-compare thead th {position:sticky;top:0;z-index:3;background:#eaf1f7}
.unlimited-compare thead th:first-child {z-index:4}
.recommend-heading {max-width:900px}.recommend-heading h2 {margin:4px 0 12px;font-size:1.8rem}.recommend-heading p {color:var(--ink-soft)}
.recommend-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.recommend-card {background:white;border-radius:12px;padding:22px;box-shadow:0 5px 18px #102a430a;border-inline:1px solid var(--line);border-bottom:1px solid var(--line)}
.recommend-card h3 {font-size:1.3rem;margin:14px 0 8px}.recommend-reason {margin:0 0 10px;line-height:1.7}
.source-link {font-size:.875rem;color:#145886;font-weight:650;text-underline-offset:3px}
.person-block {margin:18px 0;padding:16px;background:#f1f5f8;border-radius:8px}.person-block h4 {margin:0;font-size:1rem}.person-block p {font-size:.95rem;line-height:1.7;margin:10px 0}
.recommend-actions {display:flex;gap:10px;flex-wrap:wrap}
button:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid #e0a620;outline-offset:3px}
@media(max-width:720px){.recommend-grid{grid-template-columns:1fr}.key-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.key-facts div+div{padding-left:8px;border-left:1px solid var(--line);border-top:0}.key-facts summary{gap:4px}.key-facts dt{font-size:.875rem}.requirement-symbol{width:24px;height:24px}.requirement summary::after{display:none}.topbar-meta span{font-size:.8rem}.topbar-meta #checked-at{display:none}}
@media(max-width:360px){.key-facts{grid-template-columns:1fr}.key-facts div+div{padding-left:0;border-left:0;border-top:1px solid var(--line)}}
:root { --policy-amber:#fff4d8; }
.residence-line { font-size:12px; line-height:1.6; border-radius:7px; padding:6px 9px; background:#f0f3f7; color:#526478; }
.residence-required { background:#fce9e9; color:#9b3333; }
.residence-conditional { background:#fff2d1; color:#865d08; }
.residence-not-required { background:#e1f3e8; color:#236842; }
.admission-policy { margin:22px 0; scroll-margin-top:18px; padding:18px; border:1px solid #dfe5ed; border-radius:12px; background:#fafbfe; }
.admission-policy h3 { margin:0 0 14px; font-size:17px; }
.method-critical { margin:0 0 16px; border-left:4px solid #df9d29; padding:12px; background:var(--policy-amber); color:#5b430e; line-height:1.7; font-weight:600; }
.method-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.method-option { background:#fff; padding:14px; border:1px solid #dce3ed; border-radius:9px; min-width:0; }
.method-option h4 { margin:0 0 8px; }
.method-option strong { font-size:13px; color:#9b6505; }
.method-option dl { margin:10px 0 0; font-size:13px; line-height:1.7; }
.method-option dt { color:#718096; margin-top:8px; }
.method-option dd { margin:0; overflow-wrap:anywhere; }
.detail-shortcuts { flex-wrap:wrap; }
.tuition-line strong { overflow-wrap:anywhere; }
@media(max-width:600px) { .method-options { grid-template-columns:1fr; } .admission-policy { padding:12px; } }
.professional-intro {margin-bottom:18px}
.professional-intro h2 {margin:6px 0 12px;font-size:1.65rem}
.professional-directory-panel {margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.professional-directory-panel summary {cursor:pointer;font-weight:650;font-size:1rem}
.professional-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.professional-school {min-width:0;background:white;padding:18px;border:1px solid var(--line);border-top:4px solid #315a78;border-radius:9px}
.professional-school.nature-public {border-top-color:#1b745c}
.professional-school.nature-private {border-top-color:#873b7b}
.professional-school h3 {font-size:1.1rem;overflow-wrap:anywhere;margin:14px 0 8px}
.professional-type {background:#e5edf6;color:#22466a}
.professional-notice {margin:14px 0;padding:16px;border-left:4px solid #315a78;background:#edf3f9;line-height:1.7}
.professional-notice p {margin:8px 0;font-size:.95rem}
@media(max-width:720px){.professional-grid{grid-template-columns:1fr}.professional-intro{padding:18px}}

.target-search-form { display:flex; gap:.65rem; align-items:stretch; }
.target-search-form input { flex:1; min-width:0; border:1px solid #aabfd1; border-radius:.65rem; padding:.75rem 1rem; font:inherit; }
.target-modes { display:flex; gap:.45rem; margin:0 0 .55rem; }
.target-modes button { background:white; color:#24465e; border:1px solid #d4e1eb; border-radius:2rem; padding:.4rem .85rem; }
.target-modes button[aria-pressed="true"] { background:#174768; color:white; }
.target-suggestions { position:relative; z-index:3; border:1px solid #d2dfeb; border-radius:.65rem; background:white; box-shadow:0 8px 24px #17344d16; margin:.35rem 0; }
.target-suggestions [role="option"] { cursor:pointer; padding:.5rem 1rem; }
.target-suggestions [role="option"]:hover,.target-suggestions [aria-selected="true"] { background:#eaf3fa; }
.target-results { margin:1rem 0; }
#results:has(.compact-admission) { grid-template-columns:1fr; }
.result-card.compact-admission { display:flex; justify-content:space-between; align-items:center; gap:.65rem 1rem; border:1px solid #d4e1eb; border-radius:.7rem; padding:.8rem 1rem; margin:0 0 .5rem; }
.compact-admission h3,.compact-admission p { margin:.2rem 0; }
.compact-admission small { color:#47637a; }
.compact-actions { display:flex; align-items:center; gap:.65rem; flex-shrink:0; }
.compact-actions button:first-child { background:white; color:#225575; border:1px solid #d4e1eb; border-radius:50%; width:2rem; height:2rem; }
.target-school-dialog { width:min(52rem,calc(100vw - 2rem)); max-height:85vh; border:1px solid #d4e1eb; border-radius:.8rem; padding:1rem; }
.target-school-dialog::backdrop { background:#102a4370; }
.target-school-dialog header { position:sticky; top:0; display:flex; justify-content:space-between; align-items:center; background:white; }
.target-school-dialog header button { border:0; background:transparent; font-size:1.5rem; }
@media(max-width:620px) {
  .result-card.compact-admission { align-items:flex-start; flex-direction:column; }
  .compact-actions { align-self:flex-end; }
}
