/* Ziqing AI Work Platform · language switcher · v1.0
 * Two-pill toggle. Fixed at top-right on mobile, inline on desktop navbar. */
.lang-switcher {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(123, 31, 162, 0.18);
  border-radius: 999px;
  backdrop-filter: saturate(140%) blur(4px);
  -webkit-backdrop-filter: saturate(140%) blur(4px);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.lang-switcher button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #23303a;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.lang-switcher button:hover {
  color: #7B1FA2;
}
.lang-switcher button.active {
  background: #1a1a2e;
  color: #FFD700;
  border-color: #FFD700;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25);
}
.lang-switcher button:focus-visible {
  outline: 2px solid #7B1FA2;
  outline-offset: 2px;
}

/* Inline placement inside .navbar-inner (index/services/contact) */
.navbar-inner .lang-switcher {
  margin-left: 20px;
}

/* Dashboard top bar (dark background) */
.topbar .lang-switcher {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.topbar .lang-switcher button {
  color: rgba(255, 255, 255, 0.85);
}
.topbar .lang-switcher button:hover {
  color: #FFD700;
}
.topbar .lang-switcher button.active {
  background: #FFD700;
  color: #1a1a2e;
  border-color: #FFD700;
}

/* Login page: floating in top-right (no navbar) */
.lang-switcher.lang-switcher-floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
}

/* Mobile: keep pills readable, wrap under nav-links if needed */
@media (max-width: 900px) {
  .navbar-inner .lang-switcher {
    margin-left: 12px;
  }
  .lang-switcher button {
    padding: 4px 10px;
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .navbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .navbar-inner .lang-switcher {
    margin-left: 0;
  }
  .lang-switcher.lang-switcher-floating {
    top: 10px;
    right: 10px;
  }
}
