/*
Theme Name: Double Column Responsive
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: 一个SEO友好的双栏响应式WordPress主题
Version: 1.0.0
License: GPL v2 or later
Text Domain: double-column
Tags: two-columns, right-sidebar, responsive-layout, custom-header, custom-menu, featured-images
*/

/* 基本重置和排版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器布局 */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-branding h1 {
    font-size: 1.8rem;
    margin: 0;
}

.site-branding h1 a {
    text-decoration: none;
    color: #2c3e50;
}

.site-branding p {
    color: #7f8c8d;
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

/* 主导航 */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover {
    color: #3498db;
}

.main-navigation .current-menu-item a {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
}

/* 主内容区域 - 双栏布局 */
.content-area {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

/* 主要内容 */
.main-content {
    flex: 1;
    min-width: 0; /* 防止flex元素溢出 */
}

/* 文章样式 */
.article-post {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-header h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-header h2 a {
    text-decoration: none;
    color: #2c3e50;
}

.article-header h2 a:hover {
    color: #3498db;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 6px;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.article-thumbnail img:hover {
    transform: scale(1.02);
}

.article-content {
    font-size: 1rem;
    line-height: 1.7;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.5em 0 0.8em 0;
    color: #2c3e50;
    line-height: 1.3;
}

.article-content h1 { font-size: 1.8rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content p {
    margin-bottom: 1.2em;
}

.article-content ul,
.article-content ol {
    margin: 1em 0 1em 2em;
}

.article-content blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 1.5em 0;
    background: #f8f9fa;
    font-style: italic;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f2f6;
    color: #2c3e50;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f2f6;
}

.widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.widget a {
    text-decoration: none;
    color: #34495e;
}

.widget a:hover {
    color: #3498db;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form input[type="submit"] {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: #2980b9;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-navigation a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-navigation a:hover {
    color: #3498db;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #34495e;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}