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

/* ===== 全局变量 ===== */
:root {
  --rose: #eb879c;
  --blush: #ffb6c1;
  --deep: #26171a;
  --deep-80: rgba(38,23,26,0.80);
  --deep-50: rgba(38,23,26,0.50);
  --deep-20: rgba(38,23,26,0.12);
  --rose-light: rgba(235,135,156,0.15);
  --rose-mid: rgba(235,135,156,0.30);
  --glass-bg: rgba(255,245,247,0.72);
  --glass-border: rgba(235,135,156,0.22);
  --shadow-soft: 0 2px 8px rgba(38,23,26,0.10), 0 1px 3px rgba(235,135,156,0.12);
  --shadow-card: 0 4px 16px rgba(38,23,26,0.12), 0 1px 4px rgba(235,135,156,0.14);
  --shadow-hover: 0 8px 28px rgba(38,23,26,0.16), 0 2px 8px rgba(235,135,156,0.20);
  --nav-w: 220px;
  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --radius: 0px;
  --transition: 220ms cubic-bezier(0.4,0,0.2,1);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep);
  background: #fdf3f5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rose); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--deep); }
a:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== 布局骨架 ===== */
.layout-wrap {
  display: flex;
  min-height: 100vh;
}

/* ===== 左侧竖排导航 ===== */
.sidenav {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 100;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(38,23,26,0.18);
}

.sidenav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 24px auto 16px;
  background: var(--rose-light);
  border: 1.5px solid var(--glass-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.sidenav-brand:hover { background: var(--rose-mid); box-shadow: 0 0 0 3px var(--rose-mid); }
.sidenav-brand:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.nav-logo-mark { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blush);
  letter-spacing: 0.04em;
}

.sidenav-dl { padding: 8px 0 24px; flex: 1; }
.sidenav-dt {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--deep-50);
  color: rgba(255,182,193,0.50);
  text-transform: uppercase;
  padding: 16px 20px 6px;
}
.sidenav-dl dd { margin: 0; }
.sidenav-dl dd a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,230,235,0.82);
  line-height: 1.4;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.sidenav-dl dd a:hover,
.sidenav-dl dd a.active {
  color: #fff;
  background: var(--rose-light);
  padding-left: 26px;
}
.sidenav-dl dd a.active { color: var(--blush); font-weight: 600; }
.sidenav-dl dd a:focus-visible { outline: 2px solid var(--blush); outline-offset: -2px; }

/* ===== 页面主体 ===== */
.page-body {
  margin-left: var(--nav-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Hero（首页） ===== */
.hero-section {
  min-height: 70vh;
  background: linear-gradient(135deg, var(--deep) 0%, #3d1c24 55%, #26171a 100%);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 48px 48px 64px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(235,135,156,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,230,235,0.80);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 440px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 28px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: #d4697e;
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hero-media {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
  opacity: 0.35;
}
.hero-media-placeholder { background: transparent; opacity: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ===== 主内容区 ===== */
.main-content {
  flex: 1;
  padding: 48px 40px;
}

/* ===== div + aside/figure 交错 ===== */
.content-section,
.article-section,
.about-section,
.privacy-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

/* ===== 侧边栏 aside（内容左侧） ===== */
.content-aside {
  flex: 0 0 220px;
  position: sticky;
  top: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}
.aside-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 12px;
}
.aside-links { display: flex; flex-direction: column; gap: 4px; }
.aside-links li a {
  display: block;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: var(--deep);
  border-left: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition), padding-left var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-links li a:hover {
  color: var(--rose);
  border-left-color: var(--rose);
  padding-left: 14px;
}
.aside-related-dl dd { margin: 0; }
.aside-related-dl dd a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--deep);
  min-height: 40px;
  border-left: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition), padding-left var(--transition);
}
.aside-related-dl dd a:hover { color: var(--rose); border-left-color: var(--rose); padding-left: 14px; }
.aside-divider { height: 1px; background: var(--glass-border); margin: 16px 0; }
.aside-nav-links { margin-top: 4px; }

/* ===== 眉题 small ===== */
.eyebrow-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ===== figure（正文容器） ===== */
.content-figure,
.article-figure,
.about-figure,
.privacy-figure {
  flex: 1;
  min-width: 0;
}

/* ===== 正文排版 ===== */
.prose-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--deep);
  max-width: 720px;
}
.prose-content h2,
.prose-content h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--deep);
  margin: 2em 0 0.6em;
}
.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.2rem; }
.prose-content p { margin-bottom: 1em; }
.prose-content ul, .prose-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.prose-content li { margin-bottom: 0.4em; }
.prose-content a { color: var(--rose); border-bottom: 1px solid var(--blush); transition: color var(--transition), border-color var(--transition); }
.prose-content a:hover { color: var(--deep); border-color: var(--rose); }
.prose-content blockquote {
  border-left: 3px solid var(--rose);
  padding-left: 16px;
  color: var(--deep-80);
  margin: 1.5em 0;
  font-style: italic;
}
.prose-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: 0.92rem; }
.prose-content th { background: var(--rose-light); padding: 8px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--rose); }
.prose-content td { padding: 8px 12px; border-bottom: 1px solid var(--deep-20); }
.prose-content tr:last-child td { border-bottom: none; }

