/* Markdown主题样式 */

/* 默认主题 - 简洁风格 */
.markdown-theme-default {
  color: #333;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.markdown-theme-default h1,
.markdown-theme-default h2,
.markdown-theme-default h3,
.markdown-theme-default h4,
.markdown-theme-default h5,
.markdown-theme-default h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.markdown-theme-default h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-theme-default h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-theme-default h3 {
  font-size: 1.25em;
}

.markdown-theme-default h4 {
  font-size: 1em;
}

.markdown-theme-default h5 {
  font-size: 0.875em;
}

.markdown-theme-default h6 {
  font-size: 0.85em;
  color: #6a737d;
}

.markdown-theme-default p {
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-default blockquote {
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #dfe2e5;
  margin: 0 0 16px 0;
}

.markdown-theme-default code {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

.markdown-theme-default pre {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 3px;
  margin-bottom: 16px;
}

.markdown-theme-default pre code {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

.markdown-theme-default ul,
.markdown-theme-default ol {
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-default img {
  max-width: 100%;
  box-sizing: content-box;
  background-color: #fff;
}

.markdown-theme-default hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}

.markdown-theme-default table {
  display: block;
  width: 100%;
  overflow: auto;
  margin-top: 0;
  margin-bottom: 16px;
  border-spacing: 0;
  border-collapse: collapse;
}

.markdown-theme-default table th,
.markdown-theme-default table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.markdown-theme-default table th {
  font-weight: 600;
  background-color: #f6f8fa;
}

.markdown-theme-default table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.markdown-theme-default table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* GitHub主题 */
.markdown-theme-github {
  color: #24292e;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
}

.markdown-theme-github h1,
.markdown-theme-github h2,
.markdown-theme-github h3,
.markdown-theme-github h4,
.markdown-theme-github h5,
.markdown-theme-github h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.markdown-theme-github h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-theme-github h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-theme-github h3 {
  font-size: 1.25em;
}

.markdown-theme-github h4 {
  font-size: 1em;
}

.markdown-theme-github h5 {
  font-size: 0.875em;
}

.markdown-theme-github h6 {
  font-size: 0.85em;
  color: #6a737d;
}

.markdown-theme-github p {
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-github blockquote {
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #dfe2e5;
  margin: 0 0 16px 0;
}

.markdown-theme-github code {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

.markdown-theme-github pre {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 3px;
  margin-bottom: 16px;
}

.markdown-theme-github pre code {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

.markdown-theme-github ul,
.markdown-theme-github ol {
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-github img {
  max-width: 100%;
  box-sizing: content-box;
  background-color: #fff;
}

.markdown-theme-github hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}

.markdown-theme-github table {
  display: block;
  width: 100%;
  overflow: auto;
  margin-top: 0;
  margin-bottom: 16px;
  border-spacing: 0;
  border-collapse: collapse;
}

.markdown-theme-github table th,
.markdown-theme-github table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.markdown-theme-github table th {
  font-weight: 600;
}

.markdown-theme-github table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.markdown-theme-github table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* VSCode主题 */
.markdown-theme-vscode {
  color: #cccccc;
  background-color: #1e1e1e;
  font-family: 'Segoe WPC', 'Segoe UI', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
  border-radius: 5px;
}

.markdown-theme-vscode h1,
.markdown-theme-vscode h2,
.markdown-theme-vscode h3,
.markdown-theme-vscode h4,
.markdown-theme-vscode h5,
.markdown-theme-vscode h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #e2e2e2;
}

.markdown-theme-vscode h1 {
  font-size: 2em;
  border-bottom: 1px solid #3e3e3e;
  padding-bottom: 0.3em;
}

.markdown-theme-vscode h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #3e3e3e;
  padding-bottom: 0.3em;
}

.markdown-theme-vscode h3 {
  font-size: 1.25em;
}

.markdown-theme-vscode p {
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-vscode blockquote {
  padding: 0 1em;
  color: #999;
  border-left: 0.25em solid #444;
  margin: 0 0 16px 0;
}

.markdown-theme-vscode code {
  font-family: 'Segoe WPC', 'Segoe UI', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 90%;
  background-color: #282828;
  border-radius: 3px;
  color: #d7ba7d;
}

.markdown-theme-vscode pre {
  font-family: 'Segoe WPC', 'Segoe UI', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 16px;
  overflow: auto;
  font-size: 90%;
  line-height: 1.45;
  background-color: #282828;
  border-radius: 3px;
  margin-bottom: 16px;
}

.markdown-theme-vscode pre code {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

.markdown-theme-vscode ul,
.markdown-theme-vscode ol {
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-vscode img {
  max-width: 100%;
  box-sizing: content-box;
}

.markdown-theme-vscode hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #444;
  border: 0;
}

.markdown-theme-vscode a {
  color: #569cd6;
  text-decoration: none;
}

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

.markdown-theme-vscode table {
  display: block;
  width: 100%;
  overflow: auto;
  margin-top: 0;
  margin-bottom: 16px;
  border-spacing: 0;
  border-collapse: collapse;
}

.markdown-theme-vscode table th,
.markdown-theme-vscode table td {
  padding: 6px 13px;
  border: 1px solid #444;
}

.markdown-theme-vscode table th {
  font-weight: 600;
  background-color: #282828;
}

.markdown-theme-vscode table tr {
  background-color: #1e1e1e;
  border-top: 1px solid #444;
}

.markdown-theme-vscode table tr:nth-child(2n) {
  background-color: #282828;
}

/* 暗黑主题 */
.markdown-theme-dark {
  color: #e2e2e2;
  background-color: #2d2d2d;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  padding: 20px;
  border-radius: 5px;
}

.markdown-theme-dark h1,
.markdown-theme-dark h2,
.markdown-theme-dark h3,
.markdown-theme-dark h4,
.markdown-theme-dark h5,
.markdown-theme-dark h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #e2e2e2;
}

.markdown-theme-dark h1 {
  font-size: 2em;
  border-bottom: 1px solid #444;
  padding-bottom: 0.3em;
}

.markdown-theme-dark h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #444;
  padding-bottom: 0.3em;
}

.markdown-theme-dark h3 {
  font-size: 1.25em;
}

.markdown-theme-dark p {
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-dark blockquote {
  padding: 0 1em;
  color: #bbb;
  border-left: 0.25em solid #555;
  margin: 0 0 16px 0;
}

.markdown-theme-dark code {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: #3a3a3a;
  border-radius: 3px;
  color: #ff9d00;
}

.markdown-theme-dark pre {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #3a3a3a;
  border-radius: 3px;
  margin-bottom: 16px;
}

.markdown-theme-dark pre code {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

.markdown-theme-dark ul,
.markdown-theme-dark ol {
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-theme-dark img {
  max-width: 100%;
  box-sizing: content-box;
}

.markdown-theme-dark hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #555;
  border: 0;
}

.markdown-theme-dark a {
  color: #58a6ff;
  text-decoration: none;
}

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

.markdown-theme-dark table {
  display: block;
  width: 100%;
  overflow: auto;
  margin-top: 0;
  margin-bottom: 16px;
  border-spacing: 0;
  border-collapse: collapse;
}

.markdown-theme-dark table th,
.markdown-theme-dark table td {
  padding: 6px 13px;
  border: 1px solid #444;
}

.markdown-theme-dark table th {
  font-weight: 600;
  background-color: #3a3a3a;
}

.markdown-theme-dark table tr {
  background-color: #2d2d2d;
  border-top: 1px solid #444;
}

.markdown-theme-dark table tr:nth-child(2n) {
  background-color: #3a3a3a;
}

/* 主题切换动画 */
.markdown-content {
  transition: all 0.3s ease;
} 