/* 默认隐藏弹出图片 */
.image-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* 背景遮罩 */
.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 图片框 */
.popup-content {
    position: relative;
    z-index: 1000;
    max-width: 30%;
}

@media (max-width: 800px) {
    .popup-content {
        position: relative;
        z-index: 1000;
        max-width: 80%;
    }
}

/* 图片样式 */
.popup-content img {
    width: 100%;
    height: auto;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 20px;
    cursor: pointer;
}

.popup-close i {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: url(/statics/images/img/close.png) no-repeat;
    background-size: 100%;
}

/* 使图片逐渐淡入 */
.image-popup.show {
    opacity: 1;
}

/* 当点击图片外区域，添加过渡效果 */
.image-popup.hide {
    opacity: 0;
}

.image-popup.none {
    display: none;
}