/* English site: Latin text runs wider than CJK and needs normal tracking */
html[lang="en"] body {
  font-family: var(--font-en);
}

html[lang="en"] .header__cta {
  width: auto;
  padding: 0 18px;
}

/* nav: Latin labels are wider — tighten the gap and let the brand column shrink */
html[lang="en"] .header__brand {
  width: auto;
  flex: 1 1 0;
}

html[lang="en"] .header__nav {
  flex: none;
  gap: 30px;
  margin-right: auto;
}

html[lang="en"] .header__aside {
  flex: 1 1 0;
  justify-content: flex-end;
}

/* CJK-tuned negative tracking and no-wrap lines read badly in English */
html[lang="en"] :is(.banner__title, .section__title, .about__title, .tech-arch__title, .biz__title,
  .article__title, .hero__title, .inquiry__title, .contact__title) {
  letter-spacing: -0.02em;
}

html[lang="en"] :is(.about-intro__zh, .biz__desc, .tech-idea__text, .news-row__title,
  .stack-card p, .stack-card h3, .result-card h3, .coop-card p, .coop-card h4, .mode-card h4,
  .biz__subhead, .footer__slogan, .footer__col, .footer__bottom, .hero__desc, .article__meta) {
  letter-spacing: 0;
}

html[lang="en"] .biz__no {
  letter-spacing: 0.12em;
}

/* fixed-height sections from the CJK comp: let English copy set the height */
html[lang="en"] :is(.home-biz, .home-tech, .home-ind, .home-news, .about-team, .tech-stack, .tech-results,
  .biz--token, .biz--dc) {
  height: auto;
  padding-bottom: 90px;
}

html[lang="en"] :is(.biz-card, .tech-card, .stack-card, .result-card, .mode-card, .coop-card, .team__card) {
  height: auto;
  min-height: var(--min-h, 0);
}

html[lang="en"] .biz-card { --min-h: 471px; }
html[lang="en"] .biz-card__body { padding-bottom: 32px; }
html[lang="en"] .tech-card { --min-h: 179px; padding-bottom: 26px; }
html[lang="en"] .stack-card { --min-h: 137px; padding-bottom: 26px; }
html[lang="en"] .result-card { --min-h: 162px; padding-bottom: 28px; }
html[lang="en"] .mode-card { --min-h: 120px; padding-bottom: 28px; }
html[lang="en"] .coop-card { --min-h: 118px; padding-bottom: 28px; }
html[lang="en"] .team__card { --min-h: 256px; padding-bottom: 24px; }

html[lang="en"] :is(.biz__desc, .tech-idea__text, .result-card p, .mode-card p, .coop-card p, .bullets, .news-row__text) {
  line-height: 1.6;
}

html[lang="en"] .bullets {
  gap: 14px;
}

html[lang="en"] .news-row {
  height: auto;
  min-height: 190px;
}

html[lang="en"] .news-row__body {
  margin-top: 26px;
  padding-bottom: 12px;
}

html[lang="en"] .hero__title {
  font-size: 58px;
}

html[lang="en"] .hero__desc {
  width: 640px;
}

html[lang="en"] .stat__num {
  letter-spacing: -0.01em;
}

html[lang="en"] .inquiry__intro {
  width: 460px;
  max-width: 100%;
}

@media (max-width: 1279px) {
  html[lang="en"] .header__nav {
    gap: 20px;
  }

  html[lang="en"] .header__brand {
    margin-right: 24px;
  }
}

@media (max-width: 1023px) {
  html[lang="en"] .header__aside {
    flex: none;
  }

  html[lang="en"] .abilities span {
    padding: 0 8px;
    font-size: 13.5px;
    text-align: center;
  }

  html[lang="en"] .hero {
    height: auto;
    min-height: 760px;
    padding-bottom: 80px;
  }

  html[lang="en"] .hero__title {
    font-size: 48px;
    line-height: 62px;
    gap: 10px;
  }

  html[lang="en"] .hero__desc {
    width: auto;
  }
}

@media (max-width: 767px) {
  html[lang="en"] .hero {
    min-height: 0;
    padding-bottom: 51px;
  }

  html[lang="en"] .hero__title {
    font-size: 26px;
    line-height: 32px;
    gap: 12px;
  }

  html[lang="en"] .chip {
    padding: 0 14px;
    font-size: 13px;
  }

  html[lang="en"] .stat {
    height: auto;
    min-height: 92px;
    padding-bottom: 16px;
  }

  html[lang="en"] .stat__num {
    font-size: 20px;
  }

  html[lang="en"] .ind-card {
    height: auto;
  }

  html[lang="en"] .tech-card,
  html[lang="en"] .news-card__body {
    height: auto;
  }

  html[lang="en"] .biz-card {
    --min-h: 108px;
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  html[lang="en"] .biz-card__body {
    padding-bottom: 0;
  }

  html[lang="en"] .stack-card,
  html[lang="en"] .result-card,
  html[lang="en"] .mode-card,
  html[lang="en"] .coop-card,
  html[lang="en"] .tech-card,
  html[lang="en"] .team__card,
  html[lang="en"] .news-row {
    --min-h: 0;
    min-height: 0;
  }

  html[lang="en"] :is(.home-biz, .about-team, .tech-stack, .tech-results, .biz--token, .biz--dc) {
    padding-bottom: 48px;
  }

  html[lang="en"] .home-biz {
    padding-bottom: 0;
  }
}

/* 英文版副标题与标题重复，隐藏 */
html[lang="en"] .arch__en {
  display: none;
}

/* 英文版标题已是英文，去掉重复的英文小标 */
html[lang="en"] .gene__en { display: none; }
