/**
 * 语言切换地球按钮样式
 * 与主题切换按钮保持一致的设计
 */

/* 语言切换按钮 - 圆形地球图标 */
.lang-globe-btn {
  width: 44px !important;
  height: 44px !important;
  background: white !important;
  border: 2px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 50% !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  gap: 0 !important;
}

.lang-globe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #fa8c32 !important;
}

/* 地球图标 */
.lang-globe-btn .globe-icon {
  width: 24px;
  height: 24px;
  color: #fa8c32;
  flex-shrink: 0;
}

/* 深色模式下的样式 */
html[data-theme="dark"] .lang-globe-btn {
  background: rgba(55, 65, 81, 0.8) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

html[data-theme="dark"] .lang-globe-btn:hover {
  background: rgba(75, 85, 99, 0.9) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

html[data-theme="dark"] .lang-globe-btn .globe-icon {
  color: #60a5fa;
}

/* 下拉菜单位置调整 */
.lang-dropdown {
  position: relative;
}

/* 响应式 */
@media (max-width: 768px) {
  .lang-globe-btn {
    width: 40px !important;
    height: 40px !important;
  }

  .lang-globe-btn .globe-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .lang-globe-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .lang-globe-btn .globe-icon {
    width: 20px;
    height: 20px;
  }
}
