/* assets/blog.css — 博客列表（参 src/06_blog.html + spec §6 验收清单） */

/* 字体精修（src/06 line 50-53 同款） */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { letter-spacing: .2px; }
h1, h2, h3 { letter-spacing: .4px; }
.count, .count b, .count .rss, .colhead, .it .no, .it h3 em, .it .m, .yearlbl, .endnote, .pgn a, .pgn .info {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: 0;
}

/* header：轻量版（无重线刊头） */
.hd {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 6px;
}
.hd h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: .4px;
}
.hd h1 span { color: var(--accent); }
.hd .vol {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 2px;
}

.count {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 8px 0 30px;
  border-top: 1.5px dashed var(--line-card);
  padding-top: 14px;
  /* 整块加载：先向上偏 21px + 透明，0.05s 后用 expo-out 缓动渐入 0.9s */
  animation: colsRise .9s cubic-bezier(0.16, 1, 0.3, 1) .05s both;
}
.count b { color: var(--accent-deep); }
.count .rss { color: var(--accent-deep); }

/* 双栏 + 翻页动画（全程 translate3d 走 GPU 合成层，避免 2D/3D 切换抖动） */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1), opacity .28s cubic-bezier(0.16, 1, 0.3, 1);
  /* 整块加载：先向上偏 21px + 透明，0.15s 后用 expo-out 缓动渐入 0.9s（比 .count 晚 100ms，自上而下瀑布感）
   * 用 `backwards` 而非 `both`：只把 from 状态应用到 delay 期间（0.15s 前），动画结束后不 hold to 状态，
   * 否则动画 hold 的 `transform: none; opacity: 1` 会一直 override 翻页时 .cols.out/.cols.in 的 transform/opacity，
   * 翻页就完全不动了 */
  animation: colsRise .9s cubic-bezier(0.16, 1, 0.3, 1) .15s backwards;
}
@keyframes colsRise {
  from { opacity: 0; transform: translate3d(0, 21px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.cols.out { transform: translate3d(-26px, 0, 0); opacity: 0; }
.cols.in  { transition: none; transform: translate3d(26px, 0, 0); opacity: 0; }

/* 列内排版 */
.colhead {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.it {
  display: flex; gap: 16px;
  padding: 13px 0;
  border-bottom: 1.5px dashed var(--line);
  align-items: baseline;
  transition: background .3s;
}
.it:hover { background: rgba(249,245,236,.7); border-radius: 8px; }
.it .no {
  font-family: var(--mono);
  font-size: 12px;
  color: #c4b99f;
  flex-shrink: 0;
}
.it h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.it h3 em {
  font-style: normal;
  box-shadow: inset 0 -0.4em var(--mark-bg);
}
.it h3 a { color: inherit; }
.it h3 a:hover { box-shadow: inset 0 -0.4em var(--mark-bg); }
.it .m {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.8;
  flex-shrink: 0;
}
.it .m b { color: var(--accent-deep); font-weight: 400; }

.yearlbl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin: 18px 0 2px;
  letter-spacing: 1px;
}

.endnote {
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 34px 0 8px;
}

/* pagination */
.pgn {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 22px;
  align-items: center;
}
.pgn a {
  width: 38px; height: 38px;
  border: 1.5px solid var(--line-card);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.pgn a.cur {
  background: var(--term);
  color: var(--accent-hi);
  border-color: var(--term);
  font-weight: 700;
}
.pgn a.dis {
  border-style: dashed;
  color: #c9bfa9;
  pointer-events: none;
}
.pgn a:not(.dis):not(.cur):hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.pgn .info {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-left: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .cols, .it, .pgn a { transition: none !important; }
}