/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* 第一部分：全屏背景图 */
.background-section {
    width: 100%;
    min-height: 50vh;
    background-image: url('../image/bk1.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
    aspect-ratio: 9/16; /* 根据实际图片比例调整 */
}

/* 第二部分：固定在顶部的下载按钮 */
.download-bar {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 1000;
    width: auto;
    height: auto;
}

.download-button {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
}

.download-button img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.download-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 第三部分：横向图片展示区（背景图展示） */
.image-slider-section {
    width: 100%;
    background-image: url('../image/background2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 20px 0;
}

.image-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 0;
    scrollbar-width: none;
    width: 100%;
    display: flex;
    align-items: center;
}

.image-slider-container::-webkit-scrollbar {
    display: none;
}

.image-slider-wrapper {
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
}

.image-slide {
    flex: 0 0 auto;
    width: 80vw;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 移除 aspect-ratio，让图片自然显示 */
    height: auto;
}

.image-slide img {
    width: 100%;
    height: auto; /* 根据图片实际尺寸自适应 */
    display: block;
    object-fit: cover;
}

.slider-progress {
    padding: 20px 20px 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-image: url("../image/progress.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background-image: url("../image/progress_ac.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 第四部分：图片展示区带指示器（背景图展示） */
.carousel-section {
    width: 100%;
    background-image: url('../image/background3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 20px 0;
    /* 移除固定的 margin-top */
    margin-top: 0;
}

.carousel-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    /* 移除固定高度，让内容自然展开 */
    height: auto;
    margin-top: 60px;
}

.carousel-slide img {
    width: 100%;
    height: auto; /* 根据图片实际尺寸自适应 */
    object-fit: contain;
    display: block;
}

.indicator-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px 0;
}

.indicator {
    width: 24px;
    height: 24px;
    background-image: url('../image/click2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-image 0.3s ease;
    display: inline-block;
}

.indicator.active {
    background-image: url('../image/click1.png');
}
/* 在 indicator-container 后添加一个间距元素 */
.carousel-spacing {
    width: 100%;
    height: 50px; /* 调整这个值来控制间距大小 */
}
/* 小屏幕设备 */
@media (max-width: 360px) {
    .background-section {
        aspect-ratio: 9/16;
        min-height: 70vh;
    }
    
    .image-slider-section {
        padding: 15px 0;
    }
    
    .image-slider-container {
        padding: 10px 0;
    }
    
    .image-slider-wrapper {
        padding: 0 10px;
        gap: 10px;
    }
    
    .image-slide {
        width: 85vw;
        border-radius: 10px;
    }
    
    .slider-progress {
        padding: 15px 15px 5px;
    }
    
    .progress-bar {
        height: 5px;
    }
    
    .carousel-container {
        width: 95%;
        border-radius: 10px;
        margin: 15px auto;
    }
    
    .indicator {
        width: 20px;
        height: 20px;
    }
    
    .indicator-container {
        gap: 10px;
        padding: 20px 0;
    }
}

/* 中等屏幕设备 */
@media (min-width: 361px) and (max-width: 414px) {
    .background-section {
        aspect-ratio: 9/16;
        min-height: 65vh;
    }
    
    
    .image-slider-section {
        padding: 18px 0;
    }
    
    .image-slider-wrapper {
        gap: 12px;
    }
    
    .image-slide {
        width: 82vw;
    }
    
    .indicator {
        width: 22px;
        height: 22px;
    }
    
    .carousel-container {
        margin: 18px auto;
    }
}

/* 大屏手机 */
@media (min-width: 415px) and (max-width: 480px) {
    .background-section {
        aspect-ratio: 9/16;
        min-height: 60vh;
    }
    
    .image-slider-section {
        padding: 20px 0;
    }
    
    .image-slider-wrapper {
        gap: 15px;
    }
    
    .image-slide {
        width: 75vw;
        border-radius: 14px;
    }
    
    .slider-progress {
        padding: 25px 20px 15px;
    }
    
    .carousel-container {
        border-radius: 14px;
        margin: 20px auto;
    }
    
    .indicator-container {
        gap: 15px;
        padding: 30px 0;
    }
}

/* 平板设备 */
@media (min-width: 481px) and (max-width: 768px) {
    .background-section {
        aspect-ratio: 16/9;
        min-height: 50vh;
    }
   
    .image-slider-section {
        padding: 30px 0;
    }
    
    .image-slider-wrapper {
        padding: 0 25px;
        gap: 20px;
    }
    
    .image-slide {
        width: 70vw;
        max-width: 450px;
        border-radius: 16px;
    }
    
    .slider-progress {
        padding: 30px 25px 20px;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .carousel-container {
        width: 85%;
        border-radius: 16px;
        margin: 25px auto;
    }
    
    .indicator {
        width: 28px;
        height: 28px;
    }
    
    .indicator-container {
        gap: 20px;
        padding: 35px 0;
    }
}

/* 桌面设备 */
@media (min-width: 769px) {
    .background-section {
        aspect-ratio: 21/9;
        min-height: 80vh;
    }
    
    
    .image-slider-section {
        padding: 40px 0;
    }
    
    .image-slider-wrapper {
        padding: 0 40px;
        gap: 25px;
    }
    
    .image-slide {
        width: 60vw;
        max-width: 500px;
        border-radius: 20px;
    }
    
    .slider-progress {
        padding: 40px 40px 25px;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .carousel-container {
        width: 80%;
        max-width: 700px;
        border-radius: 20px;
        margin: 30px auto;
    }
    
    .indicator {
        width: 32px;
        height: 32px;
    }
    
    .indicator-container {
        gap: 25px;
        padding: 40px 0;
    }
}

/* 超大屏幕样式 */
@media (min-width: 1200px) {
    .background-section {
        aspect-ratio: 21/9;
        min-height: 85vh;
    }
    
    .image-slider-section {
        padding: 50px 0;
    }
    
    .image-slide {
        width: 50vw;
        max-width: 600px;
    }
    
    .carousel-container {
        width: 75%;
        max-width: 800px;
        margin: 40px auto;
    }
}

@media (min-width: 1400px) {
    .background-section {
        aspect-ratio: 21/9;
        min-height: 90vh;
    }
    
    .carousel-container {
        max-width: 900px;
    }
}