.adaptive-nav {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 10px;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 9999;
}

/* 按钮外层容器 */
.nav-btn {
  position: relative;
  background: #4e3adf;
  color: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: background 0.3s;
  text-decoration: none;
}
.nav-btn:hover {
  color: #fff;               /* 防止变蓝 */
}
/* 图标固定在中间 */
.nav-btn i {
  font-size: 18px;
  z-index: 2;
}

/* 文字部分，初始隐藏在左侧 */
.nav-btn span {
  position: absolute;
  right: 100%;
  white-space: nowrap;
  background: #4e3adf;
  padding: 6px 10px;
  margin-right: -5px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border-radius: 25px 0px 0px 25px;
  pointer-events: none;
}

/* 悬停时文字展开 */
.nav-btn:hover span {
  color: #fff;
  opacity: 1;
  transform: translateX(0);
}

/* 移动端保持底部导航风格 */
@media (max-width: 768px) {
  body {
    padding-bottom: 30px; /* 留出底部导航高度 */
  }
  .adaptive-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    border-radius: 0;
    background: #fff;
    padding: 5px 0;
  }

  .nav-btn {
    flex-direction: column;
    width: auto;
    height: auto;
    padding: 5px;
    background: none !important;  /* 去掉背景色 */
    box-shadow: none;
  }

  .nav-btn i {
    color: #000 !important;  /* 图标变黑色 */
    margin: 0;
  }

  .nav-btn span {
    position: static;
    opacity: 1;
    transform: none;
    margin: 0;
    padding: 0;
    background: none;
    font-size: 12px;
    pointer-events: auto;
    color: #000;
  }
}
.ab1ac9d9bab12da47298 {
  background-image: url('https://img.picui.cn/free/2025/05/19/682ab25357b82.png');
  background-size: 90% 90%;
  background-repeat: no-repeat;
  background-position: center;
  position: fixed !important;
  top: 65%;     /* 距离顶部 300px，根据你菜单位置自行调整 */
  right: 10px !important;    /* 靠右 20px */
  z-index: 1000;
}
.ab1ac9d9bab12da47298::after {
  content: "Hi，我是AI客服";
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4e3adf;
  color: white;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: fadeOut 8s forwards;
  z-index: 9999;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

.ab1ac9d9bab12da47298 > img {
  display: none !important; /* 隐藏原图标 */
}