/* ===========================================================
   liuxiao.net · 刘晓的博客
   静态站点样式 · 简洁 / 技术 / 可读性优先
   =========================================================== */

:root {
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --bg-sink: #f5f3ee;
  --text: #1c1d1b;
  --text-soft: #54584f;
  --text-mute: #8b8f87;
  --line: #e2dfd6;
  --line-soft: #eeebe4;
  --accent: #16624f;
  --accent-soft: #e9f2ee;
  --code-bg: #f4f2ec;
  --code-text: #2b2e29;
  --shadow: 0 1px 2px rgba(28, 29, 27, .045);
  --radius: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --fig-soft: #f7f5ef;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #121417;
  --bg-elev: #171a1e;
  --bg-sink: #1b1f23;
  --text: #e6e3dc;
  --text-soft: #a9aea7;
  --text-mute: #767c75;
  --line: #2a2f35;
  --line-soft: #23272c;
  --accent: #6dbfa7;
  --accent-soft: #182a25;
  --code-bg: #1a1e23;
  --code-text: #d6d3cb;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --fig-soft: #0e1113;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; }

::selection { background: var(--accent-soft); color: var(--text); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 12.5px;
  color: var(--text-mute);
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.nav a {
  color: var(--text-soft);
  padding: 3px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.theme-toggle {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-mute); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- hero ---------- */

.hero {
  padding: 34px 0 32px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.42;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-size: 15.5px;
  color: var(--text-soft);
  margin: 0;
  max-width: 46em;
}
/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 56px;
  padding-top: 44px;
  padding-bottom: 64px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}
.section-head .more { font-size: 13px; color: var(--text-mute); }
.section-head .more:hover { color: var(--accent); }

/* ---------- post list ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }

.post-item {
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line-soft);
}
.post-item:last-child { border-bottom: none; }

.post-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); text-decoration: none; }

.post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.post-meta .dot { opacity: .5; }
.post-meta .tags a { color: var(--text-mute); }
.post-meta .tags a:hover { color: var(--accent); text-decoration: none; }

.post-excerpt {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- sidebar ---------- */

.sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 12px;
}
.card p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.8;
}
.card p + p { margin-top: 10px; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li {
  font-size: 13.5px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.mini-list li:last-child { border-bottom: none; padding-bottom: 0; }
.mini-list a { color: var(--text-soft); flex: 1; min-width: 0; }
.mini-list a:hover { color: var(--accent); text-decoration: none; }
.mini-list .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  width: 14px;
  flex: none;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12.5px;
  color: var(--text-soft);
  background: var(--bg-sink);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 2px 10px;
  transition: all .15s;
}
.tag-cloud a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.tag-cloud .cnt { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; margin-left: 3px; }

/* ---------- article ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(150px, 200px);
  justify-content: space-between;
  gap: 44px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}
.article-shell { max-width: 740px; }

.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs span { margin: 0 7px; opacity: .6; }

.article-head { margin-bottom: 30px; }
.article-head h1 {
  font-size: 27px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.article-meta .dot { opacity: .5; }
.article-meta .tags a { color: var(--text-mute); border-bottom: 1px dotted var(--line); }
.article-meta .tags a:hover { color: var(--accent); text-decoration: none; }

.prose {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--text);
  overflow-wrap: break-word;
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 1.05em 0; }
.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 2.2em 0 .9em;
  line-height: 1.5;
  letter-spacing: -.005em;
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 2em 0 .7em;
  line-height: 1.6;
}
.prose h4 { font-size: 16px; font-weight: 600; margin: 1.6em 0 .6em; }
.prose h2 code, .prose h3 code { font-size: .92em; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 1.05em 0; padding-left: 1.5em; }
.prose li { margin: .4em 0; }
.prose li > p { margin: .4em 0; }
.prose a { border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-bottom-color: var(--accent); text-decoration: none; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  font-size: 15.5px;
}
.prose blockquote p { margin: .5em 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }

.prose code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1.5px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 15px 18px;
  overflow-x: auto;
  margin: 1.4em 0;
  line-height: 1.72;
  font-size: 13px;
  -webkit-overflow-scrolling: touch;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--code-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.prose pre.listing {
  background: var(--code-bg);
  font-size: 12.8px;
  line-height: 1.85;
}
.prose pre.listing.single { padding: 11px 16px; margin: 1.2em 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.prose th { background: var(--bg-sink); font-weight: 600; }

/* 保留原始排版中的对齐（sysctl / 端口列表等） */
.prose p.aligned {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
}

/* 图片重绘后的图示 */
figure.fig {
  margin: 2em 0;
  padding: 18px 18px 12px;
  background: var(--fig-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: center;
}
figure.fig svg { width: 100%; height: auto; display: block; }
figure.fig figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* svg 内部统一取色 */
.fig-box { fill: var(--bg-elev); stroke: var(--line); stroke-width: 1; }
.fig-box-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.fig-t { fill: var(--text); font-family: var(--font-sans); font-size: 13px; }
.fig-t-sm { fill: var(--text-soft); font-family: var(--font-sans); font-size: 11.5px; }
.fig-t-mono { fill: var(--text-soft); font-family: var(--font-mono); font-size: 11px; }
.fig-t-accent { fill: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.fig-arrow { stroke: var(--text-mute); stroke-width: 1.2; fill: none; }
.fig-dash { stroke: var(--text-mute); stroke-width: 1; stroke-dasharray: 4 4; fill: none; opacity: .75; }

/* ---------- article footer ---------- */

.article-foot {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-sign {
  font-size: 14px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  margin-bottom: 22px;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.author-box .name { font-size: 14.5px; font-weight: 600; margin: 0 0 4px; }
.author-box .bio { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.75; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 0;
}
.post-nav a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg-elev);
  color: var(--text);
  transition: border-color .15s;
}
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav .dir {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  display: block;
  margin-bottom: 4px;
}
.post-nav .ttl { font-size: 14px; line-height: 1.6; }
.post-nav .next { text-align: right; }

/* ---------- toc ---------- */

.toc {
  position: sticky;
  top: 88px;
  font-size: 12.5px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.toc .toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  color: var(--text-soft);
  display: block;
  padding: 3px 0;
  line-height: 1.6;
  border-left: 2px solid transparent;
  margin-left: -18px;
  padding-left: 16px;
}
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.toc .lv3 { padding-left: 28px; font-size: 12px; }

/* ---------- comments ---------- */

.comments { margin-top: 46px; }
.comments h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.comments h2 .n { color: var(--text-mute); font-family: var(--font-mono); font-weight: 400; }
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.comment:last-of-type { border-bottom: none; }
.comment .cm-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comment .cm-name { font-size: 13.5px; font-weight: 600; }
.comment .cm-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); }
.comment .cm-body { font-size: 14.5px; color: var(--text-soft); line-height: 1.8; margin-top: 4px; }
.comment .cm-body p { margin: .3em 0; }
.comment .cm-reply {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 6px;
}

/* ---------- archive / tags ---------- */

.page-head { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 26px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; }
.page-head p { margin: 0; color: var(--text-soft); font-size: 15px; }
.page-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); margin-top: 10px; }

