/* 归档页与标签页共用：页头、工具条、文章行 */
.page-head { padding-block: clamp(32px, 6vh, 64px) clamp(16px, 3vh, 28px); position: relative; isolation: isolate; overflow: clip; }
.page-head::before {
  content: ""; position: absolute; inset: -55% -12% auto auto; z-index: -1;
  width: min(70vw, 760px); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgb(159 211 255 / .55) 0 2px, transparent 2px 22px);
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
[data-motion="on"] .page-head::before { animation: drift 10s ease-in-out infinite alternate; }
@keyframes drift { to { translate: -40px 30px; scale: 1.1; } }
.page-title { margin: 0; font: 800 clamp(2.6rem, 8vw, 6rem)/.9 var(--f-display); letter-spacing: -0.05em; }
.page-sub { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 10;
  background: var(--glass); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.toolbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 10px; }
.field {
  display: flex; align-items: center; gap: 8px; flex: 1 1 16rem; max-width: 26rem;
  padding: 0 14px; min-height: 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.field:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.status { color: var(--muted); font-size: .9rem; margin: 0; }

/* 文章行 */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.row:last-child { border-bottom: 0; }
.row[hidden] { display: none; }
.row time { font: .85rem var(--f-mono); color: var(--muted); }
.row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; min-width: 0; }
.row-title {
  font-weight: 600; font-size: 1.06rem; line-height: 1.5; text-decoration: none;
  background: linear-gradient(var(--lilac), var(--lilac)) 0 100% / 0 6px no-repeat;
  transition: background-size .35s var(--ease);
}
.row-title:hover, .row-title:focus-visible { background-size: 100% 6px; }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.row-min { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.row mark, .rows mark { background: var(--mark); color: inherit; border-radius: 3px; }
.empty-state { padding: 40px 0; color: var(--muted); }
.empty-state button { margin-left: 8px; }

@media (max-width: 600px) {
  .row { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .row-min { grid-column: 2; }
}
