/* 荣誉资质页面样式 */
/* 标签页样式 */
.honors-tabs {
	margin: 30px 0;
}

.tab-nav {
	display: flex;
	border-bottom: 1px solid #e5e5e5;
	justify-content: center; /* 居中显示标签 */
}

.tab-link {
	font-size: 18px;
	padding: 12px 30px;
	color: #666;
	position: relative;
	text-align: center;
	transition: all 0.3s ease;
}

.tab-link.active {
	color: #ff7800;
	font-weight: bold;
}

.tab-link.active::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #ff7800;
}

.tab-link:hover {
	color: #ff7800;
}

/* 证书网格样式 */
.honor_certificates-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin: 40px auto; /* 上下间距40px，左右自动（居中） */
	max-width: 1200px; /* 限制最大宽度 */
}

.honor_certificate-item {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease;
}

.honor_certificate-item:hover {
	transform: translateY(-5px);
}

.honor_certificate-image {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	background: #f8f8f8;
}

.honor_certificate-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* 证书文字区域样式 - 根据图片更新 */
.honor_certificate-item h3 {
	font-size: 18px;
	margin: 15px 15px 10px;
	color: #333;
	font-weight: bold;
	transition: color 0.3s ease;
	text-align: center;
}

.honor_certificate-item:hover h3 {
	color: #ff7800;
}

.honor_certificate-number {
	font-size: 14px;
	color: #666;
	margin: 0 15px 5px;
	text-align: center;
}

.honor_certificate-desc {
	font-size: 14px;
	color: #666;
	margin: 0 15px 15px;
	line-height: 1.6;
	text-align: center;
}

/* 分页样式 */
.pagination {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.page-link {
	padding: 8px 12px;
	margin: 0 5px;
	border: 1px solid #ddd;
	color: #666;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.page-link.active {
	background: #ff7800;
	color: #fff;
	border-color: #ff7800;
}

.page-link:hover {
	background: #f5f5f5;
}

.page-link.active:hover {
	background: #ff7800;
}

/* 静态分页样式 */
.pagination-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

/* 静态分页样式 - 匹配图片中的样式 */
.static-pagination {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
}

.static-pagination .page-item {
	margin: 0 5px;
}

.static-pagination .page-link {
	display: block;
	padding: 8px 12px;
	background-color: #fff;
	border: 1px solid #ddd;
	color: #666;
	text-decoration: none;
	border-radius: 0;
	min-width: 40px;
	text-align: center;
	transition: all 0.3s ease;
}

.static-pagination .page-link.active {
	background-color: #f60;
	border-color: #f60;
	color: #fff;
}

.static-pagination .page-link:hover {
	background-color: #f5f5f5;
	border-color: #f60;
	color: #f60;
}

.static-pagination .page-item:first-child .page-link,
.static-pagination .page-item:last-child .page-link {
	padding: 8px 15px;
	white-space: nowrap;
}

/* 移动端分页组件优化 */
@media (max-width: 768px) {
	.pagination-wrapper {
		margin-top: 20px;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 10px 0;
	}

	.pagination {
		display: flex;
		justify-content: center;
		width: max-content;
		margin: 0 auto;
	}

	.pagination .page-item .page-link {
		padding: 10px 12px;
		font-size: 14px;
		min-width: 40px;
		text-align: center;
		margin: 0 2px;
	}

	/* 确保文字在按钮中居中 */
	.pagination .page-item:first-child .page-link,
	.pagination .page-item:last-child .page-link {
		white-space: nowrap;
		padding: 10px 12px;
	}
}

@media (max-width: 480px) {
	.pagination .page-item .page-link {
		padding: 8px 10px;
		font-size: 13px;
		min-width: 36px;
	}
}

/* 响应式调整 */
@media (max-width: 992px) {
	.honor_certificates-grid {
		grid-template-columns: repeat(2, 1fr);
		max-width: 800px; /* 调整中等屏幕的最大宽度 */
	}
}

@media (max-width: 768px) {
	.tab-link {
		padding: 10px 20px;
		font-size: 16px;
	}

	.honor_certificates-grid {
		max-width: 95%; /* 小屏幕下使用百分比宽度 */
	}
}

@media (max-width: 576px) {
	.honor_certificates-grid {
		grid-template-columns: 1fr;
		max-width: 90%; /* 更小屏幕下的宽度 */
	}

	.tab-link {
		padding: 8px 15px;
		font-size: 15px;
	}
}

header {
	background-color: rgba(34, 34, 34, 0.16);
	position: sticky !important;
	top: 0 !important;
	z-index: 1000 !important;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled-past-banner {
	background-color: white !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
	border-bottom: 1px solid #eee !important;
}

header.scrolled-past-banner .menu a {
	color: #333333 !important;
}

header.scrolled-past-banner .language-switch a {
	color: #333333 !important;
}

/* 修复header和footer的高度问�?*/
header .container {
	padding: 15px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	height: 60px;
	display: flex;
	align-items: center;
}

.logo-img-container img {
	height: 40px;
}

@media screen and (max-width: 768px) {
	.logo-img-container img {
		height: 30px;
	}
}

/* 三角形装饰样�?*/
.banner {
	position: relative;
}

.banner-triangle {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	width: 30px;
	height: 30px;
	background-color: #ff6600;
	clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
	z-index: 100;
}
