/* ==========================================================
 * 多语言：语言切换按钮 + 英文模式下的排版修正
 * 英文模式时 <html lang="en">，下面以 html[lang="en"] 开头的规则只在英文下生效
 * ========================================================== */

/* ---------- 顶栏语言切换按钮（所有屏宽都可见） ---------- */
/* 与 logo、导航文字、汉堡菜单图标同在 80px 顶栏的垂直中线上（顶栏对齐见 style2.css） */
.header .lang_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    margin: 24px 0 0 30px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    color: #ffffff;
    font-size: 15px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1;
    white-space: nowrap;
    transition: all .3s ease-out 0s;
}

.header .lang_btn:hover,
.header .lang_btn:focus {
    background: #ffffff;
    color: #4083D9;
    text-decoration: none;
}

@media screen and (max-width: 1500px) {
    .header .lang_btn {
        margin-left: 0;
    }
}

/* ---------- 英文：统一字体 ----------
 * 原样式大量使用“创艺简中圆 / 微软雅黑”等中文字体，缺字体时英文会回退成衬线体（Times），
 * 且各处写法优先级不一，所以这里用 !important 统一；新闻日期的装饰字体 Paralines 单独保留。 */
html[lang="en"] body,
html[lang="en"] body * {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

html[lang="en"] body .nw_time span,
html[lang="en"] body .nw_time i {
    font-family: "Paralines-news", fantasy !important;
}

/* ---------- 英文：栏目标题（原来按 4 个汉字定宽，改为按内容自适应，两侧装饰线自动缩短） ---------- */
/* 英文段落更长，上方的右浮动块（如首页 .companyright）会伸进标题区域把标题挤偏，这里清除浮动 */
html[lang="en"] .line-wrapper {
    clear: both;
}

html[lang="en"] .line_view li:not(.title) {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    overflow: hidden;
}

html[lang="en"] .line_view li.title {
    flex: 0 0 auto;
    width: auto;
    padding: 0 6px;
    white-space: nowrap;
}

/* ---------- 英文：首页 banner 大标题 ---------- */
html[lang="en"] .banner_index_txt h2 {
    max-width: 1000px;
    line-height: 1.35;
}

/* 手机上首页 banner 英文比中文多两行，整体上移，避免按钮掉出 banner。
   只作用于首页（.banner_item > .banner-txt-container），解决方案 / 关于我们 / 媒体动态的 banner 结构不同，上移会被顶栏挡住 */
@media screen and (max-width: 768px) {
    html[lang="en"] .banner_item > .banner-txt-container .banner_index_txt h1 {
        margin-top: 22%;
    }

    html[lang="en"] .banner_item > .banner-txt-container .banner_index_txt .line {
        margin-top: 12px;
    }
}

/* 超窄屏（≤360px）：装饰大字 30px 会折成两行，缩小到一行，并让出顶栏位置 */
@media screen and (max-width: 360px) {
    html[lang="en"] .banner_item > .banner-txt-container .banner_index_txt h1 {
        font-size: 24px;
        margin-top: 26%;
    }
}

/* ---------- 英文：页脚标语（原 48px + 24px 行高，英文折行后会重叠） ---------- */
html[lang="en"] .official_view h4 {
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: 0;
    margin-top: 70px;
}

@media screen and (max-width: 1240px) {
    html[lang="en"] .official_view h4 {
        font-size: 22px;
        margin-top: 50px;
    }
}

/* ---------- 英文：顶栏导航（英文单词更长，缩小字号、去掉字间距） ---------- */
html[lang="en"] .nav_item > a {
    font-size: 20px;
    letter-spacing: 0;
}

/* ---------- 英文：banner 中由多段 <p> 浮动拼成的句子，改为自然换行的一段话 ---------- */
html[lang="en"] .banner_index_txt .car-hint {
    max-width: 600px;
}

html[lang="en"] .banner_index_txt .car-hint p {
    display: inline;
    float: none;
}

html[lang="en"] .banner_index_txt .car-hint .clearfix:after {
    display: none;
}

/* ---------- “查看更多”按钮 ----------
 * 中文继续使用原图片；图片里的文字无法翻译，英文改为 CSS 绘制的同款按钮（文字来自词条 common.more）。
 * 按钮宽高沿用原样式在各断点的设置，字号用 cqh 随按钮高度缩放。 */
.more_txt {
    display: none;
}

html[lang="en"] .more_txt {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

html[lang="en"] .more_txt:after {
    content: "\203A";
    margin-left: 0.4em;
    font-size: 1.3em;
    line-height: 1;
}

/* 首页产品区：蓝色描边按钮 */
html[lang="en"] .more_icon .img,
html[lang="en"] .more_icon:hover .img {
    background: none;
    container-type: size;
}

html[lang="en"] .more_icon .more_txt {
    box-sizing: border-box;
    height: 100%;
    border: 2px solid #0069ED;
    border-radius: 999px;
    color: #0069ED;
    font-size: 36cqh;
    transition: all .3s ease-out 0s;
}

html[lang="en"] .more_icon:hover .more_txt {
    background: #0069ED;
    color: #ffffff;
}

/* 首页 banner：白色描边按钮（原图在 >1500 / 769-1500 / ≤768 三档分别是 200x70 / 100x35 / 70x26） */
html[lang="en"] .banner_index_txt img.index-more {
    display: none;
}

html[lang="en"] .banner_index_txt .index-more.more_txt {
    box-sizing: border-box;
    padding-right: 0;
    border: 1px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

@media screen and (min-width: 1501px) {
    html[lang="en"] .banner_index_txt .index-more.more_txt {
        border-width: 2px;
        font-size: 20px;
    }
}

@media screen and (max-width: 768px) {
    html[lang="en"] .banner_index_txt .index-more.more_txt {
        font-size: 10px;
    }
}

/* 首页新闻卡片：蓝色文字链接 */
html[lang="en"] .newsmore img {
    display: none;
}

html[lang="en"] .newsmore .more_txt {
    color: #0069ED;
    font-size: 20px;
    line-height: 24px;
}

@media screen and (max-width: 768px) {
    html[lang="en"] .newsmore .more_txt {
        font-size: 13px;
        line-height: 16px;
    }
}

/* ---------- 英文：核心技术 / 加入我们 banner 居中文字（去掉字间距，限制行宽） ---------- */
html[lang="en"] .banner_txt h2 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
    letter-spacing: 0;
    word-spacing: 0;
}

/* ---------- 英文：核心技术页“产品功能”列表（标签较长时在图标右侧换行，而不是掉到图标下方） ---------- */
/* 原来用浮动排成网格，英文标签折行后各格高度不一会错位，改为 flex 换行 */
html[lang="en"] .te-production {
    display: flex;
    flex-wrap: wrap;
}

html[lang="en"] .te-production .u-list {
    float: none;
}

html[lang="en"] .te-production .u-list li {
    display: flex;
    align-items: center;
}

html[lang="en"] .te-production .u-list li img {
    flex-shrink: 0;
}

html[lang="en"] .te-production .u-list li p {
    float: none;
    min-width: 0;
    padding-right: 8px;
    line-height: 1.3;
}

/* ---------- 英文：关于我们 banner 愿景文字去掉字间距 ---------- */
html[lang="en"] .about_banner .banner_index_txt .car-hint .hight_txt {
    letter-spacing: 0;
}

/* ---------- 英文：加入我们“大字 + 后半句”标题 ----------
 * 中文是单个大字和后半句错位排版；英文改为同一行内联（首词放大），自然换行 */
html[lang="en"] .work-view .work-title {
    text-align: left;
}

html[lang="en"] .work-view .work-title .jiang {
    display: inline;
    float: none;
}

html[lang="en"] .work-view .work-title .jiang-hint {
    display: inline;
    margin-left: 0.25em;
}

/* ---------- 英文：招聘列表的“校招”角标，从单个汉字的方块改为自适应宽度 ---------- */
html[lang="en"] .recruit_item .schooltype,
html[lang="en"] .recondetail .detail_itema .campustype {
    width: auto;
    padding-left: 6px;
    padding-right: 6px;
}
