@charset "utf-8";
/* ==========================================================================
   en.css · 英文站专用覆盖表
   --------------------------------------------------------------------------
   只作用于 html[lang="en"] 的页面，中文页完全不受影响（本文件只被 /en/ 引入）。

   为什么需要单独一层：
   1. 字体：原站 font-family 首位是 Microsoft YaHei，拉丁字形偏窄偏挤；
   2. 字距：中文版为了汉字排版加了 .1em~.2em 字距，英文会散架；
   3. 截断：原站卡片标题都是 height+nowrap+ellipsis 的单行盒，中文 6~12 字够用，
      英文 30~50 字符必然被切，需要改成两行截断；
   4. 缩进：text-indent:2em 是中文首行缩进习惯，英文段落不缩进；
   5. 品牌：法定英文名 44 字符，32px 会顶破头部，需要降级到 21px；
   6. 语言切换器是本文件新增的组件，原站没有。

   选择器一律带 html[lang="en"] 前缀提高特异度；仍压不住的原站规则才用
   !important（已逐条注明原因，不要随手加）。
   ========================================================================== */

/* ---------------------------------------------------------------- 1 排版基座 */
html[lang="en"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}
html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea {
  font-family: inherit;
}
/* 英文字身有大小写与词间距，行高比中文略紧更好读 */
html[lang="en"] body {
  line-height: 1.65;
}
/* 中文首行缩进全部取消。原站缩进散落在 .pro-intro .textxq p、.info p 等
   高特异度选择器里，这里统一用 !important 清掉，避免逐条对齐 */
