val = setInterval(() => {
                    if (currentSlideIndex < totalSlides - 1) {
                        nextSlide();
                    } else {
                        // 到达最后一页，停止自动播放
                        toggleAutoPlay();
                    }
                }, 5000); // 5秒间隔

                autoPlayBtn.innerHTML = '<i class="fas fa-pause"></i>';
                autoPlayBtn.title = '暂停自动播放';
                isAutoPlaying = true;
            }
   