.floating-whatsapp {
    display: block;
}
.floating-whatsapp img {
    width: 100%;
}
.floating-whatsapp {
    position: fixed;
    width: 25px;
    bottom: 230px;
    right: 0px;
    z-index: 1;
}
.floating-call img {
    width: 100%;
}
.floating-call {
    position: fixed;
    width: 25px;
    bottom: 140px;
    right: 0px;
    z-index: 1;
}
.floating-partner1 {
  position: fixed;
  width: 150px;
  bottom: 390px;  /* 比 whatsapp 高一些 */
  right: -65px;
  z-index: 1;
  animation: bounce 2s infinite;
}

.floating-tips {
  position: fixed;
  width: 25px;
  bottom: 320px;   /* call 是 140px，避免重叠 */
  right: 50px;
  z-index: 1;
  animation: bounce 2s infinite;
}
.floating-tips2 {
  position: fixed;
  width: 30px;
  bottom: 475px;   /* 最高 */
  right: 53px;
  z-index: 1;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.floating-tips img {
    width: 300%;
}
.floating-tips2 img {
    width: 300%;
}
.floating-partner1 img {
    width: 60%;
}
.pulse-left-button {
    position: fixed;
    left: 0px;
    bottom: 180px;
    width: 60px;
    z-index: 1;
    animation: pulse 2s infinite;
}

.pulse-left-button img {
    width: 150%;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========================
   浮动按钮容器
======================== */

#floating-wheel-btn{
  position: fixed !important;
  left: 8px;
  bottom: 115px;
  z-index: 9998;
}


/* ========================
   关闭按钮
======================== */

.floating-widget-close{
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
  z-index: 10;
}

.floating-widget-close:hover{
  background: rgba(0,0,0,1);
  transform: scale(1.12);
}

/* ========================
   主按钮
======================== */

.floating-wheel-trigger{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  outline: none;
  transition: transform .2s ease, opacity .2s ease;
}

.floating-wheel-trigger:hover{
  opacity: .95;
  transform: scale(1.04);
}

.floating-wheel-trigger:active{
  transform: scale(.96);
}


/* ========================
   菜单容器
======================== */

.floating-menu{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  pointer-events: none;
}


/* ========================
   菜单按钮
======================== */

.floating-menu-item{
  position: absolute;
  left: 50%;
  top: 50%;

  display: flex;
  align-items: center;

  min-width: 165px;
  padding: 8px 15px;

  background: rgba(30, 41, 59, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;

  text-decoration: none;
  color: #f8fafc;
  white-space: nowrap;
  cursor: pointer;

  box-shadow: 0 8px 24px rgba(0,0,0,.32);

  transform: translate(-50%, -50%) scale(.55);
  opacity: 0;
  pointer-events: none;

  transition:
    transform .38s cubic-bezier(.175,.885,.32,1.18),
    opacity .25s ease,
    background .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}


/* 错落延迟 */
.floating-menu-item[data-position="1"]{ transition-delay: .02s; }
.floating-menu-item[data-position="2"]{ transition-delay: .05s; }
.floating-menu-item[data-position="3"]{ transition-delay: .08s; }
.floating-menu-item[data-position="4"]{ transition-delay: .11s; }


/* ========================
   打开时
======================== */

.floating-menu.open .floating-menu-item{
  opacity: 1;
  pointer-events: auto;
}


/* ========================
   展开位置（只改位置）
======================== */

.floating-menu.open .floating-menu-item[data-position="1"]{
  transform: translate(calc(-50% + 190px), calc(-50% - 110px)) scale(1);
}

.floating-menu.open .floating-menu-item[data-position="2"]{
  transform: translate(calc(-50% + 240px), calc(-50% - 55px)) scale(1);
}

.floating-menu.open .floating-menu-item[data-position="3"]{
  transform: translate(calc(-50% + 250px), calc(-50% + 5px)) scale(1);
}

.floating-menu.open .floating-menu-item[data-position="4"]{
  transform: translate(calc(-50% + 225px), calc(-50% + 65px)) scale(1);
}


/* ========================
   Hover
======================== */

.floating-menu-item:hover{
  background: rgba(45, 58, 80, 0.94);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
}

.floating-menu.open .floating-menu-item[data-position="1"]:hover{
  transform: translate(calc(-50% + 196px), calc(-50% - 114px)) scale(1.04);
}

.floating-menu.open .floating-menu-item[data-position="2"]:hover{
  transform: translate(calc(-50% + 246px), calc(-50% - 57px)) scale(1.04);
}

.floating-menu.open .floating-menu-item[data-position="3"]:hover{
  transform: translate(calc(-50% + 256px), calc(-50% + 5px)) scale(1.04);
}

.floating-menu.open .floating-menu-item[data-position="4"]:hover{
  transform: translate(calc(-50% + 231px), calc(-50% + 69px)) scale(1.04);
}


/* ========================
   Icon
======================== */

.menu-icon{
  width: 31px;
  height: 31px;
  background: rgba(255,255,255,.96);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 11px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.menu-icon img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}


/* ========================
   文字
======================== */

.menu-label{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}


/* ========================
   移动端优化
======================== */

@media (max-width: 768px){

  #floating-wheel-btn{
    left: 6px;
    bottom: 105px;
  }

  .floating-menu-item{
    min-width: 155px;
    padding: 8px 14px;
  }

  .menu-icon{
    width: 29px;
    height: 29px;
    margin-right: 10px;
  }

  .menu-icon img{
    width: 18px;
    height: 18px;
  }

  .menu-label{
    font-size: 12px;
  }

  .floating-menu.open .floating-menu-item[data-position="1"]{
    transform: translate(calc(-50% + 170px), calc(-50% - 102px)) scale(1);
  }

  .floating-menu.open .floating-menu-item[data-position="2"]{
    transform: translate(calc(-50% + 214px), calc(-50% - 50px)) scale(1);
  }

  .floating-menu.open .floating-menu-item[data-position="3"]{
    transform: translate(calc(-50% + 223px), calc(-50% + 6px)) scale(1);
  }

  .floating-menu.open .floating-menu-item[data-position="4"]{
    transform: translate(calc(-50% + 200px), calc(-50% + 60px)) scale(1);
  }

  .floating-menu.open .floating-menu-item[data-position="1"]:hover{
    transform: translate(calc(-50% + 174px), calc(-50% - 106px)) scale(1.03);
  }

  .floating-menu.open .floating-menu-item[data-position="2"]:hover{
    transform: translate(calc(-50% + 218px), calc(-50% - 52px)) scale(1.03);
  }

  .floating-menu.open .floating-menu-item[data-position="3"]:hover{
    transform: translate(calc(-50% + 227px), calc(-50% + 6px)) scale(1.03);
  }

  .floating-menu.open .floating-menu-item[data-position="4"]:hover{
    transform: translate(calc(-50% + 204px), calc(-50% + 64px)) scale(1.03);
  }
}