body {
    font-family: Arial, sans-serif;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
}
}

body.no-scroll {
    overflow: hidden;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    max-height: 80vh; /* 限制弹窗最大高度 */
    overflow-y: auto; /* 允许弹窗内部滚动 */
}

.popup {
    background: rgba(255, 255, 255, 0.9); /* 微透明化背景 */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 80vh; /* 限制弹窗最大高度 */
    overflow-y: auto; /* 允许弹窗内部滚动 */
    transition: transform 0.3s ease; /* 添加平滑效果 */
}

.popup {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px; /* 设置固定宽度 */
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.popup p {
    font-size: 14px;
    color: #666;
    font-weight: 300;
    margin: 0;
}

.overlay.active .popup {
    transform: scale(1);
}

input {
    margin: 15px 0;
    padding: 12px;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: orange;
    color: black;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: darkorange;
}
