/* ============ NexPay 全局主题 ============ */
:root {
  --orange-500: #f28c1b;     /* 主橙 */
  --orange-400: #ff9a1f;
  --orange-600: #e07a0c;
  --purple-700: #4b2a8e;     /* 主紫 */
  --purple-600: #5b2d90;
  --purple-800: #3a1d7a;
  --ink-900: #0f1a3a;
  --ink-800: #1a2452;
  --ink-700: #2d3748;
  --ink-600: #4a5568;
  --ink-500: #718096;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ============ Hero 渐变背景（橙紫） ============ */
.hero-gradient {
  background:
    radial-gradient(ellipse 75% 50% at 15% 15%, rgba(242, 140, 27, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgba(75, 42, 142, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(255, 154, 31, 0.18), transparent 55%),
    linear-gradient(180deg, #fff8f0 0%, #faf5ff 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(75, 42, 142, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 42, 142, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============ 文字渐变 ============ */
.text-gradient {
  background: linear-gradient(135deg, #f28c1b 0%, #ff9a1f 40%, #4b2a8e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #4b2a8e 0%, #6d35a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #f28c1b 0%, #ff9a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ 按钮 ============ */
.btn-primary {
  background: linear-gradient(135deg, #f28c1b 0%, #e07a0c 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 8px 20px -8px rgba(242, 140, 27, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(242, 140, 27, 0.7);
}

.btn-secondary {
  background: linear-gradient(135deg, #4b2a8e 0%, #3a1d7a 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 8px 20px -8px rgba(75, 42, 142, 0.55);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(75, 42, 142, 0.7);
}

.btn-ghost {
  color: var(--ink-900);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-ghost:hover { background: rgba(75, 42, 142, 0.08); color: var(--purple-700); }

/* ============ 卡片 ============ */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  transition: all .3s ease;
  border: 1px solid rgba(75, 42, 142, 0.06);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(75, 42, 142, 0.2);
  border-color: rgba(242, 140, 27, 0.3);
}

/* ============ 代码块（深紫色调） ============ */
.code-window {
  background: #1a1033;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(75, 42, 142, 0.5);
}
.code-window .titlebar {
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-window .dot { width: 12px; height: 12px; border-radius: 9999px; }
.code-window pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}
.tok-k { color: #ff9a1f; }   /* keyword - 橙 */
.tok-s { color: #86efac; }   /* string - 绿 */
.tok-n { color: #fbbf24; }   /* number - 琥珀 */
.tok-c { color: #8b7fb0; }   /* comment - 淡紫 */
.tok-p { color: #c4b5fd; }   /* property - 浅紫 */
.tok-f { color: #fcd34d; }   /* function - 金 */

/* ============ 导航 ============ */
.nav-blur {
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(75, 42, 142, 0.08);
}

/* ============ 流动动画 ============ */
@keyframes float-slow {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-16px) rotate(2deg); }
}
.float-slow { animation: float-slow 8s ease-in-out infinite; }

@keyframes float-fast {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.float-fast { animation: float-fast 4s ease-in-out infinite; }

@keyframes pulse-ring {
  0%   { transform: scale(.9); opacity: .8; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 9999px;
  background: inherit;
  animation: pulse-ring 2.2s ease-out infinite;
}

/* 火箭发射光晕 */
@keyframes glow-rocket {
  0%,100% { filter: drop-shadow(0 0 24px rgba(242, 140, 27, 0.5)) drop-shadow(0 0 12px rgba(75, 42, 142, 0.3)); }
  50%     { filter: drop-shadow(0 0 36px rgba(242, 140, 27, 0.8)) drop-shadow(0 0 18px rgba(75, 42, 142, 0.5)); }
}
.glow-rocket { animation: glow-rocket 3s ease-in-out infinite; }

/* ============ 滚动字幕（客户 logo） ============ */
@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.scroll-track {
  display: flex;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}

/* ============ 支付流程动画 ============ */
@keyframes flow-dash {
  to { stroke-dashoffset: -40; }
}
.flow-line { stroke-dasharray: 6 6; animation: flow-dash 1.6s linear infinite; }

/* ============ 标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 600;
  background: rgba(242, 140, 27, 0.1); color: #e07a0c;
  border: 1px solid rgba(242, 140, 27, 0.2);
}
.tag-purple { background: rgba(75, 42, 142, 0.08); color: #4b2a8e; border-color: rgba(75, 42, 142, 0.2); }
.tag-green  { background: rgba(16, 185, 129, 0.08); color: #059669; border-color: rgba(16, 185, 129, 0.18); }
.tag-blue   { background: rgba(47, 128, 237, 0.08); color: #1e5fc1; border-color: rgba(47, 128, 237, 0.2); }
.tag-amber  { background: rgba(245, 158, 11, 0.08); color: #b45309; border-color: rgba(245, 158, 11, 0.18); }

/* ============ Tab ============ */
.tab-btn { padding: .6rem 1.1rem; border-radius: 9999px; font-weight: 600; font-size: 14px; color: #4a5568; transition: all .2s; }
.tab-btn.active { background: linear-gradient(135deg, #f28c1b, #e07a0c); color: #fff; }

/* ============ 表格 ============ */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid rgba(75, 42, 142, 0.06); }
.tbl th { color: #718096; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: #faf5ff; }

/* ============ Dashboard ============ */
.dash-card { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid rgba(75, 42, 142, 0.08); }

/* ============ 细节 ============ */
.divider-soft { border-top: 1px solid rgba(75, 42, 142, 0.08); }

/* 链接 */
.link-hover { transition: color .15s ease; }
.link-hover:hover { color: #f28c1b; }

/* Logo 容器 */
.logo-ring {
  position: relative;
}
.logo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f28c1b, #4b2a8e);
  z-index: -1;
  opacity: 0;
  transition: opacity .2s;
  filter: blur(8px);
}
.logo-ring:hover::after { opacity: 0.6; }

/* 响应式隐藏 */
@media (max-width: 768px) {
  .hero-mesh { background-size: 32px 32px; }
}

/* Summary/details 专用 */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* 金卡专属（VIP 感） */
.card-gold {
  background: linear-gradient(135deg, #3a2a00 0%, #1a1033 60%, #3a1d7a 100%);
  color: #fff;
  border: 1px solid rgba(252, 211, 77, 0.3);
}
