/* ============================================================
   微扑克在线客服 · 全站样式
   主色：blue-600 → rose-500
   ============================================================ */

:root {
  --blue: #2563eb;
  --rose: #f43f5e;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #eef0f4;
}

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

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(120deg, #2563eb 0%, #6366f1 45%, #f43f5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 网格背景 */
.bg-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 63, 94, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* 滚动毛玻璃导航 */
.nav-blur {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

/* 卡片 hover */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-9px);
  box-shadow: 0 24px 48px -20px rgba(244, 63, 94, 0.35);
  border-color: rgba(244, 63, 94, 0.3);
}

/* 发光按钮 */
.btn-glow {
  position: relative;
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px -8px rgba(244, 63, 94, 0.6);
}

/* 滚动入场 */
.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 var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item.open {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 34px -20px rgba(37, 99, 235, 0.4);
}
.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  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 24px 18px; }
.faq-icon {
  flex: none;
  transition: transform 0.35s ease;
  color: var(--blue);
  margin-left: 12px;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* 会话气泡 */
.chat-bubble {
  border-radius: 16px;
  line-height: 1.6;
}
.chat-bubble.in {
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  border-top-left-radius: 4px;
}
.chat-bubble.out {
  background: linear-gradient(135deg, #2563eb, #f43f5e);
  color: #fff;
  border-top-right-radius: 4px;
}

/* 步骤序号 */
.step-num {
  background: linear-gradient(135deg, #2563eb, #f43f5e);
  color: #fff;
}
