/* 博客独立样式：暖白、墨灰与留白。字体在本站加载，缺字时使用系统字体。 */
@font-face { font-family: "Blog Sans"; src: url("../fonts/blog/noto-sans-sc.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Blog Serif"; src: url("../fonts/blog/noto-serif-sc.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; --paper: #faf9f6; --ink: #292925; --muted: #706f67; --line: #deddd6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Blog Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 18px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: #000; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: #e4e1d6; }
.site-header, .site-footer { max-width: 1160px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { min-height: 100px; border-bottom: 1px solid var(--line); }
.site-header a, .site-footer a { text-decoration: none; }
.site-name { font-weight: 600; letter-spacing: .08em; }
.site-name span { margin-left: 14px; font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.site-header nav { display: flex; gap: 30px; font-size: 15px; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 8px; }
.article-layout { display: grid; grid-template-columns: 180px minmax(0, 740px); gap: 72px; max-width: 1040px; margin: 76px auto 110px; }
.article-nav { align-self: start; position: sticky; top: 38px; font-size: 15px; }
.back-link { display: inline-block; margin-bottom: 44px; text-decoration: none; color: var(--muted); }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .18em; }
.article-nav nav { display: flex; flex-direction: column; gap: 17px; border-left: 1px solid var(--line); }
.article-nav nav a { margin-left: -1px; padding-left: 18px; border-left: 1px solid transparent; text-decoration: none; }
.article-nav nav a:hover, .article-nav nav a:focus-visible { border-left-color: var(--ink); }
.article-nav nav span { margin-right: 12px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.article-header { padding-bottom: 38px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
h1, h2 { font-family: "Blog Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif; }
h1 { font-size: clamp(34px, 4.3vw, 48px); line-height: 1.4; font-weight: 600; letter-spacing: .025em; margin: 0 0 18px; }
.description { color: var(--muted); font-size: 18px; margin: 0; }
.article-meta { font-size: 14px; margin: 26px 0 0; color: var(--muted); }
.article-meta span, .meta-divider { margin: 0 12px; }
.prose { overflow-wrap: anywhere; }
.prose h2 { margin: 68px 0 30px; font-size: 31px; font-weight: 600; line-height: 1.5; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 38px 0 20px; font-size: 21px; font-weight: 600; }
.prose p { margin: 16px 0; }
.prose ul { padding-left: 22px; margin: 16px 0 25px; }
.prose li { padding-left: 5px; margin: 16px 0; }
.prose li::marker { color: #99978e; font-size: .75em; }
.prose li li { margin: 5px 0; }
.prose li ul { margin: 9px 0; }
.prose li p { margin: 0; }
.prose a { text-decoration-color: #b9b6aa; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 28px 0; border-left: 2px solid #858275; padding: 4px 0 4px 22px; color: var(--muted); }
.prose blockquote p { margin: 0; }
.prose code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .85em; padding: 3px 6px; background: #efede7; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0 34px; font-size: 16px; text-align: left; }
.prose th { font-size: 14px; color: var(--muted); font-weight: 500; background: #f1f0eb; }
.prose th, .prose td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-end { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.article-end a { text-decoration: none; }
.site-footer { min-height: 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.index-layout { max-width: 920px; min-height: calc(100vh - 400px); margin: 100px auto; }
.index-layout .article-header { margin-bottom: 0; }
.post-entry { display: grid; grid-template-columns: 120px 1fr 24px; gap: 32px; padding: 42px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-entry time, .post-topics { color: var(--muted); font-size: 14px; }
.post-entry time { padding-top: 8px; }
.post-entry h2 { font-size: 30px; margin: 0 0 10px; }
.post-entry p { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.post-entry:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.post-arrow { font-size: 24px; }
.skip-link { position: absolute; top: -80px; left: 16px; padding: 8px 16px; background: var(--paper); z-index: 2; }
.skip-link:focus { top: 10px; }
@media (max-width: 1240px) { .site-header, .site-footer { margin-left: 40px; margin-right: 40px; } .article-layout, .index-layout { margin-left: 40px; margin-right: 40px; } .article-layout { gap: 44px; } }
@media (max-width: 800px) {
  body { font-size: 17px; }
  .site-header, .site-footer { margin-left: 24px; margin-right: 24px; min-height: 80px; }
  .article-layout, .index-layout { display: block; margin: 38px 24px 72px; }
  .article-nav { position: static; margin-bottom: 38px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .back-link { margin-bottom: 22px; }
  .article-nav .eyebrow { display: none; }
  .article-nav nav { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; border: 0; }
  .article-nav nav a { padding: 0; border: 0; margin: 0; }
  .article-nav nav span { margin-right: 7px; }
  .article-header { padding-bottom: 28px; margin-bottom: 32px; }
  .prose h2 { margin-top: 50px; font-size: 28px; }
  .prose table, .prose th { font-size: 14px; }
  .prose th, .prose td { padding: 10px 7px; }
  .post-entry { grid-template-columns: 1fr 22px; gap: 14px; padding: 30px 0; }
  .post-entry time { grid-column: 1 / -1; padding: 0; }
  .post-entry h2 { font-size: 28px; }
}
@media (max-width: 380px) { .site-name span { display: none; } .site-header nav { gap: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { body { background: white; } .site-header, .article-nav, .site-footer, .article-end { display: none; } .article-layout { display: block; margin: 0; max-width: none; } a { text-decoration: none; } h2, h3 { break-after: avoid; } }
