@charset "UTF-8";

/* ===== 资讯详情页 H5 适配（414px 设计稿基准） ===== */
@media (max-width: 768px) {
    /* 顶部横幅：PC 3.5rem 压缩到 1.8rem */
    .category-banner {
        height: 1.8rem;
        padding-top: .3rem;
    }

    .category-banner p {
        margin-bottom: .06rem;
        font-size: .28rem;
        line-height: .4rem;
    }

    .category-banner .line {
        width: .4rem;
        height: .02rem;
        margin-bottom: .06rem;
    }

    .category-banner h2 {
        font-size: .3rem;
        line-height: .42rem;
    }

    /* 内容卡片：收窄留白 */
    .content-box {
        padding: .24rem 0;
    }

    .content {
        padding: .24rem;
        border-radius: .08rem;
    }

    /* 标题：左对齐放大，便于阅读；正文色改纯黑 */
    .content .title {
        font-size: .2rem;
        line-height: .3rem;
        text-align: left;
        color: #000 !important;
    }

    .content .time {
        margin: .16rem 0;
        font-size: .14rem;
        line-height: .22rem;
        text-align: left;
        color: #000 !important;
    }

    .article_text {
        margin-top: .24rem;
    }

    /* 正文：覆盖 CMS 内联 font-size / line-height（内联样式优先级最高，必须 !important） */
    .article_text p,
    .article_text span,
    .article_text strong,
    .article_text a {
        font-size: .16rem !important;
        line-height: 1.8 !important;
        /* base.css 的 body 用的是半透明灰 rgba(41,47,65,0.6)，正文继承后偏淡；
           手机端改为纯黑，提升可读性 */
        color: #000 !important;
    }

    /* 图片说明/图注等无字号类元素同样处理 */
    .article_text li,
    .article_text td,
    .article_text th {
        color: #000 !important;
    }

    .article_text h1,
    .article_text h2,
    .article_text h3,
    .article_text h4 {
        margin: .2rem 0 .1rem;
        font-size: .18rem !important;
        line-height: 1.5 !important;
        color: #000 !important;
    }

    /* 图片自适应屏宽，避免横向滚动 */
    .article_text img {
        display: block;
        max-width: 100% !important;
        height: auto !important;
        margin: .12rem auto;
    }

    /* 表格：横向可滚动 */
    .article_text table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: .14rem !important;
    }

    .article_text td,
    .article_text th {
        padding: .06rem .08rem;
        word-break: break-word;
    }

    /* 附件列表 */
    .article_text ul,
    .article_text ol {
        padding-left: .32rem;
    }
}
