/* 前台 Toast — 与后台 admin-toast 一致 */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 2rem));
}

body.auth-page .toast-container {
    top: 1.5rem;
}

.admin-toast {
    pointer-events: auto;
    opacity: 0;
    transform: translateX(110%);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.admin-toast-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.06);
    min-width: 280px;
}

.admin-toast-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-toast-message {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
    word-break: break-word;
}

.admin-toast-close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-toast-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.admin-toast-success .admin-toast-icon {
    background: #ecfdf5;
    color: #059669;
}

.admin-toast-error .admin-toast-icon {
    background: #fef2f2;
    color: #dc2626;
}

.admin-toast-warning .admin-toast-icon {
    background: #fffbeb;
    color: #d97706;
}

.admin-toast-info .admin-toast-icon {
    background: #eff6ff;
    color: #1565C0;
}

@media (max-width: 768px) {
    .toast-container {
        top: 4.5rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    body.auth-page .toast-container {
        top: 1rem;
    }

    .admin-toast-inner {
        min-width: 0;
    }
}
