
/* 波浪效果样式 */
.wave-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    /* transform: translate(-50%, -50%); */
    z-index: 10;
}

/* 添加 label 样式 */
.marker-label {
    position: absolute;
    top: -20px; /* 调整 label 的位置 */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}
.center-dot {
    position: absolute;
    width: 12px;height: 12px;
    /* width: 1px;height: 1px; */
    background: #0044ff;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(24, 132, 255, 0.8);
    cursor: pointer;
}

.wave {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00FF00;
    border-radius: 50%;
    animation: none;
    /* animation: wavePulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;  */
    opacity: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.waveing {
    /* 去掉 infinite */
    animation: wavePulse 2s cubic-bezier(0, 0.2, 0.8, 1); 
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 1s;
}

@keyframes wavePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    70% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 定义不同颜色和动画速度的类 */
.wave-marker.green {
    .center-dot {
        background: #00FF00;
        box-shadow: none;
        width: 0;height: 0;
    }
   .wave {
        border: 2px solid #34e034;
        animation: wavePulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }
}
.wave-marker.red {
    .center-dot {
        background: #FF0000;
        box-shadow: none;
        width: 0;height: 0;
    }
   .wave {
        border: 2px solid #e42323;
        animation: wavePulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }
}
.wave-marker.slow .wave {
    animation: wavePulse 4s cubic-bezier(0, 0.2, 0.8, 1); 
}
.wave-marker.fast .wave {
    animation: wavePulse 1s cubic-bezier(0, 0.2, 0.8, 1); 
}