/* 子墨 AI 洞察 · 栏目专属样式
   站壳（导航/footer/二维码）在 zimuo.css，本文件只补洞察列表与长文细节。

   注意：
   1) 变量名必须跟 zimuo.css 的 :root 一致（--panel / --text / --text-2 / --text-3），
      早期版本用的 --bg-1 / --ink-1..3 在换肤后已不存在，写了等于没写（整块样式失效）。
   2) 所有资源引用统一用根绝对路径（/zimuo.css），不要写 ../zimuo.css——
      列表页 /insight/、文章页 /insight/<slug>/、主题页 /insight/topic/<t>/ 深度不同，
      相对路径必然会在某层解析错。
   3) 改动后 bump 引用处的 ?v=（build_insight.py 会按内容哈希自动注入） */

/* ---------- 列表页卡片：比 blog 更大更留白，适配长文 ---------- */
.post-list {
  display: grid;
  gap: 20px;
}

.post-item {
  display: block;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.post-item:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .07);
}

.post-item .pi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-3);
}

.post-item .pi-aud {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .14);
  color: var(--gold-lt);
  font-weight: 500;
}

.post-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.post-item p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.post-item .pi-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-item .tag-chip {
  font-size: 12px;
  color: var(--text-3);
  background: rgba(128, 128, 128, .1);
  padding: 2px 8px;
  border-radius: 6px;
  text-decoration: none;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
}

/* ---------- 主题筛选条 ---------- */
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filters .f-label {
  font-size: 13px;
  color: var(--text-3);
}

.filters .filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: all .2s ease;
}

.filters .filter-chip:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
  background: rgba(59, 130, 246, .08);
}

.filters .filter-chip.on {
  border-color: var(--gold);
  color: var(--gold-lt);
  background: rgba(59, 130, 246, .14);
}

/* ---------- 长文正文排版微调 ---------- */
.article-body {
  font-size: 16.5px;
  color: var(--text);
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body a:hover {
  border-bottom-color: var(--gold);
}

/* 洞察多为长文，段落间距略大于 blog，保持呼吸感 */
.article-body p {
  margin-bottom: 20px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .post-item {
    padding: 22px 20px;
    border-radius: 12px;
  }

  .post-item h3 {
    font-size: 18px;
  }

  .post-item .pi-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .article-body {
    font-size: 16px;
  }
}
