/* 重置默认样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	list-style: none;
	text-decoration: none;
}

body {
	margin-top: 80px;
}

/* 导航栏主容器 */
.nav-header {
	width: 100%;
	height: 80px;
	background-color: #2c3e50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	transition: background-color 0.3s ease;
}

/* Logo容器 */
.header-logo img {
	width: 150px;
	transition: content 0.3s ease;
}

/* 一级菜单外层容器 */
.header-main {
	display: flex;
	align-items: center;
	gap: 5px;
	position: relative;
}

/* 一级菜单链接 */
.header-item > a {
	position: relative;
	display: block;
	padding: 30px 20px;
	color: #fff;
	font-size: 16px;
	transition: background-color 0.3s;
}

/* 右上角圆形标记 */
.header-item > a::after {
	content: '';
	position: absolute;
	top: 60px;
	left: 48%;
	width: 8px;
	height: 8px;
	background-color: #656565;
	opacity: 0;
	transform: scale(0) rotate(30deg);
	transition: all 0.3s ease;
}

.header-item:hover > a::after {
	opacity: 1;
	transform: scale(1) rotate(45deg);
}

/* 全屏二级菜单容器 */
.full-width-submenu-container {
	position: fixed;
	top: 80px;
	left: 0;
	width: 100%;
	background-color: #fff;
	color: black;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	display: none;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 9998;
}

.full-width-submenu-container.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

/* 二级菜单内部列表 - 统一所有二级菜单的样式 */
.header-submenu {
	/*width: 100%;*/
	margin: 0 auto;
	padding: 0px 85px; /* 统一内边距 */
	display: flex;
	justify-content: space-between;
	/*gap: 40px;*/
}

/* 每个二级菜单列的标题 */
.header-submenu .column-title {
	font-weight: bold;
	color: #000;
	margin-bottom: 10px;
}

/* 二级菜单链接 */
.header-submenu li a {
	display: block;
	padding: 5px 0;
	color: #000;
	font-size: 14px;
	transition: color 0.2s;
}

.header-submenu li a:hover {
	color: #3455fc;
}

/* 右侧功能区 */
.header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-right img {
	width: 24px;
	margin: -30px 0 0 -40px;
	z-index: 1;
}

.buy-btn {
	background: linear-gradient(90deg, #3455fc, #9b10ff);
	color: #fff;
	padding: 10px 25px;
	border-radius: 50px;
	font-weight: bold;
	transition: all 0.3s;
	border: none;
	cursor: pointer;
}

.buy-btn:hover {
	background: linear-gradient(90deg, #1b3dfc, #9500ff);
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(52, 85, 252, 0.4);
}

/* 滚动效果 */
.nav-header {
	background-color: transparent;
	transition: background-color 0.3s ease;
}

.nav-header.scrolled {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2));
	backdrop-filter: blur(50px);
	-webkit-backdrop-filter: blur(50px);
	color: black;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-header.white-bg {
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-header.white-bg .header-item a {
	color: #333;
}

.nav-header.white-bg .logo-img {
	content: url('../image/home-logo.png');
}

/* 解决方案二级菜单 */
#submenu-solution {
	display: none;
	width: 100%;
}

.header-solution {
	flex: 3;
	min-width: 300px;
}

.header-solution2 {
	flex: 1;
	min-width: 200px;
}

.solution-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.solution-content-list {
	text-align: center;
	transition: transform 0.3s ease;
}

.solution-content-list:hover {
	transform: translateY(-5px);
}

.solution-image-container {
	width: 100%;
	height: 100px;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 10px;
}

.solution-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.solution-content-list:hover .solution-image-container img {
	transform: scale(1.05);
}

.solution-content-link {
	font-size: 14px;
	color: #000;
	display: block;
	margin-top: 8px;
}

.solution-links {
	margin-top: 15px;
}

.solution-links li {
	margin-bottom: 8px;
}

/* 产品中心二级菜单 */
#submenu-product {
	display: none;
	width: 100%;
}

.product-card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	padding: 30px 0;
}

.product-card-content {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 15px;
	transition: all 0.3s ease;
	border: 1px solid #eee;
}

.product-card-content:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	background: #fff;
}

