/* ========== 分类页样式 ========== */

/* 面包屑当前项 */
.category-container .xqbj-breadcrumb .breadcrumb-current {
    font-weight: 500;
    color: #2b142c;
}

/* 列表不拉伸子项 */
.category-container .xqbj-list {
    align-items: start;
}


.category-filter {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.category-filter-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.category-filter-group:last-child {
    margin-bottom: 0;
}

/* 标题条 - 短标题(全部类型/角色玩法) 98×34px */
.category-filter-title {
    flex-shrink: 0;
    width: 4.9rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4rem 0 0;
    padding: 0 0.25rem 0 0.75rem;
    background: url(../../__base/images/user/category-user.png) no-repeat center center;
    background-size: 100% 100%;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
}

/* 长标题(全部详细资料) 126×34px */
.category-filter-title--wide {
    width: 6.3rem;
    margin-right: 2.6rem;
}

.category-filter-title-text {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #2b142c;
    white-space: nowrap;
    line-height: 1.17;
}

/* 标签容器 - Zeplin: Frame_88, gap 18px, padding 6px 23px */
.category-filter-tags {
    flex-grow: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.9rem;
    padding: 0.3rem 0;
    flex: 1;
    min-width: 0;
}

/* 类型标签(带图标) - 同样 gap */
.category-filter-tags--type {
    gap: 0.9rem;
}

/* ============================================================
   标签元素
   Figma 精确属性:
   - 未选中: padding 2px 3px, 无边框, bg #f5f5f5
   - 选中:   padding 3px 7px, border 0.5px #FF7484, radius 4px
   - 文字: Noto Sans SC Medium 16px #2b142c
   ============================================================ */
.category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.3rem 1.15rem;
    background-color: transparent;
    border-radius: 0;
    border: 0.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background-color: rgba(255, 116, 132, 0.08);
}

.category-tag--active {
    border-color: #ff7484;
    border-radius: 4px;
}


.category-tag__text {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #2b142c;
    white-space: nowrap;
    line-height: 1.17;
}

.category-tag:hover .category-tag__text {
    color: #ff7484;
}

/* 类型标签图标 */
.category-tag__icon {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: contain;
    border-radius: 2px;
}

/* 类型标签(带图标) - 默认无边框, 选中才显示边框 */
.category-tag--type {
    padding: 0.15rem 0.35rem;
    gap: 0.25rem;
    border-radius: 4px;
    border: 0.5px solid transparent;
    background-color: transparent;
}

.category-tag--type.category-tag--active {
    border-color: #ff7484;
}

.category-tag--type .category-tag__text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== 热门标签区域 ========== */
.category-hot-tags-section {
    margin-top: 1.5rem;
}

.category-hot-tags-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;
}

.category-hot-tags-title-icon {
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 0.4rem;
}

.category-hot-tags-wrapper {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.category-hot-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.45rem;
    padding: 0.3rem 3rem;
    scrollbar-width: none;
}

.category-hot-tags::-webkit-scrollbar {
    display: none;
}

.category-hot-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.2rem;
    border: solid 0.5px #ff7484;
    border-radius: 0.2rem;
    background-color: rgba(255, 116, 132, 0.2);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.19;
    text-align: center;
    color: #ff7484;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-hot-tag:hover {
    background-color: rgba(255, 116, 132, 0.35);
}

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

/* 桌面端 (≥960px) - 每行6个 */
@media (min-width: 960px) {
    .breadcrumb-container {
        margin-bottom: 1.5rem;
    }

    .category-container .xqbj-list {
        --colection-list-item-gap: 0.6rem;
        --collection-perline-count: 6;
    }

    .category-filter-title {
        width: 4.9rem;
        height: 1.7rem;
        padding: 0 0.75rem 0 0.75rem;
    }

    .category-filter-title--wide {
        width: 6.3rem;
    }

    .category-filter-title-text {
        font-size: 0.8rem;
    }

    .category-tag__text {
        font-size: 0.8rem;
    }

    .category-tag--type .category-tag__text {
        font-size: 0.8rem;
    }

}


@media (max-width: 750px) {

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

    /* ---- 筛选区 ---- */
    .category-filter {
        margin-bottom: 0.3rem;
        margin-top: 0.6rem;
    }

    /* 每组筛选: 横向排列 (标题+标签同行) */
    .category-filter-group {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 0.3rem;
        gap: 0;
    }

    /* 筛选标题条: Figma 68x24px, bg rgba(255,116,132,0.25), border 0.5px #FF7484, radius 4px */
    .category-filter-title {
        width: 4.2rem;
        min-width: auto;
        height: 1.2rem;
        margin-right: 0.6rem;
        margin-bottom: 0;
        padding: 0 0.35rem;
        flex-shrink: 0;
    }

    .category-filter-title--wide {
        width: 4.2rem;
        margin-right: 0.6rem;
    }

    .category-filter-title-text {
        font-size: 0.6rem;
        color: #2b142c;
    }

    /* 标签容器: 紧凑排列 */
    .category-filter-tags {
        gap: 0.3rem 0.5rem;
        padding: 0;
        flex: 1;
        min-width: 0;
    }

    .category-filter-tags--type {
        gap: 0.3rem 0.5rem;
    }

    /* 标签: Figma padding 2px 6px, font 12px, 默认透明边框防选中跳动 */
    .category-tag {
        padding: 0.1rem 0.3rem;
        gap: 0.15rem;
        border: 0.5px solid transparent;
        border-radius: 2px;
    }

    .category-tag__text {
        font-size: 0.6rem;
        line-height: 1.56;
    }

    .category-tag--type {
        padding: 0.1rem 0.15rem;
        gap: 0.1rem;
        border: 0.5px solid transparent;
        border-radius: 2px;
    }

    .category-tag--type .category-tag__text {
        font-size: 0.6rem;
    }

    /* 选中态: 只改边框颜色+文字色, 不改 padding/尺寸 */
    .category-tag--active {
        border-color: #ff7484;
    }

    .category-tag--type.category-tag--active {
        border-color: #ff7484;
    }

    /* 类型图标: Figma 14x14px */
    .category-tag__icon {
        width: 0.7rem;
        height: 0.7rem;
    }

    /* ---- 热门标签: Figma 横向滚动带遮罩 ---- */
    .category-hot-tags-section {
        margin-top: 1rem;
    }

    .category-hot-tags-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .category-hot-tags-title-icon {
        width: 1.6rem;
        height: 1.6rem;
        margin-right: 0.2rem;
    }

    .category-hot-tags-wrapper {
        mask-image: linear-gradient(to right, transparent 0%, black 15%, black 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 75%, transparent 100%);
    }

    .category-hot-tags {
        gap: 0.4rem;
        padding: 0.2rem 0.5rem 0.5rem 0;
    }

    .category-hot-tag {
        min-width: 3.2rem;
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 4px;
    }
}