/* ============================================================
   右侧悬浮快捷入口（客服中心 · 公众号 · 电话 · 返回顶部）
   2026-11-16 新建 · 参考截图（白卡竖排 / 图标在上文字在下 / 深蓝）
   作用域 .sb —— 全站唯一实现，挂在 view/common/site_float.html
   昼夜双皮肤：html[data-theme="dark"] 与 body.night
   ============================================================ */
.sb{position:fixed;right:20px;top:50%;transform:translateY(-50%);z-index:88;
  width:78px;background:#fff;border:1px solid #E5E6EB;border-radius:4px;
  box-shadow:0 2px 10px rgba(16,28,55,.10);overflow:hidden;
  font-family:inherit;-webkit-tap-highlight-color:transparent}
.sb-i{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  height:62px;border:0;border-bottom:1px solid #EDEEF0;background:transparent;
  color:#3A4048;text-decoration:none;cursor:pointer;padding:0;margin:0;width:100%;
  transition:background .15s ease;-webkit-appearance:none;appearance:none;font-family:inherit}
.sb-i:last-child{border-bottom:0}
.sb-i:hover{background:rgba(18,87,165,.055)}
.sb-i:active{background:rgba(18,87,165,.10)}
.sb-ic{width:24px;height:24px;display:block;color:#1257A5;flex:none}
.sb-ic svg{width:24px;height:24px;display:block}
.sb-tx{font-size:12px;line-height:1.15;letter-spacing:.2px;color:#3A4048;white-space:nowrap}

/* 主推格：客服中心 */
.sb-hero{height:66px;background:#1257A5;border-bottom-color:transparent}
.sb-hero .sb-tx{color:#fff;font-weight:600;font-size:12.5px}
.sb-hero .sb-ic{color:#fff}
.sb-hero:hover{background:#0E4787}
.sb-hero:active{background:#0B3A6E}

/* 返回顶部：圆形实心 */
.sb-top .sb-ic{width:26px;height:26px}
.sb-top .sb-ic svg{width:26px;height:26px}
.sb-top .sb-cir{fill:#1257A5}
.sb-top .sb-arr{stroke:#fff}

/* 微信二维码浮层 */
.sb-pop{position:fixed;right:calc(20px + 78px + 12px);top:50%;transform:translateY(-50%);
  z-index:89;width:212px;background:#fff;border:1px solid #E5E6EB;border-radius:10px;
  box-shadow:0 14px 36px rgba(16,28,55,.16),0 2px 8px rgba(16,28,55,.06);
  padding:14px 14px 12px;text-align:center;display:none}
.sb-pop.on{display:block}
.sb-pop::after{content:"";position:absolute;right:-6px;top:50%;margin-top:-6px;width:10px;height:10px;
  background:#fff;border-right:1px solid #E5E6EB;border-top:1px solid #E5E6EB;transform:rotate(45deg)}
.sb-pop img{display:block;width:150px;height:150px;object-fit:contain;margin:0 auto 8px;
  border-radius:6px;background:#fff}
.sb-pop b{display:block;font-size:12.5px;color:#1F2B33;font-weight:600;letter-spacing:.2px}
.sb-pop span{display:block;font-size:11.5px;color:#87909A;margin-top:3px;line-height:1.5}

/* —— 夜间 —— */
html[data-theme="dark"] .sb,
body.night .sb{background:#1E2024;border-color:#3A3D42;box-shadow:0 2px 12px rgba(0,0,0,.42)}
html[data-theme="dark"] .sb-i,
body.night .sb-i{color:#D8DBE0;border-bottom-color:#313338}
html[data-theme="dark"] .sb-i:hover,
body.night .sb-i:hover{background:rgba(94,168,232,.10)}
html[data-theme="dark"] .sb-tx,
body.night .sb-tx{color:#D8DBE0}
html[data-theme="dark"] .sb-ic,
body.night .sb-ic{color:#5EA8E8}
html[data-theme="dark"] .sb-hero,
body.night .sb-hero{background:#1B5A88;border-bottom-color:transparent}
html[data-theme="dark"] .sb-hero:hover,
body.night .sb-hero:hover{background:#2270A8}
html[data-theme="dark"] .sb-hero .sb-tx,
body.night .sb-hero .sb-tx,
html[data-theme="dark"] .sb-hero .sb-ic,
body.night .sb-hero .sb-ic{color:#fff}
html[data-theme="dark"] .sb-top .sb-cir,
body.night .sb-top .sb-cir{fill:#5EA8E8}
html[data-theme="dark"] .sb-top .sb-arr,
body.night .sb-top .sb-arr{stroke:#14232B}
html[data-theme="dark"] .sb-pop,
body.night .sb-pop{background:#1E2024;border-color:#3A3D42;box-shadow:0 14px 36px rgba(0,0,0,.5)}
html[data-theme="dark"] .sb-pop::after,
body.night .sb-pop::after{background:#1E2024;border-color:#3A3D42}
html[data-theme="dark"] .sb-pop b,
body.night .sb-pop b{color:#E9EEF4}
html[data-theme="dark"] .sb-pop span,
body.night .sb-pop span{color:#98A0AB}

/* —— 窄屏：只留图标 —— */
@media (max-width:1100px){
  .sb{width:46px}
  .sb-i{height:44px;gap:0}
  .sb-hero{height:46px}
  .sb-tx{display:none}
  .sb-ic{width:22px;height:22px}
  .sb-ic svg{width:22px;height:22px}
  .sb-top .sb-ic,.sb-top .sb-ic svg{width:24px;height:24px}
  .sb-pop{right:calc(20px + 46px + 10px);width:196px}
  .sb-pop img{width:132px;height:132px}
}
@media (max-width:640px){
  .sb{right:10px;width:44px;top:auto;bottom:80px;transform:none}
  .sb-i{height:42px}
  .sb-hero{height:44px}
  .sb-pop{right:10px;left:auto;top:auto;bottom:80px;transform:none;width:190px}
  .sb-pop::after{display:none}
}
/* 客服中心页自身不显示（避免自己链自己） */
body.sb-off .sb,body.sb-off .sb-pop{display:none}
/* 打印不出现 */
@media print{ .sb,.sb-pop{display:none!important} }
