/* ===== 语言切换器样式 ===== */

/* 登录页药丸按钮 */
.lang-switch-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 8px 0 20px 0;
}

.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
  transition: all 0.15s ease;
  font-family: inherit;
}
.lang-switch-pill:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.lang-arrow {
  width: 14px;
  height: 14px;
  stroke: #94A3B8;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.lang-switch-pill.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  z-index: 100;
  min-width: 140px;
  overflow: hidden;
}
.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
}
.lang-option:hover {
  background: #F8FAFC;
}
.lang-option.active {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 500;
}

/* 导航栏小型语言按钮 */
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  cursor: pointer;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  transition: all 0.15s;
  font-family: inherit;
}
.nav-lang-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: white;
}
