/* CSS Custom Properties */
:root {
  /* --- 极简黑白灰配色 (护眼微调版) --- */
  --color-primary: #000000;
  --color-primary-hover: #555555;
  --color-border: #e8e8e8; /* 边框稍微深一点点，适配灰色背景 */
  --color-text: #2c2c2c;
  --color-text-muted: #888888;
  
  /* 🌟 核心修改在这里 🌟 */
  --color-background: #fafafa;           /* 由 #ffffff 改为 #fafafa (极淡的护眼灰) */
  --color-background-code: #f0f0f0;      /* 由 #f7f7f7 改为 #f0f0f0 (加深，保证和背景有区分) */
  --color-background-blockquote: #f2f2f2;/* 由 #f9f9f9 改为 #f2f2f2 (加深，保持层次) */
  --color-border-blockquote: #dcdcdc;    /* 引用块的左边线也稍微加深 */
  
  /* 深色模式 (保持不变) */
  --color-primary-dark: #ffffff;
  --color-text-dark: #e0e0e0;
  --color-background-dark: #1c1c1c;
  --color-background-code-dark: #2d2d2d;
  --color-background-blockquote-dark: #252525;
  --color-border-blockquote-dark: #404040;

  /* --- 布局核心变量 --- */
  --content-max-width: 1200px;
  --sidebar-width: 220px;
  --gap-size: 40px;
  --font-size-base: 18px;
  --line-height-base: 1.8;
}

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; }



html {
  color: var(--color-text);
  
  /* --- 修改字体设置 --- */
  font-family: "Noto Serif SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--color-primary); }

img {
  margin-top: 10px;
  max-width: 100%;
  height: auto;
  display: block;
}

.post-content img {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- 特殊图片处理：不带特效的原图 --- */
.post-content img.raw-image {
  border-radius: 0 !important;    /* 强制直角 */
  box-shadow: none !important;    /* 强制无阴影 */
  display: block;       /* 确保它是块级元素 */
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.5rem;    /* 顺便保持上下间距，你可以根据需要调整 */
  margin-bottom: 1.5rem;
}

/* --- 核心布局调整 --- */
.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative; /* 辅助定位 */
  display: block; /* ❌ 不再使用 flex，回归文档流 */
  /* padding 仅保留上下，左右由内部元素处理 */
  padding: 40px 20px; 
}

.content {
    width: 100%;
    max-width: 900px;    /* 文本太宽眼睛会累，建议限制在 800-900px */
    margin: 0 auto;      /* 居中显示 */
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    text-align: justify; /* 两端对齐更美观 */
}

.post-footer-divider {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: -20px;
    color: #bbb;           /* “全文完”文字颜色 */
    font-size: 0.85rem;    /* 文字稍微小一点，显得精致 */
    letter-spacing: 4px;   /* 字间距拉开，增加呼吸感 */
    text-indent: 4px;      /* 抵消最后一个字的间距，确保绝对居中 */
}

/* 绘制左右两边的虚线 */
.post-footer-divider::before,
.post-footer-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    /* 沿用你喜欢的稀疏虚线样式 */
    background-image: linear-gradient(to right, #ddd 50%, rgba(255,255,255,0) 0%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

/* 文字与虚线之间的间距 */
.post-footer-divider span {
    padding: 0 20px;
}

/* 左侧：侧边栏 (Fixed 悬浮) */
.sidebar {
  position: fixed; 
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  height: 100vh; /* 强制占满屏幕高度 */
  z-index: 10;
  
/* 智能定位：在大屏下居中对齐代码 */
  left: calc(50% - var(--content-max-width)/2 + 20px);
  
  /* --- 🌟 核心拉伸逻辑 🌟 --- */
  display: flex;
  flex-direction: column;
  /* 这里的 space-between 会把第一个子元素(header)推到顶，最后一个推到底 */
  justify-content: space-between; 
  align-items: center;
  
  /* 这里的 padding 建议左右留一点，上下由内部元素控制 */
  padding: 60px 0 40px 0; 
  
  border-right: 1px solid var(--color-border);
  background-color: var(--color-background);
  
  /* 允许内容过多时内部滚动 */
  overflow-y: auto; 
  scrollbar-width: none; 
}

/* 隐藏滚动条 (Chrome/Safari) */
.sidebar::-webkit-scrollbar {
  display: none;
}

/* 侧边栏头部的容器 (包含头像、标题、导航) */
.sidebar header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  flex-grow: 1; /* 占据上方所有可用空间 */
}

/* 侧边栏底部区域 (图标 + 版权) */
.sidebar-footer {
  /* 即使屏幕再矮，也会因为 flex 布局被压在最下面 */
  margin-top: auto; 
  padding-top: 40px; /* 给上方导航留出一点安全距离 */
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* 图标和版权的间距 */
  width: 100%;
  flex-shrink: 0; /* 禁止底部被压缩 */
}

/* 右侧：主要内容 */
.main-content {
  /* 左边距保持不变 */
  margin-left: calc(var(--sidebar-width) + var(--gap-size));
  
  width: auto;
  min-width: 0;
  padding-top: 0.5em;
  
  /* 🌟 核心修改：给右边增加大量呼吸空间 */
  padding-right: 80px; 
  
  /* 也可以限制一下文章的最大阅读宽度，防止在大屏上太长读着累 (可选) */
  max-width: 900px; 
}

/* --- 中等屏幕适配 (介于手机和超大屏之间) --- */
/* 当屏幕宽度小于 1250px 时，居中计算会失效，强制贴左 */
@media (max-width: 1250px) and (min-width: 801px) {
  .sidebar {
    left: 20px; /* 贴着 wrapper 的 padding */
  }
}

/* --- 侧边栏样式细节 --- */
.sidebar header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%; /* 确保居中 */
}

