#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: 57.9vw; /* 1112/1920 = 0.579 */
    height: 36.04vw; /* 692/1920 = 0.3604 */
    margin-left: 40%;
}

.top3video {
    position: absolute;
    z-index: 2;
    /* 确保视频在中间层 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 对父元素居中 */
    top: 11.5%;
    left: -2%;
}

.top3video video {
    /* position: absolute; */
    width: 92%;
    height: 92%;
}

/* 自定义播放/暂停按钮样式 */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.8;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-play-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.video-play-btn svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* 视频播放时隐藏按钮 */
.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;
}