/* 专题图标注（marker 挂到 mapbox 根节点，需全局样式） */
.corridor-cards-overlay {
  position: absolute;
  z-index: 70;
  top: 17px;
  left: 50%;
  width: min(1380px, calc(100% - 120px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.corridor-card {
  --corridor-card-color: #81c8ed;
  min-width: 0;
  height: fit-content;
  overflow: hidden;
  box-sizing: border-box;
  padding: 9px 11px 8px;
  border: 1px solid color-mix(in srgb, var(--corridor-card-color) 62%, transparent);
  border-top: 3px solid var(--corridor-card-color);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(5, 24, 42, 0.94), rgba(8, 43, 63, 0.82));
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.34), inset 0 0 20px color-mix(in srgb, var(--corridor-card-color) 12%, transparent);
  color: #f4fbff;
  pointer-events: auto;
  backdrop-filter: blur(5px);
}

.corridor-card__head {
  min-width: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.corridor-card__title {
  display: block;
  overflow: hidden;
  color: var(--corridor-card-color);
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 9px color-mix(in srgb, var(--corridor-card-color) 65%, transparent);
}

.corridor-card__subtitle {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: rgba(235, 247, 255, 0.9);
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.corridor-card__viewport {
  height: 100px;
  overflow: hidden;
  margin-top: 5px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 86%, transparent 100%);
}

.corridor-card__marquee {
  animation: corridorCardScroll 18s linear infinite;
  will-change: transform;
}

.corridor-card__marquee p {
  margin: 0 0 14px;
  color: rgba(240, 249, 255, 0.96);
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
}

.corridor-card:hover .corridor-card__marquee {
  animation-play-state: paused;
}

@keyframes corridorCardScroll {

  0%,
  12% {
    transform: translateY(0);
  }

  88%,
  100% {
    transform: translateY(calc(-50% - 7px));
  }
}

@media (max-width: 1360px) {
  .corridor-cards-overlay {
    width: calc(100% - 70px);
    gap: 6px;
  }

  .corridor-card {
    padding-right: 8px;
    padding-left: 8px;
  }

  .corridor-card__title {
    font-size: 13px;
  }

  .corridor-card__subtitle,
  .corridor-card__marquee p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .corridor-card__marquee {
    animation: none;
  }

  .corridor-card__viewport {
    overflow-y: auto;
  }
}

.mapboxgl-marker:has(.city-count-marker) {
  z-index: 40;
}

.city-count-marker {
  pointer-events: auto;
  cursor: pointer;
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 4px rgba(8, 22, 44, 0.95), 0 0 8px rgba(8, 22, 44, 0.8);
}

.city-count-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--city-glow-size, 22px);
  height: var(--city-glow-size, 22px);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(186, 230, 253, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #e0f7ff 0%, #67e8f9 16%, #18bfff 45%, #0878f9 72%, rgba(8, 120, 249, 0.15) 100%);
  box-shadow: 0 0 8px rgba(103, 232, 249, 0.95), 0 0 20px rgba(24, 191, 255, 0.82), 0 0 36px rgba(8, 120, 249, 0.5);
  pointer-events: none;
  z-index: -1;
}

.city-ripple-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--city-glow-size, 22px) + 4px);
  height: calc(var(--city-glow-size, 22px) + 4px);
  transform: translate(-50%, -50%) scale(1);
  border: 1.5px solid var(--city-ripple-color, rgba(125, 211, 252, 0.78));
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 0 4px rgba(56, 189, 248, calc(var(--city-glow-strength, 0.65) * 0.65));
  pointer-events: none;
  z-index: -2;
  animation: cityBlueRingPulse 3.15s linear var(--city-ring-delay, 0s) infinite;
}

.thematic-city-ripple-marker {
  position: relative;
  width: var(--city-glow-size, 34px);
  height: var(--city-glow-size, 34px);
  pointer-events: none;
}

.city-count-marker:hover::before {
  filter: brightness(1.18);
}

@keyframes cityBlueRingPulse {
  0% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1);
  }

  78% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(2.35);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.72);
  }
}

.city-count-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.city-count-num {
  color: #fbbf24;
  font-size: 15px;
  font-weight: 700;
}

