@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

/* ===== CSS 自定义属性 ===== */
:root {
  --rose: #C0496A;
  --rose-dark: #9a3454;
  --rose-light: #e06a89;
  --charcoal: #1A1A2E;
  --charcoal-mid: #2d2d4a;
  --charcoal-light: #3d3d5c;
  --cream: #F5ECD7;
  --cream-dark: #e8d9c0;
  --cream-mid: #f0e3c8;

  --font-display: 'Lexend Mega', 'Public Sans', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;

  --radius-card: 18px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 32px rgba(26,26,46,0.18), 0 2px 8px rgba(192,73,106,0.10);
  --shadow-hover: 0 12px 48px rgba(26,26,46,0.28), 0 4px 16px rgba(192,73,106,0.18);

  --nav-h: 64px;
  --hero-arc-h: 56px;

  --max-w: 1100px;
  --max-w-prose: 740px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; font-size: inherit; }

/* ===== 无障碍辅助 ===== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== 页面外壳 ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 8px);
}

/* ===== 导航（底部固定条） ===== */
.site-header {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--charcoal);
  border-top: 2px solid var(--rose);
  box-shadow: 0 -4px 24px rgba(192,73,106,0.18);
}

.bottom-nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }

.brand-nav-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 10px 16px 10px 0;
  margin-right: 8px;
  border-right: 2px solid var(--rose);
  min-height: 40px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--rose);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

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

.nav-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 12px 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--cream-dark);
  white-space: nowrap;
  min-height: 40px;
  transition: color 0.18s, background 0.18s;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
}
.nav-link:hover,
.nav-link--active {
  color: var(--rose-light);
  background: rgba(192,73,106,0.10);
}

/* ===== Hero 视差 ===== */
.hero-parallax {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-bg-layer {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 50%, #2a1020 100%);
  z-index: 1;
}

.hero-img-layer {
  z-index: 2;
  overflow: hidden;
}
.hero-img-layer .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-content-layer {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-inner {
  max-width: 780px;
  padding-bottom: var(--hero-arc-h);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 12px;
  opacity: 0.9;
}

.eyebrow-link {
  color: var(--rose-light);
  border-bottom: 1px solid rgba(192,73,106,0.4);
  transition: color 0.18s;
}
.eyebrow-link:hover { color: var(--cream); }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(26,26,46,0.7);
  margin-bottom: 16px;
}

.hero-h1--entry {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
}

.hero-sub {
  font-size: 1rem;
  color: var(--cream-dark);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background: var(--rose);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 36px;
  border-radius: 99px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(192,73,106,0.35);
  min-height: 48px;
  line-height: 1.4;
}
.hero-cta:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(192,73,106,0.45);
}

/* 圆弧底边 */
.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  z-index: 5;
  height: calc(var(--hero-arc-h) + 2px);
  background: var(--charcoal);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-parallax--cat .hero-arc,
.hero-parallax--entry .hero-arc {
  background: var(--charcoal);
}

.about-hero,
.privacy-hero {
  position: relative;
  background: linear-gradient(160deg, var(--charcoal-mid) 0%, var(--charcoal) 100%);
  padding: 80px 24px 0;
  text-align: center;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hero-inner,
.privacy-hero-inner {
  padding-bottom: var(--hero-arc-h);
  max-width: 680px;
}
.about-h1,
.privacy-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 12px;
}
.about-desc {
  font-size: 1rem;
  color: var(--cream-dark);
  opacity: 0.85;
}

/* ===== 主内容区 ===== */
.page-body {
  flex: 1;
  background: var(--charcoal);
}

.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.main-wrap--entry,
.main-wrap--about,
.main-wrap--privacy {
  max-width: var(--max-w-prose);
}

