/* ========================================
   FlyCard — 模组授权卡密系统
   ======================================== */

/* ── 基础 ── */
:root {
  --bg-deep: #070b18;
  --bg-card: rgba(15, 23, 42, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── 星空粒子背景 ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── 布局容器 ── */
.container-main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── 玻璃卡片 ── */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
}

.glass-hover {
  transition: all 0.3s ease;
}
.glass-hover:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.15);
}

/* ── 渐变文字 ── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 渐变按钮 ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 600;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -3px rgba(139, 92, 246, 0.5);
}
.btn-primary:active { transform: scale(0.97); }

.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}
.btn-pay.alipay {
  background: linear-gradient(135deg, #1677ff, #0958d9);
  box-shadow: 0 4px 15px -3px rgba(22, 119, 255, 0.4);
}
.btn-pay.alipay:hover {
  box-shadow: 0 8px 25px -3px rgba(22, 119, 255, 0.6);
  transform: translateY(-1px);
}
.btn-pay.wxpay {
  background: linear-gradient(135deg, #07c160, #06ad56);
  box-shadow: 0 4px 15px -3px rgba(7, 193, 96, 0.4);
}
.btn-pay.wxpay:hover {
  box-shadow: 0 8px 25px -3px rgba(7, 193, 96, 0.6);
  transform: translateY(-1px);
}

/* ── 输入框 ── */
.input-glass {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}
.input-glass::placeholder { color: rgba(255, 255, 255, 0.2); }
.input-glass:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

/* ── 导航栏 ── */
.nav-glass {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── 动画 ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}
.animate-glow { animation: pulse-glow 2s ease-in-out infinite; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ── 卡密显示 ── */
.card-code-display {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  user-select: all;
  text-align: center;
}

/* ── 产品卡片 ── */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(139,92,246,0.2), rgba(236,72,153,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }

.product-card.premium::before {
  background: linear-gradient(135deg, rgba(245,158,11,0.6), rgba(239,68,68,0.4), rgba(245,158,11,0.6));
  opacity: 1;
}

/* ── 功能列表 ── */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ── 步骤流程 ── */
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Toast 提示 ── */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeInUp 0.4s ease-out;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast-success { background: #065f46; color: #a7f3d0; border: 1px solid rgba(16,185,129,0.3); }
.toast-error { background: #7f1d1d; color: #fecaca; border: 1px solid rgba(239,68,68,0.3); }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .container-main { padding: 0 1rem; }
  .card-code-display { font-size: 1rem; padding: 0.75rem 1rem; }
}
