/* 全局重置与基础样式 - 优化盒模型与字体兼容性 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', Georgia, serif; /* 现代无衬线+经典衬线组合，提升可读性 */
  scroll-behavior: smooth; /* 平滑滚动 */
}

body {
  margin: 0;
  padding: 0;
  background-image: url('https://images.cnblogs.com/cnblogs_com/cotyledon/1162069/o_nikhil-kumar-231465_gaitubao_com_1920x1280.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center; /* 居中裁剪，避免边缘变形 */
}

/* 容器优化 - 增强层次感与阴影 */
#home {
  width: 100%;
  min-height: 100%;
  opacity: 0.92; /* 提高不透明度，让背景更清晰 */
  background-color: #0A2A38; /* 调整深色背景，更柔和不压抑 */
  background-attachment: fixed;
  overflow: auto;
  padding-bottom: 50px; /* 底部留白，避免内容贴脚注 */
}

#header {
  width: 100%;
  height: 125px;
  background-color: rgba(2, 22, 31, 0.9); /* 半透明背景，增强层次感 */
  -moz-user-select: none;
  -khtml-user-select: none;
  user-select: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 轻微阴影，提升立体感 */
}

#blogTitle {
  width: 960px;
  margin: 0 auto;
  height: 80px;
  padding: 30px 0 0 15px;
}

#linkBlogLogo {
  display: inline-block;
  color: #C8E6C9; /* 柔和绿色，替代原蓝色，更显高级 */
  font-size: 28px; /* 放大标题，增强视觉焦点 */
  letter-spacing: 0.5px; /* 字间距优化，提升可读性 */
}

h1 {
  margin: 0;
  padding: 0;
}

/* 导航栏优化 - 交互更细腻 */
#navigator {
  width: 960px;
  margin: 0 auto;
  height: 45px;
  padding: 0 0 0 15px;
}

#navList {
  display: inline-block;
  list-style: none;
  float: left;
  height: 100%;
  margin: 0;
  padding: 0;
  padding-top: 12px;
}

#navList li {
  margin-right: 20px; /* 增加间距，避免拥挤 */
  float: left;
  font-weight: 600; /* 调整字重，更自然 */
  font-size: 15px;
  padding: 0;
  transition: all 0.3s ease; /* 过渡动画，交互更丝滑 */
}

.blogStats {
  display: inline-block;
  list-style: none;
  float: right;
  height: 100%;
  margin: 0;
  padding: 0;
  padding-top: 16px;
  color: #C8E6C9;
  font-size: 13px;
  opacity: 0.9;
}

/* 链接样式升级 - 渐变+hover效果更精致 */
a:link, a:visited {
  color: #04293A;
  background: transparent; /* 移除多余背景色 */
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, a:active {
  color: #2E7D32; /* 深绿色，hover时突出 */
  background: transparent;
  text-decoration: none;
}

#header a:link, #header a:visited {
  color: #C8E6C9;
  background: transparent;
  text-decoration: none;
}

#header a:hover, #header a:active {
  color: #FFFFFF;
  background: transparent;
  text-decoration: none;
  transform: translateY(-1px); /* 轻微上移，增强交互反馈 */
}

/* 主内容区优化 - 卡片化设计+阴影层次 */
#main {
  width: 960px;
  margin: 25px auto; /* 增加顶部间距，避免贴头部 */
  background-color: transparent; /* 移除原灰色背景，让内容块独立 */
  overflow: hidden;
}

#mainContent {
  width: 740px;
  margin: 0;
  padding: 0 15px;
  float: left;
}

#sideBar {
  float: right;
  width: 220px;
  padding: 0 15px;
  margin: 0;
}

/* 文章卡片优化 - 圆角+阴影+留白 */
.day {
  padding: 25px;
  margin-bottom: 25px;
  width: 100%;
  background: #ffffff;
  border-radius: 8px; /* 圆角设计，更现代 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 柔和阴影，不突兀 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day:hover {
  transform: translateY(-3px); /* hover上移，增强交互感 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.postTitle {
  width: 100%;
  padding: 2px 0 10px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 22px;
  color: #04293A;
  border-bottom: 1px solid #F0F0F0; /* 底部细边框，分隔标题与内容 */
}

