/* 語言版本切換：繁 / 简 雙段膠囊（繁簡頁共用） */
.lang-switch {
    display: inline-flex;
    align-items: center;
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    line-height: 1;
    font-size: 11px;
    letter-spacing: 0.08em;
    vertical-align: middle;
}
.lang-switch .lang-current,
.lang-switch .lang-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 5px 7px;
    text-decoration: none;
}
.lang-switch .lang-current {
    background: rgba(0, 180, 216, 0.18);
    color: #00B4D8;
    font-weight: 700;
    cursor: default;
}
.lang-switch .lang-alt {
    color: #94A3B8;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-switch .lang-alt:hover {
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.06);
}
.lang-switch .lang-alt:focus-visible {
    outline: 2px solid #00B4D8;
    outline-offset: -2px;
}
.lang-switch--mobile {
    font-size: 12px;
}
.lang-switch--mobile .lang-current,
.lang-switch--mobile .lang-alt {
    min-width: 36px;
    padding: 8px 12px;
}
@media (prefers-reduced-motion: reduce) {
    .lang-switch .lang-alt { transition: none; }
}
