:root {
  --bg: #faf8f4;
  --bg-paper: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #444444;
  --text-muted: #777777;
  --accent: #8b0000;
  --accent-light: #c41e3a;
  --border: #d4cfc6;
  --border-light: #e8e4dc;
  --surface: #f5f2ec;
  --surface-alt: #f0ede6;
  --shadow: rgba(0,0,0,0.08);
  --table-header: #1a1a1a;
  --table-stripe: #faf7f2;
  --blockquote-border: #8b0000;
  --code-bg: #f4f1eb;
  --link: #8b0000;
  --link-hover: #6b0000;
  --insight-bg: #f9f6f0;
  --insight-border: #c9b97a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif SC', 'Source Han Serif SC', serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* ═══════════ GLOBAL LINKS ═══════════ */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

/* 微信浏览器适配 */
@media (max-width: 768px) {
  body {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif !important;
  }
}

/* ═══════════ PROGRESS BAR ═══════════ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ═══════════ JOURNAL HEADER ═══════════ */
.journal-header {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 14px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.journal-header span {
  opacity: 0.9;
  flex-grow: 1;
  text-align: center;
}

.back-nav {
  flex-shrink: 0;
  z-index: 10;
  margin-right: 20px;
}

.back-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
  font-weight: 500;
}

.back-nav a:hover { 
  color: #1a1a1a;
  background: #ffffff;
}

/* ═══════════ STICKY CHAPTER NAV ═══════════ */
.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  transition: box-shadow 0.3s;
}

.chapter-nav.stuck {
  box-shadow: 0 2px 12px var(--shadow);
}

.chapter-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chapter-nav-inner::-webkit-scrollbar { display: none; }

.chapter-nav-inner a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 16px 24px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.chapter-nav-inner a:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.chapter-nav-inner a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ═══════════ ARTICLE CONTAINER ═══════════ */
.article-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 110px;
}

