/* Toast样式 */
.toast-container {
    position: fixed;
    top : 50vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    user-select: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.hiding {
    opacity: 0;
    transform: translateY(-20px);
}

/* 不同类型的Toast */
.toast.success {
    background: rgba(52, 199, 89, 0.95);
    color: white;
}

.toast.error {
    background: rgba(255, 59, 48, 0.95);
    color: white;
}

.toast.warning {
    background: rgba(255, 149, 0, 0.95);
    color: white;
}

.toast.info {
    background: rgba(0, 122, 255, 0.95);
    color: white;
}

/* Toast图标 */
.toast-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Toast动作按钮 */
.toast-action {
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 1rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.toast-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 多行Toast */
.toast.multiline {
    text-align: left;
    border-radius: 0.75rem;
    max-width: 400px;
    white-space: pre-line;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .toast-container {
        bottom: 1rem;
        padding: 0 1rem;
    }
    
    .toast {
        width: 100%;
        max-width: none;
        border-radius: 0.75rem;
    }
}