/* ============================================================
   微扑克轻量版 · H5网页版入口  —  全局样式
   主色：indigo-600 → pink-500
   ============================================================ */

:root {
  --indigo: #4f46e5;
  --pink: #ec4899;
  --ink: #1e1b3a;
  --muted: #6b7280;
  --soft: #f6f5ff;
}

html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #ffffff;
  color: var(--ink);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(120deg, #4f46e5 0%, #d946ef 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 网格背景 */
.bg-grid {
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
}

/* 滚动毛玻璃导航 */
.nav-blur {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.1);
}

/* 卡片 hover */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px -18px rgba(236, 72, 153, 0.35);
}

/* 发光按钮 */
.btn-glow {
  position: relative;
  box-shadow: 0 12px 30px -8px rgba(236, 72, 153, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -8px rgba(236, 72, 153, 0.75);
}

/* 滚动入场 */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ 手风琴 */
.faq-item {
  border: 1px solid #eceaf6;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item.open {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 14px 34px -18px rgba(236, 72, 153, 0.4);
}
.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--muted);
  line-height: 1.8;
}
.faq-answer p { padding: 0 26px 20px; }
.faq-icon {
  flex: none;
  transition: transform 0.35s ease;
  color: var(--pink);
  margin-left: 12px;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* H5 窗口卡片 */
.h5-window {
  background: #fff;
  border: 1px solid #eceaf6;
  box-shadow: 0 40px 80px -30px rgba(79, 70, 229, 0.35);
}
.h5-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-right: 6px;
}
