/*
Theme Name: SEO17
Author: New
Version: 1.1
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f8f6f0;
  color: #333;
  line-height: 1.8;
}
a {
  color: #a67c52;
  text-decoration: none;
}
a:hover {
  color: #7c5a39;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}
.row {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .row {
    flex-direction: column;
  }
}
.content {
  flex: 1;
}
.sidebar {
  width: 270px;
}
@media (max-width: 900px) {
  .sidebar {
    width: 100%;
  }
}
.header {
  background: #a67c52;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
.header h1 {
  font-size: 24px;
  font-weight: normal;
}
.header a {
  color: #fff;
}
.nav {
  background: #8c6541;
}
.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
}
.nav a {
  color: #fff;
  padding: 8px 16px;
  font-size: 15px;
}

/* 文章卡片 150×150 */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  gap: 18px;
}
.card-img {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-title {
  font-size: 18px;
  margin-bottom: 6px;
}
.card-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: 14px;
  color: #666;
}

.pagination {
  text-align: center;
  margin: 30px 0;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  margin: 0 3px;
}
.pagination .current {
  background: #a67c52;
  color: #fff;
  border-color: #a67c52;
}

.recommend {
  margin-top: 40px;
}
.recommend h2 {
  font-size: 18px;
  margin-bottom: 15px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.grid-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.grid-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.grid-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: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.widget ul {
  list-style: none;
}
.widget li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
}

/* 侧边栏缩略图 */
.widget-thumb {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  align-items: center;
}
.widget-thumb-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.widget-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-thumb-title {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

.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;
}
.footer {
  background: #fff;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 30px;
  font-size: 14px;
  color: #777;
}