#slide6 {
    position: relative;
    overflow: hidden;
}

.backstory {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 10vh;
}

/* 大图显示区域 - 位于上方 */
.backstory-main-image {
    position: absolute;
    box-sizing: border-box;
    width: 75vw;
    height: 36vw;
    left: 50%;
    transform: translateX(-50%);
    top: 5%;
    overflow: hidden;
}

.backstory-main-list {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 大图样式 */
.backstory-large-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    cursor: zoom-in;
}

/* 选择导航栏 - 位于下方 */
.backstory-navigation {
    position: absolute;
    width: 100%;
    height: auto;
    bottom: 2vw;
    left: 0;
    z-index: 10;
}

.backstory-nav-page {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 导航小图样式 */
.backstory-nav-img {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 12vw;
    height: auto;
}

.backstory-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1vw;
    cursor: pointer;
}

.backstory-nav-arrow img {
    width: 3vw;
    min-width: 36px;
    height: auto;
}

.backstory-nav-img:hover {
    transform: scale(1.1);
}

/* 保留旧样式以防其他地方使用 */
.backstory-left-list-big {
    animation-name: bigIcon;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

@keyframes bigIcon {
    0% {
        filter: brightness(100%);
    }

    50% {
        filter: brightness(50%);
    }

    100% {
        filter: brightness(100%);
    }
}

.backstory-border {
    width: 100%;
    height: 100%;
}

@keyframes bigImg {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1.0);
    }
}

.slide-inner {
    position: absolute;
    width: 100%;
    left: 0;
    background-size: cover;
    background-position: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    color: #fff;
}

@keyframes moveLeft {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes moveRight {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

#backstoryPre:hover {
    animation-name: moveLeft;
    animation-duration: 0.8s;
}

#backstoryNext:hover {
    animation-name: moveRight;
    animation-duration: 0.8s;
}

/* 背景图片容器样式 */
.backstory-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}

/* 移动端适配 - 竖屏移动设备 */
@media screen and (max-width: 768px), screen and (max-aspect-ratio: 1/1) {
    /* 调整大图区域,为底部导航留出空间 */
    .backstory-main-image {
        width: 70vw;
        height: 48vw;
        top: 15%;
    }
    
    /* 优化底部导航栏位置和大小 */
    .backstory-navigation {
        bottom: 5vw;
    }
    
    .backstory-page-container {
        gap: 8px;
    }
    
    /* 缩小缩略图尺寸以适应移动端 */
    .backstory-nav-img {
        width: 9vw;
        max-width: 70px;
    }
    
    /* 调整箭头大小 */
    .backstory-nav-arrow {
        padding: 0 0.5vw;
    }
    
    .backstory-nav-arrow img {
        width: 2.5vw;
        min-width: 28px;
    }
    
    /* 旋转90度后,实际使用视觉单位 */
    @supports (--visual-vw: 1vh) {
        .backstory-main-image {
            width: calc(70 * var(--visual-vw, 1vw));
            height: calc(48 * var(--visual-vw, 1vw));
        }
        
        .backstory-navigation {
            bottom: calc(5 * var(--visual-vw, 1vw));
        }
        
        .backstory-nav-img {
            width: calc(9 * var(--visual-vw, 1vw));
        }
        
        .backstory-nav-arrow {
            padding: 0 calc(0.5 * var(--visual-vw, 1vw));
        }
        
        .backstory-nav-arrow img {
            width: calc(2.5 * var(--visual-vw, 1vw));
        }
    }
}

/* 小屏幕移动设备额外优化 */
@media screen and (max-width: 480px) {
    .backstory-main-image {
        width: 75vw;
        height: 45vw;
        top: 15%;
    }
    
    .backstory-navigation {
        bottom: 6vw;
    }
    
    .backstory-page-container {
        gap: 6px;
    }
    
    .backstory-nav-img {
        width: 8vw;
        max-width: 60px;
    }
    
    .backstory-nav-arrow img {
        width: 2vw;
        min-width: 24px;
    }
    
    @supports (--visual-vw: 1vh) {
        .backstory-main-image {
            width: calc(75 * var(--visual-vw, 1vw));
            height: calc(45 * var(--visual-vw, 1vw));
        }
        
        .backstory-navigation {
            bottom: calc(6 * var(--visual-vw, 1vw));
        }
        
        .backstory-nav-img {
            width: calc(8 * var(--visual-vw, 1vw));
        }
        
        .backstory-nav-arrow img {
            width: calc(2 * var(--visual-vw, 1vw));
        }
    }
}

/* 横屏移动设备 */
@media screen and (max-width: 926px) and (orientation: landscape) {
    .backstory-main-image {
        width: 65vw;
        height: 38vw;
        top: 15%;
    }
    
    .backstory-navigation {
        bottom: 4vw;
    }
    
    .backstory-nav-img {
        width: 8vw;
    }
    
    .backstory-nav-arrow img {
        width: 2.5vw;
    }
}