﻿/* 页面背景遮罩 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

/* 弹出窗口 */
.popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: calc(100vw - 10%); /* 宽度为视口宽度减去两边各5% */
    height: calc(100vh - 40%); /* 高度为视口高度减去上下各15% */
    max-width: 90%; /* 确保不会超出屏幕 */
    max-height: 80%; /* 确保不会超出屏幕 */
    transition: all 0.3s ease;
    z-index: 1000;
}

/* 标题栏 */
.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: linear-gradient(to right, #ee720e, #feb47b); /* 左右渐变色 */
    color: white;
    font-size: 18px;
    /*font-weight: bold;*/
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* 关闭按钮 */
.close-btn {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: white;
    user-select: none;
}

/* 禁用关闭按钮样式 */
.close-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
 }

/* 主体内容 */
.popup-content {
    padding: 12px;
    height: calc(100% - 50px); /* 减去标题栏的高度 */
    overflow-y: auto;
}

/* 显示状态 */
.overlay.show {
    visibility: visible;
    opacity: 1;
}

.popup.show {
    transform: scale(1);
}

/* 初始隐藏状态 */
.popup {
    transform: scale(0.9);
}










/* 页面遮罩 */
.overlayPb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明灰色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 998; /* 确保遮罩层在最顶层 */
}

/* 加载动画容器 */
.loading-container {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 转圈动画 */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border: 4px solid #ccc;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 动画关键帧 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 提示文字 */
.loading-text {
    font-size: 16px;
    color: #333;
}

/* 显示状态 */
.overlayPb.show {
    visibility: visible;
    opacity: 1;
}