#slide5 {
    position: relative;
    overflow: hidden;
}

.gallery {
    display: flex;
    height: 100%;
    box-sizing: border-box;
    padding-top: 8vh;
    /* background: green; */
    overflow: hidden;
}

.gallery-top {
    height: 100%;
    width: 100%;
    /* background: firebrick; */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 视频容器的父元素，使用相对定位实现居中 */
.gallery-video {
    position: relative;
    width: 62.9vw; /* 1112/1920 = 0.579 */
    height: 41.04vw; /* 692/1920 = 0.3604 */
    margin:0 auto;
}

.top3video {
    position: absolute;
    z-index: 2;
    /* 确保视频在中间层 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 对父元素居中 */
    top: 9.5%;
    /* left: -2%; */
}

.top3video video {
    /* position: absolute; */
    width: 100%;
    height: 100%;
}

/* 自定义播放/暂停按钮样式 */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    cursor: pointer;
    /* background: url("../img/UI_btn_play.png") no-repeat center / contain; */
    border: none;
    border-radius: 0;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.video-play-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.video-play-btn svg {
    display: none;
}

/* 视频播放时隐藏按钮 */
.video-playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 鼠标悬停在视频上时显示按钮 */
.top3video:hover .video-play-btn {
    opacity: 0.8;
    pointer-events: all;
}

.top3video video {
    width: 92%;
    height: 92%;
    cursor: pointer;
    display: block;
}

/* 视频框底层样式 */
.video-frame-bottom {
    position: absolute;
    width: 100%;
    height:  100%;
}

.video-frame-bottom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 视频框上层样式 */
.video-frame-top {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    top: 13%;
    left: 3%;
    /* 允许点击穿透到视频控件 */
}

.video-frame-top img {
    width: auto;
    height: auto;
    object-fit: contain;
}