/* ═══════════════════════════════════════
  幸赋链 · 官网 CSS v1.0
  视觉语言：信赖蓝 + 暖白 + 链接者网络
  ═══════════════════════════════════════ */

/* ─── 变量 ─── */
:root {
  --blue: #1A6BA0;
  --blue-light: #2A8BC8;
  --blue-dark: #0F4A73;
  --blue-glow: rgba(26,107,160,0.12);
  --gold: #F5A623;
  --gold-light: #FFD166;
  --gold-glow: rgba(245,166,35,0.15);
  --warm-white: #FAF8F5;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A7A;
  --text-muted: #9A9AB0;
  --border: #E8E6E1;
  --border-light: #F0EEE9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);
  --max-width: 1100px;
  --header-h: 64px;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── Container ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--blue); }
.logo-icon { width: 28px; height: 28px; background: var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 6px 14px; font-size: 14px; color: var(--text-secondary);
  border-radius: 6px; transition: all .2s; font-weight: 500;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-glow); }

.btn-nav-cta {
  padding: 7px 18px; font-size: 13px; font-weight: 600;
  background: var(--blue); color: #fff; border-radius: 8px;
  transition: all .25s;
}
.btn-nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 8px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .3s; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; transition: all .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 4px 16px var(--blue-glow); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #1A1A2E; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 4px 16px var(--gold-glow); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Section ─── */
.section { padding: 100px 0; }
.section-alt { background: #fff; }
.section-title {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-secondary);
  max-width: 580px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto 40px; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: var(--header-h) 24px 0;
  background: linear-gradient(165deg, var(--warm-white) 0%, #fff 50%, #F0F4F8 100%);
  position: relative; overflow: hidden;
}
/* Network dots background */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--blue) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.06; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; width: 100%; max-width: var(--max-width);
  margin: 0 auto; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--blue-glow); color: var(--blue);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800;
  line-height: 1.12; letter-spacing: -1px; margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--blue); }
.hero h1 .gold-text { background: linear-gradient(135deg, var(--gold), #E89000); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 8px; max-width: 480px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.hero-tag {
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero-tag.active { border-color: var(--blue); color: var(--blue); background: rgba(26,107,160,0.04); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-social {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.hero-social-avatars { display: flex; }
.hero-social-avatars span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid #fff; margin-right: -6px;
}
.hero-social-text { font-size: 13px; color: var(--text-secondary); }
.hero-social-text strong { color: var(--text-primary); font-weight: 700; }

/* Hero Visual */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-card-stack { width: 100%; max-width: 420px; }
.hero-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  animation: float 6s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: -2s; margin-left: 20px; }
.hero-card:nth-child(3) { animation-delay: -4s; margin-left: 10px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hero-card-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-glow); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hero-card-name { font-weight: 600; font-size: 14px; }
.hero-card-role { font-size: 12px; color: var(--text-muted); }
.hero-card-content { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding-left: 48px; }
.hero-card-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(26,107,160,0.08); color: var(--blue); font-size: 12px; font-weight: 600; margin-top: 8px; }

/* ─── Diagnosis Section ─── */
.diagnosis-box {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
  padding: 40px; max-width: 640px; margin: 0 auto;
}
.diagnosis-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.diagnosis-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.diagnosis-step { display: none; }
.diagnosis-step.active { display: block; }
.diagnosis-step h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.diagnosis-options { display: flex; flex-direction: column; gap: 10px; }
.diagnosis-option {
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: #fff;
  text-align: left; font-size: 14px; color: var(--text-primary);
  transition: all .2s; font-weight: 500;
}
.diagnosis-option:hover { border-color: var(--blue); background: rgba(26,107,160,0.03); }
.diagnosis-option.selected { border-color: var(--blue); background: rgba(26,107,160,0.06); color: var(--blue); }
.diagnosis-progress {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 24px;
}
.diagnosis-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: .3s;
}
.diagnosis-dot.active { background: var(--blue); }
.diagnosis-dot.done { background: var(--blue-light); }

/* Result */
.diagnosis-result { display: none; }
.diagnosis-result.active { display: block; }
.result-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
  padding: 40px; max-width: 640px; margin: 0 auto;
}
.result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(255,209,102,0.12));
  color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.result-type {
  font-size: 28px; font-weight: 800; margin-bottom: 16px;
}
.result-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.result-match { background: var(--blue-glow); padding: 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.result-match p { font-size: 13px; color: var(--blue); font-weight: 600; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.result-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.result-stat {
  background: var(--warm-white); padding: 14px; border-radius: var(--radius-sm);
  text-align: center;
}
.result-stat-num { font-size: 22px; font-weight: 800; color: var(--blue); }
.result-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ─── Social Proof / Live Feed ─── */
.live-feed {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  padding: 24px; max-width: 480px; margin: 0 auto;
}
.live-feed-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.live-feed-title { font-size: 14px; font-weight: 600; }
.live-feed-list { display: flex; flex-direction: column; gap: 12px; }
.live-feed-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm);
  background: var(--warm-white); font-size: 13px;
  animation: fadeSlideIn .5s ease;
}
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.live-feed-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.live-feed-text { color: var(--text-secondary); line-height: 1.5; }
.live-feed-text strong { color: var(--text-primary); }

