/* 
* 客服小部件样式
* 此文件定义了客服图标和二维码弹窗的样式
*/

/* 客服图标容器 - 固定在页面右侧 */
.customer-service-widget {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 客服图标按钮样式 */
.cs-icon-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--blue-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.cs-icon-btn:hover {
  transform: scale(1.05);
  background-color: var(--blue-700);
}

.cs-icon-btn i {
  font-size: 24px;
}

/* 二维码弹窗容器 */
.cs-qrcode-container {
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  align-items: center;
  width: 200px;
  transition: all 0.3s ease;
  transform-origin: bottom right;
}

/* 显示二维码弹窗时的样式 */
.cs-qrcode-container.active {
  display: flex;
  animation: popup 0.3s ease;
}

/* 二维码图片样式 */
.cs-qrcode-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 二维码标题样式 */
.cs-qrcode-title {
  color: #333;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* 关闭按钮样式 */
.cs-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-close-btn:hover {
  color: #333;
}

/* 弹出动画 */
@keyframes popup {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .customer-service-widget {
    right: 15px;
    bottom: 80px;
  }

  .cs-icon-btn {
    width: 50px;
    height: 50px;
  }

  .cs-icon-btn i {
    font-size: 20px;
  }

  .cs-qrcode-container {
    width: 180px;
  }
}

