/**
 * 产品中心 / 详情页 — 除冰雪主推视觉
 */
:root {
	--hcn-snow-deep: #0a2d4a;
	--hcn-snow-mid: #1a5f8a;
	--hcn-snow-light: #e8f4fc;
	--hcn-snow-ice: #b8dff5;
	--hcn-snow-accent: #00a8e8;
	--hcn-snow-warm: #f59e0b;
	--hcn-snow-card-shadow: 0 8px 32px rgba(10, 45, 74, 0.12);
}

/* ========== 产品页全宽布局 ========== */
.hcn-store-archive,
.hcn-store-single {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.hcn-store-main,
.hcn-pd-main {
	width: 88%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding: 2.5rem 0 4rem;
	box-sizing: border-box;
}

/* ========== 产品中心通栏页头 ========== */
.hcn-page-hero {
	position: relative;
	width: 100%;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.hcn-page-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	opacity: 0.4;
}

.hcn-page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(120deg, #061e35 35%, rgba(14, 116, 178, 0.88) 100%);
}

.hcn-page-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem;
	box-sizing: border-box;
}

.hcn-page-hero__title {
	margin: 0.5rem 0;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.25;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	color: #fff;
}

.hcn-page-hero__sub {
	max-width: 640px;
	margin: 0.75rem auto 0;
	line-height: 1.75;
	opacity: 0.95;
	color: #fff;
}

.hcn-products-banner .hcn-banner-badge,
.hcn-page-hero .hcn-banner-badge {
	display: inline-block;
	background: linear-gradient(90deg, var(--hcn-snow-accent), #38bdf8);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 0.35rem 1rem;
	border-radius: 50px;
	margin: 0 0 1rem;
	letter-spacing: 0.05em;
}

.hcn-products-archive {
	background: linear-gradient(180deg, #f8fbfd 0%, #fff 120px);
}

/* 产品中心简介 */
.hcn-products-intro {
	background: linear-gradient(135deg, #fff 0%, var(--hcn-snow-light) 100%);
	border: 1px solid #cce7f5;
	border-radius: 16px;
	padding: 0;
	margin-bottom: 2.5rem;
	box-shadow: 0 4px 24px rgba(10, 45, 74, 0.08);
	overflow: hidden;
}

.hcn-products-intro-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
	align-items: stretch;
}

.hcn-products-intro-main {
	padding: 1.75rem 2rem;
	border-right: 1px solid #d6ebf7;
}

.hcn-intro-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hcn-snow-accent);
	background: #fff;
	border: 1px solid #b8dff5;
	padding: 0.25rem 0.65rem;
	border-radius: 4px;
	margin-bottom: 0.85rem;
}

.hcn-products-intro-lead {
	margin: 0 0 0.75rem;
	font-size: 17px;
	line-height: 1.75;
	color: var(--hcn-snow-deep);
	font-weight: 500;
}

.hcn-products-intro-lead strong {
	color: var(--hcn-snow-accent);
	font-weight: 800;
}

.hcn-products-intro-sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #64748b;
}

.hcn-products-intro-types {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	padding: 1.5rem 1.5rem 1.5rem 1.25rem;
	align-content: center;
	background: rgba(255, 255, 255, 0.55);
}

.hcn-intro-type-item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	background: #fff;
	border: 1px solid #d0e8f5;
	border-radius: 10px;
	padding: 0.65rem 0.85rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.hcn-intro-type-item:hover {
	border-color: var(--hcn-snow-accent);
	box-shadow: 0 4px 12px rgba(0, 168, 232, 0.12);
}

.hcn-intro-type-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, var(--hcn-snow-deep), var(--hcn-snow-mid));
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	border-radius: 8px;
}

.hcn-intro-type-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--hcn-snow-deep);
	line-height: 1.3;
}

.hcn-product-list-section {
	scroll-margin-top: 100px;
}

/* ========== 精选推荐 ========== */
.hcn-snow-featured-section {
	margin-bottom: 3rem;
	padding: 0;
}

.hcn-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0;
	border-bottom: none;
}

.hcn-section-head h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--hcn-snow-deep);
	padding-left: 12px;
	border-left: 4px solid var(--hcn-snow-accent);
}

