/* 容器 */
.service-container {
	/* max-width: 1200px; */
	margin: 5%;
}

/* 标题 */
.service-title {
	font-size: 2rem;
	color: #333;
	text-align: center;
	margin-bottom: 25px;
}

/* 顶部服务卡片 */
.service-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	/* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

/* 图片容器（横向渐变虚化） */
.service-card-img {
	width: 50%;
	/* height: 350px; */
	position: relative;
	overflow: hidden;
}

.service-original-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}



/* 服务热线信息区 */
.service-hotline-info {
	width: 100%;
	padding: 40px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.service-hotline-icon {
	width: 60px;
	height: 60px;
	margin-bottom: 15px;
}

.service-hotline-title {
	font-size: 2rem;
	color: #333;
	margin-bottom: 20px;
}

.service-hotline-info p {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 5px;
}
.service-phone-number {
	color: #0d6efd;
	font-weight: 500;
	font-size: 2rem;
}

/* 底部联系渠道卡片 */
.service-links {
	display: flex;
	gap: 30px;
	margin-top: 20px;
	width: 100%;
}

.service-link-card {
	background: #fff;
	border-radius: 12px;
	padding: 30px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	/* 弹窗定位父级 */
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	/* 关键：移动端不设置overflow，避免遮挡弹窗 */
}

.service-link-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-link-icon {
	width: 50px;
	height: 50px;
	margin-bottom: 10px;
}

.service-link-title {
	font-size: 18px;
	color: #333;
	margin-bottom: 8px;
}

.service-link-desc {
	font-size: 14px;
	color: #666;
}

/* 二维码弹窗基础样式 */
.service-qrcode-popup {
	position: absolute;
	left: 50%;
	background: #fff;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
	text-align: center;
	width: 200px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
	/* 提高层级，确保不被遮挡 */
}

.service-qrcode-img {
	width: 170px;
	height: 170px;
	margin-bottom: 8px;
	display: block;
}

.service-qrcode-text {
	font-size: 14px;
	color: #666;
}

/* 桌面端：弹窗在卡片上方 */
@media (min-width: 769px) {
	.service-qrcode-popup {
		bottom: 100%;
		transform: translateX(-50%) translateY(10px);
		margin-bottom: 10px;
	}

	.service-qrcode-popup::after {
		content: '';
		position: absolute;
		bottom: -8px;
		left: 50%;
		transform: translateX(-50%);
		border-width: 8px 8px 0;
		border-style: solid;
		border-color: #fff transparent transparent;
	}

	.service-link-card:hover .service-qrcode-popup {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}
}

/* 移动端（768px以下）：弹窗在卡片上方，避免下方被截断 */
@media (max-width: 768px) {
	.service-card {
		flex-direction: column;
	}

	.service-card-img,
	.service-hotline-info {
		width: 100%;
	}


	.service-links {
		flex-direction: column;
		gap: 30px;
		/* 增加卡片间距，避免弹窗重叠 */
	}

	/* 移动端二维码弹窗：固定在卡片上方，确保完整显示 */
	.service-qrcode-popup {
		top: auto;
		bottom: 100%;
		/* 显示在卡片上方（而非下方） */
		transform: translateX(-50%) translateY(-10px);
		/* 初始位置在卡片上边缘外 */
		margin-bottom: 10px;
		/* 与卡片保持间距 */
	}

	/* 箭头方向：向下指向卡片 */
	.service-qrcode-popup::after {
		content: '';
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		border-width: 8px 8px 0;
		border-style: solid;
		border-color: #fff transparent transparent;
		transform: rotate(180deg) translateX(50%);
	}

	/* 悬停时弹窗移至可见位置 */
	.service-link-card:hover .service-qrcode-popup {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
		/* 完全显示在卡片上方 */
	}
}