/* ==========================================================================
   腾昕新能源官网 - 侧边悬浮客服样式
   由 includes/float-service.php 输出对应 DOM，显示与否由后台设置控制
   ========================================================================== */
#jaFloatService {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

#jaFloatService .ja-fs-item {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: #0b1f3a;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(11, 31, 58, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

#jaFloatService .ja-fs-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 31, 58, .28);
}

#jaFloatService .ja-fs-item .ja-fs-ico {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#jaFloatService .ja-fs-item .ja-fs-ico svg {
  width: 25px;
  height: 25px;
  display: block;
}

/* 悬停提示气泡（左侧弹出） */
#jaFloatService .ja-fs-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: #0b1f3a;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(11, 31, 58, .25);
  transition: opacity .22s ease, transform .22s ease;
}

#jaFloatService .ja-fs-item:hover .ja-fs-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

#jaFloatService .ja-fs-tip:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #0b1f3a;
}

/* 微信二维码弹层 */
#jaFloatService .ja-fs-qr {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(11, 31, 58, .24);
  padding: 12px;
  text-align: center;
  transition: opacity .22s ease, transform .22s ease;
}

#jaFloatService .ja-fs-item:hover .ja-fs-qr {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

#jaFloatService .ja-fs-qr img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
}

#jaFloatService .ja-fs-qr span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #0b1f3a;
}

/* 回到顶部：深色底 */
#jaFloatService .ja-fs-top {
  background: #0b1f3a;
  color: #fff;
}

/* 入场动画 */
@keyframes jaFsIn {
  from { opacity: 0; transform: translateY(-50%) translateX(20px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
#jaFloatService { animation: jaFsIn .45s ease both; }

/* 移动端适配 */
@media (max-width: 768px) {
  #jaFloatService { right: 8px; gap: 8px; }
  #jaFloatService .ja-fs-item { width: 42px; height: 42px; }
  #jaFloatService .ja-fs-item .ja-fs-ico svg { width: 21px; height: 21px; }
  #jaFloatService .ja-fs-tip { font-size: 12px; padding: 7px 11px; }
  #jaFloatService .ja-fs-qr img { width: 108px; height: 108px; }
}
