/**
 * 浮动客服样式 v6
 * 文件: Public/css/float-service.css
 */
.fs-widget{position:fixed;z-index:99998;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
.fs-widget *{box-sizing:border-box;margin:0;padding:0}

/* 垂直居中，离边缘20px */
.fs-widget.fs-pos-right{right:20px;top:50%;transform:translateY(-50%)}
.fs-widget.fs-pos-left{left:20px;top:50%;transform:translateY(-50%)}

.fs-trigger-wrap{display:flex;justify-content:center}

.fs-trigger{
    width:56px;height:56px;border-radius:50%;border:none;outline:none;
    cursor:pointer;display:flex;align-items:center;justify-content:center;
    color:#fff;box-shadow:0 4px 20px rgba(0,0,0,.2);
    transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s;
    position:relative;gap:6px;
}
.fs-trigger:hover{transform:scale(1.1);box-shadow:0 6px 28px rgba(0,0,0,.25)}
.fs-trigger:active{transform:scale(.95)}
.fs-trigger svg{width:26px;height:26px;fill:currentColor;pointer-events:none}
.fs-trigger .fs-close-icon{display:none}
.fs-trigger.open .fs-main-icon{display:none}
.fs-trigger.open .fs-close-icon{display:flex;align-items:center;justify-content:center}

.fs-trigger.fs-style-1{border-radius:50%}
.fs-trigger.fs-style-2{border-radius:14px}
.fs-trigger.fs-style-3{width:auto;border-radius:28px;padding:0 24px;font-size:14px;font-weight:600}
.fs-trigger.fs-style-4{border-radius:50%;flex-direction:column;width:auto;height:auto;padding:0;background:none!important;box-shadow:none!important}
.fs-trigger.fs-style-4 .fs-main-icon{display:flex;flex-direction:column;align-items:center;gap:5px}
.fs-trigger.fs-style-4 .fs-trigger-circle{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(0,0,0,.2);transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.fs-trigger.fs-style-4:hover .fs-trigger-circle{transform:scale(1.1)}
.fs-trigger.fs-style-4 .fs-trigger-label{font-size:10px;font-weight:700;letter-spacing:1.5px}
.fs-trigger.fs-style-4.open .fs-main-icon{display:none}
.fs-trigger.fs-style-4.open .fs-close-icon{display:flex;width:52px;height:52px;border-radius:50%;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(0,0,0,.2)}
.fs-trigger.fs-style-5{border-radius:50%}
.fs-trigger.fs-style-6{border-radius:50%;background:#fff!important;box-shadow:0 4px 20px rgba(0,0,0,.1)!important}

/* 面板 */
.fs-panel{
    position:absolute;width:300px;background:#fff;border-radius:20px;
    box-shadow:0 12px 48px rgba(0,0,0,.15),0 2px 8px rgba(0,0,0,.06);
    opacity:0;visibility:hidden;
    transform:translateY(10px) scale(.92);
    transition:opacity .35s cubic-bezier(.16,1,.3,1),transform .35s cubic-bezier(.16,1,.3,1),visibility .35s;
    overflow:hidden;
}
.fs-panel.show{opacity:1;visibility:visible;transform:translateY(0) scale(1)}

.fs-pos-right .fs-panel{bottom:auto;top:50%;right:calc(100% + 14px);transform:translateY(-50%) translateX(10px) scale(.92)}
.fs-pos-right .fs-panel.show{transform:translateY(-50%) translateX(0) scale(1)}
.fs-pos-left .fs-panel{bottom:auto;top:50%;left:calc(100% + 14px);transform:translateY(-50%) translateX(-10px) scale(.92)}
.fs-pos-left .fs-panel.show{transform:translateY(-50%) translateX(0) scale(1)}

/* 面板样式1 */
.fs-panel.ps-1 .fs-panel-head{padding:22px 24px 18px;color:#fff;font-size:17px;font-weight:700;line-height:1.3}
.fs-panel.ps-1 .fs-panel-head small{display:block;font-size:12px;font-weight:400;opacity:.8;margin-top:5px}
.fs-panel.ps-1 .fs-panel-body{padding:14px 18px 18px}

/* 面板样式2 */
.fs-panel.ps-2{background:rgba(255,255,255,.88)!important;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border:1px solid rgba(255,255,255,.5)}
.fs-panel.ps-2 .fs-panel-head{padding:22px 24px 18px;color:#fff;font-size:17px;font-weight:700;line-height:1.3}
.fs-panel.ps-2 .fs-panel-head small{display:block;font-size:12px;font-weight:400;opacity:.85;margin-top:5px}
.fs-panel.ps-2 .fs-panel-body{padding:14px 18px 18px}

/* 面板样式3 */
.fs-panel.ps-3{background:#1a1a2e!important;border:1px solid rgba(255,255,255,.06)}
.fs-panel.ps-3 .fs-panel-head{padding:22px 24px 18px;color:#fff;font-size:17px;font-weight:700;background:transparent!important;border-bottom:1px solid rgba(255,255,255,.06)}
.fs-panel.ps-3 .fs-panel-head small{display:block;font-size:12px;font-weight:400;opacity:.5;margin-top:5px}
.fs-panel.ps-3 .fs-panel-body{padding:14px 18px 18px}
.fs-panel.ps-3 .fs-btn{box-shadow:0 2px 8px rgba(0,0,0,.3)}
.fs-panel.ps-3 .fs-wa-sub{background:rgba(255,255,255,.05)}
.fs-panel.ps-3 .fs-wa-sub a{color:#fff}
.fs-panel.ps-3 .fs-wa-sub .wa-name{color:#fff}
.fs-panel.ps-3 .fs-wa-sub a:hover{background:rgba(255,255,255,.08)}

/* 面板样式4 */
.fs-panel.ps-4{background:#fff!important;border:2px solid #eee;box-shadow:0 8px 32px rgba(0,0,0,.06)!important;border-radius:16px!important}
.fs-panel.ps-4 .fs-panel-head{padding:22px 24px 18px;font-size:17px;font-weight:700;background:#fff!important;color:#333!important;border-bottom:2px solid #f0f0f0}
.fs-panel.ps-4 .fs-panel-head small{display:block;font-size:12px;font-weight:400;color:#999;margin-top:5px}
.fs-panel.ps-4 .fs-panel-body{padding:14px 18px 18px}

/* 面板样式5 */
.fs-panel.ps-5{overflow:visible!important;border:none}
.fs-panel.ps-5::before{content:'';position:absolute;inset:-3px;border-radius:23px;background:linear-gradient(135deg,var(--fs-color,#25D366),#667eea,#764ba2);z-index:-1;opacity:.5;filter:blur(10px)}
.fs-panel.ps-5 .fs-panel-head{padding:22px 24px 18px;color:#fff;font-size:17px;font-weight:700}
.fs-panel.ps-5 .fs-panel-head small{display:block;font-size:12px;font-weight:400;opacity:.85;margin-top:5px}
.fs-panel.ps-5 .fs-panel-body{padding:14px 18px 18px}

/* 面板样式6 */
.fs-panel.ps-6{border-radius:28px!important;box-shadow:0 16px 48px rgba(0,0,0,.1)!important}
.fs-panel.ps-6 .fs-panel-head{padding:24px 24px 18px;color:#fff;font-size:17px;font-weight:700}
.fs-panel.ps-6 .fs-panel-head small{display:block;font-size:12px;font-weight:400;opacity:.85;margin-top:5px}
.fs-panel.ps-6 .fs-panel-body{padding:16px 20px 20px}
.fs-panel.ps-6 .fs-btn{border-radius:16px;padding:14px 18px;font-size:15px}

/* 按钮 */
.fs-btn{
    display:flex;align-items:center;gap:12px;width:100%;padding:13px 16px;
    border:none;border-radius:12px;cursor:pointer;font-size:14px;color:#fff;
    font-weight:600;text-decoration:none;margin-bottom:10px;
    transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s;
}
.fs-btn:last-child{margin-bottom:0}
.fs-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.15);color:#fff;text-decoration:none}
.fs-btn:active{transform:translateY(0)}
.fs-btn svg{width:22px;height:22px;fill:#fff;flex-shrink:0}
.fs-btn-inquiry{background:linear-gradient(135deg,#FF6B35,#F7522E)}
.fs-btn-whatsapp{background:linear-gradient(135deg,#25D366,#128C7E)}
.fs-btn-email{background:linear-gradient(135deg,#4A90D9,#357ABD)}

/* WA下拉 */
.fs-wa-sub{display:none;padding:6px 0;margin-top:-4px;margin-bottom:10px;background:rgba(37,211,102,.05);border-radius:10px}
.fs-wa-sub.show{display:block}
.fs-wa-sub a{display:flex;align-items:center;gap:10px;padding:8px 12px;font-size:13px;color:#333;text-decoration:none;transition:background .15s}
.fs-wa-sub a:hover{background:rgba(37,211,102,.1)}
.fs-wa-sub .wa-av{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;border:2px solid #25D366;background:#f0f0f0}
.fs-wa-sub .wa-av img{width:100%;height:100%;object-fit:cover;display:block}
.fs-wa-sub .wa-av svg{width:32px;height:32px;display:block}
.fs-wa-sub .wa-info{flex:1;min-width:0}
.fs-wa-sub .wa-name{font-size:13px;font-weight:600;color:#333}
.fs-wa-sub .wa-status{font-size:10px;color:#25D366}
.fs-wa-sub .wa-arrow svg{width:16px;height:16px;fill:#999}

/* 脉冲 */
@keyframes fs-pulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,.45)}70%{box-shadow:0 0 0 16px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}
.fs-trigger.pulse{animation:fs-pulse 2s infinite}
.fs-trigger.fs-style-4.pulse{animation:none}
.fs-trigger.fs-style-4.pulse .fs-trigger-circle{animation:fs-pulse 2s infinite}
.fs-trigger.open{animation:none}
.fs-trigger.fs-style-4.open .fs-trigger-circle{animation:none}
@keyframes fs-glow{0%{box-shadow:0 0 0 0 var(--fs-glow-color,rgba(37,211,102,.5))}70%{box-shadow:0 0 0 18px transparent}100%{box-shadow:0 0 0 0 transparent}}
.fs-trigger.fs-style-5.pulse{animation:fs-glow 2s infinite}

/* 手机端也垂直居中，不变 */
@media(max-width:768px){
    .fs-widget.fs-pos-right{right:16px}
    .fs-widget.fs-pos-left{left:16px}
    .fs-panel{width:calc(100vw - 100px)!important;max-width:300px}
}

/* FSX_V1 浮动客服 折叠/展开 多样式(追加在 float-service.css 末尾,部署脚本会原地更新本块) */
.fsx{position:fixed;z-index:99998;pointer-events:none;font-size:14px;line-height:1.4;
  --wa:#25D366;--ink:#0f172a;--mut:#64748b;--e:cubic-bezier(.2,.8,.2,1);
  --sh:0 10px 30px rgba(15,23,42,.16),0 2px 6px rgba(15,23,42,.06)}
.fsx *{box-sizing:border-box}
.fsx a,.fsx a:hover,.fsx a:focus{text-decoration:none}
.fsx button{font:inherit;border:0;margin:0;padding:0;background:none;cursor:pointer;
  color:inherit;-webkit-appearance:none;appearance:none;line-height:1.3}
.fsx svg{display:block;fill:currentColor;flex-shrink:0}
.fsx a:focus-visible,.fsx button:focus-visible{outline:2px solid var(--c);outline-offset:2px}
.fsx .fsx-k-iq{--k:var(--c)}
.fsx .fsx-k-wa{--k:var(--wa)}
.fsx .fsx-k-em{--k:#334155}
.fsx .fsx-k-top{--k:#64748b}

/* ---------- 定位 ---------- */
.fsx-rail,.fsx-dots,.fsx-drawer{top:50%;transform:translateY(-50%)}
.fsx-rail.fsx-r,.fsx-drawer.fsx-r{right:0}
.fsx-rail.fsx-l,.fsx-drawer.fsx-l{left:0}
.fsx-dots.fsx-r{right:var(--r,20px)}
.fsx-dots.fsx-l{left:var(--r,20px)}
.fsx-rail.fsx-v-low,.fsx-dots.fsx-v-low,.fsx-drawer.fsx-v-low{top:auto;bottom:var(--b,24px);transform:none}
.fsx-card,.fsx-stack,.fsx-sheet{bottom:var(--b,24px);display:flex;flex-direction:column;align-items:flex-end}
.fsx-card.fsx-r,.fsx-stack.fsx-r,.fsx-sheet.fsx-r{right:var(--r,24px)}
.fsx-card.fsx-l,.fsx-stack.fsx-l,.fsx-sheet.fsx-l{left:var(--r,24px);align-items:flex-start}
/* FS_HUB_V1: 经典样式按钮与 AI 客服按钮中线对齐(AI 60px 距边 24px, 经典 56px) */
@media(min-width:769px){
  .fs-widget.fs-pos-right{right:26px}
  .fs-widget.fs-pos-left{left:26px}
}
.fsx-dock{bottom:var(--b,24px)}
.fsx-dock.fsx-r{right:var(--r,24px)}
.fsx-dock.fsx-l{left:var(--r,24px)}
.fsx-bar{left:0;right:0;bottom:0}

/* ---------- 圆形启动按钮(卡片/堆叠/圆点/横条/底部弹层共用) ---------- */
.fsx .fsx-launch{position:relative;width:60px;height:60px;border-radius:50%;background:var(--c);color:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.22);pointer-events:auto;
  transition:transform .25s var(--e),opacity .2s,visibility .25s,background .2s}
.fsx .fsx-launch:hover{background:var(--c2);transform:scale(1.05)}
.fsx .fsx-launch .fsx-i1,.fsx .fsx-launch .fsx-i2{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;
  align-items:center;justify-content:center;transition:transform .3s var(--e),opacity .2s}
.fsx .fsx-launch svg{width:26px;height:26px}
.fsx .fsx-launch .fsx-i2{opacity:0;transform:rotate(-90deg)}
.fsx[data-st=open] .fsx-launch .fsx-i1{opacity:0;transform:rotate(90deg)}
.fsx[data-st=open] .fsx-launch .fsx-i2{opacity:1;transform:none}
.fsx .fsx-dotn{position:absolute;top:3px;right:3px;width:12px;height:12px;border-radius:50%;
  background:#22c55e;border:2px solid #fff}
.fsx[data-st=open] .fsx-dotn{display:none}
.fsx[data-st=fold] .fsx-launch::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%;
  border:2px solid var(--c);opacity:0;pointer-events:none;animation:fsx-ring 2.4s ease-out 1.2s 3}
@keyframes fsx-ring{0%{transform:scale(1);opacity:.55}100%{transform:scale(1.55);opacity:0}}

/* ---------- 联系方式行(卡片/抽屉/底部弹层/WhatsApp多号码弹出) ---------- */
.fsx .fsx-rows{display:flex;flex-direction:column;gap:8px}
.fsx .fsx-row{display:flex;align-items:center;background:#f5f7fa;border-radius:10px;
  transition:background .2s,box-shadow .2s}
.fsx .fsx-row:hover{background:#edf1f5}
.fsx .fsx-cb .fsx-row{background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.fsx .fsx-cb .fsx-row:hover{box-shadow:0 4px 14px rgba(15,23,42,.1)}
.fsx .fsx-ra{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:10px 12px;color:var(--ink)}
.fsx .fsx-ra .fsx-ico{width:40px;height:40px;border-radius:10px;background:var(--k);color:#fff;
  display:flex;align-items:center;justify-content:center;flex-shrink:0}
.fsx .fsx-ra .fsx-ico svg{width:20px;height:20px}
.fsx .fsx-av{position:relative;width:40px;height:40px;flex-shrink:0}
.fsx .fsx-av img{width:40px;height:40px;max-width:none;border-radius:50%;object-fit:cover;display:block}
.fsx .fsx-av i{position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;
  background:#22c55e;border:2px solid #fff}
.fsx .fsx-rt{flex:1;min-width:0;display:flex;flex-direction:column}
.fsx .fsx-rt b,.fsx .fsx-rt em{unicode-bidi:plaintext;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsx .fsx-rt b{font-size:14px;font-weight:600;color:var(--ink);line-height:1.3}
.fsx .fsx-rt em{font-style:normal;font-size:12px;color:var(--mut);margin-top:2px}
.fsx .fsx-rt em.on{color:#16a34a}
.fsx [dir=rtl] .fsx-rt{text-align:right}
.fsx .fsx-go{color:#94a3b8;flex-shrink:0}
.fsx .fsx-go svg{width:18px;height:18px}
.fsx [dir=rtl] .fsx-go svg{transform:rotate(180deg)}
.fsx .fsx-cp{width:36px;height:36px;margin:0 6px;border-radius:8px;color:var(--mut);
  display:flex;align-items:center;justify-content:center;flex-shrink:0}
.fsx .fsx-cp:hover{background:rgba(15,23,42,.06);color:var(--ink)}
.fsx .fsx-cp svg{width:16px;height:16px}
.fsx .fsx-cp.ok{color:#16a34a}
.fsx a.fsx-cta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin-top:12px;
  padding:8px 14px;border-radius:10px;background:var(--c);color:#fff;font-size:15px;font-weight:600;
  text-align:center;transition:background .2s}
.fsx a.fsx-cta:hover{background:var(--c2);color:#fff}
.fsx a.fsx-cta svg{width:20px;height:20px}
.fsx .fsx-pb > .fsx-cta:first-child{margin-top:0}

/* ---------- 面板标题(抽屉/底部弹层) ---------- */
.fsx .fsx-ph{position:relative;padding:20px 56px 14px 20px}
.fsx [dir=rtl] .fsx-ph,.fsx .fsx-ph[dir=rtl]{padding:20px 20px 14px 56px}
.fsx .fsx-ph b{display:block;font-size:17px;font-weight:700;color:var(--ink);line-height:1.3}
.fsx .fsx-ph span{display:block;font-size:13px;color:var(--mut);margin-top:4px}
.fsx .fsx-ph .fsx-x{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:8px;
  color:var(--mut);display:flex;align-items:center;justify-content:center}
.fsx [dir=rtl] .fsx-ph .fsx-x{right:auto;left:14px}
.fsx .fsx-ph .fsx-x:hover{background:#f1f5f9;color:var(--ink)}
.fsx .fsx-x svg{width:18px;height:18px}
.fsx .fsx-pb{padding:4px 20px 20px}

/* ---------- WhatsApp 多号码弹出 ---------- */
.fsx .fsx-tw{position:relative}
.fsx .fsx-pop{position:absolute;z-index:3;min-width:250px;background:#fff;border-radius:12px;padding:12px;
  box-shadow:var(--sh);pointer-events:auto;opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .2s,transform .2s var(--e),visibility .2s}
.fsx .fsx-pop.show{opacity:1;visibility:visible;transform:none}
.fsx .fsx-pt{font-size:13px;font-weight:600;color:var(--mut);margin:0 4px 8px}
.fsx-rail.fsx-r .fsx-pop{right:calc(100% + 15px);top:-5px}
.fsx-rail.fsx-l .fsx-pop{left:calc(100% + 15px);top:-5px}
.fsx-dots.fsx-r .fsx-pop{right:calc(100% + 14px);top:-6px}
.fsx-dots.fsx-l .fsx-pop{left:calc(100% + 14px);top:-6px}
.fsx-dock .fsx-pop{bottom:calc(100% + 16px);right:-6px}
.fsx-dock.fsx-l .fsx-pop{right:auto;left:-6px}

/* ========== 1. rail 侧边贴边条 ========== */
.fsx .fsx-rl{position:relative;display:flex;flex-direction:column;gap:2px;padding:5px;background:#fff;
  box-shadow:var(--sh);pointer-events:auto;transition:transform .35s var(--e),opacity .25s,visibility .35s}
.fsx-r .fsx-rl{border-radius:10px 0 0 10px}
.fsx-l .fsx-rl{border-radius:0 10px 10px 0}
.fsx .fsx-tl{position:relative;width:50px;height:50px;border-radius:8px;display:flex;align-items:center;
  justify-content:center;color:var(--k);transition:background .2s,color .2s}
.fsx .fsx-tl svg{width:22px;height:22px}
.fsx .fsx-tl:hover,.fsx .fsx-tl.is-on{background:var(--k);color:#fff}
.fsx .fsx-lb{position:absolute;top:50%;right:calc(100% + 10px);height:40px;margin-top:-20px;padding:0 14px;
  display:flex;align-items:center;border-radius:8px;background:var(--k);color:#fff;font-size:13.5px;
  font-weight:600;white-space:nowrap;box-shadow:0 6px 18px rgba(15,23,42,.18);pointer-events:none;
  opacity:0;visibility:hidden;transform:translateX(6px);transition:opacity .2s,transform .2s,visibility .2s}
.fsx-l .fsx-lb{right:auto;left:calc(100% + 10px);transform:translateX(-6px)}
.fsx .fsx-rf{width:50px;height:24px;border-radius:6px;color:#94a3b8;display:flex;align-items:center;
  justify-content:center}
.fsx .fsx-rf:hover{color:var(--ink);background:#f1f5f9}
.fsx .fsx-rf svg{width:18px;height:18px}
.fsx-l .fsx-rf svg{transform:rotate(180deg)}
.fsx .fsx-tab{position:absolute;top:calc(50% - 38px);width:30px;height:76px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;background:var(--c);color:#fff;box-shadow:var(--sh);
  pointer-events:auto;transition:transform .3s var(--e),opacity .2s,visibility .3s,background .2s}
.fsx .fsx-tab:hover{background:var(--c2)}
.fsx .fsx-tab svg{width:18px;height:18px}
.fsx .fsx-tab .fsx-tc svg{width:14px;height:14px}
.fsx-r .fsx-tab{right:0;border-radius:8px 0 0 8px}
.fsx-r .fsx-tab .fsx-tc svg{transform:rotate(180deg)}
.fsx-l .fsx-tab{left:0;border-radius:0 8px 8px 0}
.fsx-rail[data-st=fold] .fsx-rl{opacity:0;visibility:hidden;transform:translateX(calc(100% + 12px))}
.fsx-rail.fsx-l[data-st=fold] .fsx-rl{transform:translateX(calc(-100% - 12px))}
.fsx-rail[data-st=open] .fsx-tab{opacity:0;visibility:hidden;transform:translateX(100%)}
.fsx-rail.fsx-l[data-st=open] .fsx-tab{transform:translateX(-100%)}

/* ========== 2. dots 悬浮圆点组 ========== */
.fsx .fsx-dl{display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none}
.fsx .fsx-dot{position:relative;width:48px;height:48px;border-radius:50%;background:var(--k);color:#fff;
  display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(15,23,42,.18);
  pointer-events:auto}
.fsx .fsx-dot svg{width:22px;height:22px}
.fsx .fsx-dot.fsx-k-top{background:#fff;color:#475569}
.fsx .fsx-dot:hover,.fsx .fsx-dot.is-on{box-shadow:0 0 0 4px rgba(255,255,255,.9),0 8px 20px rgba(15,23,42,.24)}
.fsx .fsx-tip{position:absolute;top:50%;right:calc(100% + 12px);margin-top:-15px;height:30px;padding:0 10px;
  display:flex;align-items:center;border-radius:6px;background:rgba(15,23,42,.92);color:#fff;font-size:13px;
  white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transform:translateX(6px);
  transition:opacity .2s,transform .2s,visibility .2s}
.fsx-dots.fsx-l .fsx-tip{right:auto;left:calc(100% + 12px);transform:translateX(-6px)}
.fsx .fsx-df{width:30px;height:30px;border-radius:50%;background:#fff;color:#64748b;pointer-events:auto;
  display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(15,23,42,.14)}
.fsx .fsx-df:hover{color:var(--ink)}
.fsx .fsx-df svg{width:16px;height:16px}
.fsx .fsx-dl > *{transition:transform .3s var(--e),opacity .22s,visibility .3s,box-shadow .2s}
.fsx-dots[data-st=open] .fsx-dl > :nth-child(2){transition-delay:30ms}
.fsx-dots[data-st=open] .fsx-dl > :nth-child(3){transition-delay:60ms}
.fsx-dots[data-st=open] .fsx-dl > :nth-child(4){transition-delay:90ms}
.fsx-dots[data-st=open] .fsx-dl > :nth-child(5){transition-delay:120ms}
.fsx-dots[data-st=open] .fsx-dl > :nth-child(6){transition-delay:150ms}
.fsx-dots[data-st=fold] .fsx-dl > *{opacity:0;visibility:hidden;transform:scale(.5)}
.fsx-dots:not([data-sc]) .fsx-dot.fsx-k-top{opacity:0;visibility:hidden}
.fsx-dots .fsx-launch{position:absolute;top:calc(50% - 26px);width:52px;height:52px}
.fsx-dots.fsx-r .fsx-launch{right:-2px}
.fsx-dots.fsx-l .fsx-launch{left:-2px}
.fsx-dots.fsx-v-low .fsx-launch{top:auto;bottom:0}

/* ========== 3. dock 底部横条 ========== */
.fsx .fsx-bk{display:flex;align-items:center;gap:4px;padding:6px;background:#fff;border-radius:12px;
  box-shadow:var(--sh);pointer-events:auto;transition:transform .3s var(--e),opacity .22s,visibility .3s}
.fsx .fsx-seg{height:44px;padding:0 14px;border-radius:8px;display:flex;align-items:center;gap:8px;
  color:var(--ink);font-size:14px;font-weight:600;white-space:nowrap;transition:background .2s}
.fsx .fsx-seg svg{width:20px;height:20px;color:var(--k)}
.fsx .fsx-seg:hover,.fsx .fsx-seg.is-on{background:#f1f5f9;color:var(--ink)}
.fsx a.fsx-seg.fsx-k-iq{background:var(--c);color:#fff;padding:0 18px}
.fsx a.fsx-seg.fsx-k-iq:hover{background:var(--c2);color:#fff}
.fsx .fsx-seg.fsx-k-iq svg{color:#fff}
.fsx .fsx-seg.fsx-k-top{padding:0 12px}
.fsx .fsx-seg.fsx-k-top .fsx-sx{display:none}
.fsx-dock:not([data-sc]) .fsx-seg.fsx-k-top{display:none}
.fsx .fsx-dkf{width:30px;height:44px;border-radius:8px;color:#94a3b8;display:flex;align-items:center;
  justify-content:center}
.fsx .fsx-dkf:hover{background:#f1f5f9;color:var(--ink)}
.fsx .fsx-dkf svg{width:18px;height:18px;transform:rotate(90deg)}
.fsx-dock[data-st=fold] .fsx-bk{opacity:0;visibility:hidden;transform:translateY(14px)}
.fsx-dock .fsx-launch{position:absolute;bottom:0;width:56px;height:56px}
.fsx-dock.fsx-r .fsx-launch{right:0}
.fsx-dock.fsx-l .fsx-launch{left:0}
.fsx-dots[data-st=open] .fsx-launch,.fsx-dock[data-st=open] .fsx-launch{opacity:0;visibility:hidden;
  transform:scale(.6)}
@media(max-width:1100px){.fsx .fsx-seg .fsx-sx{display:none}.fsx .fsx-seg{padding:0 12px}
  .fsx a.fsx-seg.fsx-k-iq .fsx-sx{display:inline}}

/* ========== 4. stack 堆叠气泡 ========== */
.fsx .fsx-sl{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin:0 6px 12px;
  pointer-events:none}
.fsx-l .fsx-sl{align-items:flex-start}
.fsx .fsx-sc{display:flex;align-items:center;gap:10px;direction:ltr;pointer-events:auto;
  transition:opacity .25s,transform .3s var(--e),visibility .3s;transition-delay:calc(var(--i,0) * 40ms)}
.fsx-l .fsx-sc{flex-direction:row-reverse}
.fsx .fsx-st{display:flex;flex-direction:column;max-width:240px;padding:8px 12px;border-radius:8px;
  background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.12);text-align:right}
.fsx-l .fsx-st{text-align:left}
.fsx .fsx-sc[dir=rtl] .fsx-st{direction:rtl}
.fsx .fsx-st b{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.3;white-space:nowrap}
.fsx .fsx-st em{font-style:normal;font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;unicode-bidi:plaintext;margin-top:1px}
.fsx .fsx-sc .fsx-ico{width:48px;height:48px;border-radius:50%;background:var(--k);color:#fff;display:flex;
  align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(15,23,42,.18);
  transition:transform .2s var(--e)}
.fsx .fsx-sc .fsx-ico svg{width:22px;height:22px}
.fsx .fsx-sc:hover .fsx-ico{transform:scale(1.07)}
.fsx-stack[data-st=fold] .fsx-sc{opacity:0;visibility:hidden;transform:translateY(12px) scale(.92);
  transition-delay:0s}

/* ========== 5. card 对话卡片 ========== */
.fsx .fsx-cd{position:absolute;bottom:calc(100% + 14px);right:0;width:340px;max-width:calc(100vw - 32px);
  background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 18px 48px rgba(15,23,42,.22);
  pointer-events:auto;transform-origin:100% 100%;transition:opacity .25s,transform .35s var(--e),visibility .35s}
.fsx-l .fsx-cd{right:auto;left:0;transform-origin:0 100%}
.fsx-card[data-st=fold] .fsx-cd{opacity:0;visibility:hidden;transform:translateY(12px) scale(.96)}
.fsx .fsx-ch{display:flex;align-items:center;gap:12px;padding:16px;color:#fff;
  background:linear-gradient(135deg,var(--c),var(--c2))}
.fsx .fsx-avs{display:flex;flex-shrink:0}
.fsx .fsx-avs span{width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid rgba(255,255,255,.9);
  background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.fsx .fsx-avs span + span{margin-left:-12px}
.fsx [dir=rtl] .fsx-avs span + span{margin-left:0;margin-right:-12px}
.fsx .fsx-avs img{width:100%;height:100%;max-width:none;object-fit:cover;display:block}
.fsx .fsx-avs svg{width:22px;height:22px;color:#fff}
.fsx .fsx-ht{flex:1;min-width:0}
.fsx .fsx-ht b{display:block;font-size:16px;font-weight:700;line-height:1.3;color:#fff}
.fsx .fsx-ht span{display:flex;align-items:center;gap:6px;font-size:12px;opacity:.92;margin-top:3px}
.fsx .fsx-ht i{width:8px;height:8px;border-radius:50%;background:#4ade80;flex-shrink:0;
  box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.fsx .fsx-ch .fsx-x{width:32px;height:32px;border-radius:8px;color:#fff;display:flex;align-items:center;
  justify-content:center;flex-shrink:0;align-self:flex-start}
.fsx .fsx-ch .fsx-x:hover{background:rgba(255,255,255,.16)}
.fsx .fsx-cb{background:#f6f7f9;padding:16px;max-height:calc(100vh - 186px - var(--b,24px));overflow-y:auto}
.fsx .fsx-bub{max-width:92%;margin-bottom:14px;padding:12px 14px;border-radius:4px 12px 12px 12px;
  background:#fff;color:var(--ink);font-size:13.5px;line-height:1.55;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.fsx [dir=rtl] .fsx-bub{border-radius:12px 4px 12px 12px}

/* ========== 6. drawer 侧边抽屉 ========== */
.fsx .fsx-dt{position:relative;width:40px;padding:14px 0;display:flex;flex-direction:column;align-items:center;
  gap:10px;background:var(--c);color:#fff;box-shadow:var(--sh);pointer-events:auto;
  transition:transform .3s var(--e),opacity .2s,visibility .3s,background .2s}
.fsx-r .fsx-dt{border-radius:8px 0 0 8px}
.fsx-l .fsx-dt{border-radius:0 8px 8px 0}
.fsx .fsx-dt:hover{background:var(--c2)}
.fsx .fsx-dt svg{width:20px;height:20px}
.fsx .fsx-dt span{writing-mode:vertical-rl;font-size:13px;font-weight:600;letter-spacing:.04em;white-space:nowrap}
.fsx-drawer[data-st=open] .fsx-dt{opacity:0;visibility:hidden;transform:translateX(100%)}
.fsx-drawer.fsx-l[data-st=open] .fsx-dt{transform:translateX(-100%)}
.fsx .fsx-dp{position:absolute;top:50%;right:0;width:320px;max-width:calc(100vw - 24px);
  max-height:calc(100vh - 32px);overflow-y:auto;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.22);
  pointer-events:auto;visibility:hidden;transform:translate(calc(100% + 30px),-50%);
  transition:transform .35s var(--e),visibility .35s}
.fsx-r .fsx-dp{border-radius:12px 0 0 12px}
.fsx-l .fsx-dp{right:auto;left:0;border-radius:0 12px 12px 0;transform:translate(calc(-100% - 30px),-50%)}
.fsx-v-low .fsx-dp{top:auto;bottom:0;transform:translateX(calc(100% + 30px))}
.fsx-l.fsx-v-low .fsx-dp{transform:translateX(calc(-100% - 30px))}
.fsx-drawer[data-st=open] .fsx-dp{visibility:visible;transform:translate(0,-50%)}
.fsx-drawer.fsx-v-low[data-st=open] .fsx-dp{transform:none}

/* ========== 7. 手机 底部通栏 bar ========== */
.fsx .fsx-bb{position:relative;display:flex;background:#fff;pointer-events:auto;
  box-shadow:0 -4px 16px rgba(15,23,42,.08);padding-bottom:env(safe-area-inset-bottom)}
.fsx .fsx-bi{flex:1;min-width:0;height:56px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:3px;color:var(--ink)}
.fsx .fsx-bi svg{width:22px;height:22px;color:var(--k)}
.fsx .fsx-bi .fsx-sx{max-width:100%;padding:0 4px;font-size:11px;font-weight:600;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsx .fsx-bi:active,.fsx .fsx-bi.is-on{background:#f1f5f9}
.fsx a.fsx-bi.fsx-k-iq{flex-grow:1.4;background:var(--c);color:#fff}
.fsx .fsx-bi.fsx-k-iq svg{color:#fff}
.fsx .fsx-bi.fsx-k-iq .fsx-sx{font-size:12px;white-space:normal;text-align:center;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical}
.fsx-bar .fsx-tw{position:static;flex:1;min-width:0;display:flex}
.fsx-bar .fsx-tw > .fsx-bi{flex:1}
.fsx-bar .fsx-pop{left:8px;right:8px;bottom:calc(100% + 8px);min-width:0}
html[data-fsx-bar] body{padding-bottom:calc(56px + env(safe-area-inset-bottom))!important}
html[data-fsx-bar] #ai-chat-trigger{bottom:calc(68px + env(safe-area-inset-bottom))!important}

/* ========== 8. 手机 底部弹层 sheet ========== */
.fsx .fsx-ov{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.45);opacity:0;
  visibility:hidden;transition:opacity .25s,visibility .25s}
.fsx .fsx-sh{position:fixed;left:0;right:0;bottom:0;max-height:85vh;overflow-y:auto;background:#fff;
  border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom);visibility:hidden;
  transform:translateY(100%);box-shadow:0 -8px 30px rgba(15,23,42,.15);
  transition:transform .35s var(--e),visibility .35s}
.fsx .fsx-gr{width:40px;height:4px;border-radius:2px;background:#cbd5e1;margin:8px auto 0}
.fsx .fsx-sh .fsx-ph{padding-top:12px}
.fsx-sheet[data-st=open]{z-index:100001}
.fsx-sheet[data-st=open] .fsx-ov{opacity:1;visibility:visible;pointer-events:auto}
.fsx-sheet[data-st=open] .fsx-sh{visibility:visible;transform:none;pointer-events:auto}
.fsx-sheet[data-st=open] .fsx-launch{opacity:0;visibility:hidden}

/* ========== 9. hub 统一面板(FS_HUB_V1: AI 客服 + 人工渠道合并成一个按钮) ========== */
html[data-fsx-hub] #ai-chat-trigger{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.fsx-hub{bottom:24px}
.fsx-hub.fsx-r{right:24px}
.fsx-hub.fsx-l{left:24px}
.fsx-hub.fsx-e:not([data-ai]){display:none}
.fsx .fsx-ub{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;
  background:#ef4444;color:#fff;border:2px solid #fff;font-size:11px;font-weight:700;line-height:1;
  display:none;align-items:center;justify-content:center;pointer-events:none}
.fsx-hub[data-un] .fsx-ub{display:flex}
.fsx-hub[data-un] .fsx-dotn{display:none}
.fsx .fsx-hl{position:absolute;top:50%;right:calc(100% + 12px);height:36px;margin-top:-18px;padding:0 14px;
  display:flex;align-items:center;border-radius:18px;background:#fff;color:var(--ink);font-size:13.5px;
  font-weight:600;white-space:nowrap;box-shadow:0 6px 18px rgba(15,23,42,.14);pointer-events:none;
  opacity:0;visibility:hidden;transform:translateX(6px);transition:opacity .2s,transform .2s,visibility .2s}
.fsx-hub.fsx-l .fsx-hl{right:auto;left:calc(100% + 12px);transform:translateX(-6px)}
.fsx-hub[data-ai-open] .fsx-launch .fsx-i1{opacity:0;transform:rotate(90deg)}
.fsx-hub[data-ai-open] .fsx-launch .fsx-i2{opacity:1;transform:none}
.fsx-hub[data-ai-open] .fsx-dotn,.fsx-hub[data-ai-open] .fsx-launch::after{display:none}
.fsx .fsx-htop{position:absolute;right:8px;bottom:80px;width:44px;height:44px;border-radius:50%;
  background:#fff;color:#475569;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 16px rgba(15,23,42,.16);pointer-events:auto;
  transition:opacity .2s,visibility .2s,transform .25s var(--e)}
.fsx .fsx-htop svg{width:22px;height:22px}
.fsx .fsx-htop:hover{color:var(--ink);transform:translateY(-2px)}
.fsx-hub.fsx-l .fsx-htop{right:auto;left:8px}
.fsx-hub:not([data-sc]) .fsx-htop,.fsx-hub[data-st=open] .fsx-htop,
.fsx-hub[data-ai-open] .fsx-htop{opacity:0;visibility:hidden;transform:translateY(8px)}
.fsx .fsx-hp{position:absolute;right:0;bottom:76px;width:360px;max-width:calc(100vw - 32px);
  background:#fff;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 24px 60px rgba(15,23,42,.24),0 4px 12px rgba(15,23,42,.08);pointer-events:auto;
  transform-origin:100% 100%;transition:opacity .25s,transform .35s var(--e),visibility .35s}
.fsx-hub.fsx-l .fsx-hp{right:auto;left:0;transform-origin:0 100%}
.fsx-hub[data-st=fold] .fsx-hp{opacity:0;visibility:hidden;transform:translateY(12px) scale(.96)}
.fsx .fsx-hh{flex-shrink:0;padding:18px 16px 18px 20px}
.fsx .fsx-hb{background:#f6f7f9;padding:16px;overflow-y:auto;max-height:calc(100vh - 224px)}
.fsx .fsx-ai{width:100%;display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;
  text-align:left;background:linear-gradient(135deg,#fff,var(--c3,#f1f5f9));border:1px solid var(--c4,#e2e8f0);
  box-shadow:0 1px 2px rgba(15,23,42,.05);transition:transform .2s var(--e),box-shadow .2s}
.fsx .fsx-ai:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,23,42,.1)}
.fsx [dir=rtl] .fsx-ai{text-align:right}
.fsx .fsx-aav{position:relative;width:48px;height:48px;flex-shrink:0}
.fsx .fsx-aim{width:48px;height:48px;border-radius:50%;overflow:hidden;display:flex;align-items:center;
  justify-content:center;color:#fff;background:linear-gradient(135deg,var(--c),var(--c2))}
.fsx .fsx-aim img{width:100%;height:100%;max-width:none;object-fit:cover;display:block}
.fsx .fsx-aim svg{width:24px;height:24px}
.fsx .fsx-aav i{position:absolute;right:1px;bottom:1px;width:12px;height:12px;border-radius:50%;
  background:#22c55e;border:2px solid #fff}
.fsx .fsx-ai .fsx-rt b{font-size:15px}
.fsx .fsx-ago{flex-shrink:0;height:32px;padding:0 14px;border-radius:16px;background:var(--c);color:#fff;
  font-size:13px;font-weight:600;display:flex;align-items:center;white-space:nowrap;transition:background .2s}
.fsx .fsx-ai:hover .fsx-ago{background:var(--c2)}
.fsx .fsx-hd{display:flex;align-items:center;gap:10px;margin:16px 2px 12px;color:var(--mut);font-size:12px}
.fsx .fsx-hd::before,.fsx .fsx-hd::after{content:"";flex:1;height:1px;background:#e2e8f0}
.fsx .fsx-hd span{white-space:nowrap}
.fsx .fsx-hd + .fsx-cta{margin-top:0}
.fsx-hub:not([data-ai]) .fsx-ai,.fsx-hub:not([data-ai]) .fsx-hd{display:none}
.fsx-hub:not([data-ai]) .fsx-hd + .fsx-cta{margin-top:0}
.fsx .fsx-hb .fsx-row{background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.fsx .fsx-hb .fsx-row:hover{box-shadow:0 4px 14px rgba(15,23,42,.1)}

/* ---------- 悬停提示(仅电脑) ---------- */
@media(hover:hover) and (min-width:769px){
  .fsx .fsx-tl:hover .fsx-lb,.fsx .fsx-tl:focus-visible .fsx-lb,
  .fsx .fsx-dot:hover .fsx-tip,.fsx .fsx-dot:focus-visible .fsx-tip{opacity:1;visibility:visible;transform:none}
  .fsx-hub[data-st=fold]:not([data-ai-open]) .fsx-launch:hover .fsx-hl{opacity:1;visibility:visible;transform:none}
}
.fsx .fsx-tl.is-on .fsx-lb,.fsx .fsx-dot.is-on .fsx-tip{opacity:0!important;visibility:hidden!important}

/* ---------- 手机 ≤768 ---------- */
@media(max-width:768px){
  .fsx-card,.fsx-stack,.fsx-sheet{bottom:var(--b,16px)}
  .fsx-card.fsx-r,.fsx-stack.fsx-r,.fsx-sheet.fsx-r{right:var(--r,16px)}
  .fsx-card.fsx-l,.fsx-stack.fsx-l,.fsx-sheet.fsx-l{left:var(--r,16px)}
  .fsx-rail.fsx-v-low,.fsx-dots.fsx-v-low,.fsx-drawer.fsx-v-low{bottom:var(--b,16px)}
  .fsx .fsx-launch{width:54px;height:54px}
  .fsx .fsx-launch svg{width:24px;height:24px}
  .fsx .fsx-rl{padding:4px}
  .fsx .fsx-tl{width:44px;height:44px}
  .fsx .fsx-tl svg{width:20px;height:20px}
  .fsx .fsx-rf{width:44px}
  .fsx .fsx-lb,.fsx .fsx-tip{display:none}
  .fsx .fsx-tab{width:26px;height:64px;top:calc(50% - 32px)}
  .fsx-dots.fsx-r{right:var(--r,12px)}
  .fsx-dots.fsx-l{left:var(--r,12px)}
  .fsx .fsx-dot{width:44px;height:44px}
  .fsx-dots .fsx-launch{width:50px;height:50px;top:calc(50% - 25px)}
  .fsx .fsx-dt{width:34px;padding:12px 0}
  .fsx .fsx-cd{width:calc(100vw - 32px)}
  .fsx .fsx-cb{max-height:calc(100vh - 204px - var(--b,16px))}
  .fsx .fsx-sl{margin:0 5px 12px}
  .fsx .fsx-sc .fsx-ico{width:44px;height:44px}
  .fsx .fsx-st{max-width:calc(100vw - 110px)}
  .fsx .fsx-pop{min-width:220px;max-width:calc(100vw - 90px)}
}

/* ---------- hub 统一面板 手机 ≤768: 底部半屏弹层 ---------- */
@media(max-width:768px){
  .fsx-hub{bottom:16px}
  .fsx-hub.fsx-r{right:16px}
  .fsx-hub.fsx-l{left:16px}
  .fsx .fsx-hl{display:none}
  .fsx .fsx-htop{width:40px;height:40px;right:7px;bottom:74px}
  .fsx-hub.fsx-l .fsx-htop{right:auto;left:7px}
  .fsx .fsx-hp{position:fixed;left:0;right:0;bottom:0;width:auto;max-width:none;max-height:85vh;
    border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);transform-origin:50% 100%}
  .fsx-hub.fsx-l .fsx-hp{left:0;right:0}
  .fsx-hub[data-st=fold] .fsx-hp{opacity:1;transform:translateY(100%)}
  .fsx-hub[data-st=open] .fsx-hp{transform:none}
  .fsx .fsx-hb{flex:1;min-height:0;max-height:none}
  .fsx-hub[data-st=open]{z-index:100001}
  .fsx-hub[data-st=open] .fsx-ov{opacity:1;visibility:visible;pointer-events:auto}
  .fsx-hub[data-st=open] .fsx-launch{opacity:0;visibility:hidden}
  .fsx .fsx-hh{position:relative;padding-top:24px}
  .fsx .fsx-hh .fsx-gr{position:absolute;top:8px;left:50%;margin:0 0 0 -20px;background:rgba(255,255,255,.6)}
  .fsx .fsx-ago{padding:0 12px}
}

/* ---------- 减少动效 / 首次渲染不播过渡 ---------- */
.fsx-ni,.fsx-ni *{transition:none!important}
@media(prefers-reduced-motion:reduce){
  .fsx,.fsx *,.fsx *::after{transition:none!important;animation:none!important}
}
/* FSX_V1_END */
