/* 小航博客 - 样式表
   设计原则：语义化、响应式、无外部依赖、首屏无阻塞 JS */

:root {
  --brand: #1a6b5a;
  --brand-dark: #12513f;
  --brand-light: #e8f3f0;
  --ink: #1b2321;
  --ink-2: #47534f;
  --ink-3: #78837f;
  --line: #e2e8e6;
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --radius: 10px;
  --radius-lg: 14px;
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---------------- 头部 ---------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 66px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--brand);
  color: #fff; display: grid; place-items: center;
  font-size: 19px; font-weight: 700; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; color: var(--ink); }
.brand-text em { font-style: normal; font-size: 12px; color: var(--ink-3); }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 7px 13px; border-radius: 8px; color: var(--ink-2);
  font-size: 15px; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.site-nav a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }

/* ---------------- 面包屑 ---------------- */
.breadcrumbs { padding: 16px 0 0; font-size: 13.5px; }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-3);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* ---------------- 首页 Hero ---------------- */
.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero-eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px;
  background: var(--brand-light); color: var(--brand-dark);
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .3px;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2; letter-spacing: -.5px;
}
.hero-lead {
  margin: 0 0 26px; font-size: 17px; color: var(--ink-2);
  max-width: 760px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: all .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-light); }

.hero-stats {
  display: flex; gap: 40px; margin: 0; flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: 13px; color: var(--ink-3); order: 2; margin-top: 2px; }
.hero-stats dd {
  margin: 0; font-size: 30px; font-weight: 700; color: var(--brand);
  line-height: 1.1; letter-spacing: -.5px;
}
.hero-stats dd small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }

/* ---------------- 区块 ---------------- */
.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 {
  margin: 0; font-size: 23px; letter-spacing: -.3px;
  padding-left: 13px; border-left: 4px solid var(--brand); line-height: 1.3;
}
.section-head p { margin: 0; color: var(--ink-3); font-size: 14.5px; flex: 1 1 260px; }
.section-more { font-size: 14.5px; white-space: nowrap; }

/* ---------------- 专题卡片 ---------------- */
.topic-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.topic-card {
  display: block; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg);
  text-decoration: none; transition: all .18s;
}
.topic-card:hover {
  text-decoration: none; border-color: var(--brand);
  box-shadow: 0 6px 22px rgba(26,107,90,.10); transform: translateY(-2px);
}
.topic-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.topic-card h3 { margin: 0 0 6px; font-size: 17.5px; color: var(--ink); }
.topic-tagline { margin: 0 0 10px; font-size: 13.5px; color: var(--brand); font-weight: 600; }
.topic-desc { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.topic-count { font-size: 13.5px; color: var(--ink-3); }

/* ---------------- 文章卡片 ---------------- */
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg); display: flex; flex-direction: column;
  transition: all .18s;
}
.post-card:hover { border-color: #cfdcd8; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.card-cover { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .card-cover img { transform: scale(1.03); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-excerpt {
  margin: 0 0 16px; font-size: 14px; color: var(--ink-2); line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}
.dot { color: var(--line); }
.card-cats { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }

/* ---------------- 紧凑列表 ---------------- */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.row-item:last-child { border-bottom: 0; }
.row-item time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.row-title { flex: 1; font-size: 15.5px; color: var(--ink); }
.row-title:hover { color: var(--brand); text-decoration: none; }
.row-rt { font-size: 12.5px; color: var(--ink-3); flex: none; }

