/*
 Theme Name:  SimplePro 博客样式
 Description: 全站微软雅黑 | 标题思源黑体 | 配图150*150 圆角6px | 深咖链接色 | 移动端字体修复
 Version:      3.2
 Author:       Custom
*/

/* 【关键】字体引入必须放在CSS最顶部，移动端优先加载 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全站正文统一：微软雅黑 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
    background-color: #ffffff;
}

/* 链接样式 深咖啡色 */
a {
    color: #6B4226;
    text-decoration: none;
}
a:hover {
    color: #4F2F1A;
    text-decoration: underline;
}

ul, li {
    list-style: none;
}

/* 页面容器 */
.container {
    width: 980px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 顶部导航 月光博客风格微调 */
.top-nav {
    height: 32px;
    line-height: 32px;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 15px;
    font-size: 14px;
}
.top-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
}
.top-nav li {
    list-style: none;
    margin-right: 20px;
}
.top-nav a {
    color: #6B4226;
    text-decoration: none;
}
.top-nav a:hover {
    color: #4F2F1A;
    text-decoration: underline;
}

/* 站点头部 */
.site-header {
    padding: 20px 0;
}
/* 站点标题：思源黑体 加粗突出 */
.site-title {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}
.site-desc {
    color: #666;
    margin-top: 6px;
    font-size: 13px;
}

/* 主体布局 */
.main-wrap {
    display: flex;
    gap: 25px;
}
.primary {
    width: 720px;
}
.sidebar {
    width: 235px;
}

/* 文章列表项 + 清除浮动 保证文字环绕图片 */
.post-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #cccccc;
}
.post-item::after {
    content: "";
    display: table;
    clear: both;
}

/* 文章列表标题：思源黑体 增加兜底字体 */
.post-title {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* 文章元信息 紧凑间距 */
.post-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}
.post-meta span {
    margin-right: 1px;
}
.post-meta span::after {
    content: "|";
    margin-left: 1px;
    color: #999;
}
.post-meta span:last-child::after {
    display: none;
}

/* 特色配图 150*150 圆角6px */
.list-thumb {
    float: right;
    width: 150px;
    height: 150px;
    margin: 0 0 10px 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    overflow: hidden;
}
.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文章摘要 */
.post-excerpt {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.read-more {
    margin-left: 5px;
    font-size: 14px;
}

/* 文章详情页标题：思源黑体 */
.single-post .post-title {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}
.single-post .post-meta {
    text-align: center;
    margin-bottom: 20px;
}
.post-content {
    font-size: 16px;
    line-height: 1.9;
}
.post-content p {
    margin-bottom: 18px;
}

/* 面包屑导航（首页/独立页面仅保留分割线） */
.breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ccc;
}

/* 分页 */
.pagination {
    margin: 30px 0;
    text-align: center;
    font-size: 14px;
}
.pagination a, .pagination span {
    padding: 4px 8px;
    border: 1px solid #ccc;
    margin: 0 3px;
}
.pagination .current {
    background: #f2f2f2;
}

/* 侧边栏组件 */
.widget {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
.widget-title {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #ccc;
}
.widget li {
    line-height: 1.9;
    font-size: 14px;
}

/* 页脚 */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px dashed #ccc;
    text-align: center;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* ========== 移动端适配【核心修复：重新声明思源黑体标题】 ========== */
@media (max-width: 990px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    .main-wrap {
        flex-direction: column;
        gap: 20px;
    }
    .primary, .sidebar {
        width: 100%;
    }

    body {
        font-size: 16px;
        line-height: 2.0;
        font-family: "Microsoft YaHei", sans-serif;
    }
    .post-excerpt,
    .post-content {
        font-size: 16px;
        line-height: 2.0;
    }
    /* 移动端强制标题使用思源黑体，兜底微软雅黑 */
    .site-title,
    .post-title,
    .single-post .post-title {
        font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
    }
    .post-title {
        font-size: 19px;
    }
    .single-post .post-title {
        font-size: 21px;
    }
    .post-meta,
    .breadcrumb {
        font-size: 14px;
    }
    .widget li {
        font-size: 15px;
    }
}
