/* ===== 博客列表页专用样式 ===== */

/* 横幅 */
.blog-banner {
    width: 100%;
    height: 25vh;
    min-height: 120px;
    background: url('/images/stream2.jpg') center 28% / cover no-repeat;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
}
.blog-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to right, #f5e6aa 0%, #f5e6aa 16.66%, #bed7aa 16.66%, #bed7aa 33.33%, #a5cdaf 33.33%, #a5cdaf 50%, #91c8c3 50%, #91c8c3 66.66%, #afcdd1 66.66%, #afcdd1 83.33%, #f5e6aa 83.33%, #f5e6aa 100%);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
}

/* 列表页标题 */
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0b1a2e;
    margin-bottom: 24px;
}

/* ===== 卡片列表 ===== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.post-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    padding-right: 0px;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: #faf6ed;
    background-image:
        linear-gradient(to right, rgba(180, 160, 140, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(180, 160, 140, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0;
    height: 125px;
    overflow: hidden;
    position: relative;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* 卡片颜色主题 */
/* 手账风格 亮彩色系 */
.card-0 { border-left: 4px solid #f87171; }  /* 柔红 */
.card-1 { border-left: 4px solid #fbbf24; }  /* 暖黄 */
.card-2 { border-left: 4px solid #34d399; }  /* 薄荷 */
.card-3 { border-left: 4px solid #60a5fa; }  /* 天蓝 */
.card-4 { border-left: 4px solid #a78bfa; }  /* 淡紫 */
.card-5 { border-left: 4px solid #f472b6; }  /* 粉红 */

/* 卡片左侧 */
.post-left {
    flex: 0 0 45%;
}
.post-left .post-title {
    font-size: 22px;
    font-weight: 600;
    /* 标题不截断，允许换行 */
}
.post-left .post-title a {
    color: #0f1f33;
    text-decoration: none;
    transition: color 0.2s;
}
.post-left .post-title a:hover {
    color: #2563eb;
}
.post-left .post-meta {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}
.post-left .post-tags .tag {
    font-size: 11px;
    color: #475569;
    background: rgba(255, 255, 255, 0.6);
    padding: 1px 10px;
    border-radius: 20px;
}


/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
    .page-title {
        margin-bottom: 0px !important;
    }
    .post-card {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 16px;
        height: auto;            /* 手机端取消固定高度 */
        max-height: none;
    }
    .post-left {
        flex: 1;
        min-width: unset;
    }
    .post-left .post-title {
        font-size: 16px;
    }
    .post-left .post-meta {
        font-size: 12px;
    }
    .post-right {
        text-align: left;
        border-top: 1px dashed rgba(180, 160, 140, 0.3);
        padding-top: 4px;
        height: auto;
        justify-content: flex-start;
    }
    .post-right .post-summary {
        line-clamp: 2;
        font-size: 14px;
    }
    .post-card .post-tags .tag {
        font-size: 10px;
        padding: 0 8px;
    }
    .blog-main {
        margin-top: 0 !important;
    }
}



/* ===== 卡片右侧封面图 ===== */
.post-right {
    flex: 1;
    position: relative;
    height: 125px;              /* 与卡片高度一致 */
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: transparent;        /* 占位背景色 */
}

.post-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to right, transparent 0%, black 95%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 95%, black 100%);
}

.post-cover-empty {
    width: 100%;
    height: 100%;
    background: transparent;
}

.post-excerpt {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 分类标题 ===== */
.category-section {
    margin-top: 32px;
}
.category-section:first-of-type {
    margin-top: 0;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f1a2e;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eef3fc;
}

/* ===== 分类标题（增强版） ===== */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 32px;
    margin-bottom:  16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef3fc;
}
.category-header:first-of-type {
    margin-top: 0;
}

.category-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f1a2e;
    letter-spacing: 0.5px;
    margin: 0;
}

.category-desc {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .category-title {
        font-size: 22px;
    }
    .category-desc {
        font-size: 13px;
        white-space: normal;
    }
}


