:root {
  --bg: #0f1117;
  --bg-card: #181b24;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #6ee7b7;
  --accent-dim: #34d399;
  --border: #2a2f3a;
  --link: #7dd3fc;
  --radius: 12px;
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav a:hover { color: var(--accent); }

main { flex: 1; padding: 2.5rem 0 3rem; }

.hero {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--link));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.post-list { display: flex; flex-direction: column; gap: 1.5rem; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.15s;
}

.post-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.post-card time,
.post-header time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.post-card h2 {
  font-size: 1.25rem;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.4;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover { color: var(--accent); }

.summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.read-more {
  color: var(--link);
  text-decoration: none;
  font-size: 0.9rem;
}

.read-more:hover { color: var(--accent); }

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 1.75rem;
  line-height: 1.35;
  margin: 0.5rem 0 1rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  background: rgba(110, 231, 183, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.post-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-dim);
}

.post-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.post-content p { margin-bottom: 1.1rem; }

.post-content ul, .post-content ol {
  margin: 0 0 1.1rem 1.4rem;
}

.post-content li { margin-bottom: 0.35rem; }

.post-content a { color: var(--link); }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content code {
  font-family: var(--mono);
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-nav a {
  color: var(--link);
  text-decoration: none;
}

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

.footer-note { margin-top: 0.35rem; opacity: 0.8; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .post-header h1 { font-size: 1.4rem; }
  .nav a { margin-left: 0.85rem; }
}