.city-count-unit {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.tm-marker {
  cursor: pointer;
  width: 0;
  height: 0;
  position: relative;
  z-index: 12;
  overflow: visible;
}

.mapboxgl-marker:has(.tm-marker) {
  overflow: visible;
}

.tm-marker .tm-sym {
  display: block;
  margin: 0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 6px var(--tm-color, #3b82f6));
}

.tm-marker .tm-dot {
  display: block;
  border-radius: 50%;
  background: var(--tm-color, #3b82f6);
  border: 2px solid #fff;
  box-shadow: 0 0 6px var(--tm-color, #3b82f6);
}

/* 有问题（待解决困难）的项目：红色描边 + 红色光晕，与龙头企业问题企业一致 */
.tm-marker.tm-problem .tm-sym {
  filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.9)) drop-shadow(0 0 9px rgba(255, 0, 0, 0.55));
}

.tm-marker.tm-problem .tm-dot {
  border: 2px solid rgba(255, 0, 0, 0.88);
  box-shadow: 0 0 0 1.5px rgba(255, 0, 0, 0.9), 0 0 10px rgba(255, 0, 0, 0.7);
}

.tm-marker.tm-plot .tm-dot {
  border: 2px solid #fff;
}

.tm-marker.tm-plot .tm-label {
  left: 12px;
  top: -12px;
  transform: none;
  color: #fdba74;
}

.tm-marker.tm-leading .tm-dot {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}

.tm-marker:hover .tm-sym,
.tm-marker:hover .tm-dot {
  filter: brightness(1.2) drop-shadow(0 0 8px var(--tm-color, #3b82f6));
}

.tm-marker.tm-inst:hover .tm-sym {
  transform: translate(-50%, -50%) scale(1.2);
}

/* 注记字号统一以储备项目为准：16px */
.tm-label {
  position: absolute;
  left: 10px;
  top: -14px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.tm-label.tm-avoid-hidden {
  visibility: hidden !important;
}

.tm-marker.tm-tgt .tm-label {
  left: -70px;
  top: -16px;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 2px 2px 4px #000;
}

/* 储备项目：金色高亮点 + 深色底注记，深蓝底图上最醒目 */
.tm-marker.tm-rsv {
  z-index: 56;
}

.tm-marker.tm-rsv .tm-dot {
  border: 2px solid #fff8dc;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.95), 0 0 3px rgba(255, 255, 255, 0.9);
}

.tm-marker.tm-rsv .tm-label {
  pointer-events: auto;
  cursor: pointer;
  left: 14px;
  top: -17px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 204, 0, 0.65);
  border-left: 3px solid #ffcc00;
  border-radius: 4px;
  background: rgba(38, 26, 0, 0.9);
  color: #ffe680;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  box-shadow: 0 3px 10px rgba(2, 10, 24, 0.35);
}

.tm-marker.tm-rsv:hover .tm-label,
.tm-marker.tm-rsv.tm-hit .tm-label {
  color: #fffbe6;
  border-color: #ffe680;
  background: rgba(72, 50, 0, 0.92);
}

.tm-marker.tm-ghost {
  pointer-events: none;
  z-index: 8;
}

.tm-marker.tm-ghost .tm-dot,
.tm-marker.tm-ghost .tm-sym {
  opacity: 0;
}

.mapboxgl-marker:has(.tm-bubble-ent) {
  z-index: 46;
}

.tm-marker.tm-solid-ent {
  z-index: 44;
  pointer-events: auto;
  overflow: visible;
}

.tm-solid-dot {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

/* 透明命中区扩大圆点点击范围，不改变 Marker 尺寸及标注避让布局。 */
.tm-marker.tm-solid-ent > .tm-solid-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  min-width: 24px;
  min-height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
}

.tm-bubble-hit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  z-index: 4;
}

.tm-bubble-heat {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  /* animation: tmBubbleHeatBreath var(--tm-pulse-dur, 2s) ease-in-out infinite;
  animation-delay: var(--tm-pulse-delay, 0s); */
}

.tm-bubble-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 2px solid var(--tm-bubble, rgba(96, 165, 250, 0.75));
  /* box-shadow: 0 0 10px var(--tm-bubble-soft, rgba(96, 165, 250, 0.35)); */
  pointer-events: none;
  /* animation: tmBubblePulseRing var(--tm-pulse-dur, 3.15s) linear infinite; */
  /* animation-delay: var(--tm-pulse-delay, 0s); */
}

.tm-bubble-pulse.problem {
  border: 2px solid var(--tm-problem-color, rgba(255, 55, 45, 0.98));
  box-shadow: 0 0 8px var(--tm-problem-soft, rgba(255, 49, 42, 0.92)), 0 0 18px var(--tm-problem-soft, rgba(255, 123, 0, 0.62));
  animation: tmProblemPulseRing 1.8s ease-out infinite;
  animation-delay: 0s;
}

.tm-marker.tm-bubble-ent:has(.tm-bubble-core.problem) .tm-bubble-pulse--2 {
  border-color: var(--tm-problem-color, rgba(255, 179, 0, 0.96));
  box-shadow: 0 0 10px var(--tm-problem-soft, rgba(255, 179, 0, 0.72));
  animation: tmProblemPulseRing 1.8s ease-out -0.9s infinite;
}

.tm-bubble-pulse--2 {
  animation-delay: calc(var(--tm-pulse-delay, 0s) - 1.575s);
}

.tm-bubble-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: none;
}

.tm-bubble-core.problem {
  border: 2px solid var(--tm-problem-color, #ff3b30) !important;
  box-shadow: 0 0 0 3px var(--tm-problem-soft, rgba(255, 59, 48, 0.22)), 0 0 16px var(--tm-problem-soft, rgba(255, 77, 32, 0.9)) !important;
}

.tm-bubble-num {
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 1;
}

.tm-bubble-num.problem {
  color: #fff;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(61, 10, 6, 0.92), 0 0 4px rgba(255, 255, 255, 0.36);
  font-weight: 900;
}


@keyframes tmProblemPulseRing {
  0% {
    opacity: 0.96;
    transform: scale(1);
  }

  68% {
    opacity: 0.42;
    transform: scale(1.42);
  }

  100% {
    opacity: 0;
    transform: scale(1.72);
  }
}

@keyframes tmBubblePulseRing {
  0% {
    opacity: 0.88;
    transform: scale(1);
  }

  78% {
    opacity: 0.42;
    transform: scale(1.45);
  }

  100% {
    opacity: 0;
    transform: scale(1.92);
  }
}

@keyframes tmBubbleHeatBreath {

  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes tmBubbleCorePulse {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.06);
    filter: brightness(1.12);
  }
}

.tm-marker.tm-bubble-ent .tm-bubble-name,
.tm-marker.tm-solid-ent .tm-solid-name {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(126, 184, 255, 0.12);
  background: rgba(4, 10, 20, 0.74);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: none;
  pointer-events: none;
  z-index: 2;
}

.tm-marker.tm-bubble-ent > .tm-bubble-name,
.tm-marker.chain-ent-marker > .tm-label,
.tm-marker.tm-solid-ent > .tm-solid-name {
  pointer-events: auto;
  cursor: pointer;
}
.tm-marker.chain-ent-marker > .tm-label:hover {
  color: #b4c5ff;
}

.mapboxgl-marker:has(.tm-flow-ent),
.tm-marker.tm-flow-ent {
  pointer-events: none;
}

.tm-marker.tm-flow-ent .tm-label {
  left: 10px;
  top: -11px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(126, 184, 255, 0.1);
  background: rgba(4, 10, 20, 0.7);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
}
.tm-marker.tm-flow-ent .tm-label:hover {
  color: #b4c5ff;
}

.tm-marker.tm-inst .tm-label {
  left: 0;
  top: -12px;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(126, 184, 255, .16);
  background: rgba(7, 22, 48, 0.84);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 16px;
  color: #e4f0ff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  text-shadow: none;
}
.tm-marker.tm-inst .tm-label:hover {
  color: #b4c5ff;
}

.mapboxgl-marker:has(.tm-research-marker) {
  z-index: 12;
}

.mapboxgl-marker:has(.tm-inst:not(.tm-research-marker)) {
  z-index: 54;
}

.mapboxgl-marker:has(.tm-acad:not(.tm-research-marker)) {
  z-index: 56;
}

.tm-marker.tm-research-marker {
  z-index: 12;
}

.tm-marker.tm-inst:not(.tm-research-marker) {
  z-index: 54;
}

.tm-marker.tm-acad:not(.tm-research-marker) {
  z-index: 56;
}

.tm-marker.tm-acad .tm-sym {
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.95));
}