/* ─── Features / AI Legion ─── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card {
  background: #fff; border-radius: var(--radius-md);
  padding: 28px; border: 1px solid var(--border-light);
  transition: all .3s; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--blue); transform: scaleY(0); transition: transform .3s;
  transform-origin: bottom;
}
.feature-card:hover::before { transform: scaleY(1); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--blue-glow); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.feature-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.feature-scene {
  padding: 3px 10px; border-radius: 4px;
  background: rgba(26,107,160,0.05); font-size: 12px; color: var(--blue);
}

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pricing-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 24px; border: 1.5px solid var(--border-light);
  text-align: center; transition: all .3s;
  position: relative; overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--gold); transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(245,166,35,0.12);
}
.pricing-card.featured .pricing-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #1A1A2E;
}
.pricing-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px; border-radius: 999px;
  background: rgba(26,107,160,0.08); color: var(--blue);
  font-size: 11px; font-weight: 700;
}
.pricing-identity {
  font-size: 14px; font-weight: 700; color: var(--blue);
  margin-bottom: 4px; letter-spacing: 1px;
}
.pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 38px; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-bottom: 16px; }
.pricing-features { text-align: left; margin: 20px 0; }
.pricing-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border-light);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--blue); font-weight: 700; flex-shrink: 0; }
.pricing-remaining {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(245,166,35,0.1); color: var(--gold);
  font-size: 12px; font-weight: 600; margin-top: 12px;
}

/* ─── Timeline ─── */
.timeline { max-width: 600px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-left: 52px; margin-bottom: 28px; }
.timeline-dot {
  position: absolute; left: 12px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.timeline-item.done .timeline-dot { background: var(--blue); }
.timeline-day {
  font-size: 12px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.timeline-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.timeline-desc { font-size: 14px; color: var(--text-secondary); }

/* ─── Gift / Free Download ─── */
.gift-box {
  background: linear-gradient(135deg, var(--warm-white), #fff);
  border: 2px dashed var(--gold); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; max-width: 560px; margin: 0 auto;
}
.gift-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.gift-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.gift-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.gift-form input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 14px;
  outline: none; transition: border-color .2s; font-family: inherit;
}
.gift-form input:focus { border-color: var(--blue); }

/* ─── Footer ─── */
.footer {
  background: var(--text-primary); color: #fff; padding: 60px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.6); max-width: 280px; line-height: 1.7; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: rgba(255,255,255,0.8); }
.footer a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ─── Animations ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-up { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
.slide-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Mobile Nav Overlay ─── */
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(4px);
}
.mobile-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: #fff; z-index: 1001; padding: 80px 24px 24px;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block; padding: 14px 0; font-size: 16px;
  font-weight: 500; color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .diagnosis-box, .result-card { padding: 24px; }
  .result-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .gift-form { flex-direction: column; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-tags { justify-content: center; }
  .hero-actions { justify-content: center; }
}

/* ─── Payment Modal ─── */
.payment-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
}
.payment-modal.open { display: flex; }
.payment-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
}
.payment-dialog {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 40px 32px 32px; max-width: 420px; width: 90%;
  box-shadow: var(--shadow-xl); animation: fadeSlideIn .3s ease;
  text-align: center;
}
.payment-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 20px; color: var(--text-muted); cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all .2s;
}
.payment-close:hover { background: var(--warm-white); color: var(--text-primary); }
.payment-loading {
  padding: 40px 0; font-size: 16px; color: var(--text-secondary);
}
.payment-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.payment-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.payment-qr {
  background: #fff; padding: 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border); display: inline-block;
  margin-bottom: 16px;
}
.payment-qr img { width: 240px; height: 240px; display: block; }
.payment-info {
  background: var(--warm-white); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 12px;
}
.payment-info-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 6px 0;
}
.payment-info-row + .payment-info-row { border-top: 1px solid var(--border); }
.payment-amount { font-weight: 700; color: var(--blue); font-size: 16px; }
.payment-hint { font-size: 12px; color: var(--text-muted); }

/* ─── Tracker Beacon ─── */
.tracker-beacon { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ─── 无障碍：减少动画 ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .fade-in, .slide-up { opacity: 1; transform: none; }
  .hero-card { animation: none; }
}
