/* ==========================================================================
   龙猫云 (Totoro Cloud) - 极简动漫风 (Minimalist Anime Aesthetic) 样式表
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --primary-dark: #1b4332;
  --primary: #2d6a4f;
  --primary-medium: #40916c;
  --primary-light: #52b788;
  --primary-soft: #74c69d;
  --primary-tint: #d8f3dc;
  --primary-bg: #f4f9f4;
  
  --accent-gold: #ffb703;
  --accent-warm: #fb8500;
  --accent-soft-gold: #fff3b0;

  --text-main: #1d2a24;
  --text-muted: #52635a;
  --text-light: #7b8e84;

  --bg-main: #fcfdfa;
  --bg-card: #ffffff;
  --bg-alt: #f1f6f2;

  --border-color: #e2ede5;
  --border-hover: #b7e4c7;

  --shadow-sm: 0 4px 12px rgba(27, 67, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 16px 36px rgba(27, 67, 50, 0.12);
  --shadow-float: 0 12px 30px rgba(45, 106, 79, 0.2);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

/* Section Titles */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background-color: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

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

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.btn-secondary {
  background-color: var(--primary-tint);
  color: var(--primary-dark) !important;
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-light);
  color: var(--primary-dark) !important;
}

.btn-outline:hover {
  background-color: var(--primary-tint);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  min-height: 38px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(252, 253, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

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

.logo-img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.98rem;
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-link.highlight {
  color: var(--primary-dark);
  background-color: var(--primary-tint);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.nav-link.highlight::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px 0;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 80% 20%, #e8f5e9 0%, rgba(252,253,250,0) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.hero-badge .sparkle {
  color: var(--accent-gold);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

.hero-title span {
  color: var(--primary-medium);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-features-list item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-features-list svg {
  color: var(--primary-light);
}

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

.hero-card-stack {
  width: 100%;
  max-width: 520px;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
  padding: 12px;
  border: 1px solid var(--border-hover);
  animation: floatAnime 6s ease-in-out infinite;
}

@keyframes floatAnime {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Core Advantages Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

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

/* Streaming & AI Section */
.services-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-box {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.service-box-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.service-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.service-tag svg {
  width: 20px;
  height: 20px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

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

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

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-warm));
  color: #ffffff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(251, 133, 0, 0.3);
}

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

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 30px;
  flex-grow: 1;
}

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

.pricing-features svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-cta .btn {
  width: 100%;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  background-color: var(--primary-bg);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--primary);
  color: #ffffff;
}

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

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

/* Right Side Floating Section Nav Arrows */
.section-nav-arrows {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-hover);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.nav-arrow-btn:hover:not(:disabled) {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: var(--shadow-float);
}

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

/* Footer Section */
.site-footer {
  background-color: var(--primary-dark);
  color: #e2ede5;
  padding: 60px 0 40px 0;
  border-top: 1px solid var(--primary-medium);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 24px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-desc {
  font-size: 0.95rem;
  color: #b7e4c7;
}

.footer-nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.footer-nav-link:hover {
  color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 0.875rem;
  color: #95d5b2;
}

/* Knowledge Base & Article Styling */
.kb-header {
  padding: 60px 0 40px 0;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.article-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.article-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 14px;
}

.article-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Single Article Layout */
.article-detail-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 20px;
}

.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-content {
  background: #ffffff;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 36px 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-tint);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-medium);
  margin: 28px 0 14px 0;
}

.article-content p {
  margin-bottom: 20px;
}

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

.article-content ul li {
  list-style-type: disc;
  margin-bottom: 8px;
}

.article-content ol li {
  list-style-type: decimal;
  margin-bottom: 8px;
}

.article-cta-box {
  background: linear-gradient(135deg, var(--primary-tint) 0%, #e8f5e9 100%);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.article-cta-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* User Reviews module - hidden as specified when unverified */
.reviews-section-hidden {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .features-grid, .pricing-grid, .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }

  .main-nav {
    display: none; /* Accessible mobile drawer toggle if needed */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-features-list {
    justify-content: center;
  }

  .features-grid, .services-showcase, .pricing-grid, .article-grid {
    grid-template-columns: 1fr;
  }

  .section-nav-arrows {
    right: 12px;
    bottom: 80px;
  }

  .nav-arrow-btn {
    width: 40px;
    height: 40px;
  }

  .article-content {
    padding: 24px;
  }

  .article-title {
    font-size: 1.8rem;
  }
}

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