/* ==========================================================
   排版优化（覆盖 archer 默认值，custom.css 加载顺序在最后，同权重必胜）
   原则：只动"版式结构"（列宽/行距/字号/字重/间距/圆角），
        不写死颜色，深色主题由 dark.css 正常接管
   ========================================================== */

/* ---------- 1. 正文阅读列宽（文章页）---------- */
/* archer 文章页 main 占视口 50%，大屏时文字行过长；限制 44rem 并居中 */
.post-page .article-entry {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 2rem;
}

/* ---------- 2. 正文段落 ---------- */
.post-page .article-entry p {
  line-height: 1.85;
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-bottom: 1.2em;
  text-align: justify;
  text-justify: inter-ideograph; /* 中文两端对齐更整齐 */
}
/* 段落里的引用块/图片自身不受 justify 影响 */
.post-page .article-entry p:first-child {
  margin-top: 0;
}

/* ---------- 3. 标题层级节奏 ---------- */
.post-page .article-entry h1,
.post-page .article-entry h2,
.post-page .article-entry h3 {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.8em;
}
.post-page .article-entry h1 {
  font-size: 1.9rem;
}
.post-page .article-entry h2 {
  font-size: 1.5rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(35, 57, 77, 0.15); /* h2 细分隔线，编辑感 */
}
.post-page .article-entry h3 {
  font-size: 1.25rem;
}
.post-page .article-entry :first-child {
  margin-top: 0;
}

/* ---------- 4. 列表 ---------- */
.post-page .article-entry ul,
.post-page .article-entry ol {
  line-height: 1.8;
  margin-bottom: 1.2em;
}
.post-page .article-entry li {
  margin-bottom: 0.35em;
  text-align: justify;
}

/* ---------- 5. 代码块 ---------- */
.post-page .article-entry pre {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.post-page .article-entry code {
  border-radius: 4px;
  padding: 2px 6px;
}
.post-page .article-entry pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* ---------- 6. 图片 ---------- */
.post-page .article-entry img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin: 1.5rem auto;
  max-width: 100%;
}

/* ---------- 7. 引用块 ---------- */
.post-page .article-entry blockquote {
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  line-height: 1.8;
  font-size: 0.95em;
}

/* ---------- 8. 首页：卡片列宽（与文章页阅读列对齐）---------- */
.index-page .index-post,
.index-page .index-post-divider,
.index-page .page-nav {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 9. 首页：卡片标题 ---------- */
/* 卡片视觉锚点：更大字距 + 更重字重（Noto Sans SC 仅 300/400/500/700，700 最稳） */
.index-post .abstract-title .abstract-title-text {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ---------- 10. 首页：卡片摘要（.abstract-content 是纯文本 div，无 p）---------- */
.index-post .abstract-content {
  line-height: 1.8;
  font-size: 15px;
  font-weight: 400; /* archer 默认 300（n3）偏飘 */
  letter-spacing: 0.01em;
  margin-top: 0.8rem;
}

/* 卡片元信息行（日期/标签）：字号收一档，更精致 */
.index-post .abstract-post-meta {
  font-size: 0.9rem;
  margin-top: 1.2rem;
}

/* 卡片内距与卡片间距 */
.index-post {
  padding: 1.4rem 1.5rem;
}
.index-page .index-post-divider {
  margin: 0.8rem 0;
}

/* ---------- 11. 首页：顶部 Hero 标题（Oswald 展示字体，靠字距做高级感）---------- */
.intro-title {
  font-size: 3.5rem;
  letter-spacing: 0.08em;
}
.intro-subtitle {
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

/* ---------- 12. 移动端微调 ---------- */
@media (max-width: 960px) {
  .post-page .article-entry {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }
  .post-page .article-entry p {
    font-size: 16px;
  }
  /* 首页列宽恢复全宽 */
  .index-page .index-post,
  .index-page .index-post-divider,
  .index-page .page-nav {
    max-width: 100%;
  }
  .intro-title {
    font-size: 2.6rem;
  }
  .intro-subtitle {
    font-size: 1.1rem;
  }
}
