/* 基础样式 */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
header {
  border-bottom: 1px solid #eaecef;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

header h1 {
  margin: 0;
  font-size: 28px;
}

header h1 a {
  color: #333;
  text-decoration: none;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #586069;
  text-decoration: none;
  margin-right: 15px;
}

nav a:hover {
  color: #0366d6;
}

/* 首页样式 */
.home h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaecef;
}

.post-meta {
  color: #586069;
  font-size: 14px;
}

.post-link {
  color: #0366d6;
  text-decoration: none;
}

.post-link:hover {
  text-decoration: underline;
}

/* 文章样式 */
.post {
  max-width: 800px;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 32px;
  margin: 0 0 10px 0;
}

.post-content {
  line-height: 1.8;
}

.post-content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eaecef;
  padding-bottom: 5px;
}

.post-content h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
}

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

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

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

.post-content code {
  background: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

.post-content pre {
  background: #f6f8fa;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 15px;
}

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

.post-content blockquote {
  border-left: 4px solid #dfe2e5;
  padding-left: 15px;
  color: #586069;
  margin: 15px 0;
}

.post-content a {
  color: #0366d6;
  text-decoration: none;
}

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

/* 页脚样式 */
footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eaecef;
  text-align: center;
  color: #586069;
  font-size: 14px;
}

footer a {
  color: #036069;
}

/* 响应式设计 */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  header h1 {
    font-size: 24px;
  }

  .post-title {
    font-size: 24px;
  }
}
