
/* 语言切换按钮容器 */
.language-switcher {
    position: relative;
    display: inline-block;float: right;padding: 0 0 0 10px;
	
}
.language-switcher *{
    box-sizing: border-box;
}
/* 语言切换按钮 */
.language-btn {
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 35px;
}

.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:hover {
    background: #f5f5f5;
}

.language-item img {
    width: 16px;
    height: 12px;
    object-fit: cover;
}

/* More Language按钮 */
.more-languages {
    text-align: center;
    padding: 8px;
    border-top: 1px solid #eee;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    height: 40px;
    box-sizing: border-box;
    line-height: 1.6;
}

.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 screen and (max-width: 800px) {
	.language-dropdown{position: absolute;right:-40px !important; top:45px !important;width:370px;}
	.current-lang{display:none;}
}
