/* ============================================
   能看的网址 — Anti-Polish Raw Aesthetic
   Space Grotesk + 米白/暗灰/近黑 配色
   ============================================ */

/* ---------- 基础变量 ---------- */
:root {
  --c-bg: #fafaf8;
  --c-mid: #4a4a4a;
  --c-ink: #1a1a1a;
  --c-bg2: #f0efe9;
  --c-accent: #2a2a2a;
  --c-band1: #1a1a1a;
  --c-band2: #4a4a4a;
  --c-band3: #d4d2c8;
  --c-muted: #7a7a72;
  --c-rule: #d0cfc6;
  --c-card: #f2f1eb;
  --c-hover: #e8e7e0;
  --font-main: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
  --r: 4px;
  --nav-h: 56px;
  --anchor-h: 40px;
  --max-w: 1160px;
  --prose-max: 720px;
  --gap: clamp(16px, 3vw, 32px);
  --section-pad: clamp(40px, 6vw, 80px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 肌理叠加（paper texture 伪元素） ---------- */
.site-wrap {
  position: relative;
  min-height: 100vh;
}
.site-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ---------- 导航 details/summary 结构 ---------- */
.nav-details {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--c-ink);
  height: var(--nav-h);
  overflow: visible;
}
.nav-details[open] {
  height: auto;
}
.nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gap);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav-summary::-webkit-details-marker { display: none; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-bg);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  min-height: 40px;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; opacity: 0.85; }
.nav-logo { width: 32px; height: 32px; border-radius: 2px; }
.nav-brand-text {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--c-bg);
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 8px 0;
  min-height: 40px;
  justify-content: center;
}
.nav-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-bg);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-details[open] .nav-toggle-label .nav-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-details[open] .nav-toggle-label .nav-bar:nth-child(2) { opacity: 0; }
.nav-details[open] .nav-toggle-label .nav-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  flex-direction: column;
  background: var(--c-ink);
  padding: 12px var(--gap) 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 2px;
}
.nav-menu li a {
  display: block;
  color: var(--c-bg);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--r);
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s;
}
.nav-menu li a:hover,
.nav-menu li a[aria-current="page"] {
  opacity: 1;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

@media (min-width: 800px) {
  .nav-details {
    height: var(--nav-h);
    overflow: hidden;
  }
  .nav-details[open] {
    height: var(--nav-h);
    overflow: visible;
  }
  .nav-summary {
    padding: 0 clamp(20px, 4vw, 60px);
  }
  .nav-toggle-label { display: none; }
  .nav-details[open] .nav-menu,
  .nav-menu {
    /* Desktop: show as horizontal bar below nav on open */
    display: none;
  }
  .nav-details {
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .nav-summary {
    flex: 1;
    height: var(--nav-h);
  }
  /* Desktop horizontal nav hack via details open */
  .nav-details .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px clamp(20px, 4vw, 60px);
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 4px;
  }
  .nav-details[open] .nav-menu {
    display: flex;
  }
  .nav-menu li a {
    font-size: 0.875rem;
    padding: 8px 14px;
    min-height: 40px;
    white-space: nowrap;
  }
}

/* ---------- 二级粘性锚点条 ---------- */
.sticky-anchors {
  position: sticky;
  top: var(--nav-h);
  z-index: 190;
  background: var(--c-band2);
  border-bottom: 2px solid var(--c-ink);
  height: var(--anchor-h);
  overflow: hidden;
}
.sticky-anchors__inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  padding: 0 var(--gap);
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-anchors__inner::-webkit-scrollbar { display: none; }
.anchor-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-bg);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.12);
  min-height: 40px;
  letter-spacing: 0.01em;
  opacity: 0.82;
  transition: opacity 0.15s, background 0.15s;
}
.anchor-link:hover,
.anchor-link--active {
  opacity: 1;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* ---------- 主体偏移 ---------- */
main {
  padding-top: calc(var(--nav-h) + var(--anchor-h));
}

/* ---------- 几何色带 ---------- */
.geo-band {
  height: 6px;
  width: 100%;
}
.geo-band--a { background: var(--c-band1); transform: skewY(-1.5deg); transform-origin: left; }
.geo-band--topic { background: var(--c-band2); }
.geo-band--tag { background: var(--c-band3); }
.geo-band--about { background: var(--c-band1); transform: skewY(1deg); }
.geo-band--privacy { background: var(--c-band2); }
.geo-band--default { background: var(--c-band3); }

/* ---------- HERO 区（首页） ---------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - var(--anchor-h));
  background: var(--c-ink);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.hero__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}
.hero__figure--plain {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2a 60%, #3a3a36 100%);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.3) contrast(1.05);
  opacity: 0.55;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(26,26,26,0.82) 0%, rgba(26,26,26,0.45) 55%, rgba(26,26,26,0.15) 100%);
}
.hero__aside {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 8vh, 120px) var(--gap) clamp(40px, 7vh, 96px);
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.hero__content {
  flex: 1;
  max-width: 680px;
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-band3);
  margin-bottom: 16px;
  opacity: 0.9;
}
.hero__h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--c-bg);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(250,250,248,0.72);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  background: var(--c-bg);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--r);
  min-height: 44px;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.15s;
}
.hero__cta:hover {
  background: var(--c-band3);
  text-decoration: none;
  transform: translateY(-1px);
}
.hero__deco {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 100%;
  pointer-events: none;
}
.deco-strip {
  position: absolute;
  width: 3px;
  height: 60%;
  top: 20%;
  opacity: 0.18;
}
.deco-strip--1 { right: 15%; background: var(--c-bg); transform: rotate(2deg); }
.deco-strip--2 { right: 25%; background: var(--c-bg); transform: rotate(-1.5deg); }

/* ---------- 通用内容区布局（sidebar 左侧） ---------- */
.content-section,
.topic-content-section,
.article-body-section,
.tag-content-section,
.about-body-section,
.privacy-body-section,
.default-body-section {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) var(--gap);
}
.content-section > figure,
.topic-content-section > figure,
.article-body-section > figure,
.tag-content-section > figure,
.about-body-section > figure,
.privacy-body-section > figure,
.default-body-section > figure {
  grid-column: 1 / -1;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--c-rule) 0, var(--c-rule) 1px, transparent 1px, transparent 24px);
  margin-bottom: clamp(20px, 3vw, 36px);
  border-radius: 1px;
}

