@font-face { font-family: "SiteSerifSC"; src: url("assets/fonts/site-serif-sc-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SiteSerifSC"; src: url("assets/fonts/site-serif-sc-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe4d6;
  --ink: #25231f;
  --muted: #756e64;
  --line: rgba(37, 35, 31, 0.15);
  --accent: #2f6860;
  --accent-dark: #1f4d47;
  --gold: #a87935;
  --card: #fbf9f3;
  --shadow: 0 22px 60px rgba(60, 49, 34, 0.1);
  --serif: "SiteSerifSC", Georgia, "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --kai: KaiTi, "Kaiti SC", STKaiti, "Songti SC", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --zhu: #b03a2a;
  --zhu-dark: #8f3428;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(135deg, #f5f1e8 0%, #faf7ef 50%, #f0ebe0 100%); font-family: var(--sans); line-height: 1.7; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(rgba(55, 45, 32, .14) .5px, transparent .5px); background-size: 5px 5px; mix-blend-mode: multiply; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(47, 104, 96, .4); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 14px; z-index: 100; transform: translateY(calc(-100% - 16px)); padding: 10px 16px; border: 1px solid var(--accent); border-radius: 5px; background: var(--paper); color: var(--accent-dark); font-size: 14px; }
.skip-link:focus { transform: translateY(0); }
#app { scroll-margin-top: 80px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(168, 121, 53, 0.16); background: rgba(248, 245, 238, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: box-shadow .2s ease; }
.site-header::after { content: none; }
.site-header.scrolled { box-shadow: 0 8px 22px rgba(48, 41, 31, .06); }
.header-inner, main, .site-footer { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--gold); border-radius: 5px; color: var(--gold); font-family: var(--serif); font-size: 21px; font-weight: 700; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-family: var(--serif); font-size: 19px; letter-spacing: .04em; color: var(--gold); line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.site-nav a { position: relative; padding: 8px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--accent); transition: right .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--accent-dark); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.nav-toggle { display: none; border: 0; color: var(--ink); background: transparent; }

main { min-height: 70vh; }
.home-hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 3.6vw, 48px); align-items: start; min-height: min(calc(100vh - 64px), 540px); padding: clamp(18px, 2.2vw, 36px) 0 32px; }
.hero-vline { writing-mode: vertical-rl; font-family: var(--kai); color: var(--gold); font-size: 15px; letter-spacing: .42em; border-left: 1px solid var(--line); padding-left: 18px; height: min(330px, 52vh); align-self: center; opacity: .9; }
.hero-copy { max-width: none; min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; border-left: 2px solid var(--accent); padding-left: 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.hero-copy h1 { max-width: 580px; margin: 0; font-size: clamp(42px, 5.6vw, 60px); line-height: 1.08; letter-spacing: .01em; }
.hero-lede { max-width: 460px; margin: 18px 0 22px; color: var(--muted); font-size: 16px; line-height: 1.90; }
.jh-motto { font-family: var(--serif); font-size: clamp(30px, 3.9vw, 48px); font-weight: 700; line-height: 1.32; color: #5c2a10; margin: 8px 0; letter-spacing: .04em; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; }
.jh-motto + .jh-motto { padding-left: 1.2em; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-dark); border-bottom: 1px solid var(--accent); padding-bottom: 4px; font-size: 14px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 44px; color: var(--muted); font-size: 13px; }
.hero-stats strong { color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 500; margin-right: 3px; }
.hero-feature { position: relative; }
.post-card { position: relative; min-width: 0; background: #fdfbf6; background-image: repeating-linear-gradient(0deg, rgba(120, 100, 70, .022) 0 1px, transparent 1px 3px); box-shadow: 0 1px 3px rgba(60, 49, 34, .09), 0 12px 28px rgba(60, 49, 34, .10); transition: transform .24s ease, box-shadow .24s ease; }
.post-card:nth-child(3n+1) { transform: rotate(-.3deg); }
.post-card:nth-child(3n+2) { transform: rotate(.25deg); }
.post-card:nth-child(3n+3) { transform: rotate(-.15deg); }
.post-card:hover { transform: rotate(0deg) translateY(-7px); box-shadow: 0 2px 6px rgba(60,49,34,.1), 0 20px 48px rgba(60,49,34,.18); }
.post-card::after { content: ""; position: absolute; top: -6px; right: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--zhu); box-shadow: 0 2px 5px rgba(0, 0, 0, .26); opacity: .9; }
.featured-card::after { display: none; }
.featured-card { border: 1px solid var(--line); background: var(--card); background-image: none; box-shadow: var(--shadow); transform: none; }
.post-media { display: block; overflow: hidden; background: var(--paper-deep); aspect-ratio: 16 / 9; }
.post-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.post-card:hover .post-media img { transform: scale(1.035); }
.post-media--reading img { object-fit: contain; }
.post-card:hover .post-media--reading img { transform: none; }
.post-card-body { padding: 14px 18px 18px; }
.featured-card .post-card-body { padding: 26px 28px 28px; }
.post-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--accent); font-size: 12px; letter-spacing: .03em; }
.post-meta span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--gold); margin-right: 7px; }
.post-meta time { color: var(--muted); font-family: var(--mono); }
.post-card h3 { margin: 0; font-size: 20px; line-height: 1.32; letter-spacing: .01em; font-weight: 600; }
.featured-card h3 { font-size: clamp(28px, 3vw, 38px); }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.68; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 12px; }

/* 读书笔记纸片卡片 */
.paper-card { position: relative; border-bottom: 0; background: var(--card); box-shadow: 0 1px 3px rgba(60, 49, 34, .1), 0 12px 28px rgba(60, 49, 34, .11); transition: transform .24s ease, box-shadow .24s ease; }
.paper-card:nth-child(3n+1) { transform: rotate(-.3deg); }
.paper-card:nth-child(3n+2) { transform: rotate(.25deg); }
.paper-card:nth-child(3n+3) { transform: rotate(-.15deg); }
.paper-card:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 3px 7px rgba(60, 49, 34, .13), 0 22px 44px rgba(60, 49, 34, .17); }
.paper-card .post-card-body { padding: 14px 18px 18px; }
.paper-card p { -webkit-line-clamp: 3; }
.paper-staple { position: absolute; top: -6px; right: 18px; z-index: 2; width: 12px; height: 12px; border-radius: 50%; background: var(--zhu); box-shadow: 0 2px 5px rgba(0, 0, 0, .26); }
.section-band { border-top: 1px solid var(--line); padding: 40px 0 60px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3.0vw, 36px); line-height: 1.08; }
.section-heading > a { color: var(--accent-dark); font-size: 13px; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.category-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; padding-bottom: 120px; }
.category-ledger { border-top: 1px solid var(--line); }
.category-ledger a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; min-height: 74px; border-bottom: 1px solid var(--line); }
.category-ledger a:hover strong { color: var(--accent); }
.category-ledger span { color: var(--gold); font-family: var(--kai); font-size: 19px; }
.category-ledger strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.category-ledger small { color: var(--muted); font-size: 13px; }

