#navList li:first-child, #navList li:nth-child(5) {
  display: none; 
}
/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 页面背景（可替换为自己的图片链接） */
body {
  background: #f5f7fa; /* 底色 */
  background-image: url("https://picsum.photos/id/1019/1920/1080"); /* 背景图（推荐1920*1080） */
  background-attachment: fixed; /* 固定背景 */
  background-size: cover; /* 自适应屏幕 */
  background-position: center;
  color: #333; /* 文字主色 */
  font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 博客主体容器（卡片化，增加阴影） */
#main {
  background: rgba(255, 255, 255, 0.92); /* 白色半透明背景 */
  border-radius: 12px; /* 圆角 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* 阴影 */
  padding: 30px;
  margin: 40px auto;
  max-width: 1200px; /* 限制最大宽度，避免大屏拉伸 */
}

/* 标题样式 */
h1, h2, h3, h4 {
  color: #2c3e50; /* 标题颜色 */
  margin-bottom: 15px;
  font-weight: 600;
}
h1 {
  font-size: 28px;
  border-bottom: 2px solid #3498db; /* 下划线 */
  padding-bottom: 10px;
}
h2 {
  font-size: 24px;
  border-left: 4px solid #3498db; /* 左竖线 */
  padding-left: 12px;
}

/* 链接样式（hover效果） */
a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease; /* 过渡动画 */
}
a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* 代码块美化（替换默认样式） */
/* pre {
  background: #2d2d2d !important; /* 深色背景 */
  color: #f8f8f2 !important; /* 文字色 */
  border-radius: 8px !important;
  padding: 30px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
code {
  background: #f1f1f1 !important;
  color: #e74c3c !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
} */

/* 侧边栏样式 */
#sideBar {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.sidebar-title {
  color: #2c3e50;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* 文章列表样式 */
.day {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f1f1f1;
}
.postTitle {
  font-size: 22px;
  margin-bottom: 10px;
}
.postTitle a {
  color: #2c3e50;
}
.postTitle a:hover {
  color: #3498db;
  text-decoration: none;
}
.postCon {
  line-height: 1.8;
  font-size: 16px;
  color: #444;
}

/* 分页样式 */
#nav_next_page a, #nav_prev_page a {
  display: inline-block;
  padding: 8px 16px;
  background: #3498db;
  color: white !important;
  border-radius: 4px;
  margin: 0 5px;
}
#nav_next_page a:hover, #nav_prev_page a:hover {
  background: #2980b9;
  text-decoration: none;
}

/* 底部版权样式 */
#footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 14px;
}
/* 先添加CSS到页面定制CSS代码中 */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}
#backToTop.show {
  opacity: 1;
}