/* Sidebar left */
.content-sidebar {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: calc(var(--nav-h) + var(--anchor-h) + 20px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

/* ---------- Sidebar 块 ---------- */
.sidebar-block {
  background: var(--c-card);
  border-radius: var(--r);
  padding: 16px;
}
.sidebar-block__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-rule);
  padding-bottom: 8px;
}
.sidebar-block__title span { display: block; }
.sidebar-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-links li a {
  display: block;
  font-size: 0.875rem;
  color: var(--c-mid);
  padding: 5px 8px;
  border-radius: 2px;
  min-height: 32px;
  display: flex;
  align-items: center;
  transition: color 0.12s, background 0.12s;
}
.sidebar-links li a:hover,
.sidebar-links li a.sidebar-active {
  color: var(--c-ink);
  background: var(--c-hover);
  text-decoration: none;
}

/* ---------- Prose 正文 ---------- */
.prose {
  max-width: var(--prose-max);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink);
}
.prose h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 2em 0 0.6em;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.prose h2 span { display: inline; }
.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.6em 0 0.5em;
}
.prose h3 span { display: inline; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--c-mid); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-ink); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--c-band2);
  padding: 10px 16px;
  margin: 1.5em 0;
  background: var(--c-card);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--c-mid);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-card);
  padding: 2px 6px;
  border-radius: 2px;
}
.prose pre {
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 16px 20px;
  border-radius: var(--r);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875em;
  margin: 1.5em 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
}
.prose th, .prose td {
  padding: 8px 12px;
  border: 1px solid var(--c-rule);
  text-align: left;
}
.prose th { background: var(--c-card); font-weight: 600; }
.prose img {
  border-radius: var(--r);
  margin: 1.5em 0;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--c-rule);
  margin: 2em 0;
}
.prose figure {
  margin: 1.5em 0;
}
.prose figcaption {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: 6px;
}

/* ---------- 首页专题区 ---------- */
.topics-section {
  position: relative;
  background: var(--c-bg2);
  padding: var(--section-pad) var(--gap);
  max-width: 100%;
  overflow: hidden;
}
.topics-section .section-deco-fig {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  margin: 0;
}
.topics-section__aside {
  max-width: var(--max-w);
  margin: 0 auto 32px;
}
.topics-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.topic-card {
  background: var(--c-bg);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s, box-shadow 0.2s;
}
.topic-card:nth-child(2n) { --tilt: 0.4deg; }
.topic-card:nth-child(3n) { --tilt: -0.3deg; }
.topic-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,26,26,0.12);
}
.topic-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.topic-card__band {
  height: 4px;
  background: var(--c-ink);
}
.topic-card:nth-child(2n) .topic-card__band { background: var(--c-mid); }
.topic-card:nth-child(3n) .topic-card__band { background: var(--c-band3); }
.topic-card__body {
  padding: 20px;
}
.topic-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.topic-card__title span { display: inline; }
.topic-card__desc {
  font-size: 0.875rem;
  color: var(--c-mid);
  line-height: 1.55;
  margin-bottom: 12px;
}
.topic-card__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.02em;
}

