/* 头部导航 */
.header-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	transition: all 0.4s ease-in-out;
}

.header-wrap.headerBg {
	background: #00499A;
}

.header-wrap.headerHide {
	transform: translateY(-100%);
}

.header {
	width: 100%;
	height: 1rem;
	padding: 0 1.4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 0.01rem solid rgba(255, 255, 255, 0.2);
	box-sizing: border-box;
}

.header .head_logo {
	width: 1rem;
	height: 0.8rem;
	flex-shrink: 0;
}

.header .head_logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}

.header .head_right {
	display: flex;
	align-items: center;
	column-gap: 0.6rem;
}

.header .head_nav {
	display: flex;
	align-items: center;
	column-gap: 0.8rem;
}

.header .head_nav .head_item {
	display: inline-block;
	width: fit-content;
	height: auto;
	position: relative;
	padding: 0.14rem 0;
	font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei';
	font-weight: 400;
	font-size: 0.18rem;
	line-height: 1;
	color: #FFFFFF;
	white-space: nowrap;
}

.header .head_nav .head_item::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 0;
	height: 0.02rem;
	background: #0772E8;
	transition: width 0.3s ease-in-out;
}

.header .head_nav .head_item:hover,
.header .head_nav .head_item.act {
	font-weight: bold;
}

.header .head_nav .head_item:hover::after,
.header .head_nav .head_item.act::after {
	width: 100%;
}

.header .head_link {
	width: fit-content;
	height: auto;
	padding: 0.08rem 0.2rem;
	background: #00499A;
	border-radius: 0.4rem;
	font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei';
	font-weight: 500;
	font-size: 0.17rem;
	line-height: 1;
	color: #FFFFFF;
	white-space: nowrap;
}

.header .head_opts {
	display: flex;
	align-items: center;
	column-gap: 0.6rem;
}

.header .head_opts .head_lang {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.header .head_opts .head_lang_toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.08rem;
	min-width: 0.48rem;
	height: 0.32rem;
	padding: 0 0.08rem;
	border: 0;
	background: transparent;
	color: #FFFFFF;
	font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei';
	font-size: 0.14rem;
	line-height: 1;
	cursor: pointer;
}

.header .head_opts .head_lang_toggle::after {
	content: "";
	width: 0.07rem;
	height: 0.07rem;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-0.02rem) rotate(45deg);
	transition: transform 0.2s ease;
}

.header .head_opts .head_lang_toggle[aria-expanded="true"]::after {
	transform: translateY(0.02rem) rotate(225deg);
}

.header .head_opts .head_lang_menu {
	position: absolute;
	top: calc(100% + 0.08rem);
	right: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	min-width: 0.8rem;
	padding: 0.04rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.04rem;
	background: rgba(18, 31, 58, 0.96);
	box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.2);
}

.header .head_opts .head_lang_menu[hidden] {
	display: none;
}

.header .head_opts .head_lang_option {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 0.72rem;
	height: 0.34rem;
	padding: 0 0.12rem;
	color: rgba(255, 255, 255, 0.72);
	font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei';
	font-size: 0.14rem;
	line-height: 1;
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease;
}

.header .head_opts .head_lang_option::after {
	content: "";
	position: absolute;
	left: 0.12rem;
	bottom: 0.04rem;
	width: 0;
	height: 0.02rem;
	background: #FFFFFF;
	transition: width 0.2s ease;
}

.header .head_opts .head_lang_option:hover,
.header .head_opts .head_lang_option.active {
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.1);
}

.header .head_opts .head_lang_option.active::after {
	width: calc(100% - 0.24rem);
}

.header .head_opts .head_search {
	width: 0.14rem;
	height: 0.14rem;
	cursor: pointer;
}

.header .head_opts .head_search img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.header {
	pointer-events: none;
}

.header .head_logo,
.header .head_right,
.header .mobile_menu_toggle {
	pointer-events: auto;
}

/* 产品中心下拉（竖排菜单） */
.header .head_nav_item {
	display: flex;
	align-items: center;
	position: relative;
}

.header .head_nav_item:hover .head_item {
	font-weight: bold;
}

.header .head_nav_item:hover .head_item::after {
	width: 100%;
}

