.map-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0 0 0;
  box-sizing: border-box;
}

.map-area {
  position: relative;
  width: 94vw;
  max-width: 1400px;
  aspect-ratio: 2/1;
  background: #f5f8fa;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 6px;
}

.map-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
}

.point {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #21b67e;
  border-radius: 10px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px #85d1e444;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.point-hb,
.point-gz {
  box-shadow: 0 0 5px 6px #33bba46d, 0 2px 8px #33bba46d !important;
}

.point-breath {
  animation: breath-scale 1.5s infinite alternate cubic-bezier(.5, 0, .5, 1);
}

.point-hb {
  background: linear-gradient(135deg, #33bba4 60%, #fff 100%);
}

.point-gz {
  background: linear-gradient(225deg, #33bba4 60%, #fff 100%);
}

@keyframes breath-scale {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    box-shadow: 0 0 12px 3px #33bba4, 8 8px 8px #33bba4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 32px 32px 32px 14px #33bba4, 8 8px 8px #33bba4;
  }
}

.label {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 8px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  color: #2174b8;
  background: none;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}

/* ====== 图例样式 PC端 ====== */
.legend {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  margin: 18px auto 0 auto;
  padding: 18px 28px 12px 28px;
  font-size: 14px;
  color: #222;
  border-radius: 12px;
  max-width: 38vw;
  min-width: 38vw;
}

.legend-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  font-size: 14px;
  color: #333;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 244px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 10px;
  flex-shrink: 0;
  background: #85d1e4;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px #85d1e444;
}

.legend-label {
  display: flex;
  flex-direction: column;
}

.legend-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.legend-desc {
  color: #666;
  font-size: 14px;
  margin-top: 2px;
  line-height: 1.5;
  word-break: break-word;
  max-width: 400px;
}

/* ====== 手机端适配 ====== */
@media (max-width: 600px) {
  .map-wrapper {
    padding: 12px 0 0 0;
  }

  .map-area {
    width: 100vw;
    max-width: 100vw;
    height: 60vw;
    min-height: 220px;
    max-height: 360px;
    border-radius: 10px;
  }

  .legend {
    max-width: 96vw;
    padding: 8px;
    font-size: 13px;
    gap: 12px;
    margin: 12px auto 0 auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .legend-item {
    max-width: 100%;
  }

  .legend-title {
    font-size: 14px;
    min-width: auto;
  }

  .legend-desc {
    font-size: 12px;
    width: auto;
    max-width: 100%;
  }

  .legend-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
  }

  .label {
    font-size: 12px;
    margin-top: 4px;
  }

  .point {
    width: 12px;
    height: 12px;
    border-radius: 6px;
  }
}
