/**
 * TranslatePress 自定义样式
 * 自定义语言切换器图标为地球图标
 */

/* 隐藏默认的语言切换器文字，只显示图标 */
.trp-language-switcher .trp-ls-shortcode-current-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 在语言切换器前添加地球图标 */
.trp-language-switcher .trp-ls-shortcode-current-language::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252525' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 浮动语言切换器样式 */
.trp-floater {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 语言选项样式 */
.trp-language-switcher select,
.trp-language-switcher .trp-ls-shortcode-language {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #252525;
}

/* 下拉菜单样式 */
.trp-language-switcher .trp-ls-shortcode-language:hover {
    background: #f5f5f5;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .trp-language-switcher .trp-ls-shortcode-current-language::before {
        width: 18px;
        height: 18px;
    }
}