/* ===== 正文 ===== */
.content-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream-dark);
}
.content-prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--cream);
  margin: 2em 0 0.5em;
  letter-spacing: -0.02em;
}
.content-prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rose-light);
  margin: 1.5em 0 0.4em;
}
.content-prose p { margin-bottom: 1.1em; }
.content-prose a {
  color: var(--rose-light);
  border-bottom: 1px solid rgba(192,73,106,0.4);
  transition: color 0.15s;
}
.content-prose a:hover { color: var(--cream); }
.content-prose ul, .content-prose ol {
  margin: 0.8em 0 0.8em 1.4em;
}
.content-prose li { margin-bottom: 0.4em; }
.content-prose strong { color: var(--cream); font-weight: 700; }
.content-prose hr {
  border: none;
  border-top: 1px solid var(--charcoal-light);
  margin: 2em 0;
}
.content-prose img {
  border-radius: var(--radius-card);
  width: 100%;
  margin: 1.5em 0;
}
.content-prose blockquote {
  border-left: 4px solid var(--rose);
  padding: 0.6em 1.2em;
  margin: 1.2em 0;
  background: rgba(192,73,106,0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--cream);
  font-style: italic;
}

/* ===== 区块标题 ===== */
.block-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 8px;
}
.block-hr {
  border: none;
  border-top: 3px solid var(--rose);
  margin: 0 0 28px 0;
  max-width: 80px;
}

/* ===== 首页专题卡片 ===== */
.home-cats-block,
.home-entries-block {
  margin-top: 52px;
}

.cat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--charcoal-mid);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s;
  will-change: transform;
}
.cat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.cat-card a {
  display: block;
  padding-bottom: 16px;
}
.cat-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: block;
}
.cat-card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cream);
  padding: 14px 16px 4px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cat-card-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--cream-dark);
  opacity: 0.7;
  padding: 0 16px;
  line-height: 1.5;
}

/* ===== 精选图集列表 ===== */
.entry-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.entry-item {
  background: var(--charcoal-mid);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
}
.entry-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.entry-item a {
  display: block;
  padding-bottom: 12px;
}
.entry-thumb {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: block;
}
.entry-item-title {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
  padding: 10px 12px 4px;
  line-height: 1.35;
}
.entry-date,
.entry-pubdate {
  display: block;
  font-size: 0.75rem;
  color: var(--rose-light);
  padding: 0 12px;
  opacity: 0.85;
}

/* ===== 栏目子页列表 ===== */
.cat-children-block {
  margin-top: 48px;
}

.child-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.child-item {
  background: var(--charcoal-mid);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
}
.child-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.child-item a {
  display: block;
  padding-bottom: 14px;
}
.child-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: block;
}
.child-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--cream);
  padding: 12px 14px 4px;
  line-height: 1.3;
}
.child-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--cream-dark);
  opacity: 0.7;
  padding: 0 14px;
  line-height: 1.5;
}
.child-meta time {
  color: var(--rose-light);
  margin-right: 6px;
}

/* ===== 文章 meta / 返回链接 ===== */
.entry-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--charcoal-light);
}

.privacy-meta {
  margin-bottom: 24px;
}
.privacy-date {
  font-size: 0.82rem;
  color: var(--rose-light);
  display: block;
}

.back-link {
  font-size: 0.82rem;
  color: var(--rose-light);
  border-bottom: 1px solid rgba(192,73,106,0.3);
  transition: color 0.15s;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.back-link:hover { color: var(--cream); }

/* ===== 相关推荐（同区） ===== */
.related-block {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.sib-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.sib-item {
  background: var(--charcoal-mid);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sib-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.sib-item a {
  display: block;
  padding-bottom: 10px;
}
.sib-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: block;
}
.sib-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--cream-dark);
  padding: 8px 12px;
  line-height: 1.35;
}

/* ===== 关于页导航列表 ===== */
.about-nav-block {
  margin-top: 48px;
}

.about-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-nav-list li a {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  background: var(--charcoal-mid);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--rose);
  transition: background 0.18s, transform 0.18s;
}
.about-nav-list li a:hover {
  background: var(--charcoal-light);
  transform: translateX(4px);
}
.about-nav-list strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 4px;
}
.about-nav-list small {
  font-size: 0.8rem;
  color: var(--cream-dark);
  opacity: 0.7;
  line-height: 1.5;
}

