/* ============================================================
   bloglist.css — 博客列表页专属样式
   ============================================================ */

/* ---- section-1 Hero ---- */
.section-1 {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0 3rem;
}

.section-1 .content-txt .highlight.des {
    max-width: 36rem;
    margin: 1.5rem auto 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
}

/* ---- section-2 精选文章 ---- */
.section-2 {
    padding: 2rem 0 3rem;
}

.featured-card {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    margin: 2.5rem auto 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    border-color: var(--moki-blue);
    box-shadow: 0 0 30px rgba(123, 187, 189, 0.15);
}

.featured-img {
    flex: 0 0 45%;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.featured-img .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.15);
}

.featured-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .category-tag {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    padding: 0.2rem 0.8rem;
}

.featured-title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.featured-excerpt {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #999;
}

.featured-meta .meta-read {
    color: var(--moki-accent);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---- section-3 文章列表 ---- */
.section-3 {
    padding: 2rem 0 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1200px;
    margin: 2.5rem auto 0;
}

.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    border-color: var(--moki-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(123, 187, 189, 0.12);
}

.blog-card .card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card .card-img .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.12);
    transition: transform 0.4s ease;
}

.blog-card .card-img .img-placeholder-logo {
    max-height: 48px;
    width: auto;
    max-width: 80%;
    opacity: 0.9;
    object-fit: contain;
}

.blog-card:hover .card-img .img-placeholder {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .category-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--moki-accent);
    border: 1px solid rgba(115, 223, 221, 0.3);
    border-radius: 1rem;
    padding: 0.15rem 0.7rem;
    margin-bottom: 0.75rem;
}

.blog-card .card-title {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .card-excerpt {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

.blog-card .card-meta .meta-read {
    color: var(--moki-accent);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card:hover .card-meta .meta-read {
    opacity: 1;
    transform: translateX(0);
}

/* ---- section-4 分页 ---- */
.section-4 {
    padding: 1rem 0 4rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    padding: 0 0.75rem;
}

.page-btn:hover {
    border-color: var(--moki-blue);
    color: #fff;
}

.page-btn.active {
    background-color: var(--moki-blue);
    border-color: var(--moki-blue);
    color: #000;
    font-weight: 500;
}

.page-btn.page-next {
    min-width: auto;
    padding: 0 1rem;
}

.page-btn.page-next .iconfont {
    font-size: 0.75rem;
    margin-left: 0.2rem;
}

.page-dots {
    color: #666;
    padding: 0 0.3rem;
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板横屏 / 小桌面 */
@media screen and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-img {
        flex: 0 0 auto;
        min-height: 240px;
    }

    .featured-content {
        padding: 2rem;
    }
}

/* 平板竖屏 / 大屏手机 */
@media screen and (max-width: 768px) {
    .section-1 {
        min-height: 40vh;
        padding: 4rem 0 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card .card-img {
        height: 180px;
    }

    .featured-img {
        min-height: 200px;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .pagination {
        gap: 0.35rem;
    }

    .page-btn {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
    }
}

/* 手机横屏 / 中屏手机 */
@media screen and (max-width: 640px) {
    .section-1 {
        min-height: 35vh;
        padding: 3rem 0 1.5rem;
    }

    .featured-img {
        min-height: 180px;
    }

    .featured-title {
        font-size: 1.15rem;
    }

    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .blog-card .card-img {
        height: 160px;
    }

    .blog-card .card-body {
        padding: 1.25rem;
    }
}

/* 小屏手机 */
@media screen and (max-width: 440px) {
    .section-1 {
        min-height: 30vh;
        padding: 2.5rem 0 1rem;
    }

    .pagination .page-dots,
    .pagination .page-btn:nth-child(4),
    .pagination .page-btn:nth-child(5) {
        display: none;
    }
}