/* 在styles.css中添加以下样式 */
.blog-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.blog-post {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blog-post h2 {
  margin-bottom: 15px;
  color: #333;
}

.blog-list li {
  margin: 8px 0;
}

.blog-list a {
  color: #1890ff;
  text-decoration: none;
}

.blog-list a:hover {
  text-decoration: underline;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  background-color: #e6f7ff;
  color: #1890ff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.blog-links {
  list-style: none;
  padding: 0;
}

.blog-links li {
  margin: 8px 0;
}

.blog-links a {
  color: #52c41a;
  text-decoration: none;
}

.blog-links a:hover {
  text-decoration: underline;
}

.blog-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #8c8c8c;
}

.blog-footer a {
  color: #8c8c8c;
  text-decoration: none;
}

/* 侧边栏开关按钮 */
#sidebar-toggle {
  position: fixed;
  top: 60px;
  left: 0;
  background: #dcd7d7ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
}

/* 侧边栏容器 */
#blog-sidebar {
  position: fixed;
  top: 60px;
  left: -250px;
  width: 250px;
  height: calc(100vh - 60px); /* 更准确：减去顶栏高度 */
  background: #7d868eff;
  color: white;
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

/* 博客列表 */
#blog-sidebar ul {
  list-style: none;
  padding: 0 16px;
  margin: 0;
}

/* 博客列表项 */
#blog-sidebar li {
  padding: 12px 0;
  border-bottom: 1px solid #819bb2;
  cursor: pointer;
  transition: color 0.2s;
}

/* 主内容区 */
#main-content {
  position: relative;
  margin-left: 0;
  padding: 20px;
  transition: margin-left 0.3s ease;
  padding-top: 80px;
  width: 100%;
}

/* Tab 动画 */
.markdown-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  /* visibility: hidden; */
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.markdown-tab.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 10;
}

/* ========== 博客列表项美化（新增） ========== */
.post-list {
  list-style: none;
  padding: 0;
  /* max-width: 800px; */
  margin: 40px 30px; /* 居中并增加外边距 */
  border-radius: 10px; /* 增加圆角 */
  overflow: hidden; /* 防止内容溢出 */
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1); /* 添加阴影效果 */
}

.post-list li {
  padding: 20px 30px; /* 增加内边距 */
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease; /* 平滑过渡效果 */
  display: flex;
  justify-content: space-between; /* 分布对齐 */
  align-items: center; /* 垂直居中 */
}

.post-list li:last-child {
  border-bottom: none; /* 移除最后一个元素的下边框 */
}

.post-list a {
  font-size: 18px;
  font-weight: 600;
  color: #1890ff;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
  width: calc(100% - 60px); /* 确保文本区域宽度适配 */
}

.post-list a:hover {
  color: #096dd9;
  text-decoration: underline;
}

.post-list li:hover {
  background-color: #f3faff; /* 修改悬停背景颜色 */
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .05); /* 内部阴影 */
}

/* ========== 分页控件增强（覆盖原 .pagination 样式） ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  background: white;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}

.pagination a:hover {
  background: #e6f7ff;
  border-color: #1890ff;
  color: #1890ff;
}

.pagination .current-page {
  background: #1890ff;
  border-color: #1890ff;
  color: white;
  cursor: default;
}

.pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============== 增强移动端适配：my_channel.css ============== */
@media (max-width: 768px) {
  /* 隐藏侧边栏开关按钮（如果不需要抽屉式） */
  /* 或保留它来控制 #blog-sidebar 的显示 */
  #sidebar-toggle {
    top: 56px;
    left: 10px;
    padding: 6px 10px;
    font-size: 16px;
  }

  /* 抽屉式侧边栏：保持可滑出 */
  #blog-sidebar {
    top: 56px;
    height: calc(100vh - 56px);
    padding-top: 20px;
  }

  /* 主内容区：去掉左侧留白，适配全宽 */
  #main-content {
    padding: 15px;
    padding-top: 70px; /* 避开导航 + 按钮 */
    margin-left: 0 !important;
  }

  /* 博客内容容器 */
  .blog-content {
    padding: 15px;
    max-width: none;
  }

  /* 博客列表项：优化移动端体验 */
  .post-list {
    margin: 20px 15px; /* 左右留呼吸空间 */
    border-radius: 8px;
  }

  .post-list li {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .post-list a {
    width: 100%;
    font-size: 17px;
  }

  /* 分页控件 */
  .pagination {
    gap: 6px;
    margin: 30px 0;
  }

  .pagination a,
  .pagination span {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
    padding: 0 8px;
  }

  /* 标签 */
  .tech-tags {
    gap: 6px;
  }

  .tag {
    font-size: 12px;
    padding: 3px 6px;
  }

  /* 页脚 */
  .blog-footer {
    padding: 15px;
    font-size: 14px;
  }
}