/* 弹窗的基础样式 */
.popup {
    display: none; /* 初始隐藏 */
    opacity: 0; /* 初始透明度 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 背景半透明 */
    justify-content: center; /* 居中 */
    align-items: center; /* 垂直居中 */
    z-index: 1000; /* 保证在最上层 */
    transition: opacity 0.5s ease; /* 渐显动画 */
}

/* 弹窗中的图片样式 */
.popup-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* 鼠标悬停时放大图片 */
.popup-img:hover {
    transform: scale(1.05);
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 150px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

/* 鼠标悬停关闭按钮效果 */
.close-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: black;
}

/* 响应式样式 */
@media (min-width: 750px) {
    .popup-img {
        max-width: 750px; /* 电脑端最大宽度 */
    }
}

@media (max-width: 749px) {
    .popup-img {
        max-width: 90%; /* 手机端最大宽度 */
    }
}
