/* 調整 CKEditor 編輯器高度 */
.ck-editor__editable {
    min-height: 400px;
    max-height: 600px;
}

/* 書籤樣式 */
.ck-content span[id] {
    scroll-margin-top: 80px;
}

.ck-editor__editable span[id] {
    position: relative;
}

.ck-editor__editable span[id]::before {
    content: '📌';
    margin-right: 2px;
    opacity: 0.5;
}
/* CKEditor 列表樣式修正 */
.ck-content ul,
.ck-content ol,
.ck-editor__editable ul,
.ck-editor__editable ol {
    padding-left: 40px;
    margin: 1em 0;
    list-style-position: outside;
}

.ck-content ul,
.ck-editor__editable ul {
    list-style-type: disc;
}

.ck-content ol,
.ck-editor__editable ol {
    list-style-type: decimal;
}

.ck-content li,
.ck-editor__editable li {
    margin: 0.5em 0;
    display: list-item;
}

/* 巢狀列表樣式 */
.ck-content ul ul,
.ck-content ol ul,
.ck-editor__editable ul ul,
.ck-editor__editable ol ul {
    list-style-type: circle;
    padding-left: 30px;
}

.ck-content ul ul ul,
.ck-content ol ul ul,
.ck-editor__editable ul ul ul,
.ck-editor__editable ol ul ul {
    list-style-type: square;
}

.ck-content ol ol,
.ck-content ul ol,
.ck-editor__editable ol ol,
.ck-editor__editable ul ol {
    list-style-type: lower-latin;
    padding-left: 30px;
}

/* 清理從 Word 複製的內容樣式 */
.ck-content li p,
.ck-editor__editable li p {
    margin: 0;
    padding: 0;
    display: inline;
}

/* 確保列表在頁面顯示時也正確 */
article ul,
article ol,
.content ul,
.content ol {
    padding-left: 40px;
    margin: 1em 0;
}

article ul {
    list-style-type: disc;
}

article ol {
    list-style-type: decimal;
}

article li,
.content li {
    margin: 0.5em 0;
    display: list-item;
}