/* ============================================
   重置与基础变量
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fafafa;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* 主体容器，控制阅读宽度 */
.blog-container {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ============================================
   博客头部
   ============================================ */
.blog-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1.2rem;
}

.blog-header h1 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
  color: #111;
}

/* ============================================
   文章列表（首页）
   ============================================ */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-item {
  border-bottom: 1px dashed #d4d4d4;
  padding-bottom: 1.5rem;
}

.post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8a8a8a;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.post-title a {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

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

.post-excerpt {
  font-size: 0.98rem;
  color: #3d3d3d;
  margin-bottom: 0.6rem;
  font-weight: 350;
}

.post-meta {
  font-size: 0.8rem;
  color: #777;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ============================================
   页脚
   ============================================ */
.blog-footer {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.8rem;
  color: #7c7c7c;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem;
  }
  .blog-header h1 {
    font-size: 1.8rem;
  }
}