:root {
  --paper: #f6f1e7;
  --surface: #fbf7ef;
  --ink: #20211c;
  --muted: #706d63;
  --line: #d9cfbe;
  --accent: #b3472c;
  --forest: #23352c;
  --gold: #ad8951;
  --serif: "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 12% 0%, rgba(179,71,44,.06), transparent 32%), radial-gradient(circle at 88% 18%, rgba(35,53,44,.07), transparent 30%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.small, .tiny { color: var(--muted); }
.tiny { font-size: 12px; }
.kicker { margin: 0 0 10px; color: var(--accent); font: 700 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.site-head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(217,207,190,.8); background: rgba(246,241,231,.9); backdrop-filter: blur(14px); }
.head-in { height: 78px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.seal { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); color: #fff8ed; font: 600 21px/1 var(--serif); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand b { display: block; font: 600 18px/1.2 var(--serif); letter-spacing: .06em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font: 8px/1 var(--sans); letter-spacing: .18em; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 14px; }
.nav a { position: relative; color: #4f4b43; padding: 6px 0; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.nav a.desk { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.theme { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.hero { border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 68px; align-items: center; padding: 82px 0 78px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 30px; color: var(--muted); font-size: 11px; letter-spacing: .17em; }
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 0 0 28px; font: 500 clamp(42px, 4.3vw, 64px)/1.18 var(--serif); letter-spacing: -.04em; }
.hero h1 em { color: var(--accent); font-style: normal; box-shadow: inset 0 -8px 0 rgba(179,71,44,.12); }
.lede { max-width: 500px; color: #5a564d; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 32px 0 42px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 21px; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 13px; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn.wide { width: 100%; padding: 14px; }
.text-link { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.stats > div { min-width: 112px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border: 0; }
.stats span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.stats b { display: block; margin-top: 4px; font: 400 27px/1 var(--serif); }
.feat { display: block; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 22px 55px rgba(45,37,25,.08); }
.cover { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--forest); color: #fff8ed; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 24%, rgba(255,255,255,.13), transparent 22%), repeating-linear-gradient(115deg, transparent 0 42px, rgba(255,255,255,.035) 42px 43px); }
.cover.c1 { background: linear-gradient(135deg,#a84026,#cb6841); }
.cover.c2 { background: linear-gradient(135deg,#1f3931,#3d6759); }
.cover.c3 { background: linear-gradient(135deg,#4d2935,#814653); }
.cover.c4 { background: linear-gradient(135deg,#8b6a2b,#b58b42); }
.cover.c5 { background: linear-gradient(135deg,#463122,#72513c); }
.cover.c6 { background: linear-gradient(135deg,#273346,#4b5d79); }
.cover-no { position: absolute; right: 20px; top: 15px; font: 400 76px/1 var(--serif); opacity: .18; }
.cover-word { position: absolute; left: 22px; bottom: 18px; z-index: 1; font: 600 30px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.feat-info { padding: 22px 24px 20px; }
.badge { display: inline-block; margin-bottom: 13px; padding: 4px 9px; background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: .12em; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: #666156; font-size: 10px; }
.feat h2 { margin: 10px 0 8px; font: 500 23px/1.45 var(--serif); }
.feat p { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.meta { color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.feat .meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.feat .meta i { font-style: normal; font-size: 20px; color: var(--accent); }
.latest { padding: 74px 0 92px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; font: 500 34px/1.1 var(--serif); }
.sec-head > a { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; }
.row { display: grid; grid-template-columns: 38px 1fr 22px; gap: 17px; padding: 27px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-no { color: #a49d8e; font: 12px/1.8 var(--mono); }
.row-main h3 { margin: 4px 0 8px; font: 500 23px/1.5 var(--serif); }
.row-main h3 a:hover { color: var(--accent); }
.row-main p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.row-arrow { color: #a49d8e; font-size: 19px; padding-top: 17px; }
.side { display: flex; flex-direction: column; gap: 22px; }
.author { padding: 25px; background: var(--forest); color: #f3ead9; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font: 20px var(--serif); }
.author h4 { margin: 14px 0 2px; font: 500 19px var(--serif); }
.author .small { color: #c5bca9; }
.author p { color: #d7cfbf; font-size: 12px; line-height: 1.9; }
.author a { display: inline-block; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.17); font-size: 12px; color: #f5e9d7; }
.panel { padding: 22px; border: 1px solid var(--line); background: rgba(251,247,239,.5); }
.panel h4 { margin: 0 0 15px; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: #5f5a50; }
.rss p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.rss a { color: var(--accent); font-size: 12px; }
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 30px; background: #f1eadc; }
.foot-in { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 30px; }
.foot-in b { font: 500 20px var(--serif); }
.foot-in p { max-width: 360px; color: var(--muted); font-size: 12px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #5f5a50; }
.copy { grid-column: 1/-1; margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; }
.page-head { position: relative; padding: 76px 0 40px; border-bottom: 1px solid transparent; }
.page-head h1 { margin: 0 0 12px; font: 500 clamp(42px,5vw,64px)/1.1 var(--serif); }
.page-head > p:not(.kicker) { color: var(--muted); font-size: 14px; }
.count { position: absolute; right: 0; bottom: 52px; color: #a49d8e; font: 48px/1 var(--serif); }
.count span { display: block; font: 10px/1.5 var(--sans); letter-spacing: .1em; text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 30px; border-bottom: 1px solid var(--line); }
.filters a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: #6d675c; }
.filters a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0 80px; }
.card { border: 1px solid var(--line); background: rgba(251,247,239,.55); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(45,37,25,.09); }
.card-body { padding: 20px 22px 23px; }
.card h3 { margin: 7px 0 8px; font: 500 22px/1.5 var(--serif); }
.card p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.article-head { max-width: 860px; padding: 62px 0 16px; text-align: center; }
.crumbs { color: var(--muted); font-size: 11px; margin-bottom: 26px; }
.crumbs a:hover { color: var(--accent); }
.article-head .tags { justify-content: center; margin-bottom: 20px; }
.article-head h1 { margin: 0 0 18px; font: 500 clamp(35px,4vw,54px)/1.28 var(--serif); letter-spacing: -.025em; }
.deck { max-width: 680px; margin: 0 auto 22px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.article-head .meta { padding-top: 14px; border-top: 1px solid var(--line); display: inline-block; }
.article-body { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 48px; align-items: start; padding: 48px 0 90px; }
.prose { max-width: 760px; font: 17px/2 var(--serif); color: #2f302a; }
.prose h2 { margin: 40px 0 16px; font: 500 26px/1.5 var(--serif); }
.prose h3 { margin: 30px 0 12px; font: 500 21px/1.5 var(--serif); }
.prose p { margin: 0 0 22px; }
.prose blockquote { margin: 28px 0; padding: 10px 0 10px 22px; border-left: 3px solid var(--accent); color: #5e594f; font-style: italic; }
.prose code { padding: 2px 5px; background: #eae1d2; font: .85em var(--mono); }
.prose pre { padding: 20px; overflow: auto; background: var(--forest); color: #eee7da; }
.prose pre code { background: none; padding: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 22px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(179,71,44,.35); }
.next-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font: 14px/1.6 var(--serif); }
.next-link:last-child { border: 0; }
.notfound { padding: 110px 0 130px; text-align: center; }
.notfound .code { margin: 0; color: #dfd2c0; font: 130px/.9 var(--serif); }
.notfound h1 { margin: 10px 0; font: 500 36px/1.4 var(--serif); }
.notfound p { color: var(--muted); }
.notfound .btn { margin-top: 20px; }
.search-head { padding: 72px 0 20px; }
.search-head h1 { margin: 0 0 10px; font: 500 50px/1.1 var(--serif); }
.search { display: flex; gap: 10px; margin: 30px 0 14px; }
.search input { flex: 1; padding: 15px 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); outline: 0; }
.search input:focus { border-color: var(--accent); }
.search-results { padding: 22px 0 70px; max-width: 850px; }
.about-hero { display: grid; grid-template-columns: 300px 1fr; gap: 70px; align-items: center; padding: 80px 0 66px; border-bottom: 1px solid var(--line); }
.portrait { width: 220px; height: 270px; display: grid; place-items: center; border-radius: 48% 48% 44% 44%; background: var(--forest); color: #e9dcc7; font: 86px/1 var(--serif); position: relative; box-shadow: 0 24px 50px rgba(35,53,44,.18); }
.portrait span { position: absolute; bottom: 54px; font-size: 42px; opacity: .65; }
.about-hero h1 { margin: 0 0 18px; font: 500 50px/1.25 var(--serif); }
.facts { display: flex; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.about-body { display: grid; grid-template-columns: 1fr 300px; gap: 60px; padding: 50px 0 90px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.timeline b { display: block; color: var(--ink); font: 16px var(--serif); }
.auth-body { min-height: 100vh; background: var(--paper); }
.auth-top { width: min(1180px,calc(100% - 48px)); margin: 0 auto; height: 96px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.auth { width: min(1000px,calc(100% - 48px)); margin: 30px auto 70px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 80px rgba(45,37,25,.1); }
.auth-art { min-height: 540px; padding: 34px; background: var(--forest); color: #f1e6d4; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; left: -140px; bottom: -160px; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02); }
.art-seal { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); font: 28px var(--serif); }
.art-quote { position: relative; z-index: 1; font: 500 34px/1.55 var(--serif); }
.auth-art p { color: #bfb5a2; font-size: 12px; }
.auth-form { padding: 58px 62px; }
.auth-form h1 { margin: 0 0 10px; font: 500 36px/1.3 var(--serif); }
.auth-form > .small { margin-bottom: 28px; font-size: 12px; }
.auth-form label { display: block; margin: 0 0 17px; color: #5f5a50; font-size: 11px; }
.auth-form input { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); outline: 0; }
.auth-form input:focus { border-color: var(--accent); }
.auth-form .btn { margin-top: 6px; }
.auth-form .tiny { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; }
.error { margin: 0 0 18px; padding: 10px 12px; border-left: 2px solid var(--accent); background: rgba(179,71,44,.08); color: #8e3522; font-size: 12px; }
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f8f4eb; }
.admin-side { background: var(--forest); color: #e9dfcd; padding: 25px 18px; display: flex; flex-direction: column; }
.admin-brand { display: flex; gap: 10px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-brand b { display: block; font: 17px var(--serif); }
.admin-brand small { font-size: 7px; letter-spacing: .16em; opacity: .5; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; margin-top: 25px; }
.admin-side nav a, .admin-tools a { padding: 9px 12px; border-radius: 3px; color: #cfc3af; font-size: 13px; }
.admin-side nav a.on, .admin-side nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-tools { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-tools span { display: block; padding: 0 12px 8px; color: #8f947f; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.admin-user { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.admin-user b { display: block; font: 16px var(--serif); }
.admin-user small { display: block; margin: 2px 0 7px; color: #aeb09f; }
.admin-user a { color: #d4c7b5; }
.admin-main { min-width: 0; }
.admin-top { height: 70px; padding: 0 34px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12px; background: rgba(251,247,239,.75); }
.admin-top a { color: var(--muted); }
.admin-body { padding: 40px 44px 70px; max-width: 1120px; }
.admin-body h1 { margin: 0 0 7px; font: 500 34px/1.3 var(--serif); }
.admin-body > .small { margin: 0 0 28px; }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin: 28px 0; }
.dash-stats > div { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.dash-stats span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.dash-stats b { display: block; margin-top: 8px; font: 500 26px var(--serif); }
.dash-stats .accent { background: #f0e4d3; }
.panel.wide { padding: 0; background: var(--surface); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font: 500 17px var(--serif); }
.panel-head a { color: var(--muted); font-size: 11px; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { padding: 12px 18px; text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: #4d493f; }
.table td small { display: block; color: #9a9283; font: 10px var(--mono); }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #e8e2d5; color: #746d5f; font-size: 9px; }
.status.published { background: #e4ecdf; color: #3f6241; }
.danger { border: 0; background: none; color: #a64a35; font-size: 10px; cursor: pointer; }
.inline { display: inline; }
.admin-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-title h1 { margin: 0; }
.editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 22px; align-items: start; }
.editor-main label, .editor-side label { display: block; margin-bottom: 15px; color: #655f54; font-size: 11px; }
.editor-main input, .editor-main textarea, .editor-side input, .editor-side select { display: block; width: 100%; margin-top: 6px; padding: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; }
.editor-main textarea { resize: vertical; font-family: var(--mono); line-height: 1.7; }
.editor-actions { display: flex; align-items: center; gap: 18px; }
.editor-side .check { display: flex; align-items: center; gap: 7px; }
.editor-side .check input { width: auto; margin: 0; }
.empty { padding: 60px; text-align: center; color: var(--muted); }
[data-theme="dark"] { --paper: #17150f; --surface: #201d16; --ink: #ece4d5; --muted: #a59c8c; --line: #3b352b; --accent: #e07853; --forest: #1c2a23; }
[data-theme="dark"] body::before { background: radial-gradient(circle at 12% 0%, rgba(224,120,83,.08), transparent 32%), radial-gradient(circle at 88% 18%, rgba(255,255,255,.04), transparent 30%); }
[data-theme="dark"] .site-head { background: rgba(23,21,15,.9); }
[data-theme="dark"] .nav a, [data-theme="dark"] .lede, [data-theme="dark"] .row-main p, [data-theme="dark"] .feat p, [data-theme="dark"] .card p { color: #b8ae9d; }
[data-theme="dark"] .site-foot { background: #1c1912; }
[data-theme="dark"] .panel, [data-theme="dark"] .card, [data-theme="dark"] .feat { background: #201d16; }
[data-theme="dark"] .table td, [data-theme="dark"] .timeline li { color: #bdb3a2; }
[data-theme="dark"] .prose { color: #d9d0c1; }
[data-theme="dark"] .prose code { background: #332d22; }
[data-theme="dark"] .auth { background: #201d16; }
[data-theme="dark"] .admin { background: #17150f; }
[data-theme="dark"] .admin-top { background: rgba(32,29,22,.8); }
[data-theme="dark"] .editor-main input, [data-theme="dark"] .editor-main textarea, [data-theme="dark"] .editor-side input, [data-theme="dark"] .editor-side select { background: #201d16; color: var(--ink); }
[data-theme="dark"] .dash-stats .accent { background: #2b2419; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; gap: 40px; } .grid, .about-body { grid-template-columns: 1fr; } .side { display: grid; grid-template-columns: 1fr 1fr; } .admin { grid-template-columns: 1fr; } .admin-side { display: none; } .article-body { grid-template-columns: 1fr; } .article-body .side { display: none; } }
@media (max-width: 700px) { .wrap { width: calc(100% - 30px); } .head-in { height: 66px; gap: 15px; } .nav { gap: 13px; font-size: 11px; } .nav a.desk { display: none; } .hero-in { padding: 52px 0; } .hero h1 { font-size: 40px; } .stats > div { min-width: 78px; padding-right: 14px; margin-right: 14px; } .cards { grid-template-columns: 1fr; } .foot-in { grid-template-columns: 1fr; } .auth { grid-template-columns: 1fr; } .auth-art { min-height: 220px; } .auth-form { padding: 34px 24px; } .article-head h1 { font-size: 32px; } .row { grid-template-columns: 25px 1fr; } .row-arrow { display: none; } .admin-body { padding: 28px 18px; } .dash-stats { grid-template-columns: 1fr 1fr; } .editor-grid { grid-template-columns: 1fr; } .side { grid-template-columns: 1fr; } .about-hero { grid-template-columns: 1fr; gap: 30px; } .portrait { width: 160px; height: 195px; font-size: 60px; } }
