/**
 * 产品库详情页 — 电商式布局
 */

.hcn-store-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.hcn-store-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e2eef6;
	border-top: 4px solid var(--hcn-snow-accent, #00a8e8);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 20px rgba(10, 45, 74, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

.hcn-store-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(10, 45, 74, 0.12);
}

.hcn-store-card-img {
	height: 220px;
	overflow: hidden;
	background: linear-gradient(145deg, #0a2d4a, #1a5f8a);
}

.hcn-store-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hcn-store-card:hover .hcn-store-card-img img {
	transform: scale(1.05);
}

.hcn-store-card-body {
	padding: 1.15rem 1.25rem 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hcn-store-card-body h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--hcn-snow-deep, #0a2d4a);
}

.hcn-store-card-model {
	font-size: 13px;
	margin: 0 0 0.5rem;
	background: #f8fafc;
	padding: 0.35rem 0.5rem;
	border-radius: 4px;
	border-left: 3px solid var(--hcn-snow-accent, #00a8e8);
}

.hcn-store-card-excerpt {
	font-size: 13px;
	line-height: 1.6;
	color: #64748b;
	margin: 0 0 0.75rem;
	flex: 1;
}

.hcn-store-pagination {
	margin-top: 2.5rem;
	text-align: center;
}

.hcn-store-pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	margin: 0 0.15rem;
	border-radius: 6px;
	text-decoration: none;
	border: 1px solid #e2eef6;
}

.hcn-store-pagination .page-numbers.current {
	background: var(--hcn-snow-deep, #0a2d4a);
	color: #fff;
	border-color: transparent;
}

/* ========== 详情页 ========== */
.hcn-pd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 2.5rem;
}

.hcn-pd-gallery {
	background: #fff;
	border-radius: 16px;
	padding: 1rem;
	border: 1px solid #e2eef6;
	box-shadow: 0 4px 24px rgba(10, 45, 74, 0.08);
}

.hcn-pd-main-image {
	aspect-ratio: 4/3;
	background: #f1f5f9;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hcn-pd-main-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.hcn-pd-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.hcn-pd-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	width: 72px;
	height: 72px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.2s;
}

.hcn-pd-thumb.is-active,
.hcn-pd-thumb:hover {
	border-color: var(--hcn-snow-accent, #00a8e8);
}

.hcn-pd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hcn-pd-summary-col {
	background: #fff;
	border-radius: 16px;
	padding: 1.75rem;
	border: 1px solid #e2eef6;
	box-shadow: 0 4px 24px rgba(10, 45, 74, 0.06);
}

.hcn-pd-badge {
	display: inline-block;
	background: linear-gradient(90deg, #0284c7, #38bdf8);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 0.3rem 0.75rem;
	border-radius: 50px;
	margin-bottom: 0.75rem;
}

.hcn-pd-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	color: var(--hcn-snow-deep, #0a2d4a);
	line-height: 1.35;
}

.hcn-pd-model {
	margin: 0 0 0.75rem;
	font-size: 15px;
	color: #475569;
}

.hcn-pd-model strong {
	color: var(--hcn-snow-accent, #00a8e8);
}

.hcn-pd-lead {
	margin: 0 0 1.25rem;
	font-size: 15px;
	line-height: 1.75;
	color: #64748b;
}

.hcn-pd-specs-box {
	margin-bottom: 1.25rem;
}

.hcn-pd-specs-box h3 {
	margin: 0 0 0.65rem;
	font-size: 15px;
	font-weight: 700;
	color: var(--hcn-snow-deep, #0a2d4a);
}

.hcn-pd-specs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.hcn-pd-specs-table th,
.hcn-pd-specs-table td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid #eef4f8;
	text-align: left;
	vertical-align: top;
}

.hcn-pd-specs-table th {
	width: 38%;
	color: #64748b;
	font-weight: 600;
	background: #f8fbfd;
}

.hcn-pd-specs-table tr:last-child th,
.hcn-pd-specs-table tr:last-child td {
	border-bottom: none;
}

.hcn-pd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.hcn-pd-btn-primary {
	display: inline-block;
	background: linear-gradient(90deg, #0284c7, #0ea5e9);
	color: #fff !important;
	font-weight: 700;
	padding: 0.85rem 2rem;
	border-radius: 50px;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.hcn-pd-btn-primary:hover {
	transform: translateY(-2px);
	color: #fff;
}

.hcn-pd-btn-outline {
	display: inline-block;
	padding: 0.85rem 1.5rem;
	border: 2px solid #cce7f5;
	border-radius: 50px;
	color: var(--hcn-snow-mid, #1a5f8a) !important;
	font-weight: 600;
	text-decoration: none;
}

.hcn-pd-trust {
	margin-top: 0.5rem;
}

.hcn-pd-tabs {
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e2eef6;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.hcn-pd-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid #eef4f8;
	background: #f8fbfd;
}

.hcn-pd-tab {
	appearance: none;
	border: none;
	background: transparent;
	padding: 1rem 1.5rem;
	font-size: 15px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.hcn-pd-tab.is-active {
	color: var(--hcn-snow-deep, #0a2d4a);
	border-bottom-color: var(--hcn-snow-accent, #00a8e8);
	background: #fff;
}

.hcn-pd-tab-panel {
	display: none;
	padding: 1.75rem 2rem;
}

.hcn-pd-tab-panel.is-active {
	display: block;
}

.hcn-pd-content {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

.hcn-pd-features-list .hcn-pd-feature-item {
	padding: 1rem 0;
	border-bottom: 1px solid #eef4f8;
}

.hcn-pd-features-list .hcn-pd-feature-item:last-child {
	border-bottom: none;
}

.hcn-pd-features-list h4 {
	margin: 0 0 0.5rem;
	font-size: 16px;
	color: var(--hcn-snow-deep, #0a2d4a);
}

.hcn-pd-features-list p {
	margin: 0;
	line-height: 1.7;
	color: #475569;
}

@media (max-width: 960px) {
	.hcn-store-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hcn-pd-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.hcn-store-grid {
		grid-template-columns: 1fr;
	}

	.hcn-pd-tab {
		padding: 0.75rem 1rem;
		font-size: 14px;
	}

	.hcn-pd-tab-panel {
		padding: 1.25rem;
	}
}
