.translateSelectLanguage {
    display: none;
}

.change-lang {
    text-align: center;
}

.yuyan {
    width: auto;
    height: 50px;
    position: relative;
}

/* 语言选择组件（右侧） */
.lang-selector {
    position: absolute;
    display: inline-block;
    float: right;
    right: 20px;
    margin-top: 10px;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);

    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
}

.lang-trigger .flag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 24px;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 2px;

}

.lang-trigger .flag-chip img {

    width: 33px;
    height: 24px;


}

.lang-trigger .flag-emoji {
    font-size: 14px;
    line-height: 14px;
}

.lang-trigger .code {
    font-weight: 600;
    color: #374151;
}

/* 下拉菜单 */
.lang-menu {
    position: absolute;
    top: calc(100% + 0px);
    right: 0;
    width: 250px;
    max-height: 320px;
    overflow: auto;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
    padding: 6px;
    display: none;
    z-index: 200;
    transform-origin: top right;
    animation: fadeIn .15s ease-out;
}

.lang-menu.open {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-title {
    font-size: 12px;
    color: var(--muted);
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    margin: 0 0 6px;
}

.lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.lang-item a {
    display: flex;
    align-items: center;
}

.lang-item a .name {
    padding-left: 5px;
}

.flag-emoji img {

    width: 33px;
    height: 24px;


}

.lang-item:hover {
    background: #f3f4f6;
}

.lang-item.active {
    background: #eef2ff;
    border: 1px solid #dbe4ff;
}

.lang-item .name {
    font-size: 14px;
    color: #374151;
}

.flag-svg {
    width: 28px;
    height: auto;
    _display: inline-block;
    vertical-align: middle;
}

.flag-svg text {
    fill: #000;
    font-size: 10px;
}