/* Category_0样式 */
.category_0 {
    display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    overflow-y: hidden;
    row-gap: 0.8rem;
    column-gap: 10px;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    /* 防止拖拽时选中文字 */
    scroll-behavior: none;
    /* 平滑滚动 */
}

.category_0::-webkit-scrollbar {
    display: none;
}

.category_0 .game-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 95px;
    height: 142px;
    border-radius: 6px;
    text-decoration: none;
}

@media (max-width: 541px) {
    .category_0 .game-item {
        width: 105px;
    }
}

@media (max-width: 450px) {
    .category_0 .game-item {
        width: 95px;
    }
}

@media (max-width: 400px) {
    .category_0 .game-item {
        width: 80px;
    }
}
.category_0 .icon-wrap{
    position: relative;

    width: 70px !important;
    height: 70px !important;
    margin: 10px auto;
}

.category_0 .icon-wrap .hot{
    position: absolute;
    top: 0px;
    left: 0px;

    width: 47px;
    height: 22px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/hot_tag.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;

    text-align: right;
    padding-right: 4px;
}

.category_0 .icon-wrap .game-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 10px;
    object-fit: cover;
    display: block;

    border-radius: 1rem;
}

.category_0 .game-name {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    min-height: 44px;
    padding: 0;

    color: #222426;
    font-size: 14px;
    font-style: normal;
    /* font-weight: 600; */
    line-height: 20.28px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 最多显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Category_1样式 */
.category_1 {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1rem;
}

.category_1 .game-item {
    position: relative;

    width: 100%;
    height: 143px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    border-radius: 16px;
    border: 1px solid #FF7E00;
}

.category_1 .game-poster {
    height: 104px;
    flex-shrink: 0;
    align-self: stretch;
    object-fit: cover;

    border-radius: 16px 16px 0 0;
}

.category_1 .game-name {
    padding-left: 4.8rem;

    color: #323538;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24.38px;

    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category_1 .game-icon {
    position: absolute;
    left: 5px;
    bottom: 5px;

    width: 3.6rem;
    height: 3.6rem;
    flex-shrink: 0;

    border-radius: 10px;
    border: 1px solid #FFF;
}


/* Category_2样式 */
.category_2 {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1rem;
}

.category_2 .game-item {
    position: relative;

    width: 100%;
    height: 212px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    border-radius: 12px;
    background: #F2F4F7;

    padding: 10px 0px;
    gap: 10px;
}

.category_2 .up{
    width: 100%;
    height: 50px;

    display: flex;
    flex-direction: row;

    padding: 0 10px;
}

.category_2 .up .icon{
    width: 52px;
    height: 52px;
    border-radius: 13px;
    border: 1px solid #FFF;
}

.category_2 .up .text{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    flex-shrink: 0;

    margin-left: 8px;
}

.category_2 .up .name{
    color: #323538;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24.38px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category_2 .up .desc{
    width: 260px;

    color: #8C8C8C;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 13.263px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    margin-top: 5px;
}

.category_2 .down{
    flex: 1;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;

    padding: 0 10px;

    
    /* 不显示滚动条 */
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category_2 .down::-webkit-scrollbar {
    display: none;
}

.category_2 .down .screenshot{
    height: 100%;
    width: auto;
    object-fit: contain;

    border-radius: 5.983px;
}

.category_2 .down .screenshot {
    -webkit-user-drag: none;   /* Chrome、Safari */
    -khtml-user-drag: none;    /* Konqueror */
    -moz-user-drag: none;      /* Firefox */
    -o-user-drag: none;        /* Opera */
    user-drag: none;           /* 标准语法 */

    pointer-events: none;      /* 可选：彻底禁用鼠标事件，防止误拖 */
    user-select:none;          /* 禁用文本选择 */
}

.category_2 .type-tag{
    position: absolute;
    top: 0px;
    right: 0px;

    width: 145px;
    height: 20px;

    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/type_tag.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    color: #F96432;

    text-align: right;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;

    text-align: right;
    padding-right: 5px;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.category_2 .tag-value{
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}


/* Category_3样式 */
.category_3 {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1rem;
}

.category_3 .game-item{
    width: 100%;

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11.246px;
}

.category_3 .up{
    width: 100%;
    height: 188.372px;
    border-radius: 11.246px;
    overflow: hidden;
}

.category_3 .up .poster{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category_3 .down{
    flex: 1;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 10px;
}

.category_3 .down .icon{
    width: 48.733px;
    height: 48.733px;
    border-radius: 11.246px;
}

.category_3 .down .text{
    width: calc(100% - 120px);
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category_3 .down .name{
    color: #222426;
    font-size: 14.995px;
    font-style: normal;
    font-weight: 600;
    line-height: 21.93px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category_3 .down .desc{
    width: 95%;
    color: #616366;
    font-size: 11.246px;
    font-style: normal;
    font-weight: 400;
    line-height: 17.544px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category_3 .down .play{
    width: 67.476px;
    height: 28.115px;
    border-radius: 14.995px;
    background: #FF7E00;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #FFF;
    text-align: center;
    font-size: 12.652px;
    font-style: normal;
    font-weight: 600;
    line-height: 19.006px;
}