/* 自定义 Toast 深色风格 */
.custom-toast {
    background: rgba(20, 30, 45, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 123, 36, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 123, 36, 0.2) inset;
}

.custom-toast-header {
    background: transparent;
    color: #FF7B24;
    border-bottom: 1px solid rgba(255, 123, 36, 0.3);
    padding: 12px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.custom-toast-header i {
    color: #FF7B24;
}

.custom-toast-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.custom-toast-header .btn-close:hover {
    opacity: 1;
}

.custom-toast-body {
    background: transparent;
    color: #FFFFFF;
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    border-radius: 0 0 16px 16px;
}

/* 可选：添加入场动画 */
.toast.custom-toast {
    animation: toastFadeInUp 0.3s ease forwards;
}

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

/* 成功/失败时头部图标颜色动态控制（沿用原有 JS 逻辑） */
.custom-toast-header i.text-success {
    color: #2ecc71 !important;
}
.custom-toast-header i.text-danger {
    color: #e74c3c !important;
}