/* resource.css —— 常用网站分类导航 */

.cat { margin-bottom: 40px; }
.cat h3 {
  font-family: "Noto Serif SC", serif; font-size: 1.2rem; font-weight: 600;
  margin-bottom: 16px; color: var(--ink);
}
.links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.link:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31,30,29,.08); border-color: var(--accent); }
.link-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.link-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.access-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.access-public { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.access-level1 { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.access-level2 { color: #6d28d9; background: #ede9fe; border-color: #ddd6fe; }
.access-admin { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }
.access-legacy { color: #92400e; background: #fef3c7; border-color: #fde68a; }
