/* 语言切换按钮容器 */
        .language-switcher {
	position: relative;
	display: inline-block;
	float: right;
}
/* 语言切换按钮 */
        .language-btn {
	display: flex;
	border-radius: 4px;
	cursor: pointer;
	gap: 5px;
	font-size: 14px;
	color: #999;
}
.language-btn .globe-icon {
	font-size: 16px;
}
.language-btn .arrow-icon {
	margin-left: 5px;
	transition: transform 0.3s;
}
.language-list .hidden {
	display:none
}
/* 下拉框容器 */
        .language-dropdown {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: none;
	z-index: 1000;
	width:400px;
}
/* 语言列表 */
        .language-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	padding: 10px;
	max-height: 230px;
	overflow-y: auto;
}
/* 语言选项 */
        .language-item {
	display: flex;
	align-items: center;
	padding: 6px 8px;
	cursor: pointer;
	border-radius: 4px;
	gap: 5px;
	font-size: 13px;
	color: #333;
	height: 30px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.language-item a {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.language-item a[href*="arabic"] {
  direction: rtl;
  unicode-bidi: embed;
}



.language-item:hover {
	background: #f5f5f5;
}
.language-item img {
	width: 16px;
	height: 12px;
	object-fit: cover;
}
/* More Language按钮 */
        .more-languages {
	text-align: center;
	padding: 0 8px;
	border-top: 1px solid #eee;
	cursor: pointer;
	color: #666;
	font-size: 13px;
	height: 40px;
	line-height: 40px;
}
.more-languages:hover {
	color: #333;
	background: #f5f5f5;
}
/* 展开状态 */
         .language-dropdown.active {
	display: block;
	background: white;
}
.language-list.show-all {
	max-height: 400px;
}

        /* 滚动条样式 */
        .language-list::-webkit-scrollbar {
 width: 6px;
}
 .language-list::-webkit-scrollbar-track {
 background: #f1f1f1;
}
 .language-list::-webkit-scrollbar-thumb {
 background: #ccc;
 border-radius: 3px;
}
 .language-list::-webkit-scrollbar-thumb:hover {
 background: #999;
}

@media(max-width:1024px){
	.language-btn{ position:absolute; right:0;width: max-content;}
	.language-btn .globe-icon{ width:20px}
	.current-lang{ line-height:24px}
	.language-btn .arrow-icon{ line-height:26px}
	.language-switcher{ position:absolute !important; right:65px; top:14px; line-height:22px}
	.language-dropdown{width: 96% !important; right: 2% !important;top: 50px !important; position: fixed !important;}
	
	
}