/* 产品中心 — 列表 + 详情 */

.cx-product-ui .content-area {
	margin-top: 0;
}

.cx-product-page,
.cx-product-single {
	--cx-accent: #e74b11;
	--cx-accent-hover: #c93d0e;
	--cx-accent-soft: #fff5f0;
	--cx-accent-muted: rgba(231, 75, 17, 0.12);
	--cx-border: #ece8e6;
	--cx-muted: #5c5a58;
	--cx-radius: 12px;
	margin: 0 auto;
	padding: 0 20px 48px;
}

.cx-product-page,
.cx-product-single {
	max-width: 1280px;
}

/* 列表 Banner + 标题叠在图上 */
.cx-product-page--has-banner {
	padding-top: 0;
}

.cx-product-hero-banner {
	position: relative;
	display: grid;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 32px;
	overflow: hidden;
	background: #1a2332;
}

.cx-product-hero-banner > .cx-product-term-banner,
.cx-product-hero-banner > .cx-page-banner,
.cx-product-hero-banner > .cx-product-hero {
	grid-area: 1 / 1;
}

.cx-product-hero-banner .cx-product-term-banner,
.cx-product-hero-banner .cx-page-banner {
	position: static;
	width: 100%;
	max-width: none;
	margin: 0;
}

.cx-product-term-banner {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 200px;
	max-height: 360px;
	overflow: hidden;
	background: #1a2332;
}

.cx-product-term-banner__img {
	display: block;
	width: 100%;
	height: clamp(200px, 32vw, 360px);
	object-fit: cover;
}

.cx-product-term-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 20, 40, 0.15) 0%, rgba(10, 20, 40, 0.65) 100%);
	pointer-events: none;
}

/* Hero */
.cx-product-hero {
	margin: 0 -20px 32px;
	padding: 40px 20px 36px;
	background: transparent;
	border-bottom: none;
}

.cx-product-hero-banner .cx-product-hero--on-banner {
	position: relative;
	align-self: center;
	justify-self: stretch;
	margin: 0;
	padding: 24px 20px;
	background: transparent;
	border-bottom: none;
	z-index: 2;
}

.cx-product-hero-banner .cx-product-hero__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.cx-product-hero--on-banner .cx-product-hero__title {
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.cx-product-hero--on-banner .cx-product-hero__desc {
	color: rgba(255, 255, 255, 0.92);
	max-width: 720px;
}

.cx-product-hero__kicker {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cx-accent);
	margin-bottom: 8px;
}

.cx-product-hero__title {
	margin: 0 0 10px;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	line-height: 1.2;
}

.cx-product-hero__desc {
	margin: 0;
	max-width: 640px;
	color: var(--cx-muted);
	font-size: 1rem;
	line-height: 1.6;
}

.cx-product-hero__desc p:last-child {
	margin-bottom: 0;
}

/* 列表布局：左侧分类 + 右侧网格 */
.cx-product-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.cx-product-sidebar {
	position: sticky;
	top: 100px;
	background: #fff;
	border: 1px solid var(--cx-border);
	border-radius: var(--cx-radius);
	padding: 20px 16px;
}

.cx-product-sidebar__title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cx-border);
}

.cx-product-sidebar__list,
.cx-product-sidebar__sublist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cx-product-sidebar__sublist {
	margin: 4px 0 4px 12px;
	padding-left: 8px;
	border-left: 2px solid var(--cx-accent-muted);
}

.cx-product-sidebar__item a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #1a2332;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: background 0.15s ease, color 0.15s ease;
}

.cx-product-sidebar__item a:hover {
	background: var(--cx-accent-soft);
	color: var(--cx-accent);
}

.cx-product-sidebar__item.is-active > a {
	background: var(--cx-accent);
	color: #fff;
	font-weight: 600;
}

.cx-product-sidebar__item--child a {
	font-size: 13px;
	padding: 6px 10px;
}

/* 产品卡片网格 — 一行 3 个，左对齐文案 */
.cx-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cx-product-grid__item {
	margin: 0;
	min-width: 0;
}

.cx-product-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	padding: 16px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cx-product-card:hover {
	border-color: #d0d0d0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
}

.cx-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 16px;
	background: #fff;
	overflow: hidden;
}

.cx-product-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cx-product-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #f5f5f5;
}

.cx-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.cx-product-card__title {
	margin: 0 0 10px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
}

