/* 博客：列表卡片（首页板块 + 列表页共用）与文章正文排版 */

/* —— 列表 —— */
.blog-index{padding-block:clamp(40px,6vw,72px)}
.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.post-card{display:flex;flex-direction:column;padding:22px 0 0;border-top:3px solid var(--blue);text-decoration:none;transition:transform .2s}
.post-card:nth-child(3n+2){border-top-color:var(--orange)}
.post-card:nth-child(3n+3){border-top-color:var(--green)}
.post-card:hover{transform:translateY(-3px)}
.post-meta{font:12px ui-monospace,monospace;letter-spacing:.08em;color:var(--muted);display:flex;gap:14px;flex-wrap:wrap}
.post-card h3{font-size:21px;line-height:1.45;letter-spacing:-.025em;margin:14px 0 10px}
.post-card p{font-size:15px;color:var(--muted);margin:0 0 18px}
.post-go{margin-top:auto;align-self:start;font-size:13px;border-bottom:1px dashed #a6b4a2;padding-bottom:3px}
.post-more{margin:38px 0 0}
/* 空状态只在列表页出现；首页板块无文章时整块隐藏，不显示占位 */
.post-empty{grid-column:1/-1;margin:0;font-size:15px;color:var(--muted);border-top:1px dashed var(--line);padding-top:24px}

/* —— 文章正文 —— */
.post{max-width:720px;padding-block:clamp(40px,6vw,72px)}
.post-head{border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:34px}
.post-head h1{font-size:clamp(30px,4vw,44px);line-height:1.3;letter-spacing:-.045em;margin:14px 0 0}
.prose{font-size:16.5px;line-height:1.85}
.prose h2{font-size:24px;letter-spacing:-.025em;margin:44px 0 14px}
.prose h3{font-size:19px;margin:32px 0 10px}
.prose p{margin:0 0 18px}
.prose ul,.prose ol{padding-left:22px;margin:0 0 18px}
.prose li{margin-bottom:8px}
.prose a{text-underline-offset:4px}
.prose blockquote{margin:26px 0;padding:2px 0 2px 18px;border-left:3px solid var(--line);color:var(--muted)}
.prose code{font:14px ui-monospace,monospace;background:#eef1e8;border-radius:4px;padding:2px 6px}
.prose pre{background:#f1f3ec;border:1px solid var(--line);border-radius:8px;padding:16px 18px;overflow-x:auto;margin:0 0 20px}
.prose pre code{background:none;padding:0;font-size:13.5px;line-height:1.7}
.prose img{max-width:100%;height:auto;border-radius:8px}
.prose hr{border:0;border-top:1px dashed var(--line);margin:34px 0}
.prose table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:15px}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left}
.prose th{font-weight:600}
.post-foot{margin-top:46px;padding-top:24px;border-top:1px solid var(--line);font-size:14px}

@media(max-width:760px){
  .post-list{grid-template-columns:1fr;gap:28px}
  .prose{font-size:16px}
  .prose h2{font-size:21px;margin:34px 0 12px}
}
@media(prefers-reduced-motion:reduce){.post-card{transition:none}.post-card:hover{transform:none}}
