a {
    text-decoration: none;
    color: #000;
}

a:visited {
    color: #555;
}

a:hover {
    color: #0DAAEA;
}

.active {
    color: blue !important;
}

body {
    margin: 0;
    background: #f8f8f8;
    font-size: 14px;
}

#top-nav, #menu-nav {
    width: 100%;
    font-size: 14px;
}

.menu-nav-place {
    height: 80px;
    width: 100%;
    visibility: hidden;
}

#menu-nav {
    background: #fff;
    font-weight: bold;
    height: 80px;
    line-height: 80px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
    border-bottom: 1px solid #ebebeb;
    z-index: 9999;
}

.menu-content > .toggle-button {
    display: none;
}

.top-nav, .menu, .container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.top-nav, .menu, .main-page, .paginator, .article-list .item, .comment-header,
.article-list .post-tool, .post-navigation, .comment-respond-header, #search {
    display: flex;
    display: -moz-flex;
    display: -webkit-flex;
    justify-content: space-between;
}

.paginator {
    justify-content: center;
    list-style: none;
    margin: 10px 10px 10px 0;
    padding: 0;
}

.paginator > li {
    min-width: 20px;
    height: 20px;
    text-align: center;
    text-decoration: none;
    margin-right: 5px;
    background: #fff;
    padding: 5px;
    border: 1px solid gainsboro;
}

.top-nav {
    color: #999;
    padding: 5px;
}

.pages a {
    padding-left: 10px;
    color: #999;
}

.pages a:hover {
    color: #0DAAEA;
}

.menu .logo {
    font-size: 26px;
}

.menu-content {
    position: relative;
}

.menu-content .menu-item {
    display: inline-block;
}

.menu-item > a {
    padding-left: 10px;
}

.article-list {
    width: 800px;
}

.sidebar {
    width: 280px;
}

.article-list .item, .sidebar .widget, .article {
    background: #fff;
    border: 1px solid #cdcdcd;
    margin-top: 20px;
}

.article-list .item {
    width: 100%;
    height: 222px;
}

.sidebar .widget {
    padding: 10px 10px;
}

.widget p {
    margin: 0;
}

.widget h4 {
    margin: 5px 0;
}

.article-list .item {
    justify-content: start;
}

.article-list .item:hover {
    box-shadow: 0 0 6px 3px #ddd;
}

.article-list .item .thumbnail {
    width: 270px;
    height: 180px;
    margin: 30px 15px;
    position: relative;
    z-index: 99;
}

.article-list .item .thumbnail a img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.article-list .post-description {
    flex: 1;
}

.article-list .item .post-date {
    background: #0DAAEA;
    text-align: center;
    line-height: 25px;
    color: #fff;
    font-size: 12px;
    margin-top: 0;
    position: absolute;
    padding: 0 7px;
}

.article-list .item .title {
    margin-top: 30px;
}

.post-title {
    overflow: hidden;
    height: 30px;
    color: #333;
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    margin: 0;
}

.preview-content {
    margin-top: 8px;
    width: 100%;
    height: 115px;
    color: #656565;
    line-height: 25px;
}

.category, .views, .comment, .date, .edit {
    margin-right: 10px;
    color: #a9a9a9;
    font-size: 14px;
}

.category a, .views a, .comment a, .edit a {
    color: #a9a9a9;
}

#search {
    padding: 8px 15px;
}

#search input {
    padding: 2px 10px;
    width: 65%;
    height: 37px;
    border: 1px solid #ebebeb;
    border-radius: 2px 0 0 2px;
    background: #ebebeb;
    font: 14px "Microsoft YaHei", Helvetica;
    line-height: 37px;
    -webkit-appearance: none;
}

#search button {
    position: relative;
    overflow: visible;
    width: 25%;
    height: 43px;
    border: 0;
    border-radius: 0 2px 2px 0;
    background: #0DAAEA;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
}

.readMore a {
    display: block;
    padding: 10px;
    color: #fff;
    background: #0DAAEA;
}

footer {
    margin: 20px 5px;
    text-align: center;
}

.article {
    padding: 20px;
}

.article .title {
    position: relative;
    margin-bottom: 10px;
    padding: 7px 10px;
    color: #333;
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    line-height: 35px;
}

.post-info {
    margin-bottom: 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #ededed;
    color: #737373;
    text-align: center;
}

.article .content {
    font-size: 16px;
}

