/* ========== HHpoker 自定义样式 ========== */

/* 超大圆角 */
.rounded-huge {
  border-radius: 2.5rem;
}

.rounded-card {
  border-radius: 1.75rem;
}

/* 柔和渐变背景 */
.bg-soft-gradient {
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 50%, #faf5ff 100%);
}

.bg-hero-gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 30%, #f472b6 70%, #c084fc 100%);
}

.bg-card-gradient {
  background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #f3e8ff 100%);
}

.bg-footer-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
}

/* 柔和阴影 */
.shadow-soft {
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.12), 0 8px 40px rgba(244, 114, 182, 0.08);
}

.shadow-soft-lg {
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.15), 0 16px 64px rgba(244, 114, 182, 0.10);
}

.shadow-soft-xl {
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.18), 0 24px 80px rgba(244, 114, 182, 0.12);
}

/* 悬停效果 */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.20), 0 24px 72px rgba(244, 114, 182, 0.14);
}

/* 按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 40%, #f472b6 100%);
  border: none;
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.30);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.40), 0 4px 16px rgba(244, 114, 182, 0.25);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border: 2px solid #c4b5fd;
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  color: #7c3aed;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #f5f3ff;
  border-color: #a78bfa;
  transform: translateY(-2px);
}

/* 导航链接 */
.nav-link {
  position: relative;
  color: #4c1d95;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #f472b6);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #7c3aed;
}

/* 特性卡片 */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-icon.violet {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
}

.feature-icon.pink {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #db2777;
}

.feature-icon.purple {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #9333ea;
}

/* FAQ 折叠面板 */
.faq-item {
  background: #fff;
  border-radius: 1.25rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.06);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.10);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #4c1d95;
  user-select: none;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: #a78bfa;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: #7c3aed;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: #6b7280;
  line-height: 1.8;
}

/* 客户服务浮窗 */
.cs-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.cs-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}

.cs-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  display: none;
}

.cs-panel.show {
  display: block;
  animation: csFadeIn 0.3s ease;
}

@keyframes csFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs-panel h4 {
  color: #4c1d95;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cs-panel p {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cs-panel .cs-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f5f3ff;
  border-radius: 0.75rem;
  margin-top: 0.5rem;
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cs-panel .cs-contact:hover {
  background: #ede9fe;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f3ff;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c4b5fd, #f9a8d4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a78bfa, #f472b6);
}

/* 响应式 */
@media (max-width: 768px) {
  .rounded-huge {
    border-radius: 1.5rem;
  }

  .rounded-card {
    border-radius: 1.25rem;
  }

  .cs-float {
    bottom: 1rem;
    right: 1rem;
  }
}
