/* ==========================================================================
   PC 端统一右侧悬浮条 — 首页与全部 PC 内页共用（v1.2.0）
   首页 public/pc_index.html 与内页 public/home/index.html 引用同一份本文件，
   两边 DOM 结构也完全一致，因此视觉与行为 100% 统一。
   本文件由 Nginx 下发 max-age=43200，修改后必须同步更换引用处的 v= 值。
   ========================================================================== */

/* 隐藏 Nuxt PC 内页自带的悬浮条 / 客服圆图标 / 聊天面板。
   PC 端不再使用 CRMEB 自带客服通信，统一走企业微信客服网页会话。 */
.floatWindow,.kefuIcon,chat-room,.chat-room,.chatCont{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important
}

.pcx-float{position:fixed;right:16px;bottom:15%;z-index:120;display:flex;flex-direction:column;align-items:center;gap:12px}
.pcx-float *{box-sizing:border-box}
.pcx-float-list{width:70px;background:#fff;border-radius:6px;box-shadow:0 3px 20px rgba(0,0,0,.08)}
.pcx-float-item{
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    width:100%;height:70px;padding:8px 2px;border:0;border-top:1px solid #f2f2f2;
    background:transparent;color:#5c5c5c;font-family:inherit;font-size:12px;line-height:1.2;
    text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;appearance:none
}
.pcx-float-item:first-child{border-top:0}
.pcx-float-item:hover,.pcx-float-item:focus-visible{color:#16a34a;outline:none}
.pcx-float-item .pcx-ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pcx-float-qr{
    position:absolute;right:80px;top:0;display:none;width:150px;padding:10px;
    background:#fff;border-radius:6px;box-shadow:0 3px 20px rgba(0,0,0,.14);text-align:center
}
.pcx-float-qr img{display:block;width:130px;height:130px;object-fit:contain}
.pcx-float-qr b{display:block;margin-top:6px;color:#666;font-size:12px;font-weight:400}
.pcx-float-wx:hover .pcx-float-qr,
.pcx-float-wx:focus-within .pcx-float-qr,
.pcx-float-wx:focus .pcx-float-qr,
.pcx-float-wx.pcx-qr-on .pcx-float-qr{display:block}

/* 微信客服对话气泡：常驻显示（后台未配置客服链接时也不隐藏，点击给出填写指引） */
.pcx-kefu{
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    width:58px;height:58px;padding:0;border:0;border-radius:50%;background:#16a34a;color:#fff;
    cursor:pointer;font-family:inherit;-webkit-appearance:none;appearance:none;
    box-shadow:0 6px 16px rgba(22,163,74,.35)
}
.pcx-kefu:hover,.pcx-kefu:focus-visible{background:#12833b;outline:none}
.pcx-kefu svg{width:24px;height:24px;fill:currentColor}
.pcx-kefu span{font-size:11px;line-height:1.2}
.pcx-kefu em{
    position:absolute;right:66px;top:50%;transform:translateY(-50%);padding:8px 12px;
    background:#fff;color:#333;border-radius:4px;box-shadow:0 3px 16px rgba(0,0,0,.12);
    font-size:12px;font-style:normal;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s
}
.pcx-kefu:hover em,.pcx-kefu:focus-visible em{opacity:1}

/* 客服链接未配置时的轻提示，避免按钮变成「点了没反应」的死入口 */
.pcx-kefu-tip{
    position:fixed;right:92px;bottom:15%;z-index:130;max-width:300px;padding:10px 14px;
    background:rgba(0,0,0,.78);color:#fff;border-radius:4px;font-size:12px;line-height:1.5;
    opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s;pointer-events:none
}
.pcx-kefu-tip.pcx-tip-on{opacity:1;transform:translateY(0)}

@media (max-width:768px){
    .pcx-float{right:8px;bottom:80px;gap:8px}
    .pcx-float-list{width:52px}
    .pcx-float-item{height:56px;font-size:10px}
    .pcx-float-item .pcx-ico{width:18px;height:18px}
    .pcx-kefu{width:48px;height:48px}
    .pcx-kefu span,.pcx-kefu em{display:none}
    .pcx-float-qr{right:62px}
    .pcx-kefu-tip{right:68px;bottom:80px}
}