.title-with-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.sidebar .main { 
  font-size: 2rem; 
  font-weight: 800; 
  margin-bottom: 0; 
  display: block;
  line-height: 1.2;
  margin-top: -0.3rem;
}

.sidebar .description,
.sidebar .subtitle,
.site-description {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0;
}

.site-description p {
  margin: 3px;
}

.sidebar nav {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.sidebar nav a {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}
.sidebar nav a:hover { color: var(--color-primary); }

.sidebar nav a.active {
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
}

.sidebar nav a.active:hover {
  background: #333;
  color: #fff;
}

.sidebar .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- 最终优化版 CSS --- */

a[href*="#random-post"] {
    visibility: hidden;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 100%;
    position: relative;
    cursor: pointer;
    
    /* 【电脑端】图标垂直高度微调 */
    margin-top: 10px; 
}

/* 【小屏/手机端】图标垂直高度微调 */
@media (max-width: 768px) {
    a[href*="#random-post"] {
        margin-top: 2px; 
    }
}

a[href*="#random-post"].js-ready {
    visibility: visible !important;
}

/* --- 提示框（Tooltip）微调 --- */
a[href*="#random-post"]::after {
    content: "随机阅读";
    position: absolute;
    
    /* 1. 再次拉开间距：从 -45px 增加到 -52px */
    bottom: -40px;      
    left: 50%;
    
    /* 初始状态位移 */
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    
    /* 2. 颜色修改：改为灰色系（这里选用了柔和的中灰色 #757575） */
    /* 你也可以尝试 rgba(120, 120, 120, 0.9) 带有微透明感 */
    background-color: #757575; 
    
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    
    /* 动画效果 */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* 给灰色背景加一点微弱的投影，增加立体感 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 悬停状态：回到原位并显示 */
a[href*="#random-post"]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 图标基础样式 */
a[href*="#random-post"] svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}
a[href*="#random-post"]:hover svg {
    transform: scale(1.15);
}

/* --- 侧边栏底部区域 (最终完美版) --- */
.sidebar-footer {
  /* 1. 弹性推底：屏幕高时，自动推到最下面 */
  margin-top: auto;
  
  /* 2. ✅ 保底距离：屏幕矮时，即便贴上来，也强制保留 30px 的呼吸空间 */
  padding-top: 30px;
  
  /* 防止被挤压变形 */
  flex-shrink: 0;
  
  /* 布局保持不变 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 20px; 
  width: 100%;
}

/* 社交图标容器 */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icons a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 0.7;
}

/* 版权文字样式 */
.copyright {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-family-mono, monospace);
}

