/**
 * 分类导航 / 站点地图页
 */
body.types-page {
  margin: 0;
  padding: 20px 16px 32px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.types-page .wrap {
  max-width: 720px;
  margin: 0 auto;
}

.types-page .types-hero {
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(520px 160px at 0% 0%, rgba(91, 140, 255, 0.18), transparent 60%),
    linear-gradient(145deg, var(--card), #0c101c);
}

.types-page .types-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.types-page .types-lead {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.types-page .types-lead strong {
  color: var(--text);
  font-weight: 600;
}

.types-page nav.top-links {
  margin-bottom: 18px;
  font-size: 14px;
}

.types-page nav.top-links a {
  margin-right: 14px;
  color: var(--brand);
  font-weight: 500;
}

.types-page ul.type-list {
  padding: 0;
  list-style: none;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.types-page:has(ul.type-list:not(.type-list--static)) ul.type-list--static {
  display: none;
}

.types-page ul.type-list .type-item {
  margin: 0;
  padding: 0;
  border: none;
}

.types-page a.type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 30, 58, 0.75), rgba(14, 18, 36, 0.65));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.types-page a.type-row:hover {
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 6px 20px rgba(91, 140, 255, 0.12);
  transform: translateY(-1px);
}

.types-page .type-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.types-page .type-count {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(91, 140, 255, 0.95);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.22);
}

.types-page section.sitemap-block h2 {
  margin: 16px 0 10px;
  font-size: 16px;
}

.types-page section.sitemap-block ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.types-page section.sitemap-block li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.types-page section.sitemap-block a {
  color: var(--brand);
}

@media (max-width: 480px) {
  .types-page a.type-row {
    padding: 14px 14px;
  }

  .types-page .type-name {
    font-size: 15px;
  }

  .types-page .type-count {
    font-size: 13px;
    padding: 3px 10px;
  }
}
