/* ============================================================
   通用排版基线：每个主题在此基础上做差异化覆盖。
   ============================================================ */
.markdown-body { color: #1f2330; }
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 { margin: 1.4em 0 0.6em; line-height: 1.3; font-weight: 700; }
.markdown-body h1 { font-size: 1.9em; }
.markdown-body h2 { font-size: 1.55em; }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body h4 { font-size: 1.1em; }
.markdown-body p { margin: 0.6em 0 0.9em; }
.markdown-body ul,
.markdown-body ol { padding-left: 1.4em; margin: 0.6em 0 0.9em; }
.markdown-body li { margin: 0.25em 0; }
.markdown-body blockquote {
  margin: 0.9em 0;
  padding: 0.4em 1em;
  border-left: 4px solid #d0d7e2;
  color: #57606a;
  background: #f6f8fa;
  border-radius: 0 6px 6px 0;
}
.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(135, 131, 120, 0.15);
}
.markdown-body pre {
  margin: 1em 0;
  padding: 14px 16px;
  background: #f6f8fa;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}
.markdown-body pre code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}
.markdown-body a { color: #4f6df5; text-decoration: none; border-bottom: 1px solid currentColor; }
.markdown-body hr { border: none; border-top: 1px solid #e5e7ef; margin: 1.6em 0; }
.markdown-body img { max-width: 100%; border-radius: 6px; }
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}
.markdown-body th,
.markdown-body td {
  padding: 8px 12px;
  border: 1px solid #e5e7ef;
  text-align: left;
}
.markdown-body th { background: #f6f8fa; font-weight: 600; }

/* ============================================================
   GitHub 简洁
   ============================================================ */
.theme-github { background: #ffffff; }
.theme-github .markdown-body {
  color: #1f2328;
  font-family: -apple-system, "Segoe UI", "PingFang SC", Helvetica, Arial, sans-serif;
}
.theme-github .markdown-body h1,
.theme-github .markdown-body h2 {
  border-bottom: 1px solid #d8dee4;
  padding-bottom: 0.35em;
}

/* ============================================================
   Notion 文档
   ============================================================ */
.theme-notion { background: #ffffff; }
.theme-notion .markdown-body {
  color: #37352f;
  font-family: "ui-sans-serif", -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.theme-notion .markdown-body h1 { font-size: 2.2em; font-weight: 800; }
.theme-notion .markdown-body blockquote {
  border-left: 3px solid #37352f;
  background: transparent;
  color: #37352f;
  font-style: normal;
  border-radius: 0;
  padding-left: 14px;
}
.theme-notion .markdown-body code {
  color: #eb5757;
  background: #f1f1ef;
  font-size: 0.88em;
}
.theme-notion .markdown-body pre {
  background: #f7f6f3;
  border: 1px solid #ebeae6;
}

/* ============================================================
   微信公众号（橙绿配色 · 居中标题）
   ============================================================ */
.theme-wechat { background: #ffffff; }
.theme-wechat .markdown-body {
  color: #2c3e50;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.3px;
}
.theme-wechat .markdown-body h1,
.theme-wechat .markdown-body h2,
.theme-wechat .markdown-body h3 {
  text-align: center;
  color: #fd7e3b;
}
.theme-wechat .markdown-body h2::before,
.theme-wechat .markdown-body h2::after {
  content: "—";
  color: #fd7e3b;
  margin: 0 12px;
  opacity: 0.6;
}
.theme-wechat .markdown-body p { text-indent: 2em; }
.theme-wechat .markdown-body blockquote {
  border-left: 4px solid #fd7e3b;
  background: #fff7f0;
  color: #5a4a3a;
  text-indent: 0;
}
.theme-wechat .markdown-body blockquote p { text-indent: 0; }
.theme-wechat .markdown-body a { color: #fd7e3b; }
.theme-wechat .markdown-body code { background: #fff1e6; color: #c2410c; }
.theme-wechat .markdown-body pre { background: #fbf7f3; border: 1px solid #f1e4d4; }

/* ============================================================
   掘金（蓝色高亮 · 卡片化引用）
   ============================================================ */
.theme-juejin { background: #ffffff; }
.theme-juejin .markdown-body {
  color: #252933;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}
.theme-juejin .markdown-body h1 {
  font-size: 1.8em;
  border-left: 4px solid #1e80ff;
  padding-left: 12px;
}
.theme-juejin .markdown-body h2 {
  font-size: 1.4em;
  border-left: 3px solid #1e80ff;
  padding-left: 10px;
}
.theme-juejin .markdown-body h3 { color: #1e80ff; }
.theme-juejin .markdown-body blockquote {
  border-left: 4px solid #1e80ff;
  background: #eef5ff;
  color: #2d6cdf;
  border-radius: 6px;
}
.theme-juejin .markdown-body a { color: #1e80ff; }
.theme-juejin .markdown-body code { background: #f2f3f5; color: #d63384; }
.theme-juejin .markdown-body pre { background: #282c34; color: #abb2bf; }
.theme-juejin .markdown-body pre code { color: inherit; background: transparent; }

/* ============================================================
   小红书卡片（粉色渐变 + 圆角）
   ============================================================ */
.theme-xiaohongshu {
  background: linear-gradient(160deg, #ffd1dc 0%, #fff0e6 55%, #fff7d1 100%);
}
.theme-xiaohongshu .markdown-body {
  margin: 18px;
  padding: 26px 22px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(255, 95, 130, 0.18);
  color: #3a2b34;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.85;
}
.theme-xiaohongshu .markdown-body h1 {
  font-size: 1.5em;
  color: #ff2e63;
  background: linear-gradient(120deg, #ff5f8d, #ff8a5b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-xiaohongshu .markdown-body h2 { color: #ff2e63; font-size: 1.2em; }
.theme-xiaohongshu .markdown-body h3 { color: #ff5f8d; }
.theme-xiaohongshu .markdown-body strong { color: #ff2e63; }
.theme-xiaohongshu .markdown-body ul li::marker { color: #ff5f8d; }
.theme-xiaohongshu .markdown-body blockquote {
  background: #fff0f4;
  border-left: 4px solid #ff5f8d;
  color: #b3324d;
  border-radius: 10px;
}
.theme-xiaohongshu .markdown-body code { background: #fff0f4; color: #ff2e63; }
.theme-xiaohongshu .markdown-body pre { background: #fff7fa; border: 1px solid #ffd7e3; }
.theme-xiaohongshu .markdown-body a { color: #ff2e63; }

/* ============================================================
   暗黑终端
   ============================================================ */
.theme-dark { background: #0e1117; }
.theme-dark .markdown-body {
  color: #c9d1d9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", monospace;
  font-size: 14.5px;
  line-height: 1.75;
}
.theme-dark .markdown-body h1,
.theme-dark .markdown-body h2,
.theme-dark .markdown-body h3 { color: #58a6ff; }
.theme-dark .markdown-body h1 { border-bottom: 1px solid #30363d; padding-bottom: 0.3em; }
.theme-dark .markdown-body blockquote {
  border-left: 4px solid #30363d;
  background: #161b22;
  color: #8b949e;
}
.theme-dark .markdown-body code { background: #161b22; color: #ff7b72; }
.theme-dark .markdown-body pre { background: #161b22; color: #c9d1d9; }
.theme-dark .markdown-body pre code { color: inherit; }
.theme-dark .markdown-body a { color: #58a6ff; }
.theme-dark .markdown-body hr { border-top: 1px solid #30363d; }
.theme-dark .markdown-body th { background: #161b22; }
.theme-dark .markdown-body th,
.theme-dark .markdown-body td { border-color: #30363d; }

/* ============================================================
   苹果备忘录（米黄横线本）
   ============================================================ */
.theme-apple {
  background: #fdf6e3;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    #f0e3c4 31px,
    #f0e3c4 32px
  );
}
.theme-apple .markdown-body {
  color: #3a322a;
  font-family: "ui-rounded", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 32px;
}
.theme-apple .markdown-body h1,
.theme-apple .markdown-body h2,
.theme-apple .markdown-body h3 { color: #b9802c; font-weight: 700; }
.theme-apple .markdown-body blockquote {
  background: rgba(255, 255, 255, 0.5);
  border-left: 3px solid #d4a652;
  color: #6b5a3a;
  border-radius: 4px;
}
.theme-apple .markdown-body code { background: rgba(212, 166, 82, 0.18); color: #8a5a14; }
.theme-apple .markdown-body pre { background: rgba(255, 255, 255, 0.65); }
.theme-apple .markdown-body a { color: #d97706; }

/* ============================================================
   报纸打印（衬线 + 三栏感）
   ============================================================ */
.theme-newspaper { background: #f5f1ea; }
.theme-newspaper .markdown-body {
  color: #1a1a1a;
  font-family: "Georgia", "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 15.5px;
  line-height: 1.8;
}
.theme-newspaper .markdown-body h1 {
  font-size: 2.4em;
  text-align: center;
  letter-spacing: 4px;
  border-top: 3px double #1a1a1a;
  border-bottom: 3px double #1a1a1a;
  padding: 0.4em 0;
  margin-bottom: 0.6em;
}
.theme-newspaper .markdown-body h2 {
  font-variant: small-caps;
  letter-spacing: 1px;
  border-bottom: 1px solid #1a1a1a;
}
.theme-newspaper .markdown-body blockquote {
  border-left: none;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
  text-align: center;
  font-style: italic;
  color: #4a4a4a;
}
.theme-newspaper .markdown-body code { background: #e8e2d5; color: #1a1a1a; }
.theme-newspaper .markdown-body pre { background: #ebe5d7; border: 1px solid #1a1a1a; }
.theme-newspaper .markdown-body a { color: #1a1a1a; text-decoration: underline; border-bottom: none; }

/* ============================================================
   旧报纸（发黄做旧 · 衬线 · 首字下沉）
   ============================================================ */
.theme-oldnews {
  background-color: #e8d9b5;
  background-image:
    radial-gradient(ellipse at 18% 22%, rgba(120, 80, 30, 0.18), transparent 55%),
    radial-gradient(ellipse at 82% 14%, rgba(80, 50, 20, 0.14), transparent 60%),
    radial-gradient(ellipse at 28% 78%, rgba(110, 70, 25, 0.16), transparent 60%),
    radial-gradient(ellipse at 88% 88%, rgba(70, 40, 15, 0.12), transparent 65%),
    radial-gradient(circle at 50% 50%, rgba(255, 245, 220, 0.4), transparent 70%);
}
.theme-oldnews .markdown-body {
  color: #2a1d10;
  font-family: "Old Standard TT", "Times New Roman", "Songti SC", "SimSun", Georgia, serif;
  font-size: 16px;
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}
.theme-oldnews .markdown-body h1 {
  font-family: "Playfair Display", "Times New Roman", "Songti SC", serif;
  font-size: 2.6em;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0.2em 0 0.1em;
  padding: 0.25em 0;
  border-top: 4px double #2a1d10;
  border-bottom: 4px double #2a1d10;
  text-shadow: 0 1px 0 rgba(80, 50, 20, 0.15);
}
.theme-oldnews .markdown-body h1 + p::before {
  content: "—— 本报特稿 ——";
  display: block;
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 6px;
  font-size: 0.75em;
  color: #6b4a25;
  margin: 0.6em 0 1em;
  font-style: italic;
}
.theme-oldnews .markdown-body h2 {
  font-variant: small-caps;
  letter-spacing: 3px;
  font-size: 1.5em;
  text-align: center;
  border-bottom: 1px solid #2a1d10;
  padding-bottom: 0.2em;
  margin-top: 1.6em;
}
.theme-oldnews .markdown-body h3 {
  font-variant: small-caps;
  letter-spacing: 1.5px;
  font-size: 1.15em;
  color: #4a3018;
}
.theme-oldnews .markdown-body p { text-indent: 2em; margin: 0.4em 0 0.8em; }
.theme-oldnews .markdown-body h1 + p,
.theme-oldnews .markdown-body h2 + p,
.theme-oldnews .markdown-body h3 + p { text-indent: 0; }
.theme-oldnews .markdown-body h1 + p::first-letter,
.theme-oldnews .markdown-body > p:first-of-type::first-letter {
  font-family: "Playfair Display", "Times New Roman", "Songti SC", serif;
  font-size: 3.4em;
  font-weight: 900;
  float: left;
  line-height: 0.9;
  padding: 0.05em 0.1em 0 0;
  color: #4a2c10;
}
.theme-oldnews .markdown-body blockquote {
  border: none;
  border-top: 1px solid #4a3018;
  border-bottom: 1px solid #4a3018;
  background: transparent;
  text-align: center;
  font-style: italic;
  color: #4a3018;
  margin: 1.2em 2em;
  padding: 0.6em 1em;
  position: relative;
}
.theme-oldnews .markdown-body blockquote p { text-indent: 0; }
.theme-oldnews .markdown-body blockquote::before {
  content: "“";
  position: absolute;
  left: 0.2em; top: -0.2em;
  font-size: 2em;
  color: #6b4a25;
  font-family: Georgia, serif;
}
.theme-oldnews .markdown-body blockquote::after {
  content: "”";
  position: absolute;
  right: 0.2em; bottom: -0.5em;
  font-size: 2em;
  color: #6b4a25;
  font-family: Georgia, serif;
}
.theme-oldnews .markdown-body strong { color: #1a1209; }
.theme-oldnews .markdown-body em { color: #4a3018; }
.theme-oldnews .markdown-body a {
  color: #2a1d10;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: none;
}
.theme-oldnews .markdown-body hr {
  border: none;
  height: 16px;
  background: transparent;
  text-align: center;
  margin: 1.4em 0;
}
.theme-oldnews .markdown-body hr::before {
  content: "✦ ✦ ✦";
  color: #6b4a25;
  letter-spacing: 12px;
  font-size: 14px;
}
.theme-oldnews .markdown-body code {
  font-family: "Courier New", "Courier", monospace;
  background: rgba(120, 80, 30, 0.15);
  color: #3a2410;
  padding: 0.1em 0.35em;
}
.theme-oldnews .markdown-body pre {
  background: rgba(255, 245, 215, 0.55);
  border: 1px dashed #6b4a25;
  color: #2a1d10;
  font-family: "Courier New", monospace;
}
.theme-oldnews .markdown-body pre code { background: transparent; color: inherit; }
.theme-oldnews .markdown-body ul li::marker { color: #6b4a25; }
.theme-oldnews .markdown-body table { border-collapse: collapse; }
.theme-oldnews .markdown-body th,
.theme-oldnews .markdown-body td {
  border: 1px solid #4a3018;
  background: rgba(255, 245, 215, 0.35);
}
.theme-oldnews .markdown-body th {
  font-variant: small-caps;
  letter-spacing: 1.5px;
  background: rgba(120, 80, 30, 0.18);
}
