/* Bilingual: body.lang-en / default zh */
.i18n-en-only {
  display: none !important;
}
body.lang-en .i18n-zh-only {
  display: none !important;
}
body.lang-en .i18n-en-only {
  display: block !important;
}
body.lang-en main.legal-wrap .i18n-en-only {
  display: block !important;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.lang-switcher li {
  display: flex;
  align-items: center;
}

.lang-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  line-height: 1;
  font-size: 13px;
  font-weight: 500;
  color: #78716c;
  cursor: pointer;
  text-decoration: none;
  border-radius: 100px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.3px;
  outline: none;
  box-shadow: none;
}

.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn:focus {
  color: #D45A2A;
  background: rgba(232, 106, 60, 0.06);
  text-decoration: none;
  border-color: rgba(232, 106, 60, 0.1);
  outline: none;
  box-shadow: none;
}

/* Active / selected language */
body.lang-en .lang-switcher .lang-btn[data-lang="en"],
body.lang-zh .lang-switcher .lang-btn[data-lang="zh"] {
  font-weight: 600;
  color: #D45A2A;
  background: transparent;
  border-color: transparent;
}

body.lang-en .lang-switcher .lang-btn[data-lang="en"]::after,
body.lang-zh .lang-switcher .lang-btn[data-lang="zh"]::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #E86A3C, var(--bk-accent));
  border-radius: 1px;
}

body.lang-en .lang-switcher .lang-btn[data-lang="en"]:hover,
body.lang-zh .lang-switcher .lang-btn[data-lang="zh"]:hover {
  background: rgba(232, 106, 60, 0.06);
}

/* Divider between languages */
.lang-switcher li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent, #e7e5e4, transparent);
  margin-left: 4px;
}
