/* 企业微信客服组件样式 */

.floating-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.keFuBtn {
  width: 60px;
  height: 60px;
  background: #0da692;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 166, 146, 0.3);
  transition: all 0.3s ease;
  border: none;
  outline: none;
  position: relative;
}

.keFuBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 166, 146, 0.4);
}

.keFuBtn-icon {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.keFuBtn-tip {
  position: absolute;
  right: 75px;
  background: #fff;
  color: #333;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.keFuBtn-tip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}

.keFuBtn:hover .keFuBtn-tip {
  opacity: 1;
  visibility: visible;
}

/* 回到顶部按钮 */
.back-to-top-btn {
  width: 60px;
  height: 60px;
  background: #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  outline: none;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #555;
}

.back-to-top-icon {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.back-to-top-tip {
  position: absolute;
  right: 75px;
  background: #fff;
  color: #333;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top-tip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}

.back-to-top-btn:hover .back-to-top-tip {
  opacity: 1;
  visibility: visible;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .floating-container {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .keFuBtn,
  .back-to-top-btn {
    width: 54px;
    height: 54px;
  }

  .keFuBtn-icon,
  .back-to-top-icon {
    width: 28px;
    height: 28px;
  }

  .keFuBtn-tip,
  .back-to-top-tip {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-container {
    bottom: 16px;
    right: 16px;
  }

  .keFuBtn,
  .back-to-top-btn {
    width: 50px;
    height: 50px;
  }
}
