/* ========== 首页样式 ========== */
/* 基于 Figma 设计稿: 1.首页-web-51动漫 (1920x7173) */
/* 背景色 #FFF4F7 (由 layout 提供) */

/* ---------- Banner 轮播区域 ---------- */
.home-banner {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.home-banner__swiper {
    --swiper-pagination-bottom: 0.5rem;
    --swiper-pagination-top: auto;
    position: relative;
    width: 100%;
    height: 17.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ecdde1;
}

.home-banner__slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-banner__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-banner__slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.home-banner__slide-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-banner__slide-img.loading,
.home-banner__slide-img:not([src]),
.home-banner__slide-img[src=""] {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* 分页指示点覆盖 */
.home-banner__pagination.swiper-pagination {
    position: absolute !important;
    top: auto !important;
    bottom: 0.5rem !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center;
    z-index: 10;
}

.home-banner__pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.home-banner__pagination .swiper-pagination-bullet-active {
    width: 18px;
    border-radius: 3px;
    background: #fff;
}

/* ============================================================
   分类区块通用样式 (热门韩漫 / 国漫 / 日漫 / 3D / 同人)
   ============================================================ */
.home-section {
    margin-top: 1.2rem;
}

.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.home-section__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.home-section__title-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex-shrink: 0;
}

.home-section__title-text {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #2b142c;
    margin: 0;
    white-space: nowrap;
}



/* ============================================================
   动漫最新推荐区域
   ============================================================ */
.home-recommend-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   站长推荐区域
   ============================================================ */
.home-wrap .xqbj-component-zz-recommend-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-wrap .zz-recommend-section-title {
    display: flex;
    align-items: center;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #2b142c;
    margin-top: 0;
    margin-bottom: 1rem;
}

.home-wrap .zz-recommend-section-title img {
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 0.4rem;
    object-fit: contain;
}

.home-recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.home-recommend-title {
    display: flex;
    align-items: center;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #2b142c;
    margin: 0;
}

.home-recommend-title-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    object-fit: contain;
}

.home-recommend-more {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.home-recommend-more:hover {
    color: #ff7484;
}

/* ========== 响应式布局 ========== */

/* 桌面端 (≥960px) - 每行6个 */
@media (min-width: 960px) {
    .home-banner__logo-text {
        font-size: 3.5rem;
    }

    .home-wrap .home-card-list {
        --colection-list-item-gap: 0.6rem;
        --collection-perline-count: 6;
    }

    .home-section {
        margin-top: 1.8rem;
    }

    .home-section__title-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .home-section__title-text {
        font-size: 1.2rem;
    }

    .home-section__more {
        font-size: 0.8rem;
    }

    .xqbj-cat-card__title {
        font-size: 0.7rem;
    }

    .home-wrap .zz-recommend-section-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .home-wrap .zz-recommend-section-title img {
        width: 2rem;
        height: 2rem;
    }
}



/* 移动端 (<600px)*/
@media (max-width: 750px) {
    .home-banner__swiper{
        height: 7.5rem;
    }
    .home-banner {
        margin-bottom: 0.6rem;
    }

    .home-banner__inner {
        height: 9.375rem !important;
        border-radius: 8px;
    }

    .home-banner__logo-text {
        font-size: 1.5rem;
    }

    .home-wrap .home-card-list {
        --colection-list-item-gap: 0.5rem;
        --collection-perline-count: 3;
    }

    .home-section {
        margin-top: 1rem;
    }

    .home-section__header {
        margin-bottom: 0.5rem;
    }

    .home-section__title {
        gap: 0.3rem;
    }

    .home-section__title-icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    .home-section__title-text {
        font-size: 0.9rem;
    }

    .home-section__more {
        font-size: 0.7rem;
    }

    .home-section__more-icon {
        width: 0.6rem;
        height: 0.6rem;
    }
    .home-wrap .xqbj-component-zz-recommend-section {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .home-wrap .zz-recommend-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .home-wrap .zz-recommend-section-title img {
        width: 1.6rem;
        height: 1.6rem;
        margin-right: 0.3rem;
    }
}
