/* 基础容器样式 */
.markdown-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.7;
    color: #2d3748;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
}

/* 标题样式 */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.markdown-content h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.markdown-content h2 {
    font-size: 1.85rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.3rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
}

.markdown-content h4 {
    font-size: 1.25rem;
}

.markdown-content h5 {
    font-size: 1rem;
}

.markdown-content h6 {
    font-size: 0.875rem;
    color: #718096;
}

/* 段落样式 */
.markdown-content p {
    margin-bottom: 1.25rem;
}

/* 链接样式 */
.markdown-content a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.markdown-content a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* 列表样式 */
.markdown-content ul,
.markdown-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content li>ul,
.markdown-content li>ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* 代码样式 */
.markdown-content code {
    padding: 0.2rem 0.4rem;
    margin: 0;
    font-size: 0.875rem;
    background-color: #f7fafc;
    border-radius: 0.3rem;
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.markdown-content pre {
    margin-bottom: 1.25rem;
    padding: 1rem;
    overflow: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: #f7fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.markdown-content pre code {
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: transparent;
    border-radius: 0;
}

/* 引用样式 */
.markdown-content blockquote {
    margin: 0 0 1.25rem;
    padding: 1rem;
    color: #4a5568;
    background-color: #f0f8fb;
    border-left: 4px solid #4299e1;
    border-radius: 0 0.3rem 0.3rem 0;
}

.markdown-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 表格样式 */
.markdown-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
    background-color: #ffffff;
}

.markdown-content th,
.markdown-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}

.markdown-content th {
    font-weight: 600;
    background-color: #f7fafc;
}

.markdown-content tr:nth-child(even) {
    background-color: #f7fafc;
}

/* 图片样式 */
.markdown-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 水平线样式 */
.markdown-content hr {
    height: 1px;
    margin: 2rem 0;
    background-color: #e2e8f0;
    border: 0;
}

/* 任务列表样式 */
.markdown-content input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .markdown-content {
        padding: 1rem;
    }

    .markdown-content h1 {
        font-size: 1.85rem;
    }

    .markdown-content h2 {
        font-size: 1.5rem;
    }

    .markdown-content h3 {
        font-size: 1.25rem;
    }
}