/* ========================================
   大地成长陪伴生态系统 — Brand CSS
   Warm Minimal · Organic Modern · Dreamy Glow
   ======================================== */
:root {
  --color-bg-warm:        #FFFBF5;
  --color-bg-warm-deep:   #F5F0E6;
  --color-bg-cream:       #FFF8EE;
  --color-bg-ivory:       #FFFAF2;
  --color-bg-soft-green:  #F0F5ED;
  --color-primary:        #73A867;
  --color-primary-light:  #A3CC9A;
  --color-primary-dark:   #4E8A42;
  --color-primary-pale:   #E8F2E5;
  --color-accent:         #D4A853;
  --color-accent-light:   #E8C87A;
  --color-accent-pale:    #FDF3DE;
  --color-heading:        #5A4A38;
  --color-body:           #6B5D4F;
  --color-caption:        #7A6B59;
  --color-caption-faint:  rgba(122,107,89,0.5);
  --color-footer-bg:      #2D3B2E;
  --color-footer-text:    #D4DDD4;
  --color-footer-heading: #E8F2E5;
  --color-white:          #FFFFFF;
  --color-white-80:       rgba(255,255,255,0.8);
  --color-white-60:       rgba(255,255,255,0.6);
  --color-white-30:       rgba(255,255,255,0.3);
  --color-white-15:       rgba(255,255,255,0.15);
  --color-glow-green:     rgba(115,168,103,0.4);
  --color-glow-gold:      rgba(212,168,83,0.35);
  --font-sans:  'Noto Sans SC','HarmonyOS Sans','PingFang SC','Microsoft YaHei',sans-serif;
  --font-serif: 'Noto Serif SC','Source Han Serif SC',serif;
  --text-h1-size:    clamp(28px,3.5vw,48px);
  --text-h1-weight:  700;
  --text-h2-size:    clamp(20px,2.2vw,32px);
  --text-h2-weight:  600;
  --text-h3-size:    clamp(16px,1.4vw,22px);
  --text-h3-weight:  500;
  --text-body-size:  clamp(14px,1vw,17px);
  --text-body-weight: 400;
  --text-caption-size:  clamp(12px,0.85vw,14px);
  --text-tag-size:   13px;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;
  --shadow-soft:    0 2px 16px rgba(90,74,56,0.06);
  --shadow-card:    0 4px 24px rgba(90,74,56,0.08);
  --shadow-hover:   0 8px 32px rgba(90,74,56,0.12);
  --shadow-glow-green: 0 0 40px rgba(115,168,103,0.3);
  --shadow-glow-gold:  0 0 40px rgba(212,168,83,0.25);
  --glow-size:    120px;
  --glow-outer:   0 0 60px rgba(115,168,103,0.25), 0 0 120px rgba(115,168,103,0.1);
  --glow-inner:   inset 0 0 30px rgba(255,255,255,0.6);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.75;
  color: var(--color-body);
  background: var(--color-bg-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
}
h1 { font-family: var(--font-sans); font-size: var(--text-h1-size); font-weight: var(--text-h1-weight); color: var(--color-heading); line-height: 1.3; margin: 0; }
h2 { font-family: var(--font-sans); font-size: var(--text-h2-size); font-weight: var(--text-h2-weight); color: var(--color-primary); line-height: 1.4; margin: 0; }
h3 { font-family: var(--font-sans); font-size: var(--text-h3-size); font-weight: var(--text-h3-weight); color: var(--color-caption); margin: 0; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s, text-decoration 0.3s; }
a:hover { color: var(--color-primary-dark); }

/* ── Section ── */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(115,168,103,0.3);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 24px rgba(115,168,103,0.4);
  transform: translateY(-2px);
  color: var(--color-white);
  text-decoration: none;
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  font-size: var(--text-tag-size);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-weight: 500;
}

/* ── Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(90,74,56,0.1), 0 2px 8px rgba(90,74,56,0.06);
  transition: all 0.4s ease;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.01);
}
.card-lift {
  transition: all 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ── Leaf Divider ── */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.leaf-divider::before,
.leaf-divider::after {
  content: '';
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
  border-radius: 1px;
}

/* ── Navigation ── */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(115,168,103,0.1);
  transition: box-shadow 0.3s;
}
.nav-fixed.scrolled {
  box-shadow: var(--shadow-soft);
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-heading);
  transition: color 0.3s;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.nav-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open {
  max-height: 400px;
}

