    // 自动移除
            toast.addEventListener('hidden.bs.toast', function() {
                toast.remove();
            });
        }

        // 创建Toast容器
        function createToastContainer() {
            const container = document.createElement('div');
            container.id = 'toast-container';
            container.className = 'toast-container position-fixed bottom-0 end-0 p-3';
            container.style.zIndex = '1055';
            document.body.appendChild(container);
      