/* 全局样式重置，但避免影响Bootstrap核心功能 */
body {
	margin: 0;
	padding: 0;
	font-family: "Microsoft YaHei", "Segoe UI", Tahoma, Geneva, Verdana,
		sans-serif;
	line-height: 1.6;
	color: #333;
	overflow-x: hidden; /* 防止页面出现意外的左右滚动条 */
}

/* 为自定义元素添加box-sizing，避免影响Bootstrap */
.custom-element, .custom-wrapper {
	box-sizing: border-box;
}

/* 导航栏样式 */
.navbar {
	transition: all 0.3s ease;
	padding-top: 15px;
	padding-bottom: 15px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo大小设置 */
.navbar-brand img {
	height: 56px;
	width: auto;
	object-fit: contain;
}

/* 导航栏菜单项大幅右移 */
#navbarNav {
	margin-left: 280px;
}

/* 增加导航项间距 */
.nav-item {
	margin-left: 30px !important;
	margin-right: 30px !important;
}

/* 确保覆盖Bootstrap的mx-3类 */
.nav-item.mx-3 {
	margin-left: 30px !important;
	margin-right: 30px !important;
}

/* 导航栏链接样式 */
.navbar-nav .nav-link {
	color: #151619;
	font-size: 16px;
	font-weight: 500;
	position: relative;
	padding: 20px 0;
	transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: #DB0018;
}

.navbar-nav .nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: #DB0018;
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
	width: 100%;
}

/* 导航栏当前页面活跃状态样式 */
.navbar-nav .nav-link.active {
	color: #DB0018;
}

.navbar-nav .nav-link.active::after {
	width: 100%;
}

/* 关于我们冒泡弹窗样式 */
#aboutUsContainer {
	position: relative;
}

/* 为关于我们按钮添加微妙的悬停效果，与弹窗动画协调 */
#aboutUsBtn {
	transition: all 0.3s ease;
}

#aboutUsContainer:hover #aboutUsBtn {
	transform: translateY(-2px); /* 轻微上移，提示交互 */
}

/* 为了确保鼠标移入弹窗区域时弹窗不消失，我们需要在弹窗显示时也保持父元素的hover状态 */
#aboutUsContainer:hover .about-us-dropdown,
.about-us-dropdown:hover {
	visibility: visible;
	transform: translateY(0);
	opacity: 1;
	max-height: 500px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.about-us-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 5px;
	background-color: white;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 初始更淡的阴影 */
	padding: 20px 10px;
	width: 112px;
	font-size: 14px;
	visibility: hidden;
	z-index: 1000;
	/* 从上到下拉出的动画效果 */
	transform: translateY(-8px); /* 减小初始位移，让动画更自然 */
	opacity: 0;
	/* 统一使用更自然的缓动函数，确保所有属性同步变化 */
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			visibility 0s ease 0.4s, 
			box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	max-height: 0;
	overflow: hidden;
}

/* 修复hover时的可见性和过渡效果 */
#aboutUsContainer:hover .about-us-dropdown {
	visibility: visible;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			visibility 0s ease 0s, 
			box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 弹窗内容样式 */
.dropdown-content {
	display: flex;
	flex-direction: column;
}

/* 弹窗按钮样式 */
.dropdown-item {
	background: none;
	border: none;
	text-align: center;
	padding: 12px 20px;
	cursor: pointer;
	color: #151619;
	font-size: 14px;
	transition: all 0.3s ease;
}

/* 弹窗按钮hover效果 */
.dropdown-item:hover {
	background-color: #FEEFF0;
	color: #DB0018;
	font-size: 14px;
}

/* 移动端手拉琴效果 */
@media (max-width: 768px) {
	.about-us-dropdown {
		/* 重置桌面端动画 */
		transform: translateY(0);
		opacity: 1;
		transition: max-height 0.5s ease;
	}
	
	.about-us-dropdown.show {
		/* 保持手拉琴效果 */
		transform: translateY(0);
		opacity: 1;
	}
}

/* Banner大图样式 */
.business-banner {
	width: 100%;
	height: 470px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	overflow: hidden;
	margin-top: 80px; /* 为固定导航栏留出空间 */
}

/* Banner图片样式 */
.banner-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

/* Banner内容容器 */
.banner-content {
	padding-left: 150px;
	max-width: 100%;
	position: relative;
	z-index: 2;
}

