.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    padding: 12px 24px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    margin: 0;  /* 移除垂直margin */
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;  /* 防止文本换行 */
}

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

.toast i {
    font-size: 16px;
}

/* 不同类型的toast样式 */
.toast-success {
    background: rgba(40, 167, 69, 0.9);
}

.toast-error {
    background: rgba(220, 53, 69, 0.9);
}

.toast-warning {
    background: rgba(255, 193, 7, 0.9);
}

.toast-info {
    background: rgba(23, 162, 184, 0.9);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
    color: var(--toast-color, #2196f3);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-progress {
    height: 3px;
    background: var(--toast-color, #2196f3);
    width: 100%;
    transition: width 3s linear;
}

.toast.show .toast-progress {
    width: 0;
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #F44336;
}

.toast.warning {
    border-left: 4px solid #FFC107;
}

.toast.success .toast-icon::before {
    content: "\ea77";
    font-family: remixicon;
    color: #4CAF50;
}

.toast.error .toast-icon::before {
    content: "\eb99";
    font-family: remixicon;
    color: #F44336;
}

.toast.warning .toast-icon::before {
    content: "\eb5d";
    font-family: remixicon;
    color: #FFC107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
} 