/* 多语言切换插件 - 前台悬浮切换球（Google 前端翻译版，扁平、可收起、不遮挡正文） */
#ml-switcher {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
}

#ml-switcher * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#ml-switcher .mls-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #185fa5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease;
    user-select: none;
}

#ml-switcher .mls-btn:hover {
    background: #0c447c;
}

#ml-switcher .mls-panel {
    position: absolute;
    right: 0;
    bottom: 54px;
    min-width: 168px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 6px;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

#ml-switcher.mls-open .mls-panel {
    display: block;
}

#ml-switcher .mls-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #2c2c2a;
    cursor: pointer;
    white-space: nowrap;
}

#ml-switcher .mls-option:hover {
    background: #f1f4f8;
}

#ml-switcher .mls-option.mls-active {
    color: #185fa5;
    font-weight: 500;
}

#ml-switcher .mls-option .mls-code {
    font-size: 11px;
    color: #888780;
    margin-left: 14px;
}

#ml-switcher .mls-option.mls-active .mls-code {
    color: #185fa5;
}

#ml-switcher .mls-origin {
    font-size: 10px;
    color: #888780;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0 4px;
    margin-left: 6px;
}

#ml-switcher .mls-notice {
    font-size: 12px;
    color: #993c1d;
    background: #faece7;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    line-height: 1.5;
}

@media (max-width: 576px) {
    #ml-switcher {
        right: 14px;
        bottom: 64px;
    }
}
