:root {
	--primary-color: #3a7bd5;
	--secondary-color: #00d2ff;
	--text-color: #333;
	--light-text: #666;
	--border-color: #e0e0e0;
}

.top-banner {
	max-width: 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 新闻内容区域 */
.news-content {
	position: relative;
	z-index: 2;
	background: white;
	background-color: #F7F7F7;
	/*  	margin-top: 100px; */
}

.news-container {
	margin: 0 auto;
}

.news-container div {}

/* 页面标题区域 */
.page-title {
	text-align: center;
	margin-bottom: 60px;
	padding: 40px 0;
}

.page-title h1 {
	font-size: 36px;
	color: var(--text-color);
	margin-bottom: 10px;
	font-weight: 600;
}

.breadcrumb {
	font-size: 14px;
	color: var(--light-text);
	margin-bottom: 20px;
}

.breadcrumb a {
	color: var(--light-text);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--primary-color);
}

/* 新闻轮播容器样式 */
.news-carousel {
	width: 100%;
	position: relative;
	margin-bottom: 20px;
	/* 
	 border: 1px solid red;*/
}



/* 新闻标题样式 */
.news-title-info {
	width: 100%;
	margin-top: 1000px;
}

.news-title span:nth-child(1) {
	color: #828282;
	font-weight: bold;
}

.news-title span:nth-child(2) {
	font-size: 18px;
	color: #666;
	font-weight: normal;
	white-space: normal;
	word-break: break-word;
}

/* Swiper容器样式 */
.news-swiper {
	width: 500px;
	/* border: 1px solid red; */
}

/* Swiper-wrapper样式 */
.swiper-wrapper {
	width: 100%;
}

/* Swiper-slide样式 */
.swiper-slide {
	width: calc((100% - 90px) / 6);
	/* 6个幻灯片，增加间距使卡片变窄 */
	display: flex;
	justify-content: center;
}

/* 调整新闻卡片大小和布局 */
.news-item {
	background: white;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
	border: 1px solid #DFDEDE;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 400px;
	height: 420px;
	margin-left: 0;
	/* 确保内容不会相互重叠 */
	padding: 15px;
}

.news-item:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 鼠标悬浮时标题变蓝色 */
.news-item:hover .news-title {
	color: var(--primary-color);
}

/* 鼠标悬浮时查看详情变蓝色 */
.news-item:hover .news-more {
	color: var(--primary-color);
}

.news-date {
	color: #333;
	font-size: 12px;
	margin-bottom: 10px;
	font-weight: 500;
	/* 固定显示在顶部，不被图片影响 */
	order: 1;
}

/* 调整图片位置和样式，确保不影响文字 */
.news-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: transform 0.3s ease;
	border-radius: 4px;
	/* 确保图片在日期之后，标题之前 */
	order: 2;
	margin-bottom: 15px;
}

/* 仅对新闻主图片应用悬浮放大效果 */
.news-image:hover {
	transform: scale(1.05);
}

/* 确保news-more中的图片不会被放大 */
.news-more img {
	transition: none !important;
	transform: none !important;
	max-width: 12px;
	vertical-align: middle;
	margin-left: 4px;
}

/* 确保news-img类的图片也不会被放大 */
.news-img {
	transition: none !important;
	transform: none !important;
	max-width: 12px;
	max-height: 12px;
	vertical-align: middle;
	margin-left: 4px;
}

/* 确保标题显示完整，不被图片遮挡 */
.news-title {
	font-size: 16px;
	color: var(--text-color);
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 10px;
	cursor: pointer;
	transition: color 0.3s ease;
	/* 允许文本正常换行，不强制单行 */
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	max-width: 100%;
	height: auto;
	min-height: 50px;
	/* 确保标题在图片之后 */
	order: 3;
	/* 设置z-index确保文字在图片上层 */
	z-index: 1;
}

.news-title:hover {
	color: var(--primary-color);
}

/* 调整摘要样式，确保不被图片影响 */
.news-excerpt {
	font-size: 13px;
	color: #666;
	line-height: 1.8;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 40px;
	/* 确保摘要在标题之后 */
	order: 4;
	/* 设置z-index确保文字在图片上层 */
	z-index: 1;
}

/* 调整详情链接样式 */
.news-more {
	color: var(--text-color);
	font-size: 12px;
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	margin: 10px 0 0;
	/* 确保链接在最底部 */
	order: 5;
	/* 固定在底部 */
	margin-top: auto;
}


.news-img {
	max-width: 30px;
	max-height: 30px;
	height: 12px;
	margin-left: 4px;
}

.news-more:hover {
	color: var(--primary-color);
}

/* 添加箭头图标 */
.news-more::after {
	margin-left: 6px;
	transition: transform 0.3s ease;
}

.news-more:hover::after {
	transform: translateX(3px);
	color: var(--primary-color);
}

/* 添加下划线动画 */
.news-more::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

.news-more:hover::before {
	width: 100%;
}

/* 新闻条目悬浮效果 - 底部蓝色进度条 */
.news-item {
	position: relative;
	overflow: hidden;
	height: 450px;
}

