/*banner背景图片动画*/
@-webkit-keyframes scale-bg{
	from{
		-webkit-transform:scale(1.2);
		transform:scale(1.2);
	}
	to{
		-webkit-transform:scale(1);
		transform:scale(1);
	}
}
@keyframes scale-bg{
	from{
		-webkit-transform:scale(1.2);
		transform:scale(1.2);
	}
	to{
		-webkit-transform:scale(1);
		transform:scale(1);
	}
}
@media only screen and (max-width: 1199px){
	.video-slider-container {
		position: absolute;
		z-index: 10;
		right: 10%;
		top: 50%;
		transform: translateY(-50%);
		width: 580px;
	}
}
@media only screen and (max-width: 992px){
	.video-slider-container {
		position: absolute;
		z-index: 10;
		right: 10%;
		top: 50%;
		transform: translateY(-50%);
		width: 280px;
	}

}

@media only screen and (min-width: 768px) and (max-width: 1194px) and (-webkit-min-device-pixel-ratio: 2) {
	.video-slider-container {
		width: 92vw !important;
		right: 4% !important;
	}
	.video-slider {
		aspect-ratio: 9/16 !important;
		height: 40vh !important;
	}
	.slider-arrow {
		width: 40px !important;
		height: 40px !important;
		font-size: 20px !important;
	}
	..video-item {
		position: absolute;
		bottom: 10%;
	}
	.video-slider-container{
		top:70% !important;
	}
	.index_main .section1 .index_banner .item .inner .block_txt{
		top:22%;	
	}
}

.video-slider-container {
	position: absolute;
	z-index: 10;
	right: 10%;
	top: 50%;
	transform: translateY(-50%);
	width: 580px;
}
	
.video-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(0,0,0,0.9);
}
	
.video-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease;
	cursor: pointer;
}
.video-item.active {
	opacity: 1;
}
	
.video-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
	
.video-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.video-overlay h4 {
	margin: 0 0 5px;
	font-size: 16px;
}
.video-overlay p {
	margin: 0;
	font-size: 13px;
	opacity: 0.85;
}

/* -------- 左右箭头样式 -------- */
.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	background: rgba(255,255,255,0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	z-index: 2;
	user-select: none;
	transition: 0.2s;
}
.slider-arrow:hover {
	background: rgba(255,255,255,0.6);
}
.slider-arrow.prev {
	left: 8px;
}
.slider-arrow.next {
	right: 8px;
}

/* -------- 弹窗 -------- */
.video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.95);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
}
.video-modal.active {
	display: flex;
}
.video-modal video {
	max-width: 100%;
	max-height: 90vh;
	outline: none;
}
.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
}

/* -------- 响应式 -------- */
@media (max-width: 1024px) {
	.video-slider-container {
		right: 3%;
		width: 180px;
	}
	.header .left{
		width: 50%;
	}
	.navtel{
		 display:none; 
	}
}

@media (max-width: 768px) {
	.video-slider-container {
		position: fixed;
		bottom: 0;
		transform: none;
		width: 94%;
		margin: 20px auto;
		top:50% !important;
	}
	.video-slider {
		aspect-ratio: 16 / 9;
	}
	.header .left{
		width: 50%;
	}
	.navtel{
		display:none; 
	}
}

@media (max-width: 480px) {
	.video-slider-container {
		top:60% !important;  
	}
}

@media only screen and (max-width: 1365px){
	.video-slider-container {
		padding: 20px 20px 0;
		z-index: 10;
		width: auto;
		right: inherit;
		left: auto;
		transform: none;
		top: inherit;
		bottom: inherit;
		position: static;
	}
}
