/*
Theme Name: 速哒哒
Theme URI: http://www.sudda.cn
Author: 速哒哒
Author URI: http://www.sudda.cn
Description: 速哒哒主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sudda
*/

/* Reset and base styles */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f5f5f5;
}

/* 中文排版优化 */
p {
    text-align: justify;
    text-justify: inter-ideograph;
    margin-bottom: 1.5em;
}

/* Header styles */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-branding {
    text-align: center;
}

.site-title {
    font-size: 2em;
    margin: 0;
    font-weight: bold;
}

.site-description {
    color: #666;
    margin: 0.5em 0;
}

/* Navigation */
.main-navigation {
    background: #f8f8f8;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-size: 1.1em;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Content area */
.site-content {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#primary {
    flex: 1;
    min-width: 300px;
}

#secondary {
    width: 300px;
}

/* 文章样式 */
.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.entry-meta {
    color: #666;
    font-size: 0.9em;
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* 页脚样式 */
.site-footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

/* 首页布局优化 */
.site-main {
    padding: 2rem 0;
}

.posts-header {
    margin-bottom: 2rem;
    text-align: center;
}

.posts-header .page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #007bff;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-summary {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.entry-footer {
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.posts-navigation {
    margin-top: 3rem;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-numbers:hover:not(.current) {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* 响应式布局 */
@media (max-width: 991.98px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .site-main {
        padding: 1rem 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    #secondary {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 5px 0;
    }
} 