/* 悬浮侧栏那一竖排（电话 / 微信 / 回到顶部）
   前台 views/partials/float-sidebar.php 与后台预览「广告与展示 › 悬浮侧栏」共用这一张表
   ——站点最新要求 92：预览要按前台同一副尺寸画、指上去要真能弹出号码与二维码，
     样式再留在页内 <style> 里就只有前台拿得到，预览只能画个假框写一句话（要求 87：样式一律进 .css）。
   只有「按 pos / pos_x / pos_y 算出来的停靠定位」留在元素的 style 属性上——那是数据不是样式。 */
.hgts-floatbar { position: fixed; z-index: 9000; display: flex; flex-direction: column; gap: 6px; }
.hgts-fb-item { position: relative; width: 52px; height: 52px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; cursor: default; border: none; padding: 0; }
.hgts-fb-item .fb-ico { font-size: 18px; line-height: 1; }
.hgts-fb-item .fb-txt { font-size: 10px; line-height: 1; margin-top: 3px; }
/* 圆角只留靠屏幕外那一侧：靠右停靠时左边圆、靠左停靠时右边圆 */
.hgts-floatbar.is-right .hgts-fb-item { border-radius: 8px 0 0 8px; }
.hgts-floatbar.is-left .hgts-fb-item { border-radius: 0 8px 8px 0; }
/* 三颗按钮的底色（后台预览里克隆的就是这几条，颜色不会再和前台对不上） */
.hgts-fb-item.fb-tel { background: #ff7a1a; }
.hgts-fb-item.fb-wx { background: #22c55e; }
.hgts-fb-item.fb-top { background: #0a7e93; display: none; }
.hgts-fb-item.fb-top.is-on { display: flex; }
/* 悬停面板：朝屏幕内侧展开（靠右停靠就往左开） */
.hgts-fb-pop { display: none; position: absolute; top: 50%; transform: translateY(-50%); margin: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
  padding: 12px; white-space: nowrap; }
/* 带二维码的面板按内容收边：二维码那张多大、面板就多宽（尺寸由后台标签上填的数走 --fbq，见下面 .hgts-fb-qr） */
.hgts-fb-pop.is-qr { white-space: normal; }
.hgts-floatbar.is-right .hgts-fb-pop { right: 100%; }
.hgts-floatbar.is-left .hgts-fb-pop { left: 100%; }
.hgts-fb-item:hover .hgts-fb-pop, .hgts-fb-item:focus-within .hgts-fb-pop, .hgts-fb-item.fb-open .hgts-fb-pop { display: block; }
.hgts-fb-tel { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 3px 0; }
.hgts-fb-tel .tl { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.hgts-fb-tel a { font-size: 13px; font-weight: 600; color: #ff7a1a; }
.hgts-fb-tel .tv { font-size: 13px; font-weight: 600; color: #334155; overflow: hidden; text-overflow: ellipsis; }
/* 二维码显示尺寸：默认 126，后台那条标签填了尺寸就走元素上的 --fbq（填的是数据，所以留在 style 上） */
.hgts-fb-qr { display: flex; width: var(--fbq, 126px); height: var(--fbq, 126px); margin: 0 auto 6px; background: #fff;
  align-items: center; justify-content: center; border: 1px solid #eee; border-radius: 6px; }
.hgts-fb-qr img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hgts-fb-qr-cap { font-size: 11px; color: #64748b; text-align: center; margin-bottom: 6px; }
.hgts-fb-qr-cap:last-child { margin-bottom: 0; }
