/* 谷歌翻译样式优化 */

/* 隐藏原生谷歌翻译小部件 */
#google_translate_element {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/* 强力隐藏谷歌翻译顶部横幅 iframe */
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* 强制 body 顶部无偏移 */
body {
    top: 0px !important;
    position: static !important;
    min-height: 100vh !important;
}

/* 隐藏鼠标悬停时的翻译提示 */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 隐藏 "Original text" 弹窗 */
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
}

/* 修正翻译后的字体样式 */
font {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 确保下拉框被隐藏但存在于DOM中 */
.goog-te-combo {
    display: block !important; 
}

/* 隐藏所有可能出现的谷歌 iframe */
iframe[class*="goog-te-banner"],
iframe[id*=":1.container"],
iframe[id*="goog-gt-tt"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}
