/* 自定义Quill样式，增强新闻详情页面对Quill.js内容的支持 */

/* 新闻详情内容区域的Quill样式增强 */
.news-detail-content {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

/* 标题样式 */
.news-detail-content h1 {
    font-size: 2em;
    margin: 1em 0 0.5em;
    color: #000080;
    font-weight: 600;
}

.news-detail-content h2 {
    font-size: 1.5em;
    margin: 1em 0 0.5em;
    color: #000080;
    font-weight: 600;
}

.news-detail-content h3 {
    font-size: 1.17em;
    margin: 1em 0 0.5em;
    color: #000080;
    font-weight: 600;
}

/* 段落样式 */
.news-detail-content p {
    margin: 0 0 1em;
    text-align: justify;
}

/* 列表样式 */
.news-detail-content ul,
.news-detail-content ol {
    margin: 0 0 1em;
    padding-left: 2em;
}

.news-detail-content ul li,
.news-detail-content ol li {
    margin-bottom: 0.5em;
}

/* 引用块样式 */
.news-detail-content blockquote {
    border-left: 4px solid #000080;
    padding-left: 1em;
    margin-left: 0;
    color: #555;
    font-style: italic;
    margin: 1em 0;
}

/* 代码块样式 */
.news-detail-content pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
}

.news-detail-content code {
    font-family: Monaco, Consolas, 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* 表格样式 */
.news-detail-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.news-detail-content table th,
.news-detail-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.news-detail-content table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.news-detail-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 图片样式 */
.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 图片对齐方式 */
.news-detail-content .ql-align-center {
    text-align: center;
}

.news-detail-content .ql-align-right {
    text-align: right;
}

.news-detail-content .ql-align-justify {
    text-align: justify;
}

/* 字体大小 */
.news-detail-content .ql-size-small {
    font-size: 0.75em;
}

.news-detail-content .ql-size-large {
    font-size: 1.5em;
}

.news-detail-content .ql-size-huge {
    font-size: 2.5em;
}

/* 字体样式 */
.news-detail-content .ql-font-serif {
    font-family: Georgia, Times New Roman, serif;
}

.news-detail-content .ql-font-monospace {
    font-family: Monaco, Courier New, monospace;
}

/* 文本颜色 */
.news-detail-content .ql-color-red {
    color: #e60000;
}

.news-detail-content .ql-color-orange {
    color: #f90;
}

.news-detail-content .ql-color-yellow {
    color: #ff0;
}

.news-detail-content .ql-color-green {
    color: #008a00;
}

.news-detail-content .ql-color-blue {
    color: #06c;
}

.news-detail-content .ql-color-purple {
    color: #93f;
}

/* 背景颜色 */
.news-detail-content .ql-bg-red {
    background-color: #e60000;
}

.news-detail-content .ql-bg-orange {
    background-color: #f90;
}

.news-detail-content .ql-bg-yellow {
    background-color: #ff0;
}

.news-detail-content .ql-bg-green {
    background-color: #008a00;
}

.news-detail-content .ql-bg-blue {
    background-color: #06c;
}

.news-detail-content .ql-bg-purple {
    background-color: #93f;
}

/* 视频样式 */
.news-detail-content .ql-video {
    display: block;
    max-width: 100%;
    margin: 1em auto;
}