/* ==========================================================================
   奈云 NAIYUN.NET / naiyun1.sbs - Global CSS Stylesheet
   Design Aesthetic: Dark Aurora Glassmorphism & High-Converting Tech Theme
   ========================================================================== */

:root {
  --bg-dark: #070913;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(139, 92, 246, 0.4);
  
  --primary-purple: #8b5cf6;
  --primary-blue: #3b82f6;
  --primary-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-gold: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gradient-aurora: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-btn: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --gradient-btn-hover: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 35px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

 /* Background Ambient Glow Lights & Cyber Cloud Layers */
body {
  background-color: var(--bg-dark);
  background-image: url('../images/cloud-bg-pattern.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Floating animated background clouds */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/cloud-bg-pattern.svg') no-repeat center top / cover;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: floatCloud 20s ease-in-out infinite alternate;
}

@keyframes floatCloud {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-20px) scale(1.03); }
}

/* Canvas for Mouse Cursor Trail (鼠标尾翼特效) */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* Background Ambient Glow Lights */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

.glow-1 {
  top: -100px;
  left: 10%;
  background: radial-gradient(circle, var(--primary-purple), transparent 70%);
}

.glow-2 {
  top: 400px;
  right: 5%;
  background: radial-gradient(circle, var(--primary-cyan), transparent 70%);
}

.glow-3 {
  top: 1500px;
  left: 15%;
  background: radial-gradient(circle, var(--primary-blue), transparent 70%);
}

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

/* Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 19, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.logo-icon img, .logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text span {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.nav-links a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

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

/* Primary CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

/* Hero Section */
.hero-section {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

/* Feature Cards Section */
.section-padding {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--primary-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #a78bfa;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   一排价格卡片布局 (Pricing Single Row Layout)
   ========================================================================== */
.pricing-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 10px 5px 35px 5px;
  /* Scrollbar aesthetics */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-purple) var(--bg-dark);
}

.pricing-wrapper::-webkit-scrollbar {
  height: 8px;
}

.pricing-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.pricing-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-purple);
  border-radius: 4px;
}

.pricing-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  min-width: max-content;
}

.pricing-card {
  flex: 0 0 280px;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border: 2px solid var(--primary-purple);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
  background: rgba(24, 24, 47, 0.8);
  transform: translateY(-8px);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.25);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-aurora);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

.pricing-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 40px;
}

.pricing-price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-cyan);
}

.amount {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
}

.period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

.pricing-card .btn-primary, .pricing-card .btn-secondary {
  width: 100%;
}

/* Articles Directory Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

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

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.article-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
  background: #0f172a;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.article-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

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

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

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-purple);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.article-link:hover {
  color: #c084fc;
  gap: 10px;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
}

.review-stars {
  color: #f59e0b;
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

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

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

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

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

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

/* FAQ Section (Accordion) */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.active {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(20, 27, 45, 0.9);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--primary-cyan);
  flex-shrink: 0;
}

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

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.5rem 1.8rem;
}

/* Footer Section */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

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

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

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

/* ==========================================================================
   核心任务 2：页脚 PBN 权重输血友情链接区 (PBN Link Injection Area)
   ========================================================================== */
.footer-pbn-area {
  padding: 1.2rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  text-align: center;
}

.pbn-links-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.pbn-links-wrapper label {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pbn-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
  border-bottom: 1px dotted rgba(100, 116, 139, 0.4);
}

.pbn-link:hover {
  color: var(--primary-cyan);
  border-bottom-color: var(--primary-cyan);
}

.footer-bottom {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Article Detail Page Styles */
.article-page {
  padding-top: 130px;
  padding-bottom: 80px;
}

.article-header {
  max-width: 860px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(12px);
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  color: var(--text-main);
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  color: var(--text-main);
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
}

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

.article-content ul, .article-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

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

.article-cta-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.article-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

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

/* Mobile Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .pricing-row {
    justify-content: flex-start;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 19, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .article-content {
    padding: 1.8rem 1.2rem;
  }
}
