/* 顶部 Choose a country 内嵌语言菜单。 */
.lang-switcher {
    position: relative;
    display: inline-block;
    color: #989898;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lang-switcher__details {
    position: relative;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    height: 30px;
    padding: 0 2px;
    cursor: pointer;
    color: #989898;
    font: inherit;
    font-size: 16px;
    line-height: 18px;
    user-select: none;
    list-style: none;
    transition: color 160ms ease;
}

.lang-switcher__toggle::-webkit-details-marker {
    display: none;
}

.lang-switcher__toggle:hover,
.lang-switcher__details[open] > .lang-switcher__toggle {
    color: #989898;
}

.lang-switcher__toggle:focus-visible {
    outline: 2px solid #78afe6;
    outline-offset: 2px;
}

.lang-switcher__caret {
    display: inline-block;
    margin-left: 1px;
    color: #989898;
    font-size: 9px;
    line-height: 1;
    transform-origin: 50% 50%;
    transition: color 160ms ease, transform 160ms ease;
}

.lang-switcher__details[open] .lang-switcher__caret {
    color: #989898;
    transform: rotate(180deg);
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: -14px;
    width: 188px;
    margin: 0;
    padding: 7px;
    list-style: none;
    background: #fff;
    border: 1px solid #d7dfe7;
    border-top: 2px solid #175da9;
    border-radius: 4px;
    box-shadow: 0 14px 32px rgba(5, 26, 48, 0.2);
    box-sizing: border-box;
    z-index: 1200;
}

.lang-switcher__menu::before {
    position: absolute;
    top: -7px;
    right: 20px;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #175da9;
    border-left: 5px solid transparent;
    content: "";
}

.lang-switcher__item {
    margin: 0;
}

.lang-switcher__item + .lang-switcher__item {
    border-top: 1px solid #edf1f4;
}

.site-header .topbar-list .lang-switcher__item.is-active .lang-switcher__link {
    color: #175da9;
    font-weight: 600;
    background: #edf5fc;
    box-shadow: inset 3px 0 0 #175da9;
}

.site-header .topbar-list .lang-switcher__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 3px;
    box-sizing: border-box;
    color: #536170;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 140ms ease, color 140ms ease;
}

.site-header .topbar-list .lang-switcher__link:hover {
    background: #f1f4f7;
    color: #175da9;
}

.site-header .topbar-list .lang-switcher__link:focus-visible {
    outline: 2px solid #175da9;
    outline-offset: -2px;
}

.lang-switcher__check {
    color: #175da9;
    font-size: 14px;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .lang-switcher__toggle,
    .lang-switcher__caret,
    .lang-switcher__link {
        transition: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .lang-switcher__details:hover > .lang-switcher__menu,
    .lang-switcher__details:focus-within > .lang-switcher__menu {
        display: block;
    }
}
