/* 固定在右下角的联系组件样式 */
.fixed-contact-widget {
  position: fixed;
  bottom: 120px;
  right: 30px;
  z-index: 9999;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  pointer-events: auto;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: white;
}

.phone-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.phone-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.wechat-btn {
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: white;
}

.wechat-btn:hover {
  background: linear-gradient(135deg, #06ad56, #059a4c);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

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

/* 弹窗样式 */
.phone-popup,
.wechat-popup {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 20px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  z-index: 10000;
}

.phone-popup::before,
.wechat-popup::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.phone-popup::after,
.wechat-popup::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid #e9ecef;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* 显示弹窗 */
.contact-btn:hover .phone-popup,
.contact-btn:hover .wechat-popup {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* 电话弹窗内容 */
.phone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.phone-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.phone-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.phone-number {
  font-size: 14px;
  color: #007bff;
  font-weight: 600;
}

/* 微信弹窗内容 */
.wechat-popup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-code {
  width: 111px;
  height: 111px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.qr-tip {
  text-align: center;
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .fixed-contact-widget {
    bottom: 100px;
    right: 20px;
  }
  
  .contact-btn {
    width: 50px;
    height: 50px;
  }
  
  .contact-btn i {
    font-size: 20px;
  }
  
  .phone-popup,
  .wechat-popup {
    right: 60px;
    min-width: 180px;
    padding: 15px;
  }
  
  .contact-btn:hover .phone-popup,
  .contact-btn:hover .wechat-popup {
    right: 65px;
  }
  
  .qr-code {
    width: 90px;
    height: 90px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-popup,
.wechat-popup {
  animation: fadeInUp 0.3s ease;
}

/* 确保组件始终可见 */
.fixed-contact-widget {
  position: fixed !important;
  bottom: 120px !important;
  right: 30px !important;
  z-index: 9999 !important;
}

