:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9a9a9a;
  --border: #e6e6e2;
  --accent: #185fa5;
  --max-width: 860px;
}

* { box-sizing: border-box; }

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.nav { display: flex; gap: 22px; }

.nav a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav a:hover, .nav a.active { color: var(--text); }

.hero { padding: 56px 0 44px; border-bottom: 1px solid var(--border); }
.hero .eyebrow { font-size: 11px; color: var(--accent); letter-spacing: 0.16em; margin-bottom: 14px; }
.hero h1 { font-size: 30px; line-height: 1.5; font-weight: 600; margin: 0; max-width: 560px; }
.hero p { font-size: 14px; color: var(--text-secondary); margin: 12px 0 0; max-width: 520px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 48px;
  padding-top: 36px;
}

.post-item { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: none; margin-bottom: 0; }
.post-meta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; }
.post-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { font-size: 14px; color: var(--text-secondary); margin: 0 0 10px; }
.post-tags { font-size: 12px; color: var(--text-tertiary); }

.sidebar .widget { margin-bottom: 30px; }
.widget-title { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.widget p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  text-decoration: none;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }
.archive-list { font-size: 13px; color: var(--text-secondary); line-height: 2; }

.site-footer {
  margin-top: 56px;
  padding: 20px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
}

.article { padding: 44px 0 20px; max-width: 680px; }
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article h1 { font-size: 28px; line-height: 1.45; font-weight: 600; margin: 10px 0 12px; }
.article-body { font-size: 15px; line-height: 1.9; color: #2b2b2b; }
.article-body h2 { font-size: 19px; margin: 32px 0 12px; font-weight: 600; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}
.article-body pre { background: var(--surface); padding: 16px; border-radius: 8px; overflow: auto; }
.article-body pre code { background: none; padding: 0; }
.back-link { font-size: 13px; color: var(--accent); text-decoration: none; }

.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.page-head p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.group-title { font-size: 18px; font-weight: 600; margin: 36px 0 14px; }
.loading { font-size: 13px; color: var(--text-tertiary); padding: 24px 0; }

@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 24px; }
  .nav { gap: 14px; }
  .brand { font-size: 16px; }
  .site-footer { flex-direction: column; gap: 6px; }
}
