/* ========================================
 * Smart Customer Service
 * ======================================== */
.smart-customer-service {
	position: fixed;
	right: 30px;
	bottom: 100px;
	z-index: 9998;
	font-family: var(--loopes-font);
}

.cs-toggle-btn {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #1863AB 0%, #1e87e4 100%);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(24, 99, 171, 0.4);
	transition: all 0.3s ease;
	color: #fff;
}

.cs-toggle-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(24, 99, 171, 0.5);
}

.cs-toggle-btn i {
	font-size: 24px;
	margin-bottom: 2px;
}

.cs-toggle-text {
	font-size: 10px;
	white-space: nowrap;
}

.cs-popup {
	position: absolute;
	right: 0;
	bottom: 70px;
	width: 320px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
	display: none;
	overflow: hidden;
}

.cs-popup.active {
	display: block;
	animation: csPopupSlide 0.3s ease;
}

@keyframes csPopupSlide {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.cs-popup-header {
	background: linear-gradient(135deg, #1863AB 0%, #1e87e4 100%);
	color: #fff;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cs-popup-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
}

.cs-popup-header h4 i {
	margin-right: 8px;
}

.cs-popup-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.3s ease;
}

.cs-popup-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.cs-popup-body {
	padding: 20px;
}

.cs-working-hours {
	background: #f8f9fa;
	padding: 10px 15px;
	border-radius: 8px;
	font-size: 13px;
	color: #666;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
}

.cs-working-hours i {
	color: #1863AB;
	margin-right: 8px;
}

.cs-quick-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}

.cs-action-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 15px 10px;
	background: #f0f7ff;
	border-radius: 10px;
	text-decoration: none;
	color: #1863AB;
	transition: all 0.3s ease;
}

.cs-action-item:hover {
	background: #1863AB;
	color: #fff;
	transform: translateY(-3px);
}

.cs-action-item i {
	font-size: 24px;
	margin-bottom: 8px;
}

.cs-action-item span {
	font-size: 13px;
}

.cs-contact-info {
	border-top: 1px solid #eee;
	padding-top: 15px;
	margin-bottom: 15px;
}

.cs-contact-item {
	display: flex;
	align-items: center;
	padding: 8px 0;
	font-size: 13px;
	color: #666;
}

.cs-contact-item i {
	width: 24px;
	color: #1863AB;
}

.cs-wechat-section {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 10px;
	text-align: center;
}

.cs-wechat-section h5 {
	margin: 0 0 12px;
	font-size: 14px;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cs-wechat-section h5 i {
	color: #07C160;
	margin-right: 8px;
	font-size: 18px;
}

.cs-wechat-qrcode {
	width: 100px;
	height: 100px;
	margin: 0 auto;
	background: #fff;
	padding: 5px;
	border-radius: 8px;
}

.cs-wechat-qrcode img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 768px) {
	.smart-customer-service {
		right: 20px;
		bottom: 90px;
	}

	.cs-toggle-btn {
		width: 54px;
		height: 54px;
	}

	.cs-toggle-btn i {
		font-size: 20px;
	}

	.cs-popup {
		width: 280px;
		right: -10px;
	}
}

