/* 语言切换器图标样式 */
.language-switcher {
	position: relative;
	z-index: 1000;
	display: inline-block;
	cursor: pointer;
	margin-right: 15px;
	/* 主题特定样式 */
	float: left;
	padding-top: 1px;
	font-size: 16px;
	line-height: 40px;
	margin-right: 18px;
	font-weight: 500;
	margin-left: auto;
	width: 120px;
}

.language-switcher i {
	font-size: 18px;
	color: #333;
	transition: color 0.3s ease;
	/* 主题特定样式 */
	/* color: #fff !important; */
}

.language-switcher i:hover {
	color: #B886F8;
	/* 主题特定样式 */
	/* color: #9E2CC7 !important; */
}

.language-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 180, 255, 0.1);
	min-width: 120px;
	z-index: 1000;
	display: none;
	margin-top: 5px;
	/* 主题特定样式 */
	top: 98%;

	padding: 8px 0;
	max-height: 300px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #B886F8 #f8fcff;
}

/* 自定义滚动条样式 */
.language-dropdown::-webkit-scrollbar {
	width: 4px;
}

.language-dropdown::-webkit-scrollbar-track {
	background: #f8fcff;
	border-radius: 2px;
}

.language-dropdown::-webkit-scrollbar-thumb {
	background: #B886F8;
	border-radius: 2px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
	background: #B886F8;
}

.language-dropdown.show {
	display: block;
}

.language-option {
	display: block;
	padding: 8px 15px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: all 0.3s ease;
	/* 主题特定样式 */
	padding: 5px 15px;
	color: #111 !important;
	font-size: 14px;
}

.language-option:hover {
	background-color: rgba(184, 134, 248, 0.1);
	color: #B886F8;
}

.language-option.active {
	background-color: #B886F8;
	color: #fff !important;
	font-weight: 500;
}

.lange-translate-icon {
	/* position: absolute !important; */
	/* right: 60px; */
}

.language-switcher .language-option {
	margin-left: 0 !important;
}

@media (max-width: 1024px) {
	.language-switcher {
		display: block;
		float: none;
		margin-bottom: 1.5rem;
	}
}

/* 响应式样式 */
@media (max-width: 768px) {
	.language-switcher {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}

	.language-dropdown {
		right: -10px;
		/* 主题特定样式 */
		top: 100%;
		right: -60px;
		width: 150px;
		left: 0;
	}

	.language-option:hover {
		background-color: rgba(184, 134, 248, 0.1);
	}

	.language-switcher {
		line-height: 30px;
	}

	#mobile-menu .lange-translate-icon {
		position: relative !important;
		right: 0;
	}

	.language-switcher .language-option {
		margin-left: 0 !important;
	}

	.language-switcher i {
		color: inherit !important;
	}
}

.lange-dropdown-switcher select {
	padding: 4px 8px 2px 6px;
	background-color: #fff;
	font-size: 14px;
	cursor: pointer;
	border: none;
}

.lange-dropdown-switcher select:focus {
	outline: none;
}

.current-language {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	min-width: 100px;
	transition: all 0.3s ease;
}

.current-language:hover {
	background: #f8fcff;
	border-color: #B886F8;
}

.lang-text {
	flex: 1;
	font-size: 14px;
	color: #333;
	margin-right: 8px;
}

.current-language .fa-chevron-down {
	font-size: 12px;
	color: #B886F8;
	transition: transform 0.3s ease;
}

.language-switcher:hover .fa-chevron-down {
	transform: rotate(180deg);
}