/* Markdown 内容样式 */
.markdown-content {
  color: #374151;
  line-height: 1.75;
}

/* 标题样式 */
.markdown-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #e5e7eb;
}

.markdown-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.markdown-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-content h5,
.markdown-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* 段落样式 */
.markdown-content p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.markdown-content p:first-child {
  margin-top: 0;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

/* 列表样式 */
.markdown-content ul,
.markdown-content ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 0;
  list-style-position: inside;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.75;
  display: list-item;
  list-style-position: inside;
}

.markdown-content li > p {
  margin-top: 0;
  margin-bottom: 0;
  display: inline;
}

.markdown-content ul ul,
.markdown-content ol ol,
.markdown-content ul ol,
.markdown-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0;
}

/* 强调样式 */
.markdown-content strong {
  font-weight: 600;
  color: #1f2937;
}

.markdown-content em {
  font-style: italic;
  color: #4b5563;
}

/* 代码样式 */
.markdown-content code {
  background-color: #f3f4f6;
  color: #dc2626;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.markdown-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.markdown-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* 引用样式 */
.markdown-content blockquote {
  border-left: 4px solid #9D2933;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #6b7280;
  font-style: italic;
}

/* 分割线样式 */
.markdown-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* 链接样式 */
.markdown-content a {
  color: #9D2933;
  text-decoration: underline;
  transition: color 0.2s;
}

.markdown-content a:hover {
  color: #7c1d1d;
}

/* 表格样式 */
.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.markdown-content th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #1f2937;
}

.markdown-content tr:nth-child(even) {
  background-color: #f9fafb;
}

