:root {
    --primary-color: #315efb;
    --title-size: 20px;
    --logo-size: 32px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Ubuntu", "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

ul li {
    list-style-type: none;
}

h1 {
    margin: 0;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #315efb;
}

a.link {
    color: var(--primary-color);
    margin-right: 8px;
}

/* 代码块 */
pre,
code {
    background-color: #f5f5f5;
    border: 1px solid #ebebeb;
}
code {
    padding: 0 5px;
    color: #c33;
}
pre {
    display: block;
    padding: 0;
    padding: 1.25rem;
    margin-bottom: 20px;
    margin-bottom: 1.25rem;
    overflow: auto;
    color: #000;
}
pre code {
    padding: 0;
    color: inherit;
    white-space: inherit;
    background: inherit;
    border: 0;
}

/* 表格 */
table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}
table th,
table td {
    padding: 10px;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}
table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}
table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

#main {
    width: 1000px;
    margin: 0px auto;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.post-meta > div {
    margin-right: 10px;
}

.controls {
    position: fixed;
    right: 10px;
    bottom: 10%;
    display: none;
}
.controls>button  {
     cursor: pointer;
}

/* 导航 */
.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}
.nav .divide {
    margin: 0 10px;
}

/* 分页 */
.pagination {
    margin: 30px 0;
}
.pagination__item:hover,
.pagination__item--current {
    color: blue;
}
.pagination__item {
    margin-right: 15px;
}

/* 列表 */
.list .item {
    margin-bottom: 20px;
}
.list .title {
    font-size: var(--title-size);
    margin-bottom: 10px;
    font-weight: bold;
}
.list .summary {
    line-height: 25px;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 页面基础 */
.page {
    padding: 0 20px;
}
.page h1.title {
    margin-bottom: 30px;
}

/* 首页 */
.page-home {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.page-home .header {
    text-align: center;
    flex: 0 1 100px;
    margin: 30px 0;
}
.page-home .header h1 {
    font-size: var(--logo-size);
    margin: 0;
    margin-bottom: 15px;
}
.page-home .main {
    flex: 0 1 100%;
}
.page-home .list .item {
    margin-bottom: 30px;
}
.page-home .footer {
    text-align: center;
    flex: 0 1 80px;
    padding: 10px 0 20px;
}
.page-home .more {
    text-align: right;
}
.page-home .more a {
    color: var(--primary-color);
}
.page-home .nav {
    margin: 20px 0 5px;
}
.page-home .pagination {
    
}

/* 文章详情页面 */
.page-single {
    margin: 30px 0;
}
.page-single .header {
    text-align: center;
}
.page-single .title {
    margin-bottom: 15px;
}
.page-single .content {
    line-height: 30px;
    font-size: 17px;
}
.page-single .post-meta {
    justify-content: center;
    margin: 20px 0;
}
.page-single .content p {
    margin: 10px 0;
}
.page-single .content li p {
    text-indent: 30px;
}
.page-single .content ul,
.page-single .content li {
    margin: 0;
    padding: 0;
}
.page-single .content a {
    /*text-decoration: underline;*/
    color: #0d29e1;
}

/* 归档页面 */
.page-archive .archive-year {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.page-archive .archive-post {
    margin: 0 0 20px 20px;
}
.page-archive .post-link {
    margin-left: 10px;
}
.page-archive .pagination {
    margin-left: 20px;
}

/* 标签列表页 */
.page-tags .list {
    display: flex;
    flex-wrap: wrap;
}
.page-tags .list .item {
    flex: 0 1 20%;
}

/* 404页面 */
.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 600px;
}

@media screen and (max-width: 800px) {
    #main {
        width: 100%;
        max-width: 100%;
    }
    .post-meta {
        flex-wrap: wrap;
    }
    .post-meta .date {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    .page-tags .list .item {
        flex: 0 1 33.33%;
    }
    .pagination {
        text-align: center;
    }
    .controls {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .page-tags .list .item {
        flex: 0 1 50%;
    }
}
