/* ============================================================
   Aurora Theme — 现代优雅的 Hexo 主题样式
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --c-primary: #0ea5e9;
  --c-primary-soft: #38bdf8;
  --c-accent: #06b6d4;
  --c-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #2dd4bf 100%);

  --bg: #f7f8fc;
  --bg-elev: #ffffff;
  --bg-soft: #eef0f7;
  --text: #1f2430;
  --text-soft: #5b6478;
  --text-mute: #9aa3b5;
  --border: #e7e9f0;
  --shadow: 0 8px 30px rgba(31, 36, 48, 0.08);
  --shadow-lg: 0 16px 50px rgba(31, 36, 48, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --maxw: 1100px;
  --nav-glass: rgba(255, 255, 255, 0.72);
}

[data-scheme="dark"] {
  --bg: #0e1118;
  --bg-elev: #161b26;
  --bg-soft: #1d2330;
  --text: #e6e9f0;
  --text-soft: #aab2c5;
  --text-mute: #6b7488;
  --border: #262d3c;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.5);
  --nav-glass: rgba(22, 27, 38, 0.72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}

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

img { max-width: 100%; }

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

/* ---------- 顶部进度条 ---------- */
.page-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
  background: transparent;
}
.page-progress-bar {
  height: 100%; width: 0; background: var(--c-gradient);
  box-shadow: 0 0 10px var(--c-primary-soft);
  transition: width .1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  background: var(--nav-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: transform .35s ease, background .4s ease;
}
.site-header.hide { transform: translateY(-100%); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-primary-soft); }
.brand-title { font-size: 18px; letter-spacing: .3px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; color: var(--text-soft);
  font-size: 14px; font-weight: 500; transition: all .25s;
}
.nav-item i { font-size: 13px; }
.nav-item:hover { color: var(--c-primary); background: var(--bg-soft); }
.nav-item.active { color: #fff; background: var(--c-gradient); box-shadow: 0 4px 14px rgba(14,165,233,.4); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.action-btn {
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all .25s;
}
.action-btn:hover { color: var(--c-primary); transform: translateY(-2px); }
.menu-toggle { display: none; }
.nav-overlay { display: none; }
.mobile-nav { display: none; }

.scheme-light-icon { display: none; }
[data-scheme="dark"] .scheme-dark-icon { display: none; }
[data-scheme="dark"] .scheme-light-icon { display: inline; }

/* ---------- Hero ---------- */
.main-wrapper { min-height: 70vh; padding-top: var(--header-h); }
.hero {
  position: relative; height: 70vh; min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-size: cover; background-position: center; text-align: center;
  margin-bottom: 50px;
}
.hero.has-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35));
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 20px; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
  animation: fadeUp .9s ease both;
}
.hero-subtitle {
  margin-top: 16px; font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 500;
  min-height: 1.6em; text-shadow: 0 2px 14px rgba(0,0,0,.3);
  animation: fadeUp .9s .2s ease both;
}
.hero-subtitle .cursor { animation: blink 1s step-end infinite; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 22px; z-index: 2; animation: bounce 1.8s infinite; opacity: .85;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px);} to {opacity:1; transform:none;} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }

