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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  border-bottom: 1px solid #e5e5e5;
  padding: 24px 0;
  margin-bottom: 48px;
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

nav a {
  color: #666;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
}

nav a:hover {
  color: #1a1a1a;
}

.post-item {
  margin-bottom: 40px;
}

.post-date {
  font-size: 13px;
  color: #999;
}

.post-item h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.post-item h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-item h2 a:hover {
  text-decoration: underline;
}

.post-excerpt {
  color: #666;
  font-size: 15px;
}

/* Post page */
.post {
  margin-bottom: 48px;
}

.post-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 32px;
}

.post-content {
  font-size: 16px;
  color: #333;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2 {
  font-size: 20px;
  margin: 36px 0 16px;
}

.post-content h3 {
  font-size: 17px;
  margin: 28px 0 12px;
}

.post-content pre {
  background: #f4f4f4;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.post-content code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 14px;
}

.post-content p code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content blockquote {
  border-left: 3px solid #ddd;
  padding-left: 16px;
  color: #666;
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 6px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: #1a1a1a;
}

footer {
  border-top: 1px solid #e5e5e5;
  padding: 24px 0;
  margin-top: 48px;
  font-size: 13px;
  color: #999;
  text-align: center;
}

/* About page */
.about {
  font-size: 16px;
}

.about h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.about p {
  color: #333;
  margin-bottom: 16px;
}
