* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #123047;
  background-color: #f3f4f6;
  scroll-behavior: smooth;
}

html {
  /* 保证始终预留滚动条宽度，避免页面之间左右轻微位移 */
  overflow-y: scroll;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.18s ease-out, border-color 0.18s ease-out, background-color 0.18s ease-out;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.99);
  border-bottom-color: #d1d5db;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #1a4f7a;
}

.logo span {
  font-weight: 400;
  font-size: 14px;
  margin-left: 4px;
  color: #4a5568;
}

.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}

.main-nav a {
  padding: 4px 6px;
  border-radius: 4px;
}

.main-nav a:hover:not(.nav-button) {
  background-color: #edf2f7;
  text-decoration: none;
}

.nav-button {
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.nav-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  color: #ffffff;
}

.nav-portal {
  background-color: #0f766e;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.4);
  margin-left: 8px;
  color: #ffffff;
}

.nav-portal:hover {
  background-color: #115e59;
  color: #ffffff;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #4a5568;
}

.lang-switch a {
  padding: 2px 4px;
  border-radius: 4px;
}

.lang-switch a:hover {
  background-color: #edf2f7;
  text-decoration: none;
}

.lang-switch .active {
  font-weight: 600;
  color: #1a4f7a;
}

.hero {
  padding: 64px 0 56px;
  background: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 32%, #e0f2fe 60%, #f8fafc 100%);
  border-bottom: 1px solid #e0f2fe;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
   transition: background-color 0.18s ease-out, transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #1a4f7a;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  text-decoration: none;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.34);
}

.hero-note {
  font-size: 13px;
  color: #64748b;
}

.hero-note-strong {
  margin-top: 8px;
  font-weight: 600;
  color: #2563eb;
}

.hero-points {
  margin: 8px 0 6px;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.hero-points li {
  margin-bottom: 4px;
}

.hero-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  padding: 20px 20px 18px;
}

.hero-visual {
  position: relative;
  max-width: 420px;
  margin-left: auto;
}

.schools-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe 0, #eff6ff 40%, #bbf7d0 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
}

.schools-banner-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
}

.schools-banner-main::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #22c55e 0, #a7f3d0 40%, #e0f2fe 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.4);
}

.schools-banner-tag {
  padding: 8px 16px;
  border-radius: 999px;
  background-color: #111827;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.5);
}

.hero-photo-shell {
  position: relative;
  border-radius: 24px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(59, 130, 246, 0.75));
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.4);
}

.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, #bbf7d0 0, #eff6ff 40%, #f9fafb 100%);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  transform: scale(1.02);
  transition: transform 4s ease-out;
}

.hero-visual:hover .hero-photo img {
  transform: scale(1.06);
}

.hero-photo-tag {
  position: absolute;
  right: 10%;
  top: 8%;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.88);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.55);
}

.hero-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f2933;
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
  color: #4b5563;
}

.hero-card-list li {
  margin-bottom: 4px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: #ecfdf3;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
}

.section {
  padding: 56px 0;
}

.section-contact {
  padding: 40px 0 44px;
}

.section.alt {
  background: radial-gradient(circle at top right, #eff6ff 0, #ffffff 45%, #f8fafc 100%);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0f172a;
}

.section-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Keep key tagline on one line on larger screens */
@media (min-width: 900px) {
  .section-header-wide .section-subtitle {
    white-space: nowrap;
  }
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 20px;
}

.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 24px;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card.highlight {
  border-color: #bfdbfe;
  background-color: #eff6ff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.14);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  border-color: #c4ddff;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.card-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}

.card-body {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 28px;
}

.list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #4b5563;
}

.list li {
  margin-bottom: 6px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
}

.timeline-step {
  font-size: 13px;
  color: #4b5563;
}

.timeline-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-step-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: #0f172a;
}

.faq-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 20px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: #bfdbfe;
}

.faq-q {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.faq-a {
  font-size: 13px;
  color: #4b5563;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  margin-top: 8px;
}

.value-item-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.value-item-body {
  font-size: 12px;
  color: #64748b;
}

.about-values-title {
  margin-top: 20px;
}

.values-row {
  margin-top: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.9fr);
  grid-gap: 24px;
  align-items: stretch;
}

.contact-panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  padding: 16px 18px 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.contact-panel-form {
  background: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 40%, #ffffff 100%);
}

.form-field {
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: #334155;
  margin-bottom: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
}

.form-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.form-status {
  font-size: 12px;
  color: #64748b;
}

.form-hint {
  font-size: 12px;
  color: #94a3b8;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 18px 0;
  background-color: #ffffff;
  font-size: 12px;
  color: #64748b;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.section-media {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #bfdbfe 0, #eff6ff 40%, #f9fafb 100%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.3);
}

.section-media img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.04);
  transition: transform 4.5s ease-out;
  mix-blend-mode: multiply;
}

.section-media:hover img {
  transform: scale(1.1);
}

.section-media-small {
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at bottom right, #bbf7d0 0, #eff6ff 45%, #ffffff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}

.section-media-small img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.03);
  transition: transform 4s ease-out;
}

