/* 服务对象滚动容器 */
.service-target-scroll {
	display: flex;
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: auto;
	min-width: 100%;
	animation: scrollTarget 60s linear infinite;
	animation-fill-mode: forwards;
	will-change: transform;
}

.service-target-container.no-scroll .service-target-scroll {
	width: 100%;
	position: relative;
	animation: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.service-target-container.no-scroll .service-target-item {
	flex: 0 0 calc(100% / 6 - 16px);
	margin: 8px;
}

.service-target-item {
	flex: 0 0 auto;
	padding: 0 8px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.3s ease;
	min-width: 0;
}

/* 服务对象Logo容器 */
.service-target-logo {
	width: 160px;
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
	margin-bottom: 8px;
	position: relative;
	aspect-ratio: 16/9;
}

.service-target-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* 服务对象名称样式 - 彻底重写 */
.service-target-name {
	font-size: 16px;
	color: #005faf;
	text-align: center;
	font-weight: 500;
	width: 160px; /* 与logo同宽 */
	display: block; /* 改为block而不是flexbox */
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
	min-height: 2.8em;
	max-height: 2.8em;
	word-break: break-word;
	word-wrap: break-word;
	white-space: normal; /* 确保可以换行 */
	padding: 0 5px;
	margin: 5px 0 0 0;
	box-sizing: border-box;
	position: relative;
	transition: all 0.3s ease;

	/* 多行文本截断 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* 名称悬停效果 */
.service-target-name:hover {
	white-space: normal;
	overflow: visible;
	z-index: 10;
	background: #fff;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	padding: 8px;
	border-radius: 4px;
	width: auto;
	min-width: 160px;
	max-width: 200px;
	height: auto;
	min-height: auto;
	max-height: none;
	-webkit-line-clamp: unset;
}

/* 关键帧动画 */
@keyframes scrollTarget {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.service-target-container:hover .service-target-scroll {
	animation-play-state: paused;
}

/* 服务对象区域样式 */
.service-target-section {
	max-width: 1200px;
}

.service-target-container {
	position: relative;
	width: 100%;
	height: 180px;
	overflow: hidden;
	margin: 20px 0 40px;
}

.service-target-container.no-scroll {
	height: auto;
	overflow: visible;
}

.service-target-container.no-scroll .service-target-scroll {
	animation: none;
	transform: none;
	justify-content: center;
	position: relative;
	flex-wrap: wrap;
}

/* 调试样式 */
.debug-text {
	border: 1px dashed red; /* 临时添加以便调试 */
}

/* 响应式调整 */
@media (max-width: 1200px) {
	.service-target-logo {
		width: 140px;
		height: 78.75px;
	}
	.service-target-name {
		width: 140px;
	}
}

@media (max-width: 992px) {
	.service-target-logo {
		width: 120px;
		height: 67.5px;
	}
	.service-target-name {
		width: 120px;
		font-size: 14px;
	}
	.service-target-container.no-scroll .service-target-item {
		flex: 0 0 calc(100% / 4 - 16px);
	}
}

@media (max-width: 768px) {
	.service-target-logo {
		width: 100px;
		height: 56.25px;
	}
	.service-target-name {
		width: 100px;
		font-size: 13px;
		min-height: 3.2em;
		max-height: 3.2em;
	}
	.service-target-container.no-scroll .service-target-item {
		flex: 0 0 calc(100% / 3 - 16px);
	}
}

@media (max-width: 576px) {
	.service-target-logo {
		width: 80px;
		height: 45px;
	}
	.service-target-name {
		width: 80px;
		font-size: 12px;
		min-height: 3.6em;
		max-height: 3.6em;
	}
	.service-target-container.no-scroll .service-target-item {
		flex: 0 0 calc(100% / 2 - 16px);
	}
	.service-target-container {
		height: 180px;
	}
}