.languages {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}

.languages a,
.languages [aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.languages [aria-current] {
  background: rgba(81, 50, 115, .1);
  color: #513273;
  font-weight: 700;
}

.languages [aria-current]:focus-visible {
  outline: 3px solid #604281;
  outline-offset: 2px;
}

.navigation > a,
.navigation > button {
  white-space: nowrap;
}

:lang(zh-Hans) body {
  font-family: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

:lang(zh-Hans) .hero h1,
:lang(zh-Hans) .kit-lead h1,
:lang(zh-Hans) main h2,
:lang(zh-Hans) dialog h2 {
  letter-spacing: 0;
  line-height: 1.15;
}

:lang(zh-Hans) .kit-lead h1 {
  font-size: clamp(42px, 4.5vw, 78px);
}

@media (max-width: 900px) {
  .navigation {
    gap: clamp(12px, 4vw, 32px);
  }

  :lang(zh-Hans) .hero h1 {
    font-size: clamp(40px, 9vw, 74px);
  }
}

.languages, .product-hint-anchor { position: relative; }
.product-hint-anchor { display: inline-block; max-width: 100%; }

.speech-hint {
  position: absolute;
  z-index: 5;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  gap: 2px;
  width: max-content;
  padding: 9px 15px 10px;
  border: 2px solid #573377;
  border-radius: 15px 13px 16px 8px;
  background: #745095;
  color: #fff;
  box-shadow: 2px 3px 0 #51327338;
  pointer-events: none;
  font: 600 15px/1.3 Arial, sans-serif;
  text-align: start;
  white-space: nowrap;
}
.speech-hint::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-top: 2px solid #573377;
  border-left: 2px solid #573377;
  transform: rotate(45deg);
}
.product-hint-anchor .speech-hint {
  left: 0;
  right: auto;
  max-width: min(270px, 84vw);
  white-space: normal;
}
.product-hint-anchor .speech-hint::before {
  left: 24px;
  right: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .speech-hint { animation: hint-appear .18s ease-out both; }
  @keyframes hint-appear { from { opacity: 0; transform: translateY(-3px); } }
}
