/* 产品中心主要内容 */
.products-container {
	padding: 60px 0 60px 0;
	min-height: 600px;
}

.products-content {
	display: flex;
	gap: 40px;
	margin-top: 0px;
}

/* 左侧分类导航 - 数据库读取样式 */
.products-category {
	flex: 0 0 250px;
	background: white;
	border-radius: 12px;
	box-shadow: var(--card-shadow);
	padding: 25px;
	height: fit-content;
	border-top: 5px solid var(--primary-color);
}

.products-category-title {
	font-size: 1.5rem;
	color: var(--primary-color);
	font-weight: bold;
	padding-bottom: 20px;
	margin-bottom: 25px;
	border-bottom: 2px solid var(--light-color);
	display: flex;
	align-items: center;
}

/* 通用分类图标 */
.products-category-title i {
	margin-right: 12px;
	background: var(--primary-color);
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.category-list {
	list-style: none;
}

.category-item {
	margin-bottom: 12px;
}

/* 通用分类链接样式 - 适用于数据库读取的分类 */
.category-item a {
	display: flex;
	align-items: center;
	padding: 14px 18px;
	font-size: 1.1rem;
	color: var(--text-color);
	border-radius: 8px;
	transition: all 0.3s ease;
	background: #f8f9fa;
	border-left: 4px solid transparent;
}

/* 通用分类图标（可以统一使用同一个图标） */
.category-item a::before {
	content: '\f0da'; /* FontAwesome的右箭头图标 */
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	margin-right: 12px;
	color: var(--primary-color);
	transition: all 0.3s ease;
	width: 18px;
	text-align: center;
}

.category-item a:hover,
.category-item.active a {
	background-color: var(--light-color);
	color: var(--primary-color);
	border-left-color: var(--primary-color);
	box-shadow: 0 3px 12px rgba(23, 55, 130, 0.15);
}

.category-item.active a::before {
	transform: rotate(90deg);
	color: var(--primary-color);
}

/* 右侧产品列表 - 3行3列 */
.products-list {
	flex: 1;
}

.products-list-title {
	font-size: 1.8rem;
	color: var(--primary-color);
	font-weight: bold;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 3px solid var(--light-color);
	display: flex;
	align-items: center;
}

.products-list-title i {
	margin-right: 12px;
	background: var(--primary-color);
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 产品网格布局 */
.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* 产品卡片 - 简化版（只保留图片+标题） */
.product-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: all 0.4s ease;
	border: 1px solid rgba(23, 55, 130, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--card-hover-shadow);
	border-color: rgba(23, 55, 130, 0.15);
}

/* 产品图片区域 */
.product-image {
	height: 220px;
	overflow: hidden;
	position: relative;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
	transform: scale(1.08);
}

/* 产品图片遮罩层 */
.product-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent 60%, rgba(23, 55, 130, 0.7));
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 20px;
}

.product-card:hover .product-overlay {
	opacity: 1;
}

.product-view-btn {
	background: white;
	color: var(--primary-color);
	padding: 8px 20px;
	border-radius: 30px;
	font-weight: bold;
	font-size: 0.9rem;
	transform: translateY(20px);
	transition: all 0.3s ease;
	opacity: 0;
}

.product-card:hover .product-view-btn {
	transform: translateY(0);
	opacity: 1;
}

/* 产品信息区域 - 简化版（只保留名称） */
.product-info {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70px;
}

.product-name {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--dark-color);
	line-height: 1.4;
	transition: all 0.3s ease;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
}

.product-name:hover {
	color: var(--primary-color);
}

/* 无产品提示 */
.no-products {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: var(--light-text);
}

.no-products i {
	font-size: 3rem;
	color: #ddd;
	margin-bottom: 20px;
}

/* 分页器 */


/* ==================== 移动端分类菜单 ==================== */

/* 移动端分类筛选器 */
.category-filter-mobile {
	display: none;
	margin:20px auto;
	width: 94%;
}

.category-filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	border-radius: 10px;
	padding: 15px 20px;
	box-shadow: 0 3px 15px rgba(23, 55, 130, 0.1);
	border: 1px solid var(--border-color);
}

.category-filter-title {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--primary-color);
	display: flex;
	align-items: center;
}

.category-filter-title i {
	margin-right: 10px;
	color: var(--primary-color);
}

.category-toggle-btn {
	background: var(--light-color);
	color: var(--primary-color);
	border: none;
	border-radius: 6px;
	padding: 8px 15px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
}

.category-toggle-btn:hover {
	background: var(--primary-color);
	color: white;
}

.category-toggle-btn i {
	margin-left: 8px;
	transition: transform 0.3s ease;
}

