:root {
  --bg: #f5f6f8;
  --ink: #1a1a1a;
  --muted: #8a8f99;
  --line: #e4e6ea;
  --accent: #2563eb;
  --card: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.top h1 { margin: 0; font-size: 20px; }
.muted { color: var(--muted); font-size: 13px; }
.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 18px 20px;
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.card .title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card .file { font-size: 12px; color: var(--muted); margin-bottom: 6px; overflow: hidden;
              text-overflow: ellipsis; white-space: nowrap; }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.bar { height: 6px; border-radius: 3px; background: #eef0f3; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
