/* WOLO i18n：切换器样式 + 翻译加载前的闪烁抑制 */
.i18n-loading [data-i18n] {
  visibility: hidden;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 14px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  line-height: 1;
}

.lang-switch.lang-switch-fixed {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  margin-left: 0;
}

.lang-switch .lang-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 36px;
  padding: 7px 10px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch .lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch .lang-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2e8b57, #52b788);
  box-shadow: 0 2px 10px rgba(46, 139, 87, 0.35);
}

.lang-switch .lang-btn:focus-visible {
  outline: 2px solid #52b788;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .lang-switch {
    /* 用视口定位，避免页面横向溢出时切换器被挤出屏幕 */
    position: fixed;
    top: 20px;
    right: 72px;
    z-index: 1000;
    margin-left: 0;
    padding: 2px;
  }

  .lang-switch .lang-btn {
    min-width: 30px;
    padding: 6px 7px;
    font-size: 11px;
  }
}
