@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

/* ─── 设计令牌 ─── */
:root {
  --c-primary: #eb879c;
  --c-secondary: #ffb6c1;
  --c-ink: #26171a;
  --c-ink-80: rgba(38,23,26,0.80);
  --c-ink-50: rgba(38,23,26,0.50);
  --c-bg: #1a0e11;
  --c-bg-card: #221318;
  --c-bg-card2: #2d1820;
  --c-surface: #2a1519;
  --c-border: rgba(235,135,156,0.18);
  --c-text: #f5e6ea;
  --c-text-muted: #c8a0ac;
  --radius: 0px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.45), 0 8px 24px rgba(235,135,156,0.08);
  --shadow-card-hover: 0 4px 18px rgba(0,0,0,0.55), 0 12px 32px rgba(235,135,156,0.18);
  --shadow-nav: 0 2px 16px rgba(0,0,0,0.6);
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Epilogue', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --nav-w: 220px;
  --transition: 220ms cubic-bezier(0.22,0.68,0,1.2);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-secondary); }
a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 2px; }

/* ─── 导航（左侧固定竖排） ─── */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--c-surface);
  box-shadow: var(--shadow-nav);
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--c-border);
}
.site-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
  border-bottom: 1px solid var(--c-border);
  gap: 10px;
}
.nav-logo { border-radius: 4px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-primary);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
}
.brand-name:hover { color: var(--c-secondary); }

.nav-links {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0;
}
.nav-links p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  line-height: 1.4;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.nav-links a::before {
  content: '›';
  margin-right: 8px;
  font-size: 1rem;
  color: var(--c-border);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--c-bg-card2);
  color: var(--c-primary);
  box-shadow: 0 2px 8px rgba(235,135,156,0.10);
}
.nav-links a[aria-current="page"]::before,
.nav-links a:hover::before { color: var(--c-primary); }

.nav-cta {
  padding: 16px 16px 24px;
  border-top: 1px solid var(--c-border);
}
.cta-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--c-primary), #d4607a);
  color: #fff !important;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(235,135,156,0.30);
}
.cta-btn:hover {
  box-shadow: 0 4px 20px rgba(235,135,156,0.50);
  transform: translateY(-1px);
}
.cta-btn:active { transform: translateY(0); }

/* ─── 内容区偏移 ─── */
.hero-wrap, .section-banner, .story-header-wrap,
.about-banner, .privacy-banner,
main, .child-cards-wrap, .section-grid-wrap,
.child-list-wrap, .siblings-wrap,
.about-nav-aside, .site-footer, .breadcrumb {
  margin-left: var(--nav-w);
}

/* ─── Hero（首页）─── */
.hero-wrap {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-bg) 50%, var(--c-bg-card2) 100%);
}
.hero-text {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px 64px;
  z-index: 2;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--c-primary);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 32px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(235,135,156,0.35);
  transition: box-shadow var(--transition), transform var(--transition);
  align-self: flex-start;
}
.hero-cta:hover { color: #fff; box-shadow: 0 6px 24px rgba(235,135,156,0.55); transform: translateY(-2px); }
.hero-media {
  flex: 0 0 48%;
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 斜切分割线 */
.hero-slash {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 80px;
  background: var(--c-bg);
  transform: skewX(-6deg) translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.hero-slash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(235,135,156,0.12), transparent);
}

/* ─── section banner ─── */
.section-banner {
  position: relative;
  min-height: 28vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(120deg, var(--c-bg-card2) 0%, var(--c-bg) 100%);
  padding: 56px 64px 40px;
  border-bottom: 1px solid var(--c-border);
}
.section-banner-inner { z-index: 2; }
.section-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--c-primary);
  line-height: 1.1;
  margin: 8px 0 12px;
}
.section-lead { color: var(--c-text-muted); font-size: 1rem; max-width: 560px; }
.banner-slash {
  position: absolute;
  right: -40px; top: 0; bottom: 0;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(235,135,156,0.06));
  transform: skewX(-8deg);
  pointer-events: none;
}