.page-intro { max-width: 720px; padding: 96px 0 66px; }
.page-intro h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; letter-spacing: .01em; }
.page-intro > p:last-child { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.archive-shell { border-top: 1px solid var(--line); padding: 28px 0 110px; }
#archiveResults { scroll-margin-top: 88px; }
.archive-shell-compact { margin-top: 72px; border-top: 0; padding-top: 0; }
.archive-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.archive-stats div { display: grid; place-items: center; min-height: 112px; border: 1px solid var(--line); border-radius: 7px; background: rgba(251, 249, 243, .62); text-align: center; }
.archive-stats strong { color: var(--accent-dark); font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1; }
.archive-stats span { color: var(--muted); font-size: 14px; }
.archive-tools { display: grid; gap: 22px; margin-bottom: 34px; }
.search-field { display: grid; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.search-field input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; padding: 12px 0; outline: 0; font-size: 18px; }
.search-field input::placeholder { color: rgba(117, 110, 100, .7); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; }
.category-tabs button { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; padding: 7px 14px; font-size: 13px; }
.category-tabs button.active { border-color: var(--accent); color: var(--accent-dark); background: rgba(47, 104, 96, .07); }
@media (hover: hover) and (pointer: fine) {
  .category-tabs button:not(.active):hover { border-color: rgba(47, 104, 96, .42); color: var(--accent-dark); background: rgba(47, 104, 96, .025); }
}
.collection-tabs { gap: 0; width: fit-content; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(251, 249, 243, .7); }
.collection-tabs button { min-width: 96px; border-radius: 999px; border-color: transparent; }
.collection-tabs button.active { border-color: var(--accent); box-shadow: 0 5px 16px rgba(47, 104, 96, .08); }
.essay-tabs { padding-left: 8px; }
.essay-tabs::before { content: "随笔分类"; align-self: center; margin-right: 4px; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.essay-tabs.hidden { display: none; }
.result-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.result-summary button { border: 0; color: var(--accent); background: transparent; font-size: 13px; }
.search-status { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.search-status button { padding: 6px 10px; border: 1px solid currentColor; border-radius: 6px; color: var(--accent); background: transparent; font: inherit; cursor: pointer; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 30px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 44px; color: var(--muted); font-size: 13px; }
.pager button { border: 1px solid var(--line); color: var(--ink); background: transparent; padding: 8px 13px; }
.pager button:disabled { cursor: default; opacity: .35; }
.empty-state, .loading-state { min-height: 240px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 500; }
.empty-state a, .empty-state button { border: 0; color: var(--accent); background: transparent; }
.loading-state { border: 0; }
.loading-state span { width: 28px; height: 28px; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.category-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); margin-bottom: 120px; }
.category-page-grid a { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); padding: 30px; transition: background .2s ease; }
.category-page-grid a:hover { background: var(--card); }
.category-page-grid a.category-card-empty { min-height: 0; align-self: start; }
.category-page-grid span { color: var(--gold); font-family: var(--kai); font-size: 19px; }
.category-page-grid h2 { margin: 38px 0 10px; font-size: 34px; }
.category-page-grid p { max-width: 400px; margin: 0; color: var(--muted); font-size: 14px; }
.category-page-grid small { margin-top: 24px; color: var(--accent); font-size: 13px; }


.article-header { position: relative; max-width: 820px; margin: 0 auto; padding: 66px 0 40px; text-align: center; }
.back-link { display: block; text-align: left; margin-bottom: 44px; color: var(--accent-dark); font-size: 13px; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.article-meta span:first-child { color: var(--zhu); }
.article-header h1 { margin: 22px auto 18px; max-width: 760px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; line-height: 1.36; letter-spacing: .02em; }
.article-header > p { max-width: 620px; margin: 0 auto; color: var(--muted); font-family: var(--kai); font-size: 17px; line-height: 2; }
.article-stamp { position: absolute; right: 0; top: 70px; transform: rotate(4deg); }
.seal { width: 54px; height: 54px; border-radius: 5px; background: var(--zhu); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 0 0 2px rgba(245, 241, 232, .28); font-family: var(--kai); }
.seal i { display: grid; place-items: center; font-style: normal; font-size: 17px; line-height: 1; }
.reader-layout { display: grid; grid-template-columns: 182px minmax(0, 760px); gap: 62px; align-items: start; padding: 30px 0 86px; }
.article-toc { position: sticky; top: 118px; color: var(--muted); font-size: 13px; }
.article-toc strong { display: block; margin-bottom: 14px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .6em; }
.article-toc nav { display: grid; gap: 4px; border-left: 1px solid var(--line); padding: 2px 8px 2px 10px; max-height: calc(100dvh - 176px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.article-toc a { display: grid; grid-template-columns: 2.8em minmax(0, 1fr); gap: 7px; align-items: baseline; padding: 5px 4px; border-radius: 3px; line-height: 1.55; }
.toc-number { color: var(--muted); font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.article-toc a.level-h3 { padding-left: 12px; font-size: 12px; }
.article-toc a.active { background: rgba(168,121,53,.08); }
.article-toc a.active .toc-number { color: inherit; }
.article-toc a:hover, .article-toc a.active { color: var(--zhu-dark); }
.article-body { min-width: 0; font-family: var(--serif); font-size: 19px; line-height: 2.15; letter-spacing: .015em; }
.article-body > * { margin: 0 0 1.55em; }
.article-body h2 { position: relative; margin: 2.6em 0 .8em; padding-left: 18px; font-size: 27px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; }
.article-body h2::before { content: ""; position: absolute; left: 0; top: .3em; width: 5px; height: .92em; background: var(--zhu); }
.article-body h3 { margin: 2em 0 .6em; font-size: 21.5px; font-weight: 600; }
.article-body p { text-wrap: pretty; overflow-wrap: anywhere; }
.article-body li { overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { scroll-margin-top: 88px; }
.article-body a { color: var(--zhu-dark); text-decoration: underline; text-decoration-color: rgba(176, 58, 42, .35); text-underline-offset: 4px; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: normal; text-emphasis: filled circle var(--zhu); text-emphasis-position: under right; -webkit-text-emphasis: filled circle var(--zhu); -webkit-text-emphasis-position: under; }
.article-body blockquote { position: relative; margin: 2.1em 0; padding: 20px 24px 20px 58px; border-left: 2px solid var(--zhu); background: rgba(176, 58, 42, .05); font-family: var(--kai); font-size: 18.5px; line-height: 2; color: var(--zhu-dark); }
.article-body blockquote::before { content: "批"; position: absolute; left: 16px; top: 20px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--zhu); border-radius: 4px; color: var(--zhu); font-size: 14px; font-family: var(--kai); }
.article-body blockquote p { margin: 0 0 .8em; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { padding-left: 1.6em; }
.article-body li { padding-left: .3em; margin-bottom: .45em; }
.article-body li::marker { color: var(--zhu); }
.article-body hr { border: 0; text-align: center; }
.article-body hr::after { content: "\25C7\3000\25C7\3000\25C7"; color: var(--zhu); font-size: 13px; letter-spacing: .6em; }
.article-body figure { margin: 32px 0; }
.article-body figure img { margin: 0 auto; border: 1px solid var(--ink); background: #fff; padding: 6px; }
.article-body figcaption { margin-top: 12px; text-align: center; font-family: var(--kai); font-size: 14px; color: var(--muted); }
.article-body figcaption::before { content: "\3014\56FE\3015"; color: var(--zhu); margin-right: 6px; }
.article-body img { width: auto; max-width: 100%; height: auto; }
.article-body p img { margin: 24px auto; }
.article-body pre { overflow: auto; border-radius: 4px; background: #292922; color: #f5f1e8; padding: 20px; font: 14px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-body code { border-radius: 3px; background: rgba(47, 104, 96, .1); padding: 2px 5px; font: .82em ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-body pre code { background: transparent; padding: 0; }
.table-wrap { overflow-x: auto; margin: 28px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.article-body th { color: var(--accent-dark); font-family: var(--sans); font-weight: 700; }
@media (max-width: 580px) {
  .article-body th, .article-body td { min-width: 7em; overflow-wrap: anywhere; }
  .table-wrap { overscroll-behavior-x: contain; }
}
.text-center { display: block; text-align: center; }
.mermaid { white-space: pre-wrap; background: var(--card) !important; color: var(--ink) !important; }
.mermaid-fallback { border: 1px dashed var(--line); background: transparent !important; color: var(--muted) !important; }
@media (max-width: 860px) {
  .article-body .mermaid { overflow-x: auto; overscroll-behavior-x: contain; }
  .article-body .mermaid svg { width: var(--diagram-width, 100%); max-width: none !important; height: auto; }
}
.article-footer { border-top: 1px solid var(--line); padding: 28px 0 100px; }
.article-tags { display: flex; min-width: 0; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 14px; row-gap: 4px; }
.article-tags button { max-width: 100%; cursor: pointer; border: 1px solid var(--line); background: rgba(255, 255, 255, .55); color: #5d5a4e; padding: 5px 14px; font-size: 13px; overflow-wrap: anywhere; transition: border-color .2s ease, color .2s ease; }
.article-tag-structure { max-width: 100%; border: 0; background: transparent; color: var(--muted); padding: 6px 0; font-size: 14px; overflow-wrap: anywhere; }
.article-tag-structure { color: var(--zhu-dark); font-weight: 600; }
.article-tag-structure::after { content: "·"; margin-left: 14px; color: var(--line); font-weight: 400; }
.article-tags button::before { content: "#"; color: var(--zhu); margin-right: 2px; }
.article-tags button:hover { color: var(--zhu-dark); border-color: var(--zhu); background: rgba(255, 255, 255, .8); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 46px; }
.article-nav a { display: grid; gap: 8px; border: 1px solid var(--line); background: rgba(251, 249, 243, .7); padding: 16px 18px; }
.article-nav a:hover { border-color: var(--zhu); }
.article-nav a:last-child { text-align: right; }
.article-nav span { color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.article-nav strong { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.6; }

.about-layout { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: 100px 0 140px; }
.about-portrait { width: 168px; height: 168px; border-radius: 50%; padding: 6px; background: var(--paper-deep); box-shadow: var(--shadow); flex-shrink: 0; }
.about-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.about-copy { max-width: 650px; }
.about-copy h1 { margin: 0; font-size: clamp(40px, 5vw, 48px); line-height: 1.08; letter-spacing: .01em; }
.about-copy > p:not(.eyebrow) { margin: 28px 0; color: var(--muted); font-size: 17px; }
.about-copy blockquote { margin: 32px 0; border-left: 2px solid var(--gold); padding-left: 20px; color: var(--accent-dark); font-family: var(--serif); font-size: 22px; line-height: 1.55; }
.about-numbers { display: flex; flex-wrap: wrap; gap: 28px; margin: 40px 0; color: var(--muted); font-size: 13px; }
.about-numbers strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 27px; font-weight: 500; }

.site-footer { display: flex; justify-content: space-between; gap: 28px; border-top: 2px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 13px; }
.site-footer strong { display: block; color: var(--gold); font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.site-footer span { display: block; margin-top: 3px; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a:hover { color: var(--accent-dark); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 10; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); background: rgba(245, 241, 232, .9); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.to-top.show { visibility: visible; opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

@media (max-width: 860px) {
  .header-inner, main, .site-footer { width: min(var(--max), calc(100% - 32px)); }
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; font-size: 13px; }
  .to-top { width: 44px; height: 44px; }
  .site-nav { position: absolute; top: 64px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); background: var(--paper); padding: 10px 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav { max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .home-hero { grid-template-columns: 1fr; padding: 20px 0 36px; min-height: 0; }
  .jh-shelf { gap: 18px; }
  .jh-book { max-width: 96px; }
  .jh-books { padding-left: 16px; padding-right: 16px; }
  .hero-vline { display: none; }
  .article-stamp { display: none; }
  .hero-feature { max-width: 560px; }
  .hero-stats { margin-top: 46px; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-section { grid-template-columns: 1fr; gap: 30px; }
  .reader-layout { grid-template-columns: 1fr; gap: 24px; }
  .article-toc { position: static; border: 1px solid var(--line); padding: 16px; }
  .article-toc nav { max-height: 180px; overflow: auto; }
  .about-layout { grid-template-columns: auto 1fr; gap: 34px; }
}

@media (min-width: 480px) and (max-width: 860px) and (max-height: 440px) {
  .site-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .site-nav a:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 580px) {
  .header-inner, main, .site-footer { width: calc(100% - 28px); }
  .brand-copy small { display: none; }  .archive-stats { gap: 8px; }
  .archive-stats div { min-height: 92px; }
  .archive-stats strong { font-size: 34px; }
  .hero-copy h1, .about-copy h1 { font-size: 40px; }
  .page-intro h1 { font-size: clamp(40px, 13vw, 58px); }
  .article-header h1 { font-size: clamp(26px, 8vw, 38px); }
  .hero-lede, .page-intro > p:last-child, .article-header > p { font-size: 15px; }
  .latest-grid, .archive-grid, .category-page-grid { grid-template-columns: 1fr; }
  .latest-section, .category-section, .archive-shell { padding-bottom: 70px; }
  .archive-shell-compact { margin-top: 18px; }
  .archive-tools { gap: 14px; margin-bottom: 18px; }
  .archive-tools .category-tabs button,
  .archive-shell .pager button { min-height: 44px; }
  .result-summary { margin-bottom: 12px; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .result-summary button { min-height: 44px; cursor: pointer; }
  .category-page-grid a { min-height: 220px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .page-intro { padding: 58px 0 44px; }
  .article-header { padding: 24px 0 24px; }
  .back-link { margin-bottom: 24px; }
  .article-header .back-link { display: flex; align-items: center; min-height: 44px; margin-top: -6px; margin-bottom: 0; }
  .article-meta { gap: 8px 14px; letter-spacing: .06em; }
  .article-header h1 { margin-top: 16px; margin-bottom: 14px; line-height: 1.28; }
  .article-header > p { line-height: 1.75; }
  .reader-layout { gap: 18px; padding-top: 18px; }
  .article-toc { padding: 12px; }
  .article-toc strong { margin-bottom: 8px; }
  .article-toc nav { max-height: 150px; }
  .article-toc a { min-height: 44px; align-content: center; }
  .article-body { font-size: 17px; line-height: 1.95; }
  .article-body blockquote { padding: 14px 14px 14px 46px; font-size: inherit; }
  .article-body blockquote::before { left: 10px; top: 16px; width: 24px; height: 24px; }
  .article-body h2 { font-size: 28px; }
  .article-body > :is(h2, h3):first-child { margin-top: 12px; }
  .article-footer { padding-bottom: 48px; }
  .article-nav { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .article-nav > span:empty { display: none; }
  .article-tags { justify-content: flex-start; }
  .article-tags button { min-height: 44px; }
  .article-nav a:last-child { text-align: left; }
  .about-layout { grid-template-columns: 1fr; padding: 60px 0 90px; }
  .about-portrait { margin: 0 auto; }
  .site-footer { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card:hover { transform: none !important; }
  .highlight-book-cover img { transition: none !important; }
  .highlight-book:hover .highlight-book-cover img { transform: none !important; }
  .post-card:hover .post-media img, .jh-book:hover img, .jh-feat:hover img,
  .text-link:hover span, .to-top:hover { transform: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.motion-bg { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 1; }
.site-header, main, .site-footer { position: relative; z-index: 2; }
/* Keep the page-edge animation, but protect long-form reading from moving shapes. */
body:has(.article-body) .motion-bg,
body:has(.highlight-entries) .motion-bg {
  mask-image: linear-gradient(to right,
    rgba(0,0,0,.65) max(0px, calc(var(--reading-left, 0px) - 40px)),
    rgba(0,0,0,.08) var(--reading-left, 0px),
    rgba(0,0,0,.08) var(--reading-right, 100vw),
    rgba(0,0,0,.65) calc(var(--reading-right, 100vw) + 40px));
}
.site-header { position: sticky; z-index: 30; background: rgba(245,241,232,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.highlights-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 42px 24px; padding-bottom: 110px; }
.highlight-filter-shell { padding-bottom: 110px; }
.highlight-filter-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); gap: 18px; align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 22px; }
.highlight-filter-tools label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.highlight-filter-tools input, .highlight-filter-tools select { min-width: 0; width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 3px; background: rgba(251, 249, 243, .82); color: var(--ink); padding: 0 12px; font: inherit; font-size: 14px; }
.highlight-filter-tools input:focus, .highlight-filter-tools select:focus { outline: 2px solid color-mix(in srgb, var(--zhu) 35%, transparent); outline-offset: 2px; }
.highlight-filter-summary { display: flex; justify-content: space-between; align-items: center; min-height: 38px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.highlight-filter-summary button { border: 0; background: transparent; color: var(--zhu-dark); padding: 6px 0; font-size: 13px; }
.highlight-filter-shell .highlights-grid { padding-bottom: 0; }
.highlight-book { display: flex; min-width: 0; flex-direction: column; border-top: 1px solid var(--line); padding-top: 16px; }
.highlight-book-cover { display: block; overflow: visible; width: 100%; }
.highlight-book-cover img { border-radius: 2px; box-shadow: 6px 8px 20px rgba(30, 28, 25, .20); transition: transform .25s ease; }
.highlight-book:hover .highlight-book-cover img { transform: translateY(-5px) rotate(.4deg); }
.highlight-book-cover-frame { display: block; overflow: visible; width: 100%; background: transparent; }
.highlight-book-cover img { display: block; width: 100%; height: auto; object-fit: unset; border-radius: 2px; }
.highlight-detail-cover { display: block; overflow: visible; background: transparent; }
.highlight-detail-cover img { display: block; width: 100%; height: auto; object-fit: unset; border-radius: 3px; box-shadow: 4px 6px 22px rgba(30,28,25,.20); }
.highlight-book-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 16px; }
.highlight-book-copy .eyebrow { margin-bottom: 8px; }
.highlight-book h2 { margin: 0; font-size: 24px; line-height: 1.28; }
.highlight-book h2 a:hover { color: var(--accent-dark); }
.highlight-author { margin: 7px 0 14px; color: var(--muted); font-size: 13px; }
.highlight-counts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: auto; color: var(--muted); font-size: 12px; }
.highlight-book .text-link { margin-top: 20px; }
.highlight-detail { padding: 64px 0 110px; }
.highlight-detail .back-link { margin-bottom: 38px; }
.highlight-detail-header { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: clamp(30px, 7vw, 88px); align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 54px; }
.highlight-detail-copy { padding-bottom: 8px; }
.highlight-detail-copy h1 { margin: 0 0 14px; font-size: clamp(42px, 6vw, 72px); line-height: 1.08; }
.highlight-detail-copy .highlight-author { margin-bottom: 28px; font-size: 16px; }
.highlight-note { margin: 28px 0 0; border-left: 2px solid var(--gold); padding-left: 16px; color: var(--muted); font-size: 13px; }
.highlight-entries { max-width: 820px; padding-top: 12px; }
.highlight-entry { border-bottom: 1px solid var(--line); padding: 44px 0 48px; }
.highlight-entry-heading { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.highlight-type { color: var(--accent-dark); font-size: 12px; letter-spacing: .08em; }
.highlight-type.quote { color: var(--gold); }
.highlight-entry h2 { margin: 18px 0 12px; font-size: 31px; line-height: 1.25; }
.highlight-source { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.highlight-entry blockquote { margin: 0; border-left: 3px solid var(--gold); background: rgba(168, 121, 53, .08); padding: 18px 22px; color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.75; white-space: pre-line; }
.highlight-interpretation { margin-top: 22px; color: var(--muted); font-size: 14px; }
.highlight-interpretation strong { display: block; margin-bottom: 7px; color: var(--accent-dark); font-size: 12px; letter-spacing: .18em; }
.highlight-interpretation strong::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--accent); margin-right: 8px; vertical-align: 3px; }
.highlight-interpretation p { margin: 0 0 10px; white-space: pre-line; line-height: 1.7; }
.highlight-interpretation p:last-child { margin-bottom: 0; }
.highlight-quote { position: relative; margin: 18px 0 0; padding: 18px 22px 18px 52px; border-left: 2px solid var(--zhu); background: rgba(176, 58, 42, .045); font-family: var(--kai); font-size: 17.5px; line-height: 2; color: var(--zhu-dark); }
.highlight-entry .highlight-quote { padding-left: 52px; }
.highlight-quote::before { content: "摘"; position: absolute; left: 13px; top: 18px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--zhu); border-radius: 4px; color: var(--zhu); font-size: 13px; font-family: var(--kai); }
.highlight-quote-mark { color: var(--zhu); font-weight: 700; }
.highlight-entry.highlight-question { border-left: 3px solid var(--accent-dark); padding-left: 22px; }
.highlight-type.question { color: var(--accent-dark); }
.highlight-entry.highlight-question h2 { color: var(--accent-dark); }
.highlight-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.highlight-pager-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.highlight-pager-link:hover { border-color: var(--gold); background: var(--paper-deep); }
.highlight-pager-link.next { text-align: right; }
.highlight-pager-link.empty { border: none; background: none; pointer-events: none; }
.highlight-pager-role { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.highlight-pager-title { font-size: 17px; color: var(--accent-dark); line-height: 1.35; }

@media (max-width: 1000px) {
  .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.timeline { position: relative; overflow: hidden; padding: 0 0 110px 74px; }
.timeline::before { content: ""; position: absolute; top: 7px; bottom: 110px; left: 25px; width: 1px; background: var(--line); }
.timeline-year, .timeline-month, .timeline-date { position: relative; }
.timeline-year { margin-bottom: 56px; }
.timeline-year::before { content: ""; position: absolute; left: -54px; top: 13px; width: 9px; height: 9px; border: 1px solid var(--zhu); border-radius: 50%; background: var(--paper); }
.timeline-year > h2 { margin: 0 0 26px; color: var(--zhu-dark); font-size: 38px; line-height: 1; }
.timeline-month { margin-bottom: 32px; }
.timeline-month > h3 { margin: 0 0 16px; color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.timeline-date { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; border-top: 1px solid var(--line); padding: 18px 0; }
.timeline-date > time { color: var(--muted); font-size: 13px; }
.timeline-date-posts { display: grid; min-width: 0; }
.timeline-post { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; min-width: 0; border-bottom: 1px dotted var(--line); padding: 10px 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.timeline-post:first-child { padding-top: 0; }
.timeline-post:hover { color: var(--zhu-dark); }
.timeline-post-category { flex: 0 0 auto; color: var(--zhu); font-family: var(--kai); font-size: 13px; }

@media (max-width: 860px) {
  .highlight-detail-header { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .highlight-filter-tools input, .highlight-filter-tools select { font-size: 16px; }
  .highlight-detail-cover { max-width: 230px; }
  .timeline { padding-left: 58px; }
  .timeline::before { left: 18px; }
  .timeline-year::before { left: -45px; }
}

@media (max-width: 580px) {
  .highlights-intro { padding: 8px 0 4px; }
  .timeline-intro { padding: 24px 0 28px; }
  .timeline-intro h1 { font-size: 36px; }
  .timeline-intro > p:last-child { margin-top: 12px; }
  .categories-intro { padding: 24px 0 28px; }
  .about-layout { padding: 28px 0 64px; gap: 24px; }
  .about-portrait { width: 128px; height: 128px; }
  .about-copy h1 { font-size: 34px; line-height: 1.2; text-wrap: balance; }
  .about-copy > p:not(.eyebrow) { margin: 22px 0; }
  .about-numbers { margin: 28px 0; }
  .categories-intro h1 { font-size: 36px; line-height: 1.2; }
  .categories-intro > p:last-child { margin-top: 12px; }
  .category-page-grid { margin-bottom: 64px; }
  .category-page-grid a { min-height: 0; padding: 22px; }
  .category-page-grid h2 { margin: 14px 0 10px; font-size: 28px; }
  .category-page-grid a > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .category-page-grid small { margin-top: 16px; }
  .highlights-intro h1 { font-size: 32px; }
  .highlights-intro > p:last-child { margin-top: 8px; font-size: 14px; line-height: 1.55; }
  .highlight-filter-tools { grid-template-columns: minmax(0, 1fr) minmax(108px, .72fr); gap: 8px; padding: 4px 0; margin-bottom: 0; }
  .highlight-filter-tools label { gap: 4px; font-size: 12px; }
  .highlight-filter-tools input, .highlight-filter-tools select { height: 42px; padding: 0 8px; font-size: 16px; }
  .highlight-filter-summary { min-height: 24px; margin-bottom: 0; }
  .highlights-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .highlight-book { display: grid; grid-template-columns: minmax(118px, .72fr) 1fr; gap: 18px; }
  .highlight-book-copy { padding-top: 0; }
  .highlight-detail { padding: 32px 0 64px; }
  .highlight-detail .back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 0; }
  .highlight-detail-header { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 16px; padding-bottom: 24px; align-items: start; }
  .highlight-detail-cover { width: 100%; max-width: 180px; }
  .highlight-detail-copy { min-width: 0; overflow-wrap: anywhere; padding-bottom: 0; }
  .highlight-detail-copy h1 { margin-bottom: 10px; font-size: clamp(24px, 6vw, 30px); line-height: 1.35; }
  .highlight-detail-copy .highlight-author { margin-bottom: 16px; font-size: 14px; }
  .highlight-detail-copy .text-link { min-height: 44px; font-size: 13px; gap: 8px; }
  .highlight-book-copy .text-link { min-height: 44px; align-items: center; }
  .highlight-entry { padding: 34px 0 38px; }
  .highlight-entry h2 { font-size: 27px; }
  .highlight-pager { grid-template-columns: 1fr; }
  .highlight-pager-link.empty { display: none; }
  .highlight-pager-link.next { text-align: left; }
  .timeline { padding: 0 0 80px 42px; }
  .timeline::before { left: 11px; bottom: 80px; }
  .timeline-year::before { left: -35px; }
  .timeline-date { grid-template-columns: 1fr; gap: 8px; }
  .timeline-post { align-items: flex-start; font-size: 17px; }
}

/* Local content admin */
.admin-route .site-header,
.admin-route .site-footer,
.admin-route .to-top { display: none; }
.admin-route main { width: 100%; max-width: none; min-height: 100dvh; margin: 0; }
.admin-shell {
  display: grid;
  grid-template-columns: 212px minmax(300px, 380px) minmax(0, 1fr);
  grid-template-areas: "bar bar bar" "sidebar list editor";
  grid-template-rows: 64px minmax(0, 1fr);
  min-height: 100dvh;
  background: rgba(245, 241, 232, .97);
}
.admin-workbench-bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.admin-workbench-brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  white-space: nowrap;
}
.admin-workbench-brand span,
.admin-workbench-bar p { color: var(--ink-soft); font-family: inherit; font-size: 13px; }
.admin-workbench-brand span { margin-left: 7px; }
.admin-workbench-bar p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.admin-workbench-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.admin-workbench-user { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.admin-return { color: var(--accent); font-size: 14px; white-space: nowrap; }
.admin-logout { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.admin-logout:hover { border-color: var(--accent); color: var(--accent); }
.admin-sidebar { grid-area: sidebar; }
.admin-list-pane { grid-area: list; }
.admin-editor-pane { grid-area: editor; }
.admin-sidebar,
.admin-list-pane,
.admin-editor-pane { min-width: 0; min-height: 0; padding: 24px; overflow: auto; }
.admin-sidebar,
.admin-list-pane { border-right: 1px solid var(--line); }
.admin-sidebar { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
}
.admin-sidebar button.active { color: var(--accent); background: var(--paper-deep); }
.admin-sidebar-count { color: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.admin-list-tools { display: grid; gap: 10px; margin-bottom: 16px; }
.admin-list-tools label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 13px; }
.admin-list-tools input,
.admin-list-tools select,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
}
.admin-source-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.admin-source-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.admin-source-row.active { color: var(--accent); }
.admin-source-row strong,
.admin-source-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-source-row strong { margin: 1px 0 6px; font-size: 15px; }
.admin-source-row small { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.admin-source-cover { width: 52px; height: 68px; object-fit: cover; border: 1px solid var(--line); background: var(--paper-deep); }
.admin-source-cover-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--kai);
  font-size: 20px;
}
.admin-source-list .empty-state { min-height: 132px; border: 0; }
.admin-source-row:not(:has(.admin-source-cover)) { grid-template-columns: minmax(0, 1fr); }
.admin-editor-pane { padding-bottom: 92px; }
.admin-editor-pane > * { max-width: 940px; }
.admin-mobile-back { display: none; }
.admin-book-summary {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.admin-book-cover { display: grid; justify-items: start; gap: 8px; }
.admin-cover-preview { width: 104px; height: 146px; object-fit: cover; border: 1px solid var(--line); background: var(--paper-deep); }
.admin-cover-upload { color: var(--accent); font-size: 13px; cursor: pointer; }
.admin-cover-upload input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-book-summary-copy { min-width: 0; }
.admin-book-summary-copy h1 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.24; }
.admin-book-summary-copy p { margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.admin-book-summary-copy label { display: inline-flex; margin-top: 8px; color: var(--accent); font-size: 13px; cursor: pointer; }
.admin-book-summary-copy input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-form { display: grid; gap: 22px; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-field { display: grid; gap: 6px; color: var(--ink-soft); font-size: 13px; }
.admin-field.wide { grid-column: 1 / -1; }
.admin-field textarea { min-height: 150px; resize: vertical; }
.admin-add-entry-actions,
.admin-entry-toolbar,
.admin-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-add-entry-actions button,
.admin-form-actions button { min-height: 36px; }
.admin-entry-list { display: grid; border-top: 1px solid var(--line); }
.admin-entry { border: 0; border-bottom: 1px solid var(--line); }
.admin-entry > summary {
  display: grid;
  grid-template-columns: minmax(116px, .7fr) minmax(0, 1.45fr) minmax(0, 1.85fr);
  gap: 16px;
  align-items: center;
  min-height: 68px;
  cursor: pointer;
  list-style: none;
}
.admin-entry > summary::-webkit-details-marker { display: none; }
.admin-entry > summary span,
.admin-entry > summary small { overflow: hidden; color: var(--ink-soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-entry > summary strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-entry-body { display: grid; gap: 16px; padding: 0 0 20px; }
.admin-entry-toolbar { justify-content: flex-end; }
.admin-entry-toolbar button { width: 36px; height: 36px; padding: 0; }
.admin-message { border-left: 3px solid var(--accent); padding: 10px 12px; }
.admin-error { border-left: 3px solid #9b3d30; padding: 10px 12px; color: #7f2f26; }
.admin-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.admin-status { display: flex; align-items: center; min-height: 36px; color: var(--ink-soft); font-size: 13px; }
.admin-form-actions { justify-content: flex-end; }
.admin-form-actions button[type="submit"] { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.admin-form-actions [data-delete-highlight] { border-color: #9b3d30; background: transparent; color: #7f2f26; }
.admin-post-preview,
.admin-trash-preview { display: grid; gap: 18px; max-width: 780px; }
.admin-post-preview > header,
.admin-trash-preview > header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }

@media (max-width: 1120px) {
  .admin-shell { grid-template-columns: 184px minmax(260px, 320px) minmax(0, 1fr); }
  .admin-source-row small:last-child { display: none; }
  .admin-entry > summary { grid-template-columns: minmax(106px, .8fr) minmax(0, 1.3fr); }
  .admin-entry > summary small { display: none; }
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; grid-template-areas: "bar" "sidebar" "list" "editor"; grid-template-rows: 64px auto minmax(0, 1fr); }
  .admin-workbench-bar { padding: 0 20px; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .admin-sidebar button { width: auto; flex: 0 0 auto; padding-inline: 14px; }
  .admin-list-pane { border-right: 0; }
  .admin-shell[data-admin-mobile-view="list"] .admin-editor-pane { display: none; }
  .admin-shell[data-admin-mobile-view="editor"] .admin-list-pane { display: none; }
  .admin-mobile-back { display: inline-flex; margin-bottom: 16px; }
  .admin-fields { grid-template-columns: 1fr; }
  .admin-field.wide { grid-column: auto; }
}

@media (max-width: 580px) {
  .admin-sidebar,
  .admin-list-pane,
  .admin-editor-pane { padding: 16px; }
  .admin-workbench-bar { gap: 10px; padding: 0 16px; }
  .admin-workbench-brand { font-size: 17px; }
  .admin-workbench-brand span,
  .admin-workbench-bar p { display: none; }
  .admin-book-summary { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .admin-cover-preview { width: 88px; height: 124px; }
  .admin-book-summary-copy h1 { font-size: 24px; }
  .admin-entry > summary { grid-template-columns: 1fr; gap: 3px; padding: 14px 0; }
  .admin-entry > summary span,
  .admin-entry > summary strong,
  .admin-entry > summary small { white-space: normal; }
  .admin-save-bar { flex-wrap: wrap; }
  .admin-form-actions { width: 100%; justify-content: flex-start; }
  .admin-form-actions button,
  .admin-entry-toolbar button { flex: 0 1 auto; }
}


/* ===== 键盘焦点 ===== */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== 标签 chip（全站通用） ===== */
.tag { display: inline-flex; align-items: baseline; font-size: 12px; color: #5d5a4e; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; background: rgba(255, 255, 255, .55); font-style: normal; transition: border-color .2s ease, color .2s ease; }
.tag:hover { border-color: var(--zhu); color: var(--zhu-dark); }
.post-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.post-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-card-foot > span:first-child { flex-shrink: 0; white-space: nowrap; }
.post-card-foot > .post-tags { min-width: 0; }

/* ===== 新学刊首页 ===== */
.jh-statline { display: flex; gap: 14px; align-items: baseline; margin-top: 22px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.jh-statline b { font-family: var(--serif); font-size: 36px; color: var(--ink); font-weight: 700; margin-right: 3px; line-height: 1; }
.jh-statline i { font-style: normal; color: var(--line); }
.jh-hott { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.jh-hott .lab { color: #a29b85; font-size: 12px; letter-spacing: .1em; margin-right: 4px; }
.jh-hott .tag { cursor: pointer; }
.jh-feat { display: block; color: inherit; }
.jh-feat .imgwrap { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; box-shadow: 0 16px 40px rgba(30, 28, 25, .16); }

/* 轮播容器 */
.jh-carousel { position: relative; min-width: 0; width: 100%; max-width: 100%; overflow: visible; transition: filter .3s ease; }
.jh-carousel-track { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
.jh-carousel-item { position: relative; min-width: 0; grid-area: 1 / 1; align-self: start; width: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; pointer-events: none; display: flex; flex-direction: column; box-sizing: border-box; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; text-decoration: none; color: inherit; }
.jh-carousel-item.active { opacity: 1; pointer-events: auto; }
.jh-carousel-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 8px; }
.jh-carousel-item .imgwrap { position: relative; display: block; flex: 0 0 auto; width: 100%; max-width: none; margin: 0 auto 14px; overflow: hidden; border-radius: 8px; background: #f3ede2; aspect-ratio: 16 / 9; }
.jh-carousel-item .imgwrap::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(to bottom, transparent 70%, rgba(37,35,31,.10) 100%); pointer-events: none; }
/* Keep portrait slides from inflating the shared track; contain preserves every cover. */
.jh-carousel-item .imgwrap img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.book-cover-placeholder.cover-unavailable { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 3; margin: 0; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 3px; }
.post-media.cover-unavailable,
.jh-carousel-item .imgwrap.cover-unavailable { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--paper-deep); }
.cover-unavailable img[hidden] { display: none; }
.cover-unavailable .cover-unavailable-label { display: block; margin: 0; padding: 12px; color: var(--muted); font: 12px/1.6 var(--sans); text-align: center; }
.jh-carousel-item .fmeta { display: flex; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.jh-carousel-item .fmeta b { color: #c23b22; }
.jh-carousel-item h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.36; }
.jh-carousel-item .ex { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.65; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jh-carousel-item .post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.jh-carousel-item .go { align-self: flex-start; color: var(--ink); font-size: 14px; font-weight: 500; display: none; }
.jh-feat img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.jh-feat:hover img { transform: scale(1.03); }
.jh-feat h3 { margin: 18px 0 0; font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.55; }
.jh-feat .ex { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jh-feat .fmeta { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.jh-feat .fmeta b { color: var(--zhu); font-weight: 700; letter-spacing: .04em; }
.jh-feat .fmeta i { font-style: normal; }
.jh-feat .fmeta b::after { content: ""; display: inline-block; width: 1px; height: .85em; margin-left: 9px; vertical-align: -.08em; background: var(--line); }
.jh-feat .post-tags { margin-top: 13px; }
.jh-feat .go { display: inline-block; margin-top: 14px; color: var(--accent-dark); font-size: 13.5px; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.jh-books { position: relative; border-top: 1px solid var(--line); background: #ede8db; width: 100vw; margin-left: calc(50% - 50vw); padding: 28px calc(50vw - min(var(--max), calc(100vw - 48px)) / 2) 36px; }
.jh-shelf { display: flex; gap: clamp(16px, 2.4vw, 30px); align-items: flex-end; flex-wrap: nowrap; justify-content: space-between; }
.jh-book { text-align: center; flex: 1 1 0; min-width: 0; max-width: 120px; color: inherit; }
.jh-book img { width: 100%; border-radius: 2px; box-shadow: 6px 8px 18px rgba(30, 28, 25, .22); transition: transform .25s ease; }
.jh-book:hover img { transform: translateY(-6px) rotate(.6deg); }
.jh-book span { display: block; margin-top: 11px; font-family: var(--serif); font-size: 12px; line-height: 1.45; }
.jh-cap { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; }
.jh-cap b { color: var(--zhu); font-weight: 700; }

@media (max-width: 860px) {
  .jh-books { padding-inline: 16px; }
  .jh-shelf { justify-content: flex-start; align-items: flex-start; gap: 20px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x proximity; scroll-padding-inline: 4px; }
  .jh-book { flex: 0 0 124px; max-width: 124px; scroll-snap-align: start; }
  .jh-book img { height: 180px; object-fit: contain; object-position: center bottom; }
}

@media (min-width: 581px) and (max-width: 860px) {
  .highlight-detail { padding: 40px 0 80px; }
  .highlight-detail .back-link { margin-bottom: 24px; }
  .highlight-detail-header { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 32px; }
  .highlight-detail-cover { max-width: 230px; }
  .highlight-detail-copy { min-width: 0; overflow-wrap: anywhere; padding-bottom: 0; }
  .highlight-detail-copy h1 { font-size: clamp(32px, 4.5vw, 40px); line-height: 1.25; }
  .highlights-intro { padding: 32px 0 24px; }
  .highlight-filter-tools { padding: 12px 0; margin-bottom: 12px; }
  .highlight-filter-summary { margin-bottom: 8px; }
  .jh-books { width: calc(100% + 32px); margin-left: -16px; }
  .jh-hero { grid-template-columns: minmax(0, 1fr); gap: 8px; row-gap: 8px; padding-top: 4px; padding-bottom: 20px; }
  .jh-hero .hero-copy .eyebrow { margin-bottom: 4px; }
  .jh-hero .hero-copy .jh-motto { margin-block: 2px; }
  .jh-hero .hero-lede { margin: 6px 0 8px; line-height: 1.72; }
  .jh-hero .jh-statline { margin-top: 6px; }
  .jh-hero .jh-hott { margin-top: 6px; }
  .jh-hero .hero-lede { max-width: 640px; text-wrap: pretty; }
  .jh-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; align-items: end; overflow-x: visible; padding: 0; scroll-snap-type: none; }
  .jh-book { max-width: none; flex: initial; scroll-snap-align: none; }
  .jh-book img { height: auto; object-fit: initial; object-position: initial; }
}

/* ===== 阅读进度条 ===== */
.read-progress { position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 0; background: var(--zhu); opacity: 0; transition: opacity .3s ease; pointer-events: none; }

html, body { overflow-x: clip; }

/* 宽平板导航保持单行，避免展开菜单推高首页首屏。 */
@media (min-width: 700px) and (max-width: 860px) {
  .header-inner { gap: 12px; }
  .brand { gap: 8px; flex-shrink: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 8px; }
  .nav-toggle { display: none; }
  .site-nav.open { display: flex; }
  .site-nav { position: static; display: flex; flex: 0 1 auto; flex-direction: row; align-items: center; gap: 16px; max-height: none; overflow: visible; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 12px; white-space: nowrap; }
  .site-nav a { padding: 8px 0; border: 0; }
}

@media (max-width: 580px) {
  .jh-books { width: calc(100% + 28px); margin-left: -14px; box-sizing: border-box; }
  .jh-statline { flex-wrap: wrap; gap: 10px; }
  .jh-statline i { display: none; }
  .jh-hott .tag { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .jh-feat h3 { font-size: 20px; }
}


/* 手机端摘要两行限制 */
@media (max-width: 768px) {
  .post-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .jh-carousel-item .ex {
    -webkit-line-clamp: 2;
  }
}

/* 手机端轮播保持两行摘要，同时收紧首屏高度 */
@media (max-width: 580px) {
  .jh-carousel-item .imgwrap { width: 100%; max-width: none; height: auto; margin-bottom: 14px; border-radius: 5px; }

  .jh-carousel-item h3 {
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.38;
  }

  .jh-carousel-item .ex {
    margin-bottom: 11px;
    font-size: 13px;
    line-height: 1.55;
  }

  .jh-carousel-item .post-tags {
    margin-bottom: 10px;
  }
}

/* ===== 轮播圆点指示器 ===== */
.jh-carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.jh-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; }
.jh-dot::before { content: ""; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: rgba(168,121,53,.18); border: 1.5px solid rgba(168,121,53,.42); transition: background .3s ease, transform .25s ease, box-shadow .25s ease; }
.jh-dot.active::before { background: var(--gold); border-color: var(--gold); transform: scale(1.4); box-shadow: 0 0 0 4px rgba(168,121,53,.15); }
.jh-dot:hover::before { background: rgba(168, 121, 53, 0.55); }
.jh-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }







/* ===== 手机端微调 ===== */
@media (max-width: 580px) {
  .jh-hero { gap: 8px; row-gap: 8px; padding-top: 6px; }
  .jh-hero .hero-copy > p:not(.eyebrow):not(.jh-motto) { margin-top: 4px; margin-bottom: 4px; line-height: 1.65; }
  .jh-statline { gap: 7px; }
  .jh-statline b { font-size: 31px; }
  .jh-hott { gap: 6px; margin-top: 8px; }
  .jh-carousel-item .imgwrap { margin-bottom: 10px; }
  .jh-carousel-dots { gap: 6px; margin-top: 0; }
  .jh-motto { font-size: clamp(22px, 6.5vw, 28px); margin: 5px 0; letter-spacing: .04em; }
  .jh-motto + .jh-motto { padding-left: 1.2em; }
  .hero-lede { font-size: 15px; margin: 14px 0 18px; }
}


/* ===== 卡片标题 serif ===== */
.post-card-body h3, .post-card-body .post-title {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.48;
  font-weight: 600;
}

/* ===== section-heading eyebrow 朱红 ===== */
.section-heading .eyebrow { color: var(--zhu); }

/* ===== latest-section heading margin ===== */
.latest-section .section-heading { margin-bottom: 32px; }

/* ===== jh-books section heading ===== */
.jh-books .section-heading { border-bottom: 1px solid rgba(37,35,31,.12); margin-bottom: 28px; }




/* ===== 布局节奏优化 v17 ===== */

/* section 间距收紧，减少空白感 */
.section-band { padding: 36px 0 56px; }
.latest-section .section-heading { margin-bottom: 28px; }

/* 导航栏 active 状态更明显：朱红下划线 */
.site-nav a.active { color: var(--zhu-dark); }
.site-nav a.active::after { right: 0; background: var(--zhu); }
.site-nav a:hover::after { background: var(--accent); }

/* brand-mark 微调：金色边框稍粗，更有质感 */
.brand-mark { border-width: 2px; font-weight: 700; letter-spacing: .02em; }

/* hero eyebrow 上方不要太多空间 */
.eyebrow { margin-bottom: 10px; }

/* hero 统计行间距收紧 */
.jh-statline { margin-top: 18px; }

/* 卡片标题更清晰 */
.post-card h3 { font-size: 18px; line-height: 1.36; letter-spacing: .015em; }
.featured-card h3 { font-size: clamp(26px, 2.8vw, 36px); }

/* 卡片 foot 间距 */
.post-card-foot { margin-top: 18px; }

/* section-heading 标题和副标题间距 */
.section-heading { margin-bottom: 0; padding-bottom: 16px; }

/* latest-grid 卡片间距更均匀 */
.latest-grid { gap: 32px 26px; }

/* jh-books 背景区域上下 padding 收紧 */
.jh-books { padding-top: 32px; padding-bottom: 40px; }

/* 书架书名字体更精致 */
.jh-book span { font-size: 11.5px; line-height: 1.42; color: var(--muted); margin-top: 9px; }

/* 轮播图摘要文字颜色加深一点，更易读 */
.jh-carousel-item .ex { color: #5a5450; }
.jh-carousel-item h3 { color: var(--ink); }

/* 轮播图 fmeta 标签颜色调整 */
.jh-carousel-item .fmeta b { color: var(--zhu-dark); font-weight: 700; letter-spacing: .04em; }
.jh-carousel-item .fmeta i { color: var(--muted); font-size: 11.5px; }

/* footer 字体稍细 */
.site-footer { font-size: 12.5px; }

/* 全站链接 hover 过渡 */
a { transition: color .18s ease; }

/* article-body 链接下划线更细腻 */
.article-body a { text-underline-offset: 3px; }

/* 阅读进度条颜色用 zhu */
.read-progress { background: var(--zhu); }

/* 手机端 hero 排版收紧 */
@media (max-width: 860px) {
  .home-hero { gap: clamp(20px, 3vw, 36px); }
  .jh-statline { gap: 10px; }
  .section-band { padding: 30px 0 48px; }
}


@media (max-width: 580px) {
  .post-card h3 { font-size: 16px; }
  .post-card-foot { align-items: flex-start; }
  .post-card-foot > span:first-child { flex-shrink: 0; white-space: nowrap; }
  .post-card-foot > .post-tags { min-width: 0; justify-content: flex-end; }
  .latest-grid { gap: 24px 0; }
  .jh-carousel-item h3 { font-size: 17px; }
  .jh-carousel-item .ex { font-size: 13px; }
}

/* 小屏筛选均分可用宽度，避免第三项掉到第二行。 */
@media (max-width: 360px) {
  .collection-tabs { width: 100%; flex-wrap: nowrap; }
  .collection-tabs button { min-width: 0; flex: 1; padding-inline: 6px; white-space: nowrap; }
}

/* 手机首页：让介绍区与主轮播衔接更紧，圆点保持清晰分组 */
@media (max-width: 580px) {
  .jh-hero { gap: 8px; row-gap: 8px; padding-top: 6px; }
  .jh-carousel-dots { gap: 6px; }
}


/* ===== 整体优化 v19-opt ===== */

/* 背景渐变加深一档，增强层次感，不太白也不太暗 */
body { background: linear-gradient(145deg, #ede8db 0%, #f2ede0 40%, #ebe3d6 100%) !important; }

/* body纹理点阵密度微调，更细腻 */
body::before { background-size: 4px 4px; opacity: .18; }

/* hero 区域 padding 收紧，减少顶部空白 */
.home-hero { padding: clamp(4px, 0.8vw, 12px) 0 20px; min-height: min(calc(100vh - 64px), 420px); }

/* motto 两行错落：第一行稍大，第二行缩进增大一点 */
.jh-motto { margin: 4px 0; letter-spacing: .04em; }
.jh-motto + .jh-motto { padding-left: 1.6em; }

/* hero 统计行 margin 收紧 */
.hero-stats { margin-top: 28px; }

/* 导航链接间距收紧，字号微调 */
.site-nav { font-size: 13.5px; }
@media (min-width: 861px) {
  .site-nav { gap: 22px; }
}

/* nav active 下划线改为朱红，更有特色 */
.site-nav a.active { color: var(--zhu-dark); }
.site-nav a.active::after { right: 0; background: var(--zhu); height: 2px; }
.site-nav a:hover::after { background: rgba(176,58,42,.5); }

/* brand 文字微调 */
.brand-copy strong { font-size: 18px; letter-spacing: .05em; }
.brand-copy small { font-size: 9.5px; letter-spacing: .1em; opacity: .8; }

/* 卡片悬停：更柔和的上浮，阴影更自然 */
.post-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.008); box-shadow: 0 4px 10px rgba(60,49,34,.09), 0 18px 44px rgba(60,49,34,.16); }

/* 文章卡片 body padding 微调 */
.post-card-body { padding: 16px 20px 20px; }

/* section 标题下边线改为半透明金色 */
.section-heading { border-bottom-color: rgba(168,121,53,.22); }

/* category ledger 行高收紧 */
.category-ledger a { min-height: 68px; }
.category-ledger strong { font-size: 20px; }

/* jh-books 区域背景略暖 */
.jh-books { background: #e8e0d0; }

/* footer 品牌名更有质感 */
.site-footer strong { font-size: 17px; letter-spacing: .06em; }
.site-footer { border-top-color: rgba(168,121,53,.3); border-top-width: 1px; }

/* 返回顶部按钮：金色边框 */
.to-top { border-color: rgba(168,121,53,.35); }
.to-top:hover { border-color: var(--gold); color: var(--gold); }

/* 文章页面：正文首段首字大写效果 */
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: 0.78;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--zhu);
  font-weight: 700;
}

/* 标签 hover 更明显 */
.tag:hover { background: rgba(176,58,42,.08); }

/* 轮播图图片圆角统一 */

/* 手机首页：仅收紧介绍区留白，保留文字尺寸和完整内容。 */
@media (max-width: 580px) {
  .jh-hero { gap: 4px; row-gap: 4px; }
  .jh-hero .hero-copy .eyebrow { margin-bottom: 4px; }
  .jh-hero .hero-copy .jh-motto { margin-block: 2px; }
  .jh-hero .jh-statline { margin-top: 4px; }
  .jh-hero .jh-hott { margin-top: 4px; }
}

/* 手机列表：失效封面只保留轻量提示，避免空图片占据首屏。 */
@media (max-width: 580px) {
  .archive-grid .post-media.cover-unavailable {
    aspect-ratio: auto;
    height: 64px;
    min-height: 0;
  }
}

/* 平板首页：压缩介绍区内部垂直间距，轮播封面保持原尺寸。 */
@media (min-width: 581px) and (max-width: 860px) {
  .jh-hero { gap: 8px; row-gap: 8px; }
  .jh-hero { padding-bottom: 10px; }
  .jh-hero .hero-copy .eyebrow { margin-bottom: 2px; }
  .jh-hero .hero-copy .jh-motto { margin-block: 0; }
  .jh-hero .hero-lede { margin: 4px 0 6px; line-height: 1.6; }
  .jh-hero .jh-statline { margin-top: 4px; }
  .jh-hero .jh-hott { margin-top: 4px; }
}
