.header-links .language-switch {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  box-sizing: border-box;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  transform: none;
  transition: color .22s ease, border-color .22s ease, background-color .22s ease;
}

.language-switch-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .28s ease;
}

.language-switch-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #3c5cb3;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  box-sizing: content-box;
  pointer-events: none;
  transition: width .22s ease, border-radius .22s ease;
}

.header-links .language-switch.is-english .language-switch-icon {
  transform: rotate(180deg);
}

.header-links .language-switch.is-english .language-switch-badge {
  width: 24px;
  border-radius: 10px;
}

.topbar.is-light .header-links .language-switch {
  color: #3c5cb3;
  border-color: rgba(60, 92, 179, .24);
  background: rgba(60, 92, 179, .05);
}

.header-links .language-switch:hover,
.header-links .language-switch:focus-visible {
  color: #fff;
  border-color: #3c5cb3;
  background: rgba(60, 92, 179, .2);
  transform: none;
}

.topbar.is-light .header-links .language-switch:hover,
.topbar.is-light .header-links .language-switch:focus-visible {
  color: #3c5cb3;
  background: rgba(60, 92, 179, .1);
}

.header-links .language-switch:focus-visible {
  outline: 2px solid #3c5cb3;
  outline-offset: 3px;
}
/* responsive-navigation:start */
.topbar.is-compact-nav .header-links .language-switch,
.topbar.is-compact-nav.is-light .header-links .language-switch {
  width: 100%;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3c5cb3;
  font-size: 16px;
  line-height: 25.6px;
}

.topbar.is-compact-nav .language-switch-icon,
.topbar.is-compact-nav .language-switch-badge {
  display: none;
}

.topbar.is-compact-nav .header-links .language-switch::after {
  content: "English";
}

html[data-locale="en"] .topbar.is-compact-nav .header-links .language-switch::after {
  content: "中文";
}

.topbar.is-compact-nav .header-links .language-switch:hover,
.topbar.is-compact-nav .header-links .language-switch:focus-visible,
.topbar.is-compact-nav.is-light .header-links .language-switch:hover,
.topbar.is-compact-nav.is-light .header-links .language-switch:focus-visible {
  border: 0;
  background: #f2f3f5;
  color: #3c5cb3;
}
/* responsive-navigation:end */
