/* ==========================================================================
   1. 设计变量 (Design Tokens)
   ========================================================================== */
:root {
  --bg-paper: #F7F6F2;
  --bg-surface: #EFECE6;
  --bg-deep: #EAE6DF;
  
  --ink-primary: #141413;
  --ink-secondary: #5C5B57;
  --ink-muted: #94928C;
  
  --accent-vermilion: #D5081B;
  --border-hairline: rgba(20, 20, 19, 0.14);
  
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --font-serif: 'IBM Plex Serif', 'Noto Serif SC', Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. 全局基础样式 (Base & Reset)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  width: 100%;
}

/* 噪点背景效果 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

::selection {
  background-color: var(--ink-primary);
  color: var(--bg-paper);
}

.container {
  flex: 1;
  padding: 4.5rem 5vw;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent-vermilion);
  z-index: 120;
  transition: width 0.1s linear;
}

/* ==========================================================================
   3. 顶部导航与页头 (Header & Navigation)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 5vw;
  background-color: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
  width: 100%;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-vermilion);
  border-radius: 50%;
  display: inline-block;
}

nav.desktop-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

nav.desktop-nav a,
nav.desktop-nav a.back-link,
nav.desktop-nav a.nav-pill {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  border: none;
  background-color: transparent;
  transition: color 0.3s ease;
}

nav.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-vermilion);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out-expo);
}

nav.desktop-nav a:hover,
nav.desktop-nav a.back-link:hover,
nav.desktop-nav a.nav-pill:hover {
  color: var(--ink-primary);
  background-color: transparent;
  border-color: transparent;
}

nav.desktop-nav a:hover::after {
  transform: scaleX(1);
}

/* 移动端汉堡菜单及抽屉 */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 100;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--ink-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-drawer {
  position: absolute;
  top: 100%;
  right: 5vw;
  width: min(320px, 90vw);
  background-color: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-top: none;
  box-shadow: 0 20px 40px -15px rgba(20, 20, 19, 0.12);
  z-index: 95;
  padding: 0.75rem 1.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
}

.mobile-drawer a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

.mobile-drawer a:hover {
  color: var(--accent-vermilion);
  padding-left: 0.45rem;
}

.mobile-drawer a span.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   4. 列表与笔记栏组件 (Lists & Notes)
   ========================================================================== */
.list-container,
.notes-list {
  border-top: 1px solid var(--border-hairline);
  width: 100%;
}

.note-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.8fr) minmax(0, 2fr) 90px;
  gap: 2rem;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.35s ease, padding-left 0.35s var(--ease-out-expo);
  width: 100%;
}

@media (hover: hover) {
  .note-row:hover {
    background-color: var(--bg-surface);
    padding-left: 1.75rem;
  }
}

.note-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.note-badge {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent-vermilion);
}

.note-date {
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.note-row:hover .note-num {
  color: var(--ink-primary);
}

.note-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.note-excerpt {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.note-arrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: right;
  color: var(--ink-muted);
  transition: color 0.3s ease;
}

.note-row:hover .note-arrow {
  color: var(--accent-vermilion);
}

/* ==========================================================================
   5. 页面页眉与页脚 (Page Headers & Footer)
   ========================================================================== */
.page-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.page-header span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

footer {
  padding: 2.5rem 5vw;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-muted);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   6. 首页 Hero 区域 (Hero Section)
   ========================================================================== */
.hero {
  padding: 6rem 5vw 5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
  border-bottom: 1px solid var(--border-hairline);
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.hero-manifesto {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-secondary);
  line-height: 1.85;
  padding-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.section-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  gap: 1rem;
}

.section-meta h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.section-meta span {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   7. 矩阵网格与卡片组件 (Matrix & Lens Cards)
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-hairline);
  border-left: 1px solid var(--border-hairline);
}

.lens-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  background-color: transparent;
  transition: background-color 0.5s var(--ease-out-expo);
  cursor: pointer;
  min-width: 0;
}

@media (hover: hover) {
  .lens-card:hover {
    background-color: var(--bg-surface);
  }
  .lens-card:hover .lens-glyph {
    transform: scale(1.12) rotate(4deg);
    stroke: var(--accent-vermilion);
  }
}

