/* ================= 右下固定浮动聊天条（详情页独立引用） ================= */
.float-chat-bar {
    position: fixed;
    right: 18px;
    bottom: 156px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-chat-bar .fcb-btn {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all .25s ease;
}
.float-chat-bar .fcb-btn i,
.float-chat-bar .fcb-btn svg { width: 26px; height: 26px; }
.float-chat-bar .fcb-btn svg path { fill: currentColor; }
.float-chat-bar .fcb-btn:hover { transform: translateY(-3px) scale(1.04); }
.float-chat-bar .fcb-btn[data-channel="zalo"] { color:#0093ff; }
.float-chat-bar .fcb-btn[data-channel="zalo"]:hover { background:#0093ff; color:#fff; }
.float-chat-bar .fcb-btn[data-channel="facebook"] { color:#1877f2; }
.float-chat-bar .fcb-btn[data-channel="facebook"]:hover { background:#1877f2; color:#fff; }
.float-chat-bar .fcb-btn[data-channel="whatsapp"] { color:#25d366; }
.float-chat-bar .fcb-btn[data-channel="whatsapp"]:hover { background:#25d366; color:#fff; }
.float-chat-bar .fcb-btn[data-channel="phone"] { color:#34c759; }
.float-chat-bar .fcb-btn[data-channel="phone"]:hover { background:#34c759; color:#fff; }

.float-chat-bar .fcb-label {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,20,24,0.92);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.float-chat-bar .fcb-label::after {
    content:'';
    position:absolute;
    right:-5px; top:50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: rgba(20,20,24,0.92);
}
.float-chat-bar .fcb-btn:hover .fcb-label { opacity: 1; }

/* 移动端：浮动条位置与按钮尺寸调整 */
@media (max-width: 768px) {
    .float-chat-bar { right: 10px; bottom: 150px; }
    .float-chat-bar .fcb-btn { width: 48px; height: 48px; }
    .float-chat-bar .fcb-btn i,
    .float-chat-bar .fcb-btn svg { width: 22px; height: 22px; }
    .float-chat-bar .fcb-label { display:none; }
}

/* ================= 显眼的语言切换按钮（详情页共用） ================= */
.lang-switcher {
    display: inline-flex !important;
    border: 2px solid #e63946;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(230,57,70,0.25);
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 2px;
    gap: 2px;
    align-items: center;
}
.lang-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 700;
    color: #4a4a6a;
    cursor: pointer;
    transition: all .25s ease;
    font-family: inherit;
    border-radius: 20px;
    white-space: nowrap;
}
.lang-btn::before {
    content: '🌐';
    font-size: 0.85rem;
    margin-right: 4px;
}
.lang-btn.active {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(230,57,70,0.4);
}
.lang-btn:hover:not(.active) {
    background: #f8f9fa;
    color: #e63946;
    transform: translateY(-1px);
}

/* ================= 手机端固定浮动语言切换条 ================= */
.mobile-lang-float {
    display: none;
}
@media (max-width: 768px) {
    .mobile-lang-float {
        display: flex !important;
        position: fixed;
        bottom: 12px;
        left: 12px;
        z-index: 10000;
        border: 2px solid #e63946;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 14px rgba(230,57,70,0.3);
        background: #fff;
        padding: 2px;
        gap: 1px;
        align-items: center;
    }
    .mobile-lang-float .lang-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
        border-radius: 16px;
    }
    .mobile-lang-float .lang-btn::before {
        content: '';
        margin-right: 0;
    }
    /* 隐藏导航栏内的语言切换，避免重复 */
    .nav-container .lang-switcher { display: none !important; }
}
