/* 产品分类标题 */
.tabs-container {
	max-width: 1400px;
	margin: 0 auto;
	box-sizing: content-box;
}

.tabs-container a:hover {
	text-decoration: none;
}

.tab-group .tab-group-btn {
	border: none;
	background-color: transparent;
	outline: none;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: grid;
}

.tab-pane .tab-pane-item {
	overflow: hidden;
}

.tab-pane .tab-pane-item .img-box {
	position: relative;
	display: block;
	width: 100%;
	max-width: 174px;
	margin: 0 auto;
}

.tab-pane .tab-pane-item .img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.tab-pane .tab-pane-item .title {
	width: 100%;
	color: #222;
	font-weight: bold;
	text-align: center;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

@media screen and (max-width: 1023px) {
	.tabs-container {
		padding: 10px 10px 0;
	}

	.tab-group {
		position: relative;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		column-gap: 10px;
		row-gap: 10px;
	}

	.tab-group .tab-group-btn {
		font-size: 14px;
		color: #222;
		text-align: center;
		line-height: 3;
		background-color: white;
	}

	.tab-group .tab-group-btn.active {
		color: white;
		background-color: #2CB053;
	}

	.tab-pane {
		grid-template-columns: repeat(4, 1fr);
		column-gap: 10px;
		row-gap: 10px;
		margin-top: 20px;
	}

	.tab-pane .tab-pane-item {
		border-radius: 8px;
		padding: 24px 10px;
		background-color: white;
	}

	.tab-pane .tab-pane-item .img-box {
		padding-bottom: calc(max(174px, 100%) - 20px);
	}

	.tab-pane .tab-pane-item .title {
		font-size: 16px;
		margin: 20px 0 0;
	}
}

@media screen and (max-width: 600px) {
	.tab-pane {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.tabs-container {
		padding: 0 20px;
		margin-top: 2.75rem;
	}

	.tabs-content {
		padding: 2.75rem 4.25rem 1rem;
		border-radius: 1.875rem;
		background-color: white;
	}

	.tab-group {
		display: flex;
		justify-content: space-between;
	}

	.tab-group .tab-group-btn {
		min-width: 8.5rem;
		height: 3rem;
		font-size: 1rem;
		color: #222222;
		text-align: center;
		line-height: 3rem;
		/* padding: 0 2rem; */
		border-radius: 2rem;
	}

	.tab-group .tab-group-btn:hover {
		color: #2CB053;
	}
	
	.tab-group .tab-group-btn.active {
		color: white;
		background-color: #2CB053;
	}

	.tab-pane {
		grid-template-columns: repeat(5, 1fr);
		column-gap: 1.25rem;
		row-gap: 2.375rem;
		margin-top: 2.5rem;
	}

	.tab-pane .tab-pane-item {
		border-radius: 8px;
		padding: 2rem 1rem;
	}

	.tab-pane .tab-pane-item .img-box {
		padding-bottom: calc(max(174px, 100%) - 2rem);
	}

	.tab-pane .tab-pane-item .title {
		font-size: 1rem;
		margin: 2.875rem 0 0;
	}
}