/* 美化提示框样式 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
    transition: all 0.3s ease;
    min-width: 300px;
}

.notification.fadeOut {
    animation: slideOut 0.3s ease;
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #333;
}

/* 不同类型提示框的颜色 */
.notification.success {
    border-left: 4px solid #10b981;
}

.notification.success .notification-icon {
    background: #d1fae5;
    color: #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.error .notification-icon {
    background: #fee2e2;
    color: #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.warning .notification-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification.info .notification-icon {
    background: #dbeafe;
    color: #3b82f6;
}

