/* ====== 字体 ====== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ====== 主题变量 ====== */
:root {
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --bg-soft: #f3f0e8;
  --text: #2b2926;
  --text-muted: #6e6a63;
  --text-faint: #9a948a;
  --border: #e7e2d6;
  --border-strong: #d6cfbf;
  --accent: #8a5a2b;
  --accent-soft: #c9a574;
  --shadow: 0 1px 2px rgba(43, 41, 38, .04), 0 8px 24px rgba(43, 41, 38, .06);
  --maxw: 720px;
  --maxw-wide: 1080px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  --bg: #18191b;
  --bg-elev: #212225;
  --bg-soft: #26282b;
  --text: #d8d4cc;
  --text-muted: #9b968d;
  --text-faint: #6e6a63;
  --border: #2f3236;
  --border-strong: #3d4045;
  --accent: #c9a574;
  --accent-soft: #8a5a2b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}

/* ====== 基础 ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }

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

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

/* ====== 阅读进度条 ====== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 100; transition: width .1s linear;
}

/* ====== 站点头 ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw-wide); margin: 0 auto;
  padding: 18px 32px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  color: var(--text); letter-spacing: .02em;
}
.brand .dot { color: var(--accent); }
.brand-logo { width: 24px; height: 24px; border-radius: 4px; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-muted); font-family: var(--sans); font-size: .86rem;
  padding: 6px 10px; border-radius: 6px; font-weight: 500; white-space: nowrap;
}
.nav-links a.active, .nav-links a:hover { color: var(--text); background: var(--bg-soft); }

/* 导航搜索框 */
.nav-search { display: flex; align-items: center; margin-left: 4px; }
.nav-search input {
  font-family: var(--sans); font-size: .84rem; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--bg-soft);
  color: var(--text); width: 128px; outline: none;
  transition: width .2s, border-color .2s, background .2s;
}
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search input:focus { border-color: var(--accent); background: var(--bg-elev); width: 156px; }