/* ---------- 首页近期收录 ---------- */
.recent-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) var(--gap);
}
.recent-aside { grid-column: 1; }
.recent-main { grid-column: 2; }
.recent-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-rule);
}
.recent-list dt {
  padding: 14px 0 4px;
  border-top: 1px solid var(--c-rule);
  margin-top: -1px;
}
.recent-list dt:first-child { border-top: none; }
.recent-list dt a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-ink);
  line-height: 1.4;
}
.recent-list dt a:hover { text-decoration: underline; }
.recent-list dd {
  font-size: 0.85rem;
  color: var(--c-muted);
  padding-bottom: 14px;
  line-height: 1.5;
}
.recent-list dd time { font-size: 0.8rem; }
.dt-sep { color: var(--c-rule); }
.more-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-mid);
  border-bottom: 1px solid var(--c-mid);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.more-link:hover { color: var(--c-ink); text-decoration: none; border-color: var(--c-ink); }

/* ---------- 区块通用标题 ---------- */
.section-heading {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.section-heading span { display: inline; }
.section-sub {
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* ---------- 话题 Hero ---------- */
.topic-hero-section {
  position: relative;
  background: var(--c-bg2);
  padding: clamp(32px, 5vw, 64px) var(--gap) clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px clamp(24px, 4vw, 48px);
  max-width: 100%;
}
.topic-hero__deco {
  grid-column: 1 / -1;
  height: 6px;
  margin: 0 0 20px;
}
.topic-hero__aside {
  grid-column: 1;
  padding-top: 4px;
}
.topic-hero__content {
  grid-column: 2;
  max-width: var(--max-w);
}
.topic-hero__h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 12px;
}
.topic-hero__desc {
  font-size: 1rem;
  color: var(--c-mid);
  line-height: 1.6;
  max-width: 640px;
}
.topic-hero__date {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--c-muted);
}
.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--c-muted);
  min-height: 40px;
  transition: color 0.12s;
}
.breadcrumb-link:hover { color: var(--c-ink); text-decoration: none; }
.breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--c-muted);
  min-height: 40px;
}
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--c-mid); }

/* ---------- 子页列表（topic 页卡片） ---------- */
.children-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) var(--gap);
}
.children-aside {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.children-count {
  font-size: 0.8rem;
  color: var(--c-muted);
  font-weight: 600;
}
.children-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.child-card {
  background: var(--c-card);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.child-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,26,26,0.1);
}
.child-card__link { display: block; text-decoration: none; color: inherit; }
.child-card__fig { overflow: hidden; aspect-ratio: 16/9; background: var(--c-bg2); }
.child-card__img { width: 100%; height: 100%; object-fit: cover; }
.child-card__body { padding: 16px; }
.child-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.child-card__title span { display: inline; }
.child-card__desc {
  font-size: 0.82rem;
  color: var(--c-mid);
  line-height: 1.5;
  margin-bottom: 8px;
}
.child-card__date {
  font-size: 0.75rem;
  color: var(--c-muted);
}
.empty-tip {
  color: var(--c-muted);
  font-size: 0.9rem;
  padding: 20px 0;
}

