/* ---------- 全局排版与配色 ---------- */
body {
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

#mainContent {
  background: white;
  border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* ---------- 文章标题 ---------- */
.postTitle,
.postTitle2 {
  text-align: center;
  margin: 5px 0 2px 0;
}

.postTitle a,
.postTitle2 a {
  font-size: 1.8em;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

/* 日历/日期区域透明化（来自 a.markdown） */
#q,
.CalNextPrev,
.cnblogs_code,
.cnblogs_code div,
.cnblogs_code_toolbar {
  background: transparent !important;
}

/* ---------- 正文内容 ---------- */
#cnblogs_post_body,
.postBody {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

.postBody p {
  margin: 0 0 16px 0;
  text-indent: 2em;
}

/* ---------- 链接样式 ---------- */
.postBody a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px dashed #3498db;
  transition: all 0.2s ease;
}

.postBody a:hover {
  border-bottom-style: solid;
  color: #2980b9;
}

/* ---------- 引用块 ---------- */
.postBody blockquote {
  border-left: 4px solid #3498db;
  background-color: #f8f9fa;
  padding: 12px 16px;
  margin: 18px 0;
  color: #555;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

/* ---------- 响应式优化 ---------- */
@media (max-width: 768px) {
  #mainContent {
    margin: 10px;
    padding: 15px;
  }
  .postTitle a,
  .postTitle2 a {
    font-size: 1.5em;
  }
}