
/* 本站独立样式；无需外部字体、框架或 CDN。 */
:root { color-scheme: light; --paper: #fcfaf6; --muted: #69645d; --line: #ddd7ce; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
button, .button { border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--button-ink, #fff); padding: 9px 17px; text-decoration: none; display: inline-block; }
button:hover, .button:hover { filter: brightness(.94); }
button[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 3px; }
input { max-width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px 13px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--ink); color: var(--paper); padding: 8px; }
.skip:focus { top: 12px; }
.brand { font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.brand small { display: block; font-size: 11px; letter-spacing: .2em; font-weight: 500; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .14em; font-weight: 700; }
h1, h2, h3 { line-height: 1.4; overflow-wrap: anywhere; }
h1 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -.035em; margin: 18px 0; }
h2 { font-size: 26px; margin: 12px 0 20px; }
h3 { font-size: 19px; }
p { margin: 0 0 18px; }
.muted, .meta { color: var(--muted); font-size: 13px; }
.lead { font-size: 17px; max-width: 670px; }
.section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin: 38px 0 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-title h2 { margin: 0; }
.card { min-width: 0; }
.card h2, .card h3 { font-size: 20px; margin: 13px 0 9px; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.tag { display: inline-block; padding: 4px 11px; margin: 0 6px 8px 0; border: 1px solid var(--line); border-radius: 24px; font-size: 13px; text-decoration: none; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.crumbs { font-size: 12px; color: var(--muted); margin: 24px 0; overflow-wrap: anywhere; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: 7px; }
.crumbs li + li::before { content: '/'; margin-right: 7px; }
.crumbs a { text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 30px; }
.filters a { padding: 6px 15px; border: 1px solid var(--line); text-decoration: none; }
.filters a[aria-current="page"] { background: var(--accent); color: var(--button-ink, #fff); border-color: var(--accent); }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 25px; color: var(--muted); font-size: 13px; }
.article-cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 28px 0; }
.prose { font-size: var(--reading-size, 17px); overflow-wrap: anywhere; }
.prose h2 { margin-top: 42px; font-size: 25px; }
.prose h3 { margin-top: 25px; }
.prose li { margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose details { padding: 14px 0; border-top: 1px solid var(--line); }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { margin-top: 12px; }
.note { background: var(--pale); padding: 24px; margin: 28px 0; border-left: 3px solid var(--accent); }
.toc { background: var(--pale); padding: 24px; font-size: 14px; align-self: start; }
.toc strong { display: block; margin-bottom: 12px; }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 8px; }
.toc a { text-decoration: none; }
.related { margin: 50px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tag-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 60px; }
.tag-directory a { padding: 22px; background: var(--pale); text-decoration: none; border: 1px solid var(--line); }
.tag-directory span { display: block; color: var(--muted); font-size: 13px; }
.pagination { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0; }
.pagination a, .pagination span { padding: 7px 16px; border: 1px solid var(--line); text-decoration: none; }
.pagination [aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer { margin-top: 70px; padding: 35px 0; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer p { margin-top: 12px; color: var(--muted); }
.search-dialog { width: min(680px, calc(100% - 32px)); max-height: 85vh; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 28px; }
.search-dialog::backdrop { background: rgb(0 0 0 / .55); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dialog-top h2 { font-size: 23px; margin: 0; }
.search-dialog form { display: flex; gap: 10px; margin-top: 10px; }
.search-dialog input { min-width: 0; flex: 1; width: 100%; }
.search-results { padding-left: 20px; }
.search-results li { margin: 18px 0; }
.search-results small { display: block; color: var(--muted); }
.search-message { margin-top: 15px; font-size: 14px; }
.feature-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.feature-toolbar output { font-size: 13px; }
.saved-marker { color: var(--accent); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist label { display: flex; align-items: start; gap: 12px; }
.checklist input { margin-top: 8px; accent-color: var(--accent); }
.read-progress { width: 100%; accent-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 700px) { h1 { font-size: 31px; } h2 { font-size: 23px; } .related-grid, .tag-directory { grid-template-columns: 1fr; } .prose { font-size: var(--reading-size, 16px); } .search-dialog { padding: 20px; } .site-footer { margin-top: 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
:root { --accent: #75644b; --pale: #eee8da; --ink: #333b32; }
+:root { --paper: #f9f6ed; --line: #dcd5c5; }
.site-width { max-width: 1200px; margin: auto; padding: 0 35px; }
.journal-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 55px; }
.journal-spine { border-right: 1px solid var(--line); min-height: 100vh; padding: 40px 30px 20px 0; }
.journal-spine .brand { font-family: Georgia, "SimSun", serif; font-size: 31px; }
.journal-spine nav { display: grid; gap: 17px; margin: 40px 0 28px; }
.spine-note { font-size: 13px; border-top: 1px dashed var(--accent); padding-top: 25px; margin-top: 30px; }
.journal-main { padding-top: 32px; min-width: 0; }
.journal-intro { padding: 28px 0 35px; border-bottom: 1px solid var(--ink); }
.journal-intro h1 { font-family: Georgia, "SimSun", serif; font-weight: 500; font-size: clamp(34px, 4vw, 52px); }
.journal-index { counter-reset: entry; list-style: none; padding: 0; }
.journal-entry { display: grid; grid-template-columns: 55px 1fr 190px; gap: 20px; border-bottom: 1px solid var(--line); padding: 30px 0; }
.journal-entry::before { counter-increment: entry; content: counter(entry, decimal-leading-zero); font-family: Georgia, serif; color: var(--accent); font-size: 27px; }
.journal-entry img { aspect-ratio: 1; object-fit: cover; }
.journal-entry h2 { font-size: 23px; margin: 6px 0 12px; }
.journal-entry h2 a { text-decoration: none; }
.journal-entry p { color: var(--muted); font-size: 14px; }
.paper-note { padding: 26px; border: 1px solid var(--line); box-shadow: 5px 5px 0 var(--pale); margin: 35px 0; }
.journal-ledger { width: 100%; border-collapse: collapse; margin: 25px 0; }
.journal-ledger th, .journal-ledger td { text-align: left; padding: 20px 14px; border-bottom: 1px solid var(--line); }
.journal-ledger th { font-size: 12px; color: var(--muted); }
.journal-ledger td:first-child { white-space: nowrap; color: var(--accent); }
.journal-sheet { max-width: 760px; }
.journal-sheet > header { border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.journal-sheet h1 { font-family: Georgia, "SimSun", serif; font-size: 38px; }
.journal-sheet .article-cover { max-height: 390px; }
.journal-sheet .toc { border: 1px dashed var(--accent); background: transparent; }
.journal-sheet .prose { line-height: 2; }
@media(max-width: 900px) { .journal-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 30px; } .journal-entry { grid-template-columns: 35px 1fr; } .journal-entry > a { grid-column: 2; max-width: 250px; } }
@media(max-width: 700px) { .site-width { padding: 0 20px; } .journal-layout { display: block; } .journal-spine { min-height: 0; padding: 25px 0; border-right: 0; border-bottom: 2px solid var(--ink); } .journal-spine nav { display: flex; flex-wrap: wrap; gap: 17px; margin: 20px 0; } .spine-note { display: none; } .journal-main { padding-top: 10px; } .journal-sheet h1 { font-size: 31px; } .journal-ledger th, .journal-ledger td { padding: 16px 6px; } .journal-ledger .ledger-theme { display: none; } }