/* ---------- 文章卡片列表 ---------- */
.post-list { display: grid; gap: 26px; }
.post-card {
  display: flex; background: var(--bg-elev); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  opacity: 0; transform: translateY(20px); animation: cardIn .6s ease forwards;
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-cover {
  flex: 0 0 38%; min-height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.post-card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg-elev));
  opacity: .15;
}
.post-card-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; }
.post-card.compact { display: block; }
.post-card.compact .post-card-body { padding: 20px 24px; }
.post-card-cats { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.post-card-cats a {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--c-primary);
}
.post-card-title { font-size: 22px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.post-card-title a { color: var(--text); background-image: var(--c-gradient); background-size: 0 2px; }
.post-card-title a:hover { color: var(--c-primary); }
.post-card-excerpt { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.post-card-meta {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--text-mute); font-size: 13px;
}
.post-card-meta i { margin-right: 4px; }

/* ---------- 分页 ---------- */
.paginator { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 50px 0; }
.pg-btn {
  padding: 10px 20px; border-radius: 999px; background: var(--bg-elev);
  border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); transition: all .25s;
}
.pg-btn:not(.disabled):hover { color: #fff; background: var(--c-gradient); transform: translateY(-2px); }
.pg-btn.disabled { opacity: .4; cursor: not-allowed; }
.pg-info { color: var(--text-mute); font-size: 14px; }

/* 数字页码 */
.pg-numbers { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pg-numbers .page-number,
.pg-numbers .extend {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-soft); font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: var(--shadow); transition: all .2s;
}
.pg-numbers a.page-number:hover {
  color: #fff; background: var(--c-gradient); transform: translateY(-2px); border-color: transparent;
}
.pg-numbers .page-number.current {
  color: #fff; background: var(--c-gradient); border-color: transparent;
  box-shadow: 0 4px 14px rgba(14,165,233,.4);
}
.pg-gap { color: var(--text-mute); padding: 0 4px; user-select: none; }
/* 隐藏 helper 自带的空 上一页/下一页 占位（已用自定义按钮替代） */
.pg-numbers .extend.prev,
.pg-numbers .extend.next { display: none; }

/* 跳页输入框 */
.pg-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.pg-jump-input {
  width: 56px; height: 38px; padding: 0 8px; text-align: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text); font-size: 14px; font-weight: 600; outline: none; transition: border-color .2s;
}
.pg-jump-input:focus { border-color: var(--c-primary); }
.pg-jump-input::-webkit-outer-spin-button,
.pg-jump-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pg-jump-total { color: var(--text-mute); font-size: 13px; }
.pg-jump-go {
  height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: none; background: var(--c-gradient); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); transition: transform .2s;
}
.pg-jump-go:hover { transform: translateY(-2px); }
@media (max-width: 600px) {
  .pg-edge { padding: 8px 14px; font-size: 13px; }
  .pg-jump { width: 100%; justify-content: center; margin: 6px 0 0; }
}

/* ---------- 文章详情 ---------- */
.post-page { margin-bottom: 60px; }
.post-header {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 36px;
  background-size: cover; background-position: center; position: relative;
  box-shadow: var(--shadow-lg);
}
.post-header-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.25));
  padding: 70px 40px 40px; color: #fff;
}
.post-cats { display: flex; gap: 8px; margin-bottom: 14px; }
.post-cats a { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); }
.post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.3; }
.post-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; opacity: .9; }

.post-layout { display: grid; grid-template-columns: 1fr 240px; gap: 36px; align-items: start; }
.post-main { min-width: 0; }
.post-content {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 44px; box-shadow: var(--shadow);
}

/* ---------- Markdown 正文 ---------- */
.markdown-body { font-size: 16px; color: var(--text); word-wrap: break-word; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  margin: 1.6em 0 .7em; font-weight: 700; line-height: 1.35; scroll-margin-top: 80px;
}
.markdown-body h1 { font-size: 1.8em; }
.markdown-body h2 { font-size: 1.5em; padding-bottom: .3em; border-bottom: 2px solid var(--border); }
.markdown-body h2::before { content: '#'; color: var(--c-primary); margin-right: 10px; font-weight: 800; }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body p { margin: 1em 0; }
.markdown-body ul, .markdown-body ol { padding-left: 1.6em; margin: 1em 0; }
.markdown-body li { margin: .4em 0; }
.markdown-body blockquote {
  border-left: 4px solid var(--c-primary); background: var(--bg-soft);
  padding: 12px 20px; margin: 1.2em 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}
.markdown-body a { font-weight: 500; border-bottom: 1px dashed var(--c-primary-soft); }
.markdown-body code {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: .88em;
  background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; color: var(--c-accent);
}
.markdown-body pre {
  position: relative; background: #1a1f2b; color: #e6e9f0;
  padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.4em 0;
  font-size: 14px; line-height: 1.6;
}
.markdown-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 10px 14px; }
.markdown-body th { background: var(--bg-soft); font-weight: 700; }
.markdown-body img { border-radius: var(--radius-sm); margin: 1em 0; box-shadow: var(--shadow); }
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.code-copy-btn {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px;
  background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 6px;
  font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.markdown-body pre:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover { background: rgba(255,255,255,.25); }

/* ---------- 标签 / 上下篇 ---------- */
.post-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip {
  padding: 6px 14px; border-radius: 999px; background: var(--bg-soft);
  font-size: 13px; font-weight: 600; color: var(--c-primary); transition: all .25s;
}
.tag-chip:hover { color: #fff; background: var(--c-gradient); }
.post-nav { margin-top: 36px; display: flex; justify-content: space-between; gap: 16px; }
.post-nav-item {
  flex: 1; max-width: 48%; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow); transition: all .3s;
}
.post-nav-item.next { text-align: right; }
.post-nav-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pn-label { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 6px; }
.pn-title { font-weight: 700; color: var(--text); }

/* ---------- TOC ---------- */
.post-sidebar { position: sticky; top: 84px; }
.toc-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto;
}
.toc-title { font-weight: 700; margin-bottom: 12px; color: var(--text); }
.toc-card .toc { list-style: none; padding: 0; font-size: 13.5px; }
.toc-card .toc .toc-child { padding-left: 14px; }
.toc-card .toc-link { display: block; padding: 5px 8px; border-radius: 6px; color: var(--text-soft); border-left: 2px solid transparent; }
.toc-card .toc-link:hover, .toc-card .toc-link.active { color: var(--c-primary); background: var(--bg-soft); border-left-color: var(--c-primary); }

