/* 总结编辑器样式 */
#id_record_summary_content {
    min-height: 200px;
    padding: 15px;
    line-height: 1.6;
    outline: none;
    word-wrap: break-word;
}

#id_record_summary_content:focus {
    outline: 1px solid #ddd;
    outline-offset: -1px;
}

#id_record_summary_content p {
    margin: 0.5em 0;
}

#id_record_summary_content h1,
#id_record_summary_content h2,
#id_record_summary_content h3,
#id_record_summary_content h4 {
    margin: 1em 0 0.5em 0;
    font-weight: 600;
}

#id_record_summary_content h1 {
    font-size: 1.8em;
}

#id_record_summary_content h2 {
    font-size: 1.5em;
}

#id_record_summary_content h3 {
    font-size: 1.3em;
}

#id_record_summary_content h4 {
    font-size: 1.1em;
}

#id_record_summary_content ul,
#id_record_summary_content ol {
    margin: 0.5em 0;
    padding-left: 2em;
    list-style-position: outside;
    display: block;
}

#id_record_summary_content ul {
    list-style-type: disc;
}

#id_record_summary_content ol {
    list-style-type: decimal;
}

#id_record_summary_content li {
    margin: 0.25em 0;
    display: list-item;
    list-style-position: outside;
}

#id_record_summary_content ul li {
    list-style-type: disc;
}

#id_record_summary_content ol li {
    list-style-type: decimal;
}

/* 嵌套列表样式 */
#id_record_summary_content ul ul {
    list-style-type: circle;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

#id_record_summary_content ul ul ul {
    list-style-type: square;
}

#id_record_summary_content ol ol {
    list-style-type: lower-alpha;
}

#id_record_summary_content ol ol ol {
    list-style-type: lower-roman;
}

#id_record_summary_content blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #ddd;
    background-color: #f9f9f9;
    color: #666;
}

#id_record_summary_content pre {
    margin: 1em 0;
    padding: 1em;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#id_record_summary_content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#id_record_summary_content pre code {
    background-color: transparent;
    padding: 0;
}

/* 工具栏样式 */
.summary-editor-toolbar {
    position: absolute;
    background: #f8f8f8;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 4px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.summary-toolbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.summary-toolbar-item:hover {
    background-color: #e8e8e8;
}

.summary-toolbar-item:active {
    background-color: #d0d0d0;
}

.summary-toolbar-item.active {
    background-color: #d0d0d0;
}

.summary-toolbar-icon {
    font-weight: 600;
    min-width: 28px;
    text-align: left;
    font-size: 14px;
    color: #333;
}

.summary-toolbar-label {
    flex: 1;
    white-space: nowrap;
    color: #333;
}

/* 选中文本高亮 */
#id_record_summary_content::selection {
    background-color: #b3d4fc;
}

/* Markdown 表格样式 */
#id_record_summary_content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 0.95em;
    border: 1px solid #ddd;
    background-color: #fff;
}

#id_record_summary_content table thead {
    background-color: #f5f5f5;
}

#id_record_summary_content table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    border-right: 1px solid #ddd;
    color: #333;
}

#id_record_summary_content table th:last-child {
    border-right: none;
}

#id_record_summary_content table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    color: #555;
}

#id_record_summary_content table td:last-child {
    border-right: none;
}

#id_record_summary_content table tbody tr:hover {
    background-color: #f9f9f9;
}

#id_record_summary_content table tbody tr:last-child td {
    border-bottom: none;
}

