@charset "UTF-8";

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #14213d;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e5eaf1;
  --line-strong: #d5dde8;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --chart-1: #2563eb;
  --chart-2: #0ea5e9;
  --chart-3: #14b8a6;
  --chart-4: #8b5cf6;
  --chart-5: #f59e0b;
  --chart-6: #ec4899;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 244px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.2px;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
}

.brand-logo {
  gap: 12px;
}

.brand-logo-img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
  flex: none;
}

.brand-logo-text {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--primary);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.demo-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-pill {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-warn {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #bfdbfe;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.source-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.38), transparent 30%),
    radial-gradient(circle at 65% 100%, rgba(99, 102, 241, 0.35), transparent 34%),
    linear-gradient(120deg, #102a6b 0%, #173f9e 52%, #0f5f9e 100%);
  color: #fff;
  padding: 48px 48px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: #133b8e;
  box-shadow: 0 12px 28px rgba(2, 16, 48, 0.22);
}

.btn-primary .arrow {
  font-size: 16px;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(8px);
}

.hero-stat:last-child {
  grid-column: 1 / -1;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
}

.hero-stat-value {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.hero-stat-value small {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.query-panel {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  padding: 26px 28px 28px;
}

.query-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.query-head h2,
.section-head h2 {
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -0.2px;
}

.query-head p,
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.segmented button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.identity-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.identity-chip.junior {
  background: #eaf1ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.identity-chip.high {
  background: #f3e8ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.query-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  gap: 28px;
  padding-top: 22px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 14px;
  font-weight: 600;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.clear-btn {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.clear-btn:hover {
  background: var(--line);
  color: var(--ink);
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  padding: 8px;
}

.suggestion-head,
.suggestion-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.suggestion-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.suggestion-foot {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding: 10px 10px 4px;
  font-weight: 600;
}

.suggestion-foot kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  margin-right: 2px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 10px;
  text-align: center;
}

.suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--primary-soft);
  border-color: #bfdbfe;
}

.suggestion-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.suggestion-name mark {
  padding: 0 1px;
  border-radius: 3px;
  background: #fde68a;
  color: inherit;
}

.name-identity {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}

.name-identity.junior {
  background: #eaf1ff;
  color: #1d4ed8;
}

.name-identity.high {
  background: #f3e8ff;
  color: #7e22ce;
}

.dual-note {
  color: #b45309;
  font-weight: 700;
}

.suggestion-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.suggestion-tag {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.suggestion-item.active .suggestion-tag {
  background: #fff;
  color: var(--primary-dark);
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.quick-pick {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.quick-pick:hover {
  border-color: #bfdbfe;
  color: var(--primary);
  background: var(--primary-soft);
}

.filter-area {
  display: grid;
  grid-template-columns: 118px 136px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.select-group select {
  width: 100%;
  height: 48px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.selected-school {
  min-height: 48px;
  padding: 8px 14px;
  border: 1px dashed #bfdbfe;
  border-radius: 13px;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.selected-school-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.selected-school-name {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-root {
  margin-top: 26px;
}

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.view-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.view-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.view-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.view-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.btn-light {
  height: 38px;
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  border-color: #bfdbfe;
  color: var(--primary);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--metric-soft, var(--primary-soft));
  filter: blur(22px);
  opacity: 0.7;
  transform: translate(30%, -40%);
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.metric-value {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.metric-value small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.metric-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.metric-sub strong {
  color: var(--success);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color, var(--primary));
  min-width: 3px;
  transition: width 0.4s ease;
}

.bar-value {
  text-align: right;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.policy-item-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.policy-item-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.policy-rule {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: #f8fbff;
  color: var(--ink-soft);
  font-size: 12px;
}

.policy-source {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.donut-layout {
  display: flex;
  align-items: center;
  gap: 22px;
}

.donut-figure {
  position: relative;
  width: 160px;
  height: 160px;
  flex: none;
}

.donut-figure svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: #eef2f7;
  stroke-width: 5.5;
}

.donut-segment {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: butt;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong {
  font-size: 24px;
  line-height: 1.1;
}

.donut-center span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.legend-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.table-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.track-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.track-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.track-tabs button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.table-search input {
  width: 180px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  font-size: 12px;
}

.table-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

thead th {
  background: #fbfcfe;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

thead th.sortable {
  cursor: pointer;
  user-select: none;
}

thead th.sortable:hover {
  color: var(--primary);
}

.sort-mark {
  margin-left: 4px;
  color: var(--primary);
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f3f8;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fafcff;
}

.cell-strong {
  color: var(--ink);
  font-weight: 800;
}

.cell-muted {
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-track {
  width: 62px;
  height: 6px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--success);
}

.progress-fill.warn {
  background: var(--warning);
}

.progress-fill.danger {
  background: var(--danger);
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
}

.data-note {
  margin-top: 30px;
  padding: 28px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface-soft);
}

.note-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 11px;
}

.field-list code {
  flex: none;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.schema-code {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #101828;
  color: #bfdbfe;
  font-size: 11px;
  line-height: 1.7;
  overflow-x: auto;
}

.notice-line {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 36px 76px;
  }

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

  .hero-stat:last-child {
    grid-column: auto;
  }

  .query-body {
    grid-template-columns: 1fr;
  }

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

  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .shell {
    padding: 18px 16px 56px;
  }

  .hero {
    padding: 34px 24px 72px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat:last-child {
    grid-column: 1 / -1;
  }

  .query-panel {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .query-head {
    flex-direction: column;
  }

  .filter-area {
    grid-template-columns: 1fr 1fr;
  }

  .selected-school {
    grid-column: 1 / -1;
  }

  .view-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bar-row {
    grid-template-columns: 104px minmax(0, 1fr) 62px;
    gap: 8px;
  }

  .donut-layout {
    flex-direction: column;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-search input {
    width: 100%;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .brand-text small,
  .updated {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .filter-area {
    grid-template-columns: 1fr;
  }

  .selected-school {
    grid-column: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat:last-child {
    grid-column: auto;
  }
}

/* ---------- 首页 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header .brand {
  min-width: 0;
}

.header-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

body[data-page="home"] {
  --home-header-h: 76px;
}

body[data-page="home"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

body[data-page="home"] .site-header-inner {
  height: var(--home-header-h);
  max-width: 1440px;
  padding: 0 32px;
}

body[data-page="home"] .brand-divider {
  background: rgba(255, 255, 255, 0.3);
}

body[data-page="home"] .brand-logo-text,
body[data-page="home"] .home-hero h1 {
  color: #fff;
}

body[data-page="home"] .header-meta,
body[data-page="home"] .updated {
  color: rgba(255, 255, 255, 0.7);
}

body[data-page="home"] .source-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

body[data-page="home"] .source-badge::before {
  background: #fdba74;
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.2);
}

.home-main {
  margin: 0;
  padding: 0 0 72px;
}

.home-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  border-radius: 0;
  color: #fff;
  display: grid;
  place-items: center;
  padding: calc(var(--home-header-h) + 56px) 24px 104px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(56, 189, 248, 0.34), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(129, 140, 248, 0.3), transparent 34%),
    linear-gradient(125deg, #0b1f52 0%, #153c93 46%, #0d6f9d 100%);
  background-size: 76px 76px, 76px 76px, auto, auto, auto;
}

.home-hero-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-glow::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.42), transparent 68%);
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
}

.home-hero-glow::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 70%);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  text-align: center;
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -2px;
  text-shadow: 0 10px 40px rgba(2, 16, 48, 0.28);
}

.home-hero-desc {
  margin: 20px 0 38px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(14px, 1.4vw, 17px);
}

.home-search.search-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 70px rgba(2, 16, 48, 0.32);
  backdrop-filter: blur(10px);
}

.home-search .search-icon {
  left: 28px;
  width: 22px;
  height: 22px;
  stroke: #64748b;
}

.home-search input {
  height: 68px;
  padding: 0 60px;
  border-radius: 17px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(2, 16, 48, 0.22);
}

.home-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.home-search input:focus {
  box-shadow: 0 18px 40px rgba(2, 16, 48, 0.22), 0 0 0 4px rgba(191, 219, 254, 0.65);
}

.home-search .clear-btn {
  right: 24px;
  width: 30px;
  height: 30px;
}

.home-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 1;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: background 0.18s ease, color 0.18s ease;
}

.home-scroll:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.home-scroll-arrow {
  font-size: 15px;
  line-height: 1;
  animation: scroll-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.home-overview {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 34px auto 0;
  padding: 36px 36px 32px;
  background:
    radial-gradient(circle at 92% -10%, rgba(37, 99, 235, 0.08), transparent 32%),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.home-section-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.6px;
}

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

.overview-stat {
  --card-accent: #ea580c;
  --card-soft: #fff7ed;
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.overview-stat:nth-child(1) { --card-accent: #ea580c; --card-soft: #fff7ed; }
.overview-stat:nth-child(2) { --card-accent: #2563eb; --card-soft: #eaf1ff; }
.overview-stat:nth-child(3) { --card-accent: #0d9488; --card-soft: #ecfdf5; }
.overview-stat:nth-child(4) { --card-accent: #7c3aed; --card-soft: #f5f3ff; }

.overview-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent), transparent);
}

.overview-stat::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--card-soft);
  opacity: 0.7;
  pointer-events: none;
}

.overview-stat:hover {
  transform: translateY(-3px);
  border-color: var(--card-soft);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.overview-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--card-soft);
  color: var(--card-accent);
}

.overview-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overview-value {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}

.overview-value small {
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.source-note {
  margin-top: 20px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff8f1, #fffdfb);
}

.source-note-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ffedd5;
  color: #ea580c;
}

.source-note-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-note-body {
  min-width: 0;
}

.source-note-label {
  display: block;
  margin-bottom: 4px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.source-note p {
  margin: 0;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 学校详情页 ---------- */

.detail-header .site-header-inner {
  height: 72px;
}

.detail-search.search-box {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
}

.detail-search .search-icon {
  left: 14px;
}

.detail-search input {
  height: 44px;
  padding: 0 42px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 13px;
}

.header-home {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
}

.header-home:hover {
  color: var(--primary);
  border-color: #bfdbfe;
  background: var(--primary-soft);
}

.detail-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 68px;
}

.detail-toolbar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.toolbar-filters {
  display: flex;
  gap: 10px;
}

.toolbar-filters select {
  height: 38px;
  min-width: 118px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.current-school {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px dashed #bfdbfe;
}

.current-school-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.current-school strong {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--primary-dark);
  font-size: 12px;
}

.current-school-meta {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.detail-main .view-root {
  margin-top: 18px;
}

.detail-notice {
  margin-top: 18px;
}

.compare-root {
  margin-top: 22px;
}

.compare-head {
  margin-bottom: 14px;
}

.compare-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.compare-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.compare-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.peer-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.peer-select select {
  flex: 1;
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.compare-table {
  min-width: 540px;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  font-size: 11px;
}

.compare-table td.num {
  text-align: right;
}

.diff-up {
  color: var(--success);
  font-weight: 800;
}

.diff-down {
  color: var(--danger);
  font-weight: 800;
}

.diff-flat {
  color: var(--muted);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-left {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo-img {
    height: 28px;
  }

  .brand-logo-text {
    font-size: 14px;
    letter-spacing: 0;
  }

  .source-badge {
    max-width: 168px;
    padding: 4px 9px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.3;
  }

  body[data-page="home"] {
    --home-header-h: 64px;
  }

  body[data-page="home"] .site-header-inner {
    height: 64px;
    min-height: 0;
    padding: 0 18px;
    flex-wrap: nowrap;
  }

  .detail-search.search-box {
    order: 3;
    max-width: none;
    width: 100%;
  }

  .header-meta .updated,
  .header-home {
    display: none;
  }

  .home-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  body[data-page="home"] .home-main {
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--home-header-h) + 44px) 20px 92px;
    border-radius: 0;
  }

  .home-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
    letter-spacing: -1.2px;
  }

  .home-hero-desc {
    margin-bottom: 30px;
    font-size: 14px;
  }

  .suggestions {
    max-height: 360px;
  }

  .suggestion-foot {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  .home-search.search-box {
    padding: 4px;
    border-radius: 18px;
  }

  .home-search input {
    height: 60px;
    padding: 0 52px;
    border-radius: 14px;
    font-size: 14px;
  }

  .home-search .search-icon {
    left: 22px;
  }

  .home-search .clear-btn {
    right: 18px;
  }

  .home-scroll {
    bottom: 22px;
  }

  .home-overview {
    margin-left: 16px;
    margin-right: 16px;
    padding: 20px 16px;
  }

  .home-section-head {
    flex-direction: column;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    padding: 20px 18px;
    flex-direction: column;
  }

  .toolbar-left {
    width: 100%;
  }

  .toolbar-filters {
    flex: 1;
  }

  .toolbar-filters select {
    min-width: 0;
    flex: 1;
  }

  .current-school strong {
    max-width: 180px;
  }
}
