/* 图片弹窗样式 */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: transparent;
    pointer-events: none;
}

.image-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.image-popup-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    background: white;
    pointer-events: auto;
}

.image-popup-overlay.show .image-popup-container {
    transform: scale(1);
}

.image-popup-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.image-popup-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.image-popup-link:hover .image-popup-img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.image-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.image-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .image-popup-container {
        margin: 20px;
        max-width: calc(100% - 40px) !important;
        max-height: calc(100vh - 40px) !important;
    }
    
    .image-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .image-popup-img {
        border-radius: 8px;
    }
    
    .image-popup-container {
        border-radius: 8px;
    }
}