/* 服务卡片优化 - 统一布局和现代化设计 */

.index .service {
	padding: 80px 0;
	background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
}

.index .service ul {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.index .service ul li {
	flex: 1;
	margin: 0;
}

.index .service ul li .box {
	width: 100%;
	height: 320px; /* 固定高度确保统一 */
	padding: 40px 25px;
	background: #fff;
	text-align: center;
	cursor: pointer;
	border-radius: 20px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

/* 顶部装饰条 */
.index .service ul li .box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #1abc9e 0%, #007bff 100%);
	transform: scaleX(0);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.index .service ul li:last-child .box {
	margin-right: 0;
}

/* 图标样式 */
.index .service ul li img {
	width: 100px;
	height: 100px;
	object-fit: contain;
	margin-bottom: 25px;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.index .service ul li:hover img {
	transform: scale(1.1) rotate(5deg);
}

/* 标题样式 */
.index .service ul li p {
	font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 15px;
	padding: 0 10px;
	color: #333;
	line-height: 1.3;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

/* 分隔线 */
.index .service ul li i {
	width: 40px;
	height: 3px;
	background: linear-gradient(90deg, #1abc9e 0%, #007bff 100%);
	display: block;
	margin: 0 auto 20px;
	border-radius: 2px;
	transition: all 0.4s ease;
	flex-shrink: 0;
}

/* 描述文字 */
.index .service ul li span {
	display: block;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	padding: 0 10px;
	color: #666;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: all 0.3s ease;
	max-height: 90px;
	overflow: hidden;
}

/* 悬停效果 */
.index .service ul li .box:hover {
	background: linear-gradient(135deg, #1abc9e 0%, #007bff 100%);
	transform: translateY(-15px);
	box-shadow: 0 25px 50px rgba(26, 188, 156, 0.4);
	color: #fff;
}

.index .service ul li .box:hover::before {
	transform: scaleX(1);
}

.index .service ul li:hover p,
.index .service ul li:hover span {
	color: #fff;
}

.index .service ul li:hover i {
	background: #fff;
	width: 60px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
	.index .service ul li .box {
		height: 300px;
		padding: 35px 20px;
	}

	.index .service ul li img {
		width: 90px;
		height: 90px;
		margin-bottom: 20px;
	}

	.index .service ul li p {
		font-size: 18px;
	}

	.index .service ul li span {
		font-size: 13px;
	}
}

@media (max-width: 1200px) {
	.index .service ul {
		flex-wrap: wrap;
		justify-content: center;
		gap: 25px;
	}

	.index .service ul li {
		flex: 0 0 calc(50% - 25px);
		max-width: calc(50% - 25px);
	}

	.index .service ul li .box {
		height: 280px;
		padding: 30px 20px;
	}
}

@media (max-width: 768px) {
	.index .service {
		padding: 60px 0;
	}

	.index .service ul {
		flex-direction: column;
		gap: 20px;
	}

	.index .service ul li {
		flex: 1;
		max-width: 100%;
	}

	.index .service ul li .box {
		height: 250px;
		padding: 25px 15px;
	}

	.index .service ul li img {
		width: 80px;
		height: 80px;
		margin-bottom: 15px;
	}

	.index .service ul li p {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.index .service ul li span {
		font-size: 12px;
		max-height: 60px;
	}
}