/* products.css — 对齐静态页 ELSKY2/产品.html */

.site-archive-products {
	background: #fff;
}

.products-page {
	padding: 40px 0 80px;
	color: #1a1a2e;
	font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
	line-height: 1.6;
}

.products-page a {
	text-decoration: none;
	color: inherit;
}

.products-page img {
	display: block;
	max-width: 100%;
}

.products-page .container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 80px;
	box-sizing: border-box;
}

/* 一级分类筛选条 */
.products-page .filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e0e4ea;
	align-items: center;
}

.products-page .filter-bar .filter-label {
	font-weight: 600;
	color: #1a1a2e;
	font-size: 15px;
	margin-right: 8px;
}

.products-page .filter-bar .filter-label i {
	margin-right: 6px;
	color: #0a6e6e;
}

.products-page .filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 20px;
	border-radius: 30px;
	background: #f0f4f5;
	border: 1.5px solid transparent;
	color: #666;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: all 0.25s;
	box-sizing: border-box;
	cursor: pointer;
}

.products-page .filter-btn:hover {
	border-color: #0a6e6e;
	color: #0a6e6e;
}

.products-page .filter-btn.active {
	background: linear-gradient(135deg, #0a6e6e, #0a0e27);
	color: #fff;
	border-color: #0a6e6e;
	box-shadow: 0 4px 14px rgba(10, 110, 110, 0.25);
}

/* 二级类目导航 */
.products-page .sub-category-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 32px;
	padding: 12px 16px;
	background: #f7f8fc;
	border-radius: 16px;
	border: 1px solid #e0e4ea;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	align-items: center;
}

.products-page .sub-category-bar .sub-label {
	font-size: 13px;
	font-weight: 600;
	color: #8888aa;
	margin-right: 6px;
	letter-spacing: 0.5px;
}

.products-page .sub-category-bar .sub-label i {
	margin-right: 4px;
}

.products-page .sub-category-bar .sub-item {
	display: inline-flex;
	align-items: center;
	padding: 4px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #666;
	background: #ffffff;
	border: 1px solid transparent;
	text-decoration: none;
	transition: all 0.2s;
	white-space: nowrap;
	box-sizing: border-box;
}

.products-page .sub-category-bar .sub-item:hover {
	border-color: #0a6e6e;
	color: #0a6e6e;
	background: #f0faf8;
}

.products-page .sub-category-bar .sub-item.active {
	background: #0a6e6e;
	color: #fff;
	border-color: #0a6e6e;
	box-shadow: 0 2px 8px rgba(10, 110, 110, 0.2);
}

/* 产品网格 (3列) */
.products-page .product-list-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 39px;
}

.products-page .product-list-empty {
	text-align: center;
	padding: 60px 0;
	color: #8888aa;
	font-size: 16px;
}

.products-page .product-card {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid #e8eaf0;
	transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: default;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
}

.products-page .product-card:hover {
	transform: translateY(-8px) scale(1.01);
	box-shadow: 0 30px 70px rgba(10, 110, 110, 0.12);
	border-color: rgba(10, 110, 110, 0.25);
}

.products-page .product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	background: #f7f8fc;
	overflow: hidden;
}

.products-page .product-card img,
.products-page .product-card__placeholder {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	background: #fff;
	display: block;
}

.products-page .product-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 0;
	background: linear-gradient(135deg, #eef2f4 0%, #e2e8ec 100%);
}

.products-page .product-card-body {
	padding: 22px 26px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
	background: #f7f8fc;
	border-top: 1px solid #e0e4ea;
}

.products-page .product-tag {
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 16px;
	border-radius: 30px;
	background: rgba(10, 110, 110, 0.08);
	color: #0a6e6e;
	margin-bottom: 10px;
}

.products-page .product-name {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 6px;
	line-height: 1.4;
	text-decoration: none;
}

.products-page .product-name:hover {
	color: #0a6e6e;
}

.products-page .product-sku {
	font-size: 13px;
	color: #aaaacc;
	margin-bottom: 10px;
}

.products-page .product-desc {
	font-size: 14px;
	color: #666666;
	line-height: 1.6;
	margin-bottom: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.products-page .product-meta {
	font-size: 13px;
	color: #8888aa;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
	align-items: center;
}

.products-page .product-meta i {
	margin-right: 4px;
	color: #0a6e6e;
}

.products-page .product-link {
	display: inline-block;
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
	color: #0a6e6e;
	text-decoration: none;
	transition: all 0.3s;
}

.products-page .product-link:hover,
.products-page .product-card:hover .product-link {
	transform: translateX(6px);
}

/* 分页：居中，40×40，默认 #e0e4ea，当前 #0a6e6e */
.products-page .pagination,
.products-page .navigation.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 52px;
	padding: 0;
}

.products-page .pagination .page-numbers,
.products-page .navigation.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.products-page .pagination .page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.products-page .pagination .page-numbers a,
.products-page .pagination .page-numbers span,
.products-page .navigation.pagination .page-numbers {
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	border: 0;
	background: #e0e4ea;
	color: #1a1a2e;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

.products-page .pagination .page-numbers a:hover,
.products-page .pagination .page-numbers a:focus {
	background: #d4d9e0;
	color: #0a6e6e;
}

.products-page .pagination .page-numbers .current {
	background: #0a6e6e;
	color: #fff;
}

.products-page .pagination .page-numbers .prev,
.products-page .pagination .page-numbers .next {
	width: 40px;
	min-width: 40px;
	background: transparent;
	border: 0;
	font-size: 20px;
	letter-spacing: 0;
	text-transform: none;
	color: #666;
	padding: 0;
}

.products-page .pagination .page-numbers .prev:hover,
.products-page .pagination .page-numbers .next:hover {
	background: transparent;
	color: #0a6e6e;
}

.products-page .pagination .page-numbers .dots {
	background: #e0e4ea;
	color: #1a1a2e;
	pointer-events: none;
}

@media (max-width: 1200px) {
	.products-page .container {
		padding: 0 40px;
	}

	.products-page .product-list-grid {
		gap: 24px;
	}
}

@media (max-width: 992px) {
	.products-page .product-list-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.products-page {
		padding: 28px 0 48px;
	}

	.products-page .container {
		padding: 0 20px;
	}

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

	.products-page .product-card-body {
		padding: 12px 12px 14px;
	}

	.products-page .product-name {
		font-size: 14px;
		margin-bottom: 4px;
	}

	.products-page .product-tag {
		font-size: 11px;
		padding: 2px 10px;
		margin-bottom: 6px;
	}

	.products-page .product-sku,
	.products-page .product-desc,
	.products-page .product-meta {
		font-size: 12px;
		margin-bottom: 6px;
	}

	.products-page .product-link {
		font-size: 12px;
	}

	.products-page .filter-bar {
		gap: 8px;
	}

	.products-page .sub-category-bar {
		gap: 6px 10px;
		padding: 10px 12px;
		margin-bottom: 24px;
	}

	.products-page .sub-category-bar .sub-item {
		font-size: 12px;
		padding: 3px 12px;
	}
}

@media (max-width: 480px) {
	.products-page .filter-btn {
		padding: 5px 14px;
		font-size: 13px;
	}
}