.tm-marker.tm-acad .tm-label {
  left: 0;
  top: -14px;
  transform: translate(-50%, -100%);
  background: rgba(80, 50, 10, 0.82);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 700;
  color: #fde68a;
  text-shadow: none;
}

.tm-marker.tm-proj .tm-label {
  pointer-events: auto;
  cursor: pointer;
  left: 0;
  transform: translate(-50%, -100%);
  border-left: 3px solid var(--tm-color, #3b82f6);
  background: rgba(8, 25, 54, 0.88);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(2, 10, 24, .24);
  text-shadow: none;
  z-index: 2;
}
.tm-marker.tm-proj:hover .tm-label {
  /* text-shadow: 0 0 8px #b4c5ff; */
  filter: brightness(1.6);
}

.tm-marker.tm-hit .tm-sym,
.tm-marker.tm-hit .tm-dot,
.tm-marker.tm-hit .tm-bubble-core {
  animation: tmHit 1.8s ease-in-out;
  transform-origin: center center;
  filter: drop-shadow(0 0 18px var(--tm-color, #f97316));
}

@keyframes tmHit {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  40% {
    transform: translate(-50%, -50%) scale(1.9);
  }

  70% {
    transform: translate(-50%, -50%) scale(2.35);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.tm-marker.tm-hit .tm-dot {
  animation-name: tmHitDot;
}

@keyframes tmHitDot {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.9);
  }

  70% {
    transform: scale(2.35);
  }

  100% {
    transform: scale(1);
  }
}

.tm-locate-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--tm-color, #fbbf24);
  box-shadow: 0 0 12px var(--tm-color, #fbbf24);
  pointer-events: none;
  z-index: 20;
  animation: tmRingExpand 1.4s ease-out forwards;
}

.tm-locate-ring--2 {
  animation-delay: 0.22s;
}

@keyframes tmRingExpand {
  0% {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    opacity: 1;
  }

  100% {
    width: 110px;
    height: 110px;
    margin: -55px 0 0 -55px;
    opacity: 0;
  }
}

.tm-locate-flash {
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 80;
}

.tm-locate-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--tm-color, #fbbf24);
  border: 2px solid #fff;
  box-shadow: 0 0 16px var(--tm-color, #fbbf24);
  animation: tmHitDot 1.8s ease-in-out;
}

/* 对齐原型 .ent-dot.s3 + stagePulse：25px 白边圆，0.7s×3 次缩放到 1.6 */
.tm-stage-flash {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  margin: -12.5px 0 0 -12.5px;
  border-radius: 50%;
  background: var(--tm-flash-color, #3b82f6);
  color: var(--tm-flash-color, #3b82f6);
  border: 3px solid #fff;
  box-shadow: 0 0 16px currentColor;
  pointer-events: none;
  z-index: 3;
  transform-origin: center center;
}

.tm-marker.tm-flash .tm-stage-flash {
  display: block;
  animation: stagePulse 0.7s ease-in-out 3;
}

@keyframes stagePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(1.6);
  }
}

.tm-marker.tm-heat {
  z-index: 8;
  pointer-events: none;
}

.tm-marker .tm-heat {
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(52, 211, 153, 0.55) 0%,
      rgba(52, 211, 153, 0.18) 58%,
      rgba(52, 211, 153, 0) 100%);
  pointer-events: none;
  animation: tmHeatPulse 3.5s ease-in-out infinite;
}

.tm-marker .tm-heat-core {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.92);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
  pointer-events: none;
}

.tm-marker.tm-heat .tm-label {
  left: 50%;
  top: auto;
  bottom: calc(50% + 28px);
  transform: translateX(-50%);
  color: #bbf7d0;
  font-size: 16px;
}

@keyframes tmHeatPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.sme-cluster-legend.point-legend {
  position: absolute;
  left: 44px;
  bottom: 76px;
  z-index: 24;
  box-sizing: border-box;
  width: min(430px, calc(100% - 32px));
  padding: 8px 10px 10px;
  border: 1px solid rgba(120, 170, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(24, 52, 104, 0.88), rgba(13, 34, 73, 0.84));
  box-shadow: 0 14px 40px rgba(2, 10, 24, 0.5);
  color: #dce9fb;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.sme-cluster-legend .legend-t {
  margin-bottom: 6px;
  color: #aed3ff;
  font-size: 15px;
  font-weight: 700;
}

.sme-cluster-legend .legend-close {
  position: absolute;
  top: 6px;
  right: 7px;
  z-index: 2;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(120, 170, 255, 0.2);
  border-radius: 4px;
  background: rgba(16, 42, 85, 0.62);
  color: #9fbee4;
  font-size: 16px;
  line-height: 17px;
  text-align: center;
  cursor: pointer;
}

.sme-cluster-legend .legend-close:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.52);
  background: rgba(43, 92, 158, 0.72);
}