.cx-product-card__excerpt {
	margin: 0 0 20px;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.6;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.cx-product-card__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	font-size: 0.875rem;
	font-weight: 400;
	color: #1a1a1a;
}

.cx-product-card__link-arrow {
	display: inline-block;
	transition: transform 0.15s ease;
}

.cx-product-card:hover .cx-product-card__link-arrow {
	transform: translateX(3px);
}

.cx-product-empty {
	padding: 48px 20px;
	text-align: center;
	color: var(--cx-muted);
	background: #f8fafc;
	border-radius: var(--cx-radius);
}

.cx-product-pagination {
	margin-top: 32px;
}

.cx-product-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.cx-product-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--cx-border);
	color: #1a2332;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cx-product-pagination .page-numbers:hover {
	background: var(--cx-accent-soft);
	border-color: var(--cx-accent);
	color: var(--cx-accent);
}

.cx-product-pagination .page-numbers.current {
	background: var(--cx-accent);
	border-color: var(--cx-accent);
	color: #fff;
	font-weight: 600;
}

/* —— 详情页 —— */
.cx-product-single__wrap {
	margin: 0 auto;
	padding-top: 24px;
}

.cx-product-back {
	display: inline-block;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--cx-muted);
	text-decoration: none;
}

.cx-product-back:hover {
	color: var(--cx-accent);
}

.cx-product-single__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 36px;
	margin-bottom: 40px;
	align-items: start;
}

/* 轮播 */
.cx-product-gallery__stage {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f0f3f8;
	border-radius: var(--cx-radius);
	overflow: hidden;
	border: 1px solid var(--cx-border);
}

.cx-product-gallery__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.cx-product-gallery__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.cx-product-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.cx-product-gallery__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.cx-product-gallery__thumb.is-active {
	border-color: var(--cx-accent);
}

.cx-product-gallery__thumb img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.cx-product-single__cats {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--cx-muted);
}

.cx-product-single__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.25;
}

.cx-product-single__excerpt {
	margin: 0 0 20px;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cx-muted);
}

.cx-product-inquiry-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	background: var(--cx-accent);
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border-radius: 8px;
	border: none;
	transition: background 0.15s ease;
}

.cx-product-inquiry-btn:hover {
	background: var(--cx-accent-hover);
	color: #fff;
}

.cx-product-inquiry-btn--lg {
	padding: 14px 36px;
	font-size: 16px;
}

.cx-product-section {
	margin-bottom: 40px;
}

.cx-product-section__title {
	margin: 0 0 16px;
	font-size: 1.25rem;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--cx-accent);
	display: inline-block;
	min-width: 120px;
}

.cx-product-section__body {
	font-size: 1rem;
	line-height: 1.7;
}

.cx-product-specs-wrap {
	overflow-x: auto;
	border: 1px solid var(--cx-border);
	border-radius: var(--cx-radius);
}

.cx-product-specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.cx-product-specs th,
.cx-product-specs td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--cx-border);
	text-align: left;
	vertical-align: top;
}

.cx-product-specs tr:last-child th,
.cx-product-specs tr:last-child td {
	border-bottom: none;
}

.cx-product-specs th {
	width: 36%;
	background: #f8fafc;
	font-weight: 600;
	color: #1a2332;
}

.cx-product-video iframe,
.cx-product-video__player {
	display: block;
	width: 100%;
	max-width: 100%;
	border-radius: var(--cx-radius);
	background: #0a1428;
}

.cx-product-video__player {
	height: auto;
	max-height: min(56vw, 480px);
}

.cx-product-faq__item {
	border: 1px solid var(--cx-border);
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
}

.cx-product-faq__q {
	padding: 14px 18px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.cx-product-faq__q::-webkit-details-marker {
	display: none;
}

.cx-product-faq__a {
	padding: 0 18px 16px;
	color: var(--cx-muted);
	font-size: 15px;
	line-height: 1.6;
}

.cx-product-single__cta {
	text-align: center;
	padding: 32px 0 16px;
	border-top: 1px solid var(--cx-border);
}

/* 响应式 */
@media (max-width: 900px) {
	.cx-product-layout {
		grid-template-columns: 1fr;
	}

	.cx-product-sidebar {
		position: static;
	}

	.cx-product-single__hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1024px) {
	.cx-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cx-product-grid {
		grid-template-columns: 1fr;
	}
}