.category-toggle-btn.active i {
	transform: rotate(180deg);
}

/* 移动端分类菜单遮罩层 */
.category-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.category-overlay.active {
	display: block;
	opacity: 1;
}

/* 移动端分类菜单 */
.category-menu-mobile {
	position: fixed;
	top: 0;
	left: -280px;
	width: 280px;
	height: 100%;
	background-color: white;
	z-index: 999;
	box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
	transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.category-menu-mobile.active {
	left: 0;
}

.category-menu-header {
	padding: 20px;
	border-bottom: 1px solid var(--border-color);
	background: var(--primary-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.category-menu-header .title {
	font-size: 1.3rem;
	font-weight: bold;
	color: white;
	display: flex;
	align-items: center;
}

.category-menu-header .title i {
	margin-right: 10px;
}

.close-category-menu {
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.close-category-menu:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

/* 移动端分类列表 */
.category-menu-content {
	flex: 1;
	padding: 20px 0;
	overflow-y: auto;
}

.category-menu-list {
	list-style: none;
	padding: 0 20px;
}

.category-menu-item {
	margin-bottom: 10px;
}

.category-menu-item a {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	font-size: 1.1rem;
	color: var(--text-color);
	border-radius: 8px;
	transition: all 0.3s ease;
	background: #f8f9fa;
	border-left: 4px solid transparent;
}

.category-menu-item a::before {
	content: '\f0da';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	margin-right: 12px;
	color: var(--primary-color);
	transition: all 0.3s ease;
	width: 18px;
	text-align: center;
}

.category-menu-item.active a,
.category-menu-item a:hover {
	background-color: var(--light-color);
	color: var(--primary-color);
	border-left-color: var(--primary-color);
}

.category-menu-item.active a::before {
	transform: rotate(90deg);
	color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.products-banner {
		height: 300px;
	}

	.products-banner .banner-title {
		font-size: 2.5rem;
	}

	.products-content {
		gap: 30px;
	}

	.products-grid {
		gap: 25px;
	}

	.product-image {
		height: 200px;
	}
}

@media (max-width: 992px) {
	/* Banner响应式 */
	.products-banner {
		height: 250px;
	}

	.products-banner .banner-title {
		font-size: 2.2rem;
	}

	.banner-subtitle {
		font-size: 1rem;
		margin-top: 15px;
	}

	/* 内容响应式 */
	.products-container {
		padding: 10px 0 40px 0;
	}

	.products-content {
		flex-direction: column;
		gap: 20px;
	}

	/* 隐藏PC端分类，显示移动端分类筛选器 */
	.products-category {
		display: none;
	}

	.category-filter-mobile {
		display: block;
	}

	/* 产品网格改为2列 */
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.product-image {
		height: 180px;
	}

	.products-list-title {
		margin-bottom: 20px;
	}
}

@media (max-width: 768px) {
	.products-banner {
		height: 200px;
	}

	.products-banner .banner-title {
		font-size: 1.8rem;
	}

	.banner-subtitle {
		font-size: 0.9rem;
		margin-top: 10px;
	}

	.products-category-title,
	.products-list-title {
		font-size: 1.4rem;
	}

	.products-list-title i {
		width: 36px;
		height: 36px;
		font-size: 0.9rem;
	}

	/* 产品网格改为1列 */
	.products-grid {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin: 0 auto;
		gap: 15px;
	}

	.product-image {
		height: 220px;
	}

	.product-name {
		font-size: 1.1rem;
	}

	/* 移动端分类菜单调整 */
	.category-menu-mobile {
		width: 260px;
		left: -260px;
	}
}

@media (max-width: 480px) {
	.products-banner {
		height: 180px;
	}

	.products-banner .banner-title {
		font-size: 1.6rem;
	}

	.banner-subtitle {
		display: none;
	}

	.product-image {
		height: 200px;
	}

	.product-name {
		font-size: 1rem;
		padding: 15px;
	}

	.category-filter-header {
		padding: 12px 15px;
	}

	.category-filter-title {
		font-size: 1.1rem;
	}

	.category-toggle-btn {
		padding: 7px 12px;
		font-size: 0.9rem;
	}

	.category-menu-mobile {
		width: 240px;
		left: -240px;
	}

	.category-menu-item a {
		padding: 14px 18px;
		font-size: 1rem;
	}

	.pagination-item a {
		min-width: 38px;
		height: 38px;
		line-height: 38px;
		font-size: 0.9rem;
		padding: 0 10px;
	}
}

@media (max-width: 360px) {
	.products-banner .banner-title {
		font-size: 1.4rem;
	}

	.product-image {
		height: 180px;
	}

	.category-menu-mobile {
		width: 220px;
		left: -220px;
	}
}