/* Toast 样式 */

/**
*@Author: Swk
*@CreateTime: 2026/04/26 下午2:19
*@tip: CloudImg
*/

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: var(--surface-solid);
    color: var(--text);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 100%;
    animation: toastIn 0.3s ease forwards;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.removing {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.15s ease;
}

.toast.success { 
    border-left: 4px solid var(--success);
    background: var(--surface-solid);
}
.toast.error { 
    border-left: 4px solid var(--danger);
    background: var(--surface-solid);
}
.toast.info { 
    border-left: 4px solid var(--accent);
    background: var(--surface-solid);
}

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

/* 移动端响应式 */
@media (max-width: 640px){
    .toast{
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .toast-container {
        width: 95%;
        max-width: 350px;
    }
}