/* 移除不必要的伪元素容器 */
/* 进度条效果可以直接通过::after实现 */
/* 已删除冗余的::before伪元素 */

/* 添加进度条元素 */
.news-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
	transition: width 0.5s ease-in-out;
	z-index: 2;
}

/* 鼠标悬浮时的进度条效果 */
.news-item:hover::after {
	width: 100%;
}

.news-more:hover::after {
	transform: translateX(3px);
}

/* 分页样式 */
.pagination-w {
	text-align: center;
	width: 100%;
	overflow: hidden;
	padding: 0 10px;
	box-sizing: border-box;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 0;
	flex-wrap: nowrap;
	box-sizing: border-box;
	width: 100%;
	gap: 5px;
	margin-top: 40px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 8px;
	margin: 0;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	text-decoration: none;
	color: var(--text-color);
	cursor: pointer;
	font-size: 14px;
	flex-shrink: 0;
	min-width: 28px;
	height: 28px;
	box-sizing: border-box;
}

.pagination a:hover {
	background-color: #f5f5f5;
}

.pagination a.active {
	background-color: var(--secondary-color);
	color: white;
	border-color: var(--secondary-color);
}

.pagination .ellipsis {
	border: none;
	cursor: default;
	padding: 6px 5px;
}

.pagination .prev-page.disabled,
.pagination .next-page.disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.pagination .page-jump {
	border: none;
	display: inline-flex;
	align-items: center;
	margin-left: 5px;
	font-size: 14px;
}

.pagination .page-select {
	padding: 4px;
	margin: 0 3px;
	border-radius: 4px;
	border: 1px solid var(--border-color);
	font-size: 14px;
	height: 28px;
	box-sizing: border-box;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pagination .ellipsis {
	border: none;
	padding: 8px 5px;
	color: var(--light-text);
}

.pagination .pagination-go {
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
	gap: 5px;
}

.pagination .pagination-go select {
	padding: 8px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background-color: white;
	color: var(--text-color);
	outline: none;
	cursor: pointer;
}

.pagination .pagination-go select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

.pagination .pagination-go button {
	padding: 8px 12px;
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.pagination .pagination-go button:hover {
	background-color: #2a6bc5;
}

/* 添加Swiper导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
	position: absolute;
	margin-top: 300px;
	width: 50px;
	height: 50px;
	/* 									background-color: rgba(255, 255, 255, 0.8); */
	color: var(--secondary-color);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	/* border: 1px solid red; */

}

.swiper-button-prev {
	left: 0;

}

.swiper-button-next {
	right: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: #1480C5;
	color: var(--secondary-color);
	transform: translateY(-50%) scale(1.1);
}

/* 隐藏默认的Swiper箭头图标 */
.swiper-button-prev::after,
.swiper-button-next::after {
	display: none;
}

/* 添加自定义箭头图标 */
.swiper-button-prev::before,
.swiper-button-next::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border: 2px solid currentColor;
	border-right: none;
	border-bottom: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-45deg);
}

.swiper-button-next::before {
	transform: translate(-50%, -50%) rotate(135deg);
}

/* 更多新闻链接样式 */
.slide-link {
	display: inline-flex;
	padding: 10px 20px;
	background-color: rgba(255, 255, 255, 0.2);
	text-align: center;
	color: #3a7bd5;
	margin-left: 1300px;
	margin-top: -900px;
	border: 1px solid #3a7bd5;
	border-radius: 25px;
	align-items: center;
	justify-content: center;
}

.slide-link:hover {
	background-color: #3a7bd5;
	color: #ffffff;
}

.slide-link:hover img {
	transform: scale(1.2);
	/* 如果有替代图片，可以使用content属性更换图片 */
content: url('../img/right.png');
/* 如果没有替代图片，添加滤镜效果改变颜色 */
/* filter: brightness(0) invert(1); */
}


/* 响应式设计 */
@media (max-width: 1024px) {

	/* 调整Swiper显示数量 */
	.swiper-slide {
		width: calc((100% - 30px) / 3) !important;
		/* 3个幻灯片，间距15px */
	}

	/* 调整导航按钮位置 */
	.swiper-button-prev {
		left: -10px;
	}

	.swiper-button-next {
		right: -10px;
	}
}

@media (max-width: 768px) {
	.news-container {
		padding: 60px 15px;
	}

	.page-title h1 {
		font-size: 28px;
	}

	/* 调整Swiper显示数量 */
	.swiper-slide {
		width: calc((100% - 15px) / 2) !important;
		/* 2个幻灯片，间距15px */
	}
}

@media (max-width: 480px) {

	/* 调整Swiper显示数量 */
	.swiper-slide {
		width: 100% !important;
		/* 1个幻灯片 */
	}

	/* 在小屏幕上隐藏导航按钮，使用触摸滑动 */
	.swiper-button-prev,
	.swiper-button-next {
		display: none;
	}
}

.progress-container {
	position: absolute;
	top: 520px;
	right: 50px;
	transform: translateY(-50%);
	width: 100%;
	height: 10px;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	overflow: hidden;
	z-index: 10;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
	border-radius: 3px;
	transition: width 0.3s ease;
}