/* ── Hero Animations ── */
@keyframes hero-fade-left {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}
.hero-line {
  opacity: 0;
  animation: hero-fade-left 0.8s ease forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.5s; }
.hero-line:nth-child(3) { animation-delay: 0.8s; }
.hero-line:nth-child(4) { animation-delay: 1.1s; }
.hero-subtitle {
  opacity: 0;
  animation: hero-fade-left 0.8s ease forwards;
  animation-delay: 1.4s;
}
.hero-body {
  opacity: 0;
  animation: hero-fade-left 0.8s ease forwards;
  animation-delay: 1.7s;
}
.hero-tags {
  opacity: 0;
  animation: hero-fade-left 0.8s ease forwards;
  animation-delay: 2.0s;
}
.hero-cta {
  opacity: 0;
  animation: hero-fade-left 0.8s ease forwards;
  animation-delay: 2.3s;
}
.hero-image {
  opacity: 0;
  animation: hero-fade-left 0.8s ease forwards;
  animation-delay: 1.0s;
}

/* ── Tree Animations ── */
@keyframes tree-crown-expand {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.tree-crown-anim {
  animation: tree-crown-expand 1.2s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(115,168,103,0.2), 0 0 40px rgba(115,168,103,0.08); }
  50% { box-shadow: 0 0 40px rgba(115,168,103,0.4), 0 0 80px rgba(115,168,103,0.15); }
}

.tree-orb {
  opacity: 0;
  transition: all 0.4s ease;
}
.tree-orb.visible {
  opacity: 1;
}
.tree-orb:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: 0 0 40px rgba(115,168,103,0.5), 0 0 80px rgba(115,168,103,0.2);
}

/* ── Planet / Orbit ── */
@keyframes planet-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes golden-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(212,168,83,0.3), 0 0 80px rgba(212,168,83,0.1); }
  50% { box-shadow: 0 0 60px rgba(212,168,83,0.5), 0 0 120px rgba(212,168,83,0.2); }
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.planet-node {
  opacity: 0;
  transition: all 0.5s ease;
}
.planet-node.visible {
  opacity: 1;
}
.planet-node:hover .planet-circle {
  box-shadow: 0 0 30px rgba(212,168,83,0.6), 0 0 60px rgba(212,168,83,0.25);
  transform: scale(1.15);
}

/* ── Particles ── */
@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
  50% { transform: translateY(-10px) translateX(-5px); opacity: 0.4; }
  75% { transform: translateY(-25px) translateX(15px); opacity: 0.5; }
}
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  animation: float-particle 6s ease-in-out infinite;
  pointer-events: none;
}

/* ── Photo Circles ── */
.photo-circle {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}
.photo-circle.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Phone Mockup ── */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg-warm);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-home-indicator {
  width: 100px;
  height: 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* ── Flow Chart ── */
@keyframes flow-dash {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}
.flow-line-animated {
  stroke-dasharray: 10 10;
  animation: flow-dash 1s linear infinite;
}
.flow-node {
  transition: all 0.3s ease;
}
.flow-node:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(115,168,103,0.5);
}

