/* ========================================
   无限PAY模板-一只小白菜
   QQ：2694199949- 基础样式
   品牌色：#f9561f(主) #ee2b8c(辅) #f99e1f(辅)
   ======================================== */

:root {
  --primary: #f9561f;
  --primary-light: rgba(249, 86, 31, 0.1);
  --primary-dark: #d94a1a;
  --secondary: #f1f5f9;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --gradient-brand: linear-gradient(135deg, #f9561f 0%, #ee2b8c 50%, #f99e1f 100%);
  --gradient-soft: rgba(249, 86, 31, 0.08);
  --shadow-primary: rgba(249, 86, 31, 0.25);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--foreground); background: var(--background);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-20 { gap: 80px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-relaxed { line-height: 1.75; }
.leading-1 { line-height: 1.1; }
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.text-white-50 { color: rgba(255,255,255,0.5); }
.text-white-80 { color: rgba(255,255,255,0.8); }
.text-white-30 { color: rgba(255,255,255,0.3); }
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-background { background: var(--background); }
.bg-secondary-50 { background: rgba(241,245,249,0.5); }
.bg-dark { background: #0a0a0a; }
.bg-code { background: #0d1117; }
.bg-gradient-brand { background: var(--gradient-brand); }

.hidden { display: none !important; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 1280px; }
.max-w-4xl { max-width: 896px; }
.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 672px; }
.max-w-xl { max-width: 576px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 64px; }
.mb-20 { margin-bottom: 80px; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.mr-2 { margin-right: 8px; }

.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-10 { padding-left: 40px; padding-right: 40px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-20 { padding-top: 80px; }
.pt-32 { padding-top: 128px; }
.pb-20 { padding-bottom: 80px; }

.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 999px; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-white-10 { border-color: rgba(255,255,255,0.1); }
.border-primary-20 { border-color: rgba(249,86,31,0.2); }
.border-gray-50 { border-color: rgba(226,232,240,0.5); }

.transition { transition: all 0.2s; }
.transition-all { transition: all 0.2s; }
.transition-colors { transition: color 0.2s, background-color 0.2s; }
.transition-transform { transition: transform 0.3s; }
.transition-opacity { transition: opacity 0.5s; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.hover-opacity-90:hover { opacity: 0.9; }
.hover-text-foreground:hover { color: var(--foreground); }

/* Glass card */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,0.5);
}

/* Section defaults */
.section-py { padding: 96px 0; }
@media (max-width: 1023px) { .section-py { padding: 80px 0; } }
.section-badge {
  display: inline-flex; align-items: center; padding: 6px 16px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(249,86,31,0.08);
  border: 1px solid rgba(249,86,31,0.2);
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em;
}
.section-title {
  margin-top: 24px; font-size: 36px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--foreground);
}
@media (min-width: 640px) { .section-title { font-size: 44px; } }
@media (min-width: 1024px) { .section-title { font-size: 48px; } }
.section-desc {
  margin-top: 20px; font-size: 18px; color: var(--muted); line-height: 1.75;
}

/* Product card */
.product-card {
  display: block; position: relative; border-radius: 16px; padding: 32px;
  transition: all 0.5s; border: 1px solid rgba(226,232,240,0.5);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.product-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12);
  transform: translateY(-8px);
  border-color: rgba(249,86,31,0.3);
}
.product-card-overlay {
  position: absolute; inset: 0; border-radius: 16px;
  opacity: 0; transition: opacity 0.5s;
}
.product-card:hover .product-card-overlay { opacity: 0.05; }
.product-card-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.product-card:hover .product-card-icon { transform: scale(1.1) rotate(3deg); }
.product-card-icon svg { width: 28px; height: 28px; color: #fff; }
.product-card h3 {
  font-size: 18px; font-weight: 600; color: var(--foreground); margin-bottom: 8px;
  transition: color 0.2s;
}
.product-card:hover h3 { color: var(--primary); }
.product-card p.desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.tag-pill {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 500;
  background: rgba(241,245,249,0.8); color: var(--muted);
  transition: all 0.2s;
}
.product-card:hover .tag-pill { background: rgba(249,86,31,0.1); color: var(--primary); }
.learn-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 20px;
  font-size: 14px; font-weight: 500; color: var(--primary);
  opacity: 0.7; transition: all 0.3s;
}
.product-card:hover .learn-more, .learn-more:hover { opacity: 1; }
.learn-more-arrow { transition: transform 0.3s; }
.product-card:hover .learn-more-arrow { transform: translateX(4px); }

/* Feature card (security) */
.feature-card {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,0.5); border-radius: 16px;
  padding: 32px; text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.feature-card-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.feature-card-icon svg { width: 28px; height: 28px; color: #fff; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; white-space: nowrap; border-radius: 6px;
  transition: all 0.2s; cursor: pointer; border: none; outline: none;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-md { height: 40px; padding: 0 24px; font-size: 16px; }
.btn-lg { height: 44px; padding: 0 32px; font-size: 16px; }
.btn-primary {
  background: var(--gradient-brand); color: #fff;
  box-shadow: 0 4px 14px rgba(249,86,31,0.25);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 8px 24px rgba(249,86,31,0.35); transform: translateY(-1px); }
.btn-outline {
  background: rgba(255,255,255,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--border); color: var(--foreground);
}
.btn-outline:hover { background: #f1f5f9; }
.btn-tab {
  padding: 6px 12px; font-size: 13px; font-weight: 500;
  border-radius: 999px; background: #f1f5f9; color: var(--muted);
  border: none; cursor: pointer; transition: all 0.15s;
}
.btn-tab:hover { color: var(--foreground); }
.btn-tab.active { background: var(--primary); color: #fff; }

/* Code block */
.code-window {
  background: #0d1117; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot-red { background: rgba(239,68,68,0.8); }
.code-dot-yellow { background: rgba(234,179,8,0.8); }
.code-dot-green { background: rgba(34,197,94,0.8); }
.code-filename { margin-left: 8px; font-size: 12px; color: #6b7280; font-family: monospace; }
.code-body {
  padding: 20px; font-family: monospace; font-size: 14px; line-height: 1.75;
  overflow-x: auto; color: #d1d5db;
}
.code-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 64px;
  background: linear-gradient(to top, #0d1117, transparent);
  pointer-events: none;
}
.c-pink { color: #c084fc; }
.c-blue { color: #60a5fa; }
.c-green { color: #4ade80; }
.c-orange { color: #fb923c; }
.c-yellow { color: #fde047; }
.c-gray { color: #9ca3af; }

/* Check list */
.check-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 4px 0;
}
.check-icon-circle {
  width: 28px; height: 28px; border-radius: 12px; flex-shrink: 0; margin-top: 2px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(249,86,31,0.2);
  transition: transform 0.3s;
}
.check-item:hover .check-icon-circle { transform: scale(1.1); }
.check-icon-circle svg { width: 16px; height: 16px; color: #fff; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(4,1fr); gap: 48px; } }
.stat-item { text-align: center; transition: transform 0.3s; }
.stat-item:hover { transform: scale(1.05); }
.stat-num {
  font-size: 36px; font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (min-width: 640px) { .stat-num { font-size: 44px; } }
@media (min-width: 1024px) { .stat-num { font-size: 48px; } }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
@media (min-width: 640px) { .stat-label { font-size: 16px; } }

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(249,86,31,0.08);
  border: 1px solid rgba(249,86,31,0.2);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-badge-text { font-size: 12px; font-weight: 500; color: var(--primary); }

/* Tagline icons row */
.tagline-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.tagline-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tagline-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4,1fr); gap: 48px; } }
.footer-title { font-size: 14px; font-weight: 600; margin-bottom: 20px; color: rgba(255,255,255,0.8); }
.footer-links li { padding: 3px 0; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-beian { font-size: 11px; line-height: 1.6; }
.footer-beian a { color: #fff; white-space: nowrap; padding: 0 6px; }
.footer-beian img { vertical-align: middle; flex-shrink: 0; }

/* Grid layout helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); }
.lg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 1023px) { .lg-grid-2 { grid-template-columns: 1fr; } }
.sm-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); }
@media (max-width: 639px) { .sm-grid-2 { grid-template-columns: 1fr; } }
.sm-grid-2-3 { display: grid; grid-template-columns: repeat(2,1fr); }
@media (min-width: 1024px) { .sm-grid-2-3 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 639px) { .sm-grid-2-3 { grid-template-columns: 1fr; } }

/* Nav */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 1024px) { .navbar-inner { height: 80px; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  color: var(--muted); border-radius: 6px;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--foreground); background: rgba(241,245,249,0.5); }
.nav-logo img { height: 48px; width: 150px; object-fit: contain; transition: transform 0.3s; }
.nav-logo:hover img { transform: scale(1.05); }
.nav-login-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 12px; font-size: 14px; font-weight: 500;
  border-radius: 6px; border: 2px solid #000;
  background: #f49871; color: var(--foreground);
  transition: all 0.2s; cursor: pointer;
}
.nav-login-btn:hover { opacity: 0.9; }
.nav-doc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 12px; font-size: 14px; font-weight: 500;
  border-radius: 6px; border: none; cursor: pointer;
  background: var(--gradient-brand); color: #fff;
  box-shadow: 0 4px 14px rgba(249,86,31,0.25);
  transition: all 0.2s;
}
.nav-doc-btn:hover { opacity: 0.9; box-shadow: 0 8px 20px rgba(249,86,31,0.35); }

/* Mobile */
.mobile-menu-btn { display: none; padding: 8px; border-radius: 6px; border: none; background: transparent; cursor: pointer; }
.mobile-menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 1023px) {
  .mobile-menu-btn { display: block; }
  .desktop-nav, .desktop-actions { display: none; }
}
.mobile-menu { border-top: 1px solid #e5e7eb; }
.mobile-menu a {
  display: block; padding: 12px 16px; font-size: 16px; font-weight: 500;
  color: var(--foreground); border-radius: 8px; text-align: center;
}
.mobile-menu a:hover { background: #f1f5f9; }
.mobile-more-btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  font-size: 16px; font-weight: 600; color: var(--foreground);
  background: none; border: none; cursor: pointer; padding: 12px 16px;
}
.mobile-submenu { margin-top: 8px; }
.mobile-submenu a {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 16px; border-radius: 8px;
}
.mobile-submenu a:hover { background: #f1f5f9; }

/* Rotate */
.rotate-180 { transform: rotate(180deg); }

/* Nav marquee */
.nav-marquee-line {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; overflow: hidden;
  background: rgba(255,140,66,0.1);
}
.nav-marquee-line .marquee-bar {
  position: absolute; bottom: 0; height: 100%; width: 300px;
  background: linear-gradient(90deg, transparent, #FF8C42, #FFA559, #FF8C42, transparent);
  box-shadow: 0 0 12px rgba(255,140,66,0.9);
  animation: marquee-move 2.5s ease-in-out infinite;
}
.nav-marquee-line .marquee-bar-2 {
  position: absolute; bottom: 0; height: 100%; width: 300px;
  background: linear-gradient(90deg, transparent, #FF8C42, #FFA559, #FF8C42, transparent);
  box-shadow: 0 0 12px rgba(255,140,66,0.9);
  animation: marquee-move-2 2.5s ease-in-out infinite;
}
@keyframes marquee-move {
  0% { left: -300px; } 100% { left: calc(100% + 300px); }
}
@keyframes marquee-move-2 {
  0% { right: -300px; } 100% { right: calc(100% + 300px); }
}

/* Hero underline SVG */
.hero-underline { position: absolute; bottom: -8px; left: 0; width: 100%; }

/* Security popup badge */
.sec-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.sec-badge-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
}
.sec-badge-icon svg { width: 20px; height: 20px; color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(249,86,31,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,86,31,0.45); }

/* Opacity helpers */
.opacity-0 { opacity: 0; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }

/* Bg blur helpers */
.blur-3xl { filter: blur(64px); }
.blur-2xl { filter: blur(40px); }

/* Shorthand size */
.w-10 { width: 40px; } .h-10 { height: 40px; }
.w-14 { width: 56px; } .h-14 { height: 56px; }

/* Text indent */
.text-indent { text-indent: 2em; }

/* Backgrounds */
.bg-gradient-soft {
  background: radial-gradient(ellipse, rgba(249,86,31,0.08) 0%, transparent 70%);
}
.bg-grid {
  background-image:
    linear-gradient(rgba(249,86,31,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,86,31,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(238,43,140,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(249,86,31,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(249,158,31,0.04) 0%, transparent 50%);
}