/* --- 通用图标样式 (替代原来的内联 style) --- */
.icon-style {
  width: 30px;  /* 在这里统一改大小 */
  height: 30px;
  vertical-align: -4px;
  display: inline-block;
}



h1.title-post {
font-size: 1.8rem;
    margin-bottom: 2rem;
    margin-top: -0.5rem;
    line-height: 1.2;
}

/* 文章详情页样式 */
article {
  /* 1rem = 18px(你的基准), 1.15rem ≈ 20.7px */
  font-size: 1.15rem; 
  line-height: 1.8;
}
article h1 { font-size: 1.8rem; margin-bottom: 1rem; margin-top: -0.5rem; line-height: 1.2; }
/* 文章段落样式 */
article p {
  /* 1. 核心修复：把段落间距压到很小 */
  /* 之前是 1.5em，改为 0.5em 或 0.8em 比较合适 */
  margin-bottom: 0.6em !important; 
  
  /* 2. 确保没有“上边距”来捣乱 */
  margin-top: 0.5em !important;
  
  /* 3. 如果还觉得大，就把行高再改小一点 (标准是 1.6 - 1.8) */
  line-height: 1.6; 
  
  text-align: justify;
}

/* --- 文章详情页元数据 (作者、时间、标签) --- */
.meta {
  color: var(--color-text-muted); /* 使用灰色文字 */
  font-size: 0.9rem;              /* 字号稍微小一点，显精致 */
  margin-top: 0.5rem;             /* 距离上方标题的间距 */
  margin-bottom: 0rem;            /* 距离下方正文的间距 (很重要，把正文顶下去) */
  
  /* 如果你想让它居中，可以加上这个： */
  /* text-align: center; */
}

/* 代码块 */
pre {
  background: var(--color-background-code);
  padding: 1.5em;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9em;
}

/* 引用块 */
blockquote {
  background: var(--color-background-blockquote);
  border-left: 4px solid var(--color-border-blockquote);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  color: var(--color-text-muted);
  border-radius: 0 4px 4px 0;
}

/* 翻页总容器：保持结构，调淡边框 */
.post-nav {
    display: flex;
    border: 1px solid #f0f0f0; /* 调淡边框，减少割裂感 */
    margin-top: 50px;
    background-color: transparent;
    border-radius: 4px;
    overflow: hidden;
}

/* 统一所有块的背景色：改为白色，增加呼吸感 */
.post-nav-item {
    flex: 1;
    position: relative;
    background-color: transparent; /* 改为纯白，与列表页一致 */
    transition: background-color 0.4s ease;
}

/* 中间的分割线 */
.post-nav-item.prev {
    border-right: 1px solid #f0f0f0;
}

/* 链接内部布局 */
.post-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    text-decoration: none;
    min-height: 70px;
}

/* 标签文字（前篇/后篇） */
.nav-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

/* 文章标题：引入全站统一的底色划过效果 */
.nav-title {
    color: #222;
    font-weight: 500;
    font-size: 0.95rem;
    /* 引入你的专属浅黄色效果 */
    background-image: linear-gradient(transparent 70%, #fff3d4 0);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.4s ease, color 0.3s ease;
}

/* 悬停效果：背景微变黄，标题底色展开 */
.post-nav-item:hover {
    background-color: rgba(255, 243, 212, 0.15) !important; /* 极淡的黄色背景 */
}

.post-nav-item:hover .nav-title {
    background-size: 100% 100%; /* 标题底色展开 */
    color: #000;
}

/* 辅助标签 (前篇/后篇/返回) */
.nav-label {
    font-size: 12px;
    color: #999; /* 浅灰色文字 */
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 文章标题 */
.nav-title {
    font-size: 16px;
    font-weight: 500;
    color: #333; /* 深灰色标题 */
    text-align: center;
    line-height: 1.5;
    word-break: break-all;
}





/* 列表页容器 */
.list-container {
    max-width: 100%;
    margin: 0 auto;
    
}



.list-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 0px; /* 保留底部间距 */
    align-items: baseline;
    gap: 12px;
}

.list-title {
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: -1px;
}

.list-subtitle {
    display: inline-block;
    width: auto;
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    
}

/* 单个文章条目 */
.post-item {
    margin-bottom: 20px; /* 增加条目间的呼吸感 */ 
    margin-top: 20px;
    transition: all 0.3s ease;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    gap: 15px;
    font-family: "JetBrains Mono", monospace;
}

.post-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 12px;
    margin-top: 0px;
}

