/* ------------------------------------
 * XIAMINGCOMCN
 *
 * @author  夏明
 * @link  http://xiaming.com.cn
 * @update  2024-05-30
 * --------------------------------- */

/* ------------------
 * Global style
 * --------------- */
body {
  background-color: #fff;
  color: #000;
  font-family: "Classic Grotesque W01", Arial, "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "WenQuanYi Micro Hei", SimSun, sans-serif;
}
a {
  color: #000;
  text-decoration: none;
}
a:hover, a:active {
  color: #aaa;
}
pre, code { 
  background-color: #222;
  font-size: .92857em;
  color: #fff;
}
code {
  margin: 3px;
  padding: 4px 6px;
  border-radius: 3px;
}
pre {
  padding: 8px;
  overflow: auto;
  max-height: 400px;
}
pre code {
  margin: 0;
  padding: 3px;
}
blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #e4e8ed;
  color: #abb4be;
}
table {
  border: 1px solid #e4e8ed;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #e4e8ed;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #dee2e6;
  width: 100%;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}
button {
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
  background-color: #222;
  border: 1px solid #222;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
}
button:hover {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #807c7c;
}
/* ------------------
 * Header
 * --------------- */
#header .container {
  min-height: 64px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}
#header .site-name {
  margin-right: 40px;
  font: normal 20px / 70px Arial;
  text-transform: uppercase;
}
/* Navigation menu */
#nav-menu {
  display: flex;
  flex-wrap: nowrap;
}
#nav-menu a {
  display: block;
  padding: 0 16px;
  line-height: 40px;
  font-weight: 100;
  color: #aaa;
}
#nav-menu a:hover,
#nav-menu .current {
  color: #000;
}
/* ------------------
 * Body
 * --------------- */
#body {
  padding-top: 60px;
}
#body .container {
  padding: 0 57px;
  margin: 0 auto;
  max-width: 740px;
}
/* ------------------
 * Main
 * --------------- */
.post {
  padding: 15px 0 40px;
  border-bottom: 1px solid #e4e8ed;
}
.post-title {
  font-size: 30px;
  font-weight: normal;
  margin: 0 0 30px;
  line-height: 1.8;
}
.post-meta {
  font-size: 12px;
  font-weight: 500;
  margin: 24px 0 4px;
  color: #abb4be;
}
.post-content {
  line-height: 1.5;
  font-size: 17px;
  color: #333;
}
.post .tags {
  font-size: 12px;
  font-weight: 500;
  margin: 24px 0 4px;
  color: #abb4be;
}
.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #000;
  font-size: 1em;
  font-weight: normal;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}
/* Page nav */
.page-navigator {
  list-style: none;
  margin: 60px 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  min-width: 20px;
  height: 40px;
  line-height: 40px;
  border: 1px solid #dee2e6;
  color: #807c7c;
  font-size: 14px;
  text-align: center;
  border-radius: 3px;
}
.page-navigator a:hover,
.page-navigator .current a {
  background-color: #222;
  border: 1px solid #222;
  color: #fff;
}
/* ------------------
 * 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;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #aaa;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-style: normal;
}
.comment-content {
  color: #333;
}
/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
}
.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;
}
/* ------------------
 * Footer 
 * --------------- */
#footer {
  max-width: 740px;
  margin: 60px auto;
  line-height: 1.5;
  font-size: 13px;
}
/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}
/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.5;
  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 #e4e8ed;
  border-width: 2px 0 0 0;
}
/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 768px) {
  body {
    padding: 0 18px;
  }
  #nav-menu {
    display: none;
  }
  #body .container {
    padding: 0;
  }
}
