/* ===== 保研地图 ===== */
.policy-map-section {
  background: var(--cream);
  padding: 64px 0 88px;
}

.policy-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.policy-map-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.policy-map-head p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.9;
}

.policy-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.map-card {
  background: #fff;
  border: 1px solid rgba(16, 29, 51, 0.1);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(16, 29, 51, 0.07);
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(16, 29, 51, 0.08);
  color: var(--muted);
  font-size: 0.74rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.map-legend .dot-live { background: #b08a4e; }
.map-legend .dot-soon { background: #d9d2c4; }

.map-canvas {
  padding: 12px 10px 6px;
}

.china-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
}

.province {
  stroke: #fff;
  stroke-width: 1.1;
  cursor: pointer;
  transition: fill 0.18s ease, filter 0.18s ease;
  outline: none;
}

.province:hover,
.province:focus-visible {
  fill: #efe2c8;
  filter: brightness(1.02);
}

.province.is-active {
  fill: #d8bd8c;
  stroke: #8e672f;
  stroke-width: 1.6;
}

.province-label {
  fill: rgba(16, 29, 51, 0.62);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  font-family: var(--sans, "Microsoft YaHei", sans-serif);
}

.nine-dash {
  fill: none;
  stroke: #7b8a9e;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  pointer-events: none;
}

.nine-dash-layer {
  pointer-events: none;
}

.south-sea-inset rect {
  fill: #f7fafc;
  stroke: #b9c4d0;
  stroke-width: 1;
}

.south-sea-inset text {
  fill: #5a6b7f;
  font-size: 10px;
  font-family: var(--sans, "Microsoft YaHei", sans-serif);
  letter-spacing: 0.04em;
}

.south-sea-inset .nine-dash {
  stroke: #6f7f94;
  stroke-width: 1;
}

.map-panel {
  background: #fff;
  border: 1px solid rgba(16, 29, 51, 0.1);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(16, 29, 51, 0.07);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.map-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 29, 51, 0.08);
}

.map-panel-head h3 {
  margin: 4px 0 0;
  font-size: 1.55rem;
}

.map-panel-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  padding-top: 6px;
}

.school-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding: 14px 4px 4px 0;
  scrollbar-width: thin;
}

.school-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(16, 29, 51, 0.08);
  border-radius: 7px;
  background: #fbfaf7;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.school-link:hover {
  border-color: rgba(176, 138, 78, 0.6);
  background: #fff;
  transform: translateY(-1px);
}

.school-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.school-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.school-meta em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.64rem;
  border: 1px solid rgba(16, 29, 51, 0.12);
  border-radius: 3px;
  padding: 2px 5px;
}

.school-meta small {
  font-size: 0.66rem;
  color: #9a7b45;
  white-space: nowrap;
}

.school-link.is-soon .school-meta small {
  color: var(--muted);
}

.map-panel-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 29, 51, 0.08);
  color: var(--muted);
  font-size: 0.74rem;
}

.map-panel-foot a {
  color: var(--gold-deep);
  font-weight: 700;
}

.map-empty {
  padding: 26px 8px;
  text-align: center;
  color: var(--muted);
}

.map-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.map-empty p {
  margin: 0 0 14px;
  line-height: 1.8;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .policy-map-layout {
    grid-template-columns: 1fr;
  }
  .map-panel {
    position: static;
  }
  .school-list {
    max-height: none;
  }
  .china-map {
    max-height: 560px;
  }
}

@media (max-width: 640px) {
  .policy-map-section {
    padding: 44px 0 60px;
  }
  .policy-map-head {
    display: block;
  }
  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .map-canvas {
    padding: 6px 2px 0;
  }
  .province-label {
    font-size: 9px;
  }
}
