#slide5 {
    position: relative;
    overflow: hidden;
}

.gallery-showcase {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 10vh;
}

/* 画廊大图展示区域 */
.gallery-showcase-main {
    position: absolute;
    box-sizing: border-box;
    width: 60vw;
    height: 36vw;
    left: 50%;
    transform: translateX(-50%);
    top: 5%;
    overflow: hidden;
}

.gallery-showcase-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-showcase-large-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    cursor: zoom-in;
}

/* 画廊缩略图导航 */
.gallery-showcase-navigation {
    position: absolute;
    width: 100%;
    height: auto;
    bottom: 2vw;
    left: 0;
    z-index: 10;
}

.gallery-showcase-nav-page {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.gallery-showcase-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}

.gallery-showcase-nav-img {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 12vw;
    height: auto;
}

.gallery-showcase-nav-img:hover {
    transform: scale(1.1);
}

.gallery-showcase-border {
    width: 100%;
    height: 100%;
}

/* 移动端适配 - 竖屏移动设备 */
@media screen and (max-width: 768px), screen and (max-aspect-ratio: 1/1) {
    /* 调整大图区域,为底部导航留出空间 */
    .gallery-showcase-main {
        width: 60vw;
        height: 36vw;
        top: 12%;
        /* 禁止移动端触摸交互 */
        touch-action: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 禁止移动端大图的触摸交互 */
    .gallery-showcase-large-img {
        pointer-events: none;
        touch-action: none;
        cursor: default;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 禁止移动端轮播项的触摸交互 */
    .gallery-showcase-item {
        touch-action: none;
        -webkit-touch-callout: none;
    }
    
    /* 优化底部导航栏位置和大小 */
    .gallery-showcase-navigation {
        bottom: 5vw;
    }
    
    .gallery-showcase-page-container {
        gap: 10px;
    }
    
    /* 缩小缩略图尺寸以适应移动端 */
    .gallery-showcase-nav-img {
        width: 10vw;
        max-width: 80px;
    }
    
    /* 旋转90度后,实际使用视觉单位 */
    @supports (--visual-vw: 1vh) {
        .gallery-showcase-main {
            width: calc(60 * var(--visual-vw, 1vw));
            height: calc(36 * var(--visual-vw, 1vw));
        }
        
        .gallery-showcase-navigation {
            bottom: calc(5 * var(--visual-vw, 1vw));
        }
        
        .gallery-showcase-nav-img {
            width: calc(10 * var(--visual-vw, 1vw));
        }
    }
}

/* 小屏幕移动设备额外优化 */
@media screen and (max-width: 480px) {
    .gallery-showcase-main {
        width: 65vw;
        height: 34vw;
        top: 15%;
        /* 禁止移动端触摸交互 */
        touch-action: none;
    }
    
    /* 禁止移动端大图的触摸交互 */
    .gallery-showcase-large-img {
        pointer-events: none;
        touch-action: none;
    }
    
    /* 禁止移动端轮播项的触摸交互 */
    .gallery-showcase-item {
        touch-action: none;
    }
    
    .gallery-showcase-navigation {
        bottom: 6vw;
    }
    
    .gallery-showcase-page-container {
        gap: 8px;
    }
    
    .gallery-showcase-nav-img {
        width: 9vw;
        max-width: 70px;
    }
    
    @supports (--visual-vw: 1vh) {
        .gallery-showcase-main {
            width: calc(65 * var(--visual-vw, 1vw));
            height: calc(34 * var(--visual-vw, 1vw));
        }
        
        .gallery-showcase-navigation {
            bottom: calc(6 * var(--visual-vw, 1vw));
        }
        
        .gallery-showcase-nav-img {
            width: calc(9 * var(--visual-vw, 1vw));
        }
    }
}

/* 横屏移动设备 */
@media screen and (max-width: 926px) and (orientation: landscape) {
    .gallery-showcase-main {
        width: 50vw;
        height: 28vw;
        top: 15%;
        /* 禁止移动端触摸交互 */
        touch-action: none;
    }
    
    /* 禁止移动端大图的触摸交互 */
    .gallery-showcase-large-img {
        pointer-events: none;
        touch-action: none;
    }
    
    /* 禁止移动端轮播项的触摸交互 */
    .gallery-showcase-item {
        touch-action: none;
    }
    
    .gallery-showcase-navigation {
        bottom: 4vw;
    }
    
    .gallery-showcase-nav-img {
        width: 9vw;
    }
}
