/* ---------- 1. 全局阅读节奏 ---------- */
#content.index,
.content {
  font-size: 1.06rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}


#content.index p,
.content p {
  margin-bottom: 1.15rem;
}

#content.index ul,
#content.index ol,
.content ul,
.content ol {
  margin-bottom: 1rem;
}

#content.index li,
.content li {
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.content blockquote {
  line-height: 1.5;
  padding: 1rem 1.4rem;
}

.content h2,
.content h3,
.content h4 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

/* ---------- 2. 页面整体留白 ---------- */
#wrapper {
  padding-top: 1.5rem;
}

#main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid-container {
  display: grid;
  grid-template-columns: minmax(0, 640px) 220px;
  gap: 1.8rem;
  justify-content: center;
  align-items: start;
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }
  #content.index {
    max-width: 100%;
  }

  .sidebar {
    display: none;
  }
}

/* ---------- 3. 顶部标题与导航 ---------- */
#header {
  margin-bottom: 1.4rem;
}

#header > h1 {
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

#header > nav {
  max-width: none;
  width: auto;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 0.6rem;
}

#header > nav > span > a {
  padding: 0.38rem 0.95rem;
  border: 1.5px solid var(--fg4);
  border-radius: 999px;
  background: var(--bg_s);
  transition: all 0.2s ease;
}

#header > nav > span > a:hover {
  background: var(--fg);
  color: var(--bg) !important;
  border-color: var(--fg);
}

#header > nav > span > a::after {
  display: none !important;
}

/* ---------- 4. 首页右侧栏更轻一点 ---------- */
.sidebar h3.taxonomy {
  margin-bottom: 0.5rem;
}

.sidebar ul {
  padding: 0.7rem 0.8rem;
  background: rgba(0, 0, 0, 0.02);
}

.sidebar ul li a {
  border-radius: 0.35rem;
  padding: 0.35rem 0.55rem;
}

/* ---------- 5. 页脚弱化 ---------- */
#footer {
  margin-top: 2.5rem;
  opacity: 0.85;
}