﻿/*翻译*/
.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;
}
/* 语言选项链接样式 - 让整个框都可点击 */
.language-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
}

.language-item a img {
    width: 16px;
    height: 12px;
    flex-shrink: 0;
}

.language-item a:hover {
    background: #f5f5f5;
}
/*end*/

@media screen and (max-width: 767px) {
     .copyright_p{ display:none;}
}

/* ========== 语言切换器样式 - PC端 ========== */
@media screen and (min-width: 801px) {
    .header_top {
        position: relative;
    }
    
    .language-switcher {
        position: absolute;
        right: 30px;
        top: 130%;
        transform: translateY(-50%);
        z-index: 100;
        display: inline-block;
    }
    
    .language-btn {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        padding: 5px 10px;
    }
    
    .language-btn .globe-icon {
        flex-shrink: 0;
    }
    
    .language-btn .globe-icon img {
        width: 20px;
        height: auto;
        vertical-align: middle;
    }
    
    .language-btn .current-lang {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    .language-btn .arrow-icon {
        font-size: 12px;
        transition: transform 0.3s;
        flex-shrink: 0;
        margin-left: 2px;
    }
    
    /* 下拉框容器 */
    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 5px;
        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-dropdown.active {
        display: block;
    }
    
    /* 语言列表 */
    .language-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 10px;
        max-height: 230px;
        overflow-y: auto;
    }
    
    .language-list.show-all {
        max-height: 400px;
    }
    
    /* 语言选项 */
    .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;
        text-decoration: none;
        color: #333;
    }
    
    .language-item:hover {
        background: #f5f5f5;
    }
    
    .language-item img {
        width: 16px;
        height: 12px;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .language-list .hidden {
        display: none;
    }
    
    /* More Language按钮 */
    .more-languages {
        text-align: center;
        padding: 8px;
        border-top: 1px solid #eee;
        cursor: pointer;
        color: #666;
        font-size: 15px;
        height: 40px;
        line-height: 35px;
    }
    
    .more-languages:hover {
        color: #333;
        background: #f5f5f5;
    }
    
    /* 滚动条样式 */
    .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: 20px;
        top: 50px;
        padding: 0 !important;
        width: auto;
        min-width: 100px;
        text-align: right;
        z-index: 1000;
    }
    
    .language-btn {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        cursor: pointer;
        gap: 5px;
        white-space: nowrap;
    }
    
    .language-btn .globe-icon img {
        width: 20px;
        height: auto;
    }
    
    .language-btn .current-lang {
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }
    
    .language-btn .arrow-icon {
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    /* 下拉菜单 */
    .language-dropdown {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        margin-top: -10px !important;
        width: 320px !important;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
        z-index: 1001;
    }
    
    /* 激活状态 */
    .language-dropdown.active {
        display: block !important;
    }
    
    /* 语言列表 */
    .language-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 10px;
        max-height: 230px;
        overflow-y: auto;
    }
    
    .language-list.show-all {
        max-height: 400px;
    }
    
    .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;
        text-decoration: none;
        color: #333;
        font-size: 13px;
    }
    
    .language-item:hover {
        background: #f5f5f5;
    }
    
    .language-item img {
        width: 16px;
        height: 12px;
        flex-shrink: 0;
    }
    
    .language-list .hidden {
        display: none;
    }
    
    .more-languages {
        text-align: center;
        padding: 2px;
        border-top: 1px dotted #FF9800;
        cursor: pointer;
        color: #666;
        font-size: 14px;
    }
    
    .more-languages:active {
        background: #f5f5f5;
    }
}