/* ============================================
   现代化博客设计系统 - 专业版
   简洁 · 优雅 · 艺术气息
   ============================================ */

/* 设计令牌 (Design Tokens) */
:root {
  /* 颜色系统 - 亮色主题 */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent: #8b5cf6;
  --color-accent-hover: #7c3aed;

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --border-strong: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* 代码高亮 - 亮色 */
  --code-bg: #f8fafc;
  --code-border: #e2e8f0;
  --code-text: #1e293b;
  --code-comment: #64748b;
  --code-keyword: #dc2626;
  --code-string: #16a34a;
  --code-function: #2563eb;
  --code-number: #ea580c;
  --code-operator: #0891b2;

  /* 间距系统 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* 字体 - 使用系统原生字体 */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Georgia", "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-title: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 过渡 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗色主题 */
.dark-theme {
  --color-primary: #60a5fa;
  --color-primary-hover: #3b82f6;
  --color-accent: #a78bfa;
  --color-accent-hover: #8b5cf6;

  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-elevated: #1e293b;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;

  --border-subtle: #334155;
  --border-default: #475569;
  --border-strong: #64748b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);

  /* 代码高亮 - 暗色 */
  --code-bg: #1e293b;
  --code-border: #334155;
  --code-text: #e2e8f0;
  --code-comment: #94a3b8;
  --code-keyword: #f87171;
  --code-string: #4ade80;
  --code-function: #60a5fa;
  --code-number: #fb923c;
  --code-operator: #22d3ee;
}

/* Pygments 代码高亮覆盖 */
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs { color: var(--code-comment) !important; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt { color: var(--code-keyword) !important; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx { color: var(--code-string) !important; }
.highlight .n, .highlight .na, .highlight .nb, .highlight .nc, .highlight .no, .highlight .nd, .highlight .ni, .highlight .ne, .highlight .nf, .highlight .nl, .highlight .nn, .highlight .nx, .highlight .py, .highlight .nt, .highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi { color: var(--code-function) !important; }
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .mo { color: var(--code-number) !important; }
.highlight .o, .highlight .ow { color: var(--code-operator) !important; }

/* 基础样式 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 排版系统 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: var(--space-md);
}

h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; color: var(--text-secondary); }

p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

/* 布局容器 */
.wrapper {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all var(--transition-base);
}

/* 首页文章列表 - 重新设计 */
.homepage .article-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.homepage .article-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.homepage .article-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.homepage .article-item:hover::before {
  opacity: 1;
}

/* 文章元信息 */
.homepage .article-meta {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.homepage .post-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* 文章标题 - 更大更醒目 */
.homepage .article-title {
  font-size: 1.25rem;
  margin-top: 0;
  font-weight: 700;
  margin-bottom: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.homepage .article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  background: linear-gradient(to right, var(--color-primary), var(--color-primary)) no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size 0.3s ease, color 0.3s ease;
  padding-bottom: 2px;
  display: inline-block;
}

.homepage .article-title a:hover {
  color: var(--color-primary);
  background-size: 100% 2px;
}

/* 文章描述 */
.homepage .article-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}





/* 分页导航 - 重新设计 */
.pagination-nav {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-item {
  list-style: none;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination .page-link:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pagination .page-item.current .page-link {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .icon {
  width: 0.875em;
  height: 0.875em;
}
/* 文章页面 */
/* 文章页布局 */
.post-page article {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  max-width: 900px;
  margin: 0 auto;
}

.post-page h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.post-page .post-date {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* 目录 (TOC) 侧边栏 */
.post-sidebar {
  position: sticky;
  top: var(--space-xl);
  max-height: calc(100vh - 2 * var(--space-xl));
  overflow-y: auto;
}

.post-sidebar::-webkit-scrollbar { width: 4px; }
.post-sidebar::-webkit-scrollbar-track { background: transparent; }
.post-sidebar::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

.post-sidebar #toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  font-size: 0.9375rem;
}

.post-sidebar #toc i {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: block;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-sidebar #toc ul, .post-sidebar #toc ol {
  padding-left: var(--space-lg);
  margin: 0;
  list-style: none;
}

.post-sidebar #toc li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.post-sidebar #toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: block;
  padding: var(--space-xs) 0;
  border-left: 2px solid transparent;
  padding-left: var(--space-md);
  margin-left: calc(-1 * var(--space-md));
}

.post-sidebar #toc a:hover {
  color: var(--color-primary);
  border-left-color: var(--border-default);
}

.post-sidebar #toc a.active {
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
  background: var(--bg-secondary);
}

.post-sidebar #toc ul ul, .post-sidebar #toc ol ol {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
}

/* 代码块 */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--code-border);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-xl) 0;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* 代码块增强 */
.code-block {
  position: relative;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--code-border);
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--code-border);
}

