/*
 * Global CSS for Xianluwan (仙路湾) - Magical Fairyland Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Outfit:wght@300;400;600;700&display=swap');

:root {
  /* Color Palette - Magical Fairyland */
  --bg-dark-1: #090615;
  --bg-dark-2: #05100e;
  --bg-dark-3: #080a1c;
  --bg-card: rgba(13, 11, 28, 0.7);
  --bg-card-hover: rgba(22, 18, 48, 0.85);
  
  --primary-glow: #5dfdcb; /* Emerald/Mint Fairy Light */
  --secondary-glow: #a17fe6; /* Mystical Violet */
  --accent-gold: #ffd700; /* Rich Gold */
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  
  --border-glow: rgba(93, 253, 203, 0.2);
  --border-glow-active: rgba(161, 127, 230, 0.6);
  
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default; /* We will use custom mouse trail, keeping default for normal text */
}

a, button, select, summary, .interactive {
  cursor: pointer; /* Pointer cursor for interactive elements */
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, rgba(9, 6, 21, 0.75) 0%, rgba(5, 16, 14, 0.85) 50%, rgba(8, 10, 28, 0.9) 100%), url('images/fairy_background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Magical Background Aura Shapes */
body::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(93, 253, 203, 0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: float-aura 20s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(161, 127, 230, 0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: float-aura 25s infinite alternate-reverse ease-in-out;
}

@keyframes float-aura {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Mouse Particle Canvas Layer */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none; /* Let clicks pass through */
}

/* Structure & Layout */
header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(45deg, var(--accent-gold), var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(93, 253, 203, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo span {
  font-size: 0.8rem;
  border: 1px solid var(--primary-glow);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0;
  -webkit-text-fill-color: var(--primary-glow);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-glow);
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--primary-glow);
}

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

nav a:hover::after {
  width: 100%;
}

.nav-btn {
  background: rgba(93, 253, 203, 0.1);
  border: 1px solid var(--primary-glow);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  color: var(--primary-glow) !important;
  font-weight: bold;
}

.nav-btn:hover {
  background: var(--primary-glow);
  color: var(--bg-dark-1) !important;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Hero Section */
.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--text-light) 30%, var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Call to Action Buttons with Glowing Breathing Effects ("亮下亮下") */
.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-glowing {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Golden Cultivation Magic Button (Primary) */
.btn-primary-fairy {
  color: var(--bg-dark-1);
  background: linear-gradient(45deg, var(--accent-gold), var(--primary-glow));
  box-shadow: 0 0 15px rgba(93, 253, 203, 0.4);
  animation: breathing-glow-gold 3s infinite ease-in-out;
}

.btn-primary-fairy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  z-index: -1;
}

.btn-primary-fairy:hover::before {
  left: 120%;
}

.btn-primary-fairy:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 30px var(--primary-glow), 0 0 10px var(--accent-gold);
}

/* Violet Cultivation Magic Button (Secondary) */
.btn-secondary-fairy {
  color: var(--text-light);
  background: rgba(161, 127, 230, 0.15);
  border: 1px solid var(--secondary-glow);
  box-shadow: 0 0 10px rgba(161, 127, 230, 0.2);
  animation: breathing-glow-violet 4s infinite ease-in-out;
}

.btn-secondary-fairy:hover {
  transform: translateY(-3px);
  background: rgba(161, 127, 230, 0.3);
  box-shadow: 0 0 25px var(--secondary-glow);
}

/* Keyframes for breathing glows ("亮下亮下") */
@keyframes breathing-glow-gold {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), 0 0 5px rgba(93, 253, 203, 0.2);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.7), 0 0 15px rgba(93, 253, 203, 0.5);
    filter: brightness(1.15);
  }
}

