/*
Theme Name: SEO19
Version: 1.0
Author: BMSEO
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #fbfaf5;
  color: #333;
  line-height: 1.7;
}
a {
  color: #b89e6b;
  text-decoration: none;
}
a:hover {
  color: #9b8252;
}
img {
  max-width: 100%;
  height: auto;
}

/* 布局 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}
.row {
  display: flex;
  gap: 20px;
}
.main {
  width: 780px;
}
.sidebar {
  width: 280px;
}

/* 移动端 */
@media (max-width: 992px) {
  .row {
    flex-direction: column;
  }
  .main, .sidebar {
    width: 100%;
  }
}

/* 头部 */
.header {
  background: #b89e6b;
  color: #fff;
  padding: 26px 0;
  text-align: center;
  margin-bottom: 20px;
}
.logo {
  font-size: 24px;
  font-weight: bold;
}
.logo a {
  color: #fff;
}

/* 导航 */
.nav {
  background: #9b8252;
  margin-bottom: 20px;
}
.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}
.nav a {
  color: #fff;
  padding: 14px 24px;
  display: block;
}
.nav a:hover {
  background: #b89e6b;
}

/* 文章卡片 */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: flex;
  gap: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.thumb {
  width: 160px;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 4px;
}
.info {
  flex: 1;
}
.title {
  font-size: 17px;
  margin-bottom: 6px;
  color: #222;
}
.date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.excerpt {
  font-size: 14px;
  color: #555;
}

/* 猜你喜欢 一排4个 */
.grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
  margin: 20px 0;
}
.grid-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.grid-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.grid-title {
  padding: 10px;
  font-size: 14px;
  line-height: 1.4;
}

/* 文字相关文章 */
.related-text a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px dashed #eee;
}

/* 侧边栏 */
.widget {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.widget h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  color: #9b8252;
}
.widget ul {
  list-style: none;
}
.widget li {
  padding: 7px 0;
  border-bottom: 1px dashed #f0f0f0;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
}
.pagination .current {
  background: #b89e6b;
  color: #fff;
  border-color: #b89e6b;
}

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

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