/* Language switcher — V3 ZH */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 1px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--white);
}

.lang-switch a.is-active {
  background: rgba(227, 29, 35, 0.9);
  color: var(--white);
}

.site-header__inner .lang-switch {
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ZH typography */
html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Inter", "Helvetica Neue", sans-serif;
  letter-spacing: 0.01em;
}

html[lang="zh-CN"] .display,
html[lang="zh-CN"] .logo__name {
  font-family: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html[lang="zh-CN"] .lede {
  line-height: 1.85;
}

html[lang="zh-CN"] .range-card p,
html[lang="zh-CN"] .b2b-card p,
html[lang="zh-CN"] .cat-block p,
html[lang="zh-CN"] .about-item p {
  line-height: 1.85;
}

.mobile-nav .lang-switch {
  margin: 16px 0 0;
  align-self: flex-start;
}

/* Mobile header: keep language switcher visible without opening drawer */
@media (max-width: 900px) {
  .site-header__inner {
    gap: 10px;
  }

  .header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .site-header__inner .lang-switch {
    display: inline-flex;
    margin-left: 0;
    padding: 2px;
    gap: 1px;
    flex-shrink: 0;
  }

  .site-header__inner .lang-switch a {
    min-width: 30px;
    height: 26px;
    padding: 0 5px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .mobile-nav .lang-switch {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header__inner {
    gap: 8px;
    width: min(100% - 24px, var(--wide));
  }

  .site-header__inner .lang-switch a {
    min-width: 28px;
    padding: 0 4px;
  }

  .logo {
    gap: 8px;
  }

  .logo__mark {
    height: 32px;
    max-width: 40px;
  }

  .logo__name {
    font-size: 16px;
  }

  .logo__tag {
    display: none;
  }
}