@keyframes breathing-glow-violet {
  0%, 100% {
    box-shadow: 0 0 10px rgba(161, 127, 230, 0.2), 0 0 2px rgba(93, 253, 203, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(161, 127, 230, 0.6), 0 0 10px rgba(93, 253, 203, 0.3);
  }
}

@keyframes card-neon-border {
  0%, 100% {
    border-color: rgba(93, 253, 203, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(93, 253, 203, 0.05);
  }
  50% {
    border-color: rgba(161, 127, 230, 0.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(161, 127, 230, 0.25), 0 0 10px rgba(93, 253, 203, 0.15);
  }
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(to right, var(--text-light), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-title::after {
  content: '✦ ✦ ✦';
  display: block;
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-top: 0.5rem;
  letter-spacing: 5px;
}

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

.fairy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
}

.fairy-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  animation: card-neon-border 4s infinite ease-in-out;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.fairy-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.fairy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Pricing Section - Horizontal Layout ("一排") */
.pricing-container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.pricing-card {
  flex: 1;
  background: linear-gradient(180deg, rgba(16, 12, 36, 0.8), rgba(6, 18, 16, 0.8));
  border: 1px solid var(--border-glow);
  padding: 3rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Breathing Neon Border Animation for ALL Pricing Cards */
.pricing-card {
  animation: card-neon-border 5s infinite ease-in-out;
}

/* Recommended card has a faster/stronger animation & badge */
.pricing-card.popular {
  transform: scale(1.03);
  border-color: rgba(93, 253, 203, 0.4);
  background: linear-gradient(180deg, rgba(24, 18, 54, 0.85), rgba(7, 28, 24, 0.85));
  animation: card-neon-border 3.5s infinite ease-in-out;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.popular:hover {
  transform: translateY(-10px) scale(1.05);
}

.badge-fairy {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-glow));
  color: var(--bg-dark-1);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px var(--primary-glow);
}

.pricing-card h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.pricing-card .subtitle {
  font-size: 0.85rem;
  color: var(--primary-glow);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: normal;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-card ul li {
  padding: 8px 0;
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card ul li::before {
  content: '✦';
  color: var(--primary-glow);
}

.pricing-card ul li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.pricing-card ul li.disabled::before {
  content: '✧';
  color: var(--text-muted);
}

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

.review-card {
  background: rgba(10, 8, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.review-card:hover {
  border-color: rgba(93, 253, 203, 0.2);
  transform: translateY(-5px);
}

.review-stars {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  position: relative;
}

.review-text::before {
  content: '“';
  font-size: 3rem;
  color: rgba(93, 253, 203, 0.15);
  position: absolute;
  top: -20px;
  left: -15px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.review-info h4 {
  font-size: 0.95rem;
  color: var(--text-light);
}

.review-info span {
  font-size: 0.8rem;
  color: var(--primary-glow);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(13, 11, 28, 0.4);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(93, 253, 203, 0.2);
}

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

.faq-question::after {
  content: '✦';
  font-size: 0.8rem;
  color: var(--primary-glow);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
  transition: max-height 0.5s ease-in-out;
}

/* Article List Preview */
.articles-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: rgba(10, 8, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(161, 127, 230, 0.3);
}

.article-thumbnail {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.article-card:hover .article-thumbnail img {
  transform: scale(1.06);
}

.article-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--primary-glow);
  color: var(--primary-glow);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.article-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.article-link {
  color: var(--primary-glow);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.article-link:hover {
  color: var(--accent-gold);
}

/* Footer Section - PBN weight alignment */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #05040a;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-pbn {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.footer-pbn span {
  color: rgba(255, 255, 255, 0.4);
}

/* Precise SEO Target Anchor Link Styling - MUST blend with page aesthetics */
.footer-pbn a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-pbn a:hover {
  color: var(--primary-glow);
  text-decoration: underline;
  text-shadow: 0 0 8px var(--primary-glow);
}

.copyright {
  color: rgba(255,255,255,0.3);
}

/* Detailed Article Page Layout Styles */
.article-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--primary-glow);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.article-header h1 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  color: var(--text-light);
  line-height: 1.3;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  background: rgba(13, 11, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.article-content h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-light);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-glow);
  padding-left: 15px;
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

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

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

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

.article-content strong {
  color: var(--accent-gold);
}

/* Article Internal Linking */
.article-content a {
  color: var(--primary-glow);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.article-content a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 5px var(--accent-gold);
}

.article-footer-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(93, 253, 203, 0.05), rgba(161, 127, 230, 0.05));
  border: 1px dashed var(--border-glow);
}

.article-footer-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .pricing-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pricing-card {
    flex: none;
    width: calc(50% - 1rem);
    margin-bottom: 1.5rem;
  }
  
  .pricing-card.popular {
    transform: scale(1);
    order: -1; /* Put standard/popular package at top visually if needed */
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-10px) scale(1.02);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding: 4rem 1rem 3rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .pricing-card {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .article-content {
    padding: 1.5rem;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
}
