/* 风险管控项目“铁路沿线风险一张图”设施标记样式 */
.rail-map-compass {
  position: absolute;
  z-index: 35;
  top: 12px;
  left: 14px;
  width: 26px;
  color: #e8f3ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0,0,0,.9);
  pointer-events: none;
}
.rail-map-compass span {
  display: block;
  width: 0;
  height: 0;
  margin: 4px auto 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 14px solid #cfe4ff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.8));
}
.risk-facility-marker {
  position: relative;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 3px rgba(0, 10, 28, .9));
}
.risk-facility-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.risk-facility-glyph svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 1.5px rgba(255,255,255,.95)) drop-shadow(0 0 4px rgba(6,22,44,.55));
}
.risk-facility-marker > i {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 9px;
  height: 9px;
  border: 1.3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,30,60,.55);
  z-index: 2;
}
.risk-facility-marker > b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1.4px solid #ff4d4f;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: riskFacilityPulse 2.2s ease-out infinite;
}
@keyframes riskFacilityPulse {
  0% { transform: scale(.35); opacity: .9; }
  80% { transform: scale(1.3); opacity: 0; }
  100% { opacity: 0; }
}
.rail-risk-legend {
  flex-wrap: wrap;
  gap: 7px 14px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  background: rgba(5, 20, 42, .86);
  backdrop-filter: blur(3px);
}
.rail-risk-legend > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
  color: #d3e7fb;
}
.rail-risk-legend .legend-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
}


/* 工作台复用监控大屏的高德卫星风险地图 */
.wb-rail-map {
  position: relative;
  height: 500px;
  min-height: 420px;
  background: #071a31;
}
.wb-rail-map .wb-amap-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.wb-rail-map .rail-map-compass {
  z-index: 5;
}
.wb-rail-map .workbench-map-legend {
  z-index: 6;
  left: 14px;
  bottom: 12px;
  max-width: calc(100% - 28px);
}
.wb-map-status {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border: 1px solid rgba(117, 181, 235, .45);
  border-radius: 6px;
  background: rgba(5, 20, 42, .86);
  color: #d6eaff;
  font-size: 13px;
  pointer-events: none;
}
.wb-map-status.is-error {
  color: #ffd1d1;
  border-color: rgba(255, 100, 100, .5);
}
@media (max-width: 768px) {
  .wb-rail-map {
    height: 420px;
    min-height: 360px;
  }
  .wb-rail-map .workbench-map-legend {
    left: 8px;
    bottom: 8px;
    padding: 6px 8px;
  }
}
