/* ===== 客户合作案例：左侧分类切换 + 右侧 3 列 = 2 行共 6 卡 ===== */
.hs-case {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

/* 左侧分类 */
.hs-case-side {
	flex: 0 0 290px;
	min-width: 0;
}

.hs-case-tabs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-case-tabs li {
	margin-bottom: 10px;
}

.hs-case-tabs li:last-child {
	margin-bottom: 0;
}

.hs-case-tabs a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	box-sizing: border-box;
	height: 56px;
	line-height: 56px;
	padding: 0 20px;
	font-size: 16px;
	color: #333;
	background-color: #fff;
	border: 1px solid #e6e9ef;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
	transition: all .3s ease;
}

.hs-case-tabs a .hs-case-tabs-txt {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-case-tabs a:after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid #c3cbd9;
	border-top: 2px solid #c3cbd9;
	transform: rotate(45deg);
	transition: all .3s ease;
}

.hs-case-tabs a:hover {
	color: #214d98;
	border-color: #c9d6ec;
}

.hs-case-tabs a:hover:after {
	border-color: #214d98;
}

.hs-case-tabs li.active a {
	background-color: #214d98;
	border-color: #214d98;
	color: #fff;
	box-shadow: 0 8px 20px rgba(33, 77, 152, .22);
}

.hs-case-tabs li.active a:after {
	border-color: #fff;
}

/* 右侧内容 */
.hs-case-main {
	flex: 1 1 auto;
	min-width: 0;
}

.hs-case-panel {
	display: block;
}

.hs-case-on .hs-case-panel {
	display: none;
}

.hs-case-on .hs-case-panel.active {
	display: block;
	animation: hsCaseFade .35s ease both;
}

@keyframes hsCaseFade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 3 列 × 2 行 = 6 个 */
.hs-case-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-case-card {
	min-width: 0;
}

.hs-case-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #fff;
	border: 1px solid #e9edf3;
	border-radius: 10px;
	overflow: hidden;
	transition: all .3s ease;
}

.hs-case-card a:hover {
	border-color: #c9d6ec;
	box-shadow: 0 12px 28px rgba(33, 77, 152, .12);
	transform: translateY(-3px);
}

.hs-case-thumb {
	position: relative;
	padding-top: 66%;
	background-color: #f2f5f9;
	overflow: hidden;
}

.hs-case-thumb img {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.hs-case-card a:hover .hs-case-thumb img {
	transform: scale(1.06);
}

.hs-case-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 15px 16px 16px;
}

.hs-case-info h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: #222;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-case-info p {
	margin: 9px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: #7b8798;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hs-case-more {
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	line-height: 1;
	color: #214d98;
}

.hs-case-more:after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.hs-case-card a:hover .hs-case-more {
	color: #0d3276;
}

.hs-case-all {
	margin-top: 26px;
}

.hs-case-all a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 22px;
	font-size: 14px;
	color: #fff;
	background-color: #214d98;
	border-radius: 8px;
	transition: all .3s ease;
}

.hs-case-all a:hover {
	color: #fff;
	background-color: #0d3276;
	box-shadow: 0 8px 18px rgba(13, 50, 118, .25);
}

/* ===== 空分类提示 ===== */
.hs-case-empty {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 340px;
	padding: 40px 24px 36px;
	text-align: center;
	background: linear-gradient(160deg, #f6f9ff 0%, #ffffff 62%);
	border: 1px dashed #d6e0f0;
	border-radius: 12px;
}

.hs-case-empty-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	margin-bottom: 20px;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 8px 22px rgba(33, 77, 152, .10);
}

.hs-case-empty-ico svg {
	display: block;
}

.hs-case-empty p {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	color: #1c3d75;
	letter-spacing: .5px;
}

.hs-case-empty em {
	max-width: 430px;
	margin-top: 12px;
	font-style: normal;
	font-size: 13.5px;
	line-height: 1.9;
	color: #8b96a8;
}

.hs-case-empty-btn {
	display: inline-flex;
	align-items: center;
	height: 42px;
	margin-top: 22px;
	padding: 0 26px;
	font-size: 14px;
	color: #214d98;
	background-color: #fff;
	border: 1px solid #c9d6ec;
	border-radius: 50px;
	transition: all .3s ease;
}

