
/* 确保弹窗容器正确定位 */
.quick-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.75);
    z-index: 999999 !important; /* 确保最高层级 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-popup-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 修复弹窗容器定位 */
.quick-popup-container {
    position: fixed !important;
    z-index: 999999 !important; /* 确保最高层级 */
    background:  #fff;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
    overflow-y: auto;
    max-height: 100vh;
    opacity: 0;
    pointer-events: none;
    /* 初始位置在屏幕外 */
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 48%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 根据主题动态设置背景*/
[data-bs-theme="light"]  .quick-popup-container{
    background:  #fff;
}

[data-bs-theme="dark"] .quick-popup-container{
    background:  #0f0f10;
}

.quick-popup-container.active {
    opacity: 1;
    pointer-events: all;
    /* 滑入视图 */
    transform: translateX(-100%) !important;
    right: 0 !important;
}

/* 强制覆盖主题样式 */
body .quick-popup-container {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    transform: translateX(100%) !important;
    z-index: 999999 !important;
}

body .quick-popup-container.active {
    transform: translateX(0) !important;
}

/* 关闭按钮 */
.popup-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 30px !important;
    color: #333 !important;
    cursor: pointer !important;
    z-index: 1000000 !important; /* 高于容器 */
    width: 40px !important;
    height: 40px !important;
    text-align: center !important;
    line-height: 40px !important;
    background: transparent !important;
    border: none !important;
}

.popup-close:hover {
    color: #ff0000 !important;
}

/* 内容区域 - 重置表格内样式 */
.popup-content {
    padding: 40px 30px !important;
    display: block !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 修复表格内内容样式 */
.popup-content table,
.popup-content tr,
.popup-content td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .quick-popup-container {
        width: 95% !important;
    }
    
    .popup-content {
        padding: 30px 20px !important;
    }
}