.language-switcher {
  position: fixed;
  top: 88px;
  right: 14px;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(15, 20, 28, .9);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: calc(100vw - 28px);
}

.language-switcher button {
  box-sizing: border-box;
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 700 11px/1 "Open Sans", Arial, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.language-switcher button[aria-pressed="true"] {
  background: #fff;
  color: #15223a;
}

.language-switcher button:active { transform: scale(.96); }

html[lang="zh-CN"] body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Open Sans", Arial, sans-serif;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] p,
html[lang="zh-CN"] a,
html[lang="zh-CN"] button,
html[lang="zh-CN"] span {
  letter-spacing: normal;
}

.ecovadis-nav-badge {
  box-sizing: border-box;
  width: 88px;
  height: 28px;
  flex: 0 0 88px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: -13px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(75, 79, 82, .2);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 20, 28, .09);
  line-height: 0;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ecovadis-nav-badge img {
  display: block !important;
  width: 100% !important;
  height: 19px !important;
  max-height: 19px !important;
  object-fit: contain !important;
}

.ecovadis-nav-badge:hover,
.ecovadis-nav-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 20, 28, .16);
  outline: 2px solid #51b848;
  outline-offset: 2px;
  opacity: 1 !important;
}

@media (max-width: 760px) {
  .language-switcher {
    top: auto;
    right: 10px;
    bottom: 10px;
    max-width: 304px;
    justify-content: center;
    border-radius: 18px;
  }
  .language-switcher button {
    min-width: 34px;
    height: 29px;
    padding: 0 8px;
  }
  .ecovadis-nav-badge { margin-left: 0; }
}

@media (max-width: 900px) {
  .main-nav .ecovadis-nav-badge {
    flex: 0 0 auto;
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher button { transition: none; }
}
