.gdfc-article-page {
    padding-top: 48px;
    padding-bottom: 0;
}

.gdfc-article-page__breadcrumb {
    min-height: 24px;
    margin-bottom: 20px;
    color: #7a848c;
    font-size: 14px;
    line-height: 24px;
}

.gdfc-article-page__breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.gdfc-article-page__breadcrumb li:not(:last-child)::after {
    margin: 0 8px;
    content: "/";
    color: #a8b0b6;
}

.gdfc-article-page__breadcrumb a:hover,
.gdfc-article-page__breadcrumb a:focus {
    color: #c9002b;
}

.gdfc-article-detail {
    width: 100%;
    min-height: 1180px;
    padding: 24px 32px 72px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 32, 39, .06);
}

.gdfc-article-detail__header {
    padding-bottom: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.gdfc-article-detail__title {
    max-width: 1000px;
    margin: 0 auto;
    color: #172027;
    font-size: 32px;
    font-weight: 700;
    line-height: 52px;
    overflow-wrap: anywhere;
}

.gdfc-article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 16px;
    min-height: 24px;
    color: #5f6d76;
    font-size: 14px;
    line-height: 24px;
}

.gdfc-article-detail__cover {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 32px auto 0;
    border-radius: 8px;
}

.gdfc-article-detail__body {
    margin-top: 40px;
}

.gdfc-article-detail__body [data-article-align="left"] {
    text-align: left;
}

.gdfc-article-detail__body [data-article-align="center"] {
    text-align: center;
}

.gdfc-article-detail__body [data-article-align="center"] img {
    margin-right: auto;
    margin-left: auto;
}

.gdfc-article-detail__body [data-article-align="right"] {
    text-align: right;
}

.gdfc-article-detail__body [data-article-align="justify"] {
    text-align: justify;
}

.gdfc-article-detail__empty {
    margin-top: 40px;
    color: #172027;
    font-size: 16px;
    line-height: 32px;
    overflow-wrap: anywhere;
}

.gdfc-article-detail__body img {
    max-width: 100% !important;
    height: auto;
}

/* 仅兜底兼容历史内容中无效的 image_resized + width:auto 结构。 */
.gdfc-article-detail__body figure.image.image_resized[style*="width:auto"],
.gdfc-article-detail__body figure.image.image_resized[style*="width: auto"] {
    display: table;
}

.gdfc-article-detail__body figure.image.image_resized[style*="width:auto"] img,
.gdfc-article-detail__body figure.image.image_resized[style*="width: auto"] img {
    width: auto;
    min-width: 0;
}

.article-image-viewer {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: #ffffff;
    background: #000000;
    border: 0;
    overscroll-behavior: contain;
}

.article-image-viewer::backdrop {
    background: rgba(0, 0, 0, .9);
}

.article-image-viewer__stage {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
}

.article-image-viewer__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.article-image-viewer__close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    background: rgba(0, 0, 0, .62);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    cursor: pointer;
}

html.article-image-viewer-open,
html.article-image-viewer-open body {
    overflow: hidden;
}

.gdfc-article-detail__attachments {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: 8px -32px 0;
    padding: 0 32px;
    color: #c9002b;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
}

.gdfc-article-detail__attachments .attachment-list {
    display: flex;
    align-items: center;
    width: 100%;
}

.gdfc-article-detail__attachments h2 {
    flex: 0 0 auto;
    margin-right: 8px;
    font-size: inherit;
    font-weight: inherit;
}

.gdfc-article-detail__attachments ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-width: 0;
}

.gdfc-article-detail__attachments a {
    overflow-wrap: anywhere;
}

.gdfc-article-detail__attachments span {
    color: #7a848c;
    font-weight: 400;
}

.gdfc-article-detail__adjacent {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    color: #5f6d76;
    font-size: 14px;
    line-height: 24px;
    border-top: 1px solid #e4e7e9;
}

.gdfc-article-detail__adjacent a {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.gdfc-article-detail__adjacent a:hover,
.gdfc-article-detail__adjacent a:focus {
    color: #c9002b;
}

@media (max-width: 900px) {
    .gdfc-article-page {
        padding-top: 28px;
    }

    .gdfc-article-detail {
        min-height: 0;
        padding: 20px 20px 48px;
    }

    .gdfc-article-detail__title {
        font-size: 26px;
        line-height: 40px;
    }

    .gdfc-article-detail__attachments {
        margin-right: -20px;
        margin-left: -20px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 600px) {
    .gdfc-article-page {
        padding-top: 20px;
    }

    .gdfc-article-page__breadcrumb {
        margin-bottom: 12px;
    }

    .gdfc-article-detail {
        padding: 18px 16px 36px;
    }

    .gdfc-article-detail__title {
        font-size: 22px;
        line-height: 34px;
    }

    .gdfc-article-detail__body {
        margin-top: 24px;
    }

    .gdfc-article-detail__empty {
        margin-top: 24px;
        font-size: 16px;
        line-height: 30px;
    }

    .gdfc-article-detail__attachments {
        align-items: flex-start;
        flex-direction: column;
        margin-right: -16px;
        margin-left: -16px;
        padding: 12px 16px;
    }

    .gdfc-article-detail__attachments .attachment-list {
        align-items: flex-start;
        flex-direction: column;
    }
}