.post-title a {
    color: #222;
    text-decoration: none;
    background-image: linear-gradient(transparent 70%, #fff3d4 0); /* 优雅的标题底色 */
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.4s ease;
}

/* 悬停时标题底色划过 */
.post-item:hover .post-title a {
    background-size: 100% 100%;
    color: #000;
}

.post-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.read-more {
    color: #ff4d4f;
    margin-left: 8px;
    text-decoration: none;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.post-item:hover .read-more {
    opacity: 1;
    margin-left: 12px;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .list-header { margin-bottom: 10px; }
    .post-title { font-size: 1.3rem; }
}





/* 底部 Footer */
footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}


/* --- 分页容器：保持 100% 宽度与呼吸感 --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 20px 0 !important; /* 增加上下留白 */
    margin: 40px 0 0 0 !important;
    width: 100% !important;
    border-top: 1px solid #f0f0f0; /* 极淡的顶部分割线 */
    gap: 100px !important; /* 缩减间距，让视线更聚焦 */
}

.pagination .page-item {
    display: flex;
    margin: 0;
}

/* --- 分页链接：继承文章标题风格 --- */
.pagination a {
    position: relative;
    display: inline-block;
    padding: 5px 0 !important;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    
    /* 核心：同步你喜欢的黄色底色划过效果 */
    background-image: linear-gradient(transparent 70%, #fff3d4 0);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.4s ease, color 0.3s ease, transform 0.3s ease;
}

/* 悬停状态 */
.pagination a:hover {
    background-size: 100% 100%;
    color: #000;
    transform: translateY(-2px); /* 轻微上浮，保持灵动 */
}

/* 点击状态 */
.pagination a:active {
    transform: scale(0.98);
}




/* 1. 归档年份：恢复左对齐 */
.archive-year {
    text-align: left;
    font-size: 1.8rem;
    margin: 5px 0 5px 0;
    color: #222;
}

/* 2. 归档列表容器 */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .archive-list {
        padding-left: 2em; /* 关键：向右缩进两格 */
    }
}

.archive-list li {
    padding: 8px 0; /* 减小间距，因为没有线了，靠字间距区分 */
    display: flex;
    align-items: baseline;
    border-bottom: none; /* 彻底移除分割线 */
}

