/* Language switcher — 语言切换器(独立下拉,置于 hdr 搜索与 CTA 之间) */
.lang-switcher {
	position: relative;
	flex: 0 0 auto;
}

.lang-switcher__btn {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 6px;
	padding: 7px 11px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	color: #222;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	line-height: 1;
	transition: border-color .2s, color .2s;
}

.lang-switcher__btn:hover,
.lang-switcher.is-open .lang-switcher__btn {
	border-color: #DA2735;
	color: #DA2735;
}

.lang-switcher__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform .2s;
}

.lang-switcher.is-open .lang-switcher__caret {
	transform: rotate(180deg);
}

.lang-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: auto;
	z-index: 300;
	min-width: 120px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
	padding: 6px;
	margin: 0;
	list-style: none;
	display: none;
	text-align: left;
}

html[dir="rtl"] .lang-switcher__menu {
	right: auto;
	left: 0;
	text-align: right;
}

.lang-switcher.is-open .lang-switcher__menu {
	display: block;
}

.lang-switcher__item {
	margin: 0;
	padding: 0;
}

.lang-switcher__link {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
}

.lang-switcher__link:hover,
.lang-switcher__link:focus-visible,
.lang-switcher__link[aria-current="true"] {
	background: #fff2f3;
	color: #DA2735;
}

/* 移动端紧凑 */
@media (max-width: 1024px) {
	.lang-switcher__btn {
		padding: 5px 9px;
		font-size: 11px;
	}
}
