/*
Theme Name: SEO10
Description: 淡紫双栏、SEO、自动缩略图、响应式
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f7f5fd;
    color: #333;
    line-height: 1.7;
}
a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}
a:hover {
    color: #9984d8;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: 92%;
    max-width: 1170px;
    margin: 0 auto;
}

/* 头部 */
.header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 1px 5px rgba(153,132,216,0.08);
    margin-bottom: 20px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #9984d8;
}

/* 双栏 */
.main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.content {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 文章卡片 */
.article {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(153,132,216,0.06);
}
.article-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.article-title {
    font-size: 20px;
    margin-bottom: 10px;
}
.article-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}
.article-excerpt {
    color: #555;
    font-size: 15px;
}

/* 侧边栏 */
.widget {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(153,132,216,0.06);
}
.widget-title {
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0ecff;
    margin-bottom: 15px;
    color: #9984d8;
}
.widget-list li {
    list-style: none;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.widget-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.widget-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

/* 分页 */
.pagination {
    text-align: center;
    margin: 30px 0;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pagination .current {
    background: #9984d8;
    color: #fff;
}
.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 14px;
    border-radius: 30px;
}

/* 猜你喜欢 8篇 两排 */
.random-wrap {
    margin-top: 30px;
}
.random-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #9984d8;
}
.random-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.random-item {
    width: calc(25% - 12px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(153,132,216,0.06);
}
.random-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}
.random-item h4 {
    padding: 8px;
    font-size: 13px;
    text-align: center;
    font-weight: normal;
}

/* 文章页 */
.single-title {
    font-size: 24px;
    margin-bottom: 10px;
}
.single-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}
.single-content {
    font-size: 16px;
    line-height: 1.8;
}
.single-content p {
    margin-bottom: 1em;
}

/* 相关阅读 6篇 */
.related-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(153,132,216,0.06);
}
.related-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #9984d8;
}
.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.related-item {
    width: calc(16.66% - 10px);
    background: #faf8ff;
    border-radius: 6px;
    overflow: hidden;
}
.related-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}
.related-item h4 {
    padding: 6px;
    font-size: 12px;
    text-align: center;
}

/* 底部 */
.footer {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 30px;
}
.footer-about {
    max-width: 800px;
    margin: 0 auto 15px;
    color: #666;
    font-size: 14px;
}

/* 移动端 */
@media (max-width: 900px) {
    .main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .random-item {
        width: calc(50% - 8px);
    }
    .related-item {
        width: calc(33.33% - 9px);
    }
}