/* ============================================================
   文章正文共享样式 —— 后台 TinyMCE 编辑区 与 官网详情页 共用
   实现"所见即所得"：两边渲染规则必须保持一致
   官网路径: basics-api/public/static/carmen/article-content.css
   后台路径: basics-admin/public/article-content.css (TinyMCE content_css 加载)
   ⚠️ 修改任何一份必须同步另一份！
   ============================================================ */

.article-content {
    font-family: "MiSans", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #444;
    line-height: 2.0;
    word-wrap: break-word;
}

/* 段落 */
.article-content p {
    margin: 0 0 30px;
    text-align: justify;
}

/* 标题（Times 衬线风格，与详情页统一） */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: "Times New Roman", Times, serif;
    font-weight: normal;
    text-align: center;
    margin: 50px 0 20px;
}
.article-content h1 { font-size: 28px; }
.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }

/* 引用 */
.article-content blockquote {
    border-left: 2px solid #b08d55;
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    color: #666;
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
}
.article-content blockquote p:last-child { margin-bottom: 0; }

/* 列表 —— 覆盖 my.css 全局 ul { list-style:none }，恢复列表符号 */
.article-content ul { list-style: disc; padding-left: 40px; }
.article-content ol { list-style: decimal; padding-left: 40px; }
.article-content li { margin: 0 0 10px; }

/* 链接 —— 覆盖 my.css 全局 a { color:inherit }，文章内链接可见 */
.article-content a { color: #b08d55; }
.article-content a:hover { text-decoration: underline; }

/* 图片 */
.article-content img { max-width: 100%; height: auto; }

/* 表格 —— 补齐站点原本缺失的表格边框 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.article-content table td,
.article-content table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
}
.article-content table th { background-color: #f7f7f7; }

/* 抵消 my.css 全局 * { font-weight:400 }，回归浏览器默认加粗
  （后台编辑器 iframe 内无全局复位，此规则无副作用） */
.article-content * { font-weight: revert; }
