/*
Theme Name: SEO8
Version: 1.0
Description: 全新红色风格、200x200缩略图、侧边栏、相关文章
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f9f9f9;
  color: #444;
  line-height: 1.85;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  text-decoration: none;
  color: #333;
}
a:hover {
  color: #e53935;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.main-area {
  flex: 1;
  min-width: 650px;
}
.side-area {
  width: 290px;
}
@media (max-width: 992px) {
  .main-area, .side-area {
    width: 100%;
    min-width: 100%;
  }
}

/* 头部 */
.top-head {
  background: #fff;
  padding: 28px 0;
  text-align: center;
  margin-bottom: 18px;
}
.logo-title {
  font-size: 25px;
  font-weight: 700;
}
.logo-info {
  color: #777;
  margin-top: 6px;
  font-size: 14px;
}

/* 红色导航 */
.main-nav {
  background: #d32f2f;
  width: 100%;
}
.nav-con {
  max-width: 1100px;
  margin: 0 auto;
}
.nav-con ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.nav-con ul li a {
  color: #fff;
  padding: 13px 20px;
  display: block;
  font-size: 15px;
}
.nav-con ul li a:hover {
  background: #b71c1c;
}

/* 文章卡片 200x200 */
.article-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.article-thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}
.article-box {
  padding: 20px;
  flex: 1;
}
.article-title {
  font-size: 18px;
  margin-bottom: 12px;
}
.article-intro {
  color: #666;
  font-size: 15px;
}

@media (max-width: 768px) {
  .article-item {
    flex-direction: column;
  }
  .article-thumb {
    width: 100%;
    height: 200px;
  }
}

/* 侧边栏 */
.side-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.side-title {
  font-size: 16px;
  border-left: 3px solid #d32f2f;
  padding-left: 10px;
  margin-bottom: 15px;
}
.side-list {
  list-style: none;
}
.side-list li {
  padding: 7px 0;
  border-bottom: 1px dashed #eee;
}

/* 内容页 */
.view-article {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
}
.view-title {
  font-size: 23px;
  margin-bottom: 18px;
}
.view-content {
  font-size: 16px;
  line-height: 2;
  margin-top: 15px;
}

/* 相关文章 */
.related-box {
  background: #fff;
  padding: 22px;
  border-radius: 8px;
  margin-top: 20px;
}
.related-title {
  margin-bottom: 16px;
}
.related-flex {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.related-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}
.related-item p {
  font-size: 14px;
  margin-top: 8px;
}
@media (max-width:768px){
  .related-flex{grid-template-columns: repeat(2,1fr)}
}

/* 底部 */
.foot {
  background: #d32f2f;
  color: #fff;
  text-align: center;
  padding: 26px 0;
  margin-top: 30px;
  font-size: 14px;
}
/* 极简横排分页样式 */
.simple-pagination {
  width: 100%;
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.simple-pagination a,
.simple-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}
.simple-pagination a:hover {
  border-color: #007bff;
  color: #007bff;
  background: #f5f9ff;
}
.simple-pagination span.current {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
  font-weight: 500;
}