/* 编译后的标准 CSS */
.showlanguagebox{
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.language-selector {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.language-selector-box {
    position: relative;
    z-index: 1001;
}

/* .language-selector:hover {
    opacity: 0.8;
} */

.language-selector .icon-arrow-down {
    transition: transform 0.3s ease;
}

.language-selector.active .icon-arrow-down {
    transform: rotate(180deg);
}

.google-translate {
    position: relative;
    cursor: pointer;
    /* padding: 10px 16px; */
    font-size: 16px;
    display: flex;
    align-items: center;
    flex: none;
    min-width: 60px;
    box-sizing: border-box;
    justify-content: space-between;
}

/* .google-translate::after {
    content: "\e6f0";
    font-family: iconfont !important;
    font-size: 16px;
    font-style: normal;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    width: 20px;
    text-align: right;
} */

.google-translate .google-translate-current {
    position: relative;
    cursor: pointer;
    color: #333;
    font-weight: bold;
    /* padding: 10px 0 10px 16px; */
    font-size: 16px;
    display: flex;
    align-items: center;
    flex: none;
    box-sizing: border-box;
    justify-content: space-between;
}

.google-translate .google-language {
    width: auto;
    min-width: 140px;
    color: var(--heading-color);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10000;
    overflow-y: auto;
    margin-top: 8px;
    padding: 8px 0;
    box-sizing: border-box;
    max-height: 400px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .05);
    border-radius: 8px;
    display: none;
}

.google-translate .google-language::-webkit-scrollbar {
    width: 6px;
}

.google-translate .google-language::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .2);
    border-radius: 3px;
}

.google-translate .google-language::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, .3);
}

.google-translate .google-language::-webkit-scrollbar-track {
    background-color: transparent;
}

.google-translate .google-translate-item {
    line-height: 24px;
    padding: 8px 16px;
    margin: 0 8px;
    cursor: pointer;
    text-align: left;
    position: relative;
    user-select: none;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #333;
    font-size: 14px;
}

.google-translate .google-translate-item:hover {
    background-color: #f5f5f5;
    color: #1890ff;
}

.google-translate .google-translate-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
}

.google-translate .google-translate-item.active::after {
    content: '✓';
    position: absolute;
    right: 16px;
    color: #1890ff;
    font-weight: bold;
}

/* 确保下拉框文字清晰可见 */
.google-translate .google-language * {
    position: relative;
    z-index: 999;
}

/* 增强下拉框边框，使其更加清晰 */
.google-translate .google-language::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 8px;
    z-index: -1;
}

@media screen and (max-width: 768px) {
    .google-translate {
        width: 100%;
        outline: 0;
        padding: 0 16px;
        flex: auto;
        box-sizing: border-box;
    }

    .google-translate::after {
        position: absolute;
        right: 16px;
    }

    .google-translate .google-translate-current {
        width: 100%;
        height: 100%;
        line-height: 48px;
        color: #333;
    }

    .google-translate .google-language {
        width: 100%;
        top: auto;
        bottom: 60px;
        margin: 0;
        max-height: 200px;
        box-sizing: border-box;
        border-radius: 8px 8px 0 0;
        z-index: 10000;
    }

    .google-translate .google-translate-item {
        line-height: 24px;
        padding: 12px 16px;
        font-size: 15px;
    }

    .header .operat .google-translate {
        display: none !important;
    }
}