/* ---------- 文章 Hero ---------- */
.article-header-section {
  position: relative;
  background: var(--c-bg2);
  padding: clamp(32px, 5vw, 64px) var(--gap) clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px clamp(24px, 4vw, 48px);
}
.article-hero__figure {
  grid-column: 1 / -1;
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: var(--r);
  margin-bottom: 24px;
  background: var(--c-ink);
}
.article-hero__figure--plain {
  height: 8px;
  background: none;
  border-radius: 0;
  margin-bottom: 20px;
}
.article-hero__band {
  height: 100%;
  background: linear-gradient(90deg, var(--c-ink) 0%, var(--c-mid) 100%);
}
.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,26,26,0.5) 100%);
}
.article-header__aside {
  grid-column: 1;
  padding-top: 4px;
}
.article-header__content {
  grid-column: 2;
}
.article-hero__h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.article-hero__desc {
  font-size: 0.97rem;
  color: var(--c-mid);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.article-meta__date {
  font-size: 0.8rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
}

/* ---------- 文章返回链接 ---------- */
.article-back {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-rule);
}
.back-link {
  font-size: 0.875rem;
  color: var(--c-muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.12s;
}
.back-link:hover { color: var(--c-ink); text-decoration: none; }

/* ---------- 相关文章 ---------- */
.related-section {
  background: var(--c-bg2);
  padding: var(--section-pad) var(--gap);
  border-top: 1px solid var(--c-rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
  max-width: 100%;
}
.related-aside { grid-column: 1; }
.related-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
  max-width: var(--max-w);
}
.related-card {
  background: var(--c-bg);
  border-radius: var(--r);
  overflow: hidden;
  border-top: 3px solid var(--c-ink);
  transition: box-shadow 0.2s, transform 0.2s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.related-card__link { display: block; padding: 16px; text-decoration: none; color: inherit; }
.related-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.related-card__title span { display: inline; }
.related-card__desc { font-size: 0.8rem; color: var(--c-mid); line-height: 1.5; }
.related-card__date { display: block; font-size: 0.75rem; color: var(--c-muted); margin-top: 8px; }

/* ---------- 标签页 ---------- */
.tag-header-section {
  position: relative;
  background: var(--c-bg2);
  padding: clamp(32px, 5vw, 64px) var(--gap) clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px clamp(24px, 4vw, 48px);
}
.tag-header__deco {
  grid-column: 1 / -1;
  height: 6px;
  margin: 0 0 20px;
}
.tag-header__aside { grid-column: 1; padding-top: 4px; }
.tag-header__content { grid-column: 2; }
.tag-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.tag-hero__h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.tag-hero__desc { font-size: 0.97rem; color: var(--c-mid); }
.tag-list-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) var(--gap);
}
.tag-list__aside { grid-column: 1; display: flex; flex-direction: column; gap: 8px; }
.tag-list__main { grid-column: 2; }
.tag-article-list {
  border-top: 1px solid var(--c-rule);
}
.tag-article-list dt {
  padding: 14px 0 4px;
  border-top: 1px solid var(--c-rule);
  margin-top: -1px;
}
.tag-article-list dt:first-child { border-top: none; }
.tag-article-list dt a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-ink);
}
.tag-article-list dt a:hover { text-decoration: underline; }
.tag-article-list dd {
  font-size: 0.85rem;
  color: var(--c-muted);
  padding-bottom: 14px;
  line-height: 1.5;
}

/* ---------- 关于页 ---------- */
.about-header-section {
  position: relative;
  background: var(--c-ink);
  padding: clamp(48px, 7vw, 96px) var(--gap) clamp(32px, 5vw, 64px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px clamp(24px, 4vw, 48px);
}
.about-header__deco {
  grid-column: 1 / -1;
  height: 8px;
  margin: 0 0 24px;
  position: relative;
  overflow: hidden;
}
.about-scratch {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    80deg,
    transparent 0,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 41px
  );
}
.about-header__aside { grid-column: 1; }
.about-header__aside .breadcrumb-link { color: rgba(250,250,248,0.6); }
.about-header__aside .breadcrumb-link:hover { color: var(--c-bg); }
.about-header__content { grid-column: 2; }
.about-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.5);
  margin-bottom: 12px;
}
.about-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--c-bg);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.about-desc {
  font-size: 1rem;
  color: rgba(250,250,248,0.68);
  line-height: 1.65;
  max-width: 560px;
}
.about-topics-section {
  background: var(--c-bg2);
  padding: var(--section-pad) var(--gap);
  border-top: 1px solid var(--c-rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
  max-width: 100%;
}
.about-topics__aside { grid-column: 1; }
.about-topics__grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: var(--max-w);
  align-self: start;
}
.about-topic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-bg);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink);
  min-height: 44px;
  border-top: 2px solid var(--c-ink);
  transition: background 0.15s, transform 0.15s;
}
.about-topic-link:hover { background: var(--c-card); text-decoration: none; transform: translateX(2px); }
.about-topic-link__arrow { opacity: 0.4; font-size: 1rem; }

