
:root {
  --primary: #2f72ed;
  --primary-dark: #1f5fd1;
  --primary-soft: #eaf3ff;
  --primary-pale: #f5f9ff;
  --blue-100: #dbeaff;
  --blue-150: #d4e6ff;
  --blue-200: #c7defc;
  --text: #1b2a41;
  --text-2: #53657d;
  --text-3: #8090a5;
  --line: #e3ebf5;
  --white: #ffffff;
  --green: #1ca876;
  --orange: #f29a38;
  --shadow: 0 18px 48px rgba(61, 105, 165, 0.11);
  --shadow-sm: 0 10px 28px rgba(61, 105, 165, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; }
section { scroll-margin-top: 88px; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }


.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(227,235,245,.92);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  flex: 0 0 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(47,114,237,.12);
}
.brand-text strong {
  display: block;
  color: #173963;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: .04em;
}
.brand-text span {
  display: block;
  color: #8ca0b8;
  font-size: 10px;
  letter-spacing: .12em;
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 10px;
  color: #52667f;
  font-size: 14px;
  transition: .2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-pale);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(47,114,237,.2);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-light {
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--blue-100);
}
.btn-white {
  color: var(--primary);
  background: #fff;
  border: 1px solid #dce9f8;
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  flex: 0 0 42px;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--blue-100);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(92,157,255,.18), transparent 22%),
    radial-gradient(circle at 10% 0%, rgba(116,185,255,.16), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.hero { padding: 74px 0 64px; }
.page-hero { padding: 58px 0 42px; }
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 72px solid rgba(207,228,255,.32);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 62px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: #edf5ff;
  border: 1px solid #d8e9ff;
  font-size: 13px;
  font-weight: 700;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(47,114,237,.11);
}
.hero h1,
.page-hero h1 {
  margin: 22px 0 18px;
  color: #17375e;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.16;
  letter-spacing: -.04em;
}
.hero p,
.page-hero p {
  max-width: 650px;
  margin: 0;
  color: #68809a;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: #8091a7;
  font-size: 13px;
}
.hero-card {
  position: relative;
  z-index: 2;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255,255,255,.9);
  border: 1px solid #e2ecf7;
  box-shadow: var(--shadow);
}
.hero-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #264b72;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr auto;
  gap: 12px;
}
.input,
.select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #dbe6f2;
  background: #fbfdff;
  color: #35516c;
  outline: 0;
  transition: .2s ease;
}
textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}
.input:focus,
.select:focus,
textarea:focus {
  border-color: #9cc3f9;
  box-shadow: 0 0 0 4px rgba(47,114,237,.09);
}
.hero-stats,
.stat-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-stats.four,
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: #fbfdff;
  border: 1px solid #e8eff7;
}
.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 26px;
  line-height: 1.2;
}
.stat-card span { color: #7d8fa5; font-size: 13px; }

.section { padding: 84px 0; }
.section-soft {
  background: #f7faff;
  border-top: 1px solid #edf2f8;
  border-bottom: 1px solid #edf2f8;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}
.section-kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 8px 0 0;
  color: #203f62;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.section-head p {
  max-width: 560px;
  margin: 0;
  color: #74869c;
  font-size: 15px;
}
.text-link { color: var(--primary); font-weight: 700; font-size: 14px; white-space: nowrap; }

.entry-grid,
.category-grid,
.info-grid,
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.entry-card,
.category-card,
.info-card,
.simple-card {
  min-height: 205px;
  padding: 24px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid #e3ebf5;
  transition: .23s ease;
}
.entry-card:hover,
.category-card:hover,
.info-card:hover,
.simple-card:hover,
.news-card:hover,
.school-card:hover {
  transform: translateY(-4px);
  border-color: #bcd6f6;
  box-shadow: var(--shadow-sm);
}
.icon-box {
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: #edf5ff;
  font-weight: 800;
}
.entry-card h3,
.category-card h3,
.info-card h3,
.simple-card h3,
.panel h3,
.timeline-card h3 { margin: 18px 0 8px; color: #294d71; font-size: 18px; }
.entry-card p,
.category-card p,
.info-card p,
.simple-card p,
.panel p,
.timeline-card p,
.news-card p { margin: 0; color: #7b8da2; font-size: 14px; }
.entry-card .more { display: inline-flex; margin-top: 18px; color: var(--primary); font-size: 13px; font-weight: 700; }
.category-meta { display: inline-block; margin-top: 14px; color: #6e8cb0; font-size: 12px; }

.school-toolbar,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}
.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  color: #647991;
  background: #fff;
  border: 1px solid #dfe8f2;
  font-size: 13px;
}
.filter-chip.active,
.filter-chip:hover {
  color: var(--primary);
  background: #edf5ff;
  border-color: #bfdbff;
}
.school-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.school-card,
.news-card,
.panel {
  padding: 22px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid #e2ebf5;
  transition: .22s ease;
}
.school-top,
.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.school-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.school-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #dce7f4;
  box-shadow: 0 6px 16px rgba(47, 114, 237, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}
.school-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.school-name h3,
.news-card h3 {
  margin: 0;
  color: #2c4f72;
  font-size: 17px;
}
.school-name span,
.news-card .meta { color: #91a1b4; font-size: 12px; }
.school-status,
.badge-success,
.badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: #ecfaf5;
  font-size: 11px;
  white-space: nowrap;
}
.badge {
  color: var(--primary);
  background: #edf5ff;
}
.tags,
.school-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag {
  padding: 5px 9px;
  border-radius: 8px;
  color: #71859c;
  background: #f5f8fc;
  border: 1px solid #e7edf4;
  font-size: 11px;
}
.tag.primary { color: var(--primary); background: #eef5ff; border-color: #d4e6ff; }
.school-bottom,
.school-meta,
.panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
  color: #91a0b2;
  font-size: 12px;
}
.school-bottom a,
.school-meta a { color: var(--primary); font-weight: 700; }
.favorite {
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  flex: 0 0 36px;
  border-radius: 10px;
  border: 1px solid #dfe8f2;
  background: #fbfdff;
  color: #9db0c4;
  font-size: 18px;
}
.favorite.active { color: #f3a22f; background: #fffaf0; border-color: #ffe3ab; }

.updates-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 20px;
  align-items: start;
}
.feature-update {
  min-height: 360px;
  padding: 30px;
  border-radius: 23px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(255,255,255,.22), transparent 22%),
    linear-gradient(145deg, #4e91f5, #2869d5);
  box-shadow: 0 18px 42px rgba(47,114,237,.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
}
.feature-update .label {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 700;
}
.feature-update h3 {
  max-width: 560px;
  margin: 30px 0 13px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: -.03em;
}
.feature-update p { max-width: 590px; margin: 0; color: rgba(255,255,255,.84); font-size: 14px; }
.feature-update a {
  align-self: flex-start;
  margin-top: 28px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #2b69c9;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.update-list { display: grid; gap: 12px; }
.update-item {
  padding: 20px 22px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid #e3ebf5;
  transition: .2s ease;
}
.update-item:hover { border-color: #bfd8f7; transform: translateX(3px); }
.update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #8ca0b6;
  font-size: 11px;
}
.update-type { color: var(--primary); font-weight: 700; }
.update-item h4 { margin: 9px 0 5px; color: #315575; font-size: 16px; }
.update-item p { margin: 0; color: #8394a8; font-size: 13px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
}
.process-card {
  position: relative;
  min-height: 185px;
  padding: 23px 19px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid #e3ebf5;
}
.process-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  right: -14px;
  width: 14px;
  height: 1px;
  background: #bcd3ef;
}
.process-no,
.timeline-dot {
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #edf5ff;
  font-size: 12px;
  font-weight: 800;
}
.process-card h3,
.timeline-card h3 { margin: 18px 0 7px; color: #315474; font-size: 16px; }
.process-card p,
.timeline-card p { margin: 0; color: #8797aa; font-size: 13px; }

.timeline { display: grid; gap: 16px; }
.timeline-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}
.timeline-card {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e3ebf5;
}
.timeline-card ul { margin: 10px 0 0 18px; color: #72869f; padding: 0; }
.timeline-card li { margin: 6px 0; }

.panel-grid-2,
.detail-grid {
  display: grid;
  gap: 18px;
}
.panel-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.detail-stack,
.panel-stack { display: grid; gap: 18px; }
.panel ul,
.simple-list {
  margin: 12px 0 0 18px;
  padding: 0;
  color: #73879f;
}
.panel li,
.simple-list li { margin: 6px 0; }
.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.kv-item {
  padding: 16px;
  border-radius: 14px;
  background: #f9fbff;
  border: 1px solid #e8eff8;
}
.kv-item strong { display: block; color: #315474; font-size: 14px; margin-bottom: 6px; }
.kv-item span { color: #7d90a6; font-size: 13px; }

.list-card { display: grid; gap: 14px; }
.news-card .meta-row,
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.news-card p { margin-top: 10px; }
.news-card .more { margin-top: 16px; display: inline-flex; color: var(--primary); font-weight: 700; font-size: 13px; }

.cta { padding: 0 0 80px; }
.cta-box {
  padding: 36px 40px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
  border: 1px solid #d8e8fb;
}
.cta-box h2 { margin: 0; color: #264c73; font-size: 28px; }
.cta-box p { margin: 7px 0 0; color: #71869e; }
.cta-actions { display: flex; gap: 10px; flex-shrink: 0; }

.footer {
  padding: 50px 0 24px;
  background: #f8fbff;
  border-top: 1px solid #e5edf6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 42px;
}
.footer-intro p {
  max-width: 380px;
  margin: 18px 0 0;
  color: #7c8fa5;
  font-size: 13px;
}
.footer-col h4 { margin: 3px 0 14px; color: #3a5977; font-size: 14px; }
.footer-col a { display: block; margin: 9px 0; color: #8294a8; font-size: 13px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #e4ebf3;
  color: #98a7b8;
  font-size: 12px;
}
.icp-record {
  margin-top: 14px;
  text-align: center;
  color: #8fa0b3;
  font-size: 12px;
}
.icp-record a {
  color: inherit;
  transition: color .2s ease;
}
.icp-record a:hover {
  color: var(--primary);
}
.breadcrumb { color: #7890ab; font-size: 12px; }
.breadcrumb span { color: #4f6580; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(25,44,68,.36);
  backdrop-filter: blur(6px);
}
.modal.open { display: grid; }
.modal-card {
  width: min(100%, 620px);
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(33,70,112,.22);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.modal-head h3 { margin: 4px 0 0; color: #2c4f72; font-size: 24px; }
.modal-close {
  width: 38px;
  height: 38px;
  aspect-ratio: 1;
  flex: 0 0 38px;
  border-radius: 10px;
  color: #71869f;
  background: #f3f7fb;
  border: 1px solid #e2eaf3;
  font-size: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group span { color: #5d7188; font-size: 13px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37,58,88,.94);
  box-shadow: 0 18px 38px rgba(22,36,56,.22);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty-state {
  padding: 40px 24px;
  text-align: center;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed #d3e2f5;
}
.empty-state h3 { margin: 0 0 8px; color: #294d71; }
.empty-state p { margin: 0; color: #8091a5; }



.official-source { display:inline-flex; align-items:center; gap:6px; margin-top:14px; color:var(--primary); font-size:13px; font-weight:700; }
.official-source::after { content:"↗"; font-size:12px; }
.school-summary { margin:14px 0 0; color:#71859b; font-size:13px; line-height:1.7; }
.quick-facts { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:24px; }
.quick-fact { padding:16px; border-radius:14px; background:#f8fbff; border:1px solid #e4edf8; }
.quick-fact strong { display:block; color:#2d5277; font-size:14px; }
.quick-fact span { display:block; margin-top:4px; color:#7d90a6; font-size:12px; }
.source-note { padding:16px 18px; border-radius:14px; background:#f3f8ff; border:1px solid #dceaff; color:#5c7590; font-size:13px; }
.source-note strong { color:#2e66b7; }
.news-school { color:#5a7593; font-size:12px; font-weight:700; }
@media (max-width:860px){ .quick-facts{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .quick-facts{grid-template-columns:1fr;} }


/* 全站排版与交互优化 */
body { overflow-x: hidden; }
main { min-height: 52vh; }
.header-inner > *,
.hero-grid > *,
.detail-grid > *,
.panel-grid-2 > *,
.updates-grid > * { min-width: 0; }
.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 200;
  padding: 9px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47,114,237,.26);
  outline-offset: 3px;
}
body.modal-open { overflow: hidden; }
.page-section-first { padding-top: 36px; }
.page-hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 4vw, 48px);
}
.page-hero p { max-width: 760px; }
.compact-head { margin-bottom: 18px; }
.school-filter-panel { margin-bottom: 24px; }
.school-filter-grid { grid-template-columns: minmax(220px,1.2fr) repeat(3,minmax(130px,.75fr)) auto; }
.hero-card .search-grid { grid-template-columns: 1fr 1fr auto; }
.hero-card .search-grid .input { grid-column: 1 / -1; }
.featured-school-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.entry-card,
.category-card,
.school-card,
.news-card { display: flex; flex-direction: column; }
.entry-card .more,
.category-card .category-meta,
.school-card .school-bottom,
.news-card .official-source { margin-top: auto; }
.entry-card p,
.category-card p { margin-bottom: 18px; }
.school-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.school-bottom { width: 100%; }
.news-card h3 { line-height: 1.48; }
.news-card .official-source { padding-top: 14px; }
.detail-tags { margin-top: 16px; }
.detail-summary { margin-top: 16px !important; color: #70859e !important; }
.detail-kv { margin-top: 20px; }
.compact-link-card {
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  align-items: start;
}
.compact-link-card .icon-box { width: 38px; height: 38px; grid-row: 1 / span 2; }
.compact-link-card h3 { margin: 1px 0 4px; font-size: 15px; }
.compact-link-card p { font-size: 12px; line-height: 1.6; }
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: #d9e7f8;
}
.timeline-dot { position: relative; z-index: 1; box-shadow: 0 0 0 7px #fff; }
.filter-chip { min-height: 38px; }
.modal-card { overscroll-behavior: contain; }

@media (max-width: 1100px) {
  .hero-grid,
  .updates-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head p { max-width: 720px; }
  .hero-stats.four,
  .cards-4,
  .process-grid,
  .featured-school-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .entry-grid,
  .category-grid,
  .info-grid,
  .school-grid,
  .news-grid,
  .cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .school-filter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #resetFilters { grid-column: 1 / -1; }
  .process-card::after { display: none; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; }
  .footer-intro { grid-column: 1 / -1; }
  .feature-update { min-height: 320px; }
}

@media (max-width: 1024px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    border: 1px solid #e2ebf6;
    box-shadow: 0 20px 40px rgba(61,105,165,.12);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions .btn { display: none; }
  .hero-card .search-grid { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 760px) {
  .panel-grid-2 { grid-template-columns: 1fr; }
  .school-filter-grid { grid-template-columns: 1fr; }
  #resetFilters { grid-column: auto; }
  .hero-card .search-grid { grid-template-columns: 1fr; }
  .hero-card .search-grid .input { grid-column: auto; }
  .hero-stats,
  .stat-grid,
  .hero-stats.four,
  .kv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero,
  .page-hero,
  .section { padding-top: 54px; padding-bottom: 54px; }
  .page-section-first { padding-top: 28px; }
  .header-inner { height: 68px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-text strong { font-size: 16px; }
  .brand-text span { max-width: 205px; font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
  .hero h1 { font-size: 36px; }
  .hero-card,
  .school-card,
  .news-card,
  .entry-card,
  .category-card,
  .info-card,
  .simple-card,
  .panel,
  .timeline-card,
  .cta-box,
  .feature-update,
  .update-item { padding: 18px; }
  .entry-grid,
  .category-grid,
  .info-grid,
  .school-grid,
  .news-grid,
  .cards-3,
  .cards-4,
  .process-grid,
  .featured-school-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .timeline-item { grid-template-columns: 40px minmax(0,1fr); gap: 12px; }
  .timeline::before { left: 17px; }
  .footer-bottom,
  .school-meta,
  .panel-meta,
  .update-meta,
  .flex-between { flex-direction: column; align-items: flex-start; }
  .hero-actions,
  .cta-actions,
  .form-actions { width: 100%; }
  .hero-actions .btn,
  .cta-actions .btn,
  .form-actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 6px;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .feature-update { min-height: auto; }
  .school-top { align-items: flex-start; }
  .modal { padding: 12px; }
  .modal-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 2026-07-19 responsive polish: fixed-size vector controls and resilient media */
.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.icon-box .ui-icon { width: 22px; height: 22px; }
.menu-btn .ui-icon { width: 22px; height: 22px; }
.modal-close .ui-icon,
.favorite .ui-icon { width: 18px; height: 18px; }
.menu-icon { display: grid; place-items: center; }
.menu-icon-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-close { display: grid; }

.brand-logo {
  object-fit: contain;
  object-position: center;
  padding: 5px;
}
.school-name > div:last-child { min-width: 0; }
.school-name h3 { overflow-wrap: anywhere; }
.school-logo {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  max-width: 54px;
  max-height: 54px;
  aspect-ratio: 1;
  flex: 0 0 54px;
  position: relative;
  isolation: isolate;
}
.school-logo::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #edf5ff;
  font-weight: 800;
  font-size: 15px;
  z-index: 0;
}
.school-logo img {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 2px;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.school-logo.is-fallback img { display: none; }
.page-schools .school-logo { width: 58px; height: 58px; min-width: 58px; min-height: 58px; max-width: 58px; max-height: 58px; flex-basis: 58px; }
.page-schools .school-logo img { width: 48px; height: 48px; max-width: 48px; max-height: 48px; }

.header { isolation: isolate; }
.header::after {
  content: "";
  position: fixed;
  inset: 68px 0 0;
  z-index: 0;
  display: none;
  background: rgba(26, 46, 72, .22);
  backdrop-filter: blur(2px);
}
.header.menu-open::after { display: block; }
body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .nav { z-index: 2; max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  @supports (height: 100dvh) { .nav { max-height: calc(100dvh - 96px); } }
  .menu-btn { position: relative; z-index: 3; }
}

@media (max-width: 640px) {
  .school-logo,
  .page-schools .school-logo { width: 52px; height: 52px; min-width: 52px; min-height: 52px; max-width: 52px; max-height: 52px; flex-basis: 52px; }
  .school-logo img,
  .page-schools .school-logo img { width: 42px; height: 42px; max-width: 42px; max-height: 42px; }
  .school-name { gap: 12px; }
  .filter-row { overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
  .filter-chip { min-height: 42px; scroll-snap-align: start; }
  .hero h1 { font-size: clamp(32px, 9.3vw, 36px); }
  .page-hero h1 { font-size: clamp(31px, 9vw, 38px); }
  .toast { max-width: calc(100% - 28px); text-align: center; border-radius: 14px; }
}

@media (max-width: 360px) {
  .brand-text span { display: none; }
  .brand-text strong { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (hover: none) {
  .btn:hover,
  .entry-card:hover,
  .category-card:hover,
  .info-card:hover,
  .simple-card:hover,
  .news-card:hover,
  .school-card:hover { transform: none; }
}

