/* ==========================================================================
   Floating Contact Widget (右下角悬浮联系挂件)
   Theme: High-End Dark Cinema with Gold Accent (#fdb813 / #F96D00)
   ========================================================================== */

.floating-contact-widget {
  position: fixed;
  right: 25px;
  bottom: 35px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "MiSans", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Individual floating item button */
.fc-item {
  position: relative;
  display: flex;
  align-items: center;
}

.fc-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.fc-btn svg,
.fc-btn i {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.fc-btn:hover {
  background: linear-gradient(135deg, #fdb813, #f39c12);
  color: #111111;
  border-color: #fdb813;
  box-shadow: 0 10px 28px rgba(253, 184, 19, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.fc-btn:hover svg,
.fc-btn:hover i {
  transform: scale(1.1);
}

/* Tooltip / Flyout Card */
.fc-card {
  position: absolute;
  right: 60px;
  bottom: 0;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(253, 184, 19, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  white-space: nowrap;
  color: #ffffff;
}

.fc-card::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  background: rgba(18, 18, 18, 0.96);
  border-top: 1px solid rgba(253, 184, 19, 0.3);
  border-right: 1px solid rgba(253, 184, 19, 0.3);
  transform: rotate(45deg);
}

.fc-item:hover .fc-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* Phone Card Specific */
.fc-phone-card .fc-card-label {
  font-size: 12px;
  color: #999999;
  margin-bottom: 4px;
}

.fc-phone-card .fc-card-val {
  font-size: 18px;
  font-weight: 700;
  color: #fdb813;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.fc-phone-card .fc-card-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* WeChat QR Card Specific */
.fc-wechat-card {
  text-align: center;
  padding: 18px;
}

.fc-wechat-card img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.fc-wechat-card .fc-wechat-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.fc-wechat-card .fc-wechat-sub {
  font-size: 12px;
  color: #fdb813;
}

/* Back to top button */
.fc-top-btn {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.fc-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-contact-widget {
    right: 15px;
    bottom: 25px;
    gap: 10px;
  }

  .fc-btn {
    width: 44px;
    height: 44px;
  }

  .fc-card {
    right: 54px;
    padding: 12px 16px;
  }

  .fc-phone-card .fc-card-val {
    font-size: 16px;
  }
}