.code-lang {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.code-actions {
  display: flex;
  gap: var(--space-sm);
}

.code-copy, .code-collapse {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-copy:hover, .code-collapse:hover {
  background: var(--bg-secondary);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.code-copy.copied {
  color: #10b981;
  border-color: #10b981;
}

.code-copy .icon, .code-collapse .icon {
  width: 1em;
  height: 1em;
}

.code-block pre {
  max-height: 600px;
  transition: max-height var(--transition-slow);
  margin: 0;
  border: none;
  border-radius: 0;
}

.code-block pre.collapsed {
  max-height: 3.5em;
  overflow: hidden;
}

.code-collapse.collapsed .icon {
  transform: rotate(180deg);
}

.code-block pre code {
  display: block;
  padding: var(--space-lg);
}

/* 引用块 */
blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote p { margin: 0; }

/* 表格 */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-xl) 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th, td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: none; }
tr:hover { background: var(--bg-secondary); }

/* 列表 */
ul, ol {
  padding-left: var(--space-xl);
  margin: var(--space-lg) 0;
  color: var(--text-secondary);
}

li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* 图片 */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
}

/* 侧边栏 */
.homepage .col-lg-3 section {
  background: var(--bg-elevated);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border-subtle);
}

.homepage h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 导航栏 */
.header {
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
}
}

.title.h4 {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-size: 1.75rem;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

/* 主题切换按钮 */
.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--border-default);
  color: var(--text-primary);
}

/* 页脚 */
.footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.copyright-text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.theme-info {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

#toTop a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: all var(--transition-fast);
  display: inline-block;
  margin: 0 var(--space-xs);
}

#toTop a:hover {
  background: var(--bg-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* SVG 图标 */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
  transition: fill var(--transition-fast);
}

.nav-link .icon {
  width: 1.25em;
  height: 1.25em;
}

.theme-toggle .icon {
  width: 1.375em;
  height: 1.375em;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* 响应式设计 */
@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  .wrapper { padding: var(--space-lg); }
  .post-page article { padding: var(--space-xl); }
  .homepage .article-item { padding: var(--space-lg); }
  .homepage .article-title { font-size: 1.25rem; }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 100%;
    max-width: 720px;
  }
  .post-sidebar { font-size: 0.875rem; }
}

@media (hover: none) and (pointer: coarse) {
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  .homepage .article-item:hover {
    transform: none;
  }
}

/* 打印样式 */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }
  .navbar, .footer, .btn, #toTop, .theme-toggle, .code-actions {
    display: none;
  }
  article {
    box-shadow: none;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* 搜索框样式 */
#search-form input {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}

#search-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

#search-form input::placeholder {
  color: var(--text-tertiary);
}

.dark-theme #search-form input:focus {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

/* 增强文章卡片的可点击性 */
.homepage .article-item {
  cursor: pointer;
}

/* 整个卡片 hover 时，标题也变色 */
.homepage .article-item:hover .article-title a {
  color: var(--color-primary);
}

/* 让整个卡片可点击的视觉提示 */
.homepage .article-item:hover {
  cursor: pointer;
}

/* 首页文章卡片字体优化 - 使用系统原生字体 */
.homepage .article-title {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.homepage .article-title a {
  font-weight: 600;
}

.homepage .article-description {
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

.homepage .post-date {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
}

/* 文章页标题统一使用系统原生字体 */
.post-page h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.post-page h2,
.post-page h3 {
  font-family: var(--font-sans);
  font-weight: 600;
}
  font-family: var(--font-title);
  font-weight: 600;
}

/* 正文使用无衬线字体 */
.post-page article p,
.post-page article li {
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

/* 日期图标优化 */
.homepage .post-date .icon {
  width: 0.875em;
  height: 0.875em;
  flex-shrink: 0;
}

/* 暗色模式下的标题颜色 - 移除渐变，使用CSS变量 */

/* 移动端标题优化 */
@media (max-width: 767px) {
  .site-title {
    font-size: 1.5rem;
  }
}

/* 网站标题优化 - 简洁优雅 */
.site-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
  position: relative;
  font-weight: 700;
}

/* 简洁的下划线效果 */
.site-title a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.site-title a:hover {
  color: var(--color-primary);
}

.site-title a:hover::after {
  width: 100%;
}

/* 移动端标题优化 */
@media (max-width: 767px) {
  .site-title {
    font-size: 1.5rem;
  }
}

/* 导航栏对齐优化 */
.header .row {
  align-items: center;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-form {
  margin-bottom: 0;
}

#search-form input {
  margin-bottom: 0;
}

/* 文章页元信息优化 - 修复对齐问题 */
.post-page .post-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-page .post-meta .post-date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.post-page .post-meta .post-date .icon {
  width: 0.875em;
  height: 0.875em;
  vertical-align: middle;
  margin-top: -0.1em;
}

.post-page .post-meta .meta-separator {
  color: var(--text-tertiary);
  opacity: 0.5;
}

.post-page .post-meta .edit-link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-page .post-meta .edit-link:hover {
  color: var(--color-primary);
}

/* 文章内容区域 */
.post-page .post-content {
  margin-top: 2rem;
}

/* 隐藏空的 TOC 侧边栏 */
.post-sidebar.toc-empty {
  display: none;
}

/* 首页底部区域样式 */
.homepage-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.homepage-footer > div {
  margin-bottom: 2rem;
}

/* 移动端底部区域优化 */
@media (max-width: 767px) {
  .homepage-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .homepage-footer > div {
    margin-bottom: 1.5rem;
  }
}
