/* ===== 产品中心 - 左侧分类 + 右侧产品列表 ===== */
.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-table-wrapper {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 30px;
}

.product-data-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	background: #fff;
}

.product-data-table th {
	background-color: #003366; /* 深蓝色表头 */
	color: #fff;
	padding: 16px 20px;
	font-weight: bold;
	font-size: 15px;
	border: 1px solid #003366;
	text-align: center;
}

.product-data-table td {
	padding: 18px 20px;
	border: 1px solid #e0e0e0;
	font-size: 14px;
	color: #333;
	vertical-align: middle;
	line-height: 1.6;
}

/* 产品名称列文字加粗微调 */
.product-data-table td.td-title {
	font-weight: 500;
	color: #111;
}

/* 性能描述列，字数较多，调小一点行高 */
.product-data-table td.td-desc {
	font-size: 13px;
	color: #555;
}

/* 详情按钮 */
.detail-btn {
	display: inline-block;
	padding: 6px 14px;
	color: #1a73e8;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.3s;
	white-space: nowrap;
}

.detail-btn:hover {
	color: #c52525;
	text-decoration: underline;
}

/* 斑马纹和悬停效果 */
.product-data-table tbody tr:nth-child(even) {
	background-color: #f9fbfd;
}

.product-data-table tbody tr:hover {
	background-color: #f0f4f8;
}

/* ===== 分页 ===== */
.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-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-data-table,
	.product-data-table thead,
	.product-data-table tbody,
	.product-data-table th,
	.product-data-table td,
	.product-data-table tr {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	/* 隐藏表头 */
	.product-data-table thead {
		display: none;
	}

	.product-data-table tr {
		margin-bottom: 20px;
		border: 1px solid #eee;
		border-radius: 6px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.03);
		background: #fff !important;
		padding: 15px;
		position: relative;
	}

	.product-data-table td {
		padding: 8px 0;
		border: none;
		border-bottom: 1px dashed #f0f0f0;
		text-align: left;
	}

	.product-data-table td:last-child {
		border-bottom: none;
		margin-top: 10px;
		padding-bottom: 0;
	}

	/* 给每个数据加上对应的标签前缀 */
	.product-data-table td.td-title {
		font-size: 16px;
		color: #003366;
		font-weight: bold;
		border-bottom: 1px solid #eee;
		padding-bottom: 12px;
		margin-bottom: 10px;
	}

	.product-data-table td:nth-child(2)::before {
		content: "INCI名：";
		font-weight: bold;
		color: #888;
		display: inline-block;
		width: 70px;
	}

	.product-data-table td:nth-child(3)::before {
		content: "CAS号：";
		font-weight: bold;
		color: #888;
		display: inline-block;
		width: 70px;
	}

	.product-data-table td:nth-child(4)::before {
		content: "性能：";
		font-weight: bold;
		color: #888;
		display: block;
		width: 100%;
		margin-bottom: 5px;
	}

	.product-data-table td.td-desc {
		font-size: 13px;
		color: #555;
		padding-bottom: 15px;
	}

	.detail-btn {
		display: block;
		text-align: center;
		background: #003366;
		color: #fff;
		border-radius: 4px;
		padding: 10px 0;
	}

	.detail-btn:hover {
		background: #c52525;
		text-decoration: none;
		color: #fff;
	}
}

/* ===== 分类标题栏 + 搜索 ===== */
.cat-title-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 3px solid #c52525;
	flex-wrap: wrap;
	gap: 12px;
}

.cat-title-bar .current-cat-title {
	margin: 0;
	padding-bottom: 0;
	border-bottom: none;
	display: inline-block;
}

/* 标题栏搜索框 */
.cat-search-form {
	flex-shrink: 0;
}

.cat-search-box {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.3s ease;
	width: 260px;
}

.cat-search-box:focus-within {
	border-color: #c52525;
}

.cat-search-box input {
	flex: 1;
	border: none;
	outline: none;
	padding: 8px 12px;
	font-size: 13px;
	color: #333;
	background: transparent;
}

.cat-search-box input::placeholder {
	color: #bbb;
}

.cat-search-box button {
	border: none;
	background: #c52525;
	color: #fff;
	padding: 8px 12px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.cat-search-box button:hover {
	background: #a01e1e;
}

/* 移动端适配 */
@media (max-width: 760px) {
	.cat-title-bar {
		flex-direction: column;
		align-items: flex-start;
	}
	.cat-search-box {
		width: 100%;
	}
}