/* language.css 或添加到现有CSS中 */

/* 语言切换器样式 */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 6px 15px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: #ff6b35;
  color: white;
}

/* 移动端语言切换器 */
.mobile-language-switcher {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.mobile-lang-btn {
  flex: 1;
  padding: 10px 15px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.mobile-lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-lang-btn.active {
  background: #ff6b35;
  color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .language-switcher {
    margin-left: 10px;
  }

  .lang-btn {
    padding: 5px 12px;
    font-size: 13px;
    min-width: 50px;
  }
}

/* RTL 支持（如果需要） */
[dir="rtl"] .desktop-logo,
[dir="rtl"] .mobile-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .desktop-links,
[dir="rtl"] .mobile-nav-content {
  flex-direction: row-reverse;
}
