.map-box {
  position: relative;
  width: 100%;
  margin-top: 65px;
  aspect-ratio: 1200 / 600;
  overflow: hidden;
}
.map-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-fit: contain;
  /* filter: grayscale(100%) brightness(0.95); */
}
#arcSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map-origin-address {
  position: absolute;
  left: 36.166%;
  top: 44%;
  height: 35px;
  z-index: 8;
  margin: 0px;
  transform: translate(-50%, -50%);
  background-color: #0d53a2;
  border-radius: 24px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  border: 1px solid #fff;
}
.map-origin-location {
  position: absolute;
  left: 36.22%;
  top: 49%;
  width: 45px;
  height: 45px;
  z-index: 8;
  margin: 0px;
  transform: translate(-50%, -50%);
}
.map-origin-point {
  z-index: 6;
  fill: #fff;
  stroke: #0d53a2;
  stroke-width: 4;
  animation: originPulse 2s ease-in-out infinite;
}
.map-origin-label {
  fill: #fff;
  font-size: 14px;
  transform: translate(-22px, -18px);
}
/** 名字 */
.map-city-label {
  fill: #0d53a2;
  font-size: 13px;
  opacity: 0;
  animation: labelShow 1s ease forwards;
}
/*主线实线*/
.map-path-line {
  fill: none;
  stroke: rgba(13, 83, 162, 0.45);
  stroke-width: 1;
  stroke-linecap: round;
  /* filter: drop-shadow(0 0 4px #0d53a2); */
}
/*子分支虚线*/
.map-path-trail {
  fill: none;
  stroke: rgba(116, 147, 194, 0.45);
  stroke-width: 1;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px #ffffff);
  stroke-dasharray: 3 6; /* 虚线：4px实线 2px间隔 */
}
/*终点圆圈*/
.map-endpoint-dot {
  fill: #fff;
  stroke: rgba(13, 83, 162, 0.45);
  stroke: rgba(13, 83, 162, 0.1);
  stroke-width: 3;
  opacity: 0;
  /* filter: drop-shadow(0 0 6px #ffffff); */
  animation: dotShow 1s ease forwards;
  /* animation: dotShow 1s ease-in-out infinite; */
}

/* 起点脉冲 */
@keyframes originPulse {
  0%,
  100% {
    r: 6;
    opacity: 1;
  }
  50% {
    r: 10;
    opacity: 0.6;
  }
}
/* 弧线绘制动画 */
@keyframes drawArc {
  from {
    stroke-dashoffset: var(--len);
    stroke-dashoffset: var(--path-len);
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* 终点圆点 平滑放大，无弹跳 */
@keyframes dotShow {
  0% {
    opacity: 0;
    /* transform: scale(0.3); */
  }
  100% {
    opacity: 1;
    /* transform: scale(1); */
  }
}
/* 标签出现 */
@keyframes labelShow {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 背景渐变波纹：以整机为中心（架构图圆心），从中心向外扩散（12 秒一圈，共四层）
   位于架构图最底层（z-index 0），整机与模块圆、文字在它之上 */
.map-radar-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  margin: -700px 0 0 -700px;
  pointer-events: none;
  z-index: 0;
  --radar-delay2: 0s;
  --radar-delay3: 3s;
  --radar-delay4: 6s;
  --radar-delay5: 9s;
  --radar-delay_all: 12s;

  position: absolute;
  left: 36.166%;
  top: 53.333%;
  width: 160px;
  height: 160px;
  margin: 0px;
  transform: translate(-50%, -50%); /* 中心点对齐 */
  --radar-delay2: 0s;
  --radar-delay3: 2s;
  --radar-delay4: 3s;
  --radar-delay5: 6s;
  --radar-delay_all: 6s;
}
/* 底层静态背景：平滑径向渐变（参考浅灰蓝色系，由内到外从深到浅过渡） */
.map-radar-box .map-radar-static {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #dce7f7 0%, #e9effa 40%, #f3f6fb 75%, #ffffff 100%);
  background: unset;
}
.map-radar-box .map-radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  /* 替换缓动：先快后慢雷达脉冲曲线 */
  animation: bgWave var(--radar-delay_all) cubic-bezier(0.1, 0, 0.3, 1) infinite;
}
/* 四层波纹圈：四个不一样的颜色，每圈内平滑渐变；外圈最浅、里圈（整机层）最深
   色系贴近官网参考图：淡蓝渐变，层次清晰 */
.map-radar-box .map-radar-ring:nth-child(2) {
  animation-delay: var(--radar-delay2);
  background: radial-gradient(
    circle,
    rgba(233, 238, 246, 0) 0%,
    rgba(233, 238, 246, 0) 50%,
    rgba(233, 238, 246, 0.7) 75%,
    rgba(233, 238, 246, 1) 100%
  );
}
.map-radar-box .map-radar-ring:nth-child(3) {
  animation-delay: var(--radar-delay3);
  background: radial-gradient(
    circle,
    rgba(219, 228, 241, 0) 0%,
    rgba(219, 228, 241, 0) 50%,
    rgba(219, 228, 241, 0.7) 75%,
    rgba(219, 228, 241, 1) 100%
  );
}
.map-radar-box .map-radar-ring:nth-child(4) {
  animation-delay: var(--radar-delay4);
  background: radial-gradient(
    circle,
    rgba(200, 214, 234, 0) 0%,
    rgba(200, 214, 234, 0) 50%,
    rgba(200, 214, 234, 0.7) 75%,
    rgba(200, 214, 234, 1) 100%
  );
}
.map-radar-box .map-radar-ring:nth-child(5) {
  animation-delay: var(--radar-delay5);
  background: radial-gradient(
    circle,
    rgba(176, 196, 224, 0) 0%,
    rgba(176, 196, 224, 0) 50%,
    rgba(176, 196, 224, 0.7) 75%,
    rgba(176, 196, 224, 1) 100%
  );
}

/* 波纹动画：从中心内圈向外扩散到外圈，雷达脉冲效果 */
@keyframes bgWave {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1; /* 扩散一段距离后波纹显现 */
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0; /* 抵达最大外圈，波纹消失 */
  }
}
/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .map-radar-box .map-radar-ring {
    animation: none;
  }
  .map-radar-box .map-radar-ring {
    opacity: 0;
  }
}
