/* ============================================================
 * 招标公告富文本内容样式（编辑器 + 前台共用）
 * ------------------------------------------------------------
 * 此文件被以下两处引用，确保样式完全一致：
 * 1. TinyMCE 编辑器 content_css（编辑器内 body 即富文本容器）
 * 2. 前台 detail.htm 的 .article-content（通过标签选择器继承）
 * ============================================================ */

/* 基础排版（编辑器内 body = 前台 .article-content） */
body, .article-content {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
}

/* 重置 box-sizing（避免被前台全局 * { box-sizing: border-box } 污染） */
.article-content, .article-content * {
    box-sizing: content-box;
}

/* 段落 */
p {
    margin: 0 0 10px;
    padding: 0;
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
    margin: 24px 0 14px;
    padding: 0;
    color: #222;
    font-weight: 600;
    line-height: 1.4;
}
h1 { font-size: 22px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 14px; }

/* 列表 */
ul, ol {
    margin: 0 0 10px;
    padding-left: 30px;
    padding-right: 0;
}
ul li {
    list-style: disc;
    margin-bottom: 4px;
}
ol li {
    list-style: decimal;
    margin-bottom: 4px;
}

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    border: none;
    vertical-align: middle;
}

/* 表格 */
table {
    border-collapse: collapse;
    margin: 8px 0;
    max-width: 100%;
}
table th, table td {
    border: 1px solid #999;
    padding: 6px 10px;
    text-align: left;
    vertical-align: middle;
}
table th {
    background: #f0f6fc;
    font-weight: 600;
    color: #333;
}

/* 引用 */
blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 4px solid #0072C6;
    background: #f5f7fa;
    color: #666;
}

/* 文字格式 */
strong, b {
    font-weight: 600;
    color: #222;
}
em, i {
    font-style: italic;
}
u {
    text-decoration: underline;
}

/* 链接 */
a {
    color: #0072C6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 水平线 */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
    height: 0;
}

/* 代码 */
pre {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    overflow: auto;
}
code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    background: #f5f7fa;
    padding: 2px 4px;
    border-radius: 2px;
}
