/* =========================================
   新闻极简主题 - 完整样式表（最终版）
   适配：单行首页列表 + 文章详情 + 底部模块
   特点：无缩略图、标题分类时间浏览量同行
========================================= */

/* ----- 1. 基础重置与全局样式 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    background: #f5f7fa;
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.main-container {
    padding: 20px 0;
}

/* 内容主区域（首页和文章页共用） */
.content-full {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 10px 0;
}

/* ----- 2. 顶部栏目导航 ----- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    display: none;  /* 移动端菜单按钮，可自行添加 JS 实现折叠 */
}

/* ----- 3. 首页单行文章列表 ----- */
.post-item {
    padding: 12px 25px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item:hover {
    background: #fafbfc;
}

.post-item-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px 20px;
}

.post-item-title {
    flex: 1 1 300px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.post-item-title a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.post-item-title a:hover {
    color: #3498db;
}

.meta-cate {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.meta-cate a {
    color: #3498db;
}

.meta-date,
.meta-views {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #95a5a6;
    white-space: nowrap;
}

/* ----- 分页（美化版，适配系统生成结构）----- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    box-sizing: border-box;
    text-decoration: none;
}

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

.pagination span.current,
.pagination span.now-page {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* 禁用状态（上一页/下一页不可用时） */
.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f7fa;
    color: #95a5a6;
    border-color: #e0e4e8;
}

/* ----- 4. 文章详情页（调整内边距，与底部模块对齐）----- */
.content-full {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;      /* 背景色移至内部卡片 */
    box-shadow: none;
    padding: 0 20px;              /* 统一左右内边距，与底部模块一致 */
}

.post-detail {
    background: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

/* ★ 文章主标题（H1）★ */
.post-title {
    font-size: 1.5rem;           /* 主标题最大 */
    font-weight: 650;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.3;
}

/* 正文内标题基础设置 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 500;
    margin: 1.5rem 0 1rem;
    color: #1a1a1a;
}

/* H2：正文内次级标题，小于主标题 */
.post-content h2 {
    font-size: 1.3rem;           /* 比主标题小，但比正文突出 */
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

/* H3：更小一级 */
.post-content h3 {
    font-size: 1.3rem;
}

/* H4：再次缩小 */
.post-content h4 {
    font-size: 1.15rem;
}

/* H5、H6（若使用） */
.post-content h5 {
    font-size: 1rem;
}

.post-content h6 {
    font-size: 0.95rem;
}

/* 标签与上下篇导航 */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
}

.post-tags a {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    background: #f0f2f5;
    border-radius: 4px;
    color: #5d6d7e;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: #3498db;
    color: #fff;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

.post-nav a {
    color: #3498db;
}


/* ----- 5. 底部模块（最新文章、友情链接、分类导航）----- */
.bottom-columns {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 0 20px;              /* 与 .content-full 保持一致 */
}

.bottom-column {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.bottom-categories {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 0 20px;              /* 统一内边距 */
}

/* 分类导航条 */
.bottom-categories {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.categories-wrapper a {
    padding: 6px 16px;
    background: #f5f7fa;
    border-radius: 20px;
    color: #5d6d7e;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.categories-wrapper a:hover {
    background: #3498db;
    color: #fff;
}

/* ----- 6. 页脚 ----- */
.site-footer {
    text-align: center;
    padding: 25px 0;
    color: #95a5a6;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.site-footer a {
    color: #7f8c8d;
}

/* ----- 7. 移动端响应式适配 ----- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content-full {
        border-radius: 0;
        box-shadow: none;
    }

    .post-item {
        padding: 12px 15px;
    }

    .post-item-row {
        gap: 8px 12px;
    }

    .post-item-title {
        flex: 1 1 100%;
        white-space: normal;
        font-size: 1rem;
    }

    .meta-cate,
    .meta-date,
    .meta-views {
        white-space: nowrap;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .post-detail {
        padding: 20px 15px;
    }

    .bottom-columns,
    .bottom-categories {
        padding-left: 15px;
        padding-right: 15px;
    }

    .categories-wrapper {
        justify-content: flex-start;
    }

    .main-nav ul {
        gap: 15px;
    }
}