/* ==========================================================================
   pages.css — 列表页 / 详情页的内容区样式
   首页用的是原站的 .famous / .catalog 结构（见 components.css），
   这份只负责次级页面的网格卡片、面包屑与详情卡。

   之所以独立成文件而不塞进 head.eta 的内联样式：
   首页不需要这些规则，内联会让每个页面多带 3KB 且难以复用。
   ========================================================================== */

.section { margin-bottom: 26px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; margin: 0 0 12px;
}
.section-title::before {
  content: ""; width: 3px; height: 14px; background: #2f6fed; border-radius: 2px;
}
.section-title .more { margin-left: auto; font-size: 12px; color: var(--ink-2); font-weight: 400; }

.grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
}
.grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 4px; background: #fff;
  border: 1px solid #eceef2; min-width: 0;
}
.card:hover { border-color: #b9cdf2; background: #f5f9ff; }
.card img { width: 16px; height: 16px; flex: none; border-radius: 2px; object-fit: contain; }
.card .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.card .dot {
  width: 18px; height: 18px; flex: none; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; font-weight: 500; color: #fff; background: #6b8cc9;
}

.empty { padding: 40px; text-align: center; color: var(--ink-2); font-size: 13px; }
.crumb { font-size: 13px; color: var(--ink-2); padding: 18px 0 6px; }
.crumb a:hover { color: #2f6fed; }

.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; }
.detail-card h1 { margin: 0 0 6px; font-size: 20px; font-weight: 500; }
.detail-card .url { font-size: 13px; color: var(--ink-2); word-break: break-all; }
.detail-card .summary { margin: 16px 0 0; color: var(--ink); }
.detail-card .visit {
  display: inline-block; margin-top: 18px; padding: 8px 22px;
  background: #2f6fed; color: #fff; border-radius: 4px; font-size: 14px;
}
