@charset "utf-8";
.content-article,
body#tinymce {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    padding: 20px 30px;
    min-height: 400px;
    background-color: #fff; /* Ensure white background in editor */
    box-sizing: border-box;
}

/* Global Box Sizing for Article Content */
.content-article *,
body#tinymce * {
    box-sizing: border-box;
}

body#tinymce {
}

/* Headings */
.content-article h1, body#tinymce h1,
.content-article h2, body#tinymce h2,
.content-article h3, body#tinymce h3,
.content-article h4, body#tinymce h4,
.content-article h5, body#tinymce h5,
.content-article h6, body#tinymce h6 {
    font-weight: bold;
    color: #ba231a;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.content-article h1, body#tinymce h1 { 
    font-size: 24px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
    margin-top: 0; 
}

.content-article h2, body#tinymce h2 { font-size: 20px; }
.content-article h3, body#tinymce h3 { font-size: 16px; }
.content-article h4, body#tinymce h4 { font-size: 14px; }
.content-article h5, body#tinymce h5 { font-size: 13px; }
.content-article h6, body#tinymce h6 { font-size: 12px; }

.content-article p, body#tinymce p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    text-align: justify;
}

.content-article ul, body#tinymce ul,
.content-article ol, body#tinymce ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-article ul, body#tinymce ul { list-style: disc; }
.content-article ol, body#tinymce ol { list-style: decimal; }

.content-article li, body#tinymce li {
    margin-bottom: 5px;
    list-style: inherit; /* Ensure list markers are visible */
}

.content-article strong, body#tinymce strong,
.content-article b, body#tinymce b { font-weight: bold; }

.content-article em, body#tinymce em,
.content-article i, body#tinymce i { font-style: italic; }

.content-article u, body#tinymce u { text-decoration: underline; }

.content-article s, body#tinymce s,
.content-article strike, body#tinymce strike,
.content-article del, body#tinymce del { text-decoration: line-through; }

.content-article a, body#tinymce a {
    color: #ba231a;
    text-decoration: underline;
}
.content-article a:hover, body#tinymce a:hover {
    color: #f00;
    text-decoration: none;
}

/* Images */
.content-article img, body#tinymce img {
    box-sizing: border-box;
    max-width: 100%;
    max-width: min(100%, 827px);
    height: auto;
    border: 1px solid #e6e6e6;
    padding: 6px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /* Allow inline styles for alignment to work */
    vertical-align: middle;
}

/* Tables */
.content-article table, body#tinymce table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 15px 0;
}

.content-article th, body#tinymce th,
.content-article td, body#tinymce td {
    border: 1px solid #000;
    padding: 8px;
}

.content-article th, body#tinymce th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: left;
}

.content-article table.g-table, body#tinymce table.g-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    table-layout: fixed;
}

.content-article table.g-table th, body#tinymce table.g-table th,
.content-article table.g-table td, body#tinymce table.g-table td {
    border: 1px solid #000;
    padding: 10px;
    word-break: break-word;
    white-space: normal;
}

.content-article table.g-table thead th, body#tinymce table.g-table thead th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.content-article table.g-table tbody tr:nth-child(even) td,
body#tinymce table.g-table tbody tr:nth-child(even) td {
    background-color: #fafafa;
}

.content-article table.g-table p, body#tinymce table.g-table p,
.content-article table p, body#tinymce table p {
    margin: 0 0 8px 0;
    line-height: 1.6;
    text-align: left;
}

.content-article table.g-table p:last-child, body#tinymce table.g-table p:last-child,
.content-article table p:last-child, body#tinymce table p:last-child {
    margin-bottom: 0;
}

/* Blockquotes */
.content-article blockquote, body#tinymce blockquote {
    margin: 15px 0;
    padding: 10px 20px;
    border-left: 5px solid #eee;
    background-color: #f9f9f9;
    color: #666;
    font-style: italic;
}

/* Code */
.content-article pre, body#tinymce pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 15px;
    font-family: monospace;
}

.content-article code, body#tinymce code {
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 2px;
    font-family: monospace;
}
