/* ==========================================================================
   rich-content.css — 富文本统一排版（单一事实来源）
   --------------------------------------------------------------------------
   富文本编辑器(TinyMCE content_css + body_class="rich-content")、后台
   【预览（新窗口）】、以及前台 产品/新闻 详情页正文，共用同一套排版，
   保证「编辑器里看到的」==「预览」==「线上实际页面」三处表现完全一致。

   设计基准：正文 14px / Microsoft YaHei 字体栈 / 行高 1.6，与编辑器原
   content_style 保持一致；前台遗留 site-builder 样式(062743/062744)对正文
   容器有 font-family / font-size 的强设定，文件末尾用等价或更高优先级的
   选择器覆盖，仅作用于带 .rich-content 的正文容器，不影响标题/摘要/选项卡。
   ========================================================================== */

.rich-content {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
                 "Source Han Sans SC", "Noto Sans CJK SC", SimSun,
                 -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    word-break: break-word;
}

/* 块级结构：段落 / 标题 */
.rich-content p { margin: 0 0 1em; line-height: 1.6; }
.rich-content h1 { font-size: 1.8em; font-weight: 700; line-height: 1.3; margin: 1.2em 0 .6em; }
.rich-content h2 { font-size: 1.5em; font-weight: 700; line-height: 1.3; margin: 1.1em 0 .5em; }
.rich-content h3 { font-size: 1.3em; font-weight: 700; line-height: 1.4; margin: 1em 0 .5em; }
.rich-content h4 { font-size: 1.15em; font-weight: 700; margin: .9em 0 .4em; }
.rich-content h5 { font-size: 1em; font-weight: 700; margin: .8em 0 .4em; }
.rich-content h6 { font-size: .9em; font-weight: 700; margin: .8em 0 .4em; }

/* 列表 */
.rich-content ul,
.rich-content ol { margin: 0 0 1em 1.6em; padding: 0; }
.rich-content li { margin: .3em 0; }
.rich-content ul ul, .rich-content ul ol,
.rich-content ol ul, .rich-content ol ol { margin-bottom: 0; }

/* 行内 */
.rich-content a { color: #1b3af2; text-decoration: underline; }
.rich-content strong, .rich-content b { font-weight: 700; }
.rich-content i, .rich-content em { font-style: italic; }
.rich-content sub { vertical-align: sub; font-size: smaller; }
.rich-content sup { vertical-align: super; font-size: smaller; }

/* 媒体：图片按「原始尺寸」显示，仅在超出容器宽度时等比缩小（不放大、不拉伸变形）。
   与 TinyMCE 编辑器(content_css 复用本文件)表现完全一致 —— 编辑器里看到多大，
   预览 / 线上就多大。width:auto 抵消任何遗留样式可能的 width:100% 放大；
   !important + 复合选择器确保压过 legacy .proDetailStyle_1 img / .LNewsCon img 的 !important 设定。 */
.rich-content img,
.pcAbout.detailContent.rich-content img,
.newsText.rich-content img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    vertical-align: bottom;
}
.rich-content video,
.rich-content iframe,
.rich-content embed { max-width: 100%; height: auto; }
.rich-content figure { margin: 1em 0; }

/* 表格 */
.rich-content table { border-collapse: collapse; margin: .6em 0; max-width: 100%; width: auto; }
.rich-content caption { border: 1px dashed #ddd; padding: 3px; text-align: center; }
.rich-content td,
.rich-content th { border: 1px solid #e0e0e0; padding: .4em .6em; min-width: 2em; }
.rich-content th { background: #f6f6f6; font-weight: 700; }
.rich-content tr.firstRow th { border-top-width: 2px; }
.rich-content table[align=center] { margin-left: auto; margin-right: auto; }

/* 其它块 */
.rich-content blockquote { border-left: 3px solid #ccc; margin: .6em 0; padding: .2em 0 .2em 1em; color: #666; font-style: italic; }
.rich-content hr { border: none; border-top: 1px solid #e0e0e0; margin: 1em 0; }
.rich-content code { font-family: Consolas, Menlo, Monaco, "Courier New", monospace; background: #f3f3f3; padding: .1em .3em; border-radius: 3px; font-size: .9em; }
.rich-content pre { background: #f6f6f6; padding: 1em; border-radius: 4px; overflow: auto; }
.rich-content pre code { background: none; padding: 0; }

/* ==========================================================================
   前台兼容性覆盖：legacy site-builder 样式(062743/062744)对正文容器有
   font-family / font-size 的强设定；下面用等价或更高优先级的选择器让
   rich-content 的排版生效。仅作用于带 .rich-content 的正文容器。
   ========================================================================== */

/* —— 新闻详情正文（容器类 .newsText.songti.contSet.detailContent） —— */
.newsText.rich-content,
.LNewsCon .newsText.rich-content {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
                 "Source Han Sans SC", "Noto Sans CJK SC", SimSun,
                 -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.LNewsCon .newsText.rich-content p,
.newsText.rich-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 1em;
}
.LNewsCon .newsText.rich-content h1 { font-size: 1.8em; }
.LNewsCon .newsText.rich-content h2 { font-size: 1.5em; }
.LNewsCon .newsText.rich-content h3 { font-size: 1.3em; }
.LNewsCon .newsText.rich-content h4 { font-size: 1.15em; }
.LNewsCon .newsText.rich-content h5 { font-size: 1em; }
.LNewsCon .newsText.rich-content h6 { font-size: .9em; }

/* —— 产品详情「特征」正文（容器类 .pcAbout.detailContent） —— */
.pcAbout.detailContent.rich-content,
.proDetailStyle_1 .pcAbout.detailContent.rich-content {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
                 "Source Han Sans SC", "Noto Sans CJK SC", SimSun,
                 -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.proDetailStyle_1 .pcAbout.detailContent.rich-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 1em;
}