.postCon {
  padding-top: 10px;
  font-size: 15px;
  width: 100%;
  border-top: 1px solid #F5F5F5;
  color: #333333; /* 调整文字颜色，更易阅读 */
  line-height: 1.8; /* 行高优化，提升阅读体验 */
}

.postDesc {
  margin-top: 15px;
  font-size: 13px;
  color: #666666;
  opacity: 0.8;
}

/* 侧边栏优化 - 统一卡片样式 */
#sideBarMain {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-block {
  margin-bottom: 25px;
}

.catListTitle {
  font-size: 16px;
  display: inline-block;
  padding: 0 0 8px 0;
  margin: 0 0 15px;
  width: 100%;
  border-bottom: 1px solid #F0F0F0;
  font-style: normal;
  color: #04293A;
  font-weight: 600;
}

#profile_block {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
}

/* 搜索框优化 - 更精致的输入体验 */
#sidebar_search_box input[type="text"] {
  width: 120px;
  height: 30px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 13px;
  transition: border 0.3s ease;
}

#sidebar_search_box input[type="text"]:focus {
  outline: none;
  width: 120px;
  border: 1px solid #2E7D32; /* 聚焦时边框变主题色 */
}

.btn_my_zzk {
  margin-left: 5px;
  padding: 0;
  border: none;
  width: 50px;
  height: 30px;
  color: #ffffff;
  background: #2E7D32; /* 按钮背景色，与主题呼应 */
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn_my_zzk:hover {
  background: #1B5E20; /* 按钮hover加深 */
  color: #ffffff;
}

/* 评论区优化 - 统一视觉风格 */
#blog-comments-placeholder, #comment_form {
  margin-top: 25px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feedback_area_title, .commentform_title {
  font-size: 18px;
  font-weight: 600;
  color: #04293A;
  margin-bottom: 20px;
  border-bottom: 1px solid #F0F0F0;
  padding-bottom: 8px;
}

#tbCommentBody {
  width: 100%;
  outline: none;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.6;
  transition: border 0.3s ease;
}

#tbCommentBody:focus {
  border: 1px solid #2E7D32;
}

#btn_comment_submit {
  margin-left: 5px;
  padding: 0;
  border: none;
  height: 32px;
  color: #ffffff;
  background: #2E7D32;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0 15px;
}

#btn_comment_submit:hover {
  background: #1B5E20;
  color: #ffffff;
}

/* 文章信息与分页优化 */
#blog_post_info_block {
  margin-top: 30px;
  padding: 15px;
  background: #F9F9F9;
  border-radius: 4px;
}

#BlogPostCategory, #EntryTag {
  float: right;
  font-size: 14px;
  margin-right: 20px;
}

#BlogPostCategory a, #EntryTag a, #post_next_prev a {
  font-weight: 600;
  border-bottom: 1px solid #2E7D32;
  color: #2E7D32;
}

#post_next_prev {
  font-size: 14px;
  margin-top: 10px;
}

/* 页脚优化 - 更简洁沉稳 */
#footer {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: 60px;
  padding-left: 20px;
  padding-top: 20px;
  font-size: 13px;
  color: #C8E6C9;
  background-color: rgba(2, 22, 31, 0.9);
  -moz-user-select: none;
  -khtml-user-select: none;
  user-select: none;
  border-radius: 8px 8px 0 0; /* 顶部圆角，与内容区呼应 */
  text-align: center; /* 文字居中，更美观 */
}

/* 图片与代码块优化 */
.cnblogs-markdown img {
  width: 100%;
  border-radius: 4px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cnblogs-markdown pre {
  width: 100%;
  background: #F8F8F8;
  border-radius: 4px;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid #F0F0F0;
  overflow-x: auto;
}

/* 隐藏冗余元素 */
#lnkBlogLogo, .dayTitle, #author_profile, #blog_post_info, .p_n_p_prefix {
  display: none;
}