﻿/* 轮播容器核心样式 */
.banner-container {
	position: relative;
	margin: 0 auto;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
	/* 过渡动画 */
	transition: all 0.5s ease;
}

/* PC端比例：16:9 */
@media (min-width: 768px) {
	.banner-container {
		aspect-ratio: 1920/840;
	}
}

/* 移动端比例：4:3 */
@media (max-width: 767px) {
	.banner-container {
		aspect-ratio: 750/1000;
	}
}

/* 轮播图片容器 */
.banner-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	transition: transform 0.5s ease-in-out;
}

/* 轮播图片样式 */
.banner-item {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.banner-item img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 保持图片比例，覆盖容器 */
}

/* 左右导航按钮 */
.banner-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	z-index: 2;
	/* 默认隐藏 */
	opacity: 0;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}

/* 鼠标hover时显示按钮 */
.banner-container:hover .banner-btn {
	opacity: 1;
}

/* 按钮hover增强效果 */
.banner-btn:hover {
	background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
	left: 20px;
}

.next-btn {
	right: 20px;
}

/* 底部指示器容器 */
.banner-indicator {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

/* 指示器样式 */
.indicator-item {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

/* 激活状态指示器 */
.indicator-item.active {
	background-color: #fff;
	width: 24px;
	border-radius: 6px;
}
/* 单张图片隐藏按钮和指示器 - 无修改 */
.banner-container.single-item .banner-btn,
.banner-container.single-item .banner-indicator {
	display: none;
}	
		
/* -------------底部轮播------------------ */
.banner5 {
	margin: 0 auto;
	padding: 80px 0;
	background-color: #fff;
	overflow: hidden;
}

.box5_title {
	text-align: center;
	margin-bottom: 60px;
}

.box5_title_main {
	display: inline-block;
	position: relative;
	margin-bottom: 30px;
}

.common {
	font-size: 48px;
	font-weight: 800;
	line-height: 1.2;
	color: #000;
	margin-bottom: 10px;
}

.CZ_version {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	color: #666;
	display: none;
}

.box5_title img {
	width: 80px;
	height: auto;
	margin-top: 20px;
}

.box5Swiper1, .box5Swiper2 {
	overflow: hidden;
	margin-bottom: 40px;
	position: relative;
}

.banner5 .swiper-wrapper {
	display: flex;
	width: max-content;
}

.box5_item {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
	/* height: 400px; */
	flex-shrink: 0;
	margin: 0 10px;
	width: 361px;
}

.box5_item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.box5_mask {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.8));
	color: white;
	padding: 30px 20px 20px;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.box5_item:hover .box5_mask {
	opacity: 1;
}

.Mbox5_text {
	display: none;
	padding: 15px;
	text-align: center;
	font-size: 14px;
	color: #333;
	background-color: #f9f9f9;
	border-radius: 0 0 12px 12px;
}

/* 移动端样式 */
@media (max-width: 768px) {
	.banner5 {
		padding: 40px 0;
	}
	.box5_title {
	margin-bottom: 0;
	}
	.common {
		font-size: 32px;
	}
	
	.box5_item {
		height: 180px;
		width: 270px;
	}
	
	.box5_mask {
		display: none;
	}
	
	.Mbox5_text {
		display: block;
		font-size: 14px;
		padding: 12px;
	}
	
	.mobile-only {
		display: block !important;
	}
	
	.box5_title .common br.mobile-only {
		display: block;
	}
}

@media (min-width: 769px) {
	.mobile-only {
		display: none !important;
	}
	
	.box5_title .common br.mobile-only {
		display: none;
	}
}