/* ==========================================================================
   中英文切换组件样式
   说明：桌面端切换器放在页头信息栏右侧（社交图标左侧），
        平板/手机端放在侧滑菜单末尾，保证各端都能切换语言。
   ========================================================================== */

/* 切换器容器：两个语言按钮并排 */
.lang-switch {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* 桌面端：顶部信息栏右侧仅保留语言切换器（社交图标已移除），贴右对齐 */
.top-header-area .top-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-header-area .top-right .lang-switch {
    margin-right: 0;
}

/* 顶部栏高度有限，按钮适当收紧，避免撑高页头 */
.top-header-area .top-right .lang-btn {
    min-width: 40px;
    min-height: 36px;
    font-size: 14px;
}

/* 语言按钮：最小 44x44 点击区域，满足触控与无障碍要求 */
.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, .65);
    cursor: pointer;
    -webkit-transition: color .25s ease;
         -o-transition: color .25s ease;
            transition: color .25s ease;
}

/* 当前语言：颜色加下划线双重标识，不单靠颜色传达信息 */
.lang-btn.active {
    color: #FFAA17;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-btn:hover,
.lang-btn:focus {
    color: #FFAA17;
}

/* 键盘聚焦时的可见焦点环 */
.lang-btn:focus-visible {
    outline: 2px solid #FFAA17;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 语言分隔符 */
.lang-sep {
    margin: 0 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* 中文字符比英文宽，首屏大标题单独收小字号，避免末尾单字换行 */
html[lang="zh-CN"] .hero-content h1 {
    font-size: 48px;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* 中文标题需跟随原模板的响应式断点逐级收小 */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    html[lang="zh-CN"] .hero-content h1 {
        font-size: 40px;
        line-height: 1.4;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    html[lang="zh-CN"] .hero-content h1 {
        font-size: 32px;
        line-height: 1.4;
    }
}

@media only screen and (max-width: 767px) {
    html[lang="zh-CN"] .hero-content h1 {
        font-size: 24px;
        line-height: 34px;
    }
}

/* 中文段落行高略放宽，长句更易读 */
html[lang="zh-CN"] .about-content-box p,
html[lang="zh-CN"] .clients-content-box p,
html[lang="zh-CN"] .single-testimonial p {
    line-height: 1.9;
}

/* 侧滑菜单里的语言项：桌面端隐藏（桌面用页头信息栏的切换器） */
.header-navigation .main-menu ul li.lang-menu-item {
    display: none;
}

@media only screen and (max-width: 1199px) {
    /* 平板/手机：侧滑菜单中显示语言项，独占一行 */
    .header-navigation .main-menu ul li.lang-menu-item {
        display: block;
        padding: 8px 20px 12px;
        border-bottom: 0;
    }

    .header-navigation.breakpoint-on .lang-menu-item .lang-switch {
        display: flex;
    }

    /* 侧滑菜单是浅色背景，文字改用深色以保证对比度 */
    .header-navigation.breakpoint-on .lang-btn {
        color: #222429;
        min-width: 40px;
    }

    .header-navigation.breakpoint-on .lang-btn.active,
    .header-navigation.breakpoint-on .lang-btn:hover {
        color: #FFAA17;
    }

    .header-navigation.breakpoint-on .lang-sep {
        color: rgba(34, 36, 41, .35);
    }
}