.lens-index {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lens-glyph {
  width: 36px;
  height: 36px;
  margin: 2.5rem 0 2rem;
  stroke: var(--ink-primary);
  fill: none;
  stroke-width: 1.2;
  transition: transform 0.6s var(--ease-out-expo), stroke 0.4s ease;
}

.lens-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  overflow-wrap: break-word;
}

.lens-latin {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  display: block;
}

.lens-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* ==========================================================================
   8. 观察站与张力布局组件 (Observatory & Tensions)
   ========================================================================== */
.observatory-box {
  background-color: var(--ink-primary);
  color: var(--bg-paper);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.obs-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.obs-btn {
  background: transparent;
  border: 1px solid rgba(247, 246, 242, 0.2);
  color: rgba(247, 246, 242, 0.65);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.obs-btn:hover,
.obs-btn.active {
  border-color: var(--bg-paper);
  color: var(--bg-paper);
  background-color: rgba(247, 246, 242, 0.06);
  padding-left: 1.6rem;
}

.obs-btn.active span.indicator {
  color: var(--accent-vermilion);
}

.obs-display {
  border-left: 1px solid rgba(247, 246, 242, 0.18);
  padding-left: 3.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.obs-quote {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  transition: opacity 0.35s ease;
  overflow-wrap: break-word;
}

.obs-note {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(247, 246, 242, 0.55);
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
}

.tensions-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.tension-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-hairline);
  min-width: 0;
}

.tension-tab {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border-hairline);
  background: none;
  border-left: none;
  border-right: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-secondary);
  transition: all 0.3s ease;
}

.tension-tab:hover,
.tension-tab.active {
  color: var(--ink-primary);
  padding-left: 0.75rem;
}

.tension-tab.active .tab-code {
  color: var(--accent-vermilion);
}

.tab-code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.tension-stage {
  background-color: var(--bg-surface);
  padding: 3.5rem;
  border: 1px solid var(--border-hairline);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.tension-poles {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tension-line {
  flex: 1;
  min-width: 30px;
  height: 1px;
  background-color: var(--border-hairline);
  position: relative;
}

.tension-line::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  background-color: var(--accent-vermilion);
  transform: rotate(45deg);
}

.tension-heading {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.65rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.tension-body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

/* ==========================================================================
   9. 产物与时间线组件 (Artifacts & Chronicles)
   ========================================================================== */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-header-row h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.2rem;
}

.view-all-link {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-vermilion);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.view-all-link:hover {
  opacity: 0.7;
}

.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
}

.artifact-item {
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-paper);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
  min-width: 0;
}

@media (hover: hover) {
  .artifact-item:hover {
    transform: translateY(-4px);
    background-color: var(--bg-surface);
  }
}

.artifact-canvas {
  height: 150px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artifact-canvas svg {
  width: 72px;
  height: 72px;
  stroke: var(--ink-primary);
  fill: none;
  stroke-width: 1;
}

.artifact-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--accent-vermilion);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: block;
}

.artifact-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.artifact-spec {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.chronicle-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
  width: 100%;
}

.chronicle-step {
  position: relative;
  min-width: 0;
}

.chronicle-step::before {
  content: "";
  position: absolute;
  top: -2.3rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--bg-paper);
  border: 1.5px solid var(--ink-primary);
}

.chronicle-step:first-child::before {
  background-color: var(--accent-vermilion);
  border-color: var(--accent-vermilion);
}

.step-phase {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.step-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.step-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* ==========================================================================
   10. 通讯与表单组件 (Correspondence Form)
   ========================================================================== */
.correspondence-box {
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-surface);
  padding: 4.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.corr-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.corr-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.corr-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.corr-input-group {
  display: flex;
  border-bottom: 1px solid var(--ink-primary);
  padding-bottom: 0.5rem;
  width: 100%;
  min-width: 0;
}

.corr-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-primary);
  outline: none;
}

.corr-input::placeholder {
  color: var(--ink-muted);
}

.corr-submit {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary);
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.corr-submit:hover {
  color: var(--accent-vermilion);
}

.corr-feedback {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--accent-vermilion);
  min-height: 1.2em;
  overflow-wrap: break-word;
}

/* ==========================================================================
   11. 文章详情壳层与 Markdown 正文 (Article Shell & Typography)
   ========================================================================== */
.article-shell {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem 5vw 7rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 6.5rem;
  border-top: 1px solid var(--border-hairline);
  padding-top: 1.25rem;
  min-width: 0;
}

