/* 文章固定排版：参考 BBoutique 正文 Matter 18px/30px + 标题 Recoleta
   改用免费可商用的 DM Sans / Fraunces，自托管字体，参数写死、不可调 */
@font-face {
  font-family: 'PH DM Sans';
  src: url('/fonts/manage/dm-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'PH Fraunces';
  src: url('/fonts/manage/fraunces-600-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.article-type {
  --art-body: 'PH DM Sans', 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --art-head: 'PH Fraunces', 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-family: var(--art-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: .01em;
  color: #333333;
  -webkit-font-smoothing: antialiased;
}
.article-type h1,
.article-type > h1 {
  font-family: var(--art-head);
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -.015em;
  font-weight: 600;
  color: #2b2320;
  margin: 0 0 18px;
}
.article-type h2,
.article-type > h2 {
  font-family: var(--art-body);
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -.01em;
  font-weight: 700;
  color: #2b2320;
  margin: 34px 0 14px;
}
.article-type h3 {
  font-family: var(--art-body);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -.005em;
  font-weight: 600;
  margin: 26px 0 12px;
}
.article-type p { margin: 0 0 22px; }
.article-type a { color: #756dfd; text-decoration: underline; text-underline-offset: 2px; }
.article-type ul, .article-type ol { margin: 0 0 22px; padding-left: 26px; }
.article-type li { margin-bottom: 8px; }
.article-type blockquote {
  margin: 0 0 22px; padding: 4px 0 4px 20px;
  border-left: 3px solid #756dfd; color: #4a444c; font-style: italic;
}
.article-type figure { margin: 0 0 24px; }
.article-type figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
.article-type figure figcaption {
  font-size: 13px; line-height: 1.6; color: #7a7a80;
  margin-top: 8px; text-align: center; letter-spacing: .01em;
}
.article-type img { max-width: 100%; }
.article-type strong, .article-type b { font-weight: 700; }
.article-type hr { border: 0; border-top: 1px solid #e7e7e7; margin: 30px 0; }

/* 深色站点里的白色阅读卡：保证固定排版的 #333 正文可读 */
.art-rich {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 40px 48px 44px;
  max-width: 820px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, .20);
}
.art-rich h1 { margin-top: 0; }
.art-rich .art-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: #8b8b90; margin-bottom: 16px; line-height: 1.6;
}
.art-rich .art-lead { font-size: 20px !important; color: #6a6a70 !important; margin-bottom: 28px !important; }
.art-rich .art-cover { margin-bottom: 28px !important; }
.art-rich .art-back { margin-top: 40px; font-size: 14px !important; }
@media (max-width: 700px) { .art-rich { padding: 26px 22px 30px; } .art-rich h1 { font-size: 30px; } }

/* 动态文章页（后台新建文章） */
body.art-page { margin: 0; background: #fff; }
.art-nav {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px; border-bottom: 1px solid #eee;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px;
}
.art-nav .art-logo { font-size: 18px; font-weight: 700; color: #222; text-decoration: none; margin-right: auto; }
.art-nav .art-logo span { color: #94712f; }
.art-nav nav a { margin-left: 20px; color: #666; text-decoration: none; }
.art-nav nav a:hover { color: #94712f; }
.art-main { max-width: 760px; margin: 0 auto; padding: 48px 28px 90px; }
.art-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: #8b8b90; margin-bottom: 16px; line-height: 1.6;
}
.art-lead { font-size: 20px !important; color: #6a6a70 !important; margin-bottom: 28px !important; }
.art-cover { margin-bottom: 28px !important; }
.art-back { margin-top: 40px; font-size: 14px !important; }
