/* 检查配置期间隐藏文章内容，避免先闪现原文章 */
html.article-state-checking .article-container,
html.article-state-checking .article-content {
    visibility: hidden;
}

/* 博客文章页禁用状态：严格沿用合并前版权/隐私禁用页的 error-message 风格。
   禁用时整个 .article-container 被替换，文章标题/正文/操作区不再显示。 */

.article-unavailable-title {
    margin-bottom: 22px;
    text-align: center;
}

.error-message.article-unavailable {
    text-align: center;
    color: #e74c3c;
    padding: 40px;
    background: #fdf2f2;
    border-radius: 8px;
    margin: 20px 0;
}

.article-unavailable-detail {
    margin-top: 10px;
    color: #c0392b;
}

.article-unavailable-status {
    margin-top: 18px;
    font-size: 13px;
    color: #b06a5e;
}

.article-unavailable-link {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 20px;
    background: #4a6fa5;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.article-unavailable-link:hover {
    background: #3d5d8a;
}

.article-access-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.8;
    vertical-align: baseline;
    white-space: nowrap;
}

.article-access-badge.is-on {
    color: #1e7e34;
    background: #e9f7ef;
}

.article-access-badge.is-off {
    color: #b02a37;
    background: #fdecec;
}

@media (max-width: 600px) {
    .error-message.article-unavailable {
        padding: 28px 20px;
    }

    .article-unavailable-title {
        font-size: 26px;
    }
}
