/* Global Design System & Custom Variables */
:root {
  --primary-color: #f59e0b; /* Bright amber */
  --primary-hover: #d97706; /* Deep amber */
  --secondary-color: #e11d48; /* Red for mouse trail & highlights */
  --bg-color: #fefcf3; /* Warm light yellow cream base */
  --card-bg: rgba(255, 255, 255, 0.82); /* White glassmorphism */
  --card-border: rgba(245, 158, 11, 0.15); /* Soft yellow border */
  --text-main: #1e293b; /* Dark slate */
  --text-muted: #64748b; /* Slate gray */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  background-image: url('assets/chicken_pattern.jpg');
  background-repeat: repeat;
  background-size: 320px 320px; /* Seamless tile scaling */
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(254, 252, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-hover);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-hover);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: 0.3s;
}

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

.hero-badge {
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--primary-hover);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-hover), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #fffbeb;
  transform: translateY(-2px);
}

/* Glass Card Component */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Section Common Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Pricing Grid (Row Layout Required: 价格格式弄成一排) */
.pricing-section {
  padding: 5rem 0;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.pricing-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* Elastic floating hover transition (魔幻动下) */
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease, 
              background-color 0.4s ease;
}

/* Glass shine gradient hover sweep (亮亮的那种反射扫过) */
.pricing-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
  z-index: 2;
}

.pricing-card:hover {
  transform: translateY(-15px) scale(1.03); /* Elastic vertical lift */
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35); /* Glow shadow (亮亮暗光) */
  background: rgba(255, 255, 255, 0.9); /* Slightly more opaque glass on hover */
}

/* Run the white shine reflection sweep on hover */
.pricing-card:hover::after {
  left: 150%;
}

/* Breathing animation for featured card to look magically active (魔幻呼吸暗光) */
@keyframes featured-breathing-aura {
  0% {
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15), 0 0 10px rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35), 0 0 20px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.8);
  }
  100% {
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15), 0 0 10px rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.4);
  }
}

.pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.6);
  animation: featured-breathing-aura 3.5s infinite ease-in-out;
}

.pricing-card.featured:hover {
  animation: none; /* Disable breathing on hover and use stronger static glow */
  transform: translateY(-15px) scale(1.04);
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.55), 0 0 30px rgba(245, 158, 11, 0.3);
  background: rgba(255, 255, 255, 0.93);
}

.pricing-card.featured::before {
  content: "最受欢迎";
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--primary-hover);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
}

.price-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
}

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

.price-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.price-features li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features li::before {
  content: "✓";
  color: var(--primary-hover);
  font-weight: bold;
}

/* Features Grid */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--primary-hover);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials / User Reviews */
.testimonials-section {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-content {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

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

/* FAQ (手风琴) */
.faq-section {
  padding: 5rem 0;
}

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

.faq-item {
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary-hover);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

/* Article List Section (SEO Section) */
.blog-section {
  padding: 5rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.article-tag {
  align-self: flex-start;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--primary-hover);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-card h3 a:hover {
  color: var(--primary-hover);
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-more {
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-more:hover {
  text-decoration: underline;
}

/* Article Template Styles (Single page layout) */
.article-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 4rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

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

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-main);
  border-left: 4px solid var(--primary-color);
  padding-left: 0.75rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

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

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

.article-navigation {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 158, 11, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-nav-btn {
  text-decoration: none;
  color: var(--primary-hover);
  font-weight: 600;
  font-size: 0.95rem;
}

.article-nav-btn:hover {
  text-decoration: underline;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

.breadcrumb a:hover {
  color: var(--primary-hover);
}

/* Footer & PBN Links (Core Task 2) */
footer {
  background-color: rgba(254, 252, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 158, 11, 0.1);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-hover);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Precise PBN weight connection channel style */
.pbn-container {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(245, 158, 11, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
}

.pbn-link {
  color: rgba(30, 41, 59, 0.35); /* Super low key color to blend with footer text */
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .pricing-row {
    gap: 1rem;
  }
  .features-grid,
  .testimonials-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Pricing row layout (价格格式弄成一排 on mobile/tablet scrolling) */
  .pricing-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }
  
  .pricing-card {
    min-width: 280px;
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .nav-menu {
    display: none; /* Hide standard nav on mobile */
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }

  .features-grid,
  .testimonials-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