.section-media-small:hover img {
  transform: scale(1.08);
}

.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.schools-hero {
  padding: 60px 0 32px;
  background: radial-gradient(circle at 10% 20%, #d8f3ff 0, #eef5ff 40%, #f7fbff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.schools-hero .hero-title {
  margin-bottom: 12px;
}

.schools-hero .hero-subtitle {
  max-width: 720px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.stat-card .label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.stat-card .hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.data-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e8f3ff 0%, #eef6ff 50%, #e8f3ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-panel {
  margin: 20px auto 12px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.filter-field label {
  display: block;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 4px;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  background: #f8fafc;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.pill.positive {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.pill.neutral {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.pill.badge {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.school-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.school-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.school-name {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  margin: 0;
}

.school-meta {
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ethnicity-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ethnicity-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
}

.bar-shell {
  position: relative;
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #2563eb;
}

.map-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.load-more {
  text-align: center;
  margin: 18px 0 10px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.badge-soft {
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
}

.small-note {
  font-size: 12px;
  color: #475569;
}

.map-panel {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.map-panel .leaflet-container {
  height: 100%;
  width: 100%;
  font-family: inherit;
}

.map-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  margin: 12px 0 4px;
}

.pill-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  border: 1px solid #e2e8f0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-bar {
  position: static;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.compare-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #312e81;
  font-size: 12px;
  border: 1px solid #e0e7ff;
}

.btn-link {
  border: none;
  background: none;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

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

.school-card details {
  margin-top: 6px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}

.school-card summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

.school-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
}

.stat-small {
  font-size: 12px;
  color: #475569;
}

.view-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.view-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-toggle {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-toggle.active {
  border-color: #2563eb;
  color: #2563eb;
  background: #e0edff;
}

.compact-list .school-card {
  padding: 10px 12px;
  gap: 6px;
}

.compact-list .school-card header {
  flex-direction: row;
  align-items: center;
}

.compact-list .school-card .ethnicity-bars,
.compact-list .school-card details {
  display: none;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
}

.group-title {
  font-weight: 700;
  color: #0f172a;
}

.summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  margin-top: 10px;
  margin-bottom: 12px;
  width: 100%;
}

.summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #0f172a;
  min-height: 28px;
}

.map-wide {
  width: 100%;
  overflow: hidden;
}

.map-wide .map-panel {
  height: 580px;
  position: relative;
  z-index: 0;
}

.leaflet-popup-content {
  margin: 8px 10px;
  min-width: 380px;
}

.popup {
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
}

.popup-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.popup-line {
  color: #334155;
}

.meta-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 2px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px 18px;
  margin: 6px 0 2px;
}

.school-grid.single .meta-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.school-grid.single .meta-row {
  justify-content: space-between;
  white-space: nowrap;
  width: 100%;
}

.school-grid.single .meta-value {
  min-width: 0;
  white-space: nowrap;
  text-align: right;
}

.school-card.single-card .meta-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.school-card.single-card .meta-row.kv {
  justify-content: space-between;
  width: 100%;
  white-space: nowrap;
}

.school-card.single-card .meta-value {
  min-width: 0;
  text-align: right;
}

.single-meta,
.school-card.single-card .meta-grid {
  display: block !important;
}

.single-meta .meta-row,
.school-card.single-card .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
  margin-bottom: 6px;
}

.single-meta .meta-label,
.school-card.single-card .meta-label {
  flex: 1;
  margin-right: 10px;
}

.single-meta .meta-value,
.school-card.single-card .meta-value {
  flex: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
}

.meta-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  align-items: center;
  white-space: nowrap;
}

.meta-label {
  color: #0f172a;
  font-weight: 600;
  margin-right: 6px;
}

.meta-row.kv {
  justify-content: space-between;
  white-space: normal;
}

.meta-row.moe-row {
  white-space: nowrap;
}

.meta-row.moe-row .meta-label {
  white-space: nowrap;
  font-size: 12px;
}

.meta-row.moe-row .meta-value {
  white-space: nowrap;
  min-width: 0;
}

.meta-value {
  color: #0f172a;
  text-align: right;
  flex: 1;
  min-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.compare-dialog {
  background: #ffffff;
  border-radius: 12px;
  max-width: 960px;
  width: 100%;
  padding: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.compare-title {
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}

.compare-body {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.compare-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

/* 学校数据 CTA */
.cta-feature {
  background: #eef4ff;
  color: #0f172a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-feature .badge {
  background: #dbe7ff;
  color: #0f172a;
}

.cta-feature h3 {
  font-size: 22px;
  margin: 0;
}

.cta-feature p {
  margin: 0;
  color: #334155;
}

.btn-clear-pill {
  border: none;
  background: #e8f0ff;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.15);
}

.btn-clear-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .columns-2,
  .split,
  .contact-grid,
  .timeline,
  .faq-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-panel {
    height: 380px;
  }

  .compare-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-wide .map-panel {
    height: 420px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-visual {
    margin: 24px auto 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .hero-title {
    font-size: 26px;
  }

  .columns-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .values {
    grid-template-columns: minmax(0, 1fr);
  }
}
