


/* Toast 提示样式 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.3s ease forwards, toastOut 0.3s ease 2.7s forwards;
    min-width: 200px;
    text-align: center;
    justify-content: center;
}

.toast.success {
    background: rgba(82, 196, 26, 0.9);
}

.toast.error {
    background: rgba(255, 77, 79, 0.9);
}

.toast i {
    font-size: 16px;
}

@keyframes toastIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes toastOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* 确保动画结束后元素被移除 */
.toast.hide {
    display: none;
}