/* 图片热点小部件样式 */
.ihw-container {
    position: relative;
    width: 100%;
}

.ihw-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.ihw-image {
    display: block;
    width: 100%;
    height: auto;
}

/* 热点容器 */
.ihw-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

/* 热点圆点 */
.ihw-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
}

.ihw-hotspot:hover .ihw-dot {
    transform: scale(1.2);
}

/* 水波动画 */
.ihw-wave {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 1;
    pointer-events: none;
}

.ihw-wave-1 {
    animation: ihw-ripple 2s ease-out infinite;
}

.ihw-wave-2 {
    animation: ihw-ripple 2s ease-out infinite 1s;
}

@keyframes ihw-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* 标签样式 */
.ihw-label {
    position: absolute;
    left: 15px;
    top: -5px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 4;
}

.ihw-label:hover {
    text-decoration: none;
}

/* 显示控制 - 标签 */
.ihw-container[data-show-label="hover"] .ihw-label {
    opacity: 0;
    transform: translateX(-5px);
}

.ihw-container[data-show-label="hover"] .ihw-hotspot:hover .ihw-label {
    opacity: 1;
    transform: translateX(0);
}

.ihw-container[data-show-label="never"] .ihw-label {
    display: none;
}

/* 显示控制 - 圆点 */
.ihw-container[data-show-dot="hover"] .ihw-dot,
.ihw-container[data-show-dot="hover"] .ihw-wave {
    opacity: 0;
}

.ihw-container[data-show-dot="hover"] .ihw-hotspot:hover .ihw-dot {
    opacity: 1;
}

.ihw-container[data-show-dot="hover"] .ihw-hotspot:hover .ihw-wave {
    animation: ihw-ripple 2s ease-out infinite;
}

.ihw-container[data-show-dot="never"] .ihw-dot,
.ihw-container[data-show-dot="never"] .ihw-wave {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .ihw-label {
        font-size: 12px;
    }
    
    .ihw-dot {
        width: 8px;
        height: 8px;
    }
}