.hcn-section-head .hcn-section-tag {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	background: var(--hcn-snow-deep);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	padding: 0.5rem 1.1rem;
	border-radius: 50px;
	transition: background 0.2s, transform 0.2s;
	white-space: nowrap;
}

.hcn-section-head .hcn-section-tag span::after {
	content: " ↓";
	opacity: 0.85;
}

.hcn-section-head .hcn-section-tag:hover {
	background: var(--hcn-snow-accent);
	transform: translateY(-1px);
}

.hcn-snow-featured-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.hcn-snow-featured-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(10, 45, 74, 0.08);
	border: 1px solid #e2eef6;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.hcn-snow-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(10, 45, 74, 0.14);
	border-color: rgba(0, 168, 232, 0.35);
}

.hcn-snow-featured-card .hcn-sf-img {
	position: relative;
	width: 100%;
	height: 200px;
	flex-shrink: 0;
	background: linear-gradient(145deg, var(--hcn-snow-deep), var(--hcn-snow-mid));
	overflow: hidden;
}

.hcn-snow-featured-card .hcn-sf-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: linear-gradient(90deg, #0284c7, #38bdf8);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 0.28rem 0.6rem;
	border-radius: 4px;
	letter-spacing: 0.03em;
}

.hcn-snow-featured-card .hcn-sf-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.hcn-snow-featured-card:hover .hcn-sf-img img {
	transform: scale(1.06);
}

.hcn-snow-featured-card .hcn-sf-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1.15rem 1.15rem;
}

.hcn-snow-featured-card .hcn-sf-model {
	font-size: 12px;
	color: var(--hcn-snow-accent);
	font-weight: 700;
	margin: 0 0 0.4rem;
	letter-spacing: 0.02em;
}

.hcn-snow-featured-card .hcn-sf-model::before {
	content: "型号 ";
	opacity: 0.85;
}

.hcn-snow-featured-card .hcn-sf-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 800;
	color: var(--hcn-snow-deep);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hcn-snow-featured-card .hcn-sf-excerpt {
	margin: 0 0 0.75rem;
	font-size: 13px;
	line-height: 1.6;
	color: #64748b;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hcn-snow-featured-card .hcn-sf-link {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--hcn-snow-accent);
	padding-top: 0.5rem;
	border-top: 1px solid #eef4f8;
}

.hcn-snow-featured-card .hcn-sf-link::after {
	content: " →";
}

.hcn-all-products-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--hcn-snow-deep);
	margin: 0 0 1.5rem;
	padding-left: 12px;
	border-left: 4px solid var(--hcn-snow-warm);
}

/* 产品卡片网格 */
.hcn-products-query .wp-block-post-template {
	gap: 1.75rem !important;
}

.hcn-product-card-wrap {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff !important;
	border-radius: 16px !important;
	overflow: hidden;
	border: 1px solid #e8eef3;
	box-shadow: 0 4px 20px rgba(10, 45, 74, 0.06) !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
	position: relative;
}

.hcn-product-card-wrap:hover {
	transform: translateY(-6px) !important;
	box-shadow: var(--hcn-snow-card-shadow) !important;
	border-color: rgba(0, 168, 232, 0.35) !important;
}

.hcn-products-query .hcn-product-card-wrap {
	border-top: 4px solid var(--hcn-snow-accent);
}

.hcn-product-card-wrap .wp-block-post-featured-image {
	overflow: hidden;
	margin: 0 !important;
}

.hcn-product-card-wrap .wp-block-post-featured-image img {
	height: 220px !important;
	object-fit: cover;
	width: 100%;
	transition: transform 0.4s ease;
}

.hcn-product-card-wrap:hover .wp-block-post-featured-image img {
	transform: scale(1.06);
}

.hcn-product-card-wrap .wp-block-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hcn-product-card-wrap .wp-block-post-title a {
	color: var(--hcn-snow-deep) !important;
	text-decoration: none;
	transition: color 0.2s;
}

.hcn-product-card-wrap:hover .wp-block-post-title a {
	color: var(--hcn-snow-accent) !important;
}

.hcn-product-model-line {
	background: #f8fafc;
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	border-left: 3px solid var(--hcn-snow-accent);
	margin-bottom: 0.35rem !important;
}

