/* ================================================================
   article.css — 文章页 / 列表页
   ================================================================ */

/* 文章容器 */
.doc { padding-bottom: 8px; }

/* 列表页卡片 */
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  height: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.post-card:hover { border-color: #cfd6dd; box-shadow: var(--shadow); text-decoration: none; }
.post-card__cat { font-size: .78rem; color: var(--brand-dark); font-weight: 600; margin-bottom: .5em; letter-spacing: .02em; }
.post-card__t { font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: .45em; }
.post-card__d {
  font-size: .88rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 上一篇 / 下一篇 */
.navposts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.navposts a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.5;
}
.navposts a:hover { border-color: var(--ink-3); text-decoration: none; }
.navposts__k { display: block; font-size: .76rem; color: var(--ink-3); margin-bottom: .25em; letter-spacing: .04em; }
.navposts a:last-child { text-align: right; }
@media (max-width: 600px) {
  .navposts { grid-template-columns: 1fr; }
  .navposts a:last-child { text-align: left; }
}

/* 相关阅读 */
.related { margin-top: 52px; }
.related__t {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-bottom: 1em;
  text-transform: uppercase;
}

/* 列表页头部 */
.list-head {
  padding: 48px 0 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.list-head h1 { margin-bottom: .35em; }
.list-head p { color: var(--ink-3); margin: 0; max-width: 46em; }

/* 筛选条 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 32px; }
.filters a {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .88rem;
  color: var(--ink-2);
  background: #fff;
}
.filters a:hover { border-color: var(--ink-3); text-decoration: none; }
.filters a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
