/* 
Theme Name: 双栏SEO自适应主题 
Theme URI: https://你的站点地址 
Author: 你的名称 
Author URI: https://你的站点地址 
Description: 语义化双栏博客主题，移动端自适应，符合SEO标准 
Version: 1.0 
License: GNU General Public License v2 or later 
License URI: http://www.gnu.org/licenses/gpl-2.0.html  
Tags: 双栏, 自适应, SEO, 博客 
Text Domain: dual-column-seo 
*/ 
 
/* 全局重置 */ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
} 
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 
    line-height: 1.7; 
    color: #333; 
    background-color: #f8f9fa; 
} 
a { 
    color: #2563eb; 
    text-decoration: none; 
    transition: color 0.3s; 
} 
a:hover { 
    color: #1d4ed8; 
} 
img { 
    max-width: 100%; 
    height: auto; 
} 
 
/* 容器 */ 
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
} 
 
/* 头部 */ 
.site-header { 
    background: #fff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    padding: 1.5rem 0; 
    margin-bottom: 2rem; 
} 
.site-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
} 
.site-description { 
    color: #666; 
    font-size: 0.9rem; 
} 
.main-nav { 
    margin-top: 1rem; 
} 
.main-nav ul { 
    list-style: none; 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
} 
.main-nav a { 
    color: #333; 
    font-weight: 500; 
} 
.main-nav a:hover { 
    color: #2563eb; 
} 
 
/* 双栏布局核心 */ 
.content-wrap { 
    display: flex; 
    gap: 2rem; 
    margin-bottom: 2rem; 
} 
.main-content { 
    flex: 0 0 70%; 
    max-width: 70%; 
} 
.sidebar { 
    flex: 0 0 calc(30% - 2rem); 
    max-width: calc(30% - 2rem); 
} 
 
/* 文章样式 */ 
.post-card { 
    background: #fff; 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    margin-bottom: 2rem; 
} 
.post-title { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
} 
.post-meta { 
    color: #666; 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
} 
.post-thumbnail { 
    margin-bottom: 1rem; 
    border-radius: 4px; 
    overflow: hidden; 
} 
.post-excerpt { 
    color: #444; 
    margin-bottom: 1rem; 
} 
.read-more { 
    display: inline-block; 
    padding: 0.5rem 1rem; 
    background: #2563eb; 
    color: #fff; 
    border-radius: 4px; 
} 
.read-more:hover { 
    background: #1d4ed8; 
    color: #fff; 
} 
 
/* 单篇文章样式 */ 
.single-post .post-content { 
    margin: 1.5rem 0; 
    line-height: 1.8; 
} 
.single-post .post-content h2, 
.single-post .post-content h3 { 
    margin: 1.5rem 0 1rem 0; 
    font-weight: 600; 
} 
.single-post .post-content p { 
    margin-bottom: 1rem; 
} 
.post-navigation { 
    margin-top: 2rem; 
    padding-top: 1rem; 
    border-top: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    gap: 1rem; 
} 
 
/* 侧边栏小工具 */ 
.widget { 
    background: #fff; 
    padding: 1.5rem; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    margin-bottom: 1.5rem; 
} 
.widget-title { 
    font-size: 1.1rem; 
    margin-bottom: 1rem; 
    padding-bottom: 0.5rem; 
    border-bottom: 1px solid #eee; 
} 
.widget ul { 
    list-style: none; 
    padding-left: 0; 
} 
.widget ul li { 
    margin-bottom: 0.5rem; 
    padding-bottom: 0.5rem; 
    border-bottom: 1px dashed #eee; 
} 
 
/* 页脚 */ 
.site-footer { 
    background: #2d3748; 
    color: #cbd5e0; 
    padding: 2rem 0; 
    text-align: center; 
} 
.site-footer a { 
    color: #90cdf4; 
} 
 
/* 移动端自适应 */ 
@media (max-width: 768px) { 
    .content-wrap { 
        flex-direction: column; 
    } 
    .main-content, .sidebar { 
        flex: 0 0 100%; 
        max-width: 100%; 
    } 
    .main-nav ul { 
        gap: 1rem; 
    } 
    .post-navigation { 
        flex-direction: column; 
    } 
} 