/* ═══════════ TITLE BLOCK ═══════════ */
.title-block {
  text-align: center;
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.title-block::after {
  content: '§';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 20px;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.series-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 600;
}

.article-title {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.article-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.author-block {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.author-block .author-name {
  font-weight: 600;
  color: var(--text);
}

.reading-meta {
  margin-top: 28px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ═══════════ READING NOTE ═══════════ */
.reading-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 56px;
  padding: 0 40px;
  line-height: 1.8;
}

.reading-note .note-mark {
  font-style: normal;
  font-size: 1.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

/* ═══════════ STRUCTURE NAV ═══════════ */
.structure-nav {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 28px 32px;
  margin-bottom: 56px;
  font-size: 0.88rem;
  line-height: 2;
}

.structure-nav h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.structure-nav .nav-tree {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
}

/* ═══════════ TOC GRID ═══════════ */
.toc-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.toc-grid .toc-section {
  grid-column: 1 / -1;
  padding: 12px 0 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.toc-grid .toc-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.toc-grid .toc-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--text-muted);
  padding-right: 16px;
  font-size: 0.9rem;
}

.toc-grid .toc-title {
  color: var(--link);
  font-weight: 500;
}

.toc-grid .toc-keyword {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  padding-left: 16px;
}

/* ═══════════ SECTION HEADINGS ═══════════ */
.section-heading {
  margin-top: 72px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
  position: relative;
}

.section-heading h2 {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.section-heading .section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.subsection-heading {
  margin-top: 52px;
  margin-bottom: 28px;
}

.subsection-heading h3 {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ═══════════ BODY TEXT ═══════════ */
.body-text {
  margin-bottom: 32px;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.9;
  text-indent: 2em;
}

.body-text em { font-style: italic; }
.body-text strong { font-weight: 600; }

/* ═══════════ BLOCKQUOTE ═══════════ */
.pull-quote {
  border-left: 3px solid var(--blockquote-border);
  margin: 48px 0;
  padding: 28px 36px;
  background: var(--surface);
  font-size: 1.1rem;
  line-height: 2;
}

.pull-quote p { margin-bottom: 20px; }
.pull-quote p:last-child { margin-bottom: 0; }

/* ═══════════ TABLES ═══════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-size: 0.9rem;
  line-height: 1.8;
}

.data-table thead th {
  background: var(--table-header);
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--table-header);
}

.data-table tbody td {
  padding: 12px 18px;
  border: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) { background: var(--table-stripe); }

.data-table .col-label {
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-alt);
  width: 150px;
}

/* ═══════════ RULE LIST ═══════════ */
.rule-list {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  padding-left: 24px;
  position: relative;
}

.rule-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.rule-list li strong { font-weight: 600; }

/* ═══════════ CASE CARD ═══════════ */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: 0 4px 12px var(--shadow);
}

.case-card .case-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.case-card .case-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.case-card p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ═══════════ INLINE CODE ═══════════ */
code {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--accent);
}

/* ═══════════ DEDICATION ═══════════ */
.dedication {
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  position: relative;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dedication::before {
  content: '§';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 16px;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.dedication .ded-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 520px;
  text-align: center;
}

.dedication .ded-author {
  margin-top: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ═══════════ DROP CAP ═══════════ */
.drop-cap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 6px;
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════ BLOCKQUOTE ═══════════ */
blockquote {
  border-left: 2px solid var(--accent);
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1.85;
}

blockquote p {
  text-indent: 0;
  margin-bottom: 12px;
}

blockquote p:last-child { margin-bottom: 0; }

blockquote.lean {
  border-left-color: var(--border);
  background: none;
  padding-left: 24px;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote.lean .bq-attr {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* ═══════════ TABLES ═══════════ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.86rem;
  line-height: 1.7;
}

table thead th {
  background: var(--table-header);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

table tbody tr:nth-child(even) { background: var(--table-stripe); }

table .cl {
  font-weight: 600;
  white-space: nowrap;
  width: 120px;
}

/* ═══════════ CHANGELOG ═══════════ */
.changelog {
  background: var(--surface);
  border: 1px solid var(--border-light);
  padding: 22px 26px;
  margin: 28px 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.changelog .cl-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ═══════════ NOTE / CASE ═══════════ */
.note {
  background: var(--surface);
  border: 1px solid var(--border-light);
  padding: 22px 26px;
  margin: 28px 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.note .nl {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.note p {
  text-indent: 0;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-align: left;
}

.note p:last-child { margin-bottom: 0; }

/* ═══════════ 💡 INSIGHT ═══════════ */
.insight {
  background: var(--insight-bg);
  border-left: 3px solid var(--insight-border);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.insight .il {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.72rem;
  color: var(--insight-border);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.insight p {
  text-indent: 0;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-align: left;
}

.insight p:last-child { margin-bottom: 0; }

/* ═══════════ TITLE PAGE ═══════════ */
.title-page {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.title-page .series-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 60px;
}

.title-page h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 12px;
}

.title-page .title-sub {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.6;
}

.title-page .title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 48px;
  line-height: 1.6;
}

.title-page .rule-ornament {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 48px;
}

.title-page .author {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.title-page .author strong {
  color: var(--text);
  font-weight: 600;
}

.title-page .pub-info {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 16px;
}

.title-page .pub-meta {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ═══════════ ABSTRACT ═══════════ */
.abstract-box {
  margin: 56px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.abstract-box .abstract-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.abstract-box .abstract-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-secondary);
  text-align: justify;
}

.abstract-box .keywords {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.abstract-box .keywords strong {
  font-weight: 600;
  color: var(--text-secondary);
}

.kw-list { display: inline; }
.kw-list span::after { content: ' · '; color: var(--text-muted); }
.kw-list span:last-child::after { content: ''; }

/* ═══════════ QUICK SUMMARY ═══════════ */
.quick-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px 28px;
  margin: 40px 0;
}

.quick-summary .qs-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.quick-summary ol {
  margin: 0;
  padding-left: 20px;
}

.quick-summary li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.quick-summary li:last-child { margin-bottom: 0; }

.quick-summary li strong { color: var(--text); }

/* ═══════════ TOC ═══════════ */
.toc {
  margin: 48px 0;
}

.toc .toc-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.toc .toc-entry {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.86rem;
}

.toc .toc-entry:last-child { border-bottom: none; }

.toc .toc-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--text-muted);
  width: 32px;
  flex-shrink: 0;
  font-size: 0.88rem;
}

.toc .toc-title-text {
  flex: 1;
}

/* ═══════════ DISCLAIMER ═══════════ */
.disclaimer {
  margin-top: 56px;
  padding: 20px 26px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.disclaimer .dl {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.disclaimer p {
  text-indent: 0;
  text-align: left;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══════════ SEPARATOR ═══════════ */
.separator {
  text-align: center;
  margin: 48px 0;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* ═══════════ PART DIVIDER ═══════════ */
.part-divider {
  text-align: center;
  margin: 80px 0 48px;
  padding: 40px 0;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.part-divider::after {
  content: '§';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 16px;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.part-divider .part-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.part-divider h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.part-divider .part-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ═══════════ QUOTE BLOCK ═══════════ */
.quote-block {
  border-left: 3px solid var(--border);
  margin: 36px 0;
  padding: 20px 28px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-style: italic;
}

.quote-block .quote-attr {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ═══════════ FOOTER ═══════════ */
.journal-footer {
  text-align: center;
  padding: 50px 28px;
  border-top: 1px solid var(--border-light);
  margin-top: 100px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  color: var(--text-secondary);
}

.journal-footer a {
  color: var(--link);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.journal-footer a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.journal-footer br {
  margin: 8px 0;
}

/* ═══════════ BACK TO TOP ═══════════ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  background: var(--table-header);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover { background: var(--accent); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 640px) {
  .article-wrapper { padding: 40px 18px 80px; }
  .reading-guide { padding: 30px 18px 0; }
  .journal-header { padding: 12px 16px; }
  .journal-header span { font-size: 0.65rem; letter-spacing: 0.2em; }
  .back-nav { margin-right: 10px; }
  .back-nav a { padding: 3px 8px; font-size: 0.5rem; border-color: #ffffff; color: #ffffff; }
  .back-nav a:hover { color: #1a1a1a; background: #ffffff; }
  .article-title { font-size: 2rem; }
  .section-heading h2 { font-size: 1.4rem; }
  .part-divider h2 { font-size: 1.5rem; }
  .structure-nav { padding: 20px; }
  .structure-nav .nav-tree { font-size: 0.7rem; }
  .data-table { font-size: 0.82rem; }
  .data-table thead th, .data-table tbody td { padding: 8px 10px; }
  .pull-quote, .quote-block { padding: 16px 20px; }
  .case-card { padding: 24px 28px; }
  .guide-paths { grid-template-columns: 1fr; }
  .chapter-nav-inner a { padding: 12px 14px; font-size: 0.68rem; }
  #back-to-top { bottom: 20px; right: 20px; width: 36px; height: 36px; }
  .body-text { text-indent: 1.5em; }
  .journal-footer {
    padding: 40px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    line-height: 1.7;
  }
  .ending-image img {
    margin-top: 30px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }
  .abstract-box { padding: 24px 0; }
  .quick-summary { padding: 20px; }
}

/* 平板设备适配 */
@media (min-width: 641px) and (max-width: 1024px) {
  .article-wrapper { padding: 50px 30px 90px; }
  .reading-guide { padding: 35px 30px 0; }
  .article-title { font-size: 2.4rem; }
  .section-heading h2 { font-size: 1.5rem; }
  .part-divider h2 { font-size: 1.7rem; }
  .page { padding: 0 30px 100px; }
}

/* ═══════════ INSIGHT BOX ═══════════ */
.insight-box {
  background: var(--insight-bg);
  border: 1px solid var(--insight-border);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
}

.insight-box::before {
  content: '💡';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--insight-bg);
  padding: 0 12px;
  font-size: 1.2rem;
}

.insight-box .insight-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.insight-box p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.insight-box p:last-child { margin-bottom: 0; }

/* ═══════════ RULE / LINE ═══════════ */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* ═══════════ PROLOGUE / EPILOGUE ═══════════ */
.prologue, .epilogue {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.9;
  margin: 48px 0;
  padding: 0 24px;
}

/* ═══════════ EPIGRAPH ═══════════ */
.epigraph {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 48px 0;
  padding: 0 40px;
  line-height: 1.9;
}

.epigraph .epi-attr {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* ═══════════ CLOSING ═══════════ */
.closing {
  text-align: center;
  margin: 64px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.closing .orn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.closing .ded {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.closing .sig {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ═══════════ ABSTRACT ═══════════ */
.abstract-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.abstract-text.no-indent {
  text-indent: 0;
}

.keywords {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 24px;
}

.keywords .kw-list {
  display: inline-block;
  margin-left: 12px;
}

.keywords .kw-list span {
  display: inline-block;
  margin-right: 12px;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ═══════════ QUICK SUMMARY ═══════════ */
.quick-summary {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 32px 0;
}

.quick-summary h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.quick-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-summary li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.quick-summary li:last-child {
  border-bottom: none;
}

.quick-summary li strong {
  color: var(--text);
  font-weight: 600;
}

/* ═══════════ ABSTRACT BOX ═══════════ */
.abstract-box {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin: 48px 0;
}

.abstract-box .abstract-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
}

.abstract-box .abstract-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 40px;
}

/* ═══════════ ENDING IMAGE ═══════════ */
.ending-image {
  text-align: center;
  margin: 64px 0;
}

.ending-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--shadow);
}

.ending-image .image-caption {
  margin-top: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ═══════════ READING GUIDE ═══════════ */
.reading-guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.guide-header {
  text-align: center;
  margin-bottom: 32px;
}

.guide-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.guide-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.guide-path {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.3s;
}

.guide-path:hover {
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-2px);
}

.guide-path h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.guide-path p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guide-path ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-path li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 16px;
}

.guide-path li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.guide-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ═══════════ PAGE ═══════════ */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 100px;
}
