/* 自定义对话框样式 - 深蓝白色主题版 */

.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 58, 92, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    backdrop-filter: blur(4px);
}

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

.custom-dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 380px;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    animation: dialogIn 0.3s ease forwards;
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-dialog-header {
    background: #1A3A5C;
    color: #fff;
    padding: 20px 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.custom-dialog-body {
    padding: 24px;
    font-size: 15px;
    color: #2C1810;
    line-height: 1.7;
}

.custom-dialog-footer {
    display: flex;
    border-top: 1px solid #E8E0D8;
}

.custom-dialog-btn {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    color: #2D5F7A;
}

.custom-dialog-btn:hover {
    background: #F5F0EB;
}

.custom-dialog-btn + .custom-dialog-btn {
    border-left: 1px solid #E8E0D8;
}

.custom-dialog-btn.primary {
    color: #1A3A5C;
    font-weight: 700;
}

.custom-dialog-btn.primary:hover {
    background: #EBF4F8;
}

.custom-dialog-close {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.custom-dialog-close:hover {
    background: rgba(255,255,255,0.3);
}
