/* 新闻列表页与文章详情页 */

.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.cat-tabs a { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: 14.5px; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.cat-tabs a:hover { border-color: var(--brand-2); color: var(--brand-2); }
.cat-tabs a.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.article-card:hover { border-color: var(--brand-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card__thumb { display: block; background: var(--bg-soft); }
.article-card__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.article-card time { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.article-card h2 { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.article-card a { color: inherit; }
.article-card:hover h2 { color: var(--brand-2); }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.article-card__more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); }

/* 文章详情 */
.post-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.post-head .wrap { padding-top: 40px; padding-bottom: 34px; }
.post-head h1 { margin: 0 0 12px; font-size: 1.9rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; color: var(--muted); font-size: 14px; }
.post-meta a { color: var(--brand-2); }

.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.post-body { max-width: 100%; overflow-wrap: break-word; }
.post-body p { margin: 0 0 16px; }
.post-body h2 { margin: 34px 0 12px; font-size: 1.35rem; padding-left: 14px; border-left: 4px solid var(--brand-2); }
.post-body h3 { margin: 26px 0 10px; font-size: 1.15rem; }
.post-body h4 { margin: 20px 0 8px; }
.post-body img { margin: 20px auto; border-radius: var(--radius); }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 1.4em; }
.post-body li { margin: 0 0 8px; }
.post-body strong { color: var(--brand); }
.post-body blockquote { margin: 20px 0; padding: 14px 18px; background: var(--bg-soft); border-left: 4px solid var(--accent); }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.post-body th { background: var(--bg-soft); }

.post-rel { margin: 0; padding: 0; list-style: none; }
.post-rel li { border-bottom: 1px dashed var(--line); }
.post-rel li:last-child { border-bottom: 0; }
.aside-card .post-rel a { display: block; padding: 10px 0; color: var(--text); font-size: 14.3px; line-height: 1.6; }
.aside-card .post-rel a::after { content: none; }
.aside-card .post-rel a:hover { color: var(--brand-2); }
.post-rel time { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.post-foot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }

@media (max-width: 1080px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .post-head h1 { font-size: 1.5rem; }
}
