.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(8px, 1.25vw, 18px);
}
.language-switch {
  position: relative;
  font-size: .83rem;
  font-weight: 560;
  white-space: nowrap;
}
.language-switch summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::after {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  content: "";
}
.language-switch[open] summary::after { transform: translateY(3px) rotate(225deg); }
.language-options {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 100%;
  min-width: 132px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 9px 22px #15171918;
}
.language-options a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.language-options a:hover, .language-options a[aria-current="true"] { background: #eeebe6; }
.language-options a[aria-current="true"] { font-weight: 700; }
.language-switch--mobile { display: none; }
[data-original-language]::after {
  margin-inline-start: .45em;
  color: var(--muted);
  font-size: .78em;
  content: attr(data-original-language);
}

:lang(zh-Hans) :is(h1, h2, h3, h4, .flagship-model) { letter-spacing: -.02em; }
:lang(zh-Hans) .flagship h1 { font-size: clamp(2.9rem, 6.4vw, 6.35rem); }

@media (max-width: 1024px) {
  .language-switch--desktop { display: none; }
  .language-switch--mobile {
    display: block;
    padding: 0 12px 2px;
    border-bottom: 1px solid var(--line);
  }
  .language-switch--mobile .language-options {
    position: static;
    margin-bottom: 7px;
    border: 0;
    box-shadow: none;
  }
}
@media (max-width: 760px) {
  :lang(zh-Hans) .flagship h1 { font-size: clamp(2.1rem, 8.4vw, 4.4rem); }
}
@media (max-width: 360px) {
  .header-actions .button-header { flex: 0 1 auto; white-space: normal; }
}
