/**
 * Toast 轻提示 - 无需确认，3秒自动消失
 * 支持 success / info / warning / error 四种类型
 */
.nblog-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 90vw;
    pointer-events: none;
}

.nblog-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    min-width: 280px;
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.nblog-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.nblog-toast.is-leaving {
    opacity: 0;
    transform: translateX(100%);
}

.nblog-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.nblog-toast-content {
    flex: 1;
    word-break: break-word;
}

/* success */
.nblog-toast.toast-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #166534;
}

.nblog-toast.toast-success .nblog-toast-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

/* info */
.nblog-toast.toast-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

.nblog-toast.toast-info .nblog-toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

/* warning */
.nblog-toast.toast-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #92400e;
}

.nblog-toast.toast-warning .nblog-toast-icon {
    background: rgba(245, 158, 11, 0.25);
    color: #d97706;
}

/* error */
.nblog-toast.toast-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.nblog-toast.toast-error .nblog-toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

@media (max-width: 576px) {
    .nblog-toast-container {
        left: 12px;
        right: 12px;
        top: 12px;
    }
    .nblog-toast {
        min-width: auto;
        max-width: none;
    }
}

