/*
Theme Name: SEO11
Description: 原创淡紫响应式主题，SEO友好，自动缩略图
Version: 1.1
Author: 轻韵设计
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f3f0fc;
  color: #444;
  line-height: 1.8;
}
a {
  color: #444;
  text-decoration: none;
  transition: all 0.25s ease;
}
a:hover {
  color: #8a72d8;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 94%;
  max-width: 1140px;
  margin: 0 auto;
}

/* 头部 */
header {
  background: #fff;
  padding: 22px 0;
  box-shadow: 0 1px 10px rgba(138, 114, 216, 0.06);
  margin-bottom: 25px;
}
.logo {
  font-size: 24px;
  font-weight: 600;
  color: #8a72d8;
}

/* 布局 */
.wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.main-area {
  flex: 1;
  min-width: 0;
}
.side-area {
  width: 290px;
  flex-shrink: 0;
}

/* 文章卡片 */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 3px 12px rgba(138, 114, 216, 0.05);
}
.card-thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.card-thumb img {
  width: 100%;
  height: 180px; /* 【已改小】原高度: 230px */
  object-fit: cover;
}
.card-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}
.card-desc {
  font-size: 15px;
  color: #555;
}

/* 分页 */
.pagination {
  text-align: center;
  margin: 20px 0 30px;
}
.page-number {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: #fff;
  margin: 0 3px;
  font-size: 14px;
}
.page-number.current {
  background: #8a72d8;
  color: #fff;
}
.page-prev,
.page-next {
  padding: 0 14px;
  border-radius: 30px;
}

/* 猜你喜欢 8篇 */
.recommend {
  margin-top: 20px;
}
.rec-title {
  font-size: 16px;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid #8a72d8;
}
.rec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.rec-item {
  width: calc(25% - 11px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.rec-item img {
  width: 100%;
  height: 90px; /* 【已改小】原高度: 110px */
  object-fit: cover;
}
.rec-item h4 {
  padding: 8px;
  font-size: 13px;
  text-align: center;
  font-weight: normal;
}

/* 侧边栏 */
.side-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.side-title {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1edff;
  margin-bottom: 16px;
  color: #8a72d8;
}
.side-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.side-thumb {
  width: 50px; /* 【已改小】原宽度: 55px */
  height: 50px; /* 【已改小】原高度: 55px */
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.side-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

/* 文章页 */
.single-title {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.single-content {
  font-size: 16px;
  line-height: 1.9;
  margin-top: 10px;
}
.single-content p {
  margin-bottom: 1em;
}

/* 相关文章 */
.related {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  margin: 25px 0;
}
.related-title {
  font-size: 16px;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid #8a72d8;
}
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-item {
  width: calc(16.66% - 10px);
  background: #f9f7ff;
  border-radius: 8px;
  overflow: hidden;
}
.related-item img {
  width: 100%;
  height: 75px; /* 【已改小】原高度: 90px */
  object-fit: cover;
}
.related-item h4 {
  padding: 6px;
  font-size: 12px;
  text-align: center;
}

/* 底部 */
footer {
  background: #fff;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 30px;
}
.footer-info {
  max-width: 760px;
  margin: 0 auto 15px;
  color: #666;
  font-size: 14px;
}

/* 移动端 */
@media (max-width: 880px) {
  .wrapper {
    flex-direction: column;
  }
  .side-area {
    width: 100%;
  }
  .rec-item {
    width: calc(50% - 7px);
  }
  .related-item {
    width: calc(33.33% - 8px);
  }
}