.hcn-product-app-line {
	margin: 0 0 0.65rem !important;
	font-size: 13px !important;
	line-height: 1.5;
	color: #64748b !important;
	padding-left: 0.15rem;
}

.hcn-product-card-btn {
	display: inline-block;
	margin-top: auto;
	padding-top: 0.75rem;
	font-size: 14px;
	font-weight: 600;
	color: var(--hcn-snow-accent) !important;
}

.hcn-product-card-btn::after {
	content: " →";
}

.hcn-products-archive-cta {
	background: linear-gradient(135deg, var(--hcn-snow-deep) 0%, #0c4a6e 100%) !important;
	border-radius: 16px !important;
	position: relative;
	overflow: hidden;
}

.hcn-products-archive-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
}

.hcn-products-archive-cta > * {
	position: relative;
	z-index: 1;
}

.hcn-products-archive-cta .wp-block-button__link {
	background: var(--hcn-snow-warm) !important;
	border: none;
	padding: 0.75rem 2rem !important;
	font-weight: 700 !important;
	border-radius: 50px !important;
}

/* ========== 产品详情页 ========== */
.hcn-product-single-page {
	background: #f8fbfd;
}

.hcn-product-breadcrumb {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 1.25rem;
	padding: 0.65rem 0;
}

.hcn-product-breadcrumb a {
	color: var(--hcn-snow-mid);
	text-decoration: none;
}

.hcn-product-breadcrumb a:hover {
	color: var(--hcn-snow-accent);
}

.hcn-product-breadcrumb span {
	margin: 0 0.4rem;
	opacity: 0.5;
}

.hcn-product-breadcrumb .hcn-bc-current {
	opacity: 1;
	color: var(--hcn-snow-deep);
	font-weight: 600;
}

.hcn-product-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: -0.5rem 0 1.5rem;
}

.hcn-hl-chip {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	padding: 0.45rem 1rem;
	border-radius: 50px;
	line-height: 1.4;
}

.hcn-hl-chip--app {
	background: var(--hcn-snow-light);
	color: var(--hcn-snow-mid);
	border: 1px solid #b8dff5;
}

.hcn-hl-chip--feat {
	background: #fff;
	color: #475569;
	border: 1px dashed #94a3b8;
}

.hcn-single-hero-strip {
	background: linear-gradient(135deg, var(--hcn-snow-deep) 0%, #0c4a6e 50%, var(--hcn-snow-mid) 100%);
	border-radius: 16px;
	padding: 1.75rem 2rem;
	margin-bottom: 2rem;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.hcn-single-hero-strip::after {
	content: "";
	position: absolute;
	right: -20px;
	top: -40px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
}

.hcn-single-hero-strip .hcn-sh-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.35);
	font-size: 12px;
	font-weight: 700;
	padding: 0.3rem 0.75rem;
	border-radius: 50px;
	margin-bottom: 0.75rem;
}

.hcn-single-hero-strip.hcn-single-hero-strip--snow .hcn-sh-badge {
	background: linear-gradient(90deg, #0ea5e9, #38bdf8);
	border: none;
}

.hcn-single-hero-strip h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 800;
	color: #fff;
	position: relative;
	z-index: 1;
}

.hcn-single-hero-strip .hcn-sh-model {
	font-size: 15px;
	opacity: 0.9;
	margin: 0;
	position: relative;
	z-index: 1;
}

.hcn-single-hero-strip .hcn-sh-model strong {
	color: #7dd3fc;
}

.hcn-single-hero-strip .hcn-sh-app {
	margin: 0.5rem 0 0;
	font-size: 14px;
	opacity: 0.88;
	position: relative;
	z-index: 1;
}

.hcn-product-single-layout .wp-block-post-featured-image {
	box-shadow: var(--hcn-snow-card-shadow);
	border: 4px solid #fff;
}

.hcn-product-single-layout .wp-block-post-featured-image img {
	border-radius: 12px;
}

.hcn-product-meta-sidebar {
	background: linear-gradient(180deg, #fff 0%, var(--hcn-snow-light) 100%);
	border: 1px solid #cce7f5;
	border-radius: 16px;
	padding: 1.5rem;
	position: sticky;
	top: 100px;
	box-shadow: 0 4px 24px rgba(10, 45, 74, 0.08);
}

.hcn-product-meta-sidebar .hcn-product-meta-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 17px;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--hcn-snow-ice);
}

