/*以下是头部*/
.header-box {
	width: 100%;
	height: 100px;
	background: url("../img/topleft.png") #aa1e1e;
	background-size: contain;
}

.header-con img {
	width: 398px;
	height: 68px;
	margin-left: 110px;
	margin-top: 16px;
}

.header-con {
	width: 100%;
	max-width: 1366px;
	height: 100px;
	margin: 0 auto;
}

/*以下是导航*/
.nav-box {
	width: 100%;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid #cccccc;
	position: relative;
	z-index: 999;
}

.nav-con {
	width: 100%;
	max-width: 1366px;
	height: 50px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 20px;
}

.nav-ul {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.nav-ul li {
	flex: 1;
	min-width: 80px;
	max-width: 140px;
	height: 50px;
	border-right: 1px solid #e1e1e1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.nav-ul li:last-child {
	border-right: none;
}

.nav-ul li a {
	height: 50px;
	text-align: center;
	line-height: 50px;
	font-size: 16px;
	color: #666666;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border-radius: 4px;
}

.nav-ul li a:hover {
	color: #AA1E1E;
}

/* 下拉菜单样式 - 统一所有导航项的下拉菜单 */
.nav-ul li .dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: all 0.3s ease;
	z-index: 1000;
	min-width: 140px;
	width: max-content;
	padding: 10px 0;
	list-style: none;
	margin: 0;
}

.nav-ul li .dropdown-menu li {
	display: block;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	height: auto;
	border-right: none;
	flex: none;
	min-width: auto;
	max-width: none;
}

.nav-ul li .dropdown-menu li a {
	display: block;
	padding: 12px 20px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	border-bottom: 1px solid #f5f5f5;
	transition: all 0.2s ease;
	white-space: nowrap;
	height: auto;
	text-align: center;
	background: transparent;
}

.nav-ul li .dropdown-menu li:last-child a {
	border-bottom: none;
}

.nav-ul li .dropdown-menu li a:hover {
	background: #f8f9fa;
	color: #AA1E1E;
	transform: none;
}

.nav-ul li:hover .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* 导航栏父栏目高亮样式 */
.nav-ul li.nav-active {
	background-color: #f8f9fa !important;
}

.nav-ul li.nav-active>a {
	color: #AA1E1E !important;
	background-color: #f8f9fa !important;
	font-weight: 600 !important;
}

.nav-ul li.nav-active>a:hover {
	color: #AA1E1E !important;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
	.nav-ul li {
		min-width: 70px;
		max-width: 120px;
	}

	.nav-ul li a {
		font-size: 14px;
	}
}

@media screen and (max-width: 768px) {
	.header-con {
		padding: 0 10px;
	}

	.header-con img {
		width: 300px;
		height: auto;
		margin-left: 20px;
	}

	.nav-con {
		padding: 0 10px;
		height: 45px;
	}

	.nav-ul li {
		min-width: 60px;
		max-width: 100px;
		height: 45px;
	}

	.nav-ul li a {
		font-size: 12px;
		height: 45px;
		line-height: 45px;
	}

	.nav-dropdown .dropdown-menu {
		min-width: 120px;
	}

	.nav-dropdown .dropdown-menu li a {
		padding: 8px 16px;
		font-size: 13px;
		text-align: center;
	}
}

@media screen and (max-width: 480px) {
	.header-box {
		height: 80px;
	}

	.header-con {
		height: 80px;
	}

	.header-con img {
		width: 250px;
		margin-top: 10px;
	}

	.nav-con {
		height: 40px;
	}

	.nav-ul li {
		min-width: 50px;
		max-width: 80px;
		height: 40px;
	}

	.nav-ul li a {
		font-size: 11px;
		height: 40px;
		line-height: 40px;
	}

	.nav-dropdown .dropdown-menu {
		min-width: 100px;
	}

	.nav-dropdown .dropdown-menu li a {
		padding: 6px 12px;
		font-size: 12px;
		text-align: center;
	}
}