/* ============================================================
   news-article.css  —  公众号「科创连线」政务调研风文章版式
   适用：news-detail.html（CMS 渲染）与 *-visit-*.html（静态兜底）
   配色：深蓝科技头图 #0F1F3D + 品牌藏蓝关键词 #1E4D8C + 红绸点缀（LOGO 红）
   ============================================================ */

/* ---------- 顶部深蓝科技头图 ---------- */
.article-banner {
    position: relative;
    overflow: hidden;
    padding: 84px 0 118px;
    color: #fff;
    background:
        radial-gradient(900px 360px at 82% -10%, rgba(70, 124, 220, .34), transparent 60%),
        radial-gradient(700px 320px at 8% 118%, rgba(46, 117, 182, .28), transparent 60%),
        linear-gradient(160deg, #16335f 0%, #0f1f3d 46%, #0a1628 100%);
}
/* 电路网格 + 光点纹理 */
.article-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        linear-gradient(rgba(120, 170, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 170, 255, .07) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(120% 100% at 70% 0, #000 30%, transparent 78%);
    mask-image: radial-gradient(120% 100% at 70% 0, #000 30%, transparent 78%);
}
.article-banner::after {
    content: '';
    position: absolute;
    right: -90px; top: 70px;
    width: 320px; height: 320px;
    border: 1px solid rgba(150, 190, 255, .14);
    border-radius: 26px;
    transform: rotate(-8deg);
    pointer-events: none;
}
.article-banner .container { position: relative; z-index: 1; }
.article-banner .breadcrumb { color: rgba(255, 255, 255, .62); }
.article-banner .breadcrumb a { color: rgba(255, 255, 255, .82); }

/* 栏目胶囊：白底蓝字 */
.article-tag.wx-column {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    color: #16335f;
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(6, 20, 44, .25);
}
.article-tag.wx-column::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary, #D13931);
}

.article-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: .5px;
    text-shadow: 0 2px 18px rgba(4, 14, 34, .45);
    margin-bottom: 20px;
}

/* 毛玻璃副标题卡 */
.article-subtitle {
    display: inline-block;
    max-width: 680px;
    margin: 0 0 22px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
    color: #16294a;
    background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(240, 245, 255, .88));
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(6, 20, 44, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.article-meta { font-size: 14px; color: rgba(255, 255, 255, .66); }
.article-meta span { margin-right: 24px; }

/* ---------- 正文：浅蓝灰底 + 上浮白色大卡 ---------- */
.article-content-section {
    position: relative;
    padding: 0 0 70px;
    background: #eef2f9;
}
.article-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: -64px auto 0;
    padding: 44px 48px 48px;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(20, 40, 80, .12), 0 2px 8px rgba(20, 40, 80, .05);
    font-size: 16.5px;
    line-height: 2;
    color: #333a47;
}
.article-content > p {
    margin: 0 0 20px;
    text-indent: 2em;
    text-align: justify;
}
.article-content > img {
    max-width: 100%;
    border-radius: 14px;
    margin: 0 auto 28px;
    display: block;
    box-shadow: 0 10px 30px rgba(20, 40, 80, .14);
}

/* 内嵌浅灰凹入分节块 */
.article-content .wx-block {
    margin: 30px -8px;
    padding: 24px 28px;
    background: #f6f8fc;
    border: 1px solid #edf0f6;
    border-radius: 16px;
    box-shadow: inset 0 1px 3px rgba(30, 60, 110, .05);
    /* 包住右浮动产品卡，避免图片高过文字时溢出到下一块 */
    display: flow-root;
}
.article-content .wx-block::after {
    content: '';
    display: table;
    clear: both;
}
.article-content .wx-block p { text-indent: 2em; margin: 0 0 16px; text-align: justify; }
.article-content .wx-block p:last-child { margin-bottom: 0; }

/* 分节小节标题：品牌藏蓝竖条（不缩进） */
.article-content .wx-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: #15294d;
    text-indent: 0;
    letter-spacing: .5px;
}
.article-content .wx-h::before {
    content: '';
    flex: 0 0 5px;
    width: 5px; height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, #2e75b6, #1e4d8c);
}
.article-content .wx-block .wx-h { margin-top: 0; }

