/* ── 浮动 CTA 组件 ── */

/* 主按钮 */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8a45c, #a88a42);
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(200,164,92,0.4);
  transition: all 0.3s ease;
  position: relative;
}
.floating-cta-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(200,164,92,0.55);
}
.floating-cta-btn.active {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #a88a42, #8a7035);
}
.floating-cta-btn .cta-icon { transition: transform 0.3s ease; }

/* 脉冲动画 */
.floating-cta-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(200,164,92,0.3);
  animation: cta-pulse 2s ease-out infinite;
}
.floating-cta-btn.active::before { animation: none; }
@keyframes cta-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 菜单面板 */
.floating-cta-menu {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 220px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
  overflow: hidden;
}
.floating-cta-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-cta-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
  border-bottom: 1px solid #2a2a2a;
}
.floating-cta-menu a:last-child { border-bottom: none; }
.floating-cta-menu a:hover {
  background: rgba(200,164,92,0.1);
  color: #c8a45c;
}
.floating-cta-menu a .menu-icon {
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}
.floating-cta-menu a .menu-label { flex: 1; }
.floating-cta-menu a .menu-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: rgba(244,67,54,0.15);
  color: #f44336;
  font-weight: 600;
}

/* 关闭按钮 */
.floating-cta-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
  color: #999;
  border: 1px solid #444;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
.floating-cta:hover .floating-cta-close { opacity: 1; }
.floating-cta-close:hover { background: #444; color: #fff; }

/* ── 移动端：底部栏 ── */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 0;
    right: 0;
    left: 0;
    transform: translateY(100%);
  }
  .floating-cta.visible {
    transform: translateY(0);
  }
  .floating-cta-btn {
    width: 100%;
    height: 48px;
    border-radius: 0;
    font-size: 1rem;
    gap: 0.5rem;
    justify-content: center;
  }
  .floating-cta-btn::before { display: none; }
  .floating-cta-menu {
    position: fixed;
    bottom: 48px;
    left: 0;
    right: 0;
    width: auto;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
  }
  .floating-cta-menu a {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  .floating-cta-close { display: none; }
}
