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

:root {
  --bg-main: #0a0612;
  --bg-gradient: linear-gradient(145deg, #0b0716 0%, #150c2c 50%, #080410 100%);
  --bg-card: rgba(26, 16, 46, 0.6);
  --bg-card-hover: rgba(36, 22, 64, 0.85);
  --border-color: rgba(147, 51, 234, 0.15);
  --border-color-hover: rgba(147, 51, 234, 0.4);
  
  --primary: #9333ea;
  --primary-glow: rgba(147, 51, 234, 0.5);
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.4);
  --accent: #3b82f6;
  
  --text-primary: #f3f4f6;
  --text-secondary: #a78bfa;
  --text-muted: #9ca3af;
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-purple: 0 8px 32px 0 rgba(147, 51, 234, 0.15);
  --shadow-purple-glow: 0 0 25px rgba(147, 51, 234, 0.45);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-purple);
  transition: var(--transition-smooth);
}

.glass:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 40px 0 rgba(147, 51, 234, 0.25);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(to right, #ffffff, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  background: linear-gradient(to right, #ffffff, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* Layout Elements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 6, 18, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(147, 51, 234, 0.1);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 6, 18, 0.9);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.cta-btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple-glow);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 8rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-sphere {
  position: relative;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(236, 72, 153, 0.8) 50%, rgba(15, 10, 28, 0) 100%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulse 6s infinite alternate;
}

.hero-card-floating {
  position: absolute;
  width: 260px;
  padding: 1.5rem;
  background: rgba(26, 16, 46, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: float 5s infinite ease-in-out;
}

.hero-card-floating.c1 {
  top: 10%;
  left: -10%;
}

.hero-card-floating.c2 {
  bottom: 10%;
  right: -5%;
  animation-delay: 2.5s;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  text-align: left;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.2);
}

.pricing-card.popular::before {
  content: '推荐套餐';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.plan-name {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
  text-align: left;
}

.plan-features li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
}

.pricing-card .cta-btn {
  width: 100%;
}

/* User Review Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  padding: 2.5rem 2rem;
}

.review-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-secondary);
}

.review-info h4 {
  font-size: 1rem;
  color: white;
}

.review-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: rgba(15, 10, 28, 0.4);
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--secondary);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Article Section (SEO Blog) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card:hover .blog-link {
  color: var(--secondary);
}

/* Individual Article Page Elements */
.article-header {
  padding-top: 10rem;
  padding-bottom: 3rem;
  text-align: center;
}

.article-meta-large {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
}

.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #d1d5db;
}

.article-body h2 {
  font-size: 1.75rem;
  text-align: left;
  margin: 2.5rem 0 1.25rem;
  color: white;
}

.article-body h2::after {
  display: none;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body a {
  color: var(--text-secondary);
  text-decoration: underline;
  font-weight: 600;
}

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

.article-footer {
  border-top: 1px solid rgba(147, 51, 234, 0.2);
  margin-top: 4rem;
  padding-top: 2rem;
}

.related-articles {
  margin-top: 4rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background: #06040b;
  border-top: 1px solid rgba(147, 51, 234, 0.15);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Response Utilities */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-content p { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-image { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  section { padding: 4rem 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 6, 18, 0.95);
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-container .cta-btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
