/* ============================================================
   右侧浮动联系栏 - floating-contact.css
   朝霞物流官网
   ============================================================ */

/* --- 浮动栏容器：移至页面右下角（Hero下方区域） --- */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 40px;
  top: auto;
  transform: none;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
/* 微信弹窗：跟随右下角定位 */
.fc-qr-popup {
  right: 80px;
  top: auto;
  bottom: 0;
  transform: translateY(0) scale(0.9);
}
.fc-qr-popup.active {
  transform: translateY(0) scale(1);
}
.fc-qr-popup::after {
  right: -8px;
  top: auto;
  bottom: 20px;
  transform: translateY(0);
  border-left-color: #fff;
  border-right: none;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
}
/* 电话弹窗：跟随右下角定位 */
.fc-phone-popup {
  right: 80px;
  top: auto;
  bottom: 0;
  transform: translateY(0) scale(0.9);
}
.fc-phone-popup.active {
  transform: translateY(0) scale(1);
}
.fc-phone-popup::after {
  right: -8px;
  top: auto;
  bottom: 20px;
  border-left-color: #fff;
  border-right: none;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
}

/* --- 每个按钮 --- */
.floating-contact .fc-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  border: none;
  outline: none;
  text-decoration: none;
}

.floating-contact .fc-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

/* 电话按钮 */
.floating-contact .fc-btn--phone {
  background: linear-gradient(135deg, #ff6b35, #e55a28);
}
.floating-contact .fc-btn--phone:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(255,107,53,0.45);
}

/* 询价按钮 */
.floating-contact .fc-btn--quote {
  background: linear-gradient(135deg, #0f2027, #1a3a4a);
}
.floating-contact .fc-btn--quote:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(15,32,39,0.45);
}

/* 微信按钮 */
.floating-contact .fc-btn--wechat {
  background: linear-gradient(135deg, #ff6b35, #e55a28);
}
.floating-contact .fc-btn--wechat:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(255,107,53,0.45);
}

/* 回顶按钮 */
.floating-contact .fc-btn--top {
  background: linear-gradient(135deg, #0f2027, #1a3a4a);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  transition: all 0.35s ease;
}
.floating-contact .fc-btn--top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.floating-contact .fc-btn--top:hover {
  box-shadow: 0 6px 20px rgba(15,32,39,0.45);
}

/* --- 工具提示（hover 显示文字） --- */
.floating-contact .fc-btn .fc-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,32,39,0.92);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
}
.floating-contact .fc-btn .fc-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(15,32,39,0.92);
  border-right: none;
}
.floating-contact .fc-btn:hover .fc-tooltip {
  opacity: 1;
}

/* --- 微信二维码弹窗 --- */
.fc-qr-popup {
  position: fixed;
  right: 80px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 9995;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  padding: 28px 24px 22px;
  text-align: center;
  width: 220px;
}
.fc-qr-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.fc-qr-popup__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.fc-qr-popup__close:hover { color: #333; }

.fc-qr-popup__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f2027;
  margin-bottom: 4px;
}
.fc-qr-popup__subtitle {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}

.fc-qr-popup__image {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  display: block;
  margin: 0 auto;
  border: 1px solid #eee;
}

.fc-qr-popup__hint {
  font-size: 12px;
  color: #ff6b35;
  margin-top: 12px;
  font-weight: 500;
}

/* 弹窗小三角 */
.fc-qr-popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #fff;
  border-right: none;
  filter: drop-shadow(2px 0 2px rgba(0,0,0,0.08));
}

/* --- 手机号码气泡 --- */
.fc-phone-popup {
  position: fixed;
  right: 80px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 9995;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  padding: 22px 28px;
  text-align: center;
  white-space: nowrap;
}
.fc-phone-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}
.fc-phone-popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #fff;
  border-right: none;
  filter: drop-shadow(2px 0 2px rgba(0,0,0,0.08));
}
.fc-phone-popup__number {
  font-size: 22px;
  font-weight: 900;
  color: #0f2027;
  letter-spacing: 1px;
}
.fc-phone-popup__label {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}
.fc-phone-popup__btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 24px;
  background: linear-gradient(135deg, #ff6b35, #e55a28);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.fc-phone-popup__btn:hover {
  transform: scale(1.05);
}

/* --- 遮罩层 --- */
.fc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9993;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.fc-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .floating-contact {
    right: 12px;
    bottom: 80px;
    top: auto;
    transform: none;
    flex-direction: row;
    gap: 10px;
  }
  .floating-contact .fc-btn {
    width: 44px;
    height: 44px;
  }
  .floating-contact .fc-btn svg {
    width: 18px;
    height: 18px;
  }
  .floating-contact .fc-btn .fc-tooltip { display: none; }

  .fc-qr-popup,
  .fc-phone-popup {
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) scale(0.9) !important;
    width: 90vw;
    max-width: 280px;
  }
  .fc-qr-popup.active,
  .fc-phone-popup.active {
    transform: translate(-50%,-50%) scale(1) !important;
  }
  .fc-qr-popup::after,
  .fc-phone-popup::after { display: none; }

  .fc-qr-popup__image {
    width: 140px;
    height: 140px;
  }
}
