/* style.css */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #6366f1;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 16px;
  position: relative;
}
.main-nav a:hover {
  color: var(--primary);
}
.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -4px;
  left: 0;
  transition: var(--transition);
}
.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-large {
  padding: 16px 48px;
  font-size: 18px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white !important;
}

/* Hero Section */
.hero {
  padding: 80px 0 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: radial-gradient(circle at 70% center, #1e293b 0%, var(--bg-color) 70%);
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* Dynamic Animation CSS */
.float-main { animation: float 6s ease-in-out infinite; }
.float-delay-1 { animation: float 5s ease-in-out infinite 1s; }
.float-delay-2 { animation: float 7s ease-in-out infinite 2s; }
.float-delay-3 { animation: float 6.5s ease-in-out infinite 0.5s; }
.pulse { animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes float {
  0% { transform: translateY(0px) rotateX(0); }
  50% { transform: translateY(-20px) rotateX(5deg); }
  100% { transform: translateY(0px) rotateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

.sail-shape {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 160px solid var(--primary);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(14, 165, 233, 0.4));
  background: transparent;
  opacity: 0.9;
}
.sail-shape::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -80px;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--secondary);
  filter: blur(10px);
  opacity: 0.5;
  z-index: -1;
}

.node {
  width: 20px;
  height: 20px;
  background: var(--text-main);
  border-radius: 50%;
  position: absolute;
  z-index: 3;
}
.node-1 { top: 20%; left: 15%; background: #fbbf24; box-shadow: 0 0 20px #fbbf24; }
.node-2 { bottom: 25%; right: 15%; background: #34d399; box-shadow: 0 0 20px #34d399; }
.node-3 { top: 40%; right: 25%; background: #f472b6; box-shadow: 0 0 20px #f472b6; }

.glow-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 50%;
  z-index: 1;
}
.glow-ring::after {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 50%;
}

/* Section Common */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.1);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-muted);
}

/* Pricing */
.pricing-card {
  display: flex;
  flex-direction: column;
}

.price {
  font-size: 48px;
  font-weight: 700;
  margin: 20px 0;
  color: var(--primary);
}

.price span {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.pricing-card .btn {
  margin-top: auto;
}

/* FAQ */
.faq-item {
  background-color: var(--card-bg);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 12px;
}

.faq-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: #0b1120;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Inner Pages */
.inner-page {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}
.inner-page h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--primary);
}
.inner-page h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
}
.inner-page p {
  margin-bottom: 20px;
  color: var(--text-muted);
}
.inner-page ul {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* Media Queries */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, var(--bg-color) 100%);
  }
  .hero-content {
    text-align: center;
  }
  .hero p {
    margin: 0 auto 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    width: 100%;
    margin-top: 40px;
    height: 300px;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }
  .hero p {
    font-size: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  /* Make buttons full width and large for finger clicks except in header */
  section .btn, section .btn-large, section .btn-outline {
    width: 100%;
    padding: 16px;
    margin-bottom: 10px;
    font-size: 18px;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .header-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
  }
}

/* CRO 新增组件样式 */
/* Hero Trust Pills */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-start;
}
.hero-content .trust-pills {
  justify-content: flex-start;
}
@media (max-width: 992px) {
  .hero-content .trust-pills {
    justify-content: center;
  }
}
.trust-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pricing Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.15));
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 40px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}
.promo-banner strong {
  color: #fbbf24;
  font-weight: 800;
}

/* Card Refund Microcopy */
.card-refund-tag {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  display: block;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 999;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.mobile-sticky-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: bold;
  border-radius: 8px;
}
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
  .mobile-sticky-bar {
    display: flex;
  }
  /* 移动端强力屏蔽 Exit-Intent 挽留弹窗，绝不展示 */
  #exit-popup, .popup-container {
    display: none !important;
  }
}

/* Exit-Intent Popup (仅桌面端) */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.popup-content {
  position: relative;
  background: #1e293b;
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 16px;
  padding: 35px 30px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.2);
  z-index: 10001;
  animation: popupFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.popup-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}
.popup-code-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed #0ea5e9;
  padding: 12px 18px;
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.popup-code-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 2px;
}
.btn-copy-code {
  background: #0ea5e9;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.btn-copy-code:hover {
  background: #0284c7;
}
.btn-copy-code.copied {
  background: #10b981;
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


