:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --card: #1c2230;
  --text: #e6edf3;
  --text-dim: #9aa5b1;
  --accent: #58a6ff;
  --accent-2: #7ee787;
  --border: #2d333b;
  --radius: 12px;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand .dot { color: var(--accent); }
.nav nav a {
  color: var(--text-dim);
  margin-left: 20px;
  font-size: 14px;
}
.nav nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% -10%, rgba(88, 166, 255, 0.18), transparent),
    var(--bg);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { background: #79b8ff; text-decoration: none; }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-title {
  font-size: 24px;
  margin: 0 0 32px;
  text-align: center;
  font-weight: 600;
}
.center { text-align: center; }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s, border-color 0.15s;
}
.card.project:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.card h3 { margin: 0 0 10px; font-size: 17px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  background: rgba(88, 166, 255, 0.08);
  color: var(--accent);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }
.post-list a {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
  color: var(--text);
}
.post-list a:hover { color: var(--accent); text-decoration: none; }
.post-list .date { color: var(--text-dim); font-size: 13px; min-width: 100px; font-variant-numeric: tabular-nums; }
.post-list .title { font-size: 16px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .nav nav a { margin-left: 12px; }
  .post-list a { flex-direction: column; gap: 4px; }
  .post-list .date { min-width: 0; }
  .hero { padding: 64px 0 56px; }
}
