:root {
  --bg: #f7f8fc;
  --card-bg: #ffffff;
  --text: #1f2330;
  --muted: #6b7280;
  --border: #e6e8f0;
  --accent: #6366f1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 48px 20px 24px;
}
.hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
}
.hero p { color: var(--muted); margin: 0; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 12px 0 60px;
}
.card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(31, 35, 48, .08);
  border-color: var(--accent);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card .meta { margin: 0; color: var(--muted); font-size: 13px; word-break: break-all; }

.empty { color: var(--muted); text-align: center; grid-column: 1 / -1; padding: 40px 0; }
.empty a { color: var(--accent); }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
  border-top: 1px solid var(--border);
}
