.language-switcher {
  position: fixed;
  top: 30px;
  right: 184px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 126px;
  padding: 4px;
  border: 1px solid rgba(130, 224, 239, 0.28);
  border-radius: 999px;
  background: rgba(5, 14, 20, 0.76);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(1.15);
}

.language-switcher a {
  display: grid;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  color: rgba(230, 243, 247, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: #ffffff;
}

.language-switcher a[aria-current="true"] {
  color: #061216;
  background: #b8f7eb;
  box-shadow: 0 4px 18px rgba(89, 233, 255, 0.25);
}

.language-switcher a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

html:lang(zh-CN) body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

html:lang(zh-CN) :is(h1, h2, h3, .sphere-link, .mobile-menu-panel a) {
  letter-spacing: -0.025em;
}

html:lang(zh-CN) :is(p, li, label, input, textarea, button, a) {
  word-break: normal;
  overflow-wrap: anywhere;
}

html:lang(zh-CN) .section-kicker,
html:lang(zh-CN) .hardware-eyebrow,
html:lang(zh-CN) .gallery-kicker {
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .language-switcher {
    top: 18px;
    right: 72px;
    width: 108px;
    padding: 3px;
  }

  .language-switcher a {
    min-height: 36px;
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .language-switcher {
    right: 68px;
    width: 94px;
  }
}

/* CJK display type needs more vertical room than the Latin display settings. */
html:lang(zh-CN) :is(h1, h2, h3) {
  line-height: 1.14;
  letter-spacing: -0.018em;
}

html:lang(zh-CN) .home-page :is(.service-intro h2, .systems-copy h2, .about-copy h2, .contact-copy h2) {
  font-size: clamp(2.2rem, 3.7vw, 4.05rem);
  line-height: 1.12;
}

html:lang(zh-CN) .home-page .about-story-section .about-copy h2 {
  font-size: clamp(2.75rem, 4.2vw, 4.8rem);
  line-height: 1.14;
}

html:lang(zh-CN) .home-page .about-chapter h3 {
  font-size: clamp(1.55rem, 2.15vw, 2.45rem);
  line-height: 1.16;
}

html:lang(zh-CN) .hardware-hero h1 {
  font-size: clamp(2.9rem, 4.5vw, 5.3rem);
  line-height: 1.16;
}

html:lang(zh-CN) .hardware-section-heading h2 {
  font-size: clamp(2.7rem, 4.7vw, 5.4rem);
  line-height: 1.1;
}

html:lang(zh-CN) .hardware-category-copy h3 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.12;
}

html:lang(zh-CN) .hardware-statement h2 {
  font-size: clamp(3.1rem, 5.3vw, 6.2rem);
  line-height: 1.08;
}

html:lang(zh-CN) .hardware-story-copy h2 {
  font-size: clamp(2.7rem, 4.4vw, 5rem);
  line-height: 1.1;
}

html:lang(zh-CN) .hardware-story-chapter h3 {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.13;
}

html:lang(zh-CN) .hardware-cta h2 {
  font-size: clamp(2.7rem, 4.6vw, 5.25rem);
  line-height: 1.1;
}

html:lang(zh-CN) .web-round-heading h1 {
  font-size: clamp(2.9rem, 4.8vw, 4rem);
  line-height: 1.14;
}

html:lang(zh-CN) .service-hero h1 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 1.12;
}

html:lang(zh-CN) :is(.detail-copy h2, .detail-list-heading h2) {
  font-size: clamp(1.6rem, 2.3vw, 2.8rem);
  line-height: 1.14;
}

html:lang(zh-CN) .shop-page .shop-heading h1 {
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  line-height: 1.1;
}

html:lang(zh-CN) .product-page .product-detail-copy h1 {
  font-size: clamp(1.85rem, 2.9vw, 2.9rem);
  line-height: 1.14;
}

@media (max-width: 560px) {
  html:lang(zh-CN) .home-page :is(.service-intro h2, .systems-copy h2, .about-copy h2, .contact-copy h2) {
    font-size: 2.05rem;
  }

  html:lang(zh-CN) .home-page .about-story-section .about-copy h2 {
    font-size: clamp(2.2rem, 10.2vw, 3rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .hardware-hero h1 {
    font-size: clamp(2.65rem, 11vw, 3.8rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .hardware-section-heading h2 {
    font-size: clamp(2.35rem, 10.2vw, 3.3rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .hardware-category-copy h3 {
    font-size: clamp(2rem, 8.8vw, 2.6rem);
  }

  html:lang(zh-CN) .hardware-statement h2 {
    font-size: clamp(2.65rem, 11vw, 3.8rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .hardware-story-copy h2 {
    font-size: clamp(2.2rem, 9.6vw, 2.95rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .hardware-story-chapter h3 {
    font-size: clamp(1.5rem, 6.2vw, 1.85rem);
  }

  html:lang(zh-CN) .hardware-cta h2 {
    font-size: clamp(2.35rem, 10.2vw, 3.3rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .web-round-heading h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.15rem);
    line-height: 1.1;
  }

  html:lang(zh-CN) .service-hero h1 {
    font-size: clamp(2.65rem, 11.2vw, 4rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .shop-page .shop-heading h1 {
    font-size: clamp(2.3rem, 10vw, 3.3rem);
    line-height: 1.12;
  }

  html:lang(zh-CN) .product-page .product-detail-copy h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.45rem);
    line-height: 1.16;
  }
}
