/* ============================================================
   英文模式排版适配（2026-10-15）
   起因：中文切英文后文字整体变长，原本按中文长度设计的固定宽高会挤压/溢出。
   全部规则限定 html[lang="en"]，中文模式完全不受影响。
   触发位置由浏览器实测滚动溢出扫描得出（scrollWidth>clientWidth）。
   ============================================================ */

/* ① 产品页规格表：标签列 92px + nowrap 会让 "Min. bending radius"(124px) 溢出压到数值列 */
html[lang="en"] .p5_prod_spec_table dt {
    flex: 0 0 132px;
    width: 132px;
    white-space: normal;
    line-height: 18px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* 数值列原本限 2 行，英文更长，放宽到 3 行避免被裁 */
html[lang="en"] .p5_prod_spec_table dd {
    -webkit-line-clamp: 3;
    line-height: 21px;
}

/* ② 「Recommended Products」等小节标题：按中文宽度定死会横向溢出 */
html[lang="en"] .p5_title1,
html[lang="en"] .p5_title1 span,
html[lang="en"] .p5_title2,
html[lang="en"] .p5_title2 span {
    width: auto !important;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

/* ③ 产品列表卡片：英文标题/摘要更长，行数放宽 */
html[lang="en"] .pc-card h3 {
    -webkit-line-clamp: 3;
    line-height: 1.45;
}

html[lang="en"] .pc-card .pc-ex {
    -webkit-line-clamp: 3;
    line-height: 1.6;
}

/* ④ 新闻/资讯卡片 */
html[lang="en"] .nc-card h3,
html[lang="en"] .nc-list h3,
html[lang="en"] .nc-item h3 {
    -webkit-line-clamp: 3;
    line-height: 1.45;
}

html[lang="en"] .nc-ex {
    -webkit-line-clamp: 3;
    line-height: 1.6;
}

/* ⑤ 面包屑/位置行：英文逐级变长，允许折行不撑破容器 */
html[lang="en"] .p5_position,
html[lang="en"] .position,
html[lang="en"] .crumb {
    white-space: normal;
    word-break: break-word;
    line-height: 1.6;
}

/* ⑥ 通用兜底：英文长单词（型号+规格连写）不撑破盒子 */
html[lang="en"] .p5_prod_spec_table dd,
html[lang="en"] .p5_prod_content_con01.endit-content,
html[lang="en"] .pc-card,
html[lang="en"] .nc-card {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ⑦ 顶部导航/侧栏项：英文名更长，保证不裁切（高度自适应） */
html[lang="en"] .left-nav h4 a,
html[lang="en"] .left-nav p a {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.45;
    height: auto;
}

/* ⑧ 首页推荐位/轮播里的产品名 */
html[lang="en"] .pro-bot em,
html[lang="en"] .pro-top em {
    white-space: normal;
    overflow: visible;
    line-height: 1.45;
}
