/* ============================================
   XiaoSuiJi Website - Design System
   ============================================ */

:root {
  --color-primary: #7FDBAD;
  --color-primary-dark: #5CC98E;
  --color-primary-light: #B5EECF;
  --color-accent: #FF8C6B;
  --color-bg: #FAFBFC;
  --color-surface: #FFFFFF;
  --color-text: #1A2B3C;
  --color-text-secondary: #5A6B7C;
  --color-text-muted: #8A9BAC;
  --color-border: #E8ECF0;
  --color-feed: #FF8C6B;
  --color-diaper: #6BC5FF;
  --color-sleep: #A78BFA;
  --color-growth: #7FDBAD;
  --color-vaccine: #F59E0B;
  --color-stats: #EC4899;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --max-width: 1100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.navbar .container {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  font-size: 15px;
  font-weight: 800;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lang-btn {
  padding: 4px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-primary-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--color-text); }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: linear-gradient(175deg, #F0FBF5 0%, var(--color-bg) 60%);
  padding: 80px 0 60px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}
.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-primary-light);
  color: #1A6B42;
}
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  background: var(--color-text);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.app-store-btn.btn-white {
  background: #fff;
  color: var(--color-text);
}

/* Phone Mockup */
.hero-visual { flex: 0 0 300px; display: flex; justify-content: center; }
.phone-mockup {
  width: 260px;
  background: var(--color-surface);
  border-radius: 36px;
  border: 4px solid #2A2A2A;
  padding: 40px 16px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  position: relative;
}
.phone-mockup::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #2A2A2A;
  border-radius: 12px;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-greeting {
  font-size: 18px;
  font-weight: 700;
}
.mock-baby {
  font-size: 12px;
  color: var(--color-text-muted);
}
.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
}
.mock-card span:first-child { font-size: 22px; }
.mc-feed { background: rgba(255,140,107,0.12); color: var(--color-feed); }
.mc-diaper { background: rgba(107,197,255,0.12); color: var(--color-diaper); }
.mc-sleep { background: rgba(167,139,250,0.12); color: var(--color-sleep); }
.mc-growth { background: rgba(127,219,173,0.12); color: var(--color-growth); }

/* ============================================
   Features
   ============================================ */
.features {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-desc {
  text-align: center;
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.fi-feed { background: rgba(255,140,107,0.12); }
.fi-sleep { background: rgba(167,139,250,0.12); }
.fi-diaper { background: rgba(107,197,255,0.12); }
.fi-growth { background: rgba(127,219,173,0.12); }
.fi-vaccine { background: rgba(245,158,11,0.12); }
.fi-stats { background: rgba(236,72,153,0.12); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   Highlights
   ============================================ */
.highlights {
  padding: 80px 0;
  background: linear-gradient(175deg, var(--color-bg) 0%, #F0FBF5 100%);
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.highlight-item {
  text-align: center;
  padding: 20px;
}
.highlight-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.highlight-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.highlight-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* ============================================
   Page Header (privacy / support)
   ============================================ */
.page-header {
  background: linear-gradient(175deg, #F0FBF5 0%, var(--color-bg) 100%);
  padding: 60px 0 40px;
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
}

/* ============================================
   Content Section (privacy / support)
   ============================================ */
.content-section {
  padding: 48px 0 64px;
}
.content-section .container {
  max-width: 780px;
}
.meta-info {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.content-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.content-section h2:first-of-type {
  margin-top: 0;
}
.content-section p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.content-section ul {
  margin: 8px 0 16px 20px;
  list-style: disc;
}
.content-section li {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  line-height: 1.7;
}
.content-section a {
  color: var(--color-primary-dark);
  font-weight: 500;
}
.content-section a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
}
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 24px 18px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Contact Card */
.contact-card {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.contact-card h2 {
  margin: 0 0 8px !important;
  font-size: 22px;
}
.contact-card p {
  margin-bottom: 20px;
}
.email-link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.email-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-primary-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a {
  color: var(--color-primary-dark);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { flex-direction: column; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 30px; }
  .hero-subtitle { font-size: 16px; }
  .hero-badges { justify-content: center; }
  .hero-visual { flex: none; }
  .phone-mockup { width: 220px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .highlight-grid { grid-template-columns: 1fr; gap: 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }

  .section-title { font-size: 24px; }
  .section-desc { font-size: 15px; margin-bottom: 32px; }

  .cta-inner h2 { font-size: 24px; }

  .footer-main { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}