.product-card-matter {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.product-image-container {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
}

.product-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card-info {
	flex: 1;
}

.product-card-info h4 {
	font-size: 15px;
	margin-bottom: 8px;
	color: #333;
}

.product-card-info p {
	font-size: 12px;
	color: #666;
	line-height: 1.5;
}

/* 行业应用二级菜单 */
#submenu-industry {
	display: none;
	width: 100%;
}

.industry-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.industry-content-list {
	text-align: center;
	transition: transform 0.3s ease;
}

.industry-content-list:hover {
	transform: translateY(-5px);
}

.industry-image-container {
	width: 100%;
	height: 100px;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 10px;
}

.industry-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.industry-content-list:hover .industry-image-container img {
	transform: scale(1.05);
}

.industry-content-link {
	font-size: 14px;
	color: #000;
	display: block;
	margin-top: 8px;
}

/* 汉堡菜单样式 */
.hamburger-btn {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 10000;
}

.hamburger-line {
	width: 100%;
	height: 3px;
	background-color: #fff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.nav-header.white-bg .hamburger-line {
	background-color: #333;
}

/* 移动端菜单容器 */
.mobile-menu {
	position: fixed;
	top: 80px;
	left: 0;
	width: 100%;
	height: calc(100vh - 80px);
	background-color: #fff;
	z-index: 9997;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	padding: 20px;
}

.mobile-menu.active {
	transform: translateX(0);
}

body.menu-open {
	overflow: hidden;
}

/* 汉堡菜单动画 */
.hamburger-btn.active .hamburger-line:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
	opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* 媒体查询 */
@media (max-width: 1024px) {
	.header-main {
		gap: 2px;
	}
	
	.header-item > a {
		padding: 30px 15px; /* 增加内边距确保点击区域 */
		font-size: 14px;
	}
	
	.buy-btn {
		padding: 8px 18px;
		font-size: 14px;
	}
	
	.header-submenu {
		padding: 25px 40px;
		gap: 30px;
	}
	
	#submenu-industry {
		padding: 25px 40px;
	}
	
	.product-card {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 15px;
	}
}

/* 专门针对 768px-1024px 的断点，确保点击区域足够 */
@media (max-width: 1024px) and (min-width: 769px) {
	.header-item > a {
		padding: 30px 18px; /* 在这个范围内更大的内边距 */
		font-size: 15px;
	}
	
	.header-main {
		gap: 8px;
	}
}

@media (max-width: 768px) {
	.nav-header {
		padding: 0 15px;
	}
	
	.header-main,
	.header-right {
		display: none;
	}
	
	.hamburger-btn {
		display: flex;
	}
	
	/* 移动端菜单项 */
	.mobile-menu .header-item {
		width: 100%;
		border-bottom: 1px solid #f0f0f0;
		position: relative;
		padding: 0;
	}
	
	.mobile-menu .header-item > a {
		color: #333;
		padding: 15px 0;
		font-weight: 500;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	
	/* 添加下拉箭头 */
	.mobile-menu .header-item[data-submenu-id] > a::after {
		content: '›';
		font-size: 18px;
		transform: rotate(90deg);
		transition: transform 0.3s ease;
	}
	
	.mobile-menu .header-item[data-submenu-id].active > a::after {
		transform: rotate(-90deg);
	}
	
	/* 移动端二级菜单 */
	.mobile-menu .header-submenu {
		position: static;
		width: 100%;
		display: none !important;
		background: #f8f9fa;
		margin: 10px 0;
		padding: 15px;
		border-radius: 8px;
		border-left: 3px solid #3455fc;
		text-align: right;
	}
	
	.mobile-menu .header-item.active .header-submenu {
		display: block !important;
	}
	
	/* 移动端布局调整 */
	.header-submenu {
		flex-direction: column;
		padding: 15px 20px;
		gap: 20px;
	}
	
	#submenu-industry {
		padding: 15px 20px;
	}
	
	.header-solution,
	.header-solution2 {
		flex: none;
		width: 100%;
	}
	
	.solution-content {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.product-card {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 15px 0;
	}
	
	.industry-card {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.mobile-menu {
		padding: 15px;
	}
	
	.mobile-menu .header-item > a {
		padding: 12px 0;
		font-size: 15px;
	}
	
	.mobile-menu .header-submenu {
		padding: 12px;
	}
	
	.header-submenu {
		padding: 10px 15px;
	}
	
	#submenu-industry {
		padding: 10px 15px;
	}
}