/* 导航下拉：级联列菜单（设计稿 439:4770 产品中心 / 894:10089 应用中心） */
.head_drop {
	position: absolute;
	top: 100%;
	left: 0;
	transform: none;
	padding-top: 0.27rem;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	z-index: 10;
	transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

.header .head_nav_item:hover .head_drop,
.head_drop:hover,
.head_drop.on {
	opacity: 1;
	visibility: visible;
}

.hd_menu {
	display: flex;
	flex-direction: column;
	gap: 0.02rem;
	min-width: 1.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #2E3741;
}

html[lang="en"] .hd_menu {
	width: max-content;
	min-width: min(3.4rem, calc(100vw - 0.4rem));
	max-width: min(4.2rem, calc(100vw - 0.4rem));
}

.hd_menu_li {
	position: relative;
}

/* 一级菜单项：180 宽，13/20 内边距，左右两端对齐 */
.hd_a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.1rem;
	width: 1.8rem;
	padding: 0.13rem 0.2rem;
	box-sizing: border-box;
	background: #2E3741;
	font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei';
	font-weight: 400;
	font-size: 0.16rem;
	line-height: 0.22rem;
	color: #FFFFFF;
	white-space: nowrap;
	transition: background 0.25s ease-in-out;
}

.hd_a:hover,
.hd_a.act {
	background: #00499A;
	font-weight: 700;
}

html[lang="en"] .hd_a {
	width: 100%;
	min-height: 0.48rem;
	height: auto;
	white-space: normal;
}