.theme-toggle {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s; margin-left: 8px;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-btn { display: none; }

/* ====== 容器 ====== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container.wide { max-width: var(--maxw-wide); }

/* ====== 首页 hero ====== */
.hero {
  padding: 96px 0 64px; text-align: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.25; letter-spacing: -.01em; margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.hero p {
  color: var(--text-muted); font-size: 1.1rem; max-width: 540px; margin: 0 auto;
  font-family: var(--sans); line-height: 1.7;
}
.hero .meta-line {
  margin-top: 28px; font-family: var(--sans); font-size: .85rem; color: var(--text-faint);
  letter-spacing: .04em;
}

.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 64px 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.section-title h2 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em;
}
.section-title .count { font-family: var(--sans); font-size: .82rem; color: var(--text-faint); }

/* ====== 文章列表 ====== */
.post-list { list-style: none; }
.post-item {
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.post-item:last-child { border-bottom: none; }
.post-item a { display: block; color: inherit; }
.post-item a:hover .post-title { color: var(--accent); }
.post-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  line-height: 1.4; margin-bottom: 8px; transition: color .2s;
}
.post-excerpt {
  color: var(--text-muted); font-size: .98rem; line-height: 1.7;
  margin-bottom: 12px; font-family: var(--sans);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  font-family: var(--sans); font-size: .82rem; color: var(--text-faint);
  display: flex; gap: 14px; align-items: center;
}
.post-meta .tag {
  background: var(--bg-soft); padding: 2px 10px; border-radius: 4px;
  color: var(--text-muted); font-size: .76rem;
}

a.tag, a.cat { text-decoration: none; transition: all .2s; }
a.tag:hover, a.cat:hover { background: var(--border-strong); color: var(--text); }

/* ====== 文章工具栏 ====== */
.article-actions { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.article-actions button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 6px;
  background: transparent; color: var(--text-faint); cursor: pointer;
  transition: all .15s;
}
.article-actions button:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ====== Toast 提示 ====== */
.toast {
  position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: .88rem; padding: 10px 28px;
  background: var(--text); color: var(--bg); border-radius: 8px;
  z-index: 999; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; }

/* ====== 返回顶部 ====== */
.back-to-top {
  position: fixed; bottom: 80px; z-index: 90;
  right: calc((100vw - var(--maxw)) / 2 - 48px);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-muted); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s, border-color .2s, color .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ====== 文章正文 ====== */
.article-header { padding: 80px 0 36px; text-align: center; }
.article-header .kicker {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.article-header h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.3; letter-spacing: -.01em; margin-bottom: 22px;
}
.article-header .meta {
  font-family: var(--sans); font-size: .88rem; color: var(--text-muted);
  display: flex; gap: 16px; justify-content: center; align-items: center;
}
.article-header .meta .sep { color: var(--border-strong); }

.article-body { padding: 8px 0 64px; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 700;
  margin: 2.2em 0 .9em; line-height: 1.4; scroll-margin-top: 90px;
}
.article-body h3 {
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600;
  margin: 1.8em 0 .7em; scroll-margin-top: 90px;
}
.article-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-soft); }
.article-body .link-card { text-decoration: none; }
.article-body blockquote {
  margin: 1.8em 0; padding: .4em 1.4em; border-left: 3px solid var(--accent);
  color: var(--text-muted); font-style: italic; font-size: 1.04em;
}
.article-body blockquote p { margin: .6em 0; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.article-body li { margin: .4em 0; }
.article-body code {
  font-family: "JetBrains Mono", "Consolas", monospace; font-size: .88em;
  background: var(--bg-soft); padding: .15em .45em; border-radius: 4px; color: var(--accent);
}
.article-body pre {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 18px 20px; overflow-x: auto; margin: 1.6em 0; font-size: .9rem; line-height: 1.6;
}
.article-body pre code { background: none; padding: 0; color: var(--text); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.article-body figure { margin: 1.8em 0; }
.article-body figcaption {
  text-align: center; font-family: var(--sans); font-size: .82rem;
  color: var(--text-faint); margin-top: 10px;
}

.article-foot {
  border-top: 1px solid var(--border); padding: 32px 0; margin-top: 24px;
  font-family: var(--sans); font-size: .88rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.article-foot .tag { background: var(--bg-soft); padding: 4px 12px; border-radius: 4px; color: var(--text-muted); }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0 80px;
  border-top: 1px solid var(--border);
}
.post-nav .prev, .post-nav .next {
  position: relative; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 10px;
  transition: all .2s;
}
.post-nav .prev:hover, .post-nav .next:hover {
  border-color: var(--accent); background: var(--bg-soft);
}
.post-nav .next { text-align: right; }
.post-nav .label {
  font-family: var(--sans); font-size: .78rem; color: var(--text-faint);
  margin-bottom: 6px; display: block; position: relative; z-index: 1;
}
.post-nav .title {
  font-family: var(--serif); font-weight: 600; display: block; position: relative; z-index: 1;
}
.post-nav .title a { color: var(--text); }
.post-nav .title a:hover { color: var(--accent); }
.post-nav .title a::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
}

/* 目录 */
.toc-wrap { position: relative; }
.toc {
  position: fixed; top: 120px; left: calc(50% + 400px); width: 220px;
  font-family: var(--sans); font-size: .82rem; max-height: 60vh; overflow-y: auto;
}
.toc h4 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.toc ul { list-style: none; border-left: 1px solid var(--border); padding-left: 0; }
.toc li a { display: block; color: var(--text-muted); padding: 5px 0 5px 14px; border-left: 2px solid transparent; margin-left: -1px; line-height: 1.5; }
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.toc li.h3 a { padding-left: 26px; font-size: .78rem; }

/* ====== 关于页 ====== */
.page-header { padding: 88px 0 40px; }
.page-header h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 14px; letter-spacing: -.01em;
}
.page-header .lead { color: var(--text-muted); font-family: var(--sans); font-size: 1.05rem; }

.about-body p { margin-bottom: 1.4em; }
.about-body h2 { font-family: var(--serif); font-size: 1.4rem; margin: 2em 0 .8em; font-weight: 700; }

.timeline { list-style: none; margin: 32px 0; }
.timeline li {
  display: grid; grid-template-columns: 100px 1fr; gap: 24px;
  padding: 16px 0; border-bottom: 1px dashed var(--border);
}
.timeline .year { font-family: var(--sans); font-weight: 600; color: var(--accent); font-size: .95rem; }
.timeline .desc { color: var(--text); }
.timeline .desc small { display: block; color: var(--text-muted); font-family: var(--sans); font-size: .85rem; margin-top: 2px; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 28px 0; }
.contact-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; transition: all .2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-card .label { font-family: var(--sans); font-size: .78rem; color: var(--text-faint); margin-bottom: 6px; }
.contact-card .value { font-family: var(--serif); font-weight: 500; }

