/* language-switcher.css */

.language-switcher {
    position: relative;
    display: inline-block;
    width: auto;
    text-align: center;
}

.lang-button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 14px;
    padding: 5px;
    display: flex;
    align-items: center;
}

.lang-button .language-icon, .lang-list .language-flag {
    width: 22px !important;
    height: 22px !important;
    margin-right: 5px;
    border-radius: 50%;
}
.lang-list {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 1000;
    min-width: 150px;
    max-height: 200px; /* 设置最大高度 */
    overflow-y: auto; /* 启用垂直滚动 */
}

.language-switcher:hover .lang-list {
    display: block;
}

.lang-list li {
    padding: 5px 15px;
}

.lang-list li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.lang-list li a:hover {
    color: #0e78f9; 
}

.social-top .change-theme>div a{
    margin-right: 0 !important;
        width: 100% !important;
    display: flex !important;
}
.change-theme button{
    margin-right: 0 !important;
}
.social-top .header-user{
    width: 150px;
    justify-content: space-between !important;
}
.change-theme > .user-tips{
    width: 35px;
    text-align: center;
}
.top-user-info{
    margin-left: 10px;
}
@media screen and (max-width:768px){
    .social-top .header-user{
        width: 136px;
        justify-content: flex-end !important;
    }
    .header-banner .change-theme .mobile-show{
        width: 35px;
        text-align: center;
    }
    .lang-list{
        left: -30px;
        top: 30px;
    }
}
