.nav-box {
	display: flex;
	justify-content: space-between; /* 两端对齐，紧贴父容器padding */
	width: 90%;
    max-width: 1700px;
	margin: 0 auto;
	background-color: #fff;
	border-radius:70px;
	box-shadow: 0 0.125rem 0.9375rem rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 1;
    margin-top: 170px;
    margin-bottom: 78px;
	overflow: visible;
    padding-left: clamp(20px, 12vw, 238px);
    padding-right: clamp(20px, 12vw, 238px);
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	position: relative;
	z-index: 2;
	flex: 0 0 auto; /* 宽度由内容决定 */
	width: fit-content; /* 关键：宽度等于内容宽度 */
	padding-bottom: 35px;
	text-align: center;
	/* 可选：添加左右内边距，避免内容贴边 */
	/* padding: 0 0.5rem; */
}

/* 可选：如果需要第一个和最后一个元素完全贴紧父容器padding，移除它们的左右内边距 */
.nav-item:first-child {
	padding-left: 0;
}
.nav-item:last-child {
	padding-right: 0;
}

.nav-item img {
	width: 9rem;
	height:9rem;
	object-fit: contain;
	border-radius: 0.75rem;
    margin-top: -70px;
	transform: translateY(0.625rem);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-item:hover img {
	transform: translateY(0.3125rem);
}

.nav-item:active img {
	transform: translateY(0.4375rem);
	box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.nav-item p {
	margin: 0;
	font-size: 30px;
	color: #37373e;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 平板端文字 */
@media (max-width: 1023px) and (min-width: 768px) {
	.nav-item p {
		font-size: 0.9375rem;
	}
}

/* 移动端文字 */
@media (max-width: 767px) {
	.nav-item p {
		font-size: clamp(12px, 0.857rem, 0.9375rem);
	}
}