.markdown-notice {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.markdown-notice p {
    margin: 0;
    color: #555;
}

.markdown-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px 3px 0 0;
}

.markdown-btn {
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.markdown-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.markdown-btn:active {
    transform: translateY(1px);
}

#comment {
    border-radius: 0 0 3px 3px;
}

.markdown-preview-container {
    margin-top: 10px;
}

.markdown-preview-toggle {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.markdown-preview-toggle:hover {
    background: #005a87;
}

.markdown-preview {
    padding: 15px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 3px;
    min-height: 100px;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.markdown-preview h1 { font-size: 2em; }
.markdown-preview h2 { font-size: 1.5em; }
.markdown-preview h3 { font-size: 1.3em; }

.markdown-preview code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-preview pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 3px;
    overflow-x: auto;
}

.markdown-preview pre code {
    background: none;
    padding: 0;
}

.markdown-preview blockquote {
    border-left: 4px solid #ddd;
    padding-left: 15px;
    color: #666;
    margin: 15px 0;
}

.markdown-preview table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.markdown-preview table th,
.markdown-preview table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.markdown-preview table th {
    background: #f5f5f5;
    font-weight: bold;
}

.markdown-preview ul,
.markdown-preview ol {
    margin: 15px 0;
    padding-left: 30px;
}

.markdown-preview img {
    max-width: 100%;
    height: auto;
}

.markdown-preview a {
    color: #0073aa;
    text-decoration: none;
}

.markdown-preview a:hover {
    text-decoration: underline;
}

.markdown-preview hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 20px 0;
}

.comment-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.comment-content pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 3px;
    overflow-x: auto;
}

.comment-content pre code {
    background: none;
    padding: 0;
}

.comment-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 15px;
    color: #666;
    margin: 15px 0;
}

.comment-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.comment-content table th,
.comment-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.comment-content table th {
    background: #f5f5f5;
    font-weight: bold;
}
