/* =========================================================
   资质证书页面样式
   ========================================================= */

/* ===== 面包屑导航 ===== */
.breadcrumb {
	background: #f8f9fa;
	padding: 15px 0;
	border-bottom: 1px solid var(--border-color);
}
.breadcrumb .w1 {
	display: flex;
	align-items: center;
	font-size: 0.95rem;
	color: var(--light-text);
}
.breadcrumb a {
	color: var(--light-text);
	transition: color 0.3s ease;
}
.breadcrumb a:hover {
	color: var(--primary-color);
}
.breadcrumb .separator {
	margin: 0 10px;
	color: #ccc;
}
.breadcrumb .current {
	color: var(--primary-color);
	font-weight: 600;
}

/* ===== 主体 ===== */
.honor-container {
	padding: 60px 0;
	min-height: 600px;
	background: #fff;
}

/* 页面标题 */
.page-title {
	text-align: center;
	margin-bottom: 50px;
	position: relative;
	padding-bottom: 20px;
}
.page-title h1 {
	font-size: 2.5rem;
	color: var(--primary-color);
	font-weight: bold;
	margin-bottom: 15px;
}
.page-title .title-line {
	width: 80px;
	height: 4px;
	background: var(--primary-color);
	margin: 0 auto;
	border-radius: 2px;
	position: relative;
}
.page-title .title-line::before,
.page-title .title-line::after {
	content: '';
	position: absolute;
	top: 0;
	width: 20px;
	height: 4px;
	background: var(--accent-color);
	border-radius: 2px;
}
.page-title .title-line::before {
	left: -30px;
}
.page-title .title-line::after {
	right: -30px;
}
.page-subtitle {
	font-size: 1.2rem;
	color: var(--light-text);
	max-width: 1000px;
	margin: 20px auto 0;
	line-height: 1.6;
}

/* ===== 分类筛选 ===== */
.honor-filter {
	margin-bottom: 40px;
	text-align: center;
}
.filter-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	list-style: none;
	padding: 0;
}
.filter-item a {
	display: inline-block;
	padding: 10px 25px;
	background: #f5f7ff;
	color: var(--text-color);
	border-radius: 30px;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border-color);
}
.filter-item a:hover,
.filter-item.active a {
	background: #c52525;
	color: #fff;
	border-color: #c52525;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(197, 37, 37, 0.25);
}

/* ===== 证书网格（4 列） ===== */
.honor-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

/* 证书项 */
.honor-item {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(23, 55, 130, 0.08);
	transition: all 0.4s ease;
	border: 1px solid rgba(23, 55, 130, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.honor-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(23, 55, 130, 0.2);
	border-color: rgba(23, 55, 130, 0.15);
}

/* 证书图片区 */
.honor-image {
	height: 220px;
	overflow: hidden;
	position: relative;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
}
.honor-image a {
	display: block;
	width: 100%;
	height: 100%;
}
.honor-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	transition: transform 0.6s ease;
}
.honor-item:hover .honor-image img {
	transform: scale(1.05);
}

