/* ============================================================
 *  语言切换器样式
 *  Language Switcher Styles
 * ============================================================ */

/* 切换器容器 */
#i18n-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  vertical-align: middle;
}

/* 按钮基础样式 */
.i18n-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 10px;
  transition: all 0.3s ease;
  border-radius: 3px;
  font-family: inherit;
  line-height: 1.4;
}

.i18n-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.i18n-btn.active {
  color: #4da69a;
  font-weight: bold;
  background: rgba(77,166,154,0.1);
}

/* 分隔符 */
.i18n-sep {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

/* ---- 导航栏激活状态下的语言切换器 ---- */
#c_navigation_126-1662690442831.active .i18n-btn {
  color: rgba(0,0,0,0.5);
}

#c_navigation_126-1662690442831.active .i18n-btn:hover {
  color: #333;
  background: rgba(0,0,0,0.08);
}

#c_navigation_126-1662690442831.active .i18n-btn.active {
  color: #4da69a;
  background: rgba(77,166,154,0.08);
}

#c_navigation_126-1662690442831.active .i18n-sep {
  color: rgba(0,0,0,0.2);
}

/* ---- 浮动切换器（当没有找到目标容器时使用） ---- */
#i18n-floating-switcher {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  background: #173663;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#i18n-floating-switcher .i18n-sep { color: rgba(255,255,255,0.4); }

/* ---- 移动端适配 ---- */
@media screen and (max-width: 768px) {
  #i18n-switcher {
    margin: 10px auto 0;
    justify-content: center;
  }
  
  #i18n-floating-switcher {
    top: auto;
    bottom: 80px;
    right: 15px;
  }
  
  .i18n-btn {
    font-size: 14px;
    padding: 6px 14px;
  }
}

/* ---- 翻译过渡动画 ---- */
[data-i18n], [data-i18n-placeholder] {
  transition: opacity 0.25s ease;
}

.i18n-switching [data-i18n],
.i18n-switching [data-i18n-placeholder] {
  opacity: 0;
}
