/*
Theme Name: portal20
Theme URI: 
Description: 黑白极简自适应SEO主题
Version: 1.0
Author: 豆包
Tags: 黑白,自适应,SEO,简洁
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover {
    color: #000;
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}
.logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
}
.nav {
    float: right;
    margin-top: 8px;
}
.nav ul {
    list-style: none;
}
.nav ul li {
    display: inline-block;
    margin-left: 20px;
}

/* 主体布局 */
.main {
    overflow: hidden;
    padding: 30px 0;
}
.content {
    width: 70%;
    float: left;
}
.sidebar {
    width: 28%;
    float: right;
}

/* 文章列表 */
.post-item {
    overflow: hidden;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.post-thumb {
    width: 22%;
    float: left;
}
.post-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}
.post-content {
    width: 75%;
    float: right;
}
.post-title {
    font-size: 20px;
    margin-bottom: 8px;
}
.post-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}
.post-meta span {
    margin-right: 15px;
}
.post-excerpt {
    color: #555;
    font-size: 14px;
}

/* 面包屑 */
.breadcrumb {
    padding: 10px 15px;
    background: #f9f9f9;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 4px;
}

/* 分页 */
.pagination {
    text-align: center;
    margin: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #eee;
    margin: 0 3px;
}
.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 侧边栏 */
.widget {
    margin-bottom: 30px;
}
.widget-title {
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    margin-bottom: 15px;
}
.widget ul {
    list-style: none;
}
.widget ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    overflow: hidden;
}
.side-thumb {
    width: 25%;
    float: left;
    margin-right: 10px;
}
.side-thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}
.side-title {
    font-size: 14px;
    line-height: 1.5;
}

/* 内容页 */
.single-title {
    font-size: 24px;
    margin-bottom: 15px;
}
.single-content {
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0;
}
.single-content p {
    margin-bottom: 15px;
}
.post-nav {
    padding: 15px;
    background: #f9f9f9;
    margin: 20px 0;
    overflow: hidden;
}
.post-nav a {
    width: 50%;
    float: left;
}
.post-nav .next {
    text-align: right;
}
.related-posts {
    margin-top: 30px;
}
.related-posts h3 {
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    margin-bottom: 15px;
}
.related-posts ul {
    list-style: none;
}
.related-posts ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

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

/* 自适应样式 */
@media (max-width: 768px) {
    .content, .sidebar {
        width: 100%;
        float: none;
    }
    .sidebar {
        margin-top: 30px;
    }
    .logo, .nav {
        float: none;
        text-align: center;
    }
    .nav ul li {
        margin: 0 10px;
    }
    .post-thumb, .post-content {
        width: 100%;
        float: none;
    }
    .post-thumb {
        margin-bottom: 15px;
    }
    .post-thumb img {
        height: auto;
    }
}
/* 上下篇导航 */
.post-nav {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.prev-post,
.next-post {
    padding: 8px 0;
    font-size: 14px;
}
.prev-post a,
.next-post a {
    color: #333;
    text-decoration: none;
}
.prev-post a:hover,
.next-post a:hover {
    color: #000;
    text-decoration: underline;
}