/* ─── story header ─── */
.breadcrumb {
  padding: 16px 64px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.story-header-wrap {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 64px 40px;
  background: var(--c-bg-card);
  border-bottom: 1px solid var(--c-border);
}
.story-header-text { flex: 1; }
.story-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--c-primary);
  line-height: 1.1;
  margin-bottom: 14px;
}
.story-meta { font-size: 0.85rem; color: var(--c-text-muted); margin-bottom: 12px; }
.meta-label { color: var(--c-ink-50); }
.story-desc { color: var(--c-text-muted); font-size: 1rem; max-width: 560px; line-height: 1.7; }
.story-header-img { flex: 0 0 280px; border-radius: 4px; overflow: hidden; }
.story-hero-img { width: 100%; height: 200px; object-fit: cover; }

/* ─── about / privacy banner ─── */
.about-banner {
  padding: 56px 64px 40px;
  background: linear-gradient(135deg, var(--c-bg-card2), var(--c-bg));
  border-bottom: 1px solid var(--c-border);
}
.about-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--c-primary);
  margin: 8px 0 12px;
}
.about-lead { color: var(--c-text-muted); max-width: 560px; }
.privacy-banner {
  padding: 48px 64px 32px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.privacy-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--c-primary);
  margin: 8px 0 10px;
}
.privacy-date { font-size: 0.88rem; color: var(--c-text-muted); }

/* ─── eyebrow ─── */
.eyebrow-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-secondary);
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 2px;
  margin-bottom: 0;
}

/* ─── Prose 正文 ─── */
.content-outer {
  padding: 48px 64px;
  max-width: 900px;
}
.content-outer--narrow { max-width: 720px; }
.content-inner.prose { font-size: 1.05rem; line-height: 1.8; color: var(--c-text); }
.prose h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--c-primary); margin: 2.2em 0 0.6em; letter-spacing: 0.02em; }
.prose h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: var(--c-secondary); margin: 1.8em 0 0.5em; }
.prose h4 { font-size: 1rem; font-weight: 600; color: var(--c-text); margin: 1.4em 0 0.4em; }
.prose p { margin-bottom: 1.3em; }
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--c-primary); font-weight: 700; }
.prose a { color: var(--c-primary); border-bottom: 1px solid rgba(235,135,156,0.3); transition: border-color var(--transition); }
.prose a:hover { border-color: var(--c-primary); }
.prose blockquote { border-left: 3px solid var(--c-primary); padding: 12px 20px; background: var(--c-bg-card); margin: 1.6em 0; color: var(--c-text-muted); }
.prose code { background: var(--c-bg-card2); padding: 2px 6px; border-radius: 3px; font-size: 0.92em; color: var(--c-secondary); }
.prose pre { background: var(--c-bg-card2); padding: 20px; overflow-x: auto; margin: 1.6em 0; border-left: 3px solid var(--c-primary); }
.prose pre code { background: none; padding: 0; }
.prose time { color: var(--c-secondary); font-size: 0.9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.prose th { background: var(--c-bg-card2); color: var(--c-primary); padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--c-primary); }
.prose td { padding: 9px 14px; border-bottom: 1px solid var(--c-border); }

/* ─── section grid（首页栏目导航）─── */
.section-grid-wrap {
  padding: 40px 64px;
}
.section-grid-head { margin-bottom: 20px; }
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.section-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  border-radius: var(--radius);
}
.section-card strong { font-family: var(--font-display); font-size: 1rem; color: var(--c-primary); letter-spacing: 0.02em; }
.section-card span { font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.5; }
.section-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(235,135,156,0.4);
  transform: translateY(-3px);
}

/* ─── child cards（首页精选）─── */
.child-cards-wrap {
  padding: 40px 64px;
  border-top: 1px solid var(--c-border);
}
.child-cards-head { margin-bottom: 20px; }
.child-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.child-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  border-radius: var(--radius);
  color: var(--c-text);
}
.child-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(235,135,156,0.38);
  transform: translateY(-3px);
  color: var(--c-text);
}
.card-thumb { width: 100%; height: 160px; object-fit: cover; }
.child-card strong {
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--c-primary);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.child-card span {
  padding: 0 18px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}
.card-date { padding: 0 18px 18px; font-size: 0.8rem; color: var(--c-text-muted); }

