* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f6f8;
    color: #222;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        "PingFang SC",
        Arial,
        sans-serif;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Container
|--------------------------------------------------------------------------
*/

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.site-header .container {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav a {
    color: #555;
    font-size: 15px;
}

.nav a:hover {
    color: #111;
    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.hero {
    margin-top: 30px;
    padding: 45px 40px;

    background: #fff;
    border-radius: 8px;

    border: 1px solid #e8e8e8;
}

.hero h1 {
    margin: 0 0 12px;

    font-size: 32px;
    line-height: 1.4;
}

.hero p {
    margin: 0;

    color: #666;
    font-size: 16px;
}


/*
|--------------------------------------------------------------------------
| Section
|--------------------------------------------------------------------------
*/

.section {
    margin-top: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.section-title h2 {
    margin: 0;

    font-size: 24px;
    line-height: 1.4;
}

.section-title h2 a:hover {
    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Article List
|--------------------------------------------------------------------------
*/

.article-list {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.article-item {
    padding: 20px 24px;

    border-bottom: 1px solid #eeeeee;
}

.article-item:last-child {
    border-bottom: 0;
}

.article-item h2,
.article-item h3 {
    margin: 0 0 8px;

    font-size: 18px;
    line-height: 1.5;
}

.article-item h2 a,
.article-item h3 a {
    color: #222;
}

.article-item h2 a:hover,
.article-item h3 a:hover {
    color: #555;
}

.article-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;

    margin-top: 8px;

    color: #999;
    font-size: 13px;
}

.article-excerpt {
    margin: 8px 0 0;

    color: #666;
    font-size: 14px;

    line-height: 1.8;
}


/*
|--------------------------------------------------------------------------
| Category Grid
|--------------------------------------------------------------------------
*/

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.category-card {
    padding: 25px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.category-card h2 {
    margin: 0 0 10px;

    font-size: 20px;
}

.category-card p {
    margin: 0 0 15px;

    color: #666;
    font-size: 14px;
}

.category-card .more {
    color: #666;
    font-size: 14px;
}

.category-card .more:hover {
    color: #111;
}


/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.breadcrumb {
    margin-top: 25px;
    margin-bottom: 20px;

    color: #888;

    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #111;
}


/*
|--------------------------------------------------------------------------
| Category Header
|--------------------------------------------------------------------------
*/

.category-header {
    margin-bottom: 25px;

    padding: 35px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.category-header h1 {
    margin: 0 0 10px;

    font-size: 30px;
}

.category-header p {
    margin: 0;

    color: #666;
}


/*
|--------------------------------------------------------------------------
| Article
|--------------------------------------------------------------------------
*/

.article {
    margin-bottom: 30px;

    padding: 40px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.article h1 {
    margin: 0 0 15px;

    font-size: 32px;
    line-height: 1.5;
}

.article-content {
    margin-top: 30px;

    color: #333;

    font-size: 16px;
}

.article-content h2 {
    margin-top: 35px;
    margin-bottom: 12px;

    font-size: 22px;
    line-height: 1.5;
}

.article-content p {
    margin-top: 0;
    margin-bottom: 18px;
}


/*
|--------------------------------------------------------------------------
| Article Navigation
|--------------------------------------------------------------------------
*/

.article-navigation {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.prev-article,
.next-article {
    padding: 20px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.prev-article span,
.next-article span {
    display: block;

    margin-bottom: 6px;

    color: #999;

    font-size: 13px;
}

.prev-article a,
.next-article a {
    font-size: 15px;
    font-weight: 500;
}


/*
|--------------------------------------------------------------------------
| Related Articles
|--------------------------------------------------------------------------
*/

.related-articles {
    margin-bottom: 40px;

    padding: 25px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.related-articles h2 {
    margin: 0 0 15px;

    font-size: 22px;
}

.related-articles ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.related-articles li {
    padding: 10px 0;

    border-bottom: 1px solid #eeeeee;
}

.related-articles li:last-child {
    border-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 35px 0 45px;

    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 5px;

    color: #555;

    font-size: 14px;
}

.pagination a:hover {
    text-decoration: none;
}

.pagination .current {
    background: #222;
    border-color: #222;
    color: #fff;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    margin-top: 50px;

    padding: 30px 0;

    background: #fff;

    border-top: 1px solid #e8e8e8;

    color: #999;

    font-size: 13px;

    text-align: center;
}

.site-footer p {
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }


    /*
     * Header
     */

    .site-header .container {
        padding-top: 15px;
        padding-bottom: 15px;

        display: block;
    }

    .logo {
        display: block;

        margin-bottom: 12px;

        font-size: 20px;
    }

    .nav {
        gap: 10px 18px;
    }

    .nav a {
        font-size: 14px;
    }


    /*
     * Hero
     */

    .hero {
        margin-top: 20px;

        padding: 30px 22px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }


    /*
     * Section
     */

    .section {
        margin-top: 20px;
    }

    .section-title h2 {
        font-size: 21px;
    }


    /*
     * Category
     */

    .category-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .category-card {
        padding: 20px;
    }


    /*
     * Article
     */

    .article {
        padding: 25px 20px;
    }

    .article h1 {
        font-size: 25px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 20px;
    }


    /*
     * Navigation
     */

    .article-navigation {
        grid-template-columns: 1fr;
    }


    /*
     * Article list
     */

    .article-item {
        padding: 18px;
    }

    .article-item h2,
    .article-item h3 {
        font-size: 17px;
    }


    /*
     * Category header
     */

    .category-header {
        padding: 25px 20px;
    }

    .category-header h1 {
        font-size: 25px;
    }

}



