/* ========== 更新页样式 ========== */
/* 基于 Zeplin 设计稿: 2.更新-web-51动漫 */


.update-container .xqbj-breadcrumb .breadcrumb-current {
    font-weight: 500;
    color: #2b142c;
}

.update-container .xqbj-list {
    align-items: start;
}

/* ============================================================
   卡片列表区域（主体）
   ============================================================ */
.update-list-section {
    margin-top: 0.8rem;
}

/* ============================================================
   卡片 (xqbj-cat-card) - 竖向卡片
   封面图 3:4, 左上角"第X话"标签, 底部人气+评分
   ============================================================ */
.xqbj-cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease;
}

.xqbj-cat-card:hover {
    transform: translateY(-2px);
}

.xqbj-cat-card__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ecdde1;
}

.xqbj-cat-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.xqbj-cat-card__cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
    z-index: 1;
}

/* 章节标签 - 左上角 (Zeplin: Rectangle 6 + span)
   容器: 66x24px, radius 4px
   文字: NotoSansSC Regular 12px, #fff, line-height 2.17 */
.xqbj-cat-card__badge-chapter {
    position: absolute;
    top: 1rem;
    left: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.3rem;
    height: 1.2rem;
    padding: 0 0.6rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: solid 0.01rem #fff;
    border-radius: 0.2rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.6rem;
    font-weight: normal;
    font-style: normal;
    line-height: 2.17;
    letter-spacing: normal;
    text-align: left;
    color: #fff;
    z-index: 2;
    white-space: nowrap;
}

/* 广告标签 */
.xqbj-cat-card__badge-ad {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.5rem;
    padding: 0.05rem 0.25rem;
    border-radius: 4px;
    z-index: 2;
}

/* 底部叠加层: 人气 + 评分 */
.xqbj-cat-card__overlay {
    position: absolute;
    bottom: 0.35rem;
    left: 0.4rem;
    right: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.xqbj-cat-card__popularity {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.5rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
}

.xqbj-cat-card__popularity-icon {
    width: 0.655rem;
    height: 0.79rem;
}

.xqbj-cat-card__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.08rem 0.3rem;
    background-color: #ff7484;
    border-radius: 40px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.45rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
}

/* 标题区域 */
.xqbj-cat-card__body {
    padding-top: 0.3rem;
}

.xqbj-cat-card__title {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    line-height: 1.5;
    color: #2b142c;
    margin: 0;
    word-break: break-all;
}

.xqbj-cat-card:hover .xqbj-cat-card__title {
    color: #ff7484;
}

.text-line-ellipsis-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   动漫最新推荐区域（位于底部广告下方）
   ============================================================ */
.update-recommend-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.update-recommend-title-icon {
    width: auto;
    height: 2rem;
    margin-right: 0.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.update-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;
}

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

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

/* 桌面端 (≥960px) - 每行6个 */
@media (min-width: 960px) {
    .update-container .xqbj-list {
        --colection-list-item-gap: 0.6rem;
        --collection-perline-count: 6;
    }

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

/* 移动端- 每行3个 */
@media (max-width: 750px) {
    .update-container {
        padding-bottom: 0;
    }

    .update-container .xqbj-list {
        --colection-list-item-gap: 0.4rem;
        --collection-perline-count: 3;
    }

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

    .xqbj-cat-card__popularity {
        font-size: 0.4rem;
    }

    .xqbj-cat-card__score {
        font-size: 0.35rem;
        padding: 0.05rem 0.2rem;
    }

    .xqbj-cat-card__popularity-icon {
        width: 0.5rem;
        height: 0.5rem;
    }

    .xqbj-cat-card__badge-chapter {
        font-size: 0.5rem;
        min-width: 2.5rem;
        height: 1rem;
        padding: 0 0.4rem;
        top: 0.375rem;
        left: 0.375rem;
    }

}
