/**
 * 热力图标注前端样式
 */

.hospot-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.hospot-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.hospot-point {
    position: absolute;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    z-index: 5;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.hospot-point-inner {
    position: absolute;
    display: block;
    width: 24px;
    height: 24px;
    background-color: rgba(29, 32, 135, 0.95);
    border-radius: 50%;
    animation: hospot-pulse 2s infinite, hospot-scale 2s infinite;
    transform-origin: center center;
}

.hospot-point-inner::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 7px;
    left: 7px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.hospot-point:hover {
    transform: scale(1.2);
    z-index: 10;
}

.hospot-content {
    position: absolute;
    display: none;
    z-index: 20;
    top: 30px;
    left: -150px;
    max-width: 90vw;
    border-left: 2px solid rgba(29, 32, 135, 0.96);
}

.hospot-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.hospot-description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.hospot-description p {
    margin-bottom: 8px;
    background-color:  rgba(29, 32, 135, 0.96);
    padding: 6px 10px;
    white-space: nowrap;
    color: #fff;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hospot-description p.show {
    opacity: 1;
    transform: translateY(0);
}

.hospot-description p:last-child {
    margin-bottom: 0;
}

.hospot-point:hover .hospot-content {
    display: block;
}

/* 自适应调整 */
@media (max-width: 768px) {
    .hospot-content {
        width: 250px;
        left: -125px;
    }
    
    .hospot-content::before {
        left: 121px;
    }
}

@media (max-width: 480px) {
    .hospot-content {
        width: 200px;
        left: -100px;
    }
    
    .hospot-content::before {
        left: 96px;
    }
    
    .hospot-point {
        width: 20px;
        height: 20px;
        margin-left: -10px;
        margin-top: -10px;
    }
    
    .hospot-point-inner {
        width: 20px;
        height: 20px;
    }
    
    .hospot-point-inner::before {
        width: 8px;
        height: 8px;
        top: 6px;
        left: 6px;
    }
}

/* 波纹动画效果 */
@keyframes hospot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 32, 135, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(29, 32, 135, 0.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 32, 135, 0);
    }
}

/* 内部元素缩放动画 */
@keyframes hospot-scale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
} 