
/* ===== 语言切换浮动按钮 ===== */
#ueeshop-lang-switcher {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 主按钮 */
#ueeshop-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a2e;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

#ueeshop-lang-btn:hover {
  background: #16213e;
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

#ueeshop-lang-btn .lang-icon {
  font-size: 18px;
  line-height: 1;
}

#ueeshop-lang-btn .lang-arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

#ueeshop-lang-btn.open .lang-arrow {
  transform: rotate(180deg);
}

/* 语言下拉菜单 */
#ueeshop-lang-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  min-width: 200px;
  display: none;
  animation: langMenuFadeIn 0.2s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

#ueeshop-lang-menu.open {
  display: block;
}

@keyframes langMenuFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 菜单标题 */
.lang-menu-header {
  padding: 12px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #f0f0f0;
}

/* 语言选项 */
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
  color: #333;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: #f5f7ff;
}

.lang-option.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
}

.lang-option .lang-flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.lang-option .lang-name {
  flex: 1;
}

.lang-option .lang-check {
  font-size: 13px;
  color: #4f46e5;
  opacity: 0;
}

.lang-option.active .lang-check {
  opacity: 1;
}

/* 翻译中加载状态 */
#ueeshop-lang-loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #4f46e5);
  background-size: 200% 100%;
  animation: loadingBar 1.2s linear infinite;
  z-index: 999999;
}

@keyframes loadingBar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 隐藏 Google Translate 默认工具栏 */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate {
  display: none !important;
}

/* 响应式：移动端适配 */
@media (max-width: 768px) {
  #ueeshop-lang-switcher {
    bottom: 20px;
    right: 16px;
  }
  #ueeshop-lang-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  #ueeshop-lang-menu {
    min-width: 180px;
    right: 0;
  }
}
