/* Image Hotspot Widget Styles */
.ihs-container {
    position: relative;
    width: 100%;
}

.ihs-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.ihs-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 热点样式 */
.ihs-hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ihs-hotspot-inner {
    width: 70%;
    height: 70%;
    background-color: #1a7a4c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ihs-hotspot-icon {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
}

.ihs-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ihs-hotspot.active {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 脉冲动画 */
.ihs-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.6;
    animation: ihs-pulse-animation 2s infinite;
}

@keyframes ihs-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* 弹出框样式 */
.ihs-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.ihs-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

.ihs-hotspot.active .ihs-tooltip {
    opacity: 1;
    visibility: visible;
}

.ihs-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.ihs-tooltip-content {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .ihs-hotspot {
        width: 32px;
        height: 32px;
    }
    
    .ihs-hotspot-icon {
        font-size: 16px;
    }
    
    .ihs-tooltip {
        max-width: 200px;
        min-width: 150px;
        padding: 12px 15px;
    }
    
    .ihs-tooltip-title {
        font-size: 14px;
    }
    
    .ihs-tooltip-content {
        font-size: 12px;
    }
}
