/*
Theme Name: SEO23
Author: SEO
Version: 1.0
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f2f4f7;
  color: #222;
  line-height: 1.9;
}
a {
  color: #3867d6;
  text-decoration: none;
}
a:hover {
  color: #0f3ba3;
}
img {
  max-width: 100%;
  border-radius: 6px;
}

/* 容器 */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 布局 */
.flex-area {
  display: flex;
  gap: 26px;
  margin: 30px 0;
}
@media (max-width: 900px) {
  .flex-area {
    flex-direction: column;
  }
}

/* 主体 */
.main-col {
  flex: 1;
}

/* 侧边 */
.side-col {
  width: 280px;
}
@media (max-width: 900px) {
  .side-col {
    width: 100%;
  }
}

/* 头部 */
.header {
  background: #3867d6;
  padding: 34px 0;
  text-align: center;
}
.header h1 {
  font-size: 26px;
  color: #fff;
}
.header a {
  color: #fff;
}

/* 导航 */
.nav {
  background: #2958c7;
}
.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}
.nav a {
  color: #fff;
  padding: 14px 22px;
  display: inline-block;
}

/* 文章卡片 */
.post-card {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}
.post-thumb {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-title {
  font-size: 19px;
  margin-bottom: 8px;
}
.post-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}
.post-summary {
  font-size: 15px;
  color: #444;
}

/* 分页 */
.pager {
  text-align: center;
  margin: 40px 0;
}
.pager a,
.pager span {
  display: inline-block;
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin: 0 4px;
}
.pager .current {
  background: #3867d6;
  color: #fff;
  border-color: #3867d6;
}

/* 猜你喜欢 */
.recommend {
  margin-top: 50px;
}
.recommend h3 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #3867d6;
}
.grid-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 768px) {
  .grid-box {
    grid-template-columns: repeat(2, 1fr);
  }
}
.grid-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.grid-item img {
  height: 150px;
  object-fit: cover;
}
.grid-item a {
  display: block;
}
.grid-title {
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* 侧边模块 */
.widget {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.widget h4 {
  font-size: 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}
.side-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  align-items: center;
}
.side-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-text {
  flex: 1;
  font-size: 14px;
}

/* 内容页 */
.single-box {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
}
.single-box h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
}
.single-content {
  font-size: 16px;
  line-height: 2.1;
}

/* 上下篇 */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 35px 0;
}
.post-nav a {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
}

/* 相关文章 */
.related {
  margin-top: 40px;
}
.related h4 {
  font-size: 19px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #3867d6;
}
.related a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
}

/* 底部 */
.footer {
  background: #fff;
  text-align: center;
  padding: 35px 0;
  margin-top: 50px;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 14px;
}