/* Toast 提示组件样式 */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

.toast.success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    box-shadow: 0 8px 32px rgba(81, 207, 102, 0.4);
}

.toast.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
}

.toast.warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fcc419 100%);
    box-shadow: 0 8px 32px rgba(255, 212, 59, 0.4);
    color: #333;
}

.toast.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .toast {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        padding: 14px 20px;
        min-width: 180px;
        max-width: 90vw;
    }
    
    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .toast.hide {
        transform: translateX(-50%) translateY(-10px);
    }
}
