n.disabled = currentSlideIndex === totalSlides - 1;
            slideCounter.textContent = `${currentSlideIndex + 1} / ${totalSlides}`;
        }

        // 更新缩略图状态
        function updateThumbnails() {
            const thumbnails = document.querySelectorAll('.thumbnail');
            thumbnails.forEach((thumb, index) => {
                thumb.classList.toggle('active', index === currentSlideIndex);
            });
        }

        // 上一页
        function previousSlide() {
         