/* 首页 V2 · 数字滚动统计：数据源仍是插件 option，改数字去插件设置；桌面 4 列，移动 2×2
 * 共用样式在 nv2-base.css，本板块的覆盖在本文件 */

.nv2-stat {
	padding-block: clamp(30px, 4vw, 60px);
	background: var(--nv2-blue-bg);
}

.nv2-stat__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	align-items: stretch;
}

.nv2-stat__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* 数字与下方说明文字的间距，只改这一行 */
	gap: clamp(10px, 1.2vw, 18px);
	padding: clamp(10px, 1.4vw, 20px) clamp(8px, 1.6vw, 24px);
	text-align: center;
}

.nv2-stat__item.has-divider {
	position: relative;
}

.nv2-stat__item.has-divider::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: clamp(52px, 6vw, 84px);
	background: #B9D5EC;
	transform: translateY(-50%);
}

/* 带 .nv2-home 才压得过 nv2-base 的 .nv2-home p{margin:0 0 1.5em}，否则间距被它撑大 */
.nv2-home .nv2-stat__number {
	margin: 0;
	display: flex;
	align-items: baseline;
	justify-content: center;
	font-weight: 700;
	line-height: 1;
	color: var(--nv2-blue);
	font-size: clamp(32px, 3.6vw, 54px);
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
}

.nv2-stat__suffix {
	margin-left: .04em;
}

.nv2-home .nv2-stat__text {
	margin: 0;
	font-size: clamp(12px, 1.15vw, 17px);
	color: #3F4C57;
}

@media (max-width: 991px) {
	.nv2-stat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 18px;
	}

	.nv2-stat__item:nth-child(odd)::before {
		display: none;
	}

	.nv2-stat__number {
		font-size: clamp(28px, 7vw, 40px);
	}
}

@media (max-width: 560px) {
	.nv2-stat {
		padding-block: 28px;
	}

	.nv2-stat__text {
		font-size: 14px;
	}
}