/* 3. 归档标题效果：完全对齐文章列表页 */
.archive-list li a {
    color: #222;
    text-decoration: none;
    font-size: 1.1rem;
    
    /* 注入你要求的浅黄色底色划过效果 */
    background-image: linear-gradient(transparent 70%, #fff3d4 0);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.4s ease, color 0.3s ease;
}

/* 悬停效果 */
.archive-list li:hover a {
    background-size: 100% 100%;
    color: #000;
}

/* 4. 日期样式 */
.archive-list time {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    color: #999;
    margin-right: 25px; /* 日期与标题拉开一点距离 */
    flex-shrink: 0;
    width: 50px; /* 固定宽度确保标题对齐 */
}





/* --- 文章列表分页按钮移动端适配 --- */
@media (max-width: 768px) {
    .pagination {
        gap: 40px !important;
        padding: 40px 0 !important;
    }
    .pagination a {
        font-size: 0.9rem;
    }
}

/* --- 移动端适配 (变成上下布局 + 元素重排) --- */
@media (max-width: 800px) {
  /* 1. 让最外层容器变成垂直 Flex，允许重新排序 */
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0; /* 间距由内部元素控制 */
    padding: 10px 20px 0px 20px;
  }
  
  /* 2. 【关键魔法】让 Sidebar 和 Header 容器“消失” */
  /* 这样里面的 Logo、Nav、Footer 就会直接变成 wrapper 的子元素，可以和 main-content 混排 */
  .sidebar,
  .sidebar header {
    display: contents;
  }

  /* --- 3. 开始重新排序 (Order) --- */

  /* [第1名] 标题和头像 */
  .title-with-avatar {
    order: 1;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  /* [第2名] 网站描述 */
  .site-description {
    order: 2;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  /* [第3名] 导航菜单 */
  .sidebar nav {
    order: 3;
    width: 100%;
    /* 样式调整：横向排列 */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 0.5rem;
    
    /* 分割线：菜单和文章之间的界限 */
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

/* [第4名] 文章主要内容 */
  .main-content {
    order: 4;
    margin-left: 0 !important; /* 强制清除左边距 */
    width: 100% !important;
    
    padding-top: 0 !important; 
    padding-bottom: 10px !important;
    
    /* 🌟 核心修复：把右边距强制改回 20px */
    /* 之前继承了电脑端的 80px，导致手机上被挤扁 */
    padding-right: 20px !important; 
    padding-left: 20px !important; /* 确保左边也有对称的间距 */
  }

/* --- 在 @media (max-width: 800px) 内部修改 --- */

  /* [第5名] 底部栏 (极致紧凑版) */
  .sidebar-footer {
    order: 5;
    width: 100%;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    
    /* 关键修改：去除 margin，大幅减小 padding */
    margin-top: 0;        /* 去掉外部间距 */
    padding-top: 15px;    /* 仅保留一点点内部空间给分割线 */
    border-top: 1px solid var(--color-border);
    padding-bottom: 20px; /* 底部稍微留点距离，防止贴底太难看 */
  }

  /* 手机端专门调整图标间距 */
  .social-icons {
    /* 电脑端是 50px，手机上跟文字排在一起，必须改小，否则会换行 */
    gap: 15px; 
  }
  .icon-style {
  width: 18px;  /* 在这里统一改大小 */
  height: 18px;
  vertical-align: -4px;
  display: inline-block;
  }
  /* 确保版权文字在手机上显示 */
  .copyright {
    display: block;
    /* 防止文字换行 */
    white-space: nowrap; 
  }
  


  /* ... (保留你之前的 sidebar, main-content 等设置) ... */

  /* --- [新增] 手机端 Footer 样式 (垂直居中) --- */
  footer {
    display: flex !important;
    flex-direction: column !important; /* 确保以后加东西也是垂直排 */
    justify-content: center !important; /* 上下居中 */
    align-items: center !important;     /* 左右居中 */
    text-align: center !important;
    
    min-height: 100px !important;       /* 给足高度，才能看出垂直居中效果 */
    padding: 20px !important;
    margin-top: 20px !important;
    border-top: 1px solid var(--color-border) !important;
  }

  /* --- [新增] 手机端文章字体调小 (覆盖电脑端的 1.15rem) --- */
  article {
    /* 电脑上是 1.15rem(约21px)，手机上改回 1rem(约18px) 比较合适 */
    font-size: 1rem !important; 
    line-height: 1.6 !important;
  }

  /* 顺便把手机上的大标题也稍微调小一点，比例更协调 */
  article h1 {
    font-size: 1.5rem !important;
  }

/* --- 移动端小屏幕优化 --- */
@media (max-width: 800px) {

    /* 2. 压缩高度与间距：手机端屏幕寸土寸金 */
    .post-nav-item a {
        padding: 12px 10px; /* 进一步减小内边距 */
        min-height: 60px;    /* 手机端可以更矮一些 */
    }

    /* 3. 字体微调：防止标题在双栏布局下显得太局促 */
    .nav-title {
        font-size: 16px;
        line-height: 1.3;
    }

    .nav-label {
        font-size: 12px;
        margin-bottom: 2px;
    }
}

} /* <--- 这一行是 @media 的结束括号，确保不要漏掉 */