/* PC 顶栏语言切换（与 H5 共用 localStorage fanstar_locale） */
.zs-lang-switch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.12rem;
    font-size: 12px;
    color: #666;
}

.zs-lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.zs-lang-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    line-height: 0;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.zs-lang-trigger:hover {
    border-color: #2c8eff;
    box-shadow: 0 0 0 1px rgba(44, 142, 255, 0.25);
}

.zs-lang-trigger img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
}

.zs-lang-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 148px;
    padding: 6px 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10020;
}

.zs-lang-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.zs-lang-panel a:hover {
    background: #f5f7fa;
    color: #2c8eff;
}

.zs-lang-panel a.is-active {
    color: #2c8eff;
    font-weight: 600;
    background: #eef6ff;
}

.zs-lang-panel a img {
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
}

.zs-lang-sep {
    color: #ccc;
    user-select: none;
}

.header-signin-row {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
}

.logined .zs-lang-switch {
    margin-left: 0;
    padding: 0;
}

.wy-login-inner {
    position: relative;
}

.wy-login-lang.zs-lang-switch {
    position: absolute;
    top: 0.2rem;
    right: 0;
    z-index: 20;
}
