/*
Theme Name: SEO21
Version: 1.0
Author: Unique
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f8f7f2;
  color: #444;
  line-height: 1.8;
}
a {
  color: #bfa169;
  text-decoration: none;
}
a:hover {
  color: #8c7446;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 布局容器 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}
.flex-row {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .flex-row {
    flex-direction: column;
  }
}

/* 内容区 */
.content {
  flex: 1;
}

/* 侧边栏 */
.sidebar {
  width: 270px;
}
@media (max-width: 900px) {
  .sidebar {
    width: 100%;
  }
}

/* 头部 */
.header {
  background: #bfa169;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 20px;
}
.header h1 {
  font-size: 24px;
  font-weight: normal;
}
.header a {
  color: #fff;
}

/* 导航 */
.nav {
  background: #a68c5a;
  margin-bottom: 20px;
}
.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}
.nav a {
  color: #fff;
  padding: 12px 20px;
  display: inline-block;
}

/* 文章卡片（全新样式：小图+标题居左） */
.post-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  gap: 18px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}
.post-thumb {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-main {
  flex: 1;
}
.post-title {
  font-size: 18px;
  margin-bottom: 6px;
}
.post-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.post-summary {
  font-size: 14px;
  color: #666;
}

/* 分页 */
.pagination {
  text-align: center;
  margin: 30px 0;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  margin: 0 3px;
}
.pagination .current {
  background: #bfa169;
  color: #fff;
  border-color: #bfa169;
}

/* 猜你喜欢 4列 */
.recommend {
  margin-top: 40px;
}
.recommend h2 {
  font-size: 18px;
  margin-bottom: 15px;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
@media (max-width: 768px) {
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.rec-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.rec-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.rec-title {
  padding: 10px;
  font-size: 13px;
  line-height: 1.5;
}

/* 侧边栏组件 */
.widget {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.widget h3 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #a68c5a;
}
.widget ul {
  list-style: none;
}
.widget li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed #f0f0f0;
}

/* 内容页 */
.single {
  background: #fff;
  padding: 35px;
  border-radius: 8px;
}
.single h1 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 25px;
}
.single-content {
  font-size: 16px;
  line-height: 2;
}

/* 相关文章（文字） */
.related {
  margin-top: 35px;
}
.related h3 {
  margin-bottom: 15px;
  font-size: 18px;
}
.related a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
}

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