/* English homepage refinements, with certificate sizing aligned to the Chinese homepage. */
.en-home {
  --eh-ink: #183b50;
  --eh-accent: #0b6382;
  --eh-rule: #d4dfe3;
  --eh-space: 48px;
}
.en-home ::selection { background: #c9e3ed; color: #183b50; }
.en-home a:focus-visible { outline: 3px solid #0b6382; outline-offset: 5px; }
.en-home .en-hero a:focus-visible,
.en-home .en-contact a:focus-visible { outline-color: #fff; }
.en-home h1, .en-home h2, .en-home h3 { text-wrap: balance; }
.en-home p { text-wrap: pretty; }
.en-home .en-section { padding-block: var(--eh-space); }
.en-home .en-hero { min-height: 480px; height: 58vh; max-height: 600px; }
.en-home .en-hero h1 { max-width: 850px; font-size: clamp(34px, 4vw, 56px); }
.en-home .en-hero-copy { max-width: 640px; margin-top: 22px; font-size: 18px; }
.en-home .en-button { gap: 14px; font-size: 16px; }
.en-home .en-button svg { flex-shrink: 0; }
.en-home .en-about { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.en-home .en-section h2, .en-home .en-contact h2 {
  color: var(--eh-ink); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.2;
}
.en-home .en-section-copy > p, .en-home .en-global-copy > p {
  max-width: 65ch; margin-top: 16px; line-height: 1.7;
}
.en-home .en-home-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px 36px; margin-bottom: 28px;
}
.en-home .en-home-heading p { margin: 12px 0 0; color: #59666c; font-size: 16px; }
.en-home .en-home-more {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 46px; padding: 9px 0; color: var(--eh-accent);
  font-size: 16px; font-weight: 650; border-bottom: 1px solid var(--eh-accent);
  text-decoration: none; flex-shrink: 0;
}
.en-home .en-home-more svg { flex-shrink: 0; }
.en-home .en-home-more:hover { color: #982b27; border-color: currentColor; }
.en-home .en-section-copy .en-home-more { margin-top: 18px; }
.en-home .en-expertise-grid {
  margin-top: 0; border: 0; gap: 0 30px;
}
.en-home .en-expertise-grid article {
  min-height: 0; padding: 22px 0; border: 0; border-top: 1px solid #bdcdd4;
}
.en-home .en-expertise-grid h3 { margin: 0 0 10px; font-size: 21px; }
.en-home .en-expertise-grid p { font-size: 16px; line-height: 1.65; }
.en-home-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.en-home-project { min-width: 0; display: flex; flex-direction: column; }
.en-home-project-image {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 8 / 5;
  overflow: hidden; background: #eef2f3;
}
.en-home-project-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.en-home-project h3 { margin: 20px 0 14px; font-size: 20px; line-height: 1.4; }
.en-home-project h3 a { color: var(--eh-ink); text-decoration: none; }
.en-home-project h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.en-home-project dl { margin: 0; color: #485b65; font-size: 14px; }
.en-home-project dl div { margin-bottom: 8px; }
.en-home-project dt { font-weight: 650; }
.en-home-project dd { margin: 0; }
.en-home-project p { margin: 10px 0 16px; color: #59666c; font-size: 16px; line-height: 1.65; }
.en-home-project-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; margin-top: auto; padding: 10px 0; border-top: 1px solid var(--eh-rule);
  color: var(--eh-accent); font-size: 16px; font-weight: 650; text-decoration: none;
}
.en-home-project-link:hover { color: #982b27; }
.en-home .en-patents { background: #f4f7f8; border-bottom: 0; }
.en-home .en-patents-layout {
  margin-top: 0; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.6fr); gap: 56px;
}
.en-home .en-patent-stat { padding: 16px 0; gap: 12px; }
.en-home .en-patent-stat strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.en-home .en-patent-stat p { font-size: 15px; color: #485b65; }
.en-home .en-patents-grid { gap: 24px; align-items: start; }
.en-home .en-patent-image { display: flex; align-items: center; justify-content: center; height: auto; aspect-ratio: 210 / 297; padding: 12px; border: 0; background: #fff; }
.en-home .en-patent-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.en-home .en-patent-media figcaption { font-size: 15px; line-height: 1.55; overflow-wrap: normal; }
.en-home .en-patent-media figcaption a { color: var(--eh-ink); text-decoration: none; }
.en-home .en-patent-media figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.en-home .en-proof { background: #fff; border-bottom: 1px solid var(--eh-rule); }
.en-home .en-proof-grid { margin-top: 28px; border: 0; gap: 28px; }
.en-home .en-proof-grid article { min-height: 0; padding: 22px 0 0; border: 0; border-top: 1px solid #9bb6c4; }
.en-home .en-proof-grid h3 { margin: 0 0 12px; font-size: 20px; }
.en-home .en-proof-grid p { margin: 0; font-size: 16px; line-height: 1.65; }
.en-home .en-global { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; }
.en-home .en-regions span { min-height: 80px; font-size: 16px; }
.en-home .en-contact { padding-block: 42px; }
.en-home .en-contact h2 { color: #fff; max-width: 740px; }
.en-home .en-contact .en-button { flex-shrink: 0; }
@media (max-width: 1040px) {
  .en-home { --eh-space: 36px; }
  .en-home .en-about { gap: 32px; }
  .en-home .en-patents-layout { grid-template-columns: 1fr; gap: 26px; }
  .en-home .en-patents-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .en-home-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .en-home .en-global { gap: 32px; }
}
@media (min-width: 1041px) {
  .en-home .en-patents > .en-section { max-width: 1264px; }
}
@media (max-width: 820px) {
  .en-home .en-about, .en-home .en-global { grid-template-columns: 1fr; gap: 26px; }
  .en-home .en-about-media { order: initial; }
  .en-home .en-home-heading { flex-wrap: wrap; gap: 14px; }
  .en-home .en-hero { min-height: 480px; max-height: 560px; }
  .en-home .en-about-media { max-height: 340px; }
  .en-home .en-contact { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 560px) {
  .en-home { --eh-space: 28px; }
  .en-home .en-hero { min-height: 510px; height: auto; }
  .en-home .en-hero > img { position: absolute; inset: 0; }
  .en-home .en-hero-content { position: relative; width: auto; padding: 54px 20px 36px; justify-content: center; }
  .en-home .en-hero-copy { font-size: 16px; line-height: 1.65; }
  .en-home .en-actions { margin-top: 24px; }
  .en-home .en-section { padding-inline: 20px; }
  .en-home .en-home-heading { margin-bottom: 22px; }
  .en-home .en-home-more { font-size: 15px; gap: 14px; }
  .en-home .en-expertise-grid { gap: 0; }
  .en-home .en-expertise-grid article { padding-block: 18px; }
  .en-home .en-expertise-grid h3 { font-size: 20px; }
  .en-home-project-grid { grid-template-columns: 1fr; gap: 30px; }
  .en-home-project h3 { margin-top: 16px; }
  .en-home .en-patents-copy { grid-template-columns: 1fr; }
  .en-home .en-patents-grid { grid-template-columns: 1fr; gap: 0; }
  .en-home .en-patent-media {
    display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px;
    align-items: start; padding: 18px 0; border-top: 1px solid var(--eh-rule);
  }
  .en-home .en-patent-image { height: 124px; aspect-ratio: auto; padding: 4px; }
  .en-home .en-patent-media figcaption { margin-top: 0; font-size: 15px; }
  .en-home .en-proof-grid { gap: 22px; margin-top: 22px; }
  .en-home .en-proof-grid article { padding-top: 18px; }
  .en-home .en-global { gap: 22px; }
  .en-home .en-regions span { min-height: 64px; padding: 12px; }
  .en-home .en-contact { padding: 32px 20px; }
  .en-home .en-contact .en-button { margin-top: 0; }
}
