/* Grownparts Product Template
   build: GPT-1.1.3  <- 部署脚本用这个标记校验文件是否真的更新了，改动时请一并改
   产品页版式：主图+相册 / 参数面板 / 正文 / 底部相关产品
   相关产品栅格：≥1024px 桌面 4 列 × 2 行；<1024px 一律 2 列 × 4 行
*/

.gpt-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 56px;
	box-sizing: border-box;
}

/* ---------- 面包屑 ---------- */
.gpt-breadcrumb {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 22px;
	line-height: 1.6;
	word-break: break-word;
}

.gpt-breadcrumb a {
	color: #6b7280;
	text-decoration: none;
}

.gpt-breadcrumb a:hover {
	color: #CC3366;
	text-decoration: underline;
}

.gpt-breadcrumb .gpt-sep {
	margin: 0 7px;
	color: #c3c8d0;
}

.gpt-breadcrumb .gpt-current {
	color: #111827;
}

/* ---------- 产品主体：左图右信息 ---------- */
.gpt-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 44px;
	align-items: start;
	margin-bottom: 46px;
}

/* ---------- 相册 ---------- */
.gpt-gallery {
	min-width: 0;
}

.gpt-main-image {
	position: relative;
	background: #f7f8fa;
	border: 1px solid #e8eaee;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gpt-main-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: opacity .18s ease;
}

.gpt-main-image.is-swapping img {
	opacity: .35;
}

.gpt-no-image span {
	color: #9aa1ad;
	font-size: 14px;
}

.gpt-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.gpt-thumb {
	flex: 0 0 auto;
	width: 78px;
	height: 78px;
	padding: 0;
	border: 1px solid #e8eaee;
	background: #f7f8fa;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.gpt-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gpt-thumb:hover {
	border-color: #b9c4d4;
}

.gpt-thumb.is-active {
	border-color: #CC3366;
	box-shadow: 0 0 0 1px #CC3366 inset;
}

/* ---------- 右侧信息面板 ---------- */
.gpt-summary {
	min-width: 0;
}

.gpt-title {
	font-size: 28px;
	line-height: 1.32;
	margin: 0 0 14px;
	font-weight: 600;
	color: #111827;
}

.gpt-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 16px;
}

.gpt-badge {
	display: inline-block;
	background: #eef4ff;
	color: #0b4ea2;
	border: 1px solid #cfe0f8;
	border-radius: 3px;
	padding: 3px 10px;
	font-size: 12.5px;
	line-height: 1.5;
}

.gpt-lead {
	font-size: 18px;
	line-height: 1.72;
	color: #374151;
	margin: 0 0 18px;
}

.gpt-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	background: #f6f9ff;
	border: 1px solid #dbe7f8;
	border-radius: 8px;
	padding: 13px 16px;
	margin-bottom: 18px;
}

.gpt-price-label {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #5a7597;
}

.gpt-price strong {
	font-size: 21px;
	color: #0b4ea2;
	font-weight: 600;
}

.gpt-price-unit {
	font-size: 13px;
	color: #6b7280;
}

.gpt-facts {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	margin-bottom: 22px;
	border: 1px solid #e8eaee;
	border-radius: 8px;
	overflow: hidden;
}

.gpt-facts th,
.gpt-facts td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #eef0f3;
	vertical-align: top;
}

.gpt-facts tr:last-child th,
.gpt-facts tr:last-child td {
	border-bottom: 0;
}

.gpt-facts th {
	width: 38%;
	background: #fafbfc;
	font-weight: 600;
	color: #374151;
}

.gpt-facts td {
	color: #111827;
}

.gpt-cta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.gpt-cta {
	display: inline-block;
	background: #CC3366;
	color: #fff !important;
	padding: 13px 30px;
	border-radius: 5px;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	transition: background .15s ease;
}

.gpt-cta:hover {
	background: #084da3;
}

/*
 * 占位符状态：Request a Quote 暂时不带 href（询盘表单后续接管）。
 * 去掉指针与 hover 变色，避免看起来可以点。
 * 一旦加回 href，:not([href]) 不再命中，正常按钮行为自动恢复。
 */
.gpt-cta:not([href]) {
	cursor: default;
}

