/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

/* Global Reset */

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: white;
  font: 13.35px helvetica, arial, clean, sans-serif;
  *font-size: small;
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
}

h1 {
  margin-bottom: 1em;
}

p {
  margin: 1em 0;
}

a {
  color: #00a;
}

a:hover {
  color: black;
}

a:visited {
  color: #a0a;
}
/*****************************************************************************/
.three-line-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4em 0; /* 比最小方案稍大一点的外部间距 */
  border-spacing: 0;
}

.three-line-table th, .three-line-table td {
  padding: 3px 7px; /* 内边距比最小方案增加1px，保持舒适 */
  text-align: left;
  line-height: 1.2; /* 行高适度放宽 */
  border: none;
}

.three-line-table thead {
  border-top: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
}

.three-line-table tbody {
  border-bottom: 1.5px solid #000;
}

/* 表头可略高于内容区，增强区分度 */
.three-line-table thead th {
  padding-top: 4px;
  padding-bottom: 4px;
}

.three-line-table table {
  font-size: 12px; /* 保持正常字体大小 */
}

/****************************************************************************/
table {
  font-size: inherit;
  font: 80%;
  font-size: 12px; /* 调整表格的字体大小 */
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/

ul.posts {
  list-style-type: none;
  margin-bottom: 2em;
}

  ul.posts li {
    line-height: 1.8em;
  }

  ul.posts span {
    color: #aaa;
    font-family: Monaco, "Courier New", "SimSun", monospace;
    font-size: 80%;
  }

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
  font-size: 110%;
  text-align: justify;
  width: 42em;
  margin: 3em auto 2em auto;
  line-height: 1.75em;
}

.title {
  font-size: 110%;
  color: #a00;
  font-weight: bold;
  margin-bottom: 2em;
}

  .site .title a {
    color: #a00;
    text-decoration: none;
  }

  .site .title a:hover {
    color: black;
  }

  .site .title a.extra {
    color: #aaa;
    text-decoration: none;
    margin-left: 1em;
  }

  .site .title a.extra:hover {
    color: black;
  }

  .site .meta {
    color: #aaa;
  }

  .site .footer {
    font-size: 80%;
    color: #666;
    border-top: 4px solid #eee;
    margin-top: 2em;
    overflow: hidden;
  }

    .site .footer .contact {
      float: left;
      margin-right: 3em;
    }

      .site .footer .contact a {
        color: #8085C1;
      }

    .site .footer .rss {
      margin-top: 1.1em;
      margin-right: -.2em;
      float: right;
    }

      .site .footer .rss img {
        border: 0;
        max-width: 60%; /* 缩小到原来的 60% */
      }

/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/

#post {

}

  /* standard */

  #post pre {
    border: 1px solid #ddd;
    background-color: #eef;
    padding: 0 .4em;
    line-height: 1.2; /* 调整行间距 */
    text-indent: -1.5ch; /* 去除首行缩进 */
    margin-left: 0; /* 去除左边距，如果需要 */
    /*padding-left: 0; /* 去除内左边距，如果需要 */
    padding-left: 2ch; /* 2个字符的宽度 */
  }

  #post ul,
  #post ol {
    margin-left: 1.35em;
  }

  #post code {
    border: 1px solid #ddd;
    background-color: #eef;
    font-size: 95%;
    padding: 0 .2em;
    margin-top: 10px; /* 上间距 */
    margin-bottom: 10px; /* 下间距 */
    line-height: 1.2; /* 调整行间距 */
    text-indent: -1.5ch; /* 去除首行缩进 */
    margin-left: 0; /* 去除左边距，如果需要 */
    /*padding-left: 0; /* 去除内左边距，如果需要 */
    padding-left: 2ch; /* 2个字符的宽度 */
     }

    #post pre code {
      border: none;
      
    }

  #post img {
    /*max-width: 42em;*/
    max-width: 60%; /* 缩小到原来的 30% */
    height: auto; /* 保持比例 */
    margin: 1em auto; /* 居中显示 */
    
    padding: 1em 0;
  }

  /* terminal */

  #post pre.terminal {
    border: 1px solid black;
    background-color: #333;
    color: white;
  }

  #post pre.terminal code {
    background-color: #333;
  }

#related {
  margin-top: 2em;
}

  #related h2 {
    margin-bottom: 1em;
  }
