/* ------------------
 * Global style
 * --------------- */
body {
  background-color: #FFF;
  color: #444;
  font-family: "Noto Sans SC", "Noto Serif SC", serif;
  letter-spacing: 0.02em;
  font-size: 100%;
}

a {
  color: #0d47a5;
  text-decoration: none;
}
a:hover, a:active {
  color: #444;
}
pre, code { 
  background: #F3F3F3;
  font-family: Consolas, monospace;
  font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow: auto;
  max-height: none;
}
pre code {
  padding: 3px;
  color: #444;
}

blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #eee;
  color: #666;
}

table {
  border: 1px solid #ddd;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #eee;
}
table th {
  background: #f3f3f3;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Sans SC", "Noto Serif SC", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #E9E9E9;
  width: 100%;

  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}


/* Special link style */
.post-content a,
.widget a,
.comment-content a {
  border-bottom: 1px solid #EEE;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}

/* ------------------
 * Header
 * --------------- */
 
#header {
    background: #fff;
    border-bottom: 0.8px solid #eaeaea; /* 底部细灰线，不需要可删 */
}

.header-inner {
    display: flex;                /* 弹性布局 */
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center;          /* 垂直居中对齐 (关键) */
    height: 80px;                 /* 设定Header高度，让垂直居中更明显 */
}

/* --- 左侧 Logo/标题 (完全保留你要求的样式) --- */
#logo {
    color: #333;
    font-family: "Noto Serif SC", sans-serif;
    font-size: 1.6em;
    text-decoration: none;        /* 去掉下划线 */
    line-height: 1;               /* 防止行高过大导致对齐偏移 */
    font-weight: 500; 
}

/* --- 右侧 导航菜单 --- */
.site-nav {
    display: flex;
    gap: 25px;                    /* 菜单项之间的间距 */
}

.nav-item {
    text-decoration: none;
    color: #333;                  /* 默认深灰/黑色 */
    font-size: 18px;              /* 字体大小 */
    font-weight: 450;
    padding: 5px 0;
    transition: color 0.2s;
}

/* 悬停状态 */
.nav-item:hover {
    color: #0d47a5;               /* 悬停变成蓝色 (可改) */
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;   /* 手机上上下排列 */
        height: auto;
        padding: 15px 0;
    }
    
    .site-nav {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Navigation menu */
#nav-menu {
  margin: 25px 0 0;
  padding: 0;
}
#nav-menu a {
  display: block;
  margin-right: -1px;
  padding: 0 20px;
  border: 1px solid #EEE;
  border-bottom: none;
  height: 32px;
  line-height: 32px;
  color: #444;
  float: left;
}
#nav-menu a:hover,
#nav-menu .current {
  background: #F6F6F6;
}

/* Search */
#search {
  position: relative;
  margin-top: 15px;
}
#search input {
  padding-right: 30px;
}
#search button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(img/icon-search.png) no-repeat center center;
  direction: ltr; /* fix RTL language */
  text-indent: -9999em;
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  #search button {
    background-image: url(img/icon-search@2x.png);
    -webkit-background-size: 24px 24px;
    -moz-background-size: 24px 24px;
    -o-background-size: 24px 24px;
    background-size: 24px 24px;
  }
}

/* ------------------
 * Main
 * --------------- */

.post {
  padding: 15px 0 20px;
  border-bottom: 1px solid #EEE;
}
.archive-post { 
  padding: 10px 0 20px;
  display: flex; 
  align-items: flex-start; 
  margin-bottom: 0px; 
}
.post-thumb { 
  flex: 0 0 320px;  
  margin-right: 20px; 
}
.post-thumb img { 
  width: 100%; 
  height: 180px; 
  object-fit: cover; 
  border-radius: 4px; 
}
.post-body { 
  flex: 1; 
}

@media screen and (max-width: 768px) {
  .archive-post {
    flex-direction: column;   /* 改成上下结构 */
    align-items: flex-start;  /* 左对齐文字 */
    padding: 12px 0;
    margin-bottom: 12px;
    gap: 8px;                 /* 控制图片和文字之间的距离 */
  }

  .post-thumb {
    flex: none;               /* 不再固定宽度 */
    margin-right: 0;          /* 去掉右边距 */
    width: 100%;              /* 图片容器占满宽度 */
  }

  .post-thumb img {
    width: 100%;              /* 图片宽度跟随容器 */
    height: auto;             /* 高度自适应，避免拉伸 */
    max-height: 200px;        /* 可选：限制最大高度 */
    object-fit: cover;
    border-radius: 4px;
  }

  .post-body {
    flex: none;
    width: 100%;
  }

  .post-title {
    margin: 6px 0;            /* 减小标题和图片的间距 */
    font-size: 18px;          /* 字体稍微大一点，突出标题 */
    line-height: 1.4;
  }

  .post-meta {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;          /* 紧贴标题 */
  }
}

.post-title {
  margin: .83em 0;
  font-size: 1.2em;
}
.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: #999;
  font-size: .92857em;
}
.post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.5;
}
.post-content p {
  margin-bottom: 1.2em;
}
.post .tags {
  clear: both;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 0.5em 0 0em;
  padding-top: 10px;
  color: #333;
  font-size: 18px;
  margin-bottom: 10px;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}

/* Page nav */

.page-navigator {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
}
.page-navigator a:hover {
  background: #EEE;
  text-decoration: none;
}

.page-navigator .current a {
  color: #444;
  background: #EEE;
}

/* ------------------
 * Comment list
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #EEE;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF9E8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
  position: sticky;
  top: 0px;
}
.widget {
  margin-bottom: 30px;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}

.widget-list li ul {
  margin-left: 15px;
}


/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 3em 0;
  line-height: 1.5;
  text-align: center;
  color: #999;
}


/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}


/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.7;
  word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* hidden img parent link border  */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}


/* -----------------
 * Misc
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}


/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 767px) {
  body {
    font-size: 81.25%;
  }
  #nav-menu a {
    float: none;
    display: inline-block;
    margin: 0 -2px;
  }
}

@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta {
    text-align: center;
  }
}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
  }
}


/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden; }

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
  visibility: hidden; }

/* 侧边栏公告样式 - 浅蓝底深蓝字 */
.notice-content {
    background-color: #e3f2fd; /* 浅蓝色背景 */
    color: #0d47a1;            /* 深蓝色文字 */
    
    padding: 15px;             /* 内边距 */
    border-radius: 6px;        /* 圆角 */
    border: 1px solid #bbdefb; /* 边框颜色（比背景稍深一点的蓝色） */
    
    font-size: 14px;           /* 字号 */
    line-height: 1.6;          /* 行高，让多行文字看起来不拥挤 */
    margin-bottom: 20px;       /* 底部留出一点距离 */
    margin-top: 0px;
}

/* 如果公告里有链接，也让链接变成深蓝色并加粗 */
.notice-content a {
    color: #0d47a1;
    font-weight: bold;
    text-decoration: underline;
}