/* ---------- 隐私页 ---------- */
.privacy-header-section {
  position: relative;
  background: var(--c-bg2);
  padding: clamp(32px, 5vw, 64px) var(--gap) clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px clamp(24px, 4vw, 48px);
}
.privacy-header__deco {
  grid-column: 1 / -1;
  height: 6px;
  margin: 0 0 20px;
}
.privacy-header__aside { grid-column: 1; padding-top: 4px; }
.privacy-header__content { grid-column: 2; }
.privacy-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.privacy-desc { font-size: 0.97rem; color: var(--c-mid); margin-bottom: 8px; }
.privacy-date { font-size: 0.8rem; color: var(--c-muted); font-family: var(--font-mono); }

/* ---------- 默认页 ---------- */
.default-header-section {
  position: relative;
  background: var(--c-bg2);
  padding: clamp(32px, 5vw, 60px) var(--gap) clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px clamp(24px, 4vw, 48px);
}
.default-header__deco { grid-column: 1 / -1; height: 6px; margin: 0 0 20px; }
.default-header__aside { grid-column: 1; padding-top: 4px; }
.default-header__content { grid-column: 2; }
.default-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.default-desc { font-size: 0.97rem; color: var(--c-mid); }

/* ---------- 页脚 footer > section×4 ---------- */
.site-footer {
  background: var(--c-ink);
  color: var(--c-bg);
  padding: clamp(40px, 6vw, 72px) var(--gap) clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
  max-width: 100%;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gap);
  right: var(--gap);
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.45);
  margin-bottom: 4px;
}
.footer-col__title span { display: block; }
.footer-col__desc {
  font-size: 0.82rem;
  color: rgba(250,250,248,0.55);
  line-height: 1.65;
}
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links li a {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(250,250,248,0.68);
  min-height: 40px;
  padding: 4px 0;
  transition: color 0.12s;
}
.footer-links li a:hover { color: var(--c-bg); text-decoration: none; }
.footer-links li a[aria-current="page"] { color: var(--c-bg); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(250,250,248,0.35);
  font-family: var(--font-mono);
  margin-top: auto;
  padding-top: 8px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式断点 ---------- */
@media (max-width: 800px) {
  .content-section,
  .topic-content-section,
  .article-body-section,
  .tag-content-section,
  .about-body-section,
  .privacy-body-section,
  .default-body-section {
    grid-template-columns: 1fr;
  }
  .content-section > figure,
  .topic-content-section > figure,
  .article-body-section > figure,
  .tag-content-section > figure,
  .about-body-section > figure,
  .privacy-body-section > figure,
  .default-body-section > figure {
    grid-column: 1;
  }
  .content-sidebar {
    grid-column: 1;
    grid-row: 3;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sidebar-block { flex: 1 1 200px; }
  .content-main { grid-column: 1; grid-row: 2; }

  .topic-hero-section,
  .article-header-section,
  .tag-header-section,
  .privacy-header-section,
  .default-header-section {
    grid-template-columns: 1fr;
  }
  .topic-hero__aside,
  .article-header__aside,
  .tag-header__aside,
  .privacy-header__aside,
  .default-header__aside { grid-column: 1; }
  .topic-hero__content,
  .article-header__content,
  .tag-header__content,
  .privacy-header__content,
  .default-header__content { grid-column: 1; }

  .about-header-section {
    grid-template-columns: 1fr;
  }
  .about-header__aside,
  .about-header__content { grid-column: 1; }

  .children-section,
  .recent-section,
  .related-section,
  .tag-list-section,
  .about-topics-section {
    grid-template-columns: 1fr;
  }
  .children-aside,
  .recent-aside,
  .related-aside,
  .tag-list__aside,
  .about-topics__aside { grid-column: 1; }
  .children-grid,
  .recent-main,
  .related-grid,
  .tag-list__main,
  .about-topics__grid { grid-column: 1; }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .hero__aside {
    padding: clamp(40px, 8vh, 80px) var(--gap) clamp(32px, 6vh, 64px);
  }
}

@media (max-width: 480px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .children-grid,
  .related-grid,
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .about-topics__grid {
    grid-template-columns: 1fr;
  }
  .sticky-anchors__inner {
    padding: 0 12px;
  }
  .anchor-link {
    padding: 0 10px;
    font-size: 0.75rem;
  }
}

/* ---------- 实用工具 ---------- */
.page-content { padding-top: calc(var(--section-pad) - 12px); }
.content-texture-fig,
.article-body__texture,
.about-body__texture,
.privacy-body__texture,
.default-body__texture {
  background: repeating-linear-gradient(
    90deg,
    var(--c-rule) 0,
    var(--c-rule) 1px,
    transparent 1px,
    transparent 28px
  ) !important;
}
time { font-family: var(--font-mono); }
