/* css 重置 */

* {
	margin: 0;
	padding: 0;
	list-style: none;
}

body {
	background: #fff;
	font: normal 14px/24px 微软雅黑;
	color: #333;
}

a {
	text-decoration: none;
}

img {
	border: 0;
}

/* 本例子css */

.slideGroup {
	margin: 0 auto;
	width: 1000px;
	height: 500px;
	padding: 30px 0;
}

/* 选项卡导航样式 */
.slideGroup .parHd {
	margin-bottom: 30px;
}

.slideGroup .parHd ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.slideGroup .parHd ul li.tab-btn {
	padding: 8px 25px;
	background: #E9E9E9;
	border-radius: 25px;
	cursor: pointer;
	color: #666;
	font-size: 16px;
	transition: all 0.3s ease;
	border: none;
}

.slideGroup .parHd ul li.tab-btn.active {
	background: #1849c2;
	color: #FFF;
}

/* 主体内容样式 */
.slideGroup .parBd {
	overflow: hidden;
}

.content-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

/* 左侧内容样式 */
.left-content {
	width: 400px;
	padding-right: 40px;
}

.left-content h3 {
	font-size: 20px;
	color: #333;
	margin-bottom: 20px;
	font-weight: bold;
}

.left-content p {
	font-size: 16px;
	color: #666;
	margin-bottom: 15px;
	line-height: 1.6;
}

/* 右侧视频预览样式 */
.right-preview {
	width: 560px;
	position: relative;
}

.video-container {
	position: relative;
	width: 100%;
	height: 350px;
}

.video-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: opacity 0.3s ease;
}

.video-placeholder {
	width: 100%;
	height: 350px;
	background: #e0e0e0;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
}


.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100; /* 提高容器的z-index */
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button,
.pause-button {
    width: 80px;
    height: 80px;
    opacity: 0.8; /* 调整透明度到80% */
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 101; /* 确保按钮在所有视频控件之上 */
    position: relative; /* 确保z-index生效 */
    pointer-events: none; /* 让鼠标事件穿透到视频容器 */
}

.video-text {
	font-size: 24px;
	color: #999;
	font-weight: 500;
}

/* 预览控制按钮 */
.preview-controls {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	display: flex;
	align-items: center;
	padding: 0 10px;
	box-sizing: border-box;
}

.slideGroup .sPrev,
.slideGroup .sNext {
	display: block;
	width: 40px;
	height: 40px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
	transition: opacity 0.3s ease;
	z-index: 10;
}

.slideGroup .sPrev {
	background-image: url(../img/icoLeft.png);
	opacity: 0.4;
	margin-right: auto;
}

.slideGroup .sNext {
	background-image: url(../img/icoRight.png);
	opacity: 0.4;
	margin-left: auto;
}

.slideGroup .sPrev:hover,
.slideGroup .sNext:hover {
	opacity: 0.8;
}

/* 视频文字样式 */
.video-text {
	font-size: 24px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
}


/* 视频包装容器样式 */
.video-wrapper-ind {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

/* slideGroup视频包装容器样式 */
.video-wrapper-slide {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

/* 播放图标覆盖层样式 */
.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
}

/* slideGroup播放图标覆盖层样式 */
.play-icon-overlay-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
    display: none;
}

/* 播放图标样式 */
.play-icon {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: transform 0.2s ease;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 播放图标悬停效果 */
.play-icon-overlay:hover .play-icon,
.play-icon-overlay-slide:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* 视频播放器基础样式 */
.video-player {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* slideGroup区域视频特殊样式 */
.slide-video {
    transition: opacity 0.3s ease;
}

/* 视频加载动画 */
.video-wrapper-ind::before,
.video-wrapper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 视频加载时显示动画 */
.video-player[data-loading="true"] + .play-icon-overlay::before,
.video-player[data-loading="true"] + .play-icon-overlay-slide::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 视频错误提示样式 */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 14px;
    z-index: 20;
    display: none;
}

/* 响应式视频样式 */
@media (max-width: 768px) {
    .video-wrapper-ind {
        height: 150px;
    }
    
    .video-wrapper-slide {
        height: 250px;
    }
    
    .play-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .video-wrapper-ind {
        height: 120px;
    }
    
    .video-wrapper-slide {
        height: 200px;
    }
    
    .play-icon {
        width: 30px;
        height: 30px;
    }
}