.jb-language,
.jb-language *,
.jb-language *::before,
.jb-language *::after {
  box-sizing: border-box;
}

.jb-language {
  position: relative;
  z-index: 10050;
  display: inline-block;
  font-family: Lato, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
}

.jb-language__toggle {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 2px;
  background: rgba(0, 0, 0, .18);
  color: #fff;
  font: inherit;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.jb-language__toggle:hover,
.jb-language__toggle:focus-visible {
  border-color: #b99769;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  outline: none;
}

.jb-language__arrow {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.jb-language[data-open="true"] .jb-language__arrow {
  transform: translateY(2px) rotate(225deg);
}

.jb-language__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 168px;
  max-height: calc(100vh - 72px);
  margin: 0;
  padding: 6px 0;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.jb-language__menu[hidden] { display: none !important; }
.jb-language__menu li { display: block; margin: 0; padding: 0; list-style: none; }

.jb-language__menu a {
  display: block;
  padding: 10px 16px;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: #2d2d2d !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: left;
  text-decoration: none !important;
  white-space: nowrap;
}

.jb-language__menu a:hover,
.jb-language__menu a:focus-visible {
  background: #f4f0ea;
  color: #8a6843 !important;
  outline: none;
}

.jb-language__menu a[aria-current="true"] {
  color: #8a6843 !important;
  font-weight: 700;
}

.jb-language__menu a[aria-current="true"]::after {
  content: "\2713";
  float: right;
  margin-left: 18px;
}

.s-header__navbar-row-col > .jb-language {
  position: fixed;
  top: 20px;
  right: 82px;
  float: none;
  margin: 0;
}

.s-header__trigger {
  position: fixed !important;
  top: 15px;
  right: 20px;
  float: none !important;
  margin: 0 !important;
}

.s-header__logo {
  position: fixed !important;
  top: 15px;
  left: 20px;
  width: 50px !important;
  height: 50px !important;
  margin: 0 !important;
}

.s-header__logo-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0 !important;
  color: #b99769;
  transition: none;
}

.s-header__logo-link .jb-home-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
}

.s-header__logo-img-default,
.s-header__logo-img-shrink {
  width: 109px;
  height: 25px;
}

.s-header:not(.-is-open) .s-header__trigger-icon { background: #b99769 !important; }
.s-header:not(.-is-open) .s-header__trigger circle { stroke: #b99769 !important; }

.s-header__trigger svg {
  width: 100% !important;
  height: 100% !important;
}

.s-header__shrink,
.s-header__shrink .s-header__navbar {
  background: transparent !important;
  box-shadow: none !important;
}

.s-header__shrink:not(.-is-open) .jb-language__toggle {
  border-color: rgba(34, 35, 36, .32);
  background: rgba(255, 255, 255, .9);
  color: #222324;
}

.s-header__shrink:not(.-is-open) .s-header__logo-img-default { opacity: 0 !important; }
.s-header__shrink:not(.-is-open) .s-header__logo-img-shrink { opacity: 1 !important; }
.s-header__shrink:not(.-is-open) .s-header__logo-link { color: #b99769 !important; }
.s-header__shrink:not(.-is-open) .s-header__trigger-icon { background: #b99769 !important; }
.s-header__shrink:not(.-is-open) .s-header__trigger circle { stroke: #b99769 !important; }
.s-header__shrink.-is-open .s-header__logo-img-default { opacity: 1 !important; }
.s-header__shrink.-is-open .s-header__logo-img-shrink { opacity: 0 !important; }
.s-header.-is-open .s-header__logo-link { color: #fff !important; }
.s-header.-is-open .s-header__trigger circle { stroke: #fff !important; }
.s-header.-is-open .s-header__trigger-icon { background: #fff !important; }

.s-header__trigger-icon,
.s-header__trigger-icon::before,
.s-header__trigger-icon::after {
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backface-visibility: hidden;
}

.s-header__trigger-icon {
  transition-property: transform, width, top !important;
}

.s-header.-is-open .jb-language__toggle {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(0, 0, 0, .18);
  color: #fff;
}

.s-header-bg-overlay.-is-open,
.s-header-bg-overlay.-is-open .s-header__nav,
.s-header-bg-overlay.-is-open .s-header__nav-menu-link {
  pointer-events: auto !important;
}

.s-header__nav-menu-link[aria-current="page"] {
  color: #b99769 !important;
  opacity: 1;
}

.s-header__nav-menu-link {
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 35px !important;
  letter-spacing: .08em !important;
}

@media (max-width: 767px) {
  .s-header__nav-menu-link {
    font-size: 17px !important;
    line-height: 31px !important;
  }
}

.s-header__action--lb {
  display: none !important;
}

@media (max-width: 479px) {
  .jb-language { font-size: 12px; }
  .jb-language__toggle > span:first-child { font-size: 0; }
  .jb-language__toggle > span:first-child::after { content: "中文"; font-size: 12px; }
  .jb-language__toggle { min-height: 36px; gap: 6px; padding: 7px 9px; }
  .jb-language__menu { min-width: 150px; }
  .s-header__navbar-row-col > .jb-language { top: 13px; right: 59px; }
  .s-header__trigger { top: 9px; right: 8px; width: 44px; height: 44px; }
  .s-header__logo { top: 9px; left: 8px; width: 44px !important; height: 44px !important; }
  .s-header__logo-link { width: 44px; height: 44px; }
  .s-header__logo-link .jb-home-icon { width: 22px; height: 22px; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .s-header__logo { top: 9px; left: 12px; width: 44px !important; height: 44px !important; }
  .s-header__logo-link { width: 44px; height: 44px; }
  .s-header__logo-link .jb-home-icon { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .jb-language__toggle,
  .jb-language__arrow { transition: none; }
}