.sme-cluster-legend__rows.legend-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  max-height: min(42vh, 260px);
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-color: rgba(104, 190, 255, 0.48) transparent;
  scrollbar-width: thin;
}

.sme-cluster-legend__row.legend-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #dce9fb;
  font-size: 13px;
  line-height: 20px;
}

.sme-cluster-legend__row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sme-cluster-legend__mark.lg-m {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42), 0 0 8px currentColor;
}

.sme-cluster-popup {
  width: 980px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* border: 1px solid rgba(120, 170, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(24, 52, 104, 0.88), rgba(13, 32, 69, 0.68));
  box-shadow: 0 18px 46px rgba(2, 10, 24, 0.58);
  color: #dce8ff; */
}

.sme-cluster-popup .mapboxgl-popup-content,
.sme-cluster-popup .maplibregl-popup-content {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(24, 52, 104, 0.88), rgba(13, 32, 69, 0.68));
  color: #dce9fb;
}

.sme-cluster-popup .mapboxgl-popup-tip,
.sme-cluster-popup .maplibregl-popup-tip {
  border-top-color: rgba(13, 34, 73, 0.96) !important;
  border-bottom-color: rgba(13, 34, 73, 0.96) !important;
}

.sme-cluster-popup .mapboxgl-popup-close-button,
.sme-cluster-popup .maplibregl-popup-close-button {
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(120, 170, 255, 0.3);
  border-radius: 6px;
  color: #9fc2ed;
  font-size: 21px;
  line-height: 25px;
  background: rgba(31, 63, 113, 0.56);
}

