/**
 * 接口下发的富文本（.news-detail-content 内）补充样式
 * 对齐 PC newsDetail.html 图片表现，并汇总 mobile/news、mobile/cases 中常见模块类名
 */

.news-detail-content img {
    /* display: block; */
    /* width: 100%; */
    max-width: 100%;
    /* height: auto; */
    margin: 0;
    padding: 0;
    /* vertical-align: top; */
    border: none;
}

.news-detail-content p:has(> img:only-child),
.news-detail-content p:has(> img:first-child:last-child) {
    margin: 0;
    line-height: 0;
    font-size: 0;
}

/* 兜底：微信编辑器富文本常带 text-wrap-mode:nowrap / white-space:nowrap 内联样式，
   禁止换行会在移动端被 overflow 裁掉文字，这里强制恢复正常换行 */
.news-detail-content p,
.news-detail-content li,
.news-detail-content span,
.news-detail-content strong,
.news-detail-content em,
.news-detail-content b {
    white-space: normal !important;
    text-wrap-mode: wrap !important;
}

.news-detail-content .equity-categories {
    grid-template-columns: 1fr;
    gap: 12px;
}

.news-detail-content .equity-category {
    padding: 16px;
    border-radius: 10px;
}

.news-detail-content .equity-category p {
    font-size: 13px;
    line-height: 1.6;
}

/* 效果网格（案例页） */
.news-detail-content .effect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0;
}

.news-detail-content .effect-item {
    background: linear-gradient(135deg, #1a6fd8 0%, #4a8fe7 100%);
    color: #fff;
    border-radius: 10px;
    padding: 16px;
}

.news-detail-content .effect-item h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 13px;
}

.news-detail-content .effect-item p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
}

/* 场景链路 */
.news-detail-content .scene-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
}

.news-detail-content .scene-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

.news-detail-content .scene-item h5 {
    margin: 0 0 6px;
    color: #1a6fd8;
    font-size: 13px;
    font-weight: 700;
}

.news-detail-content .scene-item p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.news-detail-content .scene-arrow {
    color: #1a6fd8;
    font-weight: 700;
    text-align: center;
}

/* 价格对比条 */
.news-detail-content .price-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
}

.news-detail-content .price-original {
    color: #999;
    text-decoration: line-through;
}

.news-detail-content .price-arrow {
    color: #1a6fd8;
    font-weight: 700;
}

.news-detail-content .price-current {
    color: #e74c3c;
    font-size: 22px;
    font-weight: 700;
}

/* 表格（部分案例） */
.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.news-detail-content th,
.news-detail-content td {
    border: 1px solid #e8e8e8;
    padding: 8px 10px;
    text-align: left;
}

.news-detail-content th {
    background: #f0f7ff;
    color: #1a6fd8;
    font-weight: 600;
}
