:root {
  --bg: #0d0f14;
  --panel: #151922;
  --line: #232935;
  --fg: #e8ecf3;
  --muted: #8b93a5;
  --accent: #7aa2ff;
  --accent-ink: #0b1020;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand { font-weight: 700; color: var(--fg); letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }

nav.site-nav a { color: var(--muted); margin-left: 20px; font-size: 14px; }
nav.site-nav a:hover { color: var(--fg); text-decoration: none; }

.hero { padding: 60px 0 36px; }
.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.hero p { color: var(--muted); max-width: 36em; margin: 0; }

.section { padding: 36px 0; }
.section h2 { font-size: 20px; margin: 0 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 16px; }
.section-head a { font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-2px); border-color: #333c4f; }

.card .cover {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, #2b3550, #1a2030);
}
.card .cover.g2 { background: linear-gradient(135deg, #3a2b50, #201a30); }
.card .cover.g3 { background: linear-gradient(135deg, #2b5044, #1a3028); }

.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.card .meta { font-size: 12px; color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  margin-right: 6px;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  border: 0;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); cursor: default; }

.empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.about p { color: var(--muted); max-width: 42em; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
footer.site .wrap p { margin: 4px 0; }

@media (max-width: 520px) {
  .hero { padding: 40px 0 24px; }
  .site-inner { padding: 12px 20px; }
}
