/* 联系侧边栏样式 */
.contact-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: row;
}

/* QR码容器 */
.contact-sidebar-qr {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  padding: 20px;
  border-radius: 10px 0 0 10px;
  text-align: center;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  max-width: 200px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.contact-sidebar:hover .contact-sidebar-qr {
  transform: translateX(0);
}

.qr-container {
  width: 100%;
}

.qr-container h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.qr-container h4 {
  font-size: 18px;
  color: rgb(255, 166, 50);
}

.qr-container p {
  font-size: 14px;
  margin-bottom: 15px;
}

.qr-container img {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  border: 4px solid #fff;
  border-radius: 5px;
}

.qr-caption {
  font-size: 12px !important;
  opacity: 0.8;
}

/* 按钮容器 */
.contact-sidebar-buttons {
  display: flex;
  flex-direction: column;
}

.sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #fff;
  text-align: center;
  transition: all 0.3s ease;
}

.sidebar-btn i {
  font-size: 20px;
  margin-bottom: 5px;
}

.sidebar-btn span {
  font-size: 12px;
}

.wechat-btn {
  background-color: #09bb07;
}

.price-btn {
  background-color: #7b68ee;
}

.phone-btn {
  background-color: #ff6b6b;
}

.top-btn {
  background-color: #4a4a4a;
}

.sidebar-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .contact-sidebar-qr {
    position: absolute;
    transform: translateX(100%);
    transform: translateY(100%);
    border-radius: 0;
    z-index: -1;
  }

  .contact-sidebar:hover .contact-sidebar-qr,
  .contact-sidebar .contact-sidebar-qr.active {
    transform: translateX(0%);
    transform: translateY(-100%);
  }

  .sidebar-btn {
    width: 50px;
    height: 50px;
  }

  .sidebar-btn i {
    font-size: 18px;
  }

  .sidebar-btn span {
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .contact-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
  }

  .contact-sidebar-buttons {
    flex-direction: row;
    width: 100%;
  }

  .sidebar-btn {
    flex: 1;
  }
}