html[lang="en"] .hd_a > span {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.hd_arrow {
	width: 0.1rem;
	height: 0.18rem;
	flex-shrink: 0;
	background: url(../img/icon_arrow_r.svg) center center no-repeat;
	background-size: contain;
	opacity: 0.6;
	transition: opacity 0.25s ease-in-out;
}

.hd_a:hover .hd_arrow,
.hd_a.act .hd_arrow {
	opacity: 1;
}

/* 二级列：紧贴一级右侧，50 高、12/10 内边距、底部分隔线 */
.hd_sub {
	position: absolute;
	left: 100%;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 0.02rem;
	min-width: 1.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #36404C;
	opacity: 0;
	visibility: hidden;
	z-index: 2;
	transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

.hd_menu_li:hover > .hd_sub,
.hd_menu_li.on > .hd_sub {
	opacity: 1;
	visibility: visible;
}

.hd_sub_a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.1rem;
	min-width: 1.8rem;
	height: 0.5rem;
	padding: 0 0.1rem;
	box-sizing: border-box;
	border-bottom: 0.01rem solid rgba(255, 255, 255, 0.2);
	font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei';
	font-weight: 500;
	font-size: 0.16rem;
	line-height: 0.24rem;
	color: #FFFFFF;
	opacity: 0.8;
	white-space: nowrap;
	transition: opacity 0.25s ease-in-out;
}

.hd_sub > li:last-child .hd_sub_a {
	border-bottom: 0;
}

.hd_sub_a:hover {
	opacity: 1;
}

.hd_sub_a.act {
	opacity: 1;
	font-weight: 700;
}

.hd_sub_arrow {
	width: 0.08rem;
	height: 0.14rem;
	flex-shrink: 0;
	background: url(../img/icon_arrow_r.svg) center center no-repeat;
	background-size: contain;
	opacity: 0;
	transition: opacity 0.25s ease-in-out;
}

.hd_sub_a:hover .hd_sub_arrow {
	opacity: 1;
}

html[lang="en"] .hd_sub {
	width: max-content;
	max-width: min(4.2rem, calc(100vw - 0.4rem));
}

html[lang="en"] .hd_sub_a {
	width: 100%;
	min-height: 0.5rem;
	height: auto;
	padding-top: 0.08rem;
	padding-bottom: 0.08rem;
	white-space: normal;
}

html[lang="en"] .hd_sub_a > span {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}




/* 搜索入口在导航栏中直接跳转搜索页，旧的浮层样式已移除 */

/* 移动端导航基础状态 */
.mobile_menu_toggle,
.mobile_drawer,
.mobile_nav_overlay {
	display: none;
}

@media (max-width: 767px) {
	.header-wrap {
		z-index: 1000;
	}

	.header-wrap.mobile-menu-open {
		transform: none;
	}

	.header-wrap.mobile-menu-open .header {
		visibility: hidden;
	}

	.header {
		height: .72rem;
		padding: 0 0.18rem;
		position: relative;
		z-index: 1002;
	}

	.header-wrap:not(.headerBg) .header {
		background: rgba(0, 73, 154, 0.96);
	}

	.header .head_logo {
		width: 1rem;
		height: .52rem;
	}

	.header .head_right {
		display: none;
	}

	.mobile_menu_toggle {
		display: inline-flex;
		position: relative;
		z-index: 1002;
		pointer-events: auto;
		width: 48px;
		height: 48px;
		padding: 12px 10px;
		flex-direction: column;
		justify-content: space-between;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.mobile_menu_toggle span {
		display: block;
		width: 28px;
		height: 2px;
		border-radius: 2px;
		background: #FFFFFF;
		transform-origin: center;
		transition: transform 280ms ease, opacity 280ms ease;
	}

	.mobile_menu_toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
	.mobile_menu_toggle.active span:nth-child(2) { opacity: 0; }
	.mobile_menu_toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

	.mobile_nav_overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(0, 0, 0, 0.52);
		opacity: 0;
		visibility: hidden;
		transition: opacity 300ms cubic-bezier(0.32, 0.72, 0, 1), visibility 300ms linear;
	}

	.mobile_nav_overlay.active {
		opacity: 1;
		visibility: visible;
	}

	.mobile_drawer {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: min(85vw, 440px);
		height: 100dvh;
		padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
		box-sizing: border-box;
		z-index: 1003;
		overflow-y: auto;
		background: #FFFFFF;
		color: #1E2B38;
		transform: translateX(-100%);
		opacity: 0;
		visibility: hidden;
		transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1), opacity 300ms ease, visibility 300ms linear;
	}

	.mobile_drawer.active {
		transform: translateX(0);
		opacity: 1;
		visibility: visible;
	}

	body.mobile_drawer_open {
		overflow: hidden;
	}

	.mobile_drawer_head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: .78rem;
		min-height: .78rem;
		padding: 0 .18rem;
		background: #00499A;
	}

	.mobile_drawer_logo {
		display: block;
		width: 1.22rem;
		height: .48rem;
		object-fit: contain;
		object-position: left center;
	}

	.mobile_drawer_close {
		width: 48px;
		height: 48px;
		border: 0;
		background: transparent;
		font-size: 32px;
		line-height: 1;
		color: #FFFFFF;
		cursor: pointer;
	}

	.navbar_nav ul {
		margin: 0;
		padding: 8px 0 24px;
		list-style: none;
	}

	.navbar_nav .mobile_nav_item {
		position: relative;
		border-bottom: 1px solid #EEF1F5;
	}

	.navbar_nav .mobile_nav_link {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 0 56px 0 20px;
		color: #263442;
		font-size: 16px;
		text-decoration: none;
		opacity: 0;
		transform: translateY(-6px);
		transition: none;
	}

	.mobile_drawer.active .navbar_nav .mobile_nav_link {
		opacity: 1;
		transform: translateY(0);
		transition: opacity 220ms ease var(--nav-delay, 0ms), transform 220ms ease var(--nav-delay, 0ms);
	}

	.navbar_nav .mobile_nav_link.act {
		color: #00499A;
		font-weight: 700;
	}

	.mobile_sub_toggle {
		position: absolute;
		top: 2px;
		right: 8px;
		width: 48px;
		height: 48px;
		border: 0;
		background: transparent;
		color: #5C6B79;
		font-size: 24px;
		cursor: pointer;
	}

	.mobile_nav_item.active .mobile_sub_toggle {
		transform: rotate(45deg);
	}

	.navbar_nav .cat {
		display: none;
		padding: 0 20px 10px 36px;
	}

	.navbar_nav.active .cat { display: block; }
	.navbar_nav.active .mobile_nav_item:not(.active) .cat { display: none; }
	.navbar_nav .mobile_nav_item.active .cat { display: block; }

	.navbar_nav .cat a {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 0 8px;
		color: #667482;
		font-size: 14px;
		text-decoration: none;
		opacity: 0;
		transform: translateY(-6px);
		transition: none;
	}

	.mobile_drawer.active .mobile_nav_item.active .cat a {
		opacity: 1;
		transform: translateY(0);
		transition: opacity 220ms ease, transform 220ms ease;
	}

	.navbar_nav .cat a.act { color: #00499A; font-weight: 700; }
}
