@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

/* ===== 变量 ===== */
:root {
  --pink: #eb879c;
  --pink-light: #ffb6c1;
  --dark: #26171a;
  --dark-mid: #3a2329;
  --dark-soft: #4f3039;
  --pink-dim: #c96a80;
  --cream: #fff5f7;
  --cream2: #fde8ed;
  --white: #ffffff;
  --text-main: #26171a;
  --text-soft: #6b4050;
  --text-muted: #9a6878;
  --radius-card: 4px;
  --radius-ui: 10px;
  --shadow-sm: 0 2px 6px rgba(38,23,26,0.10), 0 1px 2px rgba(38,23,26,0.06);
  --shadow-md: 0 4px 14px rgba(38,23,26,0.13), 0 2px 4px rgba(38,23,26,0.08);
  --shadow-lg: 0 8px 28px rgba(38,23,26,0.16), 0 4px 8px rgba(38,23,26,0.09);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
  --font-display: 'Abril Fatface', Georgia, serif;
  --font-body: 'Merriweather', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --nav-w: 240px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-dim); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }
a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 3px;
}
ul { list-style: none; }
hr {
  border: none;
  border-top: 2px solid var(--pink-light);
  margin: 0.6em 0 1.2em;
  opacity: 0.6;
}

/* ===== 全局包裹 ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 顶部导航条 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 2px solid var(--pink);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
}
.header-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--pink-light);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.header-brand:hover { color: var(--white); }

/* ===== 汉堡 ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  min-height: 44px;
  min-width: 44px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pink-light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger:hover span { background: var(--white); }
.hamburger:focus-visible { outline: 3px solid var(--pink); border-radius: 4px; }

/* ===== 全屏遮罩导航 ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-overlay.is-open {
  transform: translateX(0);
}
.nav-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: 2px solid var(--pink);
  color: var(--pink-light);
  font-size: 1.2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.nav-close:hover { background: var(--pink); color: var(--dark); }
.nav-close:focus-visible { outline: 3px solid var(--pink-light); }

.overlay-nav {
  padding: 5rem 3rem 3rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.nav-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pink-light);
  line-height: 1.2;
}

.overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.overlay-links dt,
.overlay-links dd {
  border-bottom: 1px solid var(--dark-soft);
}
.overlay-links dt a,
.overlay-links dd a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-size: 1.05rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: .01em;
  transition: color var(--transition), padding-left var(--transition);
  min-height: 44px;
  line-height: 1.4;
}
.overlay-links dt a:hover,
.overlay-links dd a:hover {
  color: var(--pink);
  padding-left: 1rem;
}

/* ===== Hero（首页） ===== */
.hero {
  position: relative;
  height: 45vh;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--pink-light) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  z-index: 1;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38,23,26,0.78) 0%, rgba(235,135,156,0.55) 60%, rgba(255,182,193,0.25) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: right;
  padding: 2rem 2.5rem;
  max-width: 600px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(38,23,26,0.5);
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--pink-light);
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink-light) 100%);
  color: var(--dark);
  font-weight: 700;
  font-family: var(--font-body);
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  line-height: 1.6;
}
.hero-cta:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--dark);
}

/* ===== 频道 Hero ===== */
.channel-hero, .tag-hero, .about-hero, .privacy-banner {
  position: relative;
  background: var(--dark);
  padding: 3rem 2rem 2.5rem;
  overflow: hidden;
}
.channel-hero-dots, .tag-hero-dots, .about-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--pink) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.12;
  z-index: 0;
}
.channel-hero-inner, .tag-hero-inner, .about-hero-inner, .privacy-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.channel-h1, .tag-h1, .about-h1, .privacy-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--pink-light);
  line-height: 1.2;
  margin-top: 0.4rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--pink);
  text-transform: uppercase;
  border: 1px solid var(--pink);
  border-radius: 3px;
  padding: 0.15em 0.6em;
  margin-bottom: 0.5rem;
}
.privacy-updated { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ===== 主体布局 ===== */
.page-body {
  flex: 1;
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  gap: 2rem;
  align-items: flex-start;
}

/* ===== 侧边栏（内容左侧） ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 72px;
}
.sidebar-section {
  background: var(--white);
  border-radius: var(--radius-ui);
  padding: 1.2rem 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--pink);
}
.sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  letter-spacing: .02em;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar-links li a {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  border-radius: 4px;
  min-height: 40px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}
.sidebar-links li a:hover {
  background: var(--cream2);
  color: var(--pink-dim);
}

/* ===== 主内容区 ===== */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink); }

