/* Optaxis 站点级语言切换器 — 固定右上角
   c-refined: cream + double-gold + IBM Plex Mono · 2026-05-09 */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(42, 37, 32, 0.10);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(42, 37, 32, 0.05);
  font-family: 'IBM Plex Mono', 'SF Mono', 'Menlo',
               -apple-system, 'PingFang SC', 'Hiragino Sans', monospace;
}

.lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #6B645B;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  min-width: 36px;
  line-height: 1;
}

.lang-switch button:hover {
  color: #2A2520;
}

.lang-switch button.active {
  background: #2A2520;
  color: #F5F1E8;
}

@media (max-width: 480px) {
  .lang-switch {
    top: 10px;
    right: 10px;
    padding: 2px;
  }
  .lang-switch button {
    padding: 5px 10px;
    font-size: 11px;
    min-width: 32px;
  }
}

@media (prefers-color-scheme: dark) {
  .lang-switch {
    background: rgba(42, 37, 32, 0.85);
    border-color: rgba(201, 166, 107, 0.20);
  }
  .lang-switch button { color: #C9A66B; }
  .lang-switch button:hover { color: #F5F1E8; }
  .lang-switch button.active {
    background: #C9A66B;
    color: #2A2520;
  }
}
