/* 首页 V2 · Product Center：左要点面板 + 右主图块（底板/大图/缩略图）；无 DETAILS 链接（设计稿没有）
 * 共用样式在 nv2-base.css，本板块的覆盖在本文件 */

.nv2-product {
	padding-block: var(--nv2-sec-y);
	background: #fff;
}

.nv2-product__body {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
	gap: clamp(24px, 4vw, 72px);
	align-items: center;
}

/* ---- 左：要点面板 ---- */
.nv2-product__panels {
	position: relative;
	min-width: 0;
	min-height: 320px;
}

.nv2-product__panel {
	display: none;
}

.nv2-product__panel.is-active {
	display: block;
	animation: nv2-product-fade .45s ease both;
}

@keyframes nv2-product-fade {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.nv2-product__name {
	margin: 0 0 clamp(14px, 1.4vw, 22px);
	font-size: clamp(20px, 1.9vw, 30px);
	font-weight: 700;
	color: var(--nv2-ink);
}

.nv2-product__points {
	margin: 0 0 clamp(18px, 1.8vw, 28px);
	font-size: clamp(14px, 1.05vw, 18px);
	line-height: 1.7;
	color: var(--nv2-text);
}

.nv2-product__points p {
	margin: 0 0 .6em;
}

.nv2-product__points ul,
.nv2-product__points ol {
	padding-left: 1.2em;
}

.nv2-product__points li {
	margin: 0 0 .45em;
	list-style: disc;
}

.nv2-product__points ol li {
	list-style: decimal;
}

.nv2-product__points img {
	margin: 12px 0;
}

/* ---- 右：产品舞台 ---- */
.nv2-product__stage {
	position: relative;
	min-width: 0;
	padding: clamp(14px, 1.6vw, 28px) 0;
}

/* 改主图大小只改这一条宽度；底板/大图/缩略图全部按它等比缩放 */
.nv2-product__media {
	position: relative;
	width: min(100%, clamp(320px, 26vw, 460px));
	margin-inline: auto;
}

.nv2-product__lead {
	position: relative;
	z-index: 3;
	margin: 0 0 clamp(10px, 1vw, 16px);
	text-align: left;
	font-size: clamp(16px, 1.35vw, 20px);
	font-weight: 700;
	color: var(--nv2-blue);
	transition: opacity .3s ease;
}

/* 主图框按 460×320 等比；图片比底板略高，底部向下溢出 */
.nv2-product__frame {
	position: relative;
	aspect-ratio: 460 / 320;
}

.nv2-product__blob {
	position: absolute;
	inset: 0 0 auto 0;
	height: 64%;
	border-radius: 125px 10px;
	background: linear-gradient(135deg, #2593FF, #0F7CD8);
	pointer-events: none;
}

.nv2-product__swiper {
	position: absolute;
	inset: 0;
	z-index: 2;
	min-width: 0;
	overflow: hidden;
}

.nv2-product__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.nv2-product__slide img {
	/* max-height: 95%; */
	max-width: 80%;
	width: auto;
	object-fit: contain;
}

/* 左右切换按钮 */
.nv2-product__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(36px, 10.4%, 48px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #EEF3F7;
	color: var(--nv2-blue);
	font-size: clamp(15px, 1.2vw, 19px);
	transform: translateY(-50%);
	transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.nv2-product__nav:hover {
	background: var(--nv2-card);
}

.nv2-product__nav--prev {
	left: -34%;
}

.nv2-product__nav--next {
	right: -34%;
}

/* 关闭 swiper 自带导航样式，避免与自定义按钮叠加 */
.nv2-product__swiper .swiper-button-prev,
.nv2-product__swiper .swiper-button-next,
.nv2-product__swiper .swiper-pagination-bullet {
	display: none;
}

/* ---- 缩略图：在主图正下方、与底板左边缘对齐 ---- */
.nv2-product__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 1.9%;
	margin-top: 2%;
}

/* 坑：base 里 .nv2-home button 把 background/padding 清掉了（0,1,1），本组规则必须带 .nv2-home 两层才抢得动 */
.nv2-home .nv2-product__thumb {
	position: relative;
	width: 23.9%;
	aspect-ratio: 110 / 88;
	padding: 4px;
	background: #F0F5F7;
	transition: background-color .25s ease, transform .25s ease;
}

.nv2-home .nv2-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nv2-home .nv2-product__thumb:hover {
	transform: translateY(-3px);
}

/* 选中态：背景换浅蓝，下方一条黄色长条 */
.nv2-home .nv2-product__thumb.is-active {
	background: var(--nv2-blue-bg);
}

.nv2-home .nv2-product__thumb.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 4px;
	background: var(--nv2-orange);
}

@media (max-width: 1200px) {
	.nv2-product__body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	}
}

@media (max-width: 991px) {
	.nv2-product__body {
		/* 必须用 minmax(0,1fr)：裸 1fr 的 min 是 auto，会被 swiper 幻灯片的固有宽度顶到几千 px */
		grid-template-columns: minmax(0, 1fr);
		/* 主图块与要点面板的垂直间距只由这个 gap 产生，不要再叠 margin */
		gap: 50px;
	}

	/* 手机端把要点面板放到主图块下面 */
	.nv2-product__panels {
		min-width: 0;
		min-height: 0;
		order: 2;
	}

	/* 手机端把主图块放到要点面板上面 */
	.nv2-product__stage {
		order: 1;
		min-width: 0;
		padding: 16px 0 0;
	}

	.nv2-product__media {
		width: min(100%, 420px);
	}

	/* 两值写法：第一项 = 左上/右下，第二项 = 右上/左下；要四角不同就写四值 */
	.nv2-product__blob {
		border-radius: 100px 10px;
	}

	/* 手机端靠触摸滑动和缩略图切换，翻页箭头不需要 */
	.nv2-home .nv2-product__nav {
		display: none;
	}

	/* 三张缩略图不满一行，居中补齐左右留白，不让他们全靠左 */
	.nv2-product__thumbs {
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.nv2-product__points {
		font-size: 15px;
	}

	.nv2-product__media {
		width: 100%;
	}
}