/* ===== 隐私页返回按钮 ===== */
.privacy-back {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--rose);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 99px;
  min-height: 44px;
  transition: background 0.18s, transform 0.15s;
}
.back-btn:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}
.back-btn--ghost {
  background: transparent;
  border: 2px solid var(--rose);
  color: var(--rose-light);
}
.back-btn--ghost:hover {
  background: rgba(192,73,106,0.12);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--charcoal-mid);
  border-top: 2px solid var(--charcoal-light);
  padding: 0 0 8px;
  margin-top: auto;
}

.footer-top {
  background: linear-gradient(90deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  border-bottom: 1px solid var(--charcoal-light);
  padding: 36px 24px 28px;
  text-align: center;
}
.footer-brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--rose-light);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--cream-dark);
  opacity: 0.65;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
}

.footer-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 32px;
}

.footer-dl dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.footer-dl dd {
  margin-bottom: 8px;
}
.footer-dl a {
  font-size: 0.85rem;
  color: var(--cream-dark);
  opacity: 0.78;
  transition: color 0.15s, opacity 0.15s;
  display: inline-block;
  min-height: 28px;
  line-height: 1.6;
}
.footer-dl a:hover {
  color: var(--rose-light);
  opacity: 1;
}

.footer-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-form input[type="email"] {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  background: var(--charcoal);
  border: 1px solid var(--charcoal-light);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-size: 0.85rem;
  min-height: 40px;
  transition: border-color 0.18s;
}
.footer-form input[type="email"]:focus {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-color: var(--rose);
}
.footer-form button {
  padding: 10px 18px;
  background: var(--rose);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 40px;
  transition: background 0.18s;
}
.footer-form button:hover { background: var(--rose-dark); }

.footer-contact-note {
  font-size: 0.72rem;
  color: var(--cream-dark);
  opacity: 0.5;
  line-height: 1.5;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--charcoal-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--cream-dark);
  opacity: 0.5;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--cream-dark);
  opacity: 0.6;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--rose-light);
  opacity: 1;
}

/* ===== 滚动揭示动效 ===== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.42s ease calc(var(--i, 0) * 0.08s),
              transform 0.42s cubic-bezier(.34,1.2,.64,1) calc(var(--i, 0) * 0.08s);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 视差辅助 ===== */
.hero-img-layer {
  will-change: transform;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 700px) {
  :root {
    --nav-h: 56px;
    --hero-arc-h: 36px;
  }

  .bottom-nav {
    padding: 0 8px;
    gap: 0;
  }

  .brand-nav-link {
    padding: 8px 10px 8px 0;
    margin-right: 4px;
  }

  .nav-link {
    padding: 10px 7px;
    font-size: 0.72rem;
  }

  .hero-parallax {
    height: 75vw;
    min-height: 320px;
  }

  .hero-h1 {
    font-size: clamp(1.5rem, 8vw, 2.4rem);
  }

  .hero-inner {
    padding: 0 8px calc(var(--hero-arc-h) + 8px);
  }

  .hero-sub {
    font-size: 0.88rem;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.88rem;
  }

  .main-wrap {
    padding: 32px 16px 24px;
  }

  .cat-list,
  .child-list,
  .entry-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .sib-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .about-hero,
  .privacy-hero {
    padding: 48px 16px 0;
    min-height: 220px;
  }

  .related-block {
    padding: 0 16px 28px;
  }

  .about-nav-list li a {
    padding: 14px 16px;
  }

  .privacy-back {
    flex-direction: column;
  }
  .back-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .cat-list,
  .child-list {
    grid-template-columns: 1fr;
  }

  .entry-list,
  .sib-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-img-layer .hero-img {
    transform: none;
    transition: none;
  }
  .hero-parallax {
    will-change: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
