@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ── 变量 ── */
:root {
  --rose: #eb879c;
  --pink: #ffb6c1;
  --ink: #26171a;
  --ink-80: rgba(38,23,26,0.8);
  --ink-40: rgba(38,23,26,0.4);
  --ink-10: rgba(38,23,26,0.07);
  --rose-dark: #c96a81;
  --bg: #fdf6f8;
  --bg-card: #fff9fb;
  --text: #26171a;
  --text-muted: #6b4050;
  --border: rgba(235,135,156,0.25);
  --shadow-sm: 0 2px 6px rgba(235,135,156,0.12), 0 1px 2px rgba(38,23,26,0.06);
  --shadow-md: 0 4px 16px rgba(235,135,156,0.16), 0 2px 6px rgba(38,23,26,0.08);
  --shadow-lg: 0 8px 32px rgba(235,135,156,0.18), 0 4px 12px rgba(38,23,26,0.10);
  --radius: 10px;
  --radius-sm: 6px;
  --font-head: 'Cormorant Garamond', 'Crimson Pro', Georgia, serif;
  --font-body: 'Crimson Pro', 'Cormorant Garamond', Georgia, serif;
  --nav-h: 64px;
  --max-w: 1120px;
  --content-w: 720px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

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

/* ── 导航 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(253,246,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}

.brand-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 40px;
  min-width: 40px;
}
.site-logo-mark { height: 36px; width: auto; }
.logo-text-icon {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.02em;
  line-height: 1;
  background: var(--ink-10);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.site-header nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav > p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  align-items: center;
  white-space: nowrap;
}
.site-header nav > p > a {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-80);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: inline-block;
  min-height: 40px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}
.site-header nav > p > a:hover { background: var(--ink-10); color: var(--rose); }
.site-header nav > p > a[aria-current="page"] {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.nav-search input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text);
  width: 160px;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 40px;
}
.nav-search input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(235,135,156,0.2);
}
.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1rem;
  min-height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-search button:hover { background: var(--ink-10); }

/* ── 容器 ── */
main { padding-top: 2rem; }
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── 按钮 ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  color: var(--rose-dark);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  min-height: 40px;
}
.btn-secondary:hover {
  background: var(--pink);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── 标题装饰 ── */
h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
p.subtitle, p.subhead, p.desc, p.lead {
  color: var(--text-muted);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ── Eyebrow ── */
.topic-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  border: 1px solid var(--rose);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 0.8rem;
}

/* ── Hero（首页） ── */
.hero-section {
  padding: 2rem 0 3rem;
}
.hero-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 42vh;
}
.hero-media {
  position: relative;
  height: 340px;
}
.hero-img {
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  position: absolute;
}
.hero-img-a {
  width: 72%;
  height: 78%;
  top: 0;
  left: 0;
  z-index: 2;
}
.hero-img-b {
  width: 60%;
  height: 65%;
  bottom: 0;
  right: 0;
  z-index: 1;
  border: 3px solid var(--bg);
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 60%;
  z-index: 3;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero-copy { display: flex; flex-direction: column; gap: 1rem; }
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--rose);
  font-weight: 500;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── 首页内容区 ── */
.home-content-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 2rem 0;
  align-items: start;
}
.prose-article, .topic-prose, .article-body, .about-article, .privacy-article {
  min-width: 0;
}
.home-aside, .topic-aside, .article-aside, .about-aside, .privacy-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

/* ── 专题卡片网格 ── */
.topics-section { padding: 2.5rem 0 3rem; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.topic-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.topic-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--text);
}
.topic-card-inner:hover { color: var(--text); }
.topic-card h3 { font-size: 1.05rem; }
.topic-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.topic-meta { font-size: 0.8rem; color: var(--rose); font-weight: 500; margin-top: 0.5rem; }

/* ── 近期文章表格 ── */
.recent-table, .articles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.recent-table tr, .articles-table tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.recent-table tr:hover, .articles-table tr:hover { background: var(--ink-10); }
.recent-table td, .articles-table td { padding: 10px 8px; vertical-align: top; }
.recent-table td a, .articles-table td a { color: var(--ink-80); font-weight: 500; }
.recent-table td a:hover, .articles-table td a:hover { color: var(--rose); }

/* ── 专题页 ── */
.topic-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.topic-hero-inner { max-width: var(--content-w); }
.topic-date { font-size: 0.9rem; color: var(--text-muted); }

.topic-body-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.topic-articles-section { padding: 2rem 0 3rem; }

.child-num { color: var(--rose); font-weight: 600; font-family: var(--font-head); width: 40px; }
.child-date { color: var(--text-muted); font-size: 0.88rem; white-space: nowrap; }
.child-title a { color: var(--ink); font-weight: 500; }
.child-title a:hover { color: var(--rose); }

/* ── 文章页 ── */
.article-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0 4rem;
}
.article-hero-wrap {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero-img { width: 100%; height: 280px; object-fit: cover; }
.article-header { margin-bottom: 2rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--rose); }
.article-meta { display: flex; gap: 1.5rem; margin: 0.8rem 0; flex-wrap: wrap; }
.pub-date, .mod-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}
.article-lead { font-size: 1.05rem; color: var(--text-muted); border-left: 3px solid var(--rose); padding-left: 1rem; }
.article-content { line-height: 1.8; }
.article-content p { margin-bottom: 1.2em; }
.article-content h2, .article-content h3 { margin-top: 2em; margin-bottom: 0.5em; }

/* ── 侧边栏通用 ── */
.aside-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.aside-block h2 { font-size: 1rem; margin-bottom: 0.3rem; }
.aside-links { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.aside-links li a {
  font-size: 0.92rem;
  color: var(--ink-80);
  padding: 4px 0;
  display: block;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.aside-links li a:hover { color: var(--rose); border-color: var(--border); }
.aside-nav-home { margin-top: 1rem; }

/* ── about/privacy ── */
.about-section, .privacy-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0 4rem;
}
.about-header, .privacy-header { margin-bottom: 2rem; }
.about-content, .privacy-content, .about-article .about-content p,
.privacy-article .privacy-content p { line-height: 1.8; }
.about-content p, .privacy-content p { margin-bottom: 1.2em; }
.privacy-date { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.5rem; font-style: italic; }

/* ── 页脚 ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  margin-top: 2rem;
}
footer > article { display: block; }
.footer-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.footer-cta-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.footer-legal a { color: var(--pink); }
.footer-legal a:hover { color: #fff; }

/* ── 正文内容通用 ── */
.prose-article p,
.topic-prose p,
.about-content p,
.privacy-content p { margin-bottom: 1.2em; font-size: 1.02rem; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .hero-article { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { height: 260px; }
  .home-content-section { grid-template-columns: 1fr; }
  .home-aside { position: static; }
  .topic-body-section { grid-template-columns: 1fr; }
  .topic-aside { position: static; }
  .article-section { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .about-section { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .privacy-section { grid-template-columns: 1fr; }
  .privacy-aside { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header { padding: 0 1rem; gap: 0.5rem; }
  .site-header nav > p > a { padding: 10px 8px; font-size: 0.88rem; }
  .nav-search input { width: 100px; }
  .wrap { padding: 0 1rem; }
  .hero-media { height: 200px; }
  .hero-img-a { width: 68%; height: 75%; }
  .hero-img-b { width: 58%; height: 62%; }
  .topic-grid { grid-template-columns: 1fr; }
  .footer-legal { gap: 1rem; }
  h1 { font-size: 1.7rem; }
  .child-date { display: none; }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
