@charset "utf-8";
/* ==========================================================================
   内容页视觉升级 - content-premium.css
   依赖 index-premium.css 中 body.hp-page 上的设计变量，与首页保持同一套视觉语言
   ========================================================================== */

/* 1. 页面主体 ------------------------------------------------------------- */
.co-page-main {
    padding: 26px 0 56px;
    background:
        radial-gradient(1200px 340px at 50% -180px, rgba(87, 168, 242, .22), transparent 70%),
        linear-gradient(180deg, #EAF2FC 0, #F3F8FE 260px, #F3F8FE 100%);
}

.co-wrap {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
}

/* 与首页一致的宽屏内容宽度（body.hp-wide 启用），减少左右留白 */
body.hp-wide .co-wrap {
    width: min(1400px, calc(100% - 280px));
}

/* 正文栏随内容区同步放宽，保持版面比例 */
body.hp-wide .co-article,
body.hp-wide .co-pager {
    max-width: 1080px;
}

/* 2. 面包屑 --------------------------------------------------------------- */
.co-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--hp-muted);
    font-size: 15px;
    line-height: 24px;
}

.co-crumb__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-text);
    text-decoration: none;
}

.co-crumb__home::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hp-blue-600);
}

.co-crumb a {
    color: var(--hp-text);
    text-decoration: none;
}

.co-crumb a:hover {
    color: var(--hp-blue-600);
}

.co-crumb__sep {
    color: #c8d4e2;
}

.co-crumb__current {
    color: var(--hp-muted);
}

/* 3. 布局 --------------------------------------------------------------- */
.co-layout {
    display: block;
}

/* 4. 正文卡片 ------------------------------------------------------------ */
.co-main {
    min-width: 0;
    padding: 46px 56px 48px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow);
}

.co-main__title {
    margin: 0;
    color: var(--hp-ink);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .01em;
    text-align: center;
}

.co-main__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-top: 18px;
    color: var(--hp-muted);
    font-size: 14px;
}

.co-main__meta-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.co-main__meta-item + .co-main__meta-item::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 1px;
    height: 12px;
    margin-top: -6px;
    background: #e3ebf5;
}

.co-main__meta em {
    color: var(--hp-text);
    font-style: normal;
}

.co-main__divider {
    height: 1px;
    margin: 26px 0 30px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--hp-line) 12%, var(--hp-line) 88%, transparent);
}

/* 6. 富文本正文排版 ------------------------------------------------------- */
.co-article {
    max-width: 940px;
    margin: 0 auto;
    color: #3D4D5F;
    font-size: 16px;
    line-height: 1.95;
    word-break: break-word;
}

.co-article p,
.co-article span,
.co-article div,
.co-article li,
.co-article td,
.co-article th,
.co-article font {
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.95 !important;
    color: #3D4D5F !important;
}

.co-article p {
    margin: 0 0 16px;
    text-indent: 2em;
    text-align: justify;
}

.co-article h1,
.co-article h2,
.co-article h3,
.co-article h4,
.co-article h5 {
    margin: 1.5em 0 .7em;
    color: var(--hp-ink) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-indent: 0;
}

.co-article h1 { font-size: 24px !important; }
.co-article h2 { font-size: 21px !important; }
.co-article h3 { font-size: 18px !important; }

.co-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
}

.co-article a {
    color: var(--hp-blue-600) !important;
    text-decoration: none;
}

.co-article a:hover {
    text-decoration: underline;
}

.co-article ul,
.co-article ol {
    margin: 0 0 16px;
    padding-left: 2em;
}

.co-article ul li {
    list-style: disc !important;
}

.co-article ol li {
    list-style: decimal !important;
}

.co-article table {
    width: 100% !important;
    margin: 18px 0;
    border-collapse: collapse;
}

.co-article table td,
.co-article table th {
    padding: 10px 12px;
    border: 1px solid var(--hp-line);
}

.co-article blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    border-left: 4px solid var(--hp-blue-500);
    border-radius: 0 10px 10px 0;
    background: var(--hp-blue-50);
}

.co-article blockquote p {
    margin: 0;
    text-indent: 0;
}

/* 7. 上一篇 / 下一篇 ------------------------------------------------------ */
.co-pager {
    display: grid;
    gap: 12px;
    max-width: 940px;
    margin: 40px auto 0;
    padding-top: 26px;
    border-top: 1px dashed var(--hp-line);
}

.co-pager__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 10px;
    background: #F8FBFF;
    border: 1px solid var(--hp-line);
    color: var(--hp-text);
    font-size: 15px;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.co-pager__item:hover {
    background: var(--hp-blue-50);
    border-color: #cfe4fb;
    transform: translateX(2px);
}

.co-pager__label {
    flex: 0 0 auto;
    color: var(--hp-muted);
    font-size: 14px;
}

.co-pager__text {
    overflow: hidden;
    flex: 1 1 auto;
    color: var(--hp-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.co-pager__item.is-empty {
    background: #FAFCFF;
    color: var(--hp-muted);
    cursor: default;
}

.co-pager__item.is-empty:hover {
    background: #FAFCFF;
    border-color: var(--hp-line);
    transform: none;
}

.co-pager__item.is-empty .co-pager__text {
    color: var(--hp-muted);
}

/* 8. 分页 ----------------------------------------------------------------- */
.co-pagebar {
    margin-top: 24px;
    text-align: center;
}

/* 9. 响应式 --------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
    .co-main {
        padding: 38px 38px 40px;
    }
}

@media screen and (max-width: 900px) {
    .co-page-main {
        padding: 18px 0 40px;
    }

    .co-main {
        padding: 26px 20px 30px;
    }

    .co-main__title {
        font-size: 22px;
    }

    .co-main__divider {
        margin: 20px 0 22px;
    }
}
