/* ============================================
   头部样式 (Header Styles)
   ============================================ */

/* 头部区域 */
.header {
	width: 100%;
	height: 247px;
	background-color: #ffffff;
	border-bottom: 1px solid #ffffff;
	padding: 0;
	background-image: url('../images/banner0411.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.header > .container {
	position: relative;
	height: 100%;
	max-width: 1200px !important;
	width: 100%;
	box-sizing: border-box;
}

/* Logo 样式 - 与参考网站保持一致 */
.header .logo {
	position: absolute;
	top: 65px;
	left: 0;
	width: 425px;
	height: 105px;
	display: block;
}

/* 搜索框样式 */
.header .search {
	width: 270px;
	border: 1px solid #ffffff;
	border-radius: 4px;
	top: 65px;
	right: -80px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.header .search input {
	border: 0px;
	height: 40px;
	background-color: transparent;
	position: relative;
	width: 200px;
	font-size: 16px;
	padding-left: 8px;
	color: #ffffff;
	outline: none;
}
.header .search input::after {
	content: '';
	width: 2px;
	height: 22px;
	background-color: #ffffff;
}
.header .search i {
	display: block;
	background: url(../images/search-ico.png) no-repeat;
	width: 29px;
	margin: 0px 8px;
	height: 28px;
	position: relative;
	cursor: pointer;
}
.header .search i::after {
	content: '';
	width: 2px;
	height: 22px;
	background-color: #ffffff;
	display: block;
	position: absolute;
	top: 50%;
	left: -12px;
	transform: translateY(-50%);
}
::-webkit-input-placeholder {
	color: #ffffff;
}
input::-moz-placeholder {
	color: #ffffff;
}

/* ============================================
   导航栏样式 (Navigation Bar Styles)
   ============================================ */

.banner {
	width: 100%;
	background-color: rgb(27, 107, 180);
	position: relative;
	height: 70px;
	margin-bottom: 20px;
}

.banner .container {
	position: relative;
	max-width: 1200px !important;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* 导航菜单列表 */
.banner ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	width: 100%;
}

.banner > .container > ul {
	justify-content: flex-start;
}

/* 导航项 */
.banner .item {
	flex: 1;
	position: relative;
}

/* 导航项分割线 */
.banner .item:not(:last-child)::after {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 0;
	content: url(../images/banner_line.jpg);
}

.banner .item > a {
	display: block;
	padding: 15px 10px;
	color: #ffffff;
	text-decoration: none;
	font-size: 18px;
	line-height: 40px;
	white-space: nowrap;
	height: 70px;
	box-sizing: border-box;
	text-align: center;
	width: 100%;
}

.banner .item:hover > a,
.banner .item > a:hover {
	background-color: #0f81e8;
}

/* 下拉菜单 */
.banner .item > ul {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #ffffff;
	min-width: 160px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	display: none;
	flex-direction: column;
	z-index: 1000;
	padding: 5px 0;
	list-style: none;
	margin: 0;
}

.banner .item:hover > ul {
	display: flex;
}

.banner .item > ul li {
	width: 100%;
	padding: 16px 0px;
	line-height: 24px;
	font-size: 18px;
	display: block;
}

.banner .item > ul li a {
	display: block;
	color: #333;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

/* 移动端菜单按钮 */
.banner .mobileMenu {
	display: none;
	width: 40px;
	height: 40px;
	left: 15px;
	top: 15px;
	cursor: pointer;
	z-index: 1001;
	background-color: #1b6bb4;
	border-radius: 4px;
	padding: 0;
	position: fixed;
	box-sizing: border-box;
	object-fit: contain;
}

.banner .mobileMenu img {
	width: 100%;
	height: 100%;
	display: block;
	padding: 8px;
	box-sizing: border-box;
	pointer-events: none;
}

/* 打开菜单按钮 - 使用 CSS 绘制汉堡图标 */
.banner .openMenu {
	display: none;
}

.banner .openMenu::before {
	content: '';
	display: block;
	width: 20px;
	height: 2px;
	background-color: #ffffff;
	box-shadow: 0 6px 0 #ffffff, 0 12px 0 #ffffff;
	margin: 4px auto;
}

/* 关闭菜单按钮 - 使用 CSS 绘制 X 图标 */
.banner .closeMenu {
	display: none;
}

.banner .closeMenu::before,
.banner .closeMenu::after {
	content: '';
	display: block;
	position: absolute;
	width: 20px;
	height: 2px;
	background-color: #ffffff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
}

.banner .closeMenu::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================
   响应式设计 (Responsive Design)
   ============================================ */

/* 平板设备 (768px - 991px) */
@media screen and (max-width: 991px) {
	.header {
		height: auto;
		min-height: 200px;
		padding: 15px 0;
	}

	.header .logo img {
		max-height: 60px;
	}

	.header .search {
		position: relative;
		top: auto;
		right: auto;
		max-width: 300px;
		width: 100%;
		margin-top: 15px;
		border: 1px solid #ffffff;
	}

	.header .search .form-control {
		color: #ffffff;
		width: auto;
		flex: 1;
	}

	.header .search .form-control::placeholder {
		color: rgba(255, 255, 255, 0.7);
	}
}

/* 移动设备 (最大宽度 767px) */
@media screen and (max-width: 767px) {
	.header {
		height: auto;
		min-height: 180px;
		padding: 15px 0;
	}

	.header .row {
		margin: 0;
	}

	.header .logo {
		margin-bottom: 15px;
		text-align: center;
	}

	.header .logo img {
		max-height: 50px;
		margin: 0 auto;
	}

	.header .search-wrapper {
		justify-content: center;
		height: auto;
	}

	.header .search {
		position: relative;
		top: auto;
		right: auto;
		max-width: 100%;
		width: 100%;
		margin-top: 15px;
		border: 1px solid #ffffff;
	}

	.header .search .form-control {
		color: #ffffff;
		width: auto;
		flex: 1;
	}

	.header .search .form-control::placeholder {
		color: rgba(255, 255, 255, 0.7);
	}

	/* 导航栏移动端样式 */
	.banner {
		padding: 0;
	}

	.banner .container {
		padding: 0;
	}

	.banner > .container > ul {
		display: none;
		flex-direction: column;
		width: 100%;
		background-color: #0052a3;
	}

	.banner > .container > ul.active {
		display: flex;
	}

	.banner .item {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		flex: none;
	}

	/* 移动端隐藏分割线 */
	.banner .item:not(:last-child)::after {
		display: none;
	}

	.banner .item > a {
		padding: 15px 20px;
		width: 100%;
		text-align: left;
	}

	/* 移动端下拉菜单 */
	.banner .item > ul {
		position: static;
		display: none;
		background-color: #004080;
		box-shadow: none;
		margin-left: 20px;
	}

	.banner .item.active > ul {
		display: flex;
	}

	.banner .item > ul li a {
		padding: 12px 20px;
		color: #ffffff;
	}

	.banner .item > ul li a:hover {
		background-color: rgba(255, 255, 255, 0.1);
		color: #ffffff;
	}

	/* 显示移动端菜单按钮 */
	.banner .mobileMenu {
		display: block;
	}

	.banner .openMenu {
		display: block;
	}

	.banner .openMenu.active {
		display: block;
	}

	.banner .openMenu.active ~ .closeMenu {
		display: none;
	}

	.banner .closeMenu.active {
		display: block;
	}
}

/* 小屏幕移动设备 (最大宽度 480px) */
@media screen and (max-width: 480px) {
	.header .logo {
		width: 100px;
		height: 35px;
	}

	.header .search {
		height: 32px;
	}

	.header .search input {
		font-size: 13px;
		padding: 0 35px 0 12px;
	}

	.banner {
		height: auto;
	}

	.banner .item > a {
		padding: 12px 15px;
		font-size: 14px;
		height: auto;
		line-height: 1.5;
	}

	.banner .item > ul li a {
		padding: 10px 15px;
		font-size: 13px;
	}
}
