/* ==========================================================
   LINKPARK 列表模式（紧凑行式）
   - "用完就走"：一屏能扫完，点开即读，没有大图卡片
   - 行内四段：标题 / 时间·分类·地址 / 缩略信息 / 标签
   - 覆盖 style.css / responsive.css 的卡片规则（本文件最后加载）
   ========================================================== */

/* ---- 列表容器：单列，行与行之间用细线分隔 ---- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--color-border-light);
}

/* ---- 行容器 ---- */
.post-card {
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border-light);
  border-radius: 0;
  overflow: visible;
  padding: 15px 10px 16px;
  transition: background var(--transition-fast);
}

.post-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--color-bg-secondary);
}

/* 列表里不再展示封面大图、左侧图标 */
.post-card-image {
  display: none !important;
}

.post-card-body {
  padding: 0;
  min-width: 0;
  display: block;
}

.post-card-header {
  margin: 0;
}

.post-card-meta {
  display: none;
}

/* ---- 第一行：标题 1.5rem ---- */
.post-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--color-text);
}

.post-card-title a {
  color: var(--color-text);
  border-bottom: none;
  text-decoration: none;
}

.post-card:hover .post-card-title,
.post-card:hover .post-card-title a {
  color: var(--color-primary-dark);
}

.post-card-title a:hover {
  color: var(--color-primary-dark);
}

/* ---- 第二行：时间 · 分类 · 地址 ---- */
.post-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.post-card-sep {
  margin: 0 8px;
  opacity: 0.45;
  font-size: 12px;
}

.post-card-date {
  opacity: 0.85;
}

.post-card-cat {
  color: var(--color-primary-dark);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: none;
  transition: color var(--transition-fast);
}

.post-card-cat:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 项目地址：域名 + 小箭头，点击新窗口打开 */
.post-card-site {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 320px;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.post-card-site-host {
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-site-arrow {
  font-size: 11px;
  line-height: 1;
  opacity: 0.6;
  flex: 0 0 auto;
}

.post-card-site:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* GitHub 项目：图标 + @owner/repo */
.post-card-site--gh {
  max-width: 320px;
  gap: 4px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.post-card-gh-icon {
  flex: 0 0 auto;
  opacity: 0.85;
  margin-top: 1px;
}

/* 普通站点：地址前带该站的 favicon（无 icon 的文章不显示） */
.post-card-site-fav {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  object-fit: contain;
  margin-top: 1px;
  opacity: 0.9;
}

/* ---- 第三行：缩略信息，一行 ---- */
.post-card-excerpt {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-excerpt a {
  color: inherit;
  border-bottom: none;
  text-decoration: none;
}

/* ---- 第四行：标签，多了自动换行 ---- */
.post-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.post-tag {
  display: inline-block;
  padding: 0 8px;
  height: 19px;
  line-height: 19px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-light);
}

/* ---- 小屏：标题收小一档，其余保持 ---- */
@media (max-width: 640px) {
  .post-card {
    padding: 13px 6px 14px;
  }

  .post-card-title {
    font-size: 1.2rem;
  }

  .post-card-meta-row {
    font-size: 12px;
    margin-top: 5px;
  }

  .post-card-excerpt {
    font-size: 13px;
  }

  .post-tag {
    height: 18px;
    line-height: 18px;
    padding: 0 7px;
    font-size: 11.5px;
  }
}

/* ---- 各页面标题区已移除：面包屑下直接给内容留一点呼吸 ---- */
.site-main > .container {
  padding-top: var(--space-2);
}

.page-detail .page-detail-content > :first-child {
  margin-top: 0;
}

/* 侧栏标签计数贴着名称，补一点空隙 */
.sidebar-tag-count {
  margin-left: 3px;
}

/* ---- 全局字号：整体放大一点，正文 18px ---- */
html {
  font-size: 17px;
}

.post-detail-content,
.page-detail-content {
  font-size: 18px;
  line-height: 1.9;
}
