/* 新闻（博客）列表与文章页样式（page-blog.css） */

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.post-card .card-media { aspect-ratio: 16 / 9; }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-meta .cat { color: var(--brand); font-weight: 600; }
.post-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.45; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 38px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--ink-2); background: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled { color: #b9c0c9; }

.article-head { padding: 48px 0 26px; }
.article-head h1 { max-width: 900px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 22px 0 6px; }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }

.article-poster { margin: 26px auto 10px; max-width: 560px; }
.article-poster img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
.article-poster figcaption { margin-top: 10px; text-align: center; font-size: .82rem; color: var(--muted); }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; }
.toc h2 { font-size: 1rem; margin-bottom: .6em; }
.toc ul { margin: 0; padding-left: 1.2em; }
.toc li { font-size: .92rem; }

.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
