/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: #333;
  background: #fafafa;
  line-height: 1.8;
}

a {
  color: #555;
  text-decoration: none;
}

a:hover {
  color: #000;
}

/* 导航 */
.site-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.site-nav .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.site-nav .nav-links a {
  margin-left: 24px;
  font-size: 0.95rem;
}

/* 主容器 */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* 简介区 */
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.profile .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile .bio h1 {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile .bio p {
  color: #666;
  font-size: 0.95rem;
}

/* 文章列表 */
.article-list {
  list-style: none;
}

.article-list li {
  margin-bottom: 32px;
}

.article-list .post-title {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 4px 0;
}

.article-list .post-title a {
  color: #111;
}

.article-list .post-title a:hover {
  color: #555;
}

.article-list .post-excerpt {
  font-size: 0.95rem;
  color: #666;
  margin-top: 6px;
}

/* 标签云 */
.tag-cloud {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.tag-cloud h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.tag-cloud .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .tags span {
  background: #eee;
  color: #555;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* 文章正文 */
.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-header .meta {
  font-size: 0.85rem;
  color: #999;
}

.article-body h2 {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.article-body h3 {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body pre {
  background: #f0f0f0;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
}

.article-body code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* 关于页 */
.about-section {
  margin-bottom: 32px;
}

.about-section h2 {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.about-section p {
  margin-bottom: 12px;
  color: #555;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-tags span {
  background: #eee;
  color: #333;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* 底部 */
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid #eee;
  margin-top: 48px;
}

.site-footer a {
  color: #999;
}

.site-footer a:hover {
  color: #555;
}

/* 响应式 */
@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    gap: 8px;
  }

  .profile {
    flex-direction: column;
    text-align: center;
  }

  .article-header h1 {
    font-size: 1.4rem;
  }
}
