/* AI-era nationwide service network visual. */
.map-panel {
  position: relative;
  overflow: hidden;
  background:
    url("../assets/images/china-real-map.svg") center / cover no-repeat,
    linear-gradient(135deg, #eef5ff, #dbe8ff);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain, auto;
}

.map-panel::before {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  min-width: 216px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(105, 174, 255, 0.35);
  border-radius: 10px;
  background: rgba(10, 31, 62, 0.82);
  box-shadow: 0 12px 24px rgba(7, 31, 66, 0.16);
  color: #d8ecff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: normal;
  content: "全国服务网络 · 5 城协同";
}

.map-panel::after {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("../assets/images/map-node-labels.svg") center / cover no-repeat;
  box-shadow: none;
  backdrop-filter: none;
  content: "";
  pointer-events: none;
}

/* 案例页采用正式地图图稿，不叠加模拟标点或操作控件。 */
.map-panel::before,
.map-panel::after {
  display: none;
}

.proof-stats div:last-child::after {
  display: block;
  color: #89aaca;
  font-size: 10px;
  content: "多地区覆盖";
}

.map-panel.is-interactive-map {
  background: linear-gradient(135deg, #eef5ff, #dbe8ff);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-panel.is-interactive-map:active {
  cursor: grabbing;
}

.map-panel.is-interactive-map::before,
.map-panel.is-interactive-map::after {
  display: none;
}

.map-viewport,
.map-stage {
  position: absolute;
  inset: 0;
}

.map-stage {
  transform-origin: center;
  will-change: transform;
}

.map-panel.is-interactive-map .map-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #277cf2;
  box-shadow: 0 0 0 5px rgba(39, 124, 242, 0.18), 0 5px 12px rgba(20, 89, 180, 0.36);
  cursor: pointer;
}

.map-marker::after {
  position: absolute;
  top: -33px;
  left: 50%;
  padding: 4px 7px;
  border: 1px solid rgba(88, 151, 223, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 14px rgba(31, 73, 129, 0.12);
  color: #204c78;
  content: attr(data-city);
  font: 700 11px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-marker:hover,
.map-marker.is-active {
  background: #3bd9ce;
  box-shadow: 0 0 0 7px rgba(59, 217, 206, 0.2), 0 5px 16px rgba(27, 165, 164, 0.36);
}

.map-info-card {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  max-width: 210px;
  padding: 12px 14px;
  border: 1px solid rgba(117, 184, 255, 0.36);
  border-radius: 10px;
  background: rgba(7, 30, 61, 0.9);
  box-shadow: 0 12px 26px rgba(9, 41, 87, 0.2);
  color: #fff;
  pointer-events: none;
}

.map-info-card b,
.map-info-card span {
  display: block;
}

.map-info-card b {
  color: #5ee7df;
  font-size: 12px;
}

.map-info-card span {
  margin-top: 4px;
  color: #d4e8fb;
  font-size: 11px;
  line-height: 1.55;
}

.map-controls {
  position: absolute;
  z-index: 5;
  right: 14px;
  top: 14px;
  display: grid;
  gap: 6px;
}

.map-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(83, 143, 214, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #164c84;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.map-controls button:hover {
  background: #1478f2;
  color: #fff;
}

.map-legend {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 13px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #386089;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

@media (max-width: 760px) {
  .map-info-card { max-width: 168px; }
  .map-marker::after { display: none; }
  .map-legend { display: none; }
}

.map-panel .china-map {
  display: none;
}

.case-hero .intro-summary {
  display: grid;
  gap: 18px;
}

.case-hero .intro-highlight {
  margin: 0;
  color: #168a9b;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.case-hero .intro-summary > p:last-child {
  margin: 0;
  color: #63809c;
  font-size: 16px;
  line-height: 1.9;
}

.case-hero .proof-stats {
  justify-content: flex-start;
  gap: 12px;
}

.case-hero .proof-stats div {
  flex: 0 0 154px;
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid rgba(117, 205, 221, 0.28);
  border-radius: 12px;
  background: rgba(18, 55, 94, 0.38);
}

.case-hero .proof-stats b {
  color: #fff;
  font-size: 24px;
}

.case-hero .proof-stats span {
  display: block;
  margin-top: 4px;
  color: #9ccbe1;
  font-size: 11px;
}

.case-hero .proof-stats div:last-child::after {
  display: none;
}

@media (max-width: 760px) {
  .map-panel {
    min-height: 285px;
    background-image:
      url("../assets/images/china-real-map-mobile.svg"),
      linear-gradient(135deg, #eef5ff, #dbe8ff);
    background-position: center center, center;
    background-size: contain, auto;
  }

  .case-hero .intro h1 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }

  .case-hero .intro p:last-child {
    font-size: 14px;
  }

  .case-hero .intro-highlight {
    font-size: 22px;
  }

  .case-hero .proof-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-hero .proof-stats div {
    flex: auto;
    min-width: 0;
  }

  .case-hero .shell {
    width: calc(100vw - 32px);
  }

  .case-hero .proof-card,
  .case-hero .proof-copy {
    min-width: 0;
  }

  .case-hero .proof-copy {
    padding: 24px;
  }

  .case-hero .proof-copy p {
    overflow-wrap: anywhere;
  }
}