/* ===== 文章页专属 ===== */
.article-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--deep);
  margin-bottom: 12px;
}
.article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--deep-20);
  padding-bottom: 20px;
}
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.article-date, .article-date-mod {
  font-size: 0.8rem;
  color: var(--deep-50);
  font-family: var(--font-sans);
}
.article-hero-wrap {
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.article-hero-img { width: 100%; max-height: 380px; object-fit: cover; }

/* ===== About 页 ===== */
.about-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 12px;
}
.about-header { margin-bottom: 28px; border-bottom: 1px solid var(--deep-20); padding-bottom: 20px; }

/* ===== Privacy 页 ===== */
.privacy-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 12px;
}
.privacy-header { margin-bottom: 28px; border-bottom: 1px solid var(--deep-20); padding-bottom: 20px; }

/* ===== 文章列表 table ===== */
.articles-section { margin-top: 48px; }
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 20px;
}
.table-wrap { overflow-x: auto; }
.articles-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}
.articles-table thead th {
  background: var(--deep);
  color: var(--blush);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border: none;
}
.articles-table tbody tr {
  border-bottom: 1px solid var(--deep-20);
  transition: background var(--transition);
}
.articles-table tbody tr:hover { background: var(--rose-light); }
.articles-table tbody td { padding: 14px 16px; vertical-align: top; }
.card-title-cell { width: 38%; }
.card-title-cell a {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep);
  display: block;
  transition: color var(--transition);
}
.card-title-cell a:hover { color: var(--rose); }
.card-desc-cell {
  font-size: 0.85rem;
  color: var(--deep-80);
  width: 48%;
  line-height: 1.55;
}
.card-date-cell {
  font-size: 0.78rem;
  color: var(--deep-50);
  white-space: nowrap;
  width: 14%;
}
.card-date-cell time { display: block; }

/* ===== 页脚 ===== */
.site-footer {
  padding: 28px 40px;
  background: var(--deep);
  border-top: 1px solid rgba(235,135,156,0.15);
  text-align: center;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,230,235,0.60);
  margin-bottom: 6px;
}
.footer-small {
  font-size: 0.78rem;
  color: rgba(255,182,193,0.50);
}
.footer-small a { color: var(--blush); opacity: 0.75; transition: opacity var(--transition); }
.footer-small a:hover { opacity: 1; }

/* ===== 首页页h1 ===== */
.page-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 24px;
}

/* ===== Scroll Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 280ms ease, transform 280ms ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .parallax-hero {
    transition: transform 100ms linear;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  :root { --nav-w: 180px; }
  .main-content { padding: 32px 24px; }
  .content-aside { flex: 0 0 180px; }
  .hero-section { padding: 36px 28px 52px; min-height: 60vh; }
  .hero-media { width: 40%; opacity: 0.25; }
}

@media (max-width: 720px) {
  .layout-wrap { flex-direction: column; }
  .sidenav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 2px 8px rgba(38,23,26,0.18);
  }
  .sidenav-brand { margin: 12px 16px 12px 0; flex-shrink: 0; }
  .sidenav-dl {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
    flex: 1;
    overflow-x: auto;
  }
  .sidenav-dt { display: none; }
  .sidenav-dl dd a {
    white-space: nowrap;
    padding: 0 14px;
    height: 52px;
    font-size: 0.78rem;
  }
  .sidenav-dl dd a:hover, .sidenav-dl dd a.active { padding-left: 14px; }
  .page-body { margin-left: 0; }
  .hero-section { min-height: 55vh; padding: 28px 20px 44px; }
  .hero-media { display: none; }
  .main-content { padding: 24px 16px; }
  .content-section,
  .article-section,
  .about-section,
  .privacy-section { flex-direction: column; gap: 24px; }
  .content-aside {
    position: static;
    flex: none;
    width: 100%;
  }
  .site-footer { padding: 20px 16px; }
  .articles-table { font-size: 0.85rem; }
  .card-desc-cell { display: none; }
  .card-title-cell { width: 70%; }
  .card-date-cell { width: 30%; }
}

@media (max-width: 375px) {
  .hero-h1 { font-size: 1.8rem; }
  .hero-desc { font-size: 0.92rem; }
  .main-content { padding: 20px 14px; }
  .prose-content { font-size: 0.97rem; }
}