.gpt-cta:not([href]):hover {
	background: #CC3366;
}

.gpt-cta-note {
	font-size: 13px;
	color: #6b7280;
}

/* ---------- 正文区 ---------- */
.gpt-content {
	max-width: 940px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.75;
	color: #1f2937;
}

/* 全站正文 18px。
   发布器会把一小段 <style> 写进正文 HTML，里面 .gp-lead 是 17px；
   那条规则在正文内部、特异性只有 (0,1,0)，所以这里用
   .gpt-content p / .gpt-content .gp-lead 这种更高的特异性压过去，
   不用重发所有产品，也不用 !important。 */
.gpt-content p,
.gpt-content li,
.gpt-content .gp-lead {
	font-size: 18px;
}

/* 表格是数据不是正文，不跟 18px 同步，否则一行挤不下 */
.gpt-content .gp-table th,
.gpt-content .gp-table td {
	font-size: 15px;
}

.gpt-content h2 {
	font-size: 24px;
	margin: 34px 0 14px;
	font-weight: 600;
	color: #111827;
}

.gpt-content h3 {
	font-size: 19px;
	margin: 22px 0 10px;
	font-weight: 600;
	color: #111827;
}

.gpt-content ul {
	margin: 0 0 20px;
	padding-left: 20px;
}

.gpt-content li {
	margin-bottom: 7px;
}

/* 发布器生成的表格样式（gp- 前缀），也在这里兜底 */
.gpt-content .gp-table,
.gp-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 14px;
}

.gpt-content .gp-table th,
.gpt-content .gp-table td,
.gp-table th,
.gp-table td {
	border: 1px solid #e8eaee;
	padding: 9px 12px;
	text-align: left;
}

.gpt-content .gp-table tbody th,
.gp-table tbody th {
	width: 38%;
	background: #fafbfc;
	font-weight: 600;
}

.gpt-content .gp-table thead th,
.gp-table thead th {
	background: #f6f8fa;
	font-weight: 600;
}

.gpt-content .gp-lead,
.gpt-content .gp-badges,
.gpt-content .gp-cta {
	display: none; /* 已在右侧信息面板呈现，正文里不重复 */
}

/* ---------- 底部相关产品 ---------- */
.gpt-related {
	margin-top: 60px;
	padding-top: 34px;
	border-top: 1px solid #e8eaee;
}

.gpt-related-title {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 24px;
	color: #111827;
}

.gpt-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.gpt-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e8eaee;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	text-decoration: none !important;
	color: inherit;
	transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.gpt-card:hover {
	border-color: #c8d3e2;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(16, 30, 54, .07);
}

.gpt-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f7f8fa;
	overflow: hidden;
}

.gpt-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gpt-card-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #f2f4f7, #f2f4f7 8px, #eceff3 8px, #eceff3 16px);
}

.gpt-card-body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 13px 14px 15px;
	flex: 1;
}

.gpt-card-title {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.45;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gpt-card-desc {
	font-size: 12.5px;
	line-height: 1.6;
	color: #6b7280;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gpt-card-meta {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	padding-top: 6px;
}

.gpt-card-price {
	font-size: 13.5px;
	font-weight: 600;
	color: #0b4ea2;
}

.gpt-card-moq {
	font-size: 12px;
	color: #6b7280;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
	.gpt-product {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	/* 平板 / 移动统一 2 个一排：8 个产品共 4 排 */
	.gpt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.gpt-wrap {
		padding: 18px 16px 44px;
	}

	.gpt-title {
		font-size: 22px;
	}

	.gpt-thumb {
		width: 62px;
		height: 62px;
	}

	.gpt-thumbs {
		gap: 8px;
	}

	/* 移动端：保持 2 个一排，仅收紧间距 */
	.gpt-grid {
		gap: 14px;
	}

	.gpt-related {
		margin-top: 44px;
		padding-top: 26px;
	}

	.gpt-related-title {
		font-size: 19px;
		margin-bottom: 18px;
	}

	.gpt-card-body {
		padding: 11px 11px 13px;
	}

	.gpt-card-title {
		font-size: 13.5px;
	}

	.gpt-card-desc {
		display: none;
	}

	.gpt-price strong {
		font-size: 19px;
	}
}