.toc-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: block;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-list a {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  overflow-wrap: break-word;
  transition: color 0.25s ease, transform 0.25s ease;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--accent-vermilion);
  transform: translateX(4px);
}

.toc-list a.toc-sub {
  padding-left: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.article-main {
  max-width: 68ch;
  width: 100%;
  min-width: 0;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.article-meta-bar span.tag-red {
  color: var(--accent-vermilion);
}

.article-title,
h1.brief-title {
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}

.article-lead,
p.brief-lead {
  font-size: 1.08rem;
  color: var(--ink-secondary);
  line-height: 1.8;
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-hairline);
  overflow-wrap: break-word;
}

.markdown-body {
  font-size: 1.05rem;
  line-height: 1.95;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.markdown-body p,
.markdown-body li,
.markdown-body blockquote {
  margin-bottom: 1.6rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.6rem;
}

.markdown-body a {
  color: var(--accent-vermilion);
  word-break: break-all;
}

.markdown-body h2 {
  font-weight: 800;
  font-size: 1.45rem;
  margin-top: 3.2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-hairline);
  scroll-margin-top: 6rem;
  overflow-wrap: break-word;
}

.markdown-body h3 {
  font-weight: 800;
  font-size: 1.2rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
  overflow-wrap: break-word;
}

.markdown-body blockquote {
  margin: 2.25rem 0;
  padding: 0.6rem 1rem 0.6rem 1.25rem;
  border-left: 2px solid var(--accent-vermilion);
  color: var(--ink-secondary);
  background-color: var(--bg-surface);
}

.markdown-body img,
.markdown-body video,
.markdown-body iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.markdown-body pre {
  max-width: 100%;
  overflow-x: auto;
  background-color: var(--bg-surface);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: var(--bg-surface);
  padding: 0.15rem 0.35rem;
  word-break: break-word;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  word-break: normal;
}

.markdown-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 2.25rem 0;
  font-size: 0.92rem;
}

.markdown-body th,
.markdown-body td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.markdown-body th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-primary);
}

.article-pager {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.pager-card {
  text-decoration: none;
  color: inherit;
  padding: 1.25rem;
  border: 1px solid var(--border-hairline);
  transition: background-color 0.3s ease;
  min-width: 0;
}

.pager-card:hover {
  background-color: var(--bg-surface);
}

.pager-card.next {
  text-align: right;
}

.pager-dir {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.pager-title {
  font-weight: 600;
  font-size: 1rem;
  overflow-wrap: break-word;
}

/* ==========================================================================
   12. 工具栏、筛选与杂项组件 (Toolbar & Filters)
   ========================================================================== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.95rem;
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.filter-btn.active {
  background-color: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
}

.sub-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sub-links a {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-vermilion);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.sub-links a:hover {
  opacity: 0.7;
}

.meta-bar {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}

.meta-bar span.red {
  color: var(--accent-vermilion);
}

/* ==========================================================================
   13. 响应式媒体查询 (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero,
  .observatory-box,
  .tensions-layout,
  .correspondence-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .matrix-grid,
  .chronicle-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .artifacts-grid {
    grid-template-columns: 1fr;
  }
  
  .note-row {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 0.65rem 1rem;
    padding: 1.5rem 0.25rem;
  }
  
  .note-excerpt,
  .note-arrow {
    grid-column: 2;
    text-align: left;
  }
  
  .obs-display {
    border-left: none;
    border-top: 1px solid rgba(247, 246, 242, 0.18);
    padding-left: 0;
    padding-top: 2rem;
  }
}

@media (max-width: 960px) {
  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 2.5rem 5vw 4.5rem;
  }
  
  .toc-sidebar {
    position: static;
    background-color: var(--bg-surface);
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border-hairline);
  }
}

@media (max-width: 768px) {
  nav.desktop-nav {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
}

@media (max-width: 640px) {
  .matrix-grid,
  .chronicle-timeline {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .correspondence-box,
  .tension-stage,
  .observatory-box {
    padding: 2rem;
  }
  
  .article-lead {
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
    font-size: 1rem;
  }
  
  .article-pager {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 3rem;
  }
  
  .pager-card.next {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .note-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  
  .note-num {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .note-excerpt,
  .note-arrow {
    grid-column: 1;
    text-align: left;
  }
  
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}