/* =========================================================
   blog.x-1.online
   ========================================================= */

/* ─── 博客头 ───────────────────────────────────────────── */

.blog-head {
  padding: clamp(110px, 15vw, 160px) 0 clamp(36px, 5vw, 56px);
}

.blog-head .who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.blog-head h1 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 6.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 20px;
}

.blog-head .intro {
  font-size: clamp(14.5px, 1.7vw, 17px);
  line-height: 1.8;
  color: var(--fg-mute);
  max-width: 40em;
}

.blog-head .stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.blog-head .stat-line b {
  color: var(--fg-mute);
  font-weight: 500;
}

/* 个人站跳转 */
.cross-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-mute);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cross-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cross-link:hover {
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.cross-link:hover svg { transform: translateX(3px); }

/* ─── 文章列表 ─────────────────────────────────────────── */

.posts {
  border-top: 1px solid var(--line);
  padding-bottom: 20px;
}

.post {
  border-bottom: 1px solid var(--line);
}

.post > summary {
  display: grid;
  grid-template-columns: 88px 60px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post > summary::-webkit-details-marker { display: none; }
.post > summary::marker { content: ''; }

.post > summary:hover { padding-left: 10px; }

.post time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.post .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.post .title {
  font-size: 15.5px;
  color: var(--fg);
  transition: color 0.3s ease;
}

.post > summary:hover .title { color: var(--accent); }
.post > summary:hover time { color: var(--fg-mute); }
.post > summary:hover .tag { opacity: 1; }

.post[open] > summary .title { color: var(--accent); }

/* 展开的正文 */
.post-body {
  padding: 2px 0 30px 166px;
  max-width: 62em;
}

.post-body p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--fg-mute);
  margin-bottom: 15px;
}

.post-body p:last-child { margin-bottom: 0; }

.post-body img {
  border-radius: 8px;
  margin: 18px 0;
}

/* ─── 加载更多 ─────────────────────────────────────────── */

.more-wrap {
  display: flex;
  justify-content: center;
  padding: 44px 0 10px;
}

.more-btn {
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-mute);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.more-btn:hover {
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.loading-line,
.empty-line {
  padding: 40px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.empty-note {
  padding: 52px 0 40px;
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}

/* ─── 博客总览 ─────────────────────────────────────────── */

.blog-index {
  border-top: 1px solid var(--line);
}

.blog-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-row:hover { padding-left: 12px; }

.blog-row .glyph {
  font-size: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-row:hover .glyph { transform: scale(1.1); }

.blog-row h2 {
  font-size: clamp(17px, 2.2vw, 21px);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.blog-row:hover h2 { color: var(--accent); }

.blog-row .latest {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

.blog-row .count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
}

.blog-row.pending {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 760px) {
  .post > summary {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 15px 0;
  }

  .post time { grid-column: 1; order: -1; }
  .post .tag { grid-column: 2; text-align: right; }
  .post .title { grid-column: 1 / -1; }
  .post-body { padding-left: 0; }

  .blog-row {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .blog-row .count { display: none; }
}
