/*
Theme Name:SEO12
Description: 极简自适应SEO主题，自动随机缩略图，百度SEO优化
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.7;
}
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    color: #222;
    text-decoration: none;
}
a:hover {
    color: #0066cc;
}
img {
    max-width: 100%;
    height: auto;
}

/* 头部 */
header {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.logo {
    font-size: 22px;
    font-weight: bold;
}

/* 导航 */
.nav {
    margin-top: 10px;
}
.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.nav a {
    font-size: 15px;
}

/* 首页简介 */
.home-desc {
    background: #fff;
    padding: 30px;
    margin: 20px 0;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
}
.home-desc h2 {
    margin-bottom: 15px;
    font-size: 22px;
}
.home-desc p {
    font-size: 15px;
    color: #666;
}

/* 两栏布局 */
.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}
.content {
    flex: 1;
    min-width: 680px;
}
.sidebar {
    width: 300px;
}

@media (max-width: 991px) {
    .content, .sidebar {
        min-width: 100%;
        width: 100%;
    }
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.article-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
    display: flex;
    gap: 15px;
}
.article-thumb {
    width: 220px;
    height: 150px;
    object-fit: cover;
}
.article-info {
    flex: 1;
    padding: 15px;
}
.article-title {
    font-size: 17px;
    margin-bottom: 8px;
}
.article-excerpt {
    font-size: 14px;
    color: #666;
}

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

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

/* 详情页 */
.single {
    background: #fff;
    padding: 30px;
    margin: 20px 0;
    border-radius: 6px;
}
.single h1 {
    font-size: 24px;
    margin-bottom: 15px;
}
.single-content {
    font-size: 16px;
    line-height: 1.8;
}
.single-content p {
    margin-bottom: 15px;
}

/* 上下篇 */
.post-nav {
    margin: 30px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.post-nav a {
    color: #0066cc;
}

/* 横排相关文章 10篇 */
.related-posts {
    margin-top: 30px;
}
.related-posts h3 {
    margin-bottom: 15px;
    font-size: 18px;
}
.related-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.related-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.related-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.related-title {
    padding: 8px;
    font-size: 13px;
    text-align: center;
}
@media (max-width: 991px) {
    .related-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 404 */
.page-404 {
    text-align: center;
    padding: 60px 20px;
}
.page-404 h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

/* 底部 */
footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.03);
}
/* 列表分页样式 */
.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;
}

/* 内容页上下篇样式 */
.single-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}
.single-nav a {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
}