/* ============================================================
   学校雷达 · 全局样式
   参考神人高校网的信息架构：查学校 / 写评价 / 维度评分
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-50: #eff6ff;
  --cyan: #0891b2;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --green: #16a34a;
  --orange: #ea580c;
  --red: #dc2626;
  --star: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 10px 30px -14px rgba(15, 23, 42, .14);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .08), 0 18px 44px -16px rgba(15, 23, 42, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ---------------- 顶部导航 ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6);
}

.brand-icon svg { width: 22px; height: 22px; }

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: background .15s, color .15s;
}

.nav-links a:hover { background: var(--primary-50); color: var(--primary-600); }
.nav-links a.active { background: var(--primary); color: #fff; }

.nav-locate {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  font-family: inherit;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .65);
}

.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .75); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary-600); background: var(--primary-50); }

.btn-light {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-light:hover { background: rgba(255, 255, 255, .28); }

.btn-sm { padding: 7px 15px; font-size: 13.5px; }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-danger-ghost {
  background: transparent;
  border-color: #fecaca;
  color: var(--red);
}
.btn-danger-ghost:hover { background: #fef2f2; border-color: var(--red); }

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 46%, #0e7490 100%);
  color: #fff;
  padding: 76px 0 92px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%);
  pointer-events: none;
}

.hero::before { width: 520px; height: 520px; top: -240px; right: -120px; }
.hero::after { width: 420px; height: 420px; bottom: -220px; left: -110px; }

.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: 1px;
}

.hero p {
  margin: 0 auto 30px;
  max-width: 620px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, .88);
}

.hero-search {
  display: flex;
  max-width: 620px;
  margin: 0 auto 22px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 18px 40px -14px rgba(2, 6, 23, .5);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15.5px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s;
}

.hero-search button:hover { filter: brightness(1.08); }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.chip:hover { background: rgba(255, 255, 255, .26); }

/* ---------------- 统计条 ---------------- */

.stats {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.stat {
  text-align: center;
  padding: 26px 16px;
}

.stat + .stat { border-left: 1px solid var(--line); }

.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }

/* ---------------- 区块 ---------------- */

.section { padding: 54px 0 10px; }

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

.section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.section-head .section-sub {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 4px;
}

.section-more { font-size: 14px; font-weight: 600; flex-shrink: 0; }

/* ---------------- 卡片与学校卡片 ---------------- */

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

.card-pad { padding: 24px; }

.school-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.school-thumb {
  width: 150px;
  min-height: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.school-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 60%);
}

.school-thumb-letter {
  font-size: 42px;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  position: relative;
  z-index: 1;
}