/* ---------------- 标签 ---------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 999px; font-size: 13.5px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.chip-sm { padding: 3px 11px; font-size: 12.5px; }
.chip-cat { background: var(--brand-light); border-color: transparent; color: var(--brand-dark); }
.chip-cat:hover { background: var(--brand); color: #fff; }

.section-browse { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
.browse-col h2 { margin: 0 0 15px; font-size: 17px; }

/* ---------------- 关于条 ---------------- */
.about-strip {
  display: grid; gap: 28px; grid-template-columns: 1fr auto;
  align-items: center; padding: 40px 0;
}
.about-strip h2 { margin: 0 0 12px; font-size: 21px; }
.about-strip p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.8; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- 页面标题 ---------------- */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.page-head h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.4px; }
.page-head .lead { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 780px; line-height: 1.8; }
.muted { color: var(--ink-3); font-size: 14px; }
.topic-head .hero-eyebrow { margin-bottom: 12px; }

/* ---------------- 支柱文章 ---------------- */
.pillar {
  padding: 26px 28px; border: 1px solid var(--brand); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--brand-light), #fff); margin-bottom: 40px;
}
.pillar-eyebrow {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .6px;
}
.pillar h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.45; }
.pillar h2 a { color: var(--ink); }
.pillar h2 a:hover { color: var(--brand); text-decoration: none; }
.pillar p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.8; }

/* ---------------- 归档 ---------------- */
.archive-year { margin-bottom: 38px; }
.archive-year h2 {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 10px; font-size: 19px; color: var(--brand);
}
.archive-year h2 span { font-size: 13px; font-weight: 400; color: var(--ink-3); }

/* ---------------- 分类/标签总览 ---------------- */
.term-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.term-card {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.term-card:hover { border-color: var(--brand); text-decoration: none; }
.term-card img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.term-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.term-body strong { color: var(--ink); font-size: 16px; }
.term-body em { font-style: normal; font-size: 12.5px; color: var(--brand); }
.term-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ---------------- 文章主体 ---------------- */
.post-layout {
  display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr) 268px;
  padding: 34px 0 56px; align-items: start;
}
.post-head { margin-bottom: 26px; }
.post h1 {
  margin: 0 0 16px; font-size: clamp(25px, 3.6vw, 34px);
  line-height: 1.35; letter-spacing: -.4px;
}
.post-meta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px;
}
.post-author { font-weight: 600; color: var(--brand); }
.post-terms { display: flex; gap: 7px; flex-wrap: wrap; }
.post-cover { margin: 0 0 30px; }
.post-cover img { width: 100%; border-radius: var(--radius-lg); display: block; }

