/* ============================================================
 * page.css — 首页（changelog）/ 归类 / 搜索
 * 年份像 release tag：等宽大字 + 基线细线 + 计数。
 * ============================================================ */

.page {
  min-height: 40vh;
}

/* ---- 首页 / 归类 共用的记录列表 ---- */
.list-post > h2 {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--line);
}
.list-post > h2 .count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.list-post ul {
  padding-left: 0;
}
.list-post li {
  display: flex;
  align-items: baseline;
  padding: 9px 0;
}
.list-post li .date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 46px;
  margin-right: 14px;
  font-variant-numeric: tabular-nums;
}
.list-post li .title {
  width: 0;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-post li .title a {
  font-size: 16px;
}
.list-post li .categories {
  flex-shrink: 0;
  margin-left: 12px;
}
.list-post li .categories a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background-color: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  transition: color 150ms ease;
}
.list-post li .categories a:hover {
  color: var(--accent);
}

/* ---- 归类页 ---- */
.list-category {
  padding: 8px 0 4px;
}
.list-category h2 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 0 10px;
}
.list-category div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  padding-bottom: 6px;
}
.list-category div a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  background-color: var(--bg-soft);
  padding: 5px 14px;
  border-radius: 6px;
  transition: color 150ms ease;
}
.list-category div a:hover {
  color: var(--accent);
}
.list-category + .list-post {
  margin-top: 20px;
}

/* ---- 搜索页 ---- */
.page-search #search-input {
  font-family: var(--font-mono);
  text-align: center;
  font-size: 14px;
  width: 100%;
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--ink);
  transition: border-color 150ms ease;
}
.page-search #search-input:focus {
  border-color: var(--accent);
}
.page-search #search-input::placeholder {
  color: var(--muted);
}
.page-search h1 {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  padding: 22px 0 4px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
}
.page-search .list-search li {
  list-style: disc;
  margin-left: 18px;
  margin-bottom: 22px;
}
.page-search .list-search .title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 1px;
}
.page-search .list-search a:hover .title {
  color: var(--accent);
}
.page-search .list-search .content {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0 0;
}
.page-search .list-search .hint {
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
}

/* ---- 关于 / 友链 等简单文本页 ---- */
.page > h1 {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  padding: 16px 0 12px;
}
.page p,
.page ul,
.page ol {
  margin: 12px 0;
}
.page ul {
  padding-left: 22px;
}
.page ul > li {
  list-style: disc;
}
.page-search .list-search a {
  color: var(--ink);
}

/* ---- 移动端 ---- */
@media screen and (max-width: 560px) {
  .list-post > h2 {
    font-size: 20px;
    padding: 14px 0 8px;
  }
  .list-post li {
    padding: 8px 0;
  }
  .list-post li .title a {
    font-size: 15px;
  }
  .list-post li .categories {
    display: none;
  }
}