/* 图片放大覆盖层 */
.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(24, 24, 24, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.honor-item:hover .image-overlay {
	opacity: 1;
}
.view-btn {
	background: white;
	color: var(--primary-color);
	padding: 10px 25px;
	border-radius: 30px;
	font-weight: bold;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 8px;
	transform: translateY(20px);
	transition: all 0.3s ease;
	opacity: 0;
}
.honor-item:hover .view-btn {
	transform: translateY(0);
	opacity: 1;
}
.view-btn:hover {
	background: #c52525;
	color: white;
}

/* 证书信息 */
.honor-info {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	border-top: 1px solid var(--border-color);
}
.honor-name {
	font-size: 1.1rem;
	font-weight: bold;
	color: var(--dark-color);
	line-height: 1.4;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
	transition: color 0.3s ease;
}
.honor-name a {
	color: inherit;
	transition: color 0.3s ease;
}
.honor-name a:hover {
	color: var(--primary-color);
}

/* 无数据 */
.no-honor {
	grid-column: 1 / -1;
	text-align: center;
	padding: 80px 20px;
	color: var(--light-text);
}
.no-honor i {
	font-size: 3rem;
	color: #ddd;
	margin-bottom: 20px;
}

/* ===== 图片弹窗 ===== */
.image-modal {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}
.image-modal.active {
	display: flex;
}
.image-modal-inner {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.image-modal-inner img {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	background: #fff;
}
.image-modal-close {
	position: absolute;
	top: -50px;
	right: -10px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	font-size: 26px;
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	user-select: none;
}
.image-modal-close:hover {
	background: #c52525;
	color: #fff;
}

/* ===== 代理品牌页面样式 ===== */
.brand-container {
	padding: 60px 0;
	min-height: 500px;
	background: #fff;
}
.brand-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
	margin-top: 20px;
}
.brand-item {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(23, 55, 130, 0.07);
	border: 1px solid rgba(23, 55, 130, 0.06);
	transition: all 0.4s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	padding: 20px;
}
.brand-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(23, 55, 130, 0.14);
	border-color: rgba(23, 55, 130, 0.15);
}
.brand-logo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.brand-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}
.brand-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(0%);
	transition: all 0.4s ease;
}
.brand-item:hover .brand-logo img {
	transform: scale(1.06);
}

/* =========================================================
   响应式
   ========================================================= */

/* 1200px 以下：3 列 */
@media (max-width: 1200px) {
	.honor-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 25px;
	}
}

/* 992px 以下：2 列 */
@media (max-width: 992px) {
	.honor-container {
		padding: 40px 0;
	}
	.page-title h1 {
		font-size: 2rem;
	}
	.page-subtitle {
		font-size: 1.1rem;
	}
	.honor-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.honor-image {
		height: 200px;
	}

	.brand-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
	.brand-item {
		height: 100px;
		padding: 16px;
	}
}

/* 768px 以下：2 列 */
@media (max-width: 768px) {
	.page-title h1 {
		font-size: 1.6rem;
	}
	.filter-list {
		gap: 10px;
	}
	.filter-item a {
		padding: 8px 20px;
		font-size: 0.9rem;
	}
	.honor-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	.honor-image {
		height: 180px;
	}
	.honor-info {
		padding: 15px;
		min-height: 60px;
	}
	.honor-name {
		font-size: 1rem;
	}

	/* 弹窗 */
	.image-modal {
		padding: 20px;
	}
	.image-modal-close {
		top: -44px;
		right: 0;
		width: 36px;
		height: 36px;
		line-height: 36px;
		font-size: 22px;
	}

	.brand-container {
		padding: 40px 0;
	}
	.brand-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.brand-item {
		height: 90px;
		padding: 12px;
	}
}

/* 576px 以下：1 行 2 列 */
@media (max-width: 576px) {
	.honor-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		max-width: 100%;
		margin: 0 0 30px;
	}
	.honor-image {
		height: 140px;
	}
	.honor-image img {
		padding: 10px;
	}
	.honor-info {
		padding: 10px;
		min-height: 50px;
	}
	.honor-name {
		font-size: 0.85rem;
	}

	.filter-list {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
	.filter-item {
		width: auto;
		max-width: none;
	}
	.filter-item a {
		display: inline-block;
		width: auto;
		text-align: center;
		padding: 8px 16px;
		font-size: 0.85rem;
	}
}

/* 480px 以下：1 行 2 列 */
@media (max-width: 480px) {
	.page-title h1 {
		font-size: 1.4rem;
	}
	.page-subtitle {
		font-size: 1rem;
	}
	.honor-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.honor-image {
		height: 120px;
	}
	.honor-image img {
		padding: 8px;
	}
	.honor-info {
		padding: 8px;
		min-height: 46px;
	}
	.honor-name {
		font-size: 0.8rem;
	}

	.brand-grid {
		grid-template-columns: 1fr;
		max-width: 280px;
		margin: 0 auto;
	}
	.brand-item {
		height: 80px;
		padding: 10px;
	}
}