/* i18n.css — 语言切换器 */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 10px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(0, 195, 255, 0.08);
    border: 1px solid rgba(0, 255, 208, 0.2);
}

.lang-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: rgba(234, 246, 251, 0.75);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.2;
}

.lang-btn:hover {
    color: #eaf6fb;
    background: rgba(0, 195, 255, 0.12);
}

.lang-btn.is-active {
    color: #0f2027;
    background: linear-gradient(90deg, #00c3ff, #7f53ac);
}

.top-nav .nav-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.opc-eval-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.opc-eval-top .lang-switcher-host,
.opc-eval-top #lang-switcher {
    margin-left: auto;
}

html[lang="zh-CN"] .opc-gps-phase {
    text-transform: none;
    letter-spacing: 0.02em;
}

html[lang="en"] .opc-gps-phase {
    text-transform: uppercase;
}

.user-pool-guest-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
    word-break: break-word;
}

.aw-banner,
.aw-banner-title,
.opc-gps-strip-meta {
    max-width: 100%;
}

.nav-welcome {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-switcher-host--topnav {
    margin-left: auto;
    margin-right: 12px;
}

.top-nav {
    flex-wrap: wrap;
    gap: 8px;
}

.top-nav .lang-switcher-host--topnav + .nav-sub {
    flex: 1 1 100%;
}

.i18n-article-notice {
    display: none;
    margin: 12px 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0, 195, 255, 0.08);
    border: 1px solid rgba(0, 255, 208, 0.2);
    color: rgba(234, 246, 251, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

html[lang="en"] .i18n-article-notice {
    display: block;
}

html[lang="en"] .i18n-zh-article {
    display: none !important;
}

.agent-panel-header {
    position: relative;
}

.agent-panel-header #lang-switcher {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
}

#privacy-modal [data-i18n-lang],
#terms-modal [data-i18n-lang] {
    display: none;
}

html[lang="zh-CN"] #privacy-modal [data-i18n-lang="zh-CN"],
html[lang="zh-CN"] #terms-modal [data-i18n-lang="zh-CN"],
html[lang="en"] #privacy-modal [data-i18n-lang="en"],
html[lang="en"] #terms-modal [data-i18n-lang="en"] {
    display: block;
}

html[lang="en"] #privacy-modal h3[data-i18n-lang="en"],
html[lang="en"] #terms-modal h3[data-i18n-lang="en"] {
    font-size: 1.15rem;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .lang-switcher {
        margin-right: 4px;
    }
    .lang-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
    .nav-welcome {
        max-width: 28vw;
    }
    .opc-gps-strip-actions {
        justify-content: flex-start !important;
    }
}
