/* =====================================================
   博客文章页面
===================================================== */

.blog-post-page {
    width: 100%;
    padding: 0 0 50px;
}

.blog-container {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}


/* =====================================================
   面包屑导航
===================================================== */

.blog-post-page .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    padding: 16px 0;

    font-size: 12px;
    color: var(--muted);
}

.blog-post-page .breadcrumb a {
    color: #0757c9;
    font-weight: 800;
}

.blog-post-page .breadcrumb a:hover {
    color: var(--red);
}


/* =====================================================
   文章
===================================================== */

.blog-post-page .article-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.blog-post-page .article-head {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;

    padding: 24px;

    box-shadow: var(--shadow);
}

.blog-post-page .article-head .category {
    display: inline-block;

    background: #eef4ff;
    color: #0757c9;

    padding: 5px 9px;
    border-radius: 7px;

    font-size: 10px;
    font-weight: 900;
}

.blog-post-page .article-head h1 {
    margin: 8px 0 6px;

    color: var(--navy);

    font-size: 34px;
    line-height: 1.15;
}

.blog-post-page .article-head .meta {
    color: var(--muted);
    font-size: 11px;
}

.blog-post-page .article-cover-large {
    width: 100%;
    max-height: 390px;

    margin-top: 16px;

    object-fit: cover;

    border-radius: 12px;
}


/* =====================================================
  文章内容
===================================================== */

.blog-post-page .article-content {
    margin-top: 14px;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: 16px;

    padding: 26px;

    box-shadow: var(--shadow);
}

.blog-post-page .article-content p {
    margin: 0 0 16px;

    color: #3f5275;

    font-size: 14px;
    line-height: 1.75;
}

.blog-post-page .article-content h2 {
    margin: 28px 0 10px;

    padding-left: 12px;

    border-left: 4px solid var(--red);

    color: var(--navy);

    font-size: 22px;
    line-height: 1.3;
}

.blog-post-page .article-content h3 {
    margin: 22px 0 8px;

    color: var(--navy);

    font-size: 17px;
    line-height: 1.4;
}

.blog-post-page .article-content ul {
    margin: 8px 0 18px;
    padding-left: 22px;
}

.blog-post-page .article-content li {
    margin-bottom: 7px;

    color: #3f5275;

    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
  编者按
===================================================== */

.blog-post-page .article-note {
    margin: 18px 0;

    padding: 13px;

    background: #f5f9ff;

    border: 1px solid #d7e5fa;
    border-radius: 10px;

    color: #405577;

    font-size: 12px;
    line-height: 1.6;
}


/* =====================================================
   目录
===================================================== */

.blog-post-page .auto-toc {
    margin: 20px 0;

    background: #fff;

    border: 1px solid var(--line);
    border-radius: 12px;

    overflow: hidden;
}

.blog-post-page .auto-toc-toggle {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 15px;

    border: 0;
    background: #fff;

    cursor: pointer;

    text-align: left;
}

.blog-post-page .toc-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-post-page .auto-toc-title-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: var(--navy);
    color: #fff;

    font-size: 15px;
}

.blog-post-page .auto-toc-toggle strong {
    display: block;

    color: var(--navy);

    font-size: 15px;
}

.blog-post-page .auto-toc-toggle small {
    color: var(--muted);
    font-size: 10px;
}

.blog-post-page .toc-arrow {
    color: var(--navy);
    font-size: 18px;
}

.blog-post-page .auto-toc.open .auto-toc-toggle {
    border-bottom: 1px solid var(--line);
}

.blog-post-page .auto-toc-content {
    padding: 5px 15px 12px;
}

.blog-post-page .auto-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-post-page .auto-toc-list li {
    margin: 0;
    border-bottom: 1px solid #e8edf5;
}

.blog-post-page .auto-toc-list li:last-child {
    border-bottom: 0;
}

.blog-post-page .auto-toc-list a {
    display: block;

    padding: 9px 5px;

    color: #30466f;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.blog-post-page .auto-toc-list a:hover,
.blog-post-page .auto-toc-list a.active {
    color: var(--red);
}

.blog-post-page .auto-toc-list .toc-h3 {
    padding-left: 24px;

    color: #687793;

    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   相关指南
===================================================== */

.blog-post-page .related-box {
    margin-top: 18px;

    padding: 22px;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: 16px;

    box-shadow: var(--shadow);
}

.blog-post-page .related-box h2 {
    margin: 0 0 14px;

    color: var(--navy);

    font-size: 21px;
}

.blog-post-page .related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.blog-post-page .related a {
    padding: 11px 13px;

    background: #fbfcff;

    border: 1px solid var(--line);
    border-radius: 9px;

    color: var(--navy);

    font-size: 12px;
    font-weight: 800;
}

.blog-post-page .related a:hover {
    color: #0757c9;
    border-color: #aac1ed;
}

@media (max-width: 680px) {

    .blog-post-page {
        padding-bottom: 75px;
    }

    .blog-container {
        width: calc(100% - 20px);
    }

    .blog-post-page .breadcrumb {
        padding: 12px 2px;

        font-size: 10px;
    }

    .blog-post-page .article-head {
        padding: 16px;
        border-radius: 13px;
    }

    .blog-post-page .article-head h1 {
        font-size: 27px;
        line-height: 1.15;
    }

    .blog-post-page .article-cover-large {
        margin-top: 13px;
        max-height: 230px;
        border-radius: 10px;
    }

    .blog-post-page .article-content {
        margin-top: 10px;
        padding: 16px;
        border-radius: 13px;
    }

    .blog-post-page .article-content h2 {
        margin-top: 23px;
        font-size: 19px;
    }

    .blog-post-page .article-content h3 {
        font-size: 15px;
    }

    .blog-post-page .article-content p,
    .blog-post-page .article-content li {
        font-size: 13px;
        line-height: 1.65;
    }

    .blog-post-page .related-box {
        padding: 16px;
        border-radius: 13px;
    }

    .blog-post-page .related {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {

    .blog-container {
        width: calc(100% - 16px);
    }

    .blog-post-page .article-head {
        padding: 14px;
    }

    .blog-post-page .article-head h1 {
        font-size: 24px;
    }

    .blog-post-page .article-content {
        padding: 14px;
    }

    .blog-post-page .article-content h2 {
        font-size: 18px;
    }
}