/* ============ NexPay 全局主题 · 深蓝单色体系 ============ */
:root {
  /* 主色：深蓝 #1e3a8a */
  --brand-500: #1e3a8a;      /* 主蓝 */
  --brand-600: #1e3a8a;      /* 深一度 */
  --brand-700: #172554;      /* 最深 */
  --brand-400: #3b60c8;      /* 浅一度 */
  --brand-300: #6b88d9;      /* 更浅 */
  --brand-100: #dbe4f5;      /* 极浅背景 */
  --brand-50:  #f0f4fc;      /* 柔和底色 */

  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
}

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

/* ============ Hero 背景 · 单色柔和 ============ */
.hero-gradient {
  background: #f0f4fc;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.06) 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,
.text-gradient-brand,
.text-gradient-orange {
  color: #1e3a8a;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* ============ 按钮 · 统一单色 ============ */
.btn-primary {
  background: #1e3a8a;
  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(30, 64, 175, 0.55);
}
.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(30, 64, 175, 0.7);
}

.btn-secondary {
  background: #fff;
  color: #1e3a8a;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #1e3a8a;
  box-shadow: 0 4px 12px -6px rgba(30, 64, 175, 0.25);
}
.btn-secondary:hover {
  background: #f0f4fc;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(30, 64, 175, 0.35);
}

.btn-ghost {
  color: var(--ink-800);
  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(30, 64, 175, 0.08); color: #1e3a8a; }

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

/* ============ 代码块（深蓝色调） ============ */
.code-window {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.6);
}
.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: #60a5fa; }   /* keyword - 亮蓝 */
.tok-s { color: #86efac; }   /* string - 绿 */
.tok-n { color: #fbbf24; }   /* number - 琥珀 */
.tok-c { color: #64748b; }   /* comment - 灰 */
.tok-p { color: #93c5fd; }   /* property - 浅蓝 */
.tok-f { color: #c4b5fd; }   /* function - 淡紫 */

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

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

@keyframes float-fast {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.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;
}

/* ============ 滚动字幕（客户 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(30, 64, 175, 0.08); color: #1e3a8a;
  border: 1px solid rgba(30, 64, 175, 0.2);
}
.tag-purple { background: rgba(30, 64, 175, 0.08); color: #1e3a8a; border-color: rgba(30, 64, 175, 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(30, 64, 175, 0.08); color: #1e3a8a; border-color: rgba(30, 64, 175, 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: #475569; transition: all .2s; }
.tab-btn.active { background: #1e3a8a; 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(30, 64, 175, 0.06); }
.tbl th { color: #64748b; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: #f0f4fc; }

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

/* ============ 细节 ============ */
.divider-soft { border-top: 1px solid rgba(30, 64, 175, 0.08); }

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

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

/* 响应式隐藏 */
@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: #0f172a;
  color: #fff;
  border: 1px solid rgba(59, 96, 200, 0.4);
}
