body {
  font-family: "Microsoft YaHei", sans-serif;
  height: 200vh;
  background: #f7f8fa;
  margin: 0;
  padding: 0;
}

/* 右侧悬浮容器 */
.float-container {
  position: fixed;
  right: 20px;
  bottom: 200px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 7000;
  align-items: center;
}

/* === 咨询组容器 (那个圈/背景块) === */
.consult-group {
  display: flex;
  background: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
  backdrop-filter: blur(10px); /* 毛玻璃效果，关键美观点 */
  border-radius: 25px; /* 大圆角，看起来像胶囊 */
  padding: 6px 8px; /* 内边距，控制高度 */
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  gap: 8px; /* 组内按钮间距 */
  display: flex;
  flex-direction: column;
  flex-wrap: wrap; /* 允许换行，屏幕窄时会变成两行 */
  justify-content: center;
}

/* 通用按钮样式 */
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px; /* 圆角矩形，比完全圆形更现代 */
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #333;
  text-decoration: none;
  border: none;
  font-size: 0; /* 隐藏默认文字，防止抖动 */
}

.float-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.float-btn i {
  font-size: 24px;
}

/* === 按钮颜色定义 === */
/* 咨询类按钮使用柔和的单色 */
.btn-ai {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.btn-wechat {
  background: #f6ffed;
  color: #52c41a;
}
.btn-phone {
  background: #fff7e6;
  color: #fa8c16;
}
.btn-qq {
  background: #e6f7ff;
  color: #1890ff;
}
.btn-ticket {
  background: #f9f0ff;
  color: #722ed1;
}

/* 返回顶部按钮样式 */
.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #333;
  text-decoration: none;
  border: none;
  font-size: 0;
  position: fixed;
  right: 27px;
  bottom: 140px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.back-to-top i {
  font-size: 24px;
}

/* 创建提示框 */
.tooltip-box::after {
  content: attr(data-tooltip); /* 获取 data-tooltip 的内容 */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  right: 100%;
  margin-right: 3px;
  padding: 5px 10px;
  background-color: #fff;
  color: #333;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

/* 鼠标悬停时显示 */
.tooltip-box:hover::after {
  opacity: 1;
  visibility: visible;
  /* 这里没有 transition-delay，所以会立即显示 */
}

/* 咨询菜单 - 美化核心 */
.consult-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 10000;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* .consult-menu-wechat {
        padding-left: 100px;
        box-sizing: border-box;
      } */

.consult-menu-phone {
  width: 290px;
  padding-left: 100px;
}

.phone_img {
  position: absolute;
  top: calc((100% - 200px) / 2);
  left: -100px;
  width: 200px;
  height: 200px;
  /* 右下角添加阴影 */
  box-shadow: 4px 4px 10px rgba(67, 141, 238, 0.5);
  border-radius: 100%;
}

.menu-item {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  border: none;
  outline: none;
}

.consult-menu-wechat .menu-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-item i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.menu-item .menu_head {
  margin-bottom: 10px;
}

.menu_title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.menu-item .menu_text {
  text-indent: 35px;
  margin-bottom: 5px;
  font-size: 22px;
  color: #f95801;
  font-weight: bold;
}

.menu-item .menu_text >a {
  text-decoration: none;
  color: #f95801;
}

.phone_num {
  color: #f95801;
}

.menu_tips_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.menu_tips_item {
  background-color: #eef7fe;
  border-radius: 15px;
  padding: 5px 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.menu_tips_item > i {
  margin-right: 5px;
}

.menu_tips_item:hover {
  box-shadow: 0 3px 5px rgba(170, 170, 170, 0.12);
}

/* 微信二维码卡片 */
.qr-code-box {
  width: 150px;
  height: 150px;
}
.qr-code-img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* AI 聊天窗口 */
.ai-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
}
.ai-chat-window {
  position: absolute;
  bottom: -180px;
  right: 10px;
  width: 550px;
  height: 580px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10001;
}
.ai-active .ai-chat-window {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.close-AI-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 鼠标移入 按钮旋转 */
.close-AI-btn:hover {
  transform: rotate(180deg) scale(1.1);
}



.ai-body {
  flex: 1;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
