@charset "utf-8";

/* 文章详情页：按参考图还原为轮播图下方的居中单栏文章。 */
.article-detail-page {
    background: #fff;
    color: #222;
}

.article-detail-page *,
.article-detail-page *::before,
.article-detail-page *::after {
    box-sizing: border-box;
}

.article-detail-page .page-breadcrumb {
    border: 0;
    box-shadow: none;
}

.article-detail-page .page-breadcrumb__inner {
    width: 850px;
    max-width: calc(100% - 48px);
    min-height: 52px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.article-detail-page .page-breadcrumb__inner a {
    color: #555;
}

.article-detail-main {
    padding: 0 0 112px;
    background: #fff;
}

.article-detail-shell {
    width: 850px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

.article-detail-header {
    padding: 5px 0 46px;
    text-align: center;
}

.article-detail-header h1 {
    margin: 0;
    color: #222;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 22px;
    color: #999;
    font-size: 12px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.article-detail-views,
.article-detail-favorite {
    position: relative;
}

.article-detail-views::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 8px;
    margin-right: 6px;
    border: 1px solid #aaa;
    border-radius: 50%;
    vertical-align: 1px;
}

.article-detail-views::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #aaa;
}

.article-detail-favorite {
    color: #666;
}

.article-detail-favorite::first-letter {
    color: #ea7272;
}

.article-content {
    width: 100%;
    color: #222;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 2;
    overflow-wrap: break-word;
}

.article-content > :first-child {
    margin-top: 0 !important;
}

.article-content > :last-child {
    margin-bottom: 0 !important;
}

.article-content p,
.article-content div {
    max-width: 100%;
    margin: 0 0 24px;
    color: inherit;
    font-size: inherit !important;
    line-height: inherit !important;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 28px 0 14px;
    color: #222;
    font-weight: 400;
    line-height: 1.7;
}

.article-content h1,
.article-content h2 {
    font-size: 20px !important;
}

.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-size: 17px !important;
}

.article-content a {
    color: #333;
    text-decoration: underline;
}

.article-content img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 26px auto 24px;
}

.article-content table {
    width: 100% !important;
    margin: 24px 0;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 12px 20px;
    border-left: 2px solid #bbb;
    color: #555;
}

.article-siblings {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-top: 110px;
    color: #666;
    font-size: 12px;
    line-height: 1.8;
}

.article-sibling {
    display: flex;
    min-width: 0;
    max-width: 48%;
    align-items: flex-start;
}

.article-sibling--next {
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
}

.article-sibling > span:first-child {
    flex: 0 0 auto;
    margin-right: 5px;
    color: #888;
}

.article-sibling a,
.article-sibling__empty {
    color: #666;
}

.article-sibling a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-sibling a:hover,
.article-sibling a:focus-visible {
    color: #36bcf9;
}

.article-sibling a:focus-visible {
    outline: 1px solid #36bcf9;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .article-detail-page .page-breadcrumb__inner,
    .article-detail-shell {
        width: calc(100% - 32px);
        max-width: none;
    }

    .article-detail-page .page-breadcrumb__inner {
        min-height: 46px;
    }

    .article-detail-main {
        padding-bottom: 70px;
    }

    .article-detail-header {
        padding-bottom: 34px;
    }

    .article-detail-header h1 {
        font-size: 22px;
    }

    .article-detail-meta {
        flex-wrap: wrap;
        gap: 8px 24px;
        margin-top: 16px;
    }

    .article-content {
        font-size: 14px;
        line-height: 1.85;
    }

    .article-siblings {
        display: block;
        margin-top: 70px;
    }

    .article-sibling {
        max-width: 100%;
    }

    .article-sibling--next {
        justify-content: flex-start;
        margin-top: 12px;
        text-align: left;
    }
}