/* ---------- 归档 / 分类 / 标签页 ---------- */
.page-heading { font-size: 2rem; font-weight: 800; margin: 20px 0 36px; display: flex; align-items: center; gap: 12px; }
.page-heading i { color: var(--c-primary); }
.archive-head-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.archive-actions { display: flex; gap: 10px; }
.archive-toggle-all {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-soft); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s ease;
}
.archive-toggle-all:hover { color: var(--c-primary); border-color: var(--c-primary); }

.archive-cats { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.archive-cat-block {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.archive-cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 22px; cursor: pointer; list-style: none; user-select: none;
  transition: background .2s ease;
}
.archive-cat-head::-webkit-details-marker { display: none; }
.archive-cat-head:hover { background: var(--c-primary-soft); }
.archive-cat-left { display: inline-flex; align-items: center; gap: 10px; }
.archive-caret { font-size: .8rem; color: var(--text-mute); transition: transform .25s ease; }
.archive-cat-block[open] .archive-caret { transform: rotate(90deg); color: var(--c-primary); }
.archive-cat-head .fa-folder { color: var(--c-primary); }
.archive-cat-name { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.archive-cat-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--c-gradient); color: #fff; font-size: 12px; font-weight: 700;
}
.archive-cat-link { font-size: 13px; font-weight: 600; color: var(--text-mute); white-space: nowrap; transition: color .2s; }
.archive-cat-link:hover { color: var(--c-primary); }
.archive-cat-list { display: flex; flex-direction: column; padding: 4px 22px 18px; border-top: 1px dashed var(--border); }
.archive-item { display: flex; gap: 16px; padding: 8px 0; align-items: baseline; }
.archive-date { color: var(--text-mute); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 92px; }
.archive-title { color: var(--text); font-weight: 500; transition: color .2s; }
.archive-item:hover .archive-title { color: var(--c-primary); }
.archive-empty { text-align: center; color: var(--text-mute); padding: 40px 0; }

.taxonomy-page { min-height: 50vh; }
.taxonomy-cloud { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); }
.tag-cloud-top {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 10px 18px; line-height: 1.6;
}
.tag-cloud-item {
  display: inline-flex; align-items: baseline; gap: 4px;
  color: var(--text-soft); font-weight: 600;
  transition: all .22s ease; white-space: nowrap;
}
.tag-cloud-item .tc-count {
  font-size: .62em; font-weight: 700; color: var(--c-primary);
  opacity: .7; vertical-align: super;
}
.tag-cloud-item:hover { color: var(--c-primary); transform: translateY(-2px); }
.tag-cloud-item.lv1 { font-size: 14px; opacity: .78; }
.tag-cloud-item.lv2 { font-size: 18px; opacity: .85; }
.tag-cloud-item.lv3 { font-size: 23px; }
.tag-cloud-item.lv4 { font-size: 29px; color: var(--c-primary); }
.tag-cloud-item.lv5 {
  font-size: 36px; font-weight: 800;
  background: var(--c-gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.tag-cloud-item.lv4 .tc-count, .tag-cloud-item.lv5 .tc-count { opacity: .85; }

/* ---------- 分类卡片树 ---------- */
.cat-board {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow);
}
.cat-list, .cat-list ul { list-style: none; margin: 0; padding: 0; }

/* 顶级分类：卡片块 */
.cat-board > .cat-list {
  display: flex; flex-direction: column; gap: 16px;
}
.cat-board > .cat-list > .cat-list-item {
  padding: 14px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color .22s;
}
.cat-board > .cat-list > .cat-list-item:hover { border-color: var(--c-primary); }
.cat-list-item { position: relative; }

/* 分类链接：胶囊卡片 */
.cat-list-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: all .22s; box-shadow: var(--shadow);
}
.cat-list-link::before {
  content: '\f07b'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 13px; color: var(--c-primary); transition: color .22s;
}
.cat-list-link:hover {
  color: #fff; background: var(--c-gradient);
  border-color: transparent; transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14,165,233,.32);
}
.cat-list-link:hover::before { color: #fff; }

/* 数量徽章 */
.cat-list-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; margin-left: 8px; padding: 0 7px;
  border-radius: 999px; background: var(--c-gradient); color: #fff;
  font-size: 12px; font-weight: 700; vertical-align: middle;
  box-shadow: 0 2px 6px rgba(14,165,233,.3);
}

