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

/* ── 重置与基础 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --white: #ffffff;
  --grey-100: #111111;
  --grey-200: #1a1a1a;
  --grey-300: #2a2a2a;
  --grey-400: #444444;
  --grey-500: #666666;
  --grey-600: #999999;
  --grey-700: #cccccc;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --glass-hover: rgba(255,255,255,0.08);
  --font-serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Libre Baskerville', 'Cormorant Garamond', Georgia, serif;
  --nav-width: 240px;
  --radius: 4px;
  --transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── 站点骨架 ── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.page-main {
  flex: 1;
  margin-left: var(--nav-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── 侧边导航 ── */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--grey-100);
  border-right: 1px solid var(--grey-300);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.sidenav-brand {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--grey-300);
}

.brand-link {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.3;
  display: block;
}

.brand-link:hover { color: var(--grey-700); }

.sidenav-list {
  padding: 1.5rem 1rem;
  flex: 1;
  list-style: none;
}

.sidenav-section {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--grey-500);
  text-transform: uppercase;
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.sidenav-list dd {
  margin: 0 0 0.4rem;
}

.sidenav-list dd a {
  display: block;
  padding: 0.6rem 0.875rem;
  font-size: 0.82rem;
  color: var(--grey-600);
  text-decoration: none;
  border-radius: 40px;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.sidenav-list dd a:hover,
.sidenav-list dd a[aria-current="page"] {
  background: var(--glass-bg);
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.sidenav-list dd a[aria-current="page"] {
  background: var(--white);
  color: var(--black);
}

/* ── Hero 首页 ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: right;
  padding: 4rem 4rem 8rem;
  max-width: 900px;
  margin-left: auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1rem;
  color: var(--grey-600);
  max-width: 480px;
  margin-left: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 40px;
  min-height: 44px;
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--grey-400);
  border-radius: 40px;
  min-height: 44px;
  letter-spacing: 0.05em;
  transition: border-color var(--transition), background var(--transition);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: var(--glass-bg);
}

.hero-slant {
  position: absolute;
  bottom: -1px;
  left: -5%;
  right: -5%;
  height: 120px;
  background: var(--black);
  clip-path: polygon(0 60%, 110% 0, 110% 100%, 0 100%);
  z-index: 4;
}

/* ── 话题页 Hero ── */
.topic-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-300);
}

.topic-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 4rem 3rem;
  text-align: right;
  width: 100%;
}

.topic-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.5rem 0 1rem;
}

.topic-lead {
  font-size: 1rem;
  color: var(--grey-600);
  max-width: 500px;
  margin-left: auto;
  line-height: 1.7;
}

/* ── 内页 Hero ── */
.inner-hero {
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-300);
}

.inner-hero--sm { min-height: 22vh; }

.inner-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 4rem 2.5rem;
  width: 100%;
  text-align: right;
}

.inner-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.5rem;
}

/* ── 面包屑 ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--grey-500);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--grey-500);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover { color: var(--white); }

.breadcrumb span[aria-hidden] { color: var(--grey-300); }

/* ── 主内容区 ── */
main#main-content { flex: 1; }

.content-article {
  padding: 4rem 4rem;
  max-width: 860px;
  width: 100%;
}

/* ── 文章页特定 ── */
.article-page { max-width: 780px; }

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--grey-300);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 1rem 0;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--grey-500);
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.pub-date, .mod-date {
  letter-spacing: 0.02em;
}

.article-hero-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-300);
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

/* ── 文章话题页 ── */
.topic-article { max-width: 100%; }

/* ── 段落正文 ── */
.prose-section { margin-bottom: 4rem; }
.prose-section--wide .prose-wrap { max-width: 720px; }
.prose-section--narrow .prose-wrap { max-width: 640px; }

.prose-wrap {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--grey-700);
}

.prose-wrap h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.prose-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}

.prose-wrap p { margin-bottom: 1.25rem; }

.prose-wrap a {
  color: var(--white);
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.prose-wrap a:hover { opacity: 0.7; }

.prose-wrap ul, .prose-wrap ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.prose-wrap li { margin-bottom: 0.5rem; }

.prose-wrap blockquote {
  border-left: 2px solid var(--grey-400);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--grey-600);
  font-style: italic;
}

.prose-wrap time { color: var(--grey-500); font-size: 0.875rem; }

/* ── 区块标题 ── */
.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grey-300);
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ── 卡片网格（玻璃拟态） ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.card-media { overflow: hidden; aspect-ratio: 16/9; }
.card-media .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.glass-card:hover .card-img { transform: scale(1.03); }

.card-body { padding: 1.25rem; }

.card-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.5rem;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-body h3 a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition);
}

.card-body h3 a:hover { opacity: 0.75; }

.card-body p {
  font-size: 0.85rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.78rem;
  color: var(--grey-500);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.card-link:hover { color: var(--white); }

/* ── 子页列表（话题页） ── */
.children-section { margin-bottom: 4rem; }

.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.child-card { }
.child-media { overflow: hidden; aspect-ratio: 16/9; }
.child-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.child-body { padding: 1.25rem 1.25rem 1.5rem; }

.child-date {
  font-size: 0.72rem;
  color: var(--grey-500);
  margin-bottom: 0.5rem;
}

.child-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.child-body h3 a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition);
}
.child-body h3 a:hover { opacity: 0.75; }