.hcn-product-meta-sidebar .hcn-product-meta-title::before {
	content: "❄";
	font-size: 1.1rem;
}

.hcn-product-meta-sidebar--snow .hcn-product-meta-title::before {
	content: "★";
}

.hcn-product-meta-table tr {
	border-bottom: 1px solid #e8f4fa;
}

.hcn-product-meta-table tr:last-child {
	border-bottom: none;
}

.hcn-sidebar-cta {
	display: block;
	text-align: center;
	width: 100%;
	margin-top: 1.25rem !important;
	padding: 0.85rem 1rem !important;
	background: linear-gradient(90deg, #0284c7, #0ea5e9) !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
	transition: transform 0.2s, box-shadow 0.2s;
}

.hcn-sidebar-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.hcn-sidebar-phone {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed #cce7f5;
	font-size: 13px;
	color: #64748b;
	text-align: center;
	line-height: 1.6;
}

.hcn-product-content-col .hcn-lead-excerpt {
	font-size: 17px;
	line-height: 1.8;
	color: #334155;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border-left: 4px solid var(--hcn-snow-accent);
	border-radius: 0 12px 12px 0;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.hcn-product-content-col .wp-block-post-content {
	background: #fff;
	padding: 1.75rem 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.hcn-trust-bar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
	margin: 1.5rem 0 0;
}

.hcn-trust-item {
	text-align: center;
	padding: 0.85rem 0.5rem;
	background: var(--hcn-snow-light);
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--hcn-snow-deep);
	line-height: 1.4;
}

.hcn-trust-item strong {
	display: block;
	font-size: 15px;
	color: var(--hcn-snow-accent);
	margin-bottom: 0.2rem;
}

.hcn-product-cta {
	background: linear-gradient(135deg, var(--hcn-snow-light) 0%, #fff 100%);
	border: 2px solid #cce7f5;
	border-radius: 16px;
	padding: 2.5rem 2rem;
}

.hcn-product-cta p {
	font-size: 18px;
	font-weight: 600;
	color: var(--hcn-snow-deep);
}

.hcn-product-cta .hcn-product-cta-btn {
	background: linear-gradient(90deg, #0284c7, #0ea5e9);
	padding: 0.85rem 2.5rem;
	border-radius: 50px;
	font-size: 16px;
	box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

.hcn-related-products {
	padding: 2rem;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e8eef3;
}

.hcn-related-title {
	color: var(--hcn-snow-deep);
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--hcn-snow-ice);
}

.hcn-related-card {
	border: 1px solid #e8eef3;
}

.hcn-related-card:hover {
	border-color: var(--hcn-snow-accent);
}

.hcn-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.hcn-related-grid[data-count="1"] {
	grid-template-columns: repeat(1, minmax(0, 280px));
}

.hcn-related-grid[data-count="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hcn-related-grid[data-count="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.hcn-related-grid,
	.hcn-related-grid[data-count="2"],
	.hcn-related-grid[data-count="3"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hcn-related-grid,
	.hcn-related-grid[data-count="1"],
	.hcn-related-grid[data-count="2"],
	.hcn-related-grid[data-count="3"] {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1100px) {
	.hcn-snow-featured-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.hcn-products-intro-grid {
		grid-template-columns: 1fr;
	}

	.hcn-products-intro-main {
		border-right: none;
		border-bottom: 1px solid #d6ebf7;
		padding: 1.5rem 1.25rem;
	}

	.hcn-products-intro-types {
		grid-template-columns: repeat(2, 1fr);
		padding: 1.25rem;
	}

	.hcn-product-single-layout {
		flex-wrap: wrap !important;
	}

	.hcn-product-single-layout .wp-block-column {
		flex-basis: 100% !important;
	}

	.hcn-trust-bar {
		grid-template-columns: repeat(2, 1fr);
	}

	.hcn-product-meta-sidebar {
		position: static;
	}
}

@media (max-width: 520px) {
	.hcn-products-intro-types {
		grid-template-columns: 1fr;
	}

	.hcn-snow-featured-grid {
		grid-template-columns: 1fr;
	}

	.hcn-snow-featured-card .hcn-sf-img {
		height: 180px;
	}
}

@media (max-width: 600px) {
	.hcn-products-query .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}
