.wide-language-item {
    position: relative;
    display: none;
}

[lang="zh-Hans"] {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
}

.wide-language-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.wide-language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    isolation: isolate;
    min-width: 154px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(122, 92, 255, 0.62);
    background: var(--active-section-bg, #070769);
}

.noise .wide-language-dropdown::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .2;
    pointer-events: none;
    user-select: none;
    background-image: url("/img/bg/noise120.gif");
    background-repeat: repeat;
    background-size: 180px 177px;
    mix-blend-mode: screen;
}

.wide-language-dropdown[hidden] {
    display: none;
}

.menu .wide-language-dropdown a {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    padding: 10px 12px;
    border-radius: 0;
    color: #dedede;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.menu .wide-language-dropdown a[aria-current="page"],
.menu .wide-language-dropdown a:hover,
.menu .wide-language-dropdown a:focus-visible {
    color: #070769;
    background: #a855f7;
    outline: none;
}

.mobile-menu-language-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: clamp(26px, 5vh, 46px);
    color: rgba(222, 222, 222, 0.8);
    font-size: 14px;
    letter-spacing: 1px;
}

.mobile-menu-language-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.mobile-menu-language-links a + a::before {
    margin: 0 12px;
    color: rgba(222, 222, 222, 0.52);
    content: "|";
}

.mobile-menu-language-links a[aria-current="page"],
.mobile-menu-language-links a:hover,
.mobile-menu-language-links a:focus-visible {
    color: #a855f7;
    outline: none;
}

.footer-language-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin-top: clamp(22px, 4vh, 38px);
    color: rgba(222, 222, 222, 0.8);
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-language-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.footer-language-links a + a::before {
    margin: 0 12px;
    color: rgba(222, 222, 222, 0.52);
    content: "|";
}

.footer-language-links a[aria-current="page"],
.footer-language-links a:hover,
.footer-language-links a:focus-visible {
    color: #a855f7;
    outline: none;
}

@media screen and (min-width: 1180px) {
    .wide-language-item {
        display: block;
    }

    #width-screen-menu .wide-language-button {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: #dedede;
        background: transparent;
        font: inherit;
        cursor: pointer;
    }

    #width-screen-menu .wide-language-button:hover,
    #width-screen-menu .wide-language-button:focus-visible,
    #width-screen-menu .wide-language-button[aria-expanded="true"] {
        color: #070769;
        background: #a855f7;
        outline: none;
    }

    .mobile-menu-language-links {
        display: none;
    }
}

@media screen and (max-width: 560px) {
    .footer-language-links {
        justify-content: flex-start;
    }
}