.school-thumb-type {
  position: relative;
  z-index: 1;
  font-size: 12px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 2px 12px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.school-main {
  flex: 1;
  padding: 20px 22px;
  min-width: 0;
}

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

.school-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.school-name a { color: inherit; }
.school-name a:hover { color: var(--primary); }

.school-meta {
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 8px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.school-intro {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.school-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 26px;
  border-left: 1px dashed var(--line);
  flex-shrink: 0;
  text-align: center;
}

.school-score {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.school-score-max { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.school-count { color: var(--ink-3); font-size: 12.5px; margin-bottom: 8px; }

/* ---------------- 评分与徽章 ---------------- */

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.score-green { color: #15803d; background: #f0fdf4; }
.score-blue { color: #1d4ed8; background: #eff6ff; }
.score-orange { color: #c2410c; background: #fff7ed; }
.score-red { color: #b91c1c; background: #fef2f2; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-700);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: #f1f5f9;
  color: var(--ink-2);
  border: 1px solid #e2e8f0;
}

.tag + .tag { margin-left: 6px; }

.stars {
  position: relative;
  display: inline-block;
  color: #e2e8f0;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

.stars .stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  color: var(--star);
  white-space: nowrap;
}

/* ---------------- 网格 ---------------- */

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

/* ---------------- 评价卡片 ---------------- */

.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
}

.review-user { font-weight: 700; font-size: 14.5px; }
.review-role { font-size: 12.5px; color: var(--ink-3); }

.review-body { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }

.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 12.5px;
}

.like-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}

.like-btn:hover { border-color: var(--primary); color: var(--primary); }
.like-btn.liked { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

/* ---------------- 维度评分条 ---------------- */

.dim-row {
  display: grid;
  grid-template-columns: 96px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dim-label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }

.dim-track {
  height: 9px;
  background: #eef2f7;
  border-radius: 99px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width .5s ease;
}

.dim-value { font-weight: 800; font-size: 14px; text-align: right; }

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

.page-head {
  background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #0e7490);
  color: #fff;
  padding: 38px 0 46px;
}

.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: #fff; }

.school-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.school-hero .school-thumb {
  width: 96px;
  min-height: 96px;
  border-radius: 20px;
  box-shadow: 0 14px 30px -10px rgba(2, 6, 23, .5);
}

.school-hero .school-thumb-letter { font-size: 34px; }

.school-hero-main { flex: 1; min-width: 240px; }

.school-hero h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }

.school-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
}

.school-hero-score {
  text-align: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
  padding: 16px 24px;
  backdrop-filter: blur(4px);
}

.school-hero-score .big {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.school-hero-score .cap { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin-top: 4px; }

.school-hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.detail-main, .detail-side { display: grid; gap: 22px; }

.card-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .bar {
  width: 4px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.radar-wrap { display: flex; justify-content: center; padding: 6px 0; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 10px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { color: var(--ink-3); font-weight: 600; width: 96px; white-space: nowrap; }

/* ---------------- 筛选工具栏 ---------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.filter-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-2);
  background: #fff;
  cursor: pointer;
  outline: 0;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.result-count { font-size: 14px; color: var(--ink-3); }
.result-count b { color: var(--ink); }

.sort-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  background: #fff;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
  outline: 0;
}

.list-stack { display: grid; gap: 16px; }

/* ---------------- 表单 ---------------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.form-card.wide { max-width: 860px; }

.form-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.form-desc { margin: 0 0 24px; color: var(--ink-3); font-size: 14px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.field label .req { color: var(--red); margin-left: 2px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.field textarea { resize: vertical; min-height: 120px; }

.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

.field-group-title {
  font-size: 15px;
  font-weight: 800;
  margin: 22px 0 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rating-input input { display: none; }

.rating-input label {
  font-size: 30px;
  color: #dbe3ee;
  cursor: pointer;
  transition: color .12s, transform .12s;
  line-height: 1;
}

.rating-input label:hover { transform: scale(1.12); }

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--star); }

.slider-row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.slider-row .dim-label { font-size: 13.5px; }

.slider-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--primary) var(--val, 50%), #e5eaf2 var(--val, 50%));
  outline: none;
  cursor: pointer;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
}

.slider-row input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--primary);
}

.slider-value {
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: 8px;
  padding: 4px 0;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.checkbox-line input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---------------- 空状态 ---------------- */

.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-3);
}

.empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }

/* ---------------- 页脚 ---------------- */

.footer {
  margin-top: 70px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
  padding: 46px 20px 34px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer h4 { color: #e2e8f0; margin: 0 0 12px; font-size: 15px; }

.footer a { color: #94a3b8; display: block; margin-bottom: 7px; }
.footer a:hover { color: #fff; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-text { color: #f8fafc; }
.footer-brand .brand-sub { color: #64748b; }

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, .15);
  text-align: center;
  padding: 18px;
  color: #64748b;
  font-size: 12.5px;
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(18px);
  background: #0f172a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 300;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 定位状态 ---------------- */

.loc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.loc-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.loc-dot.locating { background: #f59e0b; animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding: 10px 0; justify-content: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 54px 0 74px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .school-card { flex-direction: column; }
  .school-thumb { width: 100%; min-height: 110px; }
  .school-side { border-left: 0; border-top: 1px dashed var(--line); flex-direction: row; gap: 14px; padding: 16px; }
  .school-side .btn { margin-left: auto; }
  .school-score { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .slider-row { grid-template-columns: 84px 1fr 46px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-search { flex-direction: column; border-radius: 18px; padding: 10px; gap: 8px; }
  .hero-search input { padding: 10px 12px; }
  .section { padding-top: 40px; }
}