/* ====== 友链页 ====== */
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 32px 0 80px;
}
.link-card {
  display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: 12px;
  transition: all .25s; color: inherit; text-decoration: none;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.link-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}
.link-info { min-width: 0; }
.link-info .name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.link-info .desc { font-family: var(--sans); font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.link-info .url { font-family: var(--sans); font-size: .76rem; color: var(--text-faint); margin-top: 6px; }

.links-note {
  background: var(--bg-soft); border-radius: 10px; padding: 20px 24px; margin: 24px 0;
  font-family: var(--sans); font-size: .92rem; color: var(--text-muted); line-height: 1.7;
}
.links-note strong { color: var(--text); }

/* ====== 分页 ====== */
.pagination {
  text-align: center; padding: 40px 0 80px; font-family: var(--sans);
}
.pagination ol {
  display: inline-flex; gap: 8px; list-style: none; flex-wrap: wrap;
  justify-content: center; padding: 0;
}
.pagination li {
  display: inline-block;
}
.pagination a,
.page-btn {
  font-family: var(--sans); font-size: .88rem; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-elev); color: var(--text-muted);
  cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block;
}
.pagination a:hover,
.page-btn:hover { border-color: var(--accent); color: var(--text); }
.pagination .current a,
.page-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pagination .prev a, .pagination .next a,
.page-prev, .page-next { font-size: .82rem; }
.page-num { min-width: 40px; text-align: center; }
.pagination span { padding: 8px 4px; color: var(--text-faint); font-size: .88rem; }

/* ====== 归档页 ====== */
.archive-year { margin: 40px 0 56px; }
.archive-year-title {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px; letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 14px;
}
.archive-year-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border); margin-left: 6px;
}
.archive-list { list-style: none; }
.archive-list li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: baseline;
  padding: 16px 4px; border-bottom: 1px dashed var(--border);
}
.archive-list .date {
  font-family: var(--sans); font-size: .82rem; color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.archive-list .title {
  font-family: var(--serif); font-size: 1.08rem; color: var(--text);
  transition: color .2s;
}
.archive-list .title:hover { color: var(--accent); }
.archive-list .cat {
  font-family: var(--sans); font-size: .74rem; color: var(--text-muted);
  background: var(--bg-soft); padding: 2px 10px; border-radius: 4px;
}

/* ====== 标签/分类/搜索 组件 ====== */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.pill {
  font-family: var(--sans); font-size: .85rem; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--bg-elev);
  color: var(--text-muted); cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1;
}
.pill:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.pill.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pill-count { font-size: .72rem; opacity: .7; font-variant-numeric: tabular-nums; }
.pill.active .pill-count { opacity: .9; }

.result-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.result-head h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.result-head .count { font-family: var(--sans); font-size: .85rem; color: var(--text-faint); }

/* 搜索页 */
.search-box { max-width: 640px; margin: 12px 0 8px; }
.search-box input {
  width: 100%; font-family: var(--sans); font-size: 1.1rem; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev);
  color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg-soft); }
.search-tips {
  font-family: var(--sans); font-size: .88rem; color: var(--text-muted); line-height: 1.8;
  background: var(--bg-soft); border-radius: 10px; padding: 20px 24px; margin: 24px 0;
}
.search-tips code {
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px; color: var(--accent); font-size: .85em;
}
.search-empty { text-align: center; padding: 64px 20px; color: var(--text-muted); font-family: var(--sans); }
.search-empty .big { font-size: 2.6rem; margin-bottom: 14px; opacity: .35; color: var(--text-faint); }
.search-empty code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; color: var(--accent); }

mark { background: var(--accent-soft); color: var(--text); padding: 0 3px; border-radius: 2px; }

/* 归档：暂未发布 */
.archive-list .title.draft { color: var(--text-faint); }
.archive-list .title.draft em {
  font-style: normal; font-size: .72rem; font-family: var(--sans);
  margin-left: 8px; padding: 1px 8px; border: 1px dashed var(--border-strong);
  border-radius: 4px; color: var(--text-faint);
}

