/*
Theme Name: sub-twentytwentyfour
Description: 子主题，用于安全升级父主题
Template: twentytwentyfour
Version: 1.0.0
Text Domain: your-theme-name-child
*/

/* ====== 语言切换器 ====== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid currentColor;
    line-height: 1;
}

.lang-switcher .lang-link {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity .2s ease, color .2s ease;
}

.lang-switcher .lang-link:hover,
.lang-switcher .lang-link:focus {
    opacity: 1;
    text-decoration: underline;
    outline: none;
}

/* 响应式：窄屏隐藏分割线 */
@media (max-width: 600px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    .lang-switcher .lang-link {
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* ====== Polylang 导航语言开关（实际渲染的开关） ====== */
.wp-block-polylang-navigation-language-switcher .wp-block-navigation-item__label {
    font-size: 26px;
}

/* 放大语言开关的国旗（img 带内联 16x11，需 !important 覆盖） */
.wp-block-polylang-navigation-language-switcher .wp-block-navigation-item__label img {
    width: 28px !important;
    height: 19px !important;
}
