/* =========================================================================
 * HNY Products Showcase — 样式（参照 huanuo yonghui 产品页风格）
 * 主色：绿 #1f9d55 / 深墨绿 #157347；卡片白底灰边，hover 投影
 * ========================================================================= */

:root {
	--hny-green: #1f9d55;
	--hny-green-dark: #157347;
	--hny-border: #e5e7eb;
	--hny-text: #222;
	--hny-muted: #666;
}

/* ---------- 整体布局 ---------- */
.hny-products-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 60px;
}

.hny-products-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 768px) {
	.hny-products-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- 左侧分类边栏 ---------- */
.hny-sidebar {
	border: 1px solid var(--hny-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.hny-sidebar-head {
	background: var(--hny-green);
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .5px;
	padding: 14px 18px;
}

.hny-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hny-sidebar-list li + li {
	border-top: 1px solid var(--hny-border);
}

.hny-sidebar-list a {
	display: block;
	padding: 12px 18px;
	color: var(--hny-text);
	text-decoration: none;
	font-size: 15px;
	transition: background .15s ease, color .15s ease;
}

.hny-sidebar-list a:hover,
.hny-sidebar-list .current-cat a {
	background: #f0faf4;
	color: var(--hny-green-dark);
	font-weight: 600;
}

/* ---------- 面包屑 ---------- */
.hny-breadcrumb {
	font-size: 14px;
	color: var(--hny-muted);
	margin-bottom: 14px;
}

.hny-breadcrumb a {
	color: var(--hny-muted);
	text-decoration: none;
}

.hny-breadcrumb a:hover {
	color: var(--hny-green);
}

.hny-bc-home {
	margin-right: 2px;
}

/* ---------- 搜索框 ---------- */
.hny-search {
	display: flex;
	border: 1px solid var(--hny-border);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 22px;
	background: #fff;
}

.hny-search input {
	flex: 1;
	border: 0;
	outline: none;
	padding: 11px 14px;
	font-size: 14px;
}

.hny-search button {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0 14px;
	font-size: 16px;
	color: var(--hny-muted);
}

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

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

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

.hny-card {
	display: block;
	background: #fff;
	border: 1px solid var(--hny-border);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}

.hny-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.hny-card-img {
	aspect-ratio: 1 / 1;
	background: linear-gradient(160deg, #f3f4f6 0%, #d1d5db 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hny-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hny-card-noimg {
	color: #9ca3af;
	font-size: 14px;
}

.hny-card-title {
	padding: 12px 14px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--hny-text);
}

.hny-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--hny-muted);
	padding: 40px 0;
}

/* ---------- 分页 ---------- */
.hny-pagination {
	margin-top: 28px;
	text-align: center;
}

.hny-pagination .page-numbers {
	display: inline-block;
	min-width: 36px;
	padding: 7px 10px;
	margin: 0 3px;
	border: 1px solid var(--hny-border);
	border-radius: 4px;
	color: var(--hny-text);
	text-decoration: none;
	background: #fff;
}

.hny-pagination .page-numbers.current,
.hny-pagination .page-numbers:hover {
	background: var(--hny-green);
	border-color: var(--hny-green);
	color: #fff;
}

/* ---------- 详情页 ---------- */
.hny-single-main {
	min-width: 0;
}

.hny-single-title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--hny-text);
}

.hny-single-top {
	display: grid;
	grid-template-columns: minmax(260px, 420px) 1fr;
	gap: 28px;
	margin-bottom: 32px;
}

@media (max-width: 768px) {
	.hny-single-top { grid-template-columns: 1fr; }
}

.hny-single-img {
	border: 1px solid var(--hny-border);
	border-radius: 6px;
	background: linear-gradient(160deg, #f3f4f6 0%, #d1d5db 100%);
	overflow: hidden;
}

.hny-single-img img {
	width: 100%;
	height: auto;
	display: block;
}

.hny-single-excerpt {
	color: var(--hny-muted);
	line-height: 1.8;
	font-size: 15px;
	margin: 0 0 16px;
}

.hny-quick-specs,
.hny-details-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
}

.hny-quick-specs th,
.hny-quick-specs td,
.hny-details-table th,
.hny-details-table td {
	border: 1px solid var(--hny-border);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}

.hny-quick-specs th,
.hny-details-table th {
	width: 180px;
	background: #f9fafb;
	color: var(--hny-text);
	font-weight: 600;
	white-space: nowrap;
}

.hny-details-table {
	margin: 8px 0 28px;
}

.hny-details-table h3 {
	font-size: 18px;
	margin: 0 0 12px;
	padding-left: 10px;
	border-left: 4px solid var(--hny-green);
	color: var(--hny-text);
}

.hny-single-content {
	line-height: 1.9;
	color: #333;
	font-size: 15px;
}
