/* ==========================================================================
   龙猫云 (Longmao Cloud) - Style Architecture
   Design Aesthetic: Minimalist Anime Style (极简动漫风)
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-50: #ECFDF5;
  --primary-100: #D1FAE5;
  --primary-500: #10B981;
  --primary-600: #059669;
  --primary-700: #047857;

  --accent-blue: #3B82F6;
  --accent-purple: #6366F1;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;

  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-subtle: #F1F5F9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #F8FAFC;

  --border-light: #E2E8F0;
  --border-focus: #10B981;

  /* Typography */
  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-family-rounded: "Arial Rounded MT Bold", "Quicksand", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Elevation / Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(16, 185, 129, 0.12), 0 10px 15px -3px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Geometry */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 76px;
}

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

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

body {
  font-family: var(--font-family-base);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Helpers */
.brand-title {
  font-family: var(--font-family-rounded);
  font-weight: 900;
  background: linear-gradient(135deg, #0F172A 0%, #10B981 60%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Focus Feedback for Accessibility */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-item a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-item a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.badge-new {
  background: linear-gradient(135deg, #F59E0B, #EC4899);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  margin-left: 0.35rem;
  vertical-align: middle;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, var(--primary-600), #047857);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-700);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Dynamic Cards Grid inside Hero (Staggered Layout) */
.hero-card-stack {
  position: relative;
  width: 100%;
}

.hero-main-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}

.hero-main-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.speed-metric-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.speed-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-500);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

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

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

/* Streaming & AI Section */
.service-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.service-badge-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.service-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary-500);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border: 2px solid var(--primary-500);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-blue));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.pricing-price {
  margin: 1.25rem 0;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: top;
}

.price-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

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

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px stroke var(--bg-subtle);
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary-500);
  font-weight: 900;
}

/* FAQ Section */
.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

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

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

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

/* Right Side Floating Chapter Navigation Arrows */
.chapter-nav-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 50%;
  transform: translateY(50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.chapter-arrow-btn:hover:not(:disabled) {
  background: var(--primary-500);
  color: #FFFFFF;
  border-color: var(--primary-500);
  transform: scale(1.1);
}

.chapter-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Standalone Footer Pages & Article Page Styling */
.article-container {
  max-width: 860px;
  margin: 3rem auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

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

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.article-cta-box {
  background: linear-gradient(135deg, var(--primary-50), #EEF2FF);
  border: 2px stroke var(--primary-100);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

/* Site Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1E293B;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-links-group {
  display: flex;
  gap: 2.5rem;
}

.footer-links-group h4 {
  color: #F8FAFC;
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.footer-links-group a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links-group a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pricing-card.popular {
    transform: none;
  }
  .chapter-nav-widget {
    right: 0.75rem;
    bottom: 2rem;
    transform: none;
  }
  .chapter-arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    display: none;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.active {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-container {
    padding: 1.5rem;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