.hs-case-empty-btn:after {
	content: "";
	width: 6px;
	height: 6px;
	margin-left: 9px;
	border-right: 1.5px solid currentColor;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.hs-case-empty-btn:hover {
	color: #fff;
	background-color: #214d98;
	border-color: #214d98;
	box-shadow: 0 8px 18px rgba(33, 77, 152, .25);
}

/* ===== 荣誉资质：不滚动，1 行 4 个 ===== */
.hs-honours-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-honours-item {
	min-width: 0;
}

.hs-honours-item a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #fff;
	border: 1px solid #e9edf3;
	border-radius: 10px;
	overflow: hidden;
	transition: all .3s ease;
}

.hs-honours-item a:hover {
	border-color: #c9d6ec;
	box-shadow: 0 12px 28px rgba(33, 77, 152, .12);
	transform: translateY(-3px);
}

.hs-honours-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 300px;
	padding: 14px;
	background-color: #fff;
}

.hs-honours-thumb img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform .5s ease;
}

.hs-honours-item a:hover .hs-honours-thumb img {
	transform: scale(1.04);
}

.hs-honours-item p {
	margin: 0;
	padding: 13px 12px;
	border-top: 1px solid #f1f4f8;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-honours-item a:hover p {
	color: #214d98;
}

@media screen and (max-width: 1230px) {
	.hs-case {
		gap: 24px;
	}

	.hs-case-side {
		flex: 0 0 250px;
	}

	.hs-case-grid {
		gap: 16px;
	}

	.hs-case-info h4 {
		font-size: 15px;
	}

	.hs-honours-grid {
		gap: 16px;
	}

	.hs-honours-thumb {
		height: 270px;
	}
}

/* 平板：分类横排，内容仍 3 列 */
@media screen and (max-width: 1079px) {
	.hs-case {
		display: block;
	}

	.hs-case-side {
		margin-bottom: 20px;
	}

	.hs-case-tabs {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.hs-case-tabs::-webkit-scrollbar {
		display: none;
	}

	.hs-case-tabs li {
		flex: 0 0 auto;
		margin: 0;
	}

	.hs-case-tabs a {
		height: 44px;
		line-height: 44px;
		padding: 0 18px;
		font-size: 15px;
		border-radius: 50px;
		white-space: nowrap;
	}

	.hs-case-tabs a:after {
		display: none;
	}

	.hs-case-all a {
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
	}

	.hs-honours-thumb {
		height: 230px;
	}

	.hs-honours-item p {
		font-size: 14px;
	}
}

/* 手机：案例 1 行 2 个；荣誉 1 行 2 个 */
@media screen and (max-width: 767px) {
	.hs-case-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.hs-case-thumb {
		padding-top: 72%;
	}

	.hs-case-info {
		padding: 10px 12px 12px;
	}

	.hs-case-info h4 {
		font-size: 14px;
		line-height: 1.45;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.hs-case-info p {
		display: none;
	}

	.hs-case-more {
		margin-top: 8px;
		font-size: 12px;
	}

	.hs-case-all {
		margin-top: 18px;
	}

	.hs-case-empty {
		min-height: 220px;
		padding: 32px 18px 28px;
	}

	.hs-case-empty-ico {
		width: 62px;
		height: 62px;
		margin-bottom: 14px;
	}

	.hs-case-empty-ico svg {
		width: 26px;
		height: 26px;
	}

	.hs-case-empty p {
		font-size: 15px;
	}

	.hs-case-empty em {
		margin-top: 8px;
		font-size: 12.5px;
		line-height: 1.8;
	}

	.hs-case-empty-btn {
		height: 38px;
		margin-top: 16px;
		padding: 0 20px;
		font-size: 13px;
	}

	.hs-honours-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.hs-honours-thumb {
		height: 200px;
		padding: 10px;
	}

	.hs-honours-item p {
		padding: 10px 8px;
		font-size: 13px;
	}
}

@media screen and (max-width: 390px) {
	.hs-case-info {
		padding: 8px 10px 10px;
	}

	.hs-case-info h4 {
		font-size: 13px;
	}

	.hs-honours-thumb {
		height: 170px;
	}
}
