/* ==========================================================================
   梦想云 (Mengxiangyun.cyou) - 核心设计系统与整体样式
   Aesthetic: Cosmic Dream Cloud, Neon Glow, Glassmorphism, Micro-Animations
   ========================================================================== */

:root {
  --bg-dark: #070914;
  --bg-card: rgba(18, 22, 48, 0.65);
  --bg-card-hover: rgba(28, 35, 75, 0.8);
  --border-light: rgba(168, 85, 247, 0.18);
  --border-glow: rgba(59, 130, 246, 0.4);
  
  --primary-purple: #a855f7;
  --primary-blue: #3b82f6;
  --primary-cyan: #06b6d4;
  --primary-rose: #f43f5e;
  --accent-gold: #fbbf24;
  
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 35px rgba(168, 85, 247, 0.25);
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  background: 
    radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(59, 130, 246, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    var(--bg-dark);
  background-attachment: fixed;
}

/* Canvas background & Mouse Trail Canvas */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Title Styling */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  color: var(--primary-purple);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-sub);
}

/* Glass Card Baseline */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 800;
}

.brand-logo img {
  width: 40px;
  height: 40px;
}

.brand-logo span {
  background: linear-gradient(135deg, #fff 0%, var(--primary-purple) 50%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Primary CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

/* Secondary Outer Link CTA Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 6rem 0 4rem 0;
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: floatBadge 3s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-sub);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-features-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  max-width: 950px;
  margin: 0 auto;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-pill svg {
  color: var(--primary-cyan);
}

/* ==========================================================================
   Pricing Section (一排格式 / Single-Row Horizontal Cards)
   ========================================================================== */
.pricing-section {
  padding: 5rem 0;
}

.pricing-row-wrapper {
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-purple) transparent;
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 1.5rem;
  min-width: 1000px;
}

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

.pricing-card.popular {
  border-color: var(--primary-purple);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, rgba(18, 22, 48, 0.8) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary-rose), var(--primary-purple));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.plan-features li svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   Articles Showcase Grid (SEO / GEO Content)
   ========================================================================== */
.articles-section {
  padding: 5rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--primary-cyan);
  font-weight: 600;
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #fff;
  transition: var(--transition-fast);
}

.article-card:hover .article-card-title {
  color: var(--primary-purple);
}

.article-excerpt {
  font-size: 0.925rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.article-keywords-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.kw-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-sub);
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Testimonials (用户评价)
   ========================================================================== */
.testimonials-section {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  padding: 1.75rem;
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.review-text {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.user-details .name {
  font-weight: 700;
  font-size: 0.95rem;
}

.user-details .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section (常见问题)
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
}

.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-purple);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--primary-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  background: rgba(10, 13, 30, 0.6);
  padding: 0 1.5rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Footer & PBN Dofollow SEO Section
   ========================================================================== */
.site-footer {
  background: rgba(4, 5, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 0 2rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.footer-nav-group {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

.footer-col a {
  color: var(--text-sub);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-cyan);
}

/* PBN Explicit Dofollow Links Container */
.pbn-links-area {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pbn-links-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.pbn-link-item {
  color: rgba(148, 163, 184, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.pbn-link-item:hover {
  color: var(--primary-purple);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Article Detail Page Layout Styling
   ========================================================================== */
.article-page {
  padding: 4rem 0 6rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--primary-cyan);
  text-decoration: none;
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.article-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
}

.article-content h2 {
  font-size: 1.75rem;
  color: #fff;
  margin: 2.25rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.article-content h3 {
  font-size: 1.35rem;
  color: var(--primary-cyan);
  margin: 1.75rem 0 0.75rem 0;
}

.article-content p {
  margin-bottom: 1.25rem;
}

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

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

.article-cta-box {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid var(--primary-purple);
  border-radius: var(--radius-md);
  text-align: center;
}

.article-cta-box h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-cta-box p {
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.internal-links-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.internal-links-nav h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.internal-link-card {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--primary-cyan);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.internal-link-card:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #fff;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .pricing-row {
    grid-template-columns: repeat(4, 280px);
  }
  .article-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Can be toggled via JS mobile menu */
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-features-bar {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-top {
    flex-direction: column;
  }
}