.child-body p {
  font-size: 0.85rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 0.875rem;
}

.child-more {
  font-size: 0.78rem;
  color: var(--grey-500);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.child-more:hover { color: var(--white); }

/* ── 文章列表（首页） ── */
.recent-section { margin-bottom: 4rem; }

.article-list { display: flex; flex-direction: column; gap: 0; }

.list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--grey-300);
}

.list-item:first-child { border-top: 1px solid var(--grey-300); }

.list-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.art-date {
  font-size: 0.72rem;
  color: var(--grey-500);
  letter-spacing: 0.05em;
}

.list-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-400);
  border: 1px solid var(--grey-400);
  border-radius: 2px;
  padding: 0 0.4em;
}

.list-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.list-item h3 a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition);
}
.list-item h3 a:hover { opacity: 0.7; }

.list-item p {
  font-size: 0.85rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ── 相关文章 ── */
.related-section { margin-top: 3rem; margin-bottom: 3rem; }

.sibling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sibling-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: background var(--transition);
}

.sibling-card:hover { background: var(--glass-hover); }

.sibling-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.sibling-card h4 a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition);
}
.sibling-card h4 a:hover { opacity: 0.7; }

.sibling-card p {
  font-size: 0.8rem;
  color: var(--grey-600);
  line-height: 1.5;
}

/* ── 关于页 ── */
.about-article { max-width: 720px; }

.about-links-section { margin-bottom: 3rem; }

.about-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-link-card {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  color: var(--grey-700);
  font-size: 0.85rem;
  text-decoration: none;
  min-height: 40px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.about-link-card:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ── 隐私页 ── */
.privacy-article { max-width: 700px; }
.privacy-nav-section { margin-bottom: 3rem; }

/* ── 页脚 ── */
.site-footer {
  background: var(--grey-100);
  border-top: 1px solid var(--grey-300);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 4rem;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--grey-500);
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav dl dt {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.75rem;
}

.footer-nav dl dd {
  margin-bottom: 0.4rem;
}

.footer-nav dl dd a {
  font-size: 0.82rem;
  color: var(--grey-600);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-nav dl dd a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  border-top: 1px solid var(--grey-300);
  font-size: 0.75rem;
  color: var(--grey-500);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: var(--grey-500);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ── 动效：Stagger + Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease calc(var(--delay, 0ms)), transform 0.5s ease calc(var(--delay, 0ms));
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 话题/正文区块间距 ── */
.topics-section { margin-bottom: 4rem; }

/* ── 响应式：≤1024px 窄边栏 ── */
@media (max-width: 1024px) {
  :root { --nav-width: 200px; }
  .content-article { padding: 3rem 3rem; }
  .hero-content { padding: 3rem 3rem 7rem; }
  .topic-hero-content { padding: 3rem 3rem 2.5rem; }
  .inner-hero-content { padding: 2.5rem 3rem 2rem; }
  .footer-inner { padding: 2.5rem 3rem; gap: 2rem; }
  .footer-bottom { padding: 1rem 3rem; }
}

/* ── 响应式：≤768px 顶部 bar ── */
@media (max-width: 768px) {
  :root { --nav-width: 0px; }

  .site-wrapper { flex-direction: column; }

  .page-main { margin-left: 0; }

  .sidenav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    border-right: none;
    border-bottom: 1px solid var(--grey-300);
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0;
  }

  .sidenav-brand {
    padding: 0.875rem 1rem;
    border-bottom: none;
    border-right: 1px solid var(--grey-300);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .brand-link { font-size: 0.875rem; }

  .sidenav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .sidenav-section { display: none; }

  .sidenav-list dd { margin: 0; flex-shrink: 0; }

  .sidenav-list dd a {
    padding: 0.4rem 0.875rem;
    font-size: 0.78rem;
    white-space: nowrap;
    min-height: 40px;
    border-radius: 40px;
  }

  .hero { min-height: 100svh; }

  .hero-content {
    padding: 2rem 1.5rem 6rem;
    text-align: right;
  }

  .hero-h1 { font-size: clamp(2.5rem, 12vw, 5rem); }

  .hero-lead { font-size: 0.9rem; }

  .hero-actions { flex-direction: column; align-items: flex-end; gap: 0.75rem; }

  .topic-hero { min-height: auto; }
  .topic-hero-content { padding: 2.5rem 1.5rem 2rem; }
  .topic-hero h1 { font-size: clamp(2rem, 8vw, 4rem); }

  .inner-hero { min-height: auto; }
  .inner-hero-content { padding: 2rem 1.5rem 1.5rem; }
  .inner-hero h1 { font-size: clamp(1.75rem, 7vw, 3rem); }

  .content-article { padding: 2rem 1.5rem; }

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

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ── 响应式：≤480px ── */
@media (max-width: 480px) {
  .sibling-grid { grid-template-columns: 1fr; }
  .about-link-row { gap: 0.5rem; }
  .article-header h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
}