.year-group { padding: 0; }
.year-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
}
.year-label .y {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
}
.year-label .line { flex: 1; height: 1px; background: var(--line-soft); }
.year-label .c { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); }

.arc-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.arc-item:last-child { border-bottom: none; }
.arc-item .d {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  flex: none;
  width: 46px;
}
.arc-item .t { font-size: 15px; flex: 1; min-width: 0; }
.arc-item .t a { color: var(--text); }
.arc-item .t a:hover { color: var(--accent); text-decoration: none; }
.arc-item .v {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  flex: none;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 26px 0 56px;
}
.tag-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg-elev);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  transition: border-color .15s;
}
.tag-cell:hover { border-color: var(--accent); text-decoration: none; }
.tag-cell .tn { font-size: 14.5px; color: var(--text); }
.tag-cell .tc { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  padding: 32px 0 56px;
  align-items: start;
}
.about-body { max-width: 700px; }
.about-body .prose { font-size: 15.5px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 24px 20px;
  border-left: 1px solid var(--line);
  font-size: 14px;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .co { color: var(--text); font-weight: 600; font-size: 14.5px; }
.timeline .tl-role {
  display: inline-block;
  margin-left: 9px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-soft);
  vertical-align: 1px;
  white-space: nowrap;
}
.timeline .tl-desc {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.block-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 46px 0 8px;
}
.block-note {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0 0 22px;
}

/* ---------- search ---------- */

.search-box {
  margin: 30px 0 6px;
  position: relative;
}
.search-box input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-mute); }
#search-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  padding: 12px 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sink);
  padding: 44px 0 26px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-name { font-size: 15px; }
.footer-brand p {
  color: var(--text-soft);
  margin: 10px 0 0;
  max-width: 30em;
  line-height: 1.85;
  font-size: 13px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: var(--text-soft); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-bottom .left { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .icp { font-family: var(--font-mono); }
.footer-bottom .sep { opacity: .4; }

/* ---------- misc ---------- */

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-elev);
  padding: 10px 16px;
  border: 1px solid var(--line);
  z-index: 99;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 780px; margin: 0 auto; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .sidebar .card { flex: 1 1 240px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .header-inner { height: 56px; gap: 10px; }
  .brand-name { font-size: 15.5px; }
  .nav { gap: 13px; font-size: 13px; }
  .nav a { white-space: nowrap; }
  .theme-toggle { width: 26px; height: 26px; margin-left: 0; }
  .hero { padding: 26px 0 26px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero h1 { font-size: 24px; }
    .avatar { width: 64px; height: 64px; font-size: 24px; }
  .layout { padding-top: 30px; padding-bottom: 48px; }
  .post-title { font-size: 17.5px; }
  .article-head h1 { font-size: 22px; }
  .prose { font-size: 16px; line-height: 1.9; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: flex-start; }
  .about-grid { padding: 26px 0 48px; }
}

@media print {
  .site-header, .site-footer, .toc, .post-nav, .comments, .sidebar { display: none; }
  body { background: #fff; }
  .article-layout { display: block; }
}

/* 关于页名片 */
.profile-card { text-align: center; }
.profile-card .pname { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 4px; letter-spacing: .01em; }
.profile-card .prole { font-size: 12.5px; color: var(--text-soft); margin: 0 0 7px; }
.profile-card .pmeta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); margin: 0; }
