/* ===== 饼干姐姐网 · Organic Biophilic · style.css ===== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ---- tokens ---- */
:root {
  --c-primary:   #56228b;
  --c-secondary: #8b4513;
  --c-dark:      #1f1726;
  --c-surface:   #2a1d38;
  --c-surface2:  #342244;
  --c-accent1:   #7e43c0;
  --c-accent2:   #b06030;
  --c-text:      #ede8f5;
  --c-muted:     #b8aace;
  --c-border:    rgba(86,34,139,0.35);
  --c-card-bg:   rgba(42,29,56,0.92);
  --c-hero-ov:   rgba(31,23,38,0.62);
  --r-lg:        20px;
  --r-md:        14px;
  --r-sm:        8px;
  --shadow-card: 0 4px 24px rgba(31,23,38,0.55), 0 1px 4px rgba(86,34,139,0.18);
  --shadow-soft: 0 2px 12px rgba(31,23,38,0.38);
  --font-hand:   'Caveat', 'ZCOOL KuaiLe', cursive;
  --font-body:   'Quicksand', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-w:       900px;
  --max-w-prose: 720px;
  --transition:  0.28s ease;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-dark);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent1); text-decoration: none; }
a:hover { color: var(--c-text); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-hand);
  line-height: 1.25;
  color: var(--c-text);
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- organic blob SVG background ---- */
body::before {
  content: '';
  position: fixed;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: radial-gradient(ellipse at 60% 40%, rgba(86,34,139,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  background: radial-gradient(ellipse at 40% 60%, rgba(139,69,19,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31,23,38,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.brand-bar {
  border-bottom: 1px solid var(--c-border);
  padding: 0.6rem 1.5rem;
}
.brand-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--c-accent1), var(--c-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-name:hover { opacity: 0.85; }

.site-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link--active {
  color: var(--c-text);
  border-bottom-color: var(--c-primary);
}

/* ---- hero ---- */
.hero-section { position: relative; }
.hero-figure {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-surface) 60%, #3d1e5c 100%);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-figure--text {
  padding: 4rem 2rem;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 520px;
  padding: 2.5rem 2.5rem 2.5rem 1.5rem;
  background: rgba(31,23,38,0.68);
  backdrop-filter: blur(6px);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  border-left: 3px solid var(--c-primary);
}
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-hero-ov);
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.hero-h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-desc {
  font-size: 1rem;
  color: rgba(237,232,245,0.85);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---- main ---- */
.page-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- section layout (aside/figure交错) ---- */
.content-section,
.guides-section,
.faq-section,
.guide-header,
.guide-children,
.guide-siblings,
.guide-back,
.guide-back,
.about-header,
.about-nav-section,
.privacy-header,
.privacy-footer-links,
.faq-header,
.faq-related,
.faq-back {
  padding: 3rem 0;
  border-bottom: 1px solid var(--c-border);
}
.content-section:last-child,
.guide-back:last-child,
.faq-back:last-child {
  border-bottom: none;
}

.section-aside {
  margin-bottom: 1.2rem;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-accent2);
  background: rgba(139,69,19,0.12);
  padding: 0.15rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.4rem;
  text-transform: none;
}
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  margin-top: 0.25rem;
}
.page-date {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-top: 0.3rem;
}

/* ---- prose ---- */
.prose-wrap {
  max-width: var(--max-w-prose);
}
.prose-wrap h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--c-accent1);
}
.prose-wrap h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--c-muted);
}
.prose-wrap ul, .prose-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-wrap li { margin-bottom: 0.4rem; }
.prose-wrap blockquote {
  border-left: 3px solid var(--c-primary);
  background: var(--c-surface);
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-muted);
  margin: 1.5rem 0;
  font-style: italic;
}
.prose-wrap a {
  color: var(--c-accent1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-wrap a:hover { color: var(--c-text); }
.prose-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}
.prose-wrap th, .prose-wrap td {
  border: 1px solid var(--c-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose-wrap th {
  background: var(--c-surface);
  color: var(--c-accent1);
  font-weight: 600;
}

/* ---- cards grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.child-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--c-text);
}
.child-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(86,34,139,0.3), 0 2px 8px rgba(0,0,0,0.3);
}
.card-figure { margin: 0; overflow: hidden; }
.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.child-card:hover .card-thumb { transform: scale(1.04); }
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
}
.card-title {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.5;
  flex: 1;
}
.card-date {
  font-size: 0.78rem;
  color: var(--c-accent2);
  margin-top: auto;
}

/* ---- faq list (home) ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.faq-entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition: background var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-soft);
}
.faq-entry strong {
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-accent1);
}
.faq-entry span {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.faq-entry:hover {
  background: var(--c-surface2);
  border-color: var(--c-primary);
}

/* ---- child link group ---- */
.child-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.child-link-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 240px;
  padding: 1rem 1.2rem;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  color: var(--c-text);
  transition: transform var(--transition), border-color var(--transition);
}
.child-link-block strong {
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-accent1);
  line-height: 1.3;
}
.child-link-block span {
  font-size: 0.83rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.child-link-block:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary);
}
.child-link-block--sm { flex: 1 1 200px; }