/* 藏蓝关键词（克制，不加粗） */
.article-content .wx-kw { color: #1e4d8c; font-weight: 500; }
.article-content strong { color: #1a2740; font-weight: 600; }

/* ---------- OC1113 产品图：右浮动文绕图 ---------- */
.article-content .wx-product {
    float: right;
    width: 286px;
    margin: 6px 0 18px 30px;
    padding: 14px 14px 0;
    background: linear-gradient(180deg, #fbfdff, #f3f7fd);
    border: 1px solid #e4eaf4;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(30, 60, 110, .12);
}
.article-content .wx-product img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 10px;
    box-shadow: none;
    background: transparent;
}
.article-content .wx-product figcaption {
    padding: 10px 2px 12px;
    text-align: center;
    text-indent: 0;
    line-height: 1.5;
}
.article-content .wx-product .wx-prod-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #15294d;
}
.article-content .wx-product .wx-prod-model {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: #8a93a5;
    letter-spacing: .3px;
}
.article-content .wx-product a { text-decoration: none; color: inherit; }
/* 浮动收尾：在产品块之后的段落自然环绕，结尾引流块清浮动 */
.article-content .wx-clear { clear: both; }

/* ---------- 结尾引流块 ---------- */
.article-content .wx-cta {
    clear: both;
    margin: 34px 0 0;
    padding: 24px 28px;
    text-indent: 0;
    text-align: center;
    background: linear-gradient(135deg, #f2f6fd, #eaf1fb);
    border: 1px solid #dde7f4;
    border-left: 5px solid #2e75b6;
    border-radius: 14px;
    line-height: 1.9;
}
.article-content .wx-cta .wx-cta-t {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #16335f;
    margin-bottom: 4px;
}
.article-content .wx-cta .wx-cta-u {
    font-size: 14.5px;
    color: #1e4d8c;
    letter-spacing: .3px;
}
.article-content .wx-cta a {
    color: #15407a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 77, 140, .35);
    transition: border-color .2s, color .2s;
}
.article-content .wx-cta a:hover {
    color: #0b2d5c;
    border-bottom-color: #15407a;
}

/* ---------- 红绸弧形分隔（LOGO 红） ---------- */
.article-content .wx-ribbon {
    clear: both;
    height: 56px;
    margin: 8px 0 4px;
    text-indent: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 820 90' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23E0483E'/%3E%3Cstop offset='.5' stop-color='%23C42D26'/%3E%3Cstop offset='1' stop-color='%239E201B'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 8 C200 44 620 44 820 8 L820 40 C620 86 200 86 0 40 Z' fill='url(%23r)'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* ---------- 返回 ---------- */
.article-back {
    text-align: center;
    margin: 42px auto 0;
    max-width: 820px;
    padding-top: 30px;
    border-top: 1px dashed #d4dbe8;
}
.article-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    color: #1e4d8c;
    font-weight: 600;
    border: 1px solid #d3deee;
    border-radius: 999px;
    background: #fff;
    transition: all .2s;
}
.article-back a:hover { background: #1e4d8c; color: #fff; border-color: #1e4d8c; text-decoration: none; }
.article-state { text-align: center; padding: 100px 0; color: var(--text-secondary); }

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
    .article-banner { padding: 56px 0 92px; }
    .article-title { font-size: 25px; }
    .article-subtitle { font-size: 15.5px; padding: 12px 18px; }
    .article-content { padding: 32px 22px 36px; margin-top: -52px; border-radius: 18px; font-size: 16px; }
    .article-content .wx-block { margin: 24px -4px; padding: 20px; }
}
@media (max-width: 600px) {
    .article-content .wx-product {
        float: none;
        width: 78%;
        margin: 8px auto 22px;
    }
    .article-content .wx-ribbon { height: 40px; }
}