html[lang="en"] p {
  text-indent: 0 !important;
  hanging-punctuation: none;
}
/* 中文靠字距撑开标题气势，英文加字距只会散。仅保留全大写小标签的字距 */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] .nav li a,
html[lang="en"] .hero-values {
  letter-spacing: 0;
}
/* 英文断词：长单词（Glucomannan、Coagulability）在窄卡片里要能折行 */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] p,
html[lang="en"] li,
html[lang="en"] dd,
html[lang="en"] dt {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* ------------------------------------------------------- 2 品牌区与头部尺寸 */
/* 法定英文名 44 字符。原站 .logo 宽 70% 会把名字挤成「…Co., / Ltd.」两行，
   第二行只剩 "Ltd."，很难看。这里放开宽度让品牌框按内容撑开、名字单行。 */
html[lang="en"] .logo {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
}
html[lang="en"] .huipu-brand {
  width: auto;
  max-width: 100%;
}
html[lang="en"] .huipu-brand strong {
  font-size: clamp(15px, 1.45vw, 21px);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0;
}
html[lang="en"] .huipu-brand small {
  font-size: 11px;
  letter-spacing: 0.1em;
}
/* 座机标签由「王经理」变「Manager Wang」，原站 88px 网格列放不下会压到号码上 */
html[lang="en"] .header-phone-preview .phone-row {
  grid-template-columns: 132px max-content;
}
html[lang="en"] .header-phone-preview .contact-name {
  font-size: 18px;
  white-space: nowrap;
}
html[lang="en"] .header-phone-preview .contact-number {
  font-size: 32px;
}
/* ------------------------------------------------------------ 3 头部尺寸补丁 */
/* 切换器本身的样式与桌面头部加高都在 lang-switch.css（中英共用），
   这里只处理英文特有的尺寸 */
@media (max-width: 1199px) {
  html[lang="en"] .huipu-brand {
    max-width: calc(100% - 150px);
  }
}

/* --------------------------------------------------- 4 单行截断盒改两行截断 */
/* 原站这些卡片标题都是 height+nowrap+ellipsis，中文够用、英文必切。
   统一改成两行 -webkit-box 截断，盒子高度不变，卡片对齐不被打乱。 */
html[lang="en"] .n_box h3,
html[lang="en"] .news_lb li h2,
html[lang="en"] .related-news .news li h3,
html[lang="en"] .anli_lb ul li p,
html[lang="en"] .pending-tile p {
  display: -webkit-box !important; /* 原站是 block / inline，且带 height 硬约束 */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: auto !important;
  white-space: normal !important;
  text-overflow: clip;
}
html[lang="en"] .n_box h3 {
  min-height: 60px; /* 原站 fidelity.css 固定 30px 单行，给足两行 */
  line-height: 30px;
}
html[lang="en"] .news_lb li h2 {
  min-height: 54px;
  line-height: 27px;
  padding-right: 130px; /* 右侧 time 绝对定位，英文日期更长，让位多一些 */
}
html[lang="en"] .related-news .news li h3 {
  line-height: 1.5;
  margin-bottom: 8px;
}
html[lang="en"] .anli_lb ul li p,
html[lang="en"] .pending-tile p {
  line-height: 1.45;
  min-height: 2.9em;
}

/* 产品卡名称：盒子 55px 不动，改为纵向居中两行 */
html[lang="en"] .product ul li p {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 55px !important;
  padding: 0 8px;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow: hidden;
  text-overflow: clip;
  font-size: 15px !important;
  text-align: center;
}

/* 摘要类段落：原站用固定 height 卡两行，英文行高不同会啃掉半行 */
html[lang="en"] .n_box p,
html[lang="en"] .news-lb li p {
  height: auto !important;
  max-height: 78px;
}

/* -------------------------------------------------------- 5 详情页正文排版 */
html[lang="en"] .pro-intro .info p {
  height: auto !important; /* 原站 45px 单行，英文规格句会被切 */
  min-height: 45px;
  line-height: 1.6;
  padding: 6px 0;
}
html[lang="en"] .pro-intro .textxq p,
html[lang="en"] .prose p {
  line-height: 1.75;
  text-align: left;
}
html[lang="en"] .article-summary,
html[lang="en"] .pending-notice p,
html[lang="en"] .contact-details > p {
  line-height: 1.7;
}
/* 中文标点挤压才用的 1.8~2 倍行高，英文 1.7 已足够，避免页面被拉长 */
html[lang="en"] .contact-checklist p {
  line-height: 1.7;
}
/* 文章正文列宽。原站容器 1180px，中文一句 20 来字读着不累，英文同样宽度
   变成 130 字符一行，眼睛回到下一行会串行。880px 约 75 字符，落在常用区间。
   限的是 article 而不是 .prose：标题、摘要框、正文三者同宽才不会出现
   「标题比正文宽一截」的错位感。产品详情页没有 news-article 类，不受影响。 */
html[lang="en"] article.news-article {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------ 6 页脚重排 */
/* 中文四字标题塞得进 20% 栏的 1fr 1fr 栅格，英文不行：
   "Certifications" 会被拆成 "Certificatio / ns"，产品分类的长标签
   （Special-grade Konjac Powder (Silk-knot)）直接横向溢出压到相邻行。
   处理：常规链接禁止词内断行；产品分类改单列、允许整句折行。 */
html[lang="en"] .footer a,
html[lang="en"] .footer li {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
html[lang="en"] .footer .b_nav1 {
  flex: 0 0 22%;
  width: 22%;
}
html[lang="en"] .footer .b_nav1 a {
  white-space: nowrap;
}
html[lang="en"] .footer .b_nav {
  flex: 0 0 26%;
  width: 26%;
}
html[lang="en"] .footer .b_nav ul {
  grid-template-columns: 1fr;
  gap: 8px;
}
html[lang="en"] .footer .b_nav li a {
  white-space: normal;
  line-height: 1.45;
  padding: 5px 8px;
}
html[lang="en"] .footer .info {
  flex: 0 0 38%;
  width: 38%;
}
/* 联系页「Manager Du:151-…」冒号后直接贴号码，补一点间距 */
html[lang="en"] .contact-person a {
  margin-left: 4px;
}
html[lang="en"] .license-info .license-number {
  margin-left: 4px;
}

/* 回到顶部按钮：原站用的是 48×72 的 PNG（reference-ui/top.png），图片里
   烧死了「顶部」两个汉字，没法翻译。桌面端该按钮本来就被 .fanhui{display:none}
   关掉；移动端会显示，所以直接隐藏图片，不留中文。 */
html[lang="en"] .fanhui img {
  display: none;
}

/* ------------------------------------------------------------ 7 移动端补充 */
@media (max-width: 1199px) {
  /* 移动菜单是黑底白字列表，英文项更长，允许换行 */
  html[lang="en"] .nav li a {
    line-height: 1.3;
    padding: 12px 0;
    font-size: 16px;
  }
  html[lang="en"] .n_box h3 {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  /* 法定英文名 44 字符，桌面单行（21px nowrap）在 390 下会把文档撑破，
     整页横向溢出、右侧内容被裁。移动端必须允许折行。 */
  html[lang="en"] .huipu-brand strong {
    white-space: normal;
    font-size: 14px;
    line-height: 1.25;
  }
  html[lang="en"] .huipu-brand small {
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }
  /* 头部高度是写死的 calc(.6rem + 28px)（约 88px）＋ .had overflow:hidden，
     只够中文一行「湖北惠葡生化科技有限公司」。英文法定名折成 3~4 行后被
     上下同时裁掉（首行直接看不见）。英文侧改成自适应高度。 */
  html[lang="en"] .head {
    height: auto;
    min-height: calc(0.6rem + 28px);
  }
  html[lang="en"] .had {
    height: auto;
    padding: 10px 0;
    overflow: visible;
  }

  html[lang="en"] .huipu-brand {
    /* 右上角有语言切换（约 78px）＋菜单圆钮（48px），品牌区必须让出来，
       否则副标题第二行会钻到切换器底下 */
    max-width: calc(100% - 140px);
  }

  /* 产品分类筛选：原站 li 宽 50% + 5px 边框 + 外边距，content-box 下
     两列合计超过 100%，中文页一样会横向溢出 20px。英文标签又更长，
     双列必然省略号。英文侧改单列、允许换行，先把溢出消掉。 */
  html[lang="en"] .product-categories li {
    width: 100% !important;
    margin: 4px 0 !important;
    border: 0 !important;
  }
  html[lang="en"] .product-categories a {
    font-size: 16px;
    line-height: 44px;
    white-space: normal;
  }

  /* 内页 banner 是固定长宽比（750/240 ≈ 125px 高）＋ overflow:hidden，
     只装得下中文一行标题＋一行副标题。英文标题 35px 折两行、副标题折两行，
     会从底部溢出被裁掉。改成固定高度并垂直居中。 */
  html[lang="en"] .n_banner {
    aspect-ratio: auto;
    height: 210px;
    max-height: none;
  }
  html[lang="en"] .inner-banner-copy {
    top: 50%;
    transform: translateY(-50%);
    right: 7%;
  }
  html[lang="en"] .inner-banner-copy h1 {
    font-size: 28px;
    line-height: 1.25;
  }
  html[lang="en"] .inner-banner-copy p {
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-top: 12px;
  }

  /* 移动端已有底部快捷条，回到顶部是冗余；且原站那张 PNG 里带中文，
     隐藏图片后只剩孤零零一个箭头飘在内容上。整体关掉。 */
  html[lang="en"] .fanhui {
    display: none;
  }

  /* 面包屑在 390 下放不下四级。去掉「You are here」与当前页标题，
     只留 首页 / 栏目，字号降到 11px。 */
  html[lang="en"] .mbx .p1,
  html[lang="en"] .mbx .p1 a,
  html[lang="en"] .mbx .p1 span {
    font-size: 11px;
  }
  html[lang="en"] .mbx .p1 > *:first-child {
    display: none;
  }
  html[lang="en"] .mbx .p1 > *:nth-child(n + 4) {
    display: none;
  }
}
