/* =========================================================
   news_detail.css — 新闻详情页正文内容区专属样式
   作用域：.news-detail-content（富文本编辑器输出的正文）
   引入位置：news_detail.html / news_detail_en.html，放在其他 css 之后
   ========================================================= */

.news-detail-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---------- 标题层级（覆盖富文本编辑器的内联样式，保证全站统一） ---------- */
.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5 {
    color: #1f2733 !important;
    font-weight: 700;
    line-height: 1.5;
    margin: 34px 0 16px;
}

.news-detail-content h1,
.news-detail-content h2 {
    font-size: 21px !important;
    padding-left: 12px;
    border-left: 4px solid #4781b3;
}

.news-detail-content h3 {
    font-size: 18px !important;
    padding-left: 10px;
    border-left: 3px solid rgba(71, 129, 179, .55);
}

.news-detail-content h4,
.news-detail-content h5 {
    font-size: 16px !important;
    color: #333 !important;
}

/* ---------- 段落与文本 ---------- */
.news-detail-content p {
    margin: 0 0 16px;
    text-align: justify;
    color: #444 !important;
    font-size: 16px !important;
}

.news-detail-content strong,
.news-detail-content b {
    color: #1f2733;
    font-weight: 600;
}

.news-detail-content a {
    color: #4781b3;
    text-decoration: none;
    border-bottom: 1px dashed rgba(71, 129, 179, .5);
}

.news-detail-content a:hover {
    color: #2f6e9e;
    border-bottom-style: solid;
}

/* ---------- 列表 ---------- */
.news-detail-content ul,
.news-detail-content ol {
    margin: 0 0 16px;
    padding-left: 26px;
}

.news-detail-content ul li,
.news-detail-content ol li {
    margin: 6px 0;
    line-height: 1.85;
}

.news-detail-content ul li::marker { color: #4781b3; }

/* ---------- 图片 ---------- */
.news-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(20, 40, 70, .08);
}

/* ---------- 表格（产品参数对比等） ---------- */
.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14.5px;
    line-height: 1.7;
}

.news-detail-content caption {
    caption-side: top;
    padding: 8px 0;
    font-size: 14.5px;
    color: #666;
}

.news-detail-content th,
.news-detail-content td {
    border: 1px solid #dde4ec;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    color: #444 !important;
    font-size: 14.5px !important;
}

.news-detail-content th {
    background: #f2f7fc;
    color: #1f2733 !important;
    font-weight: 600;
    white-space: nowrap;
}

.news-detail-content tr:nth-child(even) td {
    background: #fafcfe;
}

/* ---------- 引用块 / 分隔线 / 代码 ---------- */
.news-detail-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid #4781b3;
    background: #f6f9fc;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.news-detail-content hr {
    border: 0;
    border-top: 1px solid #e6ebf1;
    margin: 28px 0;
}

.news-detail-content code {
    padding: 2px 6px;
    background: #f4f6f8;
    border-radius: 4px;
    font-size: 90%;
    color: #c0392b;
}

/* ---------- 嵌入视频等 iframe ---------- */
.news-detail-content iframe {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border: 0;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
    .news-detail-content { font-size: 15px; }
    .news-detail-content h1,
    .news-detail-content h2 { font-size: 19px !important; margin: 28px 0 14px; }
    .news-detail-content h3 { font-size: 17px !important; }

    .news-detail-content table { display: block; overflow-x: auto; }
    .news-detail-content th,
    .news-detail-content td { padding: 8px 10px; white-space: nowrap; }
}