.article .content {
    word-wrap: break-word;
    word-break: break-all;
}

.article .content p {
    text-indent: 2em;
    line-height: 30px;
}

.article .content li {
    padding-top: 5px;
}

/* 列表项被判为「松散」时（项内有空行或块级元素，如内嵌表格），CommonMark 会把项内文本包进 <p>。
   浏览器默认的 p 上下 margin 加上主题的段首缩进，会让列表里的文字与项目符号错位，这里在列表内压平。 */
.article .content li > p {
    margin: 0;
    text-indent: 0;
}

/* 存量表格：旧文的内联 border/style 已转成 Markdown pipe 表，边框样式集中在此。
   单元格的 text-align 由 pipe 表的 :---: 对齐标记生成，不在这里覆盖。 */
.article .content table {
    margin: 10px 0;
    border-collapse: collapse;
    max-width: 100%;
}

.article .content th,
.article .content td {
    padding: 4px 10px;
    border: 1px solid #ddd;
    line-height: 26px;
}

.article .content thead th {
    background: #f7f7f7;
    font-weight: 700;
}

.post-navigation {
    clear: both;
    margin: 20px 0 -10px;
    height: 40px;
}

.post-navigation div {
    position: relative;
    display: block;
    width: calc(50% - 40px);
    color: #999;
    font-size: 14px;
}

.post-next, .post-previous {
    white-space: nowrap;
    word-wrap: normal;
    text-overflow: ellipsis;
    overflow: hidden;
}

.post-previous {
    padding-left: 40px;
}

.post-next {
    padding-right: 40px;
    text-align: right;
}

.post-navigation div a:after {
    position: absolute;
    top: 34%;
    margin-top: -11px;
    height: 22px;
    color: #ccc;
    font-size: 60px;
    line-height: 22px;
}

.post-previous a:after {
    left: 0;
    content: '«';
}

.post-next a:after {
    right: 0;
    content: '»';
}

.post-navigation div span {
    display: block;
    color: #999;
    font-size: 80%;
}

.respond, .respond h3 {
    margin: 0 0 10px;
}

#comments {
    border: 1px solid #e6e6e6;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
}

.comment-header {
    justify-content: start;
}

.respond {
    margin-top: 10px;
    border-top: 1px solid #e6e6e6;
    padding-top: 10px;
}

#cancel-comment-reply-link {
    padding: 2px 10px;
    border: 1px solid #ebebeb;
    border-radius: 2px;
    height: 21px;
}

#comments > h3 {
    margin-top: 10px;
}

#comment-form input, #comment-form textarea {
    outline: none;
    border: 1px solid #ebebeb;
    margin: 0 10px 10px 0;
}

#comment-form input {
    background: #fff;
    -webkit-appearance: none;
    padding: 0 5px;
    width: 50%;
    height: 37px;
}

#comment-form textarea {
    background: url("../images/commentbox.png") no-repeat center;
    padding: 5px;
    width: calc(100% - 10px);
    border-radius: 2px;
    color: #444;
    font: 14px "Microsoft YaHei", Helvetica, Arial, Lucida Grande, Tahoma, sans-serif;
    line-height: 180%;
    resize: vertical;
}

.submit:hover {
    opacity: .6;
}

.submit {
    border: 1px solid #0DAAEA;
    background: #0DAAEA;
    margin: 0 10px 10px 0;
    padding: 6px;
    width: 20%;
    min-width: 80px;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    transition: all .2s ease-in 0s;
    -webkit-appearance: none;
}

.input {
    border: 1px solid #999;
    margin: 0 10px 10px 0;
    padding: 6px;
    min-width: 80px;
    border-radius: 2px;
    outline: none;
    transition: all .2s ease-in 0s;
    -webkit-appearance: none;
}

.input:hover, .input:focus {
    border: 1px solid #0DAAEA;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    margin-top: 10px;
}

.avatar {
    border-radius: 50px;
    width: 50px;
    height: 50px;
    margin-right: 5px;
}

.comment-author span {
    padding-left: 5px;
    font-size: 16px;
}

.comment-meta {
    margin-top: 10px;
    font-size: 16px;
}

.comment-meta a, .comment-awaiting-moderation {
    color: #a9a9a9;
    padding-left: 5px;
}

.comment-content {
    margin: 20px 0 20px 60px;
}

.comment-children {
    padding-left: 50px;
}
