/* ==========================================================================
   龙猫云机场 - 森之庇护风 (Forest Guardian Style) Core Stylesheet
   ========================================================================== */

:root {
  /* Color Palette - 森之庇护风 */
  --bg-primary: #0F1715;        /* 雨林幽绿 (主背景 60%) */
  --bg-secondary: #14201D;      /* 较浅雨林绿 */
  --card-bg: rgba(26, 38, 35, 0.75); /* 苔藓深石青 (表面/卡片色 20%) */
  --card-bg-solid: #1A2623;
  --card-border: rgba(232, 239, 234, 0.12);
  --card-border-hover: rgba(245, 158, 11, 0.4);
  
  --text-main: #E8EFEA;         /* 冷杉原白 (主文本 10%) */
  --text-muted: #A3B8AD;        /* 柔暖灰绿 */
  --text-dark: #1C2E26;         /* 苍松墨绿 */
  
  --accent-cta: #F59E0B;        /* 向阳暖金橙 (强调/CTA 10%) */
  --accent-cta-hover: #D97706;
  --accent-mint: #10B981;       /* 嫩芽薄荷绿 (在线/低延迟) */
  --accent-acorn: #854D0E;      /* 橡果暖褐 */
  --accent-glow: rgba(245, 158, 11, 0.25);
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.2);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #F3F6F4;        /* 晨雾浅绿白 */
  --bg-secondary: #E8EFEB;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-bg-solid: #FFFFFF;
  --card-border: rgba(28, 46, 38, 0.08);
  --card-border-hover: rgba(245, 158, 11, 0.5);
  --text-main: #1C2E26;         /* 苍松墨绿 */
  --text-muted: #4A6358;
  --shadow-soft: 0 12px 36px rgba(28, 46, 38, 0.08);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Dynamic Forest Canvas & Image Background */
#forest-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: url('../images/totoro-forest-bg.svg') center center / cover no-repeat;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 21, 0.4) 0%, rgba(15, 23, 21, 0.85) 75%);
  z-index: 0;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-mint);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
}

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

.accent-text {
  color: var(--accent-cta);
}

/* Top Announcement Banner */
.top-banner {
  background: linear-gradient(90deg, #854D0E 0%, #F59E0B 50%, #10B981 100%);
  color: #FFFFFF;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 100;
}

.top-banner-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.top-banner-btn {
  background: #FFFFFF;
  color: #854D0E;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.top-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 23, 21, 0.8);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-cta), var(--accent-mint));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px var(--accent-glow);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cta);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Primary CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-cta) 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(232, 239, 234, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(232, 239, 234, 0.15);
  border-color: rgba(232, 239, 234, 0.3);
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-cta);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cta);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Glass Card Global Class */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
}

/* Section Padding */
.section {
  padding: 80px 0;
}

/* 1. Node Status Section */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.node-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  background: rgba(26, 38, 35, 0.95);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-flag {
  font-size: 1.6rem;
}

.node-name {
  font-weight: 700;
  font-size: 1rem;
}

.node-type {
  font-size: 0.75rem;
  color: var(--accent-mint);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
}

.node-ping-wrap {
  text-align: right;
}

.node-ping {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-mint);
}

.node-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-mint);
  margin-right: 6px;
}

/* 2. Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

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

.pricing-card.popular {
  border: 2px solid var(--accent-cta);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cta);
  color: #FFFFFF;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.pricing-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-cta);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.pricing-features li svg {
  color: var(--accent-mint);
  flex-shrink: 0;
}

/* 3. Core Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  text-align: left;
}

.advantage-icon {
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-cta);
  margin-bottom: 20px;
}

.advantage-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.advantage-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 4. FAQ Section */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--accent-cta);
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.3s ease-in-out;
  padding: 0 24px 20px;
}

/* 5. Articles Grid (Knowledge Base) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.article-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cta);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.article-card:hover .article-title {
  color: var(--accent-cta);
}

.article-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-mint);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.article-link:hover {
  transform: translateX(4px);
  color: var(--accent-cta);
}

/* 6. User Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--accent-cta);
  margin-bottom: 14px;
  font-size: 1rem;
}

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

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

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
}

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

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

/* Banner CTA Block */
.banner-cta-block {
  background: linear-gradient(135deg, rgba(26, 38, 35, 0.9) 0%, rgba(15, 23, 21, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* Footer */
.footer {
  background: rgba(10, 15, 14, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent-cta);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 239, 234, 0.05);
  font-size: 0.85rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
  .pricing-grid, .advantages-grid, .articles-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.popular { transform: none; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .advantages-grid, .articles-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