/* Banner标题样式 */
.banner-title {
	color: white;
	font-size: 48px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 响应式适配 */
@media (max-width: 768px) {
	.business-banner {
		height: 300px;
	}
	
	.banner-content {
		padding-left: 30px;
	}
	
	.banner-title {
		font-size: 36px;
	}
}

@media (max-width: 480px) {
	.business-banner {
		height: 250px;
	}
	
	.banner-title {
		font-size: 28px;
	}
}

/* 页脚样式 */
footer {
	background: #141519;
	padding-top: 60px;
	padding-bottom: 30px;
	width: 100%;
	margin: 0;
	overflow-x: hidden;
}

/* 使用Bootstrap容器，确保内容在安全区域内 */
footer > .container {
	max-width: 1400px;
	width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

/* 使用Flexbox布局实现居中排列 */
footer .row {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 60px;
	margin: 0 !important;
	width: 100%;
	padding: 0;
}

/* 页脚列样式 */
footer .col-md-3 {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	padding: 0 15px !important;
	display: flex;
	align-items: flex-start;
	margin-bottom: 30px;
}

/* 统一的列内容容器 - 默认上下居中对齐 */
.footer-column-content {
	padding: 10px 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: auto;
}

/* 联系方式和关注品牌监测平台 - 上下对齐，左右靠左对齐 */
.col-md-3:nth-child(3) .footer-column-content,
.col-md-3:nth-child(4) .footer-column-content,
.col-md-3:nth-child(5) .footer-column-content {
	align-items: flex-start;
	text-align: left;
	padding-top: 10px;
}

/* 页脚标题 - 统一标题样式 */
.footer-title {
	font-size: 20px;
	font-weight: 500;
	color: #ffffff;
	text-align: center;
	height: 60px;
	margin-bottom: 0;
	padding-bottom: 0;
	position: relative;
}

.footer-title::after {
	display: none;
}

.footer-title-diff {
	font-size: 20px;
	font-weight: 500;
	color: white;
	text-align: left !important;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* 链接列表 - 关于我们和业务介绍 */
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	text-align: center;
}

.about-us-links, .business-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

/* 链接点击动画 */
.footer-link-item {
	color: #b0b0b0;
	font-size: 18px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-block;
	position: relative;
	padding: 2px 0;
	line-height: 1.4;
}

.footer-link-item::before {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: #ff6b6b;
	transition: width 0.3s ease;
}

.footer-link-item:hover {
	color: #ffffff;
	transform: translateX(5px);
}

.footer-link-item:hover::before {
	width: 100%;
}

/* 联系我们 */
.contact-info {
	margin-top: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* 确保联系地址与联系方式电话元素持平对齐 */
.contact-phone,
.contact-address {
	margin-top: 0;
	padding-top: 0;
}

.contact-content {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
	width: 100%;
	flex-wrap: wrap;
	box-sizing: border-box;
	max-width: 100%;
}

.contact-phone,
.contact-address {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.contact-phone p,
.contact-address p {
	color: #b0b0b0;
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 3px;
}

.contact-phone img,
.contact-address img {
	width: 24px;
	height: 24px;
	margin-bottom: 13px;
}

.contact-group,
.contact-item,
.contact-icon,
.contact-text {
	display: none;
}

footer {
	background: #141519;
	padding-top: 60px;
	padding-bottom: 30px;
	width: 100%;
	margin: 0;
	overflow-x: hidden;
}

/* 移除Bootstrap容器限制，使用自定义容器，并添加左右内边距 */
footer > .container {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* 使用Flexbox布局实现100vw横向排列，每项长度由内部元素决定 */
footer .row {
	display: flex !important;
	flex-direction: row;
	justify-content: center;
	gap: 180px;
	margin: 0 !important;
	width: 100%;
	padding: 0;
}

/* 页脚列样式 - 长度由内部元素决定 */
footer .col-md-3 {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	padding: 0 !important;
	display: flex;
	align-items: flex-start;
}

/* 统一的列内容容器 - 默认上下居中对齐 */
.footer-column-content {
	padding: 10px 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: auto;
}

/* 联系方式和关注品牌监测平台 - 上下对齐，左右靠左对齐 */
.col-md-3:nth-child(3) .footer-column-content,
.col-md-3:nth-child(4) .footer-column-content,
.col-md-3:nth-child(5) .footer-column-content {
	align-items: flex-start;
	text-align: left;
}

/* 页脚标题 - 统一标题样式 */
.footer-title {
	font-size: 20px;
	font-weight: 500;
	color: #ffffff;
	text-align: center;
  height: 60px;
}

.footer-title-diff {
  text-align: left !important;
}

/* 链接列表 - 关于我们和业务介绍 */
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	text-align: center;
}

.about-us-links, .business-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

/* 链接点击动画 */
.footer-link-item {
	color: #b0b0b0;
	font-size: 18px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-block;
	position: relative;
	padding: 2px 0;
	line-height: 1.4;
}

.footer-link-item::before {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: #ff6b6b;
	transition: width 0.3s ease;
}

.footer-link-item:hover {
	color: #ffffff;
	transform: translateX(5px);
}

.footer-link-item:hover::before {
	width: 100%;
}

/* 联系我们 */
.contact-info {
	margin-top: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* 确保联系地址与联系方式电话元素持平对齐 */
.contact-phone,
.contact-address {
	margin-top: 0;
	padding-top: 0;
}

.contact-phone,
.contact-address {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.contact-phone p,
.contact-address p {
	color: #b0b0b0;
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 3px;
}

/* 服务项目展示样式 */
#services {
	background-color: #ffffff;
}

.service-item {
	margin-bottom: 30px;
}

.service-image-container {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

/* 针对不同布局的图片容器高度设置 */
.col-lg-6 .service-image-container {
	height: 300px;
}

.col-lg-4 .service-image-container {
	height: 250px;
}

.service-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.service-image-container:hover .service-image {
	transform: scale(1.05); /* 图片略微放大 */
}

.service-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	opacity: 1;
	transition: all 0.3s ease;
	padding: 25px;
	text-align: left;
  cursor: pointer;
}

.service-image-container:hover .service-overlay {
	background: rgba(0, 0, 0, 0.6);
}

.service-title {
	color: #ffffff;
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 10px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-description {
	color: #ffffff;
	font-size: 16px;
	line-height: 1.6;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-image-container:hover .service-description {
	opacity: 1;
	transform: translateY(0);
}

/* 响应式设计 - 服务项目展示 */
@media (max-width: 992px) {
	.col-lg-6 .service-image-container,
	.col-lg-4 .service-image-container {
		height: 280px;
	}
}

@media (max-width: 768px) {
	.col-lg-6 .service-image-container,
	.col-lg-4 .service-image-container {
		height: 250px;
	}
	
	.service-title {
		font-size: 20px;
	}
	
	.service-description {
		font-size: 14px;
	}
}

@media (max-width: 576px) {
	.col-lg-6 .service-image-container,
	.col-lg-4 .service-image-container {
		height: 220px;
	}
}

/* 数据统计部分样式 */
#statistics {
	background-color: #f8f9fa;
	padding: 80px 0;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	transition: transform 0.3s ease;
}

.stat-item:hover {
	transform: translateY(-5px);
}

/* 数字和图标容器 */
.stat-content {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.stat-icon {
	width: 60px;
	height: 60px;
	margin-right: 15px;
	object-fit: contain;
}

.stat-number {
	font-size: 48px;
	font-weight: bold;
	color: #007bff;
	line-height: 1;
}

.stat-text {
	font-size: 18px;
	color: #333;
	text-align: center;
}

/* 响应式设计 - 数据统计部分 */
@media (max-width: 768px) {
	.stat-item {
		margin-bottom: 30px;
	}
	
	.stat-number {
		font-size: 36px;
	}
	
	.stat-text {
		font-size: 16px;
	}
}

@media (max-width: 576px) {
	#statistics {
		padding: 60px 0;
	}
	
	.stat-number {
		font-size: 28px;
	}
	
	.stat-icon {
		width: 50px;
		height: 50px;
	}
}

/* 二维码容器 */
.qrcode-container {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 0;
	width: 100%;
}

.qrcode-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.qrcode-image {
	width: 80px;
	height: 80px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	padding: 5px;
	background-color: white;
	border-radius: 4px;
	object-fit: cover;
}

.qrcode-text {
	color: #ffffff;
	font-size: 14px;
	margin-top: 14px;
	text-align: center;
}

/* 页脚底部 */
.footer_bottom {
	width: 100%;
	height: 98px;
	background: #333538;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.banner-content {
		padding-left: 100px;
	}
	.banner-title {
		font-size: 48px;
	}
	#navbarNav {
		margin-left: 150px;
	}
}

@media (max-width: 992px) {
	.navbar-nav {
		flex-direction: column;
	}
	.nav-item {
		margin: 10px 0 !important;
	}
	#navbarNav {
		margin-left: 0;
	}
	.banner-content {
		padding-left: 60px;
	}
	.banner-title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.banner-content {
		padding-left: 30px;
	}
	.banner-title {
		font-size: 28px;
	}
}

@media (max-width: 576px) {
	.banner-content {
		padding-left: 20px;
	}
	.banner-title {
		font-size: 24px;
	}
}