/* 子分类：缩进 + 连接线，整体弱化 */
.cat-list-child {
  margin: 10px 0 4px 14px !important;
  padding-left: 18px !important;
  border-left: 2px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.cat-list-child .cat-list-item { margin-bottom: 0; display: block; }
.cat-list-child .cat-list-link {
  display: inline-flex; align-items: center;
  padding: 7px 12px; font-size: 13.5px; font-weight: 500;
  color: var(--text-soft); background: transparent;
  box-shadow: none; border-color: var(--border);
}
.cat-list-child .cat-list-link::before { content: '\f15b'; font-size: 11px; opacity: .8; }
.cat-list-child .cat-list-link:hover { color: #fff; background: var(--c-gradient); }
.cat-list-child .cat-list-count {
  min-width: 18px; height: 17px; font-size: 11px;
  background: var(--border); color: var(--text-soft); box-shadow: none;
}
.cat-list-child .cat-list-link:hover + .cat-list-count,
.cat-list-child .cat-list-count { margin-left: 6px; }

/* ---------- 单页 / about ---------- */
.single-page { min-height: 50vh; margin-bottom: 60px; }
.page-card, .about-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 44px; box-shadow: var(--shadow);
}
.about-card { text-align: center; }
.about-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--c-primary-soft); box-shadow: var(--shadow); }
.about-name { font-size: 1.8rem; font-weight: 800; margin-top: 16px; }
.about-bio { color: var(--text-soft); margin-top: 6px; }
.about-social { display: flex; justify-content: center; gap: 16px; margin: 20px 0; font-size: 22px; }
.about-social a { color: var(--text-soft); transition: all .25s; }
.about-social a:hover { color: var(--c-primary); transform: translateY(-3px); }
.about-body { text-align: left; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 36px 20px; margin-top: 60px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 18px; font-size: 20px; margin-bottom: 16px; }
.footer-social a { color: var(--text-soft); transition: all .25s; }
.footer-social a:hover { color: var(--c-primary); transform: translateY(-3px); }
.footer-text p { color: var(--text-soft); font-size: 14px; }
.footer-meta { color: var(--text-mute) !important; font-size: 13px !important; margin-top: 6px; }

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px;
  border: none; border-radius: 50%; background: var(--c-gradient); color: #fff;
  font-size: 16px; cursor: pointer; box-shadow: 0 6px 20px rgba(14,165,233,.5);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s; z-index: 800;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- 搜索 ---------- */
.search-modal {
  position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.search-modal.show { display: flex; }
.search-box { width: 92%; max-width: 620px; background: var(--bg-elev); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; animation: fadeUp .3s ease; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.search-input-wrap i { color: var(--text-mute); }
#searchInput { flex: 1; border: none; background: none; outline: none; font-size: 16px; color: var(--text); }
.search-close { border: none; background: none; color: var(--text-mute); cursor: pointer; font-size: 16px; }
.search-result { max-height: 50vh; overflow-y: auto; }
.search-result-item { display: block; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.search-result-item:hover { background: var(--bg-soft); }
.sr-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sr-title mark { background: var(--c-primary-soft); color: #fff; padding: 0 2px; border-radius: 3px; }
.sr-snippet { font-size: 13px; color: var(--text-soft); }
.search-empty { padding: 30px; text-align: center; color: var(--text-mute); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 8rem; font-weight: 800; background: var(--c-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-text { color: var(--text-soft); font-size: 18px; margin-top: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .post-card { flex-direction: column; }
  .post-card-cover { flex: none; width: 100%; min-height: 180px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .mobile-nav {
    display: flex;
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: 240px;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 20px;
    background: var(--bg-elev); border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s ease;
    z-index: 1200; overflow-y: auto;
  }
  .mobile-nav.open { transform: none; }
  .nav-overlay {
    display: block;
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 1150;
    background: rgba(0,0,0,.4); opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .brand-title { display: none; }
  .post-content, .page-card, .about-card { padding: 26px 20px; }
  .post-header-overlay { padding: 50px 24px 28px; }
  .post-nav { flex-direction: column; }
  .post-nav-item { max-width: 100%; }
}