.post-body { font-size: 16.5px; line-height: 1.9; color: #22302c; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 {
  margin: 44px 0 16px; padding-left: 13px; border-left: 4px solid var(--brand);
  font-size: 23px; line-height: 1.4; scroll-margin-top: 80px;
}
.post-body h3 { margin: 32px 0 13px; font-size: 19px; scroll-margin-top: 80px; }
.post-body h4 { margin: 26px 0 11px; font-size: 17px; scroll-margin-top: 80px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 26px; }
.post-body li { margin-bottom: 7px; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { border-bottom: 1px solid var(--brand-light); }
.post-body a:hover { border-bottom-color: var(--brand); text-decoration: none; }
.post-body img { border-radius: var(--radius); margin: 8px 0; }
.post-body blockquote {
  margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--brand-light);
  background: var(--bg-soft); color: var(--ink-2); border-radius: 0 8px 8px 0;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code {
  font-family: var(--mono); font-size: .88em;
  background: #eef3f1; color: #b03a2e; padding: 2px 6px; border-radius: 5px;
  word-break: break-word;
}
.post-body pre {
  margin: 22px 0; padding: 18px 20px; background: #1e2a27; color: #e6efec;
  border-radius: var(--radius); overflow-x: auto; line-height: 1.65;
  font-size: 14px; -webkit-overflow-scrolling: touch;
}
.post-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.post-body hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 480px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.post-body th { background: var(--bg-soft); font-weight: 600; }
.post-body tr:nth-child(even) td { background: #fcfdfd; }

.post-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-copyright {
  margin: 0; padding: 14px 18px; background: var(--bg-soft);
  border-radius: var(--radius); font-size: 13.5px; color: var(--ink-3);
}

/* ---------------- 侧栏 ---------------- */
.post-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 26px; }
.toc, .related {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; background: var(--bg);
}
.toc h2, .related h2 {
  margin: 0 0 13px; font-size: 14px; color: var(--ink-3);
  font-weight: 600; letter-spacing: .4px;
}
.toc ol { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.toc li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.55; }
.toc-l3 { padding-left: 15px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--brand); text-decoration: none; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li {
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.related-list li:last-child { border-bottom: 0; }
.related-list a { font-size: 14px; color: var(--ink); line-height: 1.55; }
.related-list a:hover { color: var(--brand); text-decoration: none; }
.related-list time { font-size: 12px; color: var(--ink-3); }

/* ---------------- 上下篇 ---------------- */
.post-nav {
  display: grid; gap: 16px; grid-template-columns: 1fr 1fr;
  padding-bottom: 56px;
}
.pn {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.pn:hover { border-color: var(--brand); text-decoration: none; }
.pn span { font-size: 12.5px; color: var(--ink-3); }
.pn strong { font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.pn:hover strong { color: var(--brand); }
.pn-next { text-align: right; }

/* ---------------- 单页 ---------------- */
.page-body { max-width: 820px; padding-bottom: 56px; font-size: 16.5px; line-height: 1.9; }
.page-body h2 { margin: 34px 0 14px; font-size: 22px; padding-left: 13px; border-left: 4px solid var(--brand); }
.page-body ul { padding-left: 24px; }

/* ---------------- 搜索 ---------------- */
.search-box { max-width: 760px; padding-bottom: 56px; }
#q {
  width: 100%; padding: 14px 18px; font-size: 16px; font-family: var(--font);
  border: 1px solid var(--line); border-radius: var(--radius); outline: none;
}
#q:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
#search-status { margin: 14px 0; }
#search-results .row-item { flex-direction: column; align-items: flex-start; gap: 4px; }
#search-results .row-title { font-size: 16.5px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  margin-top: 40px; padding: 46px 0 26px;
}
.footer-inner {
  display: grid; gap: 34px;
  grid-template-columns: 2fr 1fr 1fr;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col strong { font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.footer-col p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.7; max-width: 380px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; gap: 34px; }
  .post-aside { position: static; }
  .about-strip { grid-template-columns: 1fr; }
  .section-browse { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 28px; }
  .hero-stats { gap: 26px; }
  .hero-stats dd { font-size: 25px; }
  .section { padding: 34px 0; }
  .header-inner { min-height: 58px; gap: 10px; }
  .brand-text em { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 6px 9px; font-size: 14px; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .row-item { flex-wrap: wrap; gap: 6px 12px; }
  .row-title { flex: 1 1 100%; order: -1; }
  .card-grid, .topic-grid { grid-template-columns: 1fr; }
}

/* ---------------- 深色模式 ---------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ecea;
    --ink-2: #b3bfbb;
    --ink-3: #8b9793;
    --line: #2c3735;
    --bg: #151b1a;
    --bg-soft: #1b2321;
    --brand-light: #1c3a33;
    --brand: #4fb69c;
    --brand-dark: #6fc9b2;
  }
  .site-header { background: rgba(21,27,26,.92); }
  .post-body { color: #d5dedb; }
  .post-body code { background: #24302d; color: #ff9d8a; }
  .post-body pre { background: #0f1413; }
  .post-body tr:nth-child(even) td { background: #1b2321; }
  .pillar { background: linear-gradient(180deg, #1c3a33, var(--bg)); }
  .brand-mark { color: #0f1413; }
  .btn-primary { color: #0f1413; }
}

@media print {
  .site-header, .site-nav, .post-aside, .post-nav, .site-footer, .breadcrumbs { display: none; }
  body { font-size: 12pt; }
}

/* ---------------- 评论 ---------------- */
.comments {
  margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line);
}
.comments > h2 { margin: 0 0 22px; font-size: 21px; }
.comment-count { font-size: 14px; font-weight: 400; color: var(--ink-3); }

.comment-list { list-style: none; margin: 0 0 34px; padding: 0; }
.comment-item {
  padding: 16px 0; border-bottom: 1px dashed var(--line);
}
.comment-item:last-child { border-bottom: 0; }
.comment-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 7px;
}
.comment-author { font-size: 15px; font-weight: 600; color: var(--ink); }
a.comment-author { color: var(--brand); }
.comment-time { font-size: 12.5px; color: var(--ink-3); }
.comment-content { font-size: 15px; line-height: 1.8; color: var(--ink-2); word-break: break-word; }
.comment-empty { padding: 18px 0; color: var(--ink-3); font-size: 14.5px; }

.comment-form {
  padding: 24px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.comment-form h3 { margin: 0 0 18px; font-size: 17px; }
.comment-fields {
  display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px;
}
.comment-form p { margin: 0 0 14px; }
.comment-form label {
  display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600;
}
.comment-form label em { color: #c0392b; font-style: normal; }
.comment-form label small { font-weight: 400; color: var(--ink-3); margin-left: 5px; }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 10px 13px; font-size: 15px; font-family: var(--font);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); outline: none; resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }

/* 蜜罐字段：对用户不可见，但保留在 DOM 中供机器人踩 */
.comment-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.comment-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.comment-actions .btn { cursor: pointer; font-family: var(--font); }
.comment-actions .btn:disabled { opacity: .6; cursor: not-allowed; }
.comment-status { font-size: 13.5px; }
.comment-status.is-ok { color: var(--brand); }
.comment-status.is-error { color: #c0392b; }
.comment-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 640px) {
  .comment-fields { grid-template-columns: 1fr; }
  .comment-form { padding: 18px; }
}

/* ---------------- 关于页补充区块 ---------------- */
.about-extra { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
.about-extra h2 {
  margin: 34px 0 14px; font-size: 20px;
  padding-left: 13px; border-left: 4px solid var(--brand);
}
.about-extra h2:first-child { margin-top: 0; }
.about-extra p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.85; }

.about-topics {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.about-topics li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
}
.about-topics a { font-weight: 600; color: var(--ink); }
.about-topics a:hover { color: var(--brand); text-decoration: none; }
.about-topics span { font-size: 13px; color: var(--ink-3); flex: 1; }
.about-topics em { font-style: normal; font-size: 12.5px; color: var(--brand); white-space: nowrap; }

.about-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.about-stats li {
  padding: 16px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.about-stats strong { display: block; font-size: 25px; color: var(--brand); line-height: 1.2; }
.about-stats span { font-size: 13px; color: var(--ink-3); }

@media (max-width: 640px) {
  .about-topics { grid-template-columns: 1fr; }
}

/* 深层标题（原文中出现的 h5/h6） */
.post-body h5 { margin: 22px 0 10px; font-size: 16px; color: var(--ink); }
.post-body h6 { margin: 20px 0 9px; font-size: 15px; color: var(--ink-2); }

/* ---------------- 分类/标签总览：卡片内文章预览 ---------------- */
.term-card { display: block; padding: 0; overflow: hidden; }
.term-head {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.term-head:hover { text-decoration: none; background: var(--bg-soft); }
.term-head img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.term-preview { list-style: none; margin: 0; padding: 10px 16px 14px; }
.term-preview li { padding: 5px 0; font-size: 13.5px; line-height: 1.6; }
.term-preview a { color: var(--ink-2); }
.term-preview a:hover { color: var(--brand); text-decoration: none; }
.term-preview li::before { content: "·"; color: var(--ink-3); margin-right: 7px; }
.term-more::before { content: "" !important; margin: 0 !important; }
.term-more a { color: var(--brand) !important; font-size: 12.5px; }
