/* ===== 浮窗样式 ===== */
.float {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: var(--z-float);
}

.float-item {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0F3460, #1E3A8A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 52, 96, 0.35);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  padding: 8px;
}

.float-item.consult-item {
  background: linear-gradient(135deg, #1E3A8A, #2B5DA3);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.float-item:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(15, 52, 96, 0.5);
  background: linear-gradient(135deg, #1E3A8A, #2B5DA3);
}

.float-item i {
  font-size: 18px;
}

.float-item:hover i {
  transform: scale(1.1);
}

/* ===== 微信二维码弹窗 ===== */
.wechat-item {
  position: relative;
  cursor: pointer;
}

.wechat-qr {
  display: none;
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  z-index: 1001;
}

.wechat-qr img {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 4px;
}

.wechat-qr p {
  text-align: center;
  margin: 10px 0 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #1E3A8A;
}

.wechat-item:hover .wechat-qr {
  display: block;
}

/* ===== 售前咨询弹窗 ===== */
.consult-popup {
  display: none;
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 1001;
  min-width: 200px;
}

.consult-popup h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0D1B2A;
  text-align: center;
}

.consult-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.consult-item:last-child {
  margin-bottom: 0;
}

.consult-item i {
  font-size: 20px;
  color: #3182CE;
}

.consult-info {
  font-size: 14px;
  color: #333;
}

.consult-info strong {
  display: block;
  font-weight: 600;
  color: #0D1B2A;
}

.consult-info span {
  color: #666;
}

.float-item.consult-item:hover .consult-popup {
  display: block;
}

.consult-popup img {
  display: block;
  border-radius: 4px;
  margin: 0 auto;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
  .float {
    right: 15px;
    gap: 12px;
  }

  .float-item {
    width: 45px;
    height: 45px;
    font-size: 9px;
  }

  .float-item i {
    font-size: 16px;
  }

  .wechat-qr,
  .consult-popup {
    right: 60px;
    padding: 12px;
  }

  .wechat-qr img {
    width: 120px;
    height: 120px;
  }

  .consult-popup {
    min-width: 180px;
  }
}
