/* =============================================
   Language Switcher - Fixed Top-Right
   独立文件，避免 CDN 缓存问题
   ============================================= */

/* 非首页：自定义语言列表 #other → fixed 右上角 */
#other {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 999999999 !important;
  background: #fff !important;
  cursor: pointer;
  height: 40px !important;
  line-height: 40px !important;
  display: block !important;
  overflow: visible !important;
}
#other > p {
  cursor: pointer;
  padding: 0 15px;
  white-space: nowrap;
  display: block;
  height: 40px;
  line-height: 40px;
}
#other p span {
  margin-right: 8px;
  font-size: 16px;
  vertical-align: middle;
}
#other p i {
  font-size: 16px;
}
#other p .fa-angle-down {
  margin-left: 6px;
}
#other ul {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 120px;
  z-index: 999999999;
}
#other ul li {
  list-style: none;
  padding: 0;
  line-height: 36px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
#other ul li:last-child {
  border-bottom: none;
}
#other ul li a {
  display: block;
  padding: 6px 15px;
  white-space: nowrap;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
#other ul li a:hover {
  background: #f5f5f5;
}
#other:hover ul {
  display: block;
}

/* 首页：gt_translate_wrapper → fixed 右上角 */
#gt_translate_wrapper {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 999999999 !important;
  background: #fff !important;
  width: auto !important;
  min-width: 120px !important;
  line-height: 40px !important;
  height: 40px !important;
}

/* 修复 #google_translate_element 垂直居中 */
#google_translate_element {
  line-height: 40px;
  height: 40px;
  display: flex;
  align-items: center;
}
#google_translate_element .goog-te-gadget-simple {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 15px !important;
  font-size: 15px !important;
  line-height: 40px !important;
  height: 40px !important;
  color: #333 !important;
}
#google_translate_element .goog-te-gadget-simple span {
  color: #333 !important;
  font-size: 15px !important;
  vertical-align: middle;
}
#google_translate_element .goog-te-gadget-simple img {
  display: none !important;
}

/* 隐藏首页底部 </html> 后裸露的 <li> 残留 */
body > li {
  display: none !important;
}