/*
Theme Name: 极简个人博客
Theme URI: https://example.com/
Author: RoyceLee
Author URI: https://example.com/
Description: 一款干净、轻量、响应式优化版 WordPress个人博客主题
Version: 1.1 优化升级版
License: GNU General Public License v2 or later
Text Domain: my-simple-blog
*/

/* 全局基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f5f7fa;
    font-size: 15px;
}
a {
    color: #2d8cf0;
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover {
    color: #1c7ed6;
    text-decoration: underline;
}

/* 主体容器 */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航优化 */
header {
    background: #fff;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 35px;
}
.site-title a {
    font-size: 28px;
    font-weight: 700;
    color: #2d8cf0;
}
.site-desc {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}

/* 导航菜单美化 */
.nav {
    margin-top: 18px;
}
.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.nav a {
    color: #444;
    font-weight: 500;
    font-size: 15px;
}
.nav a:hover {
    color: #2d8cf0;
}

/* 双栏主体布局 */
.main {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
}
.content {
    flex: 1;
    min-width: 650px;
}
.sidebar {
    width: 300px;
}

/* 首页文章卡片深度优化 */
.post {
    background: #fff;
    padding: 28px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}
.post:hover {
    transform: translateY(-3px);
}
.post-title {
    font-size: 23px;
    margin-bottom: 12px;
}
.post-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 18px;
}
.post-excerpt {
    color: #555;
    line-height: 1.75;
}

/* 文章详情页样式优化 */
.post-content {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

/* 分页美化 */
.pagination {
    margin: 30px 0;
    text-align: center;
}
.pagination a, .pagination span {
    padding: 9px 14px;
    background: #fff;
    margin: 0 4px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pagination .current {
    background: #2d8cf0;
    color: #fff;
    border-color: #2d8cf0;
}

/* 侧边栏小工具全套美化 */
.widget {
    background: #fff;
    padding: 22px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}
.widget-title {
    font-size: 17px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #222;
}
.widget ul {
    list-style: none;
}
.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

/* 搜索框专属美化 */
.widget_search input[type="search"] {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 6px 0 0 6px;
    padding: 9px 12px;
    outline: none;
}
.widget_search button {
    background: #2d8cf0;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 9px 15px;
    cursor: pointer;
}

/* 底部页脚优化 */
footer {
    background: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: #666;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

/* 移动端完美适配 */
@media (max-width: 992px) {
    .main {
        flex-direction: column;
    }
    .content, .sidebar {
        min-width: 100%;
        width: 100%;
    }
}