/* 模态窗口背景层 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px); /* 添加毛玻璃效果 */
}

/* 模态窗口内容区域 */
.modal-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    margin: 10% auto;
    padding: 20px;
    border: none;
    width: 50%;
    max-width: 45%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px; /* 圆角边框 */
    animation-name: modalOpen;
    animation-duration: 0.4s;
}

/* 关闭按钮 */
.close {
    color: #333;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* 响应式设计 */
@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%;
    }
}

/* 动画效果 */
@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.8;
        transform: scale(1);
    }
}