/* ==========================================================================
   良心云 (LiangXinYun) - Design System & Master Stylesheet
   Theme: Modern Light Cloud & Sky Blue Palette
   ========================================================================== */

:root {
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-light: #e6f0ff;
  --secondary: #00c853;
  --accent: #7c4dff;
  --bg-main: #f4f8fc;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 102, 255, 0.1);
  --shadow-lg: 0 16px 32px rgba(0, 102, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

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

/* Side Cloud Background Decorations (Left & Right) */
.side-cloud {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.side-cloud-left {
  left: 0;
  background: radial-gradient(circle at left center, rgba(0, 102, 255, 0.08), transparent 70%);
}

.side-cloud-right {
  right: 0;
  background: radial-gradient(circle at right center, rgba(0, 102, 255, 0.08), transparent 70%);
}

.cloud-svg-floating {
  position: absolute;
  fill: rgba(0, 102, 255, 0.05);
  animation: floatCloud 12s infinite ease-in-out;
}

.cloud-left-1 { top: 15%; left: -20px; width: 140px; animation-delay: 0s; }
.cloud-left-2 { top: 55%; left: -30px; width: 180px; animation-delay: 4s; }
.cloud-right-1 { top: 25%; right: -20px; width: 160px; animation-delay: 2s; }
.cloud-right-2 { top: 70%; right: -30px; width: 150px; animation-delay: 6s; }

@keyframes floatCloud {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.05); }
}

/* Main Container Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Header & Navigation (HuaNaYun style light theme) */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-primary {
  background: linear-gradient(135deg, #0066ff, #0044cc);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-recommend {
  background: linear-gradient(135deg, #7c4dff, #6200ea);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.3);
}

.btn-recommend:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, rgba(230, 240, 255, 0.6) 0%, rgba(244, 248, 252, 0) 100%);
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #0066ff 0%, #7c4dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

/* 4 Promo Cards Row (HuaNaYun style) */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.promo-card {
  background: var(--bg-card);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.promo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.promo-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.promo-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.promo-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Section Title Common */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

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

/* Pricing Section - SINGLE ROW MANDATORY FORMAT */
.pricing-section {
  padding: 70px 0;
}

.pricing-row-wrapper {
  overflow-x: auto;
  padding: 10px 5px 25px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.pricing-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  min-width: 100%;
}

.pricing-card {
  flex: 1 1 260px;
  min-width: 250px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, #0066ff, #7c4dff);
  color: #fff;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.pricing-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px dashed #edf2f7;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* SEO Articles Section & Internal Routing */
.articles-section {
  padding: 70px 0;
  background: rgba(255, 255, 255, 0.7);
}

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

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.article-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  width: fit-content;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

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

.article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* User Reviews Section */
.reviews-section {
  padding: 70px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #ffb800;
  margin-bottom: 12px;
  font-size: 16px;
}

.review-text {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 16px;
  font-style: italic;
}

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.user-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 70px 0;
  background: rgba(255, 255, 255, 0.7);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  transition: var(--transition);
}

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

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* Article Detail Page Specifics */
.article-page {
  padding: 50px 0;
}

.article-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.article-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--primary);
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
}

.article-content li {
  margin-bottom: 8px;
  font-size: 15px;
}

.article-cta-box {
  background: linear-gradient(135deg, #e6f0ff, #f0f6ff);
  border: 1px solid #b3d4ff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
  text-align: center;
}

/* Core Task 2: PBN Footer Link Injection Requirement */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 30px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

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

.footer-nav a:hover {
  color: #ffffff;
}

/* Strict PBN Friend Links Container inside Footer */
.pbn-links-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  width: 100%;
  max-width: 600px;
}

.pbn-links-area span {
  color: #475569;
}

.pbn-links-area a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  font-size: 12px;
  color: #475569;
}

/* Responsive Layout Breakpoints */
@media (max-width: 1024px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .pricing-row-wrapper {
    overflow-x: scroll;
  }
  .pricing-row {
    flex-wrap: nowrap;
  }
  .side-cloud {
    display: none;
  }
}
