           });
        }

        // 预加载单个幻灯片
        function preloadSlide(index) {
            if (index < 0 || index >= totalSlides || slideFrameCache.has(index) || loadingSlides.has(index)) {
                return;
            }

            console.log(`预加载幻灯片 ${index + 1}`);

            loadingSlides.add(index);

            const frameId = `slideFrame_${frameIdCounter++}`;
            const iframe = document.createElement('iframe');
            iframe.id = frameId;
     