/* ─── child list（栏目页文章列表）─── */
.child-list-wrap {
  padding: 40px 64px;
  border-top: 1px solid var(--c-border);
}
.child-list-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.child-count { font-size: 0.82rem; color: var(--c-text-muted); border: 1px solid var(--c-border); padding: 2px 8px; border-radius: 10px; }
.child-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-link-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  border-radius: var(--radius);
  color: var(--c-text);
}
.story-link-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(235,135,156,0.38);
  transform: translateX(4px);
  color: var(--c-text);
}
.slc-thumb { flex: 0 0 100px; }
.list-thumb { width: 100px; height: 72px; object-fit: cover; }
.slc-body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.slc-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--c-primary); letter-spacing: 0.02em; }
.slc-desc { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.55; }
.slc-date { font-size: 0.8rem; color: var(--c-text-muted); }

/* ─── siblings（story 页同栏推荐）─── */
.siblings-wrap {
  padding: 40px 64px;
  border-top: 1px solid var(--c-border);
}
.siblings-head { margin-bottom: 20px; }
.siblings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.sibling-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  border-radius: var(--radius);
  color: var(--c-text);
}
.sibling-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(235,135,156,0.38);
  transform: translateY(-3px);
  color: var(--c-text);
}
.sibling-card strong { font-size: 0.95rem; color: var(--c-primary); font-weight: 700; line-height: 1.3; }
.sibling-card span { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.5; }

/* ─── about aside ─── */
.about-nav-aside {
  padding: 32px 64px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.aside-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 18px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  font-size: 0.9rem;
  color: var(--c-text-muted);
  border-radius: 2px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.aside-links a:hover { background: var(--c-bg-card2); color: var(--c-primary); border-color: rgba(235,135,156,0.38); }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  padding: 20px 64px;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.84rem; color: var(--c-text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.84rem; color: var(--c-text-muted); min-height: 40px; display: inline-flex; align-items: center; padding: 0 4px; }
.footer-links a:hover { color: var(--c-primary); }

/* ─── 动效（prefers-reduced-motion）─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── 响应式 ─── */
@media (max-width: 900px) {
  :root { --nav-w: 0px; }
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    z-index: 200;
    overflow: visible;
  }
  .site-nav {
    flex-direction: row;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    padding: 0;
    min-height: 56px;
  }
  .nav-brand {
    flex-direction: row;
    padding: 10px 16px;
    border-bottom: none;
    border-right: 1px solid var(--c-border);
    gap: 8px;
    min-height: 56px;
  }
  .brand-name { font-size: 1rem; }
  .nav-links {
    flex: 1;
    padding: 4px 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .nav-links p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav-links a {
    min-height: 40px;
    padding: 6px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .nav-links a::before { display: none; }
  .nav-cta {
    padding: 8px 12px;
    border-top: none;
    border-left: 1px solid var(--c-border);
  }
  .cta-btn { min-height: 40px; padding: 8px 14px; font-size: 0.88rem; white-space: nowrap; }

  .hero-wrap, .section-banner, .story-header-wrap,
  .about-banner, .privacy-banner,
  main, .child-cards-wrap, .section-grid-wrap,
  .child-list-wrap, .siblings-wrap,
  .about-nav-aside, .site-footer, .breadcrumb {
    margin-left: 0;
    margin-top: 0;
  }
  body { padding-top: 56px; }

  .hero-wrap { flex-direction: column; min-height: 70vh; }
  .hero-text { flex: none; padding: 48px 24px 32px; }
  .hero-media { flex: none; height: 240px; }
  .hero-slash { display: none; }

  .story-header-wrap { flex-direction: column; padding: 32px 24px 28px; gap: 24px; }
  .story-header-img { flex: none; width: 100%; }
  .story-hero-img { height: 200px; width: 100%; }

  .section-banner { padding: 40px 24px 28px; }
  .about-banner { padding: 40px 24px 28px; }
  .privacy-banner { padding: 36px 24px 24px; }
  .content-outer { padding: 32px 24px; }
  .section-grid-wrap, .child-cards-wrap, .child-list-wrap,
  .siblings-wrap, .about-nav-aside { padding: 28px 24px; }
  .site-footer { padding: 16px 24px; }
  .breadcrumb { padding: 12px 24px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 2rem; }
  .section-h1 { font-size: 1.6rem; }
  .story-h1 { font-size: 1.5rem; }
  .about-h1 { font-size: 1.6rem; }
  .child-cards { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .siblings-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; gap: 10px; text-align: center; }
  .story-link-card { flex-direction: column; }
  .slc-thumb { width: 100%; }
  .list-thumb { width: 100%; height: 160px; }
}
