/* ========================================
   SmartStor 在线咨询组件
   版本: 1.0.0
   更新: 2026-03-08
   ======================================== */

/* 浮动咨询按钮 */
.ss-contact-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.ss-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: white;
}

.ss-contact-btn--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ss-contact-btn--wechat {
  background: linear-gradient(135deg, #09bb07 0%, #06a305 100%);
}

.ss-contact-btn--qq {
  background: linear-gradient(135deg, #12b7f5 0%, #0e9ad6 100%);
}

.ss-contact-btn--phone {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 提示标签 */
.ss-contact-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.ss-contact-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.8);
}

.ss-contact-btn:hover .ss-contact-tooltip {
  opacity: 1;
  visibility: visible;
}

/* 二维码弹窗 */
.ss-qrcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ss-qrcode-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.ss-qrcode-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 300px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.ss-qrcode-modal.is-active .ss-qrcode-content {
  transform: scale(1);
}

.ss-qrcode-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ss-qrcode-close:hover {
  background: #d1d5db;
  transform: rotate(90deg);
}

.ss-qrcode-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1e293b;
}

.ss-qrcode-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
}

.ss-qrcode-desc {
  font-size: 14px;
  color: #64748b;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .ss-contact-widget {
    right: 15px;
    bottom: 15px;
  }

  .ss-contact-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .ss-contact-tooltip {
    display: none;
  }
}

/* 脉冲动画 */
@keyframes ss-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.ss-contact-btn--primary {
  animation: ss-pulse 2s infinite;
}