/* ===== 文章 ===== */
.article-main { background: var(--white); border-radius: var(--radius-ui); box-shadow: var(--shadow-sm); padding: 2rem; }
.article-header { margin-bottom: 1.5rem; }
.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.83rem; color: var(--text-muted); }
.article-date, .article-modified { display: inline-block; }
.article-hero-wrap { margin-bottom: 1.5rem; border-radius: 6px; overflow: hidden; }
.article-hero-img { width: 100%; height: 280px; object-fit: cover; }

.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-main);
}
.article-body h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--dark); margin: 1.8rem 0 0.3rem; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark-soft); margin: 1.4rem 0 0.3rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--pink-dim); border-bottom: 1px solid var(--pink-light); }
.article-body a:hover { color: var(--pink); }
.article-body hr { margin: 1.5rem 0; }

/* ===== 内容区段 ===== */
.content-section { background: var(--white); border-radius: var(--radius-ui); box-shadow: var(--shadow-sm); padding: 1.8rem; margin-bottom: 1.5rem; }
.content-section h1 { font-family: var(--font-display); font-size: clamp(1.3rem,2.5vw,1.8rem); color: var(--dark); margin-bottom: 0.6rem; }

.cards-section { margin-bottom: 1.5rem; }
.section-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

/* ===== 卡片列表 ===== */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.card-list--side {
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-thumb-wrap { overflow: hidden; height: 140px; }
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease; }
.card:hover .card-thumb { transform: scale(1.04); }
.card-body { padding: 1rem 1rem 0.8rem; flex: 1; }
.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.card-title a { color: var(--dark); }
.card-title a:hover { color: var(--pink-dim); }
.card-date { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 0.4rem; }
.card-desc { font-size: 0.85rem; color: var(--text-soft); line-height: 1.55; }
.card-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink-light) 100%);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.card--small .card-body { padding: 0.7rem 0.8rem 0.5rem; }
.card--small .card-title { font-size: 0.9rem; }
.card--small .card-desc { display: none; }

/* ===== 标签 ===== */
.tag-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill {
  display: inline-block;
  padding: 0.3em 0.8em;
  border: 1px solid var(--pink-light);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--pink-dim);
  background: var(--cream2);
  transition: background var(--transition), color var(--transition);
}
.tag-pill:hover, .tag-pill--active {
  background: var(--pink);
  color: var(--dark);
  border-color: var(--pink);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--pink);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pink-light);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; max-width: 260px; }

.footer-nav { flex: 1; min-width: 200px; }
.footer-nav dl { display: flex; flex-direction: column; gap: 0; }
.footer-nav dt { border-bottom: 1px solid var(--dark-soft); }
.footer-nav dt a {
  display: block;
  padding: 0.55rem 0.25rem;
  font-size: 0.85rem;
  color: var(--cream2);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav dt a:hover { color: var(--pink); padding-left: 0.5rem; }

.footer-copy {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--pink-light); }

/* ===== 动效：Stagger ===== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-list > li {
    opacity: 0;
    transform: translateY(18px);
    animation: stagger-in 300ms ease forwards;
  }
  .stagger-list > li:nth-child(1) { animation-delay: 0ms; }
  .stagger-list > li:nth-child(2) { animation-delay: 60ms; }
  .stagger-list > li:nth-child(3) { animation-delay: 120ms; }
  .stagger-list > li:nth-child(4) { animation-delay: 180ms; }
  .stagger-list > li:nth-child(5) { animation-delay: 240ms; }
  .stagger-list > li:nth-child(6) { animation-delay: 300ms; }
  .stagger-list > li:nth-child(n+7) { animation-delay: 360ms; }

  @keyframes stagger-in {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .page-body {
    flex-direction: column;
    padding: 1.2rem 1rem;
    gap: 1.2rem;
  }
  .sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .sidebar-section {
    flex: 1;
    min-width: 160px;
  }
  .sidebar-related { display: none; }

  .hero { height: 42vh; min-height: 240px; }
  .hero-content { padding: 1.2rem 1.2rem; }

  .article-main { padding: 1.2rem; }

  .card-list { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; gap: 1.2rem; }
  .footer-copy { flex-direction: column; align-items: flex-start; }

  .overlay-nav { padding: 4rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .header-inner { padding: 0 1rem; }
  .page-body { padding: 1rem 0.75rem; }
  .content-section, .article-main { padding: 1rem; }
  .hero-h1 { font-size: 1.4rem; }
  .channel-h1, .tag-h1, .about-h1, .privacy-h1 { font-size: 1.4rem; }
}
