/*
 * CKEditor 5 内容样式
 */

/* 编辑器内容基础样式 */
.ck-content {
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 标题样式 */
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    font-weight: bold;
    line-height: 1.2;
    margin: 1em 0 0.5em;
}

.ck-content h1 { font-size: 2em; }
.ck-content h2 { font-size: 1.75em; }
.ck-content h3 { font-size: 1.5em; }
.ck-content h4 { font-size: 1.25em; }
.ck-content h5 { font-size: 1em; }
.ck-content h6 { font-size: 0.875em; }

/* 段落和列表样式 */
.ck-content p { margin: 1em 0; }
.ck-content ul,
.ck-content ol {
    padding-left: 40px;
    margin: 1em 0;
}
.ck-content li { margin: 0.5em 0; }

/* 表格样式 */
.ck-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.ck-content table td,
.ck-content table th {
    border: 1px solid #bbb;
    padding: 8px;
    min-width: 2em;
}

.ck-content table th {
    font-weight: bold;
    background: #f8f9fa;
}

/* 图片样式 */
.ck-content figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1em auto;
}

.ck-content figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    min-width: 50px;
}

.ck-content figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    word-break: break-word;
    color: #666;
    font-size: 0.9em;
    margin-top: 0.5em;
}

.ck-content figure.image-style-side {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
}

.ck-content figure.image-style-align-left {
    float: left;
    margin-right: 1.5em;
}

.ck-content figure.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

/* 文本对齐 */
.ck-content .text-center { text-align: center !important; }
.ck-content .text-right { text-align: right !important; }
.ck-content .text-justify { text-align: justify !important; }

/* 引用样式 */
.ck-content blockquote {
    border-left: 5px solid #ccc;
    font-style: italic;
    margin: 1.5em 0;
    padding: 0.5em 1em;
    color: #666;
}

/* 代码样式 */
.ck-content code {
    background: #f8f9fa;
    border-radius: 2px;
    padding: 0.15em 0.4em;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}

.ck-content pre {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1em;
    white-space: pre-wrap;
    margin: 1em 0;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}

.ck-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
} 