/* ========================================
 * Service Section
 * ======================================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.service-single-item {
	animation: fadeInUp 0.6s ease-out both;
	display: flex;
	align-items: stretch;
}

/* 服务卡片基础样式 */
.single-service-card {
	cursor: pointer;
	position: relative;
	overflow: hidden;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.single-service-card .service-card-inner {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 40px 28px;
	text-align: center;
}

/* 图标样式 */
.single-service-card .service-icon-wrapper {
	position: relative;
	z-index: 1;
	padding-top: 10px;
	margin-bottom: 20px;
}

.single-service-card .service-icon {
	position: relative;
	z-index: 1;
}

.single-service-card .service-icon i {
	font-size: 42px;
	color: #1a73e8;
	transition: all 0.4s ease;
}

.single-service-card h5 {
	margin: 0 0 16px 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1a1a;
	transition: color 0.3s ease;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-service-card .service-content {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.single-service-card .service-content p {
	margin: 0;
	color: #666666;
	line-height: 1.7;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease;
}

/* 发光效果 - 不拦截点击 */
.single-service-card .service-card-glow {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(26, 115, 232, 0.08) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 0;
	pointer-events: none;
}

/* 悬停效果 */
.single-service-card:hover .service-card-inner {
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(26, 115, 232, 0.15) !important;
}

.single-service-card:hover .service-card-glow {
	opacity: 1 !important;
}

.single-service-card:hover .service-icon i {
	color: #1a73e8 !important;
	transform: scale(1.15);
}

.single-service-card:hover h5 {
	color: #1a73e8 !important;
}

.single-service-card:hover .service-content p {
	color: #555 !important;
}

.service-icon .fa {
	font-family: 'FontAwesome' !important;
	font-style: normal !important;
	font-weight: normal !important;
}

.view-all-services:hover {
	background: linear-gradient(135deg, #1a73e8, #1557b0) !important;
	border-color: #1a73e8 !important;
	color: #fff !important;
}

.view-all-services:hover i {
	transform: translateX(4px);
}

@media (max-width: 991px) {
	.services-area {
		padding: 80px 0;
	}
	.section-title {
		margin-bottom: 50px !important;
	}
	.section-title h2 {
		font-size: 34px !important;
	}
}

@media (max-width: 767px) {
	.services-area {
		padding: 60px 0;
	}
	.section-title {
		margin-bottom: 40px !important;
	}
	.section-title h2 {
		font-size: 28px !important;
	}
	.section-label {
		font-size: 11px !important;
		letter-spacing: 2px !important;
	}
	.single-service-card {
		margin-bottom: 30px !important;
	}
	.service-icon-wrapper {
		padding: 30px 20px 20px !important;
	}
	.service-icon-bg {
		width: 70px !important;
		height: 70px !important;
		top: 20px !important;
	}
	.service-icon i {
		font-size: 32px !important;
	}
	.service-content {
		padding: 0 20px 25px !important;
	}
	h5 {
		font-size: 18px !important;
	}
}

@media (max-width: 575px) {
	.section-title h2 {
		font-size: 24px !important;
	}
	.service-icon-wrapper {
		padding: 25px 15px 15px !important;
	}
	.service-icon i {
		font-size: 28px !important;
	}
	.service-content {
		padding: 0 15px 20px !important;
	}
}

/* ========================================
 * News Section
 * ======================================== */
.news-single-item {
	animation: fadeInUp 0.6s ease-out both;
	display: flex;
	align-items: stretch;
	height: 480px; /* 固定高度确保所有卡片一致 */
}

/* 卡片基础样式 */
.news-card {
	cursor: pointer;
	position: relative;
	overflow: hidden;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.news-card .card-inner {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

/* 封面图固定高度 */
.news-card .news-thumbnail {
	flex-shrink: 0;
	height: 180px; /* 稍微减小以适应固定高度 */
	position: relative;
	overflow: hidden;
}

.news-card .news-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

/* 分类标签 */
.news-card .news-category {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
}

.news-card .news-category span {
	display: inline-block;
	background: linear-gradient(135deg, #1a73e8, #1557b0);
	color: #fff;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* 内容区域 */
.news-card-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-card-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.news-card-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #999;
}

.news-card-meta i {
	font-size: 11px;
}

.news-card-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 12px 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease;
}

.news-card-excerpt {
	margin: 0 0 16px 0;
	color: #666666;
	line-height: 1.7;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card-readmore {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1a73e8;
	font-weight: 500;
	font-size: 14px;
	margin-top: auto;
	transition: color 0.3s ease;
}

.news-card:hover .news-card-readmore {
	color: #1557b0;
}

.news-card:hover .news-card-readmore i {
	transform: translateX(4px);
}

/* 发光效果 - 不拦截点击 */
.news-card .card-glow {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(26, 115, 232, 0.08) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 0;
	pointer-events: none;
}

/* 卡片悬停效果 */
.news-card:hover .card-inner {
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(26, 115, 232, 0.15) !important;
}

.news-card:hover .card-glow {
	opacity: 1 !important;
}

.news-card:hover .news-thumbnail img {
	transform: scale(1.08);
}

.news-card:hover .news-card-title {
	color: #1a73e8 !important;
}

/* 摘要颜色变化 */
.news-card:hover .news-card-excerpt {
	color: #555 !important;
}

/* 查看更多按钮 */
.view-all-news:hover {
	background: linear-gradient(135deg, #1a73e8, #1557b0) !important;
	border-color: #1a73e8 !important;
	color: #fff !important;
}

.view-all-news:hover i {
	transform: translateX(4px);
}

@media (max-width: 991px) {
	.news-area {
		padding: 80px 0;
	}
	.section-title {
		margin-bottom: 50px !important;
	}
	.section-title h2 {
		font-size: 34px !important;
	}
	.news-single-item {
		height: 450px;
	}
}

@media (max-width: 767px) {
	.news-area {
		padding: 60px 0;
	}
	.section-title {
		margin-bottom: 40px !important;
	}
	.section-title h2 {
		font-size: 28px !important;
	}
	.section-label {
		font-size: 11px !important;
		letter-spacing: 2px !important;
	}
	.news-single-item {
		height: auto;
		min-height: 400px;
	}
	.news-card {
		margin-bottom: 30px !important;
	}
	.news-card-content {
		padding: 20px !important;
	}
	.news-card-title {
		font-size: 16px !important;
	}
}

@media (max-width: 575px) {
	.section-title h2 {
		font-size: 24px !important;
	}
	.news-card-content {
		padding: 16px !important;
	}
	.news-single-item {
		min-height: 380px;
	}
}

/* ========================================
 * Partner Section
 * ======================================== */
/* 合作伙伴卡片悬停效果 */
.partner-item {
	cursor: pointer;
}

.partner-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.partner-item:hover .partner-logo {
	filter: grayscale(0%) !important;
	opacity: 1 !important;
	transform: scale(1.05);
}

.partner-item:hover h5 {
	color: #1a73e8 !important;
}

/* 响应式 */
@media (max-width: 991px) {
	.partner-area {
		padding: 80px 0;
	}
	.section-title {
		margin-bottom: 50px !important;
	}
	.section-title h2 {
		font-size: 34px !important;
	}
}

@media (max-width: 767px) {
	.partner-area {
		padding: 60px 0;
	}
	.section-title {
		margin-bottom: 40px !important;
	}
	.section-title h2 {
		font-size: 28px !important;
	}
	.section-label {
		font-size: 11px !important;
		letter-spacing: 2px !important;
	}
	.partner-item {
		padding: 20px !important;
	}
	.partner-item img {
		max-width: 120px !important;
	}
}

@media (max-width: 575px) {
	.section-title h2 {
		font-size: 24px !important;
	}
}

/* ========================================
 * Footer Contact List
 * ======================================== */
.footer-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-contact-list .contact-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
	word-break: break-all;
}

.footer-contact-list .contact-item:last-child {
	margin-bottom: 0;
}

.footer-contact-list .contact-item i {
	flex-shrink: 0;
	width: 16px;
	margin-top: 3px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
}

.footer-contact-list .contact-item a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-contact-list .contact-item a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-contact-list .contact-phone a,
.footer-contact-list .contact-email a {
	white-space: nowrap;
}

/* ========================================
 * Navigation Dropdown Menu Refined
 * ======================================== */
.navbar-nav .dropdown-menu {
	background: #fff;
	border: none;
	border-radius: 10px;
	padding: 6px 0;
	left: 0;
	top: -999em;
	display: block;
	width: 230px;
	opacity: 0;
	visibility: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
	transform: translateY(-6px);
}

.navbar-nav > li.rollover > .dropdown-menu,
.navbar-nav > li.nav-opened > .dropdown-menu,
.navbar-nav > li:hover > .dropdown-menu {
	top: 100%;
	margin-top: 4px;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.navbar-nav .dropdown-menu li {
	position: relative;
}

.navbar-nav .dropdown-menu li a {
	padding: 8px 20px;
	color: #414650;
	background: transparent;
	font-size: 14px;
	transition: all 0.2s ease;
}

.navbar-nav .dropdown-menu li a:hover,
.navbar-nav .dropdown-menu li a:focus {
	color: #1863AB;
	background: #f0f7ff;
}

/* 三级菜单 */
.navbar-nav .dropdown-menu .dropdown-menu {
	left: 100%;
	top: -6px;
	margin-left: 4px;
	transform: translateY(-4px);
}

.navbar-nav .dropdown-menu li.rollover > .dropdown-menu,
.navbar-nav .dropdown-menu li.nav-opened > .dropdown-menu,
.navbar-nav .dropdown-menu li:hover > .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* 三级菜单箭头指示器 */
.navbar-nav .dropdown-menu li.dropdown > a:after {
	content: "\f105";
	display: block;
	position: absolute;
	top: 50%;
	right: 14px;
	opacity: 0.4;
	margin-top: -7px;
	height: 14px;
	width: 12px;
	text-align: center;
	font-size: 13px;
	line-height: 14px;
	font-family: "FontAwesome";
	transition: transform 0.2s ease;
	color: #414650;
}

.navbar-nav .dropdown-menu li.dropdown > a:hover:after {
	opacity: 0.7;
	color: #1863AB;
}

/* active 状态 */
.navbar-nav .dropdown-menu > .active > a,
.navbar-nav .dropdown-menu > .active > a:focus,
.navbar-nav .dropdown-menu > .active > a:hover,
.navbar-nav ul li.active > a,
.navbar-nav ul li.rollover > a {
	color: #1863AB;
	background: #f0f7ff;
}

/* 一级导航当前下级展开指示器 */
.navbar-nav > li.has-children > a:after {
	color: currentColor;
	content: "\f107";
	display: inline-block;
	opacity: 0.5;
	width: 9px;
	text-align: center;
	margin-left: 4px;
	font-size: 12px;
	line-height: 0.9;
	font-family: "FontAwesome";
	transition: transform 0.3s ease;
}

/* header-s1 下的一级导航样式修复 */
.header-s1 .navbar-nav > li > a {
	padding-top: 30px;
	padding-bottom: 30px;
	color: inherit;
}

@media (max-width: 767px) {
	/* 移动端：恢复手风琴式展开，白色背景深色文字 */
	.navbar-nav .dropdown-menu {
		position: static;
		background: transparent;
		width: 100%;
		display: none;
		opacity: 1 !important;
		visibility: visible !important;
		box-shadow: none;
		transform: none;
		border-radius: 0;
		padding: 0;
	}

	.navbar-nav li.nav-opened > .dropdown-menu {
		display: block;
	}

	.navbar-nav .dropdown-menu li a {
		color: #475569;
		padding: 12px 15px;
	}

	.navbar-nav .dropdown-menu li a:hover,
	.navbar-nav .dropdown-menu li a:focus {
		color: #1a73e8;
		background: rgba(0, 0, 0, 0.04);
	}

	.navbar-nav .dropdown-menu li.dropdown > a:after {
		color: #475569;
		right: 15px;
		top: 22px;
		margin-top: 0;
	}

	.navbar-nav .dropdown-menu > .active > a,
	.navbar-nav ul li.active > a {
		color: #1a73e8;
		background: rgba(0, 0, 0, 0.04);
	}

	/* 三级菜单 */
	.navbar-nav .dropdown-menu .dropdown-menu {
		left: 0;
		margin-left: 0;
	}
}
