/* ─── 站点公共样式（首页、商户中心、部署文档等） ─── */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #f1f1f6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── 爱心粒子 ─── */
.heart-particle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
.heart-particle::before {
  content: '♥';
  font-size: inherit;
  color: inherit;
}

/* ─── 导航栏 ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.site-nav .nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.site-nav .nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.site-nav .nav-links a:hover { color: #fff; }
.site-nav .nav-links a.active { color: #a78bfa; }
.site-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav .nav-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-family: inherit;
}
.site-nav .nav-btn-outline {
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  background: transparent;
}
.site-nav .nav-btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}
.site-nav .nav-btn-primary {
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  color: #fff;
  border: none;
}
.site-nav .nav-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.site-nav .nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #fff;
  transition: all 0.2s;
}
.site-nav .nav-user:hover {
  background: rgba(255,255,255,0.1);
}
.site-nav .nav-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.site-nav .nav-user-name {
  font-size: 13px;
  font-weight: 500;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 14px;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #f472b6, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-family: inherit;
  cursor: pointer;
}
.hero-btn-primary {
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}
.hero-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ─── 浮动光球 ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}
.orb-1 {
  width: 400px; height: 400px;
  background: #8b5cf6;
  top: -100px; right: -100px;
  animation: float-orb 12s ease-in-out infinite;
}
.orb-2 {
  width: 300px; height: 300px;
  background: #f472b6;
  bottom: -80px; left: -80px;
  animation: float-orb 15s ease-in-out infinite reverse;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── 通用区块 ─── */
section {
  padding: 100px 48px;
  position: relative;
  z-index: 1;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a78bfa;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 480px;
}

/* ─── 功能特性 ─── */
.features {
  background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
}
.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.features-header .section-desc { margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(139,92,246,0.2);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-icon.pink { background: rgba(244,114,182,0.15); color: #f472b6; }
.feature-icon.purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.feature-icon.blue { background: rgba(96,165,250,0.15); color: #60a5fa; }
.feature-icon.amber { background: rgba(251,191,36,0.15); color: #fbbf24; }
.feature-icon.green { background: rgba(52,211,153,0.15); color: #34d399; }
.feature-icon.rose { background: rgba(244,63,94,0.15); color: #f43f5e; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

/* ─── 数据统计 ─── */
.stats {
  background: #0f0f1a;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stat-item h2 {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* ─── 商户合作 ─── */
.merchant {
  text-align: center;
  background: linear-gradient(180deg, #0f0f1a 0%, #0a0a0f 100%);
}
.merchant .section-desc { margin: 0 auto 48px; }
.merchant-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: left;
}
.merchant-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.3s;
}
.merchant-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(139,92,246,0.2);
  transform: translateY(-2px);
}
.merchant-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.merchant-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}
.merchant-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── 页脚 ─── */
footer {
  padding: 48px;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
  position: relative;
  z-index: 1;
}
footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .site-nav .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .merchant-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
}
