:root {
  color-scheme: dark;
  --bg: #0f0f1a;
  --bg-alt: #16162a;
  --fg: #e8e8f0;
  --fg-dim: #8a8aa0;
  --fg-faint: #5a5a70;
  --accent: #6c6cf0;
  --border: #2a2a44;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* 头部 */
.site-header {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.site-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.site-nav a {
  margin-left: 1.25rem;
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover { color: var(--accent); }

/* 主体 */
.container {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  min-height: 60vh;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* 文章列表：极简行，无卡片 */
.post-list { list-style: none; }
.post-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.post-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.05rem;
}
.post-link:hover { color: var(--accent); }
.post-date {
  color: var(--fg-faint);
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 1rem;
}

/* 文章页 */
.post-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.3rem; }
.post-date { color: var(--fg-faint); font-size: 0.9rem; }
.post-body { margin-top: 1.8rem; }
.post-body h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
.post-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.post-body p { margin-bottom: 1rem; }
.post-body a { color: var(--accent); }
.post-body ul, .post-body ol { margin: 0 0 1rem 1.5rem; }
.post-body li { margin-bottom: 0.3rem; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  color: var(--fg-dim);
  padding-left: 1rem;
  margin: 1rem 0;
}
.post-body code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.88em;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
}
.post-body pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

/* 页脚 */
.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: 0.85rem;
}
.site-footer p { margin-bottom: 0.2rem; }
.icp { color: var(--fg-faint); text-decoration: none; }
.icp:hover { color: var(--accent); }
