pre,
code {
    background: #F3F3F3;
    font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
    font-size: .92857em;
}

code {
    padding: 2px 4px;
    color: #B94A48;
}

pre {
    padding: 8px;
    overflow: auto;
    max-height: 400px;
}

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: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", 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;
}

.post-meta a,
.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;
}

.browsehappy {
    padding: 8px 0;
    background: #FBE3E4;
    color: #8A1F11;
    text-align: center;
}

.browsehappy a {
    color: #8A1F11;
    text-decoration: underline;
    font-weight: bold;
}

/**** header *****/
.navbar {
    height: 4rem;
    line-height: 4rem;
    width: 100%;
}

.navbar .container {
    width: auto;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.navbar .menu a {
    padding: 0 8px;
}

.container {
    padding-left: 1em;
    padding-right: 1em;
}

.intro .avatar img {
    width: 128px;
    height: auto;
    display: inline-block;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    -webkit-box-shadow: 0 0 0 0.3618em rgba(0,0,0,.05);
    box-shadow: 0 0 0 0.3618em rgba(0,0,0,.05);
    margin: 0 auto;
    -webkit-transition: all ease .4s;
    -moz-transition: all ease .4s;
    -o-transition: all ease .4s;
    transition: all ease .4s;
    cursor: pointer;
}

/***********************/

html {
    line-height: 1.15;
    font-family: 'Fira Code Medium',Microsoft Yahei,monospace;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0;

    font-size: 11pt;
    font-weight: normal;
    line-height: 2em;
    background-color: #fff;
    color: #161209;
    transition: color .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

/****** main  *********/
.main {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: auto;
}

.container {
    padding-left: 1em;
    padding-right: 1em;
}

.intro {
    transform: translateY(15vh);
    text-align: center;
}

.intro .avatar {
    padding: 10px;
}

.nickname {
    font-size: 2em;
    font-weight: normal;
}

/******* footer ********/

.footer {
    width: 100%;
    text-align: center;
}

.copyright {
    font-size: 14px;
}

/********* archives *********/

.post-wrap {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding-top: 2rem;
}

.archive-item-date {
    float: right;
    text-align: right;
    color: #a9a9b3;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    white-space: nowrap;
    width: 100%;
    padding-top: 2em;
}

.pagination .page-number.current {
    color: #000;
}

.pagination .page-number {
    padding-bottom: 3px;
    margin: 0 20px;
    box-sizing: border-box;
    position: relative;
    display: inline;
}

.pagination a, .pagination span {
    -webkit-font-smoothing: antialiased;
    font-size: 12px;
    color: #bfbfbf;
    letter-spacing: .1em;
    font-weight: 700;
    padding: 5px 5px;
    text-decoration: none;
    transition: .3s;
}

/********** category **************/
.post-wrap .post-title {
    font-size: 2em;
    line-height: 1.5em;
}

.post-wrap .categories-card {
    margin: 0 auto;
    margin-top: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 2.5em;
    line-height: 1.6em;
}

.post-wrap .categories-card .card-item {
    font-size: 14px;
    text-align: left;
    width: 50%;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.post-wrap .categories-card .card-item .categories {
    overflow: hidden;
}

.categories h3 {
    display: inline-block;
}

/********** tags *****************/

.tag-cloud-tags {
    margin: 10px 0;
    padding-top: 2em;
}

.tag-cloud-tags a {
    display: inline-block;
    position: relative;
    margin: 5px 10px;
    word-wrap: break-word;
    transition-duration: .3s;
    transition-property: transform;
    transition-timing-function: ease-out;
}

.tag-cloud-tags a:active, .tag-cloud-tags a:focus, .tag-cloud-tags a:hover {
    color: #5a9600;
    transform: scale(1.1);
}

.tag-cloud-tags a small {
    margin: 0 .3em;
    color: #a9a9b3;
}

/********* common **********/

a {
    color: #161209;
    text-decoration: none;
    transition: color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease;
    cursor: pointer;
}
a:hover {
    color: #5a9600;
    text-decoration: none;
    transition: color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease;
}

small {
    font-size: 80%;
}

/**************************/

#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;
    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;
    }
}

.post {
    padding: 15px 0 20px;
    border-bottom: 1px solid #EEE;
}

.post-title {
    margin: .83em 0;
    font-size: 1.4em;
}

.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;
    font-family: "Noto Serif SC", Lusitana, serif;
    font-size: 15px;
    color: #424242;
}

.post .tags {
    clear: both;
}

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

.post-near li {
    margin: 10px 0;
}

#catelogList {
    position: fixed;
    right: 50px;
    width: 25%;
    top: 150px;
    overflow: hidden;
    font-family: "Microsoft Yahei", sans-serif;
}

.k-catelog-list {
    overflow-y: auto;
    font-size: 14px;
}

.k-catelog-list>ul {
    padding: 0;
  }

  .k-catelog-list li {
      list-style: none;
  }

  .k-catelog-link {
    cursor: pointer;
    display: block;
    padding: 2px 12px;
    text-decoration: none;
    transition: background 0.5s;
    -moz-transition: background 0.5s;
    /* Firefox 4 */
    -webkit-transition: background 0.5s;
    /* Safari and Chrome */
    -o-transition: background 0.5s;
    /* Opera */
  }

  .k-catelog-link-active {
    background: #333;
    color: white;
  }

@media(max-width: 1000px) {
    #catelogList {
        display: none;
    }
    .archive-item-date {
        display: none;
    }
    .main {
        padding: 10px;
    }
}

.archive-title {
    margin: 1em 0 -1em;
    padding-top: 20px;
    color: #999;
    font-size: 1em;
}

.more {
    text-align: center;
}

.more a {
    border: none;
}

.protected .text {
    width: 50%;
}

.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;
}

#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-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 {
    padding-top: 15px;
    word-wrap: break-word;
}

.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;
}

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

.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;
}

.post-content hr,
.comment-content hr {
    margin: 2em auto;
    width: 100px;
    border: 1px solid #E9E9E9;
    border-width: 2px 0 0 0;
}

.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;
}

@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:1200px) {
    .container {
        max-width: 952px;
    }
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.sr-only {
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}