

/* 视频按钮容器 */
.video-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* 视频按钮样式 */
.video-btn {
    cursor: pointer;
}


/* 弹窗遮罩层 */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 80%透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
/* 弹窗内容 */
.video-modal {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s;
}
/* 视频播放器 */
.video-player {
    width: 100%;
    padding-top: 56.25%; /* 16:9比例 */
    position: relative;
}
.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}
/* 激活状态 */
.video-overlay.active {
    opacity: 1;
    visibility: visible;
}
.video-modal.active  {
    transform: scale(1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-modal {
        width: 95%;
    }
}