.sme-cluster-popup .mapboxgl-popup-close-button:hover,
.sme-cluster-popup .maplibregl-popup-close-button:hover {
  color: #fff;
  border-color: rgba(120, 190, 255, 0.64);
  background: rgba(43, 84, 145, 0.7);
}

.sme-cluster-popup__content {
  box-sizing: border-box;
  width: min(638px, calc(100vw - 42px));
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sme-cluster-popup__body {
  min-height: 0;
  padding: 6px 22px 10px;
  overflow-y: auto;
  scrollbar-color: rgba(120, 170, 255, 0.42) transparent;
  scrollbar-width: thin;
}

.sme-cluster-popup__body::-webkit-scrollbar {
  width: 5px;
}

.sme-cluster-popup__body::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(120, 170, 255, 0.42);
}

.sme-cluster-popup__content h3 {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 6px 52px 6px 34px;
  overflow: hidden;
  border-bottom: 1px solid rgba(120, 170, 255, 0.2);
  color: #e4efff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  background: linear-gradient(90deg, rgba(45, 83, 145, 0.45), rgba(30, 62, 112, 0.12) 74%, transparent);
}

.sme-cluster-popup__content h3::before {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #ffcc00;
  box-shadow: 0 0 8px #ffcc00;
  content: "";
  transform: translateY(-50%);
}

.sme-cluster-popup__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.sme-cluster-popup__meta span {
  min-width: 0;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.18);
  border-radius: 6px;
  color: #ffd75e;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
  background: rgba(42, 68, 112, 0.3);
}

.sme-cluster-popup__content p {
  position: relative;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(120, 170, 255, 0.16);
  border-radius: 6px;
  color: #d8e7fb;
  font-size: 17px;
  line-height: 1.75;
  text-align: justify;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgba(31, 63, 113, 0.2);
}

.sme-cluster-popup__body h4 {
  margin: 16px 0 8px;
  color: #93c5fd;
  font-size: 18px;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .sme-cluster-legend.point-legend {
    left: 44px;
    width: min(360px, calc(100% - 88px));
  }
}

/* .marker.gdzxx-hub-marker>.gdzxx-hub-text {
  width: 240px;
  text-align: center;
  font-family: "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.marker.gdzxx-hub-marker>.gzxxx-hub-text>.text {
  font: 100 14px/1.2 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: block;
  font-size: 20px;
  line-height: 28px;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px white;
}

.marker.gdzxx-hub-marker>.gzxxx-hub-text>.info {
  font: 100 13px/1.2 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin-top: 4px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 22px;
  color: #f7f7f7;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px rgba(0, 0, 0, .82);
} */
