/* Preview-only additive CSS for the Chinese site preview (2026-11-19).
   Do not upload this over official common.css or neiye.css.
   Licensed Klavika remains first; CJK glyphs use a Chinese fallback. */

html[lang="zh-CN"],
html[lang="zh-CN"] body,
html[lang="zh-CN"] button,
html[lang="zh-CN"] input,
html[lang="zh-CN"] select,
html[lang="zh-CN"] textarea,
html[lang="zh-CN"] .r-nav,
html[lang="zh-CN"] .r-p-nav,
html[lang="zh-CN"] .app-title,
html[lang="zh-CN"] .app-content,
html[lang="zh-CN"] .b-more-about,
html[lang="zh-CN"] .b-hrefs,
html[lang="zh-CN"] .dhFix-fa {
  font-family: Klavika, klavika_regular, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* Keep official Learn More / Get in touch treatment, with CJK fallback. */
html[lang="zh-CN"] .preview-cta,
html[lang="zh-CN"] a.seg-learn-more-btn,
html[lang="zh-CN"] a.preview-cta.gi-cta,
html[lang="zh-CN"] .how-we-can-help a.gi-cta,
html[lang="zh-CN"] .i-qh .more-btn,
html[lang="zh-CN"] a.more-btn,
html[lang="zh-CN"] .gi-submit {
  font-family: klavika_regular, Klavika, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* Header / in-page nav: no overlapping wrapped labels.
   More About and related-link rows may wrap. */
.b-more-about .b-link-context a span,
.b-hrefs .related-links-content a {
  white-space: normal;
}
.r-ul .zhai-ul > li,
.r-ul .zhai-ul > li > a,
.r-p-nav .dropdown-menu > li > a,
.navbar .dropdown-menu > li > a,
.dhFix-fa .ul1 li,
.dhFix-fa .ul1 li a {
  white-space: nowrap;
}
.r-p-nav .dropdown-menu,
.navbar .dropdown-menu {
  min-width: 280px;
}
.top-nav-2 .div1 .ul1 {
  width: auto;
  min-width: 340px;
}

/* Language switcher: slim, native to the official header. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.r-nav > .lang-switch {
  float: right;
  padding: 12px 0 12px 16px;
}
.lang-switch a {
  color: #3e4146;
  text-decoration: none;
  padding: 0 5px;
}
.lang-switch a:hover,
.lang-switch a:focus {
  color: #008dff;
  text-decoration: none;
}
.lang-switch a.is-active {
  color: #008dff;
  cursor: default;
}
.lang-switch .lang-sep {
  color: #c5c5c5;
  padding: 0 1px;
  font-weight: 400;
}
.m-nav-toolbar .lang-switch,
.navbar-header .lang-switch-mobile {
  margin-left: auto;
  padding: 0 10px;
}
.navbar-header {
  display: flex;
  align-items: center;
}
.navbar-header .lang-switch-mobile {
  order: 2;
}
.navbar-header .navbar-toggle {
  order: 3;
  margin-left: 4px;
}
.navbar-header .navbar-brand {
  order: 1;
}
.footer-div .lang-switch {
  margin-left: 12px;
  vertical-align: middle;
}
.footer-div .lang-switch a {
  color: #fff;
}
.footer-div .lang-switch a.is-active,
.footer-div .lang-switch a:hover,
.footer-div .lang-switch a:focus {
  color: #8ec9ff;
}
.footer-div .lang-switch .lang-sep {
  color: rgba(255,255,255,0.45);
}

/* Discreet preview marker — not a marketing banner. */
.preview-zh-mark {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 99999;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #888;
  background: rgba(255,255,255,0.88);
  border: 1px solid #ddd;
  padding: 2px 7px;
  border-radius: 2px;
  pointer-events: none;
  font-family: Klavika, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .r-nav > .lang-switch {
    display: none;
  }
}
