
	/* ===== 产品中心 - 左侧分类 + 右侧产品列表 ===== */
.product-main {
	display: flex;
	gap: 30px;
	padding: 30px 0 60px 0;
}

/* ===== 左侧分类导航 ===== */
.product-sidebar {
	flex: 0 0 240px;
	background: #f8f9fa;
	border-radius: 8px;
	padding: 0 0 12px 0;
	border: 1px solid #e8e8e8;
	overflow: hidden;
	height: fit-content;
}

.product-sidebar .sidebar-title {
	background: #c52525;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	padding: 16px 20px;
	margin: 0;
	text-align: center;
	letter-spacing: 2px;
}

.product-sidebar .sidebar-title i {
	margin-right: 8px;
}

/* 移动端切换按钮 */
.sidebar-toggle {
	display: none;
	width: 100%;
	padding: 14px 16px;
	background: #c52525;
	color: #fff;
	border: none;
	border-radius: 6px 6px 0 0;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	text-align: left;
	outline: none;
}
.sidebar-toggle i {
	margin-right: 8px;
}
.sidebar-toggle .toggle-arrow {
	float: right;
	transition: transform 0.3s ease;
}
.sidebar-toggle .toggle-arrow.open {
	transform: rotate(180deg);
}

/* 一级分类 */
.product-sidebar .cat-level-1 {
	border-bottom: 1px solid #eee;
}
.product-sidebar .cat-level-1:last-child {
	border-bottom: none;
}

.product-sidebar .cat-level-1 > a {
	display: block;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	transition: all 0.3s ease;
	position: relative;
	cursor: pointer;
	user-select: none;
	text-decoration: none;
}

.product-sidebar .cat-level-1 > a:hover {
	background: #f0f0f0;
	color: #c52525;
}

.product-sidebar .cat-level-1 > a.current {
	background: #c52525;
	color: #fff;
}

/* 箭头图标 */
.product-sidebar .cat-level-1 > a .cat-arrow {
	float: right;
	display: inline-block;
	transition: transform 0.3s ease;
	font-size: 14px;
	line-height: 1.4;
	transform-origin: center center;
	margin-top: 4px;
}

.product-sidebar .cat-level-1 > a .cat-arrow.open {
	transform: rotate(90deg);
}

/* 二级分类 */
.product-sidebar .cat-level-2 {
	background: #fff;
	display: none;
}

.product-sidebar .cat-level-2.open {
	display: block;
}

.product-sidebar .cat-level-2 a {
	display: block;
	padding: 10px 20px 10px 36px;
	font-size: 14px;
	color: #666;
	transition: all 0.3s ease;
	border-top: 1px solid #f5f5f5;
	position: relative;
	cursor: pointer;
	text-decoration: none;
}

.product-sidebar .cat-level-2 a::before {
	content: "▸";
	position: absolute;
	left: 18px;
	color: #ccc;
	transition: color 0.3s ease;
}

.product-sidebar .cat-level-2 a:hover {
	background: #f8f8f8;
	color: #c52525;
	padding-left: 42px;
}

.product-sidebar .cat-level-2 a:hover::before {
	color: #c52525;
}

.product-sidebar .cat-level-2 a.current {
	background: #f0f4ff;
	color: #c52525;
	font-weight: 600;
}

.product-sidebar .cat-level-2 a.current::before {
	color: #c52525;
}

/* ===== 右侧产品列表 ===== */
.product-content {
	flex: 1;
	min-width: 0;
}

.product-content .current-cat-title {
	font-size: 22px;
	font-weight: 700;
	color: #003366;
	margin: 0 0 16px 0;
	padding-bottom: 12px;
	border-bottom: 3px solid #c52525;
	display: inline-block;
}

.product-content .current-cat-desc {
	font-size: 14px;
	color: #999;
	margin: 12px 0 24px 0;
	line-height: 1.8;
}

/* 产品网格 */
.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.product-item {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.product-item:hover {
	border-color: #c52525;
	box-shadow: 0 8px 30px rgba(197,37,37,0.10);
	transform: translateY(-4px);
}

/* 产品图片 - 2:1 比例 */
.product-item .product-img {
	width: 100%;
	padding-bottom: 50%;
	background-size: contain !important;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #fafafa;
	transition: transform 0.5s ease;
	display: block;
}

.product-item:hover .product-img {
	transform: scale(1.03);
}

.product-item .product-title {
	padding: 14px 14px 18px 14px;
	text-align: center;
}

.product-item .product-title a {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	line-height: 1.5;
}

.product-item .product-title a:hover {
	color: #c52525;
}

/* ===== 分页 ===== */
.product-pagination {
	text-align: center;
	margin-top: 36px;
}
.product-pagination .pagination li {
	display: inline-block;
	margin: 0 3px;
}
.product-pagination .pagination li a {
	display: block;
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #666;
	background: #fff;
	transition: all 0.2s;
}
.product-pagination .pagination li a:hover,
.product-pagination .pagination li.active a {
	background: #c52525;
	color: #fff;
	border-color: #c52525;
}

.norecord {
	text-align: center;
	padding: 60px 0;
	color: #999;
	font-size: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
	.product-sidebar {
		flex: 0 0 200px;
	}
}

@media (max-width: 760px) {
	.product-main {
		flex-direction: column;
		padding: 16px 12px 40px 12px;
		gap: 0;
	}

	.sidebar-toggle {
		display: block;
		border-radius: 6px 6px 0 0;
	}

	.product-sidebar {
		flex: none;
		width: 100%;
		border-radius: 6px;
		overflow: hidden;
		border: 1px solid #e8e8e8;
		padding-bottom: 0;
	}

	/* PC端标题在移动端隐藏，用按钮代替 */
	.product-sidebar .sidebar-title {
		display: none;
	}

	/* 分类列表默认收起 */
	.product-sidebar .cat-level-1 {
		display: none;
	}
	.product-sidebar.open .cat-level-1 {
		display: block;
	}

	.product-sidebar .cat-level-1 > a {
		padding: 12px 16px;
		font-size: 14px;
	}
	.product-sidebar .cat-level-2 a {
		padding: 8px 16px 8px 32px;
		font-size: 13px;
	}
	.product-sidebar .cat-level-2 a::before {
		left: 14px;
	}

	.product-content {
		padding-top: 20px;
	}
	.product-content .current-cat-title {
		font-size: 18px;
	}

	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.product-item .product-img {
		padding-bottom: 50%;
	}

	.product-item .product-title a {
		font-size: 13px;
	}
	.product-item .product-title {
		padding: 10px 10px 14px 10px;
	}
}

@media (max-width: 480px) {
	.product-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}