/* ---- about ---- */
.about-figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-img {
  border-radius: var(--r-lg);
  max-height: 340px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.about-h1, .privacy-h1, .guide-h1, .faq-h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.4rem;
}
.about-desc, .privacy-desc, .guide-desc, .faq-desc {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.about-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.about-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 200px;
  padding: 1rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), background var(--transition);
}
.about-nav-card strong {
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-accent1);
}
.about-nav-card span {
  font-size: 0.83rem;
  color: var(--c-muted);
}
.about-nav-card:hover {
  border-color: var(--c-primary);
  background: var(--c-surface2);
}

/* ---- guide ---- */
.guide-title-figure {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.guide-hero-img {
  border-radius: var(--r-lg);
  max-height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--c-accent1); }
.breadcrumb a:hover { color: var(--c-text); }
.bc-sep { margin: 0 0.35rem; opacity: 0.5; }

/* ---- faq ---- */
.faq-title-figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-header { padding-bottom: 2rem; }

/* ---- back links ---- */
.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 30px;
  color: var(--c-muted);
  font-size: 0.88rem;
  margin: 0.25rem 0.5rem 0.25rem 0;
  transition: color var(--transition), border-color var(--transition);
}
.back-home-link:hover {
  color: var(--c-text);
  border-color: var(--c-primary);
}

/* ---- footer ---- */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-col--brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
}
.footer-about {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.footer-col--links { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent2);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  color: var(--c-muted);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  min-height: 40px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--c-text); }
.footer-legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--c-muted);
  text-align: center;
}

/* ---- scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- responsive ---- */
@media (max-width: 640px) {
  .site-nav { padding: 0 0.75rem; overflow-x: auto; flex-wrap: nowrap; }
  .nav-link { padding: 0.7rem 0.6rem; font-size: 0.82rem; }
  .brand-bar { padding: 0.5rem 1rem; }
  .page-main { padding: 0 0.85rem; }
  .hero-figure { min-height: 60vh; }
  .hero-overlay {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-left: none;
    border-top: 3px solid var(--c-primary);
    text-align: right;
  }
  .hero-h1 { font-size: 1.6rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .child-link-group { flex-direction: column; }
  .child-link-block { flex: 1 1 auto; }
  .about-nav-links { flex-direction: column; }
  .footer-legal { flex-direction: column; gap: 0.4rem; }
  .content-section, .guides-section, .faq-section,
  .guide-header, .guide-children, .guide-siblings, .guide-back,
  .about-header, .about-nav-section, .privacy-header, .privacy-footer-links,
  .faq-header, .faq-related, .faq-back { padding: 2rem 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1.25rem; }
}
