/**
 * 移动端顶栏：语言 + 菜单（移动端优先，桌面端 min-width:1200px 恢复 PC 顶栏）
 */
.site-mobile-bar {
	display: block;
	width: 100%;
	background: #f0f3f8;
	border-bottom: 1px solid #d5dbe5;
	box-sizing: border-box;
}

.site-mobile-bar__inner {
	width: 94%;
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 8px;
	padding: 8px 0;
	box-sizing: border-box;
}

.lang-switch--mobile {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

.lang-switch--desktop {
	display: none;
}

.site-top-sticky .lang-switch__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	height: 32px;
	padding: 0 10px;
	font-size: 13px;
	line-height: 1;
	color: #222;
	text-decoration: none;
	background: #fff;
	border: 1px solid #b8c0cc;
	border-radius: 4px;
	white-space: nowrap;
	box-sizing: border-box;
}

.site-top-sticky .lang-switch__link[aria-current="page"],
.site-top-sticky .lang-switch__link.current {
	background: #0079c2;
	border-color: #0079c2;
	color: #fff;
}

.site-top-sticky .web-nav-toggle {
	display: inline-flex !important;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 36px !important;
	height: 32px !important;
	padding: 0 !important;
	margin: 0;
	border: 1px solid #b8c0cc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	overflow: visible;
	-webkit-appearance: none;
	appearance: none;
}

.site-top-sticky .web-nav-toggle__bar {
	display: block !important;
	width: 18px !important;
	height: 2px !important;
	margin: 0 !important;
	background: #0079c2;
	border-radius: 1px;
	flex-shrink: 0;
	opacity: 1;
	transform: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-top-sticky.is-nav-open .web-nav-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.site-top-sticky.is-nav-open .web-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.site-top-sticky.is-nav-open .web-nav-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.site-top-sticky .web-nav {
	display: none;
	width: 100%;
	background: #0079c2;
	box-sizing: border-box;
}

.site-top-sticky.is-nav-open .web-nav {
	display: block;
	max-height: min(70vh, 520px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 1199px) {
	.web-header .container {
		width: 94%;
	}

	.web-header__main {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		padding: 10px 0 12px;
	}

	.web-header__main .logo {
		flex: 0 1 auto;
		max-width: 42%;
		margin: 0;
		padding: 0;
		border-right: none;
		float: none;
	}

	.web-header__main .logo a {
		display: block;
		line-height: 0;
	}

	.web-header .logo img,
	.web-header__main .logo img {
		display: block;
		width: auto !important;
		height: auto !important;
		max-width: 100%;
		max-height: 44px;
		object-fit: contain;
	}

	.web-header__main .text {
		display: none;
	}

	.web-header__main .tel {
		flex: 1 1 auto;
		min-width: 0;
		margin: 0;
		padding: 0;
		float: none;
		background: none !important;
		text-align: right;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.web-header__main .tel .tel-label {
		display: none;
	}

	.web-header__main .tel strong {
		display: block;
		font-size: 18px;
		font-family: inherit;
		font-weight: 700;
		line-height: 1.25;
		margin: 0;
	}

	.web-header__main .tel strong a {
		display: inline-flex;
		align-items: center;
		justify-content: flex-end;
		gap: 6px;
		color: #1173f2;
		text-decoration: none;
	}

	.web-header__main .tel strong a::before {
		content: "";
		display: inline-block;
		width: 22px;
		height: 22px;
		flex-shrink: 0;
		background: url(/static/web/images/skin/tel.png) no-repeat center center;
		background-size: contain;
	}

	/* 移动端导航：去掉桌面三角装饰，纵向列表 */
	.site-top-sticky .web-nav .container {
		width: 100%;
		padding: 0;
	}

	.site-top-sticky .web-nav ul {
		float: none;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.site-top-sticky .web-nav li {
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}

	.site-top-sticky .web-nav li:after {
		display: none !important;
	}

	.site-top-sticky .web-nav li a {
		display: block;
		line-height: 48px !important;
		padding: 0 16px !important;
		text-align: left !important;
		font-size: 15px !important;
		font-weight: 600;
		color: #fff !important;
		background: transparent !important;
		position: relative;
	}

	.site-top-sticky .web-nav li a:before,
	.site-top-sticky .web-nav li a:hover:before,
	.site-top-sticky .web-nav li.active a:before,
	.site-top-sticky .web-nav li a:hover:after,
	.site-top-sticky .web-nav li.active a:after {
		display: none !important;
		content: none !important;
		border: none !important;
		width: 0 !important;
		height: 0 !important;
	}

	.site-top-sticky .web-nav li:hover > a,
	.site-top-sticky .web-nav li.active > a {
		background-color: #f08519 !important;
		color: #fff !important;
	}

	.site-top-sticky .web-nav .dropdown > a {
		padding-right: 40px !important;
	}

	.site-top-sticky .web-nav .dropdown > a:after {
		display: block !important;
		content: "" !important;
		position: absolute;
		right: 16px;
		top: 50%;
		width: 8px;
		height: 8px;
		margin-top: -5px;
		border: none !important;
		border-right: 2px solid rgba(255, 255, 255, 0.9) !important;
		border-bottom: 2px solid rgba(255, 255, 255, 0.9) !important;
		transform: rotate(45deg);
		background: none !important;
	}

	.site-top-sticky .web-nav .dropdown.is-open > a:after {
		transform: rotate(-135deg);
		margin-top: -2px;
	}

	.site-top-sticky .web-nav .dropdown-box {
		position: static;
		width: 100%;
		display: none;
		background: rgba(0, 0, 0, 0.15);
		padding: 0;
		margin: 0;
	}

	.site-top-sticky .web-nav .dropdown.is-open .dropdown-box {
		display: block;
	}

	/* 二级菜单：仅点击展开，避免与桌面 hover 规则冲突 */
	.site-top-sticky .web-nav li:hover > .dropdown-box {
		display: none !important;
	}

	.site-top-sticky .web-nav .dropdown.is-open > .dropdown-box {
		display: block !important;
	}

	.site-top-sticky .web-nav .dropdown-box li {
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}

	.site-top-sticky .web-nav .dropdown-box li:after {
		display: none !important;
	}

	.site-top-sticky .web-nav .dropdown-box li a {
		line-height: 1.45 !important;
		padding: 12px 16px 12px 28px !important;
		font-size: 14px !important;
		font-weight: normal !important;
		white-space: normal;
		word-break: break-word;
		min-height: 44px;
		display: flex;
		align-items: center;
		box-sizing: border-box;
	}

	.site-top-sticky.is-nav-open .web-nav {
		max-height: min(85vh, 680px);
	}
}

@media screen and (max-width: 767px) {
	.web-header .topbar {
		display: none;
	}

	.web-header .web-header__main .tel {
		background: none !important;
		padding-left: 0 !important;
		margin-top: 0 !important;
	}

	.web-header .web-header__main .logo {
		max-width: 46% !important;
	}

	.web-header__main .logo img {
		max-height: 38px;
	}

	.web-header__main .tel strong {
		font-size: 15px;
	}

	.web-header__main .tel strong a::before {
		width: 20px;
		height: 20px;
	}
}

@media screen and (min-width: 1200px) {
	.site-mobile-bar {
		display: none;
	}

	.lang-switch--desktop {
		display: flex;
		align-items: center;
		flex-shrink: 0;
	}

	.lang-switch--mobile {
		display: none;
	}

	.site-top-sticky .web-nav-toggle {
		display: none;
	}

	.site-top-sticky .web-nav {
		display: block;
	}
}
