/* 弹窗通知系统：基础变量 */
:root {
    --popup-mask: rgba(11, 19, 32, 0.62);
    --popup-surface: #ffffff;
    --popup-title: #0f172a;
    --popup-text: #334155;
    --popup-primary: #0ea5a4;
    --popup-secondary: #e2e8f0;
    --popup-border: rgba(148, 163, 184, 0.28);
    --popup-shadow: 0 30px 90px rgba(2, 12, 27, 0.34);
}

/* 弹窗通知系统：遮罩层与容器 */
.popup-system-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--popup-mask);
    backdrop-filter: none;
    animation: popupFadeIn .22s ease-out;
}

.popup-system-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(640px, calc(100vw - 24px));
    max-height: min(88vh, 900px);
    border: 1px solid var(--popup-border);
    border-radius: 22px;
    background: var(--popup-surface);
    box-shadow: var(--popup-shadow);
    overflow: hidden;
    transform: translateY(8px);
    animation: popupRise .26s ease-out forwards;
}

/* 弹窗通知系统：头部、内容、底部 */
.popup-system-header {
    flex: 0 0 auto;
    padding: 22px 24px 8px;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--popup-title);
    letter-spacing: 0.3px;
}

.popup-system-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 24px 20px;
    font-size: 15px;
    line-height: 1.78;
    color: var(--popup-text);
}

.popup-system-footer {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 24px;
}

.popup-system-tip {
    margin: 0 24px 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 14px;
    line-height: 1.6;
}

.popup-system-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}

.popup-system-close:hover {
    transform: translateY(-1px) scale(1.04);
    background: linear-gradient(180deg, #ffffff, #eef2ff);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.popup-system-close:active {
    transform: scale(0.96);
}

.popup-system-btn {
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    min-width: 92px;
    transition: transform .16s ease, box-shadow .18s ease, background .2s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.popup-system-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

/* 弹窗通知系统：移动端适配 */
@media (max-width: 767.98px) {
    .popup-system-dialog {
        border-radius: 16px;
    }

    .popup-system-header {
        padding: 18px 16px 6px;
        font-size: 20px;
    }

    .popup-system-body {
        padding: 8px 16px 14px;
        font-size: 14px;
        line-height: 1.7;
    }

    .popup-system-footer {
        padding: 0 16px 16px;
        gap: 8px;
        justify-content: flex-end;
    }

    .popup-system-btn {
        min-width: 84px;
        padding: 9px 14px;
    }

    .popup-system-tip {
        margin: 0 16px 12px;
    }
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
