/* Light-only technology journal: blue / white surfaces, full-colour identity,
   modern sans type and progressive motion with reduced-motion support. */
@font-face { font-family: Geist; src: url('../fonts/GeistVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans SC'; src: url('../fonts/NotoSansSCVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Serif SC'; src: url('../fonts/NotoSerifSCVariable.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('../fonts/LibreBaskervilleVariable.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  /* 唯一调色板：冷蓝灰纸面 + 单一强调蓝。所有语义色只在这里定义一次。 */
  --glass-tint: 233, 238, 244;
  --glass-blur: blur(2px);
  --paper: #e9eef4; --surface: #dce6f0; --ink: #182b3d; --soft: #344b5e;
  /* 次级文字压到 #4b6475：在网格纸底、卡片面与页脚面三种底色上都 >=4.8:1，
     原来的 #516b7c 在页脚面只有 4.35:1，属于不达标。色相不变，只加深一档。 */
  --muted: #4b6475; --faint: #4b6475; --rule: #cbd8e3;
  --accent: #28689d; --cyan: #28689d; --signal: var(--accent);
  --sans: 'Noto Sans SC', Geist, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  /* 标题混排：西文用 Geist，中文用 Noto Sans SC；正文仍保留 --reading 的衬线体 */
  --display: Geist, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --reading: 'Noto Serif SC', 'Libre Baskerville', 'Songti SC', 'STSong', serif;
  --mono: ui-monospace, 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --frame: 1200px; --margin: 32px; --head-h: 64px;
  /* 卡片表面统一由这一处 token 决定，避免散落在各组件里互相覆盖。 */
  --card-radius: 14px;
  --card-tint: 230, 239, 248;
  --card-bg: rgba(var(--card-tint), 0.42);
  --card-bg-hover: rgba(var(--card-tint), 0.55);
  --card-border: 1px solid transparent;
  --card-border-hover: transparent;
  --card-backdrop: var(--glass-blur) saturate(125%);
  --card-shadow: 0 1px 2px rgba(24, 43, 61, 0.06), 0 4px 10px -3px rgba(24, 43, 61, 0.09), 0 12px 26px -9px rgba(24, 43, 61, 0.14);
  --card-shadow-hover: 0 10px 28px -5px rgba(24, 43, 61, 0.18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 32px; }
body { position: relative; isolation: isolate; margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, pre { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { color: var(--paper); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; transition: color 300ms var(--ease), opacity 300ms var(--ease), background-color 300ms var(--ease); }
a:hover { color: var(--accent); }
.wrap { width: min(var(--frame),calc(100% - var(--margin) * 2)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 200; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.bg { position: fixed; inset: 0; z-index: -1; display: block; pointer-events: none; overflow: hidden; background: var(--paper); }
/* 导航栏与卡片共用模糊半径。 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 70;
  --head-tint-opacity: 0.72;
  background: rgba(var(--glass-tint), var(--head-tint-opacity));
  -webkit-backdrop-filter: var(--glass-blur) saturate(160%);
  backdrop-filter: var(--glass-blur) saturate(160%);
}
.head-inner { min-height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
@media (prefers-contrast: more) {
  .site-head { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; flex: none; filter: none; opacity: 1; transition: transform 500ms var(--ease); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; align-items: baseline; gap: 12px; }
.brand-text strong { font: 650 18px/28px var(--display); letter-spacing: 0; }
.brand-text em { font: 400 12px/16px var(--sans); color: var(--muted); font-style: normal; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav > a { min-height: 40px; display: inline-flex; align-items: center; font: 500 14px/20px var(--sans); }
.nav a.is-active { color: var(--accent); }
.burger:hover { background: var(--surface); color: var(--ink); }
.burger { display: none; }
.burger { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; }
.burger span { position: absolute; top: 50%; left: 50%; width: 18px; height: 1.5px; background: var(--ink); transition: transform 500ms var(--ease); }
.burger span:first-child { transform: translate(-50%,-4px); }
.burger span:last-child { transform: translate(-50%,3px); }
.burger[aria-expanded='true'] span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--head-h) + 32px) var(--margin) 32px; background: var(--paper); overflow-y: auto; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: baseline; padding-block: 24px; font: 500 36px/40px var(--reading); animation: menu-enter 600ms var(--ease) both; }
.mobile-menu nav a:nth-child(2) { animation-delay: 60ms; }
.mobile-menu nav a:nth-child(3) { animation-delay: 120ms; }
.mobile-menu nav a span { font: 400 12px/16px var(--sans); color: var(--faint); }
.mobile-contacts { display: grid; gap: 12px; font: 400 14px/20px var(--sans); color: var(--muted); overflow-wrap: anywhere; }
@keyframes menu-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Colourful identity and lightweight signal motion. */
.hero { display: flex; flex-direction: column; align-items: center; padding-top: 64px; padding-bottom: 40px; gap: 32px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.eyebrow { color: #3c659c; font: 500 14px/20px var(--sans); letter-spacing: .02em; margin-bottom: 24px; }
.pulse { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--cyan); vertical-align: middle; animation: signal-pulse 2800ms var(--ease) infinite; }
.caret { display: inline-block; width: 2px; height: 20px; background: var(--cyan); animation: cursor-pulse 1600ms var(--ease) infinite; }
.hero-title { font: 700 96px/1.08 var(--display); letter-spacing: .02em; padding: 0; background: linear-gradient(105deg,#315b9b,#547db7); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-title .accent { display: inline-block; font-family: Geist, sans-serif; color: var(--cyan); -webkit-text-fill-color: var(--cyan); letter-spacing: 0; margin: 0; animation: signal-pulse 2800ms var(--ease) infinite; }
.hero-sub { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; font: 500 20px/28px var(--sans); letter-spacing: .10em; color: var(--soft); }
.hero-slash { color: var(--cyan); font-family: var(--sans); }
.hero-quote { max-width: 560px; }
.hero-desc { font: 400 24px/32px var(--sans); color: var(--soft); text-wrap: balance; white-space: pre-line; }
.hero-credit { margin-top: 16px; font: 400 12px/16px var(--sans); color: var(--muted); white-space: pre-line; }
/* 装饰性主题标签：有意做成非交互（无 hover、默认光标），避免误导点击 */
.ticker { margin-bottom: 48px; }
.ticker-track { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px 24px; }
.ticker-track span { font: 500 12px/20px var(--sans); letter-spacing: 0; color: var(--muted); }
/* Two-column note feed, preserving chronological reading order. */
.stream { display: block; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { display: flex; align-items: baseline; gap: 12px; font: 600 30px/36px var(--display); }
.sec-index { color: var(--muted); font: 400 12px/16px var(--sans); }
.sec-more, .sec-note { color: var(--muted); font: 400 12px/16px var(--sans); }
.sec-more { display: inline-flex; align-items: center; min-height: 40px; gap: 12px; }
.post-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.post-card { display: block; width: 100%; margin-bottom: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); transition: transform 500ms var(--ease), border-color 300ms var(--ease); }
.pc-link { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 24px; border: 0; border-radius: 12px; }
.pc-link:hover { color: inherit; }
.pc-link:hover .pc-main { color: var(--soft); }
.pc-date { display: flex; align-items: baseline; gap: 8px; font: 500 12px/16px var(--sans); letter-spacing: .02em; color: #426da7; }
.pc-main { min-width: 0; color: var(--soft); transition: color 300ms var(--ease); }
.pc-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--surface); }
.pc-title { font: 650 24px/32px var(--display); margin-bottom: 12px; color: var(--ink); }
.pc-text, .pc-ex { font: 400 18px/28px var(--sans); text-align: left; overflow-wrap: anywhere; }
.pc-ex { color: var(--muted); }
.pc-arrow { position: absolute; right: 24px; top: 24px; font: 400 18px/24px var(--sans); color: var(--accent); opacity: .65; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.pc-link:hover .pc-arrow { opacity: 1; transform: translate(2px,-2px); color: var(--accent); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 0; font: 400 12px/16px var(--sans); }
.pager-btn { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 0; }
.pager-btn.is-off { color: var(--faint); opacity: .6; }
.pager-now { color: var(--muted); }
.pager-now i { font-style: normal; color: var(--faint); padding-inline: 8px; }
.empty { padding: 48px 24px; text-align: center; display: grid; gap: 16px; }
.empty .mono { font-size: 12px; color: var(--muted); }
/* Interior page furniture */
.page-head { padding-top: 40px; padding-bottom: 32px; }
.page-head .eyebrow { margin-bottom: 24px; }
.page-title { font: 650 72px/1.08 var(--display); letter-spacing: -.04em; color: var(--ink); }
.page-sub { max-width: 680px; margin-top: 24px; font: 400 20px/28px var(--sans); color: var(--muted); }
.year-block { display: block; padding-block: 0; border: 0; }
.year-label { position: static; display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.year-num { display: inline; font: 600 20px/28px var(--sans); color: var(--accent); }
.year-count { display: inline; margin: 0; font: 400 12px/16px var(--sans); color: var(--faint); }
.year-item a { display: grid; grid-template-columns: 48px minmax(0,1fr) 20px; gap: 16px; padding: 20px 16px; align-items: baseline; border-radius: 8px; }
.yi-date { font: 400 12px/16px var(--sans); color: var(--faint); }
.yi-title { display: block; font: 500 18px/28px var(--display); overflow-wrap: anywhere; }
.yi-ex { display: block; margin-top: 8px; font: 400 16px/24px var(--sans); color: var(--muted); }
.yi-arrow { color: var(--faint); font: 400 16px/24px var(--sans); }
/* About */
.avatar-tile { width: 160px; aspect-ratio: 1; background: var(--surface); border: 0; border-radius: 16px; overflow: hidden; }
.avatar-tile img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.avatar-tile img.avatar-logo { padding: 32px; object-fit: contain; }
/* Search */
.search-form { display: flex; gap: 8px; max-width: 680px; margin-top: 32px; padding: 8px; border: 0; border-radius: 12px; background: #fff; }
.search-form input { flex: 1; width: 0; min-width: 0; border: 0; background: none; padding: 8px 12px; font: 400 18px/28px var(--sans); }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.search-form input::placeholder { color: var(--faint); opacity: 1; }
.search-form button { border: 0; border-radius: 8px; background: var(--accent); color: #fff; padding: 8px 16px; font: 600 14px/20px var(--sans); white-space: nowrap; }
/* Reading */
.article-head, .article-body, .article-recommendations, .article-end { width: min(720px,calc(100% - var(--margin) * 2)); margin-inline: auto; }
.article-head { padding-top: 48px; }
.back { display: inline-flex; align-items: center; min-height: 40px; font: 400 12px/16px var(--sans); color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; font: 400 12px/16px var(--sans); color: var(--faint); }
.article-meta .sep { opacity: .5; }
.draft-flag { color: var(--accent); }
.article-title { margin-top: 24px; font: 600 48px/1.25 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.article-title--quiet { font-weight: 400; }
.article-title-date { font: 400 16px/24px var(--sans); color: var(--muted); margin-left: 4px; }
.article-body { margin-top: 40px; padding: 32px; border: 0; border-radius: 8px; background: #fff; }
.prose { font: 400 18px/30px var(--sans); color: var(--soft); overflow-wrap: anywhere; }
.prose p { margin-bottom: 24px; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 600; line-height: 1.5; margin: 48px 0 24px; color: var(--ink); }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose h4 { font-size: 20px; }
.prose ul, .prose ol { padding-left: 24px; margin-block: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-block: 8px; }
.prose blockquote { margin: 32px 0; padding: 24px 32px; background: var(--surface); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { margin: 32px auto; cursor: zoom-in; max-width: 100%; height: auto; }
.prose figure { margin-block: 32px; }
.prose figure img { margin: 0 auto; }
.prose figcaption { margin-top: 12px; font: 400 12px/20px var(--sans); color: var(--faint); }
.prose hr { height: 1px; width: 64px; border: 0; background: var(--rule); margin: 48px auto; }
.prose code { background: var(--surface); padding: 2px 4px; font-family: var(--mono); font-size: .8em; }
.prose pre { margin-block: 32px; padding: 24px; background: var(--surface); overflow-x: auto; font: 400 14px/24px var(--mono); }
.prose pre code { padding: 0; background: none; font: inherit; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 32px; font: 400 14px/24px var(--sans); }
.prose th, .prose td { border: 0; padding: 12px 16px; text-align: left; }
.prose th { background: var(--surface); }
.img-fallback { padding: 40px 24px; background: var(--surface); font: 400 14px/24px var(--sans); color: var(--muted); text-align: center; }
.article-recommendations { margin-top: 48px; }
.article-recommendations h2 { margin-bottom: 12px; color: var(--muted); font: 500 14px/22px var(--sans); }
.recommendation-list { overflow: hidden; }
.recommendation-list li + li { border-top: 1px solid var(--rule); }
.recommendation-link { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 16px; padding: 16px 24px; }
.recommendation-link:hover, .recommendation-link:focus-visible { background: var(--card-bg-hover); }
.recommendation-link:focus-visible { outline-offset: -2px; }
.recommendation-link:active { background: var(--surface); }
.recommendation-copy { display: grid; gap: 4px; overflow-wrap: anywhere; }
.recommendation-title { color: var(--soft); font: 400 15px/22px var(--display); }
.recommendation-excerpt { color: var(--muted); font: 400 14px/20px var(--sans); }
.recommendation-link time { color: var(--muted); font-size: 12px; line-height: 16px; margin-top: 4px; white-space: nowrap; }
.article-end { margin-top: 40px; text-align: center; }
.end-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; font: 400 14px/20px var(--sans); color: var(--accent); }
.read-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; pointer-events: none; }
.read-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
/* Error */
.error-wrap { padding-block: 64px; text-align: center; }
.error-code { font: 400 96px/1 var(--display); color: var(--accent); }
.error-title { margin-top: 32px; font: 500 36px/44px var(--display); }
.error-msg { margin-top: 16px; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 32px; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 40px; font: 500 14px/20px var(--sans); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { color: var(--paper); background: var(--accent); }
/* Full-width closing surface; animate content once without moving the background. */
.site-foot { margin-top: 32px; background: var(--surface); }
.site-foot > .footer-shell { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding-block: 16px; background: transparent; }
.footer-shell.reveal.is-in { animation: footer-enter 600ms var(--ease) backwards; }
@keyframes footer-enter { from { opacity: 0; } to { opacity: 1; } }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.foot-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; min-width: 0; }
.foot-brand { font: 600 24px/32px var(--display); color: var(--ink); }
.foot-word { font: 500 12px/16px var(--sans); color: var(--muted); letter-spacing: .08em; }
.foot-contact { font: 400 14px/20px var(--sans); color: var(--soft); overflow-wrap: anywhere; min-width: 0; }
.foot-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92px; text-align: center; gap: 4px; padding: 16px 24px max(16px,env(safe-area-inset-bottom)); background: rgb(183 201 214 / 18%); font: 400 13px/22px var(--sans); color: var(--muted); }
.foot-bottom > span { min-width: 0; overflow-wrap: anywhere; }
.foot-stack { white-space: pre-wrap; font-family: var(--reading); font-size: 15px; line-height: 1.8; letter-spacing: .08em; color: #425b6d; }

/* 说明与正文保留衬线阅读体；标题统一走 --display，不受这条规则影响。 */
.hero-desc, .pc-text, .pc-ex,
.page-sub, .yi-ex, .prose { font-family: var(--reading); }

/* Transient UI */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); padding: 12px 24px; font: 400 14px/20px var(--sans); pointer-events: none; opacity: 0; transform: translate(-50%,8px); transition: opacity 300ms var(--ease), transform 500ms var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%,0); }
.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(24,24,24,.96); display: grid; place-items: center; padding: 64px 24px 24px; opacity: 0; visibility: hidden; pointer-events: none; cursor: zoom-out; transition: opacity 300ms var(--ease); }
.lightbox.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 96px); object-fit: contain; }
.lightbox-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; background: #313131; color: #fff; font: 400 18px/28px var(--sans); }
.reveal { opacity: 1; }
/* 位移走独立的 translate 属性，而不是 transform：
   animation 运行期间会覆盖同属性的普通声明，卡片 hover 的上浮会被入场动画整个吃掉
   （实测动画 700ms 内 hover 始终停在入场位移上）。translate 与 transform 互不干扰，
   入场归入场、交互归交互。老浏览器不支持 translate 时自动退化为纯淡入。 */
.reveal.is-in {
  animation: tech-enter 700ms var(--ease) backwards;
  /* 同屏元素按 --i 依次入场；到第 6 个之后共用同一个延迟，长列表末尾不必久等。 */
  animation-delay: min(calc(var(--i, 0) * 45ms), 270ms);
}
@keyframes tech-enter { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 900px) {
  :root { --margin: 24px; }
  .post-list { column-gap: 16px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .burger { display: block; }
  .head-inner { gap: 8px; }
  .brand-text em { display: none; }
  .site-head:has(.burger[aria-expanded='true']) { --head-tint-opacity: 0.90; }
}
@media (max-width: 600px) {
  :root { --margin: 16px; --head-h: 60px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-text strong { font-size: 18px; line-height: 28px; }
  .hero { padding-top: 40px; padding-bottom: 32px; gap: 24px; }
  .eyebrow { font-size: 12px; line-height: 16px; margin-bottom: 24px; letter-spacing: 0; }
  .hero-title { font-size: 60px; line-height: 1.1; }
  .hero-sub { font-size: 16px; line-height: 24px; margin-top: 16px; }
  .hero-desc { font-size: 20px; line-height: 28px; }
  .hero-credit { margin-top: 12px; }
  .section-head { margin-bottom: 24px; gap: 16px; }
  .section-head h2 { font-size: 24px; line-height: 32px; gap: 8px; }
  .sec-more { gap: 8px; }
  .post-list { grid-template-columns: 1fr; }
  .post-card { margin-bottom: 0; }
  .pc-link { padding: 24px; gap: 16px; }
  .pc-title { font-size: 24px; line-height: 32px; }
  .pc-text, .pc-ex { font-size: 18px; line-height: 28px; }
  .pc-arrow { top: 24px; right: 24px; }
  .pager { padding-top: 16px; gap: 8px; }
  .pager-btn { font-size: 12px; line-height: 16px; }
  .page-head { padding-top: 40px; padding-bottom: 32px; }
  .page-title { font-size: 48px; line-height: 1.1; }
  .page-sub { font-size: 18px; line-height: 32px; margin-top: 24px; }
  .year-block { padding-block: 0; }
  .year-label { gap: 12px; }
  .year-num { font-size: 20px; line-height: 28px; }
  .year-count { margin-top: 0; }
  .year-item a { grid-template-columns: 40px minmax(0,1fr) 16px; gap: 12px; padding: 16px 8px; }
  .yi-title { font-size: 18px; line-height: 28px; }
  .search-form input { font-size: 18px; line-height: 28px; }
  .article-head { padding-top: 32px; }
  .article-title { font-size: 30px; line-height: 44px; }
  .article-meta { margin-top: 24px; }
  .article-body { margin-top: 32px; padding: 24px; }
  .prose { font-size: 16px; line-height: 28px; }
  .prose blockquote, .prose pre { padding: 24px; }
  .article-recommendations { margin-top: 40px; }
  .recommendation-link { grid-template-columns: minmax(0,1fr); gap: 8px; padding-inline: 16px; }
  .recommendation-link time { margin-top: 0; }
  .error-wrap { padding-block: 48px; }
  .error-code { font-size: 72px; }
  .error-title { font-size: 30px; line-height: 40px; }
  .site-foot { margin-top: 32px; }
}

/* Direct year links retain native navigation, history and no-script support. */
.archive-years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.archive-year { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 16px; border-radius: 8px; background: var(--surface); font: 600 14px/20px var(--sans); color: #326199; }
.archive-year small { font: 400 12px/16px var(--sans); color: var(--muted); }
.archive-year:hover { background: #dceaff; }
.archive-year.is-active { background: var(--accent); color: #fff; }
.archive-year.is-active small { color: #fff; }
/* Real writing data fills the opening; the chart links to each year's archive. */
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 24px; text-align: left; }
.hero-intro { min-width: 0; }
.hero-copy { align-items: flex-start; }
.hero-sub { justify-content: flex-start; }
.hero-quote { margin-top: 32px; }
.hero-desc { text-wrap: pretty; }
.writing-overview { min-width: 0; padding: 24px; border-radius: 12px; background: #fff; }
.overview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font: 500 12px/16px var(--sans); color: var(--muted); }
.overview-head > span:first-child { color: #326199; }
.overview-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.overview-totals strong { display: block; font: 600 36px/40px var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.overview-totals > div:first-child strong { color: var(--accent); }
.overview-totals span { display: block; margin-top: 8px; font: 400 12px/16px var(--sans); color: var(--muted); }
.year-activity { margin-top: 32px; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font: 400 12px/16px var(--sans); color: var(--faint); }
.activity-row { display: grid; grid-template-columns: 40px minmax(0,1fr) 24px; align-items: center; gap: 12px; min-height: 32px; font: 500 12px/16px var(--sans); color: var(--muted); }
.activity-track { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: var(--surface); }
.activity-fill { display: block; height: 100%; background: #a4b7d2; border-radius: inherit; transform: scaleX(var(--ratio)); transform-origin: left; }
.activity-row:first-of-type .activity-fill { background: var(--accent); }
.activity-row:hover .activity-fill { background: var(--cyan); }
.activity-count { text-align: right; font-variant-numeric: tabular-nums; }
.writing-overview.is-in .activity-fill { animation: activity-enter 900ms var(--ease) backwards; animation-delay: calc(var(--row) * 60ms); }
@keyframes activity-enter { from { transform: scaleX(0); } to { transform: scaleX(var(--ratio)); } }
.ticker-track { justify-content: center; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .hero-intro { text-align: center; }
  .hero-copy { align-items: center; }
  .hero-sub { justify-content: center; }
  .hero-quote { margin-inline: auto; margin-top: 24px; }
  .writing-overview { width: 100%; max-width: 680px; margin-inline: auto; padding: 24px; }

  .overview-totals { margin-top: 16px; gap: 16px; }
  .overview-totals strong { font-size: 30px; line-height: 36px; }
  .ticker-track { justify-content: center; }
}
/* Hover, active and ambient motion are isolated from document layout. */
.bg-grid { position: absolute; inset: -24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='%2392b8ee' stroke-opacity='.12'/%3E%3C/svg%3E"); background-size: 64px 64px; opacity: .12; }
.bg-noise { display: none; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.nav a.is-active { color: var(--accent); }
.post-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(36,107,253,.16); }
.pc-link:hover .pc-title { color: var(--accent); }
.pager-btn:not(.is-off):hover { color: var(--accent); }
.year-list { padding: 8px; border: 0; border-radius: 8px; background: #fff; }
.year-item a:hover { background: #f0f6ff; }
.search-form button:hover { background: #1457df; }
button:active, .pager-btn:active { transform: scale(.98); }
@keyframes signal-pulse { 0%, 100% { opacity: .7; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes cursor-pulse { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
@keyframes grid-drift { from { transform: translateY(0); } to { transform: translateY(24px); } }
@media (max-width: 600px) {
  .site-foot { margin-top: 24px; }
  .site-foot > .footer-shell { min-height: 76px; padding-block: 16px; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-brand { font-size: 20px; line-height: 28px; }
  .foot-bottom { min-height: 76px; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-head, .site-foot, .mobile-menu, .article-recommendations, .article-end, .read-progress, .ticker, .toast, .lightbox { display: none !important; }
  body { color: #000; background: #fff; }
  .wrap, .article-head, .article-body { width: 100%; }
  .prose { color: #000; }
  .reveal.is-in { animation: none; }
}

/* Long titles, addresses and pasted content must stay within the viewport. */
.pc-main, .foot-contact, .foot-stack { min-width: 0; overflow-wrap: anywhere; }
.prose { overflow-wrap: anywhere; }
.prose img { max-width: 100%; height: auto; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }

/* Refined surfaces and consistent alignment. */
.overview-head { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.overview-head > span { text-align: center; }
.overview-since { white-space: nowrap; }
.overview-totals > div { text-align: center; }
.hero-desc { letter-spacing: .03em; }
.reveal-ready .reveal:not(.is-in) { opacity: 0; }
@media (max-width: 900px) { .overview-head { gap: 16px; } }
@media (max-width: 600px) {
  .pc-link, .article-body { padding: 16px; }
  .pc-arrow { right: 16px; top: 16px; }
  .writing-overview { padding: 16px; }
  .hero-title { letter-spacing: .02em; }
  .ticker { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .reveal-ready .reveal:not(.is-in) { opacity: 1; } }
@media print { .bg { display: none; } .reveal-ready .reveal:not(.is-in) { opacity: 1; } }

/* Keep the author portrait while giving the biography room to breathe. */
.mobile-menu a[aria-current="page"] { color: var(--accent); }
@media (max-width: 600px) {
  /* 手机上首屏尽快看到文章，写作概览只在桌面端展示 */
  .page-home .writing-overview { display: none; }
}

/* Cool, technical surfaces: a shared slate-blue palette and a fine grid.
   Palette lives in the single :root at the top of this file. */
.bg-grid {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cpath d='M96 0H0V96' fill='none' stroke='%237991a5' stroke-opacity='.28'/%3E%3Ccircle cx='1' cy='1' r='1.2' fill='%237991a5' fill-opacity='.40'/%3E%3C/svg%3E");
  background-size: 96px 96px;
}
.hero-title { background-image: linear-gradient(105deg,#203d59,#3976a1); }
.hero-title .accent { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.eyebrow { color: var(--muted); }
.archive-year { color: #386783; }
.writing-overview { background: rgb(133 178 208 / 25%); box-shadow: inset 0 0 0 1px #c1d4e2; }
.overview-head > span:first-child { color: var(--muted); }
.activity-fill { background: #91b2c7; }
.archive-year { background: rgb(157 192 215 / 25%); }
.post-card { background: rgb(255 255 255 / 25%); box-shadow: inset 0 0 0 1px #cedce6; }
.post-card:hover { box-shadow: inset 0 0 0 1px #91b1c5; }
.search-form button:hover { background: #20547f; }
.site-foot {
  background: rgb(214 227 237 / 40%);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
@media (prefers-contrast: more) {
  .site-foot { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print { body, .article-body { background: #fff; color: #000; } }

.archive-year.is-active, .archive-year.is-active:hover { background: var(--accent); }
@media print { .article-body { background: #fff; } }

/* Mobile archive: date above the text, with space reclaimed from both sides. */
@media (max-width: 600px) {
  .archive.wrap { width: calc(100% - 16px); }
  .year-label { padding-inline: 8px; }
  .year-list { padding: 4px; }
  .year-item a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 12px 8px; }
  .yi-date { grid-column: 1; grid-row: 1; }
  .yi-main { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .yi-arrow { grid-column: 2; grid-row: 1; }
}
/* Subtle independent layers keep the grid quiet while adding depth. */
.bg-grid { inset: -24px; animation: background-drift 24s cubic-bezier(.22,1,.36,1) infinite alternate; }
.bg-noise { display: block; position: absolute; inset: 0; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cpath d='M48 0v8M44 4h8M144 96v8M140 100h8' stroke='%234d7d9b' stroke-opacity='.35' fill='none'/%3E%3C/svg%3E"); background-size: 192px 192px; }
@keyframes background-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(96px,96px,0); } }
@media (prefers-reduced-motion: reduce) { .bg-grid { animation: none; } }

/* Search: a compact introduction and clear states across screen sizes. */
.search-form { max-width: 680px; margin-top: 24px; padding: 8px; background: rgb(255 255 255 / 40%); box-shadow: inset 0 0 0 1px var(--rule); }
.search-form input { font-size: 16px; line-height: 24px; }
.search-form button { min-height: 48px; padding-inline: 24px; font-size: 16px; }
.search-feedback { max-width: 680px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-top: 24px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .search-form { margin-top: 24px; gap: 4px; }
  .search-form input { padding: 8px; font-size: 16px; }
  .search-form button { min-height: 48px; padding-inline: 12px; }
  .search-feedback { margin-top: 16px; }
}

/* Reading and metadata remain legible over the background texture. */
.pc-date, .yi-date, .article-meta, .year-count { font-size: 14px; line-height: 20px; }
@media print { .article-body { background: #fff; } }

/* Compact masonry: cards keep their natural height and DOM reading order. */
@media (min-width: 601px) {
  .post-list.is-masonry { grid-auto-rows: 1px; row-gap: 0; align-items: start; }
  .post-list.is-masonry .post-card { height: auto; margin-bottom: 16px; }
}
@media print { .post-list.is-masonry { display: block; } .post-list.is-masonry .post-card { margin-bottom: 16px; } }

/* About: one editorial story with a compact identity column. */
.about-page { padding-top: 64px; width: min(1360px, calc(100% - var(--margin) * 2)); }
.about-heading { max-width: 960px; margin-inline: auto; }
.about-heading .eyebrow { margin-bottom: 24px; }
.about-heading h1 { font: 650 60px/1.1 var(--display); letter-spacing: -.02em; }
.about-lead { margin-top: 24px; color: var(--muted); font: 400 18px/28px var(--sans); }
/* 正文卡片居中，头像放在卡片标题左侧 */
.about-layout { display: flex; justify-content: center; align-items: flex-start; margin-top: 64px; }
.about-story { width: min(100%, 960px); padding: 40px; background: rgb(255 255 255 / 65%); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule); }
.about-story-head { display: flex; align-items: center; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.about-identity { flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 116px; }
.about-identity .avatar-tile { width: 116px; border-radius: 12px; }
.about-identity .avatar-tile img.avatar-logo { padding: 22px; }
.about-identity-label { color: var(--muted); font-size: 11px; line-height: 16px; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.about-identity-label span { color: var(--accent); padding-inline: 3px; }
.about-story-heading { min-width: 0; }
.about-story-index { color: var(--muted); font-size: 12px; line-height: 16px; letter-spacing: .04em; }
.about-story h2 { margin-top: 14px; font: 600 34px/40px var(--display); letter-spacing: -.02em; }
.about-story-copy { max-width: 780px; margin-top: 32px; color: var(--soft); font: 400 18px/32px var(--sans); }
.about-story-copy p + p { margin-top: 24px; }
.about-story-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; line-height: 20px; }
@media (min-width: 601px) and (max-width: 1280px) {
  .about-page { width: min(var(--frame), calc(100% - var(--margin) * 2)); }
  .about-heading { max-width: 680px; }
  .about-story-copy { max-width: 680px; }
}
@media (max-width: 600px) {
  .about-page { padding-top: 40px; }
  .about-heading h1 { font-size: 36px; line-height: 40px; }
  .about-lead { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .about-layout { margin-top: 32px; }
  .about-story { padding: 24px; }
  /* 手机上改成纵向：头像与标签并成一行，标题独占整宽。
     横向排时 72px 的头像加间距会把标题区压到 150px 上下，标题被迫切成三行。 */
  .about-story-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 22px; }
  .about-identity { flex-direction: row; align-items: center; width: auto; gap: 12px; }
  .about-identity .avatar-tile { width: 56px; }
  .about-identity .avatar-tile img.avatar-logo { padding: 10px; }
  .about-identity-label { font-size: 11px; line-height: 16px; text-align: left; }
  .about-story-heading { width: 100%; }
  .about-story h2 { margin-top: 8px; font-size: 22px; line-height: 30px; }
  .about-story-copy { margin-top: 24px; font-size: 16px; line-height: 28px; }
  .about-story-end { margin-top: 32px; }
}
@media (max-width: 380px) {
  .about-story h2 { font-size: 20px; line-height: 28px; }
}

/* Compact mobile navigation leaves the current page usable. */
@media (max-width: 820px) {
  .mobile-menu { position: fixed; inset: auto var(--margin) auto auto; top: calc(var(--head-h) + 8px); width: min(280px, calc(100% - 32px)); max-height: calc(100dvh - var(--head-h) - 24px); overflow-y: auto; display: block; padding: 8px; border: 1px solid var(--rule); border-radius: 12px; background: #f3f7fa; box-shadow: 0 16px 40px rgb(24 43 61 / 16%); }
  .mobile-menu nav a { min-height: 48px; align-items: center; padding: 8px 12px; border-radius: 8px; font: 500 16px/24px var(--sans); animation: none; }
  .mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { background: var(--surface); color: var(--accent); }
  .mobile-contacts { padding: 12px; border-top: 1px solid var(--rule); }
}

/* Small technical details that sit behind the content. */
.nav > a { position: relative; }
.nav > a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--signal);
}
.hero-title { text-shadow: 0 4px 24px rgb(40 104 157 / 10%); }
.writing-overview {
  position: relative; overflow: hidden;
  background-color: rgb(133 178 208 / 25%);
  box-shadow: inset 0 0 0 1px #abc8da, 0 12px 32px rgb(40 104 157 / 7%);
}
.overview-head { position: relative; padding-bottom: 12px; border-bottom: 1px solid rgb(40 104 157 / 18%); }
.overview-head > span:first-child::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border: 2px solid var(--signal); border-radius: 50%; vertical-align: 0;
}
.overview-totals strong { font-variant-numeric: tabular-nums; }
.activity-track { background: rgb(255 255 255 / 40%); }
.activity-fill { box-shadow: 0 0 8px rgb(40 104 157 / 20%); }
.post-card { transition: transform 500ms var(--ease), box-shadow 300ms var(--ease), background-color 300ms var(--ease); }
.post-card:hover, .post-card:focus-within { background-color: rgb(255 255 255 / 50%); box-shadow: inset 0 0 0 1px #83a9c2, 0 8px 24px rgb(40 104 157 / 9%); }
.post-card { box-shadow: inset 0 0 0 1px #c5d5e0; }
.pc-ex { color: var(--soft); }
.prose { line-height: 1.85; }
@media (max-width: 600px) {
  .overview-head { gap: 8px; }
  .overview-head > span { font-size: 11px; }
  .pc-text, .pc-ex { font-size: 17px; line-height: 28px; }
}
.pc-date { letter-spacing: .04em; }
.pc-arrow { transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.pc-link:focus-visible { outline: 2px solid var(--signal); outline-offset: -4px; }
.about-story, .article-body { box-shadow: inset 0 0 0 1px var(--rule), 0 8px 24px rgb(40 104 157 / 5%); }
@media (hover: none) { .post-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .post-card, .pc-arrow { transition: none; } }
@media print { .writing-overview, .post-card, .article-body { box-shadow: none; background: #fff; } }

.pc-date { flex-wrap: wrap; }
.pc-tag--pin { color: var(--accent); }

/* Editorial refinement: quieter surfaces and a clearer reading hierarchy. */

/* Compact card metadata and matching footer identity. */
.pc-date { padding-right: 24px; }
.pc-date time { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pc-word-count, .pc-date > span { color: var(--muted); font-weight: 400; }
.foot-brand { background: linear-gradient(105deg,#203d59,#3976a1); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.foot-brand .accent { color: var(--accent); -webkit-text-fill-color: var(--accent); }
@media (max-width: 600px) { .foot-contact { max-width: 100%; } .foot-contact a { display: block; max-width: 100%; white-space: nowrap; overflow-x: auto; line-height: 44px; } }
@media print { .foot-brand { background: none; color: #000; -webkit-text-fill-color: #000; } }

/* Keep the date and word count secondary to article content. */
.pc-date { font-size: 12px; line-height: 16px; }

/* Date and metadata sit below the text; keep the arrow on the same line. */
.pc-arrow { top: auto; bottom: 24px; }
@media (max-width: 600px) { .pc-arrow { top: auto; bottom: 16px; } }

/* Keep the identity and contact on one line on small screens. */
@media (max-width: 600px) {
  .foot-top { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 8px; }
  .foot-identity { flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; }
  .foot-contact { flex: 1 1 auto; min-width: 0; text-align: right; font-size: 12px; }
}

@media (max-width: 600px) { .page-home .hero { padding-top: 24px; padding-bottom: 16px; } .page-home .hero-quote { margin-top: 16px; } .page-home .ticker { padding-block: 0; margin-bottom: 16px; } .page-home .writing-overview { padding: 12px; } }

/* Editorial refinement: quieter surfaces and a clearer reading hierarchy. */
.bg-grid { opacity: .25; animation: none; }
.bg-noise { opacity: .08; }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 48px 32px; }
.hero-title { font-size: 72px; line-height: 1; letter-spacing: -.02em; text-shadow: none; }
.pulse { animation: none; }
.hero-sub { margin-top: 16px; letter-spacing: 0; }
.hero-quote { margin-top: 24px; max-width: 560px; }
.hero-desc { font-size: 20px; line-height: 32px; letter-spacing: 0; }
.writing-overview { padding: 24px; background: var(--surface); box-shadow: none; border-radius: 8px; }
.overview-head { gap: 16px; }
.overview-head > span { text-align: left; }
.overview-head > span:last-child { text-align: right; }
.overview-totals > div { text-align: left; }
.overview-totals strong { font-size: 30px; line-height: 36px; }
.year-activity { margin-top: 24px; }
.activity-fill { box-shadow: none; }
.ticker { margin-bottom: 48px; }
.section-head { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.section-head h2 { font-size: 24px; line-height: 32px; }
.post-card, .post-card:hover, .post-card:focus-within { background: rgb(255 255 255 / 65%); box-shadow: inset 0 0 0 1px var(--rule); }
.post-card:hover { transform: none; }
.pc-link { padding: 24px; gap: 16px; }
.pc-text, .pc-ex { font-size: 18px; line-height: 32px; }
.pc-date { color: var(--muted); letter-spacing: 0; }
.pc-arrow { opacity: .75; }
.page-head { padding-top: 48px; }
.page-title { font-size: 48px; line-height: 1; }
.archive-year { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.archive-year:hover { background: var(--surface); }
.archive-year.is-active, .archive-year.is-active:hover { background: var(--accent); box-shadow: none; }
.year-list { padding: 0; background: transparent; }
.year-item + .year-item { border-top: 1px solid var(--rule); }
.year-item a { padding: 24px 16px; }
.article-body, .about-story { box-shadow: inset 0 0 0 1px var(--rule); }
.site-foot { margin-top: 48px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-intro { text-align: left; }
  .hero-copy { align-items: flex-start; }
  .hero-sub { justify-content: flex-start; }
  .hero-quote { margin-inline: 0; }
  .writing-overview { max-width: none; }
}
@media (max-width: 600px) {
  .page-home .hero { gap: 24px; padding-top: 32px; padding-bottom: 24px; }
  .hero-title { font-size: 48px; line-height: 1; }
  .hero-sub { margin-top: 12px; }
  .page-home .hero-quote { margin-top: 16px; }
  .hero-desc { font-size: 18px; line-height: 28px; }
  .page-home .writing-overview { padding: 16px; }
  .overview-head > span { font-size: 12px; }
  .overview-totals { margin-top: 12px; }
  .overview-totals strong { font-size: 24px; line-height: 32px; }
  .page-home .ticker { margin-bottom: 32px; }
  .ticker-track { gap: 8px 16px; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 20px; line-height: 28px; }
  .pc-link { padding: 16px; }
  .pc-text, .pc-ex { font-size: 16px; line-height: 28px; }
  .archive.wrap { width: calc(100% - var(--margin) * 2); }
  .year-list { padding: 0; }
  .year-label { padding-inline: 0; }
  .year-item a { padding: 16px 0; gap: 4px 8px; }
  .yi-title { font-size: 16px; line-height: 28px; }
  .page-title { font-size: 36px; line-height: 40px; }
  .site-foot { margin-top: 32px; }
}

/* Align overview headings with their corresponding totals. */
.overview-head, .overview-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.overview-head > span:last-child { text-align: left; }

/* Keep archive dates below each entry, matching the home cards. */
.year-item a { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.year-item .yi-main { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
.year-item .yi-date { grid-column: 1; grid-row: 2; display: inline-flex; flex-wrap: wrap; gap: 8px; font: 500 12px/16px var(--sans); letter-spacing: 0; color: var(--muted); }
.year-item .yi-arrow { grid-column: 2; grid-row: 2; color: var(--accent); }
@media (max-width: 600px) { .year-item a { gap: 12px 8px; } }

/* Match the header identity to the footer on every screen size. */
.brand-text { gap: 16px; }
.brand-text strong { font: 600 24px/32px var(--display); letter-spacing: 0; background: linear-gradient(105deg,#203d59,#3976a1); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.brand-text strong .accent, .foot-brand .accent { font-family: Geist, sans-serif; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.brand-text em { font: 500 12px/16px var(--sans); color: var(--muted); letter-spacing: .08em; font-style: normal; }
@media (max-width: 820px) { .brand-text em { display: inline; } }
@media (max-width: 600px) { .brand-text { gap: 8px; } .brand-text strong { font-size: 20px; line-height: 28px; } }
@media print { .brand-text strong { background: none; color: #000; -webkit-text-fill-color: #000; } }

/* Quiet, solid wordmark shared by the header and footer. */
.brand-text em, .foot-word { font: 500 12px/16px 'Noto Sans SC', sans-serif; font-style: normal; letter-spacing: .08em; color: var(--muted); }
@media print { .brand-text em, .foot-word { color: #000; } }

/* Use the same muted tone for article metadata on the home and archive pages. */
.pc-date, .pc-date > span, .year-item .yi-date { color: var(--muted); }
.pc-date, .year-item .yi-date { font-size: 14px; line-height: 20px; }
.year-item .yi-date { display: flex; padding-right: 0; }
@media (max-width: 600px) {
  .foot-top { flex-wrap: nowrap; gap: 4px; }
  .foot-contact { flex: 1 1 auto; min-width: 0; text-align: right; white-space: nowrap; }
}

.search-feedback { font: 400 14px/20px var(--sans); color: var(--muted); }
.search-feedback strong, .search-feedback a { color: var(--accent); }
.search-feedback a { display: inline-flex; align-items: center; min-height: 40px; }

/* Give Chinese and Latin text room without changing stored article content. */
.prose, .pc-title, .pc-text, .pc-ex, .yi-title, .yi-ex, .article-title, .about-story-copy { text-autospace: normal; }
@supports not (text-autospace: normal) {
  .prose, .pc-title, .pc-text, .pc-ex, .yi-title, .yi-ex, .article-title, .about-story-copy { letter-spacing: .02em; }
  .prose pre, .prose code { letter-spacing: normal; }
}
.pc-date, .year-item .yi-date { column-gap: 12px; }

/* Slow, independent movement adds life to the existing fine grid. */
.bg-grid { inset: -128px; animation: background-drift 20s linear infinite; }
.bg-noise { inset: -224px; opacity: .48; animation: background-points 26s linear infinite; }
@keyframes background-points {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-192px, 192px, 0); }
}
@media (prefers-reduced-motion: reduce) { .bg-grid, .bg-noise, .bg::after { animation: none; } }

/* Visible grid and translucent, lifted surfaces for the public site. */
.bg-grid { opacity: 1; }
.post-card, .post-card:hover, .post-card:focus-within {
  background: rgb(255 255 255 / 56%);
  box-shadow: inset 0 0 0 1px var(--rule), 0 8px 24px rgb(24 43 61 / 8%);
}
.post-card:hover, .post-card:focus-within {
  background: rgb(255 255 255 / 68%);
  box-shadow: inset 0 0 0 1px #83a9c2, 0 12px 32px rgb(24 43 61 / 12%);
}
.writing-overview {
  background: rgb(220 230 240 / 65%);
  box-shadow: inset 0 0 0 1px var(--rule), 0 8px 24px rgb(24 43 61 / 8%);
}
.article-body, .about-story, .search-form {
  background: rgb(255 255 255 / 70%);
  box-shadow: inset 0 0 0 1px var(--rule), 0 8px 24px rgb(24 43 61 / 8%);
}
@media print {
  .post-card, .writing-overview, .article-body, .about-story { background: #fff; box-shadow: none; }
}

/* A third, sparse signal layer moves independently over the grid. */
.bg::after {
  content: ''; position: absolute; inset: -288px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cg fill='none' stroke='%2328689d' stroke-opacity='.48'%3E%3Cpath d='M30 56h30v16M190 166h-28v-16'/%3E%3Ccircle cx='30' cy='56' r='3'/%3E%3Ccircle cx='190' cy='166' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: signal-flow 32s linear infinite, signal-breathe 6s cubic-bezier(.22,1,.36,1) infinite alternate;
}
@keyframes signal-flow { from { transform: translate3d(0,0,0); } to { transform: translate3d(256px,-256px,0); } }
@keyframes signal-breathe { from { opacity: .36; } to { opacity: .76; } }
@media (prefers-reduced-motion: reduce) { .bg::after { animation: none; opacity: .4; } }

/* 卡片的表面配色与阴影统一由文件末尾的 --card-* 决定，这里只保留位移，
   避免再出现一条写死 1px 描边的规则与新的「无边框」表面打架。 */
@media (hover: hover) {
  .post-card:hover { transform: translateY(-4px); }
  .pc-link:hover .pc-arrow { transform: translate(4px, -4px); }
}
@media (prefers-reduced-motion: reduce) { .post-card:hover { transform: none; } }
@media print { .post-card:hover, .post-card:focus-within { background: #fff; box-shadow: none; transform: none; } }

/* Let archive excerpts and search use the available width at every breakpoint. */
.page-archive .search-form { width: 100%; max-width: none; }
.yi-title--excerpt, .yi-ex, .recommendation-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* One quiet surface keeps the archive legible without separating every entry. */
.page-archive .year-list {
  background: rgb(255 255 255 / 45%);
  border-radius: 12px;
  box-shadow: none;
}
.page-archive .year-item a {
  padding: 16px 24px;
  border-radius: 0;
  transition: background-color 300ms var(--ease);
}
/* 与末尾统一卡片变量保持一致，避免容器 8px、首尾项 12px 的错位。 */
.page-archive .year-item:first-child a { border-radius: var(--card-radius) var(--card-radius) 0 0; }
.page-archive .year-item:last-child a { border-radius: 0 0 var(--card-radius) var(--card-radius); }
.page-archive .year-item:only-child a { border-radius: var(--card-radius); }
.page-archive .year-item a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) {
  .page-archive .year-item a:hover { background: rgb(227 238 245 / 50%); }
}
@media (max-width: 600px) { .page-archive .year-item a { padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { .page-archive .year-item a { transition: none; } }
@media print { .page-archive .year-list, .page-archive .year-item a:hover { background: #fff; box-shadow: none; } }

/* Archive: an editorial index, with one calm reading surface per year. */
.page-archive .page-head { padding-top: 48px; padding-bottom: 32px; }
.archive-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 40px; align-items: end; }
.page-archive .page-head .eyebrow { margin-bottom: 16px; }
.page-archive .page-sub { margin-top: 16px; font-size: 16px; line-height: 28px; }
.archive-control-label { display: block; color: var(--muted); font: 500 12px/20px var(--sans); letter-spacing: .04em; }
.page-archive .search-form { margin-top: 8px; padding: 4px; background: rgb(255 255 255 / 55%); box-shadow: inset 0 0 0 1px var(--rule); }
.page-archive .search-form button { min-height: 40px; padding-inline: 20px; font-size: 14px; }
.page-archive .search-feedback { margin-top: 8px; gap: 4px 16px; }
.page-archive .search-feedback a { min-height: 28px; }
.page-archive .archive-years { display: flex; align-items: center; gap: 12px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.archive-year-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-archive .archive-year { min-height: 36px; padding: 8px 12px; gap: 8px; background: rgb(255 255 255 / 30%); box-shadow: none; }
.page-archive .archive-year:hover { background: rgb(255 255 255 / 65%); }
.page-archive .archive-year.is-active, .page-archive .archive-year.is-active:hover { background: var(--accent); }
/* 年份标签在列表上方，整列限宽居中；无需绝对定位或留白计算 */
.page-archive .archive-intro,
.page-archive .archive-years,
.page-archive .year-block,
.page-archive .archive-search-results { max-width: 1040px; margin-inline: auto; }
.page-archive .year-block + .year-block { margin-top: 48px; }
.page-archive .year-label { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.page-archive .year-num { font-size: 24px; line-height: 32px; }
.page-archive .year-count { color: var(--muted); letter-spacing: .04em; }
.page-archive .year-list { background: rgb(255 255 255 / 45%); }
.page-archive .year-item a { padding: 20px 24px; gap: 8px 12px; }
.page-archive .yi-title { line-height: 28px; }
.page-archive .yi-ex { margin-top: 4px; }
.page-archive .yi-arrow { align-self: end; opacity: .78; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
@media (hover: hover) { .page-archive .year-item a:hover .yi-arrow { opacity: 1; transform: translate(2px, -2px); } }
@media (max-width: 760px) {
  .archive-intro { grid-template-columns: 1fr; gap: 24px; }
  .page-archive .archive-years { display: block; margin-top: 24px; padding-top: 16px; }
  .archive-year-links { margin-top: 8px; }
  .page-archive .year-num { font-size: 20px; line-height: 28px; }
  .page-archive .year-item a { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .page-archive .yi-arrow { transition: none; } .page-archive .year-item a:hover .yi-arrow { transform: none; } }

/* Borderless note surfaces retain the natural heights of the masonry feed. */
.page-home .post-card {
  height: auto;
}
.page-home .pc-link { padding: 24px; gap: 20px; border-radius: var(--card-radius); }
.page-home .pc-main { color: var(--ink); }
.page-home .pc-title { margin-bottom: 8px; font-size: 20px; line-height: 28px; }
.page-home .pc-text, .page-home .pc-ex { line-height: 1.8; }
.page-home .pc-date { gap: 8px 12px; font-size: 13px; line-height: 20px; }
.page-home .pc-arrow { right: 24px; bottom: 24px; opacity: .55; }
.page-home .pc-link:focus-visible { outline: 2px solid var(--signal); outline-offset: -4px; }
@media (hover: hover) {
  .page-home .post-card:hover {
    transform: translateY(-4px);
  }
}
@media (max-width: 600px) {
  .page-home .pc-link { padding: 20px; gap: 16px; }
  .page-home .pc-arrow { right: 20px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .page-home .post-card:hover { transform: none; } }
@media print { .page-home .post-card, .page-home .post-card:hover, .page-home .post-card:focus-within { background: #fff; box-shadow: none; transform: none; } }

/* Keep both footer bands compact while allowing longer content to expand. */
.site-foot > .footer-shell { min-height: 76px; padding-block: 12px; }
.foot-bottom { min-height: 72px; padding: 12px 24px max(12px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .site-foot > .footer-shell { min-height: 68px; padding-block: 12px; }
  .foot-bottom { min-height: 64px; padding-inline: 16px; }
}

/* 统一应用液态玻璃表面 */
.post-card,
.post-card:hover,
.post-card:focus-within,
.page-home .post-card,
.page-home .post-card:hover,
.page-home .post-card:focus-within,
.writing-overview,
.about-story,
.article-body,
.recommendation-list,
.page-archive .year-list,
.search-form,
.page-archive .search-form,
.page-archive .archive-year:not(.is-active),
.empty,
.mobile-menu {
  background: var(--card-bg) !important;
  border: var(--card-border) !important;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow) !important;
  -webkit-backdrop-filter: var(--card-backdrop);
  backdrop-filter: var(--card-backdrop);
  transition: transform 400ms var(--ease),
              box-shadow 300ms var(--ease),
              background-color 300ms var(--ease);
}

@media (hover: hover) {
  .post-card:hover,
  .page-home .post-card:hover,
  .page-archive .archive-year:not(.is-active):hover {
    background: var(--card-bg-hover) !important;
    border-color: var(--card-border-hover) !important;
    box-shadow: var(--card-shadow-hover) !important;
  }
}

.post-card:focus-within,
.page-home .post-card:focus-within,
.page-archive .archive-year:not(.is-active):focus-visible {
  background: var(--card-bg-hover) !important;
  border-color: var(--card-border-hover) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

/* 浮在正文上方的移动菜单需要更实的底色，避免两层文字叠在一起。 */
.mobile-menu { --card-bg: rgba(var(--card-tint), 0.97); }

@media (prefers-contrast: more) {
  :root, .mobile-menu {
    --card-bg: #f7f9fc;
    --card-bg-hover: #fff;
    --card-border: 1px solid var(--rule);
    --card-border-hover: var(--rule);
    --card-backdrop: none;
  }
}

@media print {
  .post-card, .page-home .post-card, .writing-overview,
  .about-story, .article-body, .recommendation-list, .page-archive .year-list,
  .search-form, .page-archive .archive-year:not(.is-active), .empty {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
