﻿
/*翻译*/
.change-language {
    display: inline-block;
    position: relative;
    text-align: left;
    vertical-align: middle;
    margin-left: 2px;
    white-space: normal;
    float: right;
    line-height: 42px;
}

.change-language-title a {
    color: #666;
}

.change-language .change-language-title, .change-language .change-language-title a {
    font-size: 14px;
}

.change-language .change-language-title a:after {
    font-family: 'fontawesome';
    content: "\f0d7";
    display: inline-block;
    padding-left: 2px;
}

.change-language:hover .change-language-title a:after {
    -moz-transform: rotate(-360deg);
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    -o-transform: rotate(-180deg);
    transform: rotate(-180deg);
}

.change-language .change-language-cont {
    position: absolute;
    top: 42px;
    right: 0;
    width: 350px;
    background: #FFF;
    padding: 15px 0px 0px 0px;
    transform: scale3d(0.9, 0.9, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    border: 1px solid #ccc;
    border-radius: 5px;
	Z-INDEX: 9999;
    /*overflow-y:scroll;max-height:80vh;*/
}

.change-language:hover .change-language-cont {
    transform: scale3d(1, 1, 1);
    opacity: 1;
    visibility: visible;
}

.change-language .change-language-cont li {
    display: inline-block;
    vertical-align: top;
    width: 46%;
    font-size: 10pt;
    overflow: hidden;
}

.change-language .change-language-cont li a:hover {
    color: #4e4e4e;
}

.change-language .change-language-cont .lang-item-hide {
    display: none !important;
}

.change-language .change-language-cont .lang-more {
    position: relative;
    display: block;
    text-align: center;
    cursor: pointer;
    line-height: 30px;
}

.change-language .change-language-cont .more-active {
    font-size: 20px;
}

.language-flag span {
    position: relative;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    padding: 0 0 0 15px;
    overflow: hidden;
}

.change-language-cont .language-flag span {
    font-size: 16px;
}

.change-language .change-language-title a:after {
    color: #000;
}

.change-language .change-language-title .language-flag span {
    color: #FFF;
}

.change-language ::-webkit-scrollbar {
    width: 5px;
}

.change-language ::-webkit-scrollbar-track {
    background-color: #000;
}

.change-language ::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.3);
    border-radius: 3px;
}

.change-language .language-cont:hover::-webkit-scrollbar-thumb {
    display: block
}

li.language-flag a {
    position: relative;
    color: #000;
}

/*end*/

.language{float: right;height: 42px;color: #fff;}
.language a{color: #fff;}
.top_name{display: inline-block;}

.x1{ float:right; margin-top:10px;position: fixed;z-index: 9999;right: 10%;/*height: 40px;background: #000;padding: 0 10%;  max-width: 2560px;margin: 0 auto;*/}
/* 语言切换按钮容器 */
        .language-switcher {
            position: relative;
            display: inline-block;float: right;padding: 10px 0 0 10px;
			
        }

        /* 语言切换按钮 */
        .language-btn {
            display: flex;
            border-radius: 4px;
            cursor: pointer;
            gap: 5px;
            font-size: 14px;
            color: #333;
            line-height:25px;
            background: #fff;
            outline: 1px solid #625b5b4a;
        }

        .language-btn .globe-icon {
            font-size: 16px;
            line-height:25px;
            height: 25px;
        }

        .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;
	
        }

        .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-switcher{ position:absolute !important; right:75px; top:13px; padding:0 !important; width:32%; text-align:right;white-space:nowrap;text-overflow:ellipsis;}
	.language-dropdown{ width:280% !important; right:-60px !important; top:37px !important}
	.current-lang{font-family:myFirstFont;font-weight:lighter;display:inline-grid; max-width: 59%; white-space: nowrap;  overflow: hidden; text-overflow: ellipsis;}
}*/