/* ===== 語言切換（頂欄） ===== */
.lang-switch { position: relative; flex: none; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--primary); color: var(--primary); background: #fff;
    border-radius: 999px; padding: 6px 11px;
    font-size: 12px; font-weight: 600; font-family: inherit;
    cursor: pointer; line-height: 1;
}
.lang-toggle svg { width: 14px; height: 14px; flex: none; }
.lang-toggle .chev { width: 10px; height: 10px; transition: transform .2s ease; }
.lang-switch.open .chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px;
    background: #fff; border-radius: 14px; padding: 6px;
    box-shadow: 0 12px 30px rgba(16, 60, 160, .18);
    border: 1px solid var(--line);
    display: none; z-index: 60; overflow: hidden;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; border: 0; background: transparent; cursor: pointer;
    padding: 9px 10px; border-radius: 9px;
    font-size: 13px; font-weight: 600; color: var(--text);
    font-family: inherit; text-align: left;
}
.lang-menu button:hover, .lang-menu button:focus-visible {
    background: rgba(0, 82, 255, .08); outline: none;
}
.lang-menu button.active { color: var(--primary); background: rgba(0, 82, 255, .1); }
.lang-menu button .check { width: 14px; height: 14px; opacity: 0; flex: none; }
.lang-menu button.active .check { opacity: 1; }
