/* 包裹图片和按钮的父盒子：相对定位，按钮参照物 */
.video-thumb-wrap {
    position: relative;
    width: 200px; /* 控制图片宽度，可百分比 */
}

    /* 图片自适应容器 */
    .video-thumb-wrap img {
        width: 100%;
        height: auto;
        display: block;
    }

/* 居中悬浮按钮 */
.center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 向左向上移动自身宽高的50%，实现精准居中 */
    transform: translate(-50%, -50%);
    z-index: 9; /* 保证按钮在图片上层 */
}

/* 视频弹窗遮罩：全屏黑色半透明 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none; /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .video-modal.active {
        display: flex;
        opacity: 1;
    }

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.video-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
}

    .video-ratio video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        outline: none;
    }

/* 关闭按钮 */
.video-close {
    position: absolute;
    top: 10%;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bolder;
    cursor: pointer;
    user-select: none;
    z-index:10;
}

.video-trigger {
    cursor: pointer;
}