/* ── Sparkle ── */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 64px 16px; }
  :root { --glow-size: 80px; }
  .phone-mockup { width: 220px; height: 440px; border-radius: 32px; padding: 10px; }
  .phone-screen { border-radius: 24px; }
  .phone-notch { width: 100px; height: 24px; border-radius: 0 0 14px 14px; }
  .calendar-cards .card { min-width: 0 !important; width: 100% !important; height: 160px !important; }
  .phone-mockup-section .phone-mockup { width: 260px; height: 520px; }

  /* AI flow: smaller nodes on tablet */
  .ai-flow-container .flow-node div:first-child { width: 60px !important; height: 60px !important; }
  .ai-flow-container .flow-node svg { width: 22px !important; height: 22px !important; }
  .ai-flow-container .flow-node span { font-size: 11px !important; }

  /* Ecosystem orbs: smaller on tablet */
  .ecosystem-content .orb-float div:first-child div:first-child { width: 64px !important; height: 64px !important; }
  .ecosystem-content .orb-float div:first-child div:first-child + div { width: 64px !important; height: 64px !important; }

  /* Grandchild section: image height smaller */
  #grandchild .card div[style*="height:200px"] { height: 160px !important; }

  /* CTA section: reduce padding */
  #cta .relative.z-10 { padding-top: 60px; padding-bottom: 60px; }
  #cta .btn { font-size: 15px !important; padding: 12px 28px !important; }

  /* Nav: stack if needed */
  nav .max-w-7xl { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .phone-mockup { width: 180px; height: 360px; }
  .phone-mockup-section .phone-mockup { width: 220px; height: 440px; }
  .calendar-cards .card { min-width: 0 !important; width: 100% !important; height: 140px !important; }

  /* AI flow: stack vertically on mobile, compact nodes */
  .ai-flow-container { flex-direction: column !important; gap: 8px !important; }
  .ai-flow-container .flow-node div:first-child { width: 52px !important; height: 52px !important; }
  .ai-flow-container .flow-node svg { width: 20px !important; height: 20px !important; }
  .ai-flow-container .flow-node span { font-size: 10px !important; }
  .ai-flow-container .hidden.lg\:block { display: none !important; }
  .ai-flow-container .lg\:hidden { display: flex !important; }

  /* Ecosystem orbs: compact on mobile */
  .ecosystem-content .orb-float div:first-child div:first-child { width: 56px !important; height: 56px !important; }
  .ecosystem-content .orb-float div:first-child div:first-child + div { width: 56px !important; height: 56px !important; }
  .ecosystem-content .orb-float svg { width: 20px !important; height: 20px !important; }
  .ecosystem-content .orb-float span { font-size: 10px !important; padding: 2px 8px !important; }

  /* CTA tag text wrapping */
  .cta-tags .tag { white-space: normal !important; text-align: center; font-size: 13px !important; }

  /* Hero: strengthen overlay on mobile for text readability */
  #hero { position: relative; }
  #hero > div:first-child { display: block; }
  #hero > div:nth-child(2) {
    width: 80% !important;
    background: radial-gradient(ellipse 100% 100% at 0% 50%, rgba(255,251,245,1) 0%, rgba(255,251,245,0.98) 30%, rgba(255,251,245,0.9) 45%, rgba(255,251,245,0.6) 60%, rgba(255,251,245,0.15) 78%, transparent 100%) !important;
  }

  /* Hero subtitle smaller */
  .hero-subtitle { font-size: 13px !important; }
  .hero-cta .btn { font-size: 14px !important; padding: 10px 20px !important; }

  /* Section 6 feature tags: smaller on mobile */
  .ai-support-features .flex { gap: 8px !important; }
  .ai-support-features [style*="px:4"][style*="py:3"] { padding: 6px 10px !important; }

  /* Grandchild section cards: full width on mobile */
  #grandchild .card { flex: none !important; width: 100% !important; }
  #grandchild .card div[style*="height:200px"] { height: 140px !important; }

  /* CTA buttons: smaller on mobile */
  #cta .btn { font-size: 14px !important; padding: 10px 22px !important; }
  #cta .reveal.flex.flex-wrap { gap: 10px !important; }

  /* Card text: prevent overflow on small cards */
  .card [style*="width:48%"] h3 { font-size: 13px !important; }
  .card [style*="width:48%"] p { font-size: 11px !important; }

  /* Footer: stack columns */
  footer .flex.flex-col.lg\:flex-row { gap: 24px !important; }

  /* Nav logo text: smaller */
  nav .font-bold { font-size: 14px !important; }
}

/* ── Double leaf divider ── */
.double-leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

/* ========================================
   Tailwind Utility Classes (offline replacement)
   Auto-generated from index.html usage
   ======================================== */

/* Display */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

/* Flex Direction & Wrap */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

/* Flex */
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\/2 { width: 50%; }

/* Height */
.h-full { height: 100%; }
.h-16 { height: 4rem; }

/* Min-width */
.min-w-0 { min-width: 0; }

/* Max-width */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* Margin */
.mx-auto { margin-left: auto; margin-right: auto; }
.m-2 { margin: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }

/* Text Alignment */
.text-center { text-align: center; }

/* Font Weight */
.font-bold { font-weight: 700; }

/* Font Size */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.static { position: static; }

/* Z-index */
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Border Radius */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Transition */
.transition-all { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Hover utilities */
.hover\:-translate-y-\[3px\]:hover { transform: translateY(-3px); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* Responsive: sm (min-width: 640px) */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
}

/* Responsive: md (min-width: 768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
}

/* Responsive: lg (min-width: 1024px) */
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:max-w-lg { max-width: 32rem; }
  .lg\:flex-1 { flex: 1 1 0%; }
  .lg\:w-auto { width: auto; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:justify-end { justify-content: flex-end; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}