/* 全站通用语言切换器：固定右上角，菜单相对容器 absolute 定位（桌面/移动一致，规避 fixed+top:100% 越界） */
.i18n-switcher{position:fixed;z-index:60;top:22px;right:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
/* 内联放置模式：渲染进页面指定容器（如 dashboard 右上操作区），不固定定位。
   需自身建立高于页面内容（卡片 isolate 上下文等）的层叠上下文，否则下拉菜单会被卡片盖住；仍低于弹窗(80)。 */
.i18n-switcher.i18n-inline{position:relative;top:auto;right:auto;z-index:65}
.i18n-button{position:relative;display:grid;place-items:center;width:40px;height:40px;padding:3px;border:1px solid rgba(255,255,255,.16);border-radius:50%;overflow:hidden;background:#0c1019;box-shadow:0 8px 24px rgba(0,0,0,.3);color:#fff;cursor:pointer;transition:border-color .2s,background .2s}
.i18n-button:hover{border-color:rgba(255,255,255,.32);background:#111622}
.i18n-button .i18n-flag{display:block;width:32px;height:32px;overflow:hidden;border-radius:50%}
.i18n-button .i18n-flag svg{display:block;width:100%;height:100%}
.i18n-menu{position:absolute;top:calc(100% + 10px);right:0;display:none;width:190px;padding:7px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#111520;box-shadow:0 22px 60px rgba(0,0,0,.55)}
.i18n-switcher.open .i18n-menu{display:grid;animation:i18nMenuIn .16s ease-out}
@keyframes i18nMenuIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.i18n-option{display:flex;align-items:center;gap:11px;min-height:43px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#b9c1d0;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.i18n-option:hover,.i18n-option.active{background:#1b2233;color:#fff}
.i18n-option .i18n-oflag{display:grid;place-items:center;width:26px;height:26px;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:50%;background:#0a0d14}
.i18n-option .i18n-oflag svg{display:block;width:100%;height:100%}
.i18n-option.active::after{content:'✓';margin-left:auto;color:#8fd7b9}
@media(max-width:560px){.i18n-switcher{top:16px;right:16px}.i18n-button{width:38px;height:38px}.i18n-menu{width:min(200px,calc(100vw - 32px))}}
@media(prefers-reduced-motion:reduce){.i18n-switcher.open .i18n-menu{animation:none}}
