   if (currentSlideIndex > 0 && !isTransitioning) {
                loadSlideWithCache(currentSlideIndex - 1);
            }
        }

        // 下一页
        function nextSlide() {
            if (currentSlideIndex < totalSlides - 1 && !isTransitioning) {
                loadSlideWithCache(currentSlideIndex + 1);
            }
        }

        // 跳转到指定幻灯片
        function goToSlide(index) {
            if (!isTransitioning && index !== currentSlideIndex && index >= 0 && index < tota