/* ==========================================================================
   Jinze Machinery — Multi-language Translator UI
   与站点主色 #015CAC / #00A5DB 保持一致，简洁克制
   ========================================================================== */

/* Google 原生控件全部隐藏，仅用自定义 UI 驱动 */
#jz_google_translate,
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
.goog-te-gadget-simple {
  display: none !important;
}
body { top: 0 !important; }

.jz-translate {
  position: fixed;
  right: 0;
  bottom: 208px;
  z-index: 9998;
  font-family: Arial, Helvetica, sans-serif;
}
.jz-translate .jz-tr-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: #015CAC;
  padding: 10px 14px 10px 16px;
  font-size: 13px;
  line-height: 1;
  border-radius: 5px 0 0 5px;
  box-shadow: 0 2px 10px rgba(1, 92, 172, .28);
  transition: background .2s;
}
.jz-translate .jz-tr-btn:hover { background: #00A5DB; }
.jz-translate .jz-tr-btn .fa { font-size: 16px; }
.jz-translate .jz-tr-label { white-space: nowrap; }

.jz-translate .jz-tr-menu {
  position: absolute;
  right: 0;
  bottom: 46px;
  width: 190px;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 6px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s;
  overflow: hidden;
}
.jz-translate.open .jz-tr-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.jz-translate .jz-tr-head {
  padding: 11px 14px;
  background: #015CAC;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}
.jz-translate .jz-tr-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 316px;
  overflow-y: auto;
}
.jz-translate .jz-tr-list li a {
  display: block;
  padding: 8px 14px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.jz-translate .jz-tr-list li a:hover {
  background: #eef6fb;
  color: #015CAC;
}
.jz-translate .jz-tr-list li a.active {
  background: #015CAC;
  color: #fff;
  font-weight: bold;
}

@media (max-width: 800px) {
  .jz-translate { bottom: 172px; }
  .jz-translate .jz-tr-btn { padding: 9px 12px; font-size: 12px; }
  .jz-translate .jz-tr-label { display: none; }
  .jz-translate .jz-tr-menu { bottom: 42px; width: 175px; }
}
