/* ============================================================
   循道 · 全局样式
   ============================================================ */

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

body {
  background-color: #fafafa;
  color: #1e1e1e;
  font-family: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  padding: 2rem 1.5rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================================
   导航栏
   ============================================================ */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.logo {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: #1e1e1e;
  text-decoration: none;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 450;
  font-size: 1rem;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.nav-links a {
  color: #3a3a3a;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.nav-links a:hover {
  border-bottom-color: #888;
}

.nav-links a.active {
  color: #000;
  border-bottom-color: #1e1e1e;
  font-weight: 500;
}

/* ============================================================
   首页文章列表
   ============================================================ */

.item-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #ececec;
  padding-bottom: 2.5rem;
}

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

.item-title {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.item-title a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.item-title a:hover {
  border-bottom-color: #1a1a1a;
}

.item-meta {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  color: #6f6f6f;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.item-meta .author {
  color: #6f6f6f;
  font-weight: 400;
}

.item-tag {
  background: #ececec;
  padding: 0.1rem 0.6rem;
  border-radius: 12px;
  color: #4a4a4a;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
  margin-left: 0.3rem;
}

.item-body {
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.8;
}

.item-body .full-link {
  color: #1e1e1e;
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px dotted #1e1e1e;
  padding: 0.1rem 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.item-body .full-link:hover {
  opacity: 0.6;
}

/* ============================================================
   文章详情页
   ============================================================ */

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.8rem;
  color: #6f6f6f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-meta .author {
  color: #4a4a4a;
}

.article-tag {
  background: #ececec;
  padding: 0.1rem 0.6rem;
  border-radius: 12px;
  color: #4a4a4a;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.9;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body a {
  color: #1e1e1e;
  text-decoration: none;
  border-bottom: 1px solid #d0d0d0;
  transition: border-color 0.2s, color 0.2s;
}

.article-body a:visited {
  color: #1e1e1e;
  border-bottom-color: #d0d0d0;
}

.article-body a:hover {
  color: #1e1e1e;
  border-bottom-color: #1e1e1e;
}

.article-body a:active {
  color: #1e1e1e;
  border-bottom-color: #1e1e1e;
}

.article-body ul,
.article-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-body li {
  margin-bottom: 0.3rem;
}

.article-body strong {
  color: #1a1a1a;
}

.article-body blockquote {
  border-left: 4px solid #d0d0d0;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #4a4a4a;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-body pre {
  background: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 0.9rem;
}

.article-body code {
  background: #f4f4f4;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 0.9rem;
}

.back-link {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.8rem;
  color: #6f6f6f;
  text-decoration: none;
  border-bottom: 1px dotted #b0b0b0;
  transition: color 0.2s;
}

.back-link:hover {
  color: #1e1e1e;
  border-bottom-color: #1e1e1e;
}

/* ============================================================
   页脚
   ============================================================ */

.footer {
  margin-top: 3.5rem;
  border-top: 1px solid #e5e5e5;
  padding-top: 1.2rem;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.7rem;
  color: #8a8a8a;
  letter-spacing: 0.3px;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 600px) {
  body {
    padding: 1.2rem 0.8rem;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .item-title {
    font-size: 1.2rem;
  }

  .item-body {
    font-size: 0.95rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-body {
    font-size: 1rem;
  }
}
