/* 语言切换器样式 */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-left: 14px;
  font-size: 13px;
  font-weight: 500;
  color: #111827 !important;
  background: rgba(0, 147, 72, 0.08);
  border: 1px solid rgba(0, 147, 72, 0.28);
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-switcher:hover,
.lang-switcher:focus {
  background: rgba(0, 147, 72, 0.16);
  border-color: #009348;
  color: #111827 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.lang-switcher .flag {
  font-size: 15px;
  line-height: 1;
}

.lang-switcher .text {
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* 桌面切换器位置微调：与 "登录" 按钮同排 */
.lang-switcher-desktop {
  order: 10;
}

/* 移动端菜单的切换器 */
.mobile-menu .lang-switcher-mobile-wrap {
  padding: 12px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 8px;
}

.mobile-menu .lang-switcher-mobile {
  width: 100%;
  justify-content: center;
  margin: 0;
  padding: 10px 16px;
  font-size: 14px;
}

/* 折叠导航栏下避免桌面切换器重复（lg 断点以下隐藏桌面切换器） */
@media (max-width: 991px) {
  .lang-switcher-desktop {
    display: none !important;
  }
}

/* iframe footer 里也注入切换器时的深色兜底（如需） */
body.lang-en .only-zh,
body.lang-zh .only-en {
  display: none !important;
}
