/* ============================================================
   sitemap.html 专属样式（2026-09-12）
   独立文件，不改动主 style.css，只作用于站点地图页
   依赖 style.css 的 :root 变量与 .sm-* 基础样式
   ============================================================ */

/* 顶部统计卡 */
.sm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}
.sm-stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sm-stat-n {
  font-size: 21px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.sm-stat-t { font-size: 12.5px; color: var(--muted); }

/* 锚点快速跳转 */
.sm-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.sm-jump-a {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
  transition: color .15s, background .15s, border-color .15s;
}
.sm-jump-a:hover { color: #fff; background: var(--green); border-color: var(--green); }

/* 搜索筛选 */
.sm-searchwrap { margin: 0 0 30px; }
.sm-search {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sm-search:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 182, 122, 0.12);
}
.sm-hint { color: var(--muted); font-size: 14px; margin: 10px 2px 0; }

/* 分组锚点定位（避开吸顶导航） */
.sm-group { scroll-margin-top: 92px; }

/* 文章分类子分组 */
.sm-cat { margin: 4px 0 24px; }
.sm-cat:last-child { margin-bottom: 0; }
.sm-cat-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  margin: 16px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--green);
}
.sm-cat-sub { font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* 带日期/说明的列表项 */
.sm-articles { grid-template-columns: repeat(2, 1fr); }
.sm-articles a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  line-height: 1.5;
}
.sm-date {
  flex: none;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sm-note {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
  line-height: 1.45;
}

/* 响应式 */
@media (max-width: 900px) {
  .sm-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sm-articles { grid-template-columns: 1fr; }
  .sm-stat { padding: 11px 13px; }
  .sm-stat-n { font-size: 18px; }
  .sm-cat-h { flex-wrap: wrap; row-gap: 2px; }
}