/* ====== 页脚 ====== */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 0;
  font-family: var(--sans); font-size: .85rem; color: var(--text-faint);
}
.footer-inner {
  max-width: var(--maxw-wide); margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.footer-inner a { color: var(--text-muted); }
.footer-inner > div:last-child { line-height: 2.2; }
.footer-inner > div:last-child a { margin: 0 2px; }
.footer-inner a:hover { color: var(--accent); }

/* ====== 响应式 ====== */
@media (max-width: 1280px) { .toc { display: none; } }

@media (max-width: 768px) {
  body { font-size: 17px; }
  .nav { padding: 14px 20px; }
  .container, .footer-inner { padding: 0 20px; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 12px 20px; gap: 4px; transform: translateY(-130%); transition: transform .3s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-search { width: 100%; margin: 6px 0; }
  .nav-search input { width: 100%; }
  .nav-search input:focus { width: 100%; }
  .menu-btn {
    display: inline-flex; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--text);
  }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; }
  .menu-btn span::before, .menu-btn span::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: .25s;
  }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  .hero { padding: 56px 0 40px; }
  .post-nav { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 72px 1fr; gap: 16px; }
  .article-header { padding: 48px 0 28px; }
  .comment-children { padding-left: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .back-to-top { bottom: 24px; right: 20px; width: 36px; height: 36px; }
}

/* ====== 评论 ====== */
.comments-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin: 40px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.cancel-comment-reply {
  font-family: var(--sans); font-size: .82rem; margin-bottom: 12px;
}
.cancel-comment-reply a { color: var(--text-faint); }
.cancel-comment-reply a:hover { color: var(--accent); }

.comment-list, .comment-children {
  list-style: none; padding-left: 0;
}
.comment-list .comment-body {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.comment-children {
  margin-top: 10px; padding-left: 40px; border-left: 2px solid var(--border);
}
.comment-children .comment-body {
  border-bottom: none; padding: 14px 0 14px 16px;
}
.comment-author {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.comment-author .avatar {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border);
}
.comment-author .fn {
  font-family: var(--sans); font-weight: 600; font-size: .92rem; font-style: normal;
}
.comment-author .fn a { color: var(--text); }
.comment-meta {
  font-family: var(--sans); font-size: .78rem; color: var(--text-faint); margin-bottom: 8px;
}
.comment-meta a { color: var(--text-faint); }
.comment-body > p {
  font-size: .95rem; line-height: 1.75; margin-bottom: 8px;
}
.comment-reply { font-family: var(--sans); font-size: .8rem; }
.comment-reply a { color: var(--text-faint); }
.comment-reply a:hover { color: var(--accent); }

/* ====== 评论表单 ====== */
.comment-form-wrap { margin-top: 48px; }
.logged-in-info {
  font-family: var(--sans); font-size: .88rem; color: var(--text-muted); margin-bottom: 16px;
}
.logged-in-info a { color: var(--accent); }

.form-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
  margin-bottom: 12px;
}
.form-group { flex: 1; }
.form-input, .form-textarea {
  width: 100%; font-family: var(--sans); font-size: .92rem; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elev);
  color: var(--text); outline: none; transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-textarea { resize: vertical; min-height: 120px; margin-bottom: 12px; }

.form-submit { text-align: right; }
.submit-btn {
  font-family: var(--sans); font-size: .92rem; padding: 10px 28px;
  background: var(--accent); color: var(--bg); border: none; border-radius: 8px;
  cursor: pointer; transition: all .2s; font-weight: 500;
}
.submit-btn:hover { opacity: .88; transform: translateY(-1px); }

.comments-closed {
  margin-top: 48px; padding: 32px; text-align: center;
  font-family: var(--sans); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 10px;
}

/* ====== 404 页 ====== */
.error-404 {
  text-align: center; padding: 120px 32px;
}
.error-404 h1 {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.error-404 p {
  color: var(--text-muted); font-family: var(--sans); font-size: 1.05rem; margin-bottom: 32px;
}
.error-404 a {
  font-family: var(--sans); font-size: .92rem; padding: 10px 28px;
  border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted);
  display: inline-block; transition: all .2s;
}
.error-404 a:hover { border-color: var(--accent); color: var(--text); }

/* ====== Typecho 微调 ====== */
.article-body .post-meta a.category-link {
  display: inline; background: var(--bg-soft); padding: 2px 10px; border-radius: 4px;
  color: var(--text-muted); font-size: .76rem; font-family: var(--sans);
}
