/* 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样式：整排卡 → 横向露边轮播（Swiper） */
.category_1 {
    width: 100%;
    overflow: hidden;          /* 轮播容器裁切露边/多余卡片 */
}

.category_1 .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.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样式：2 列海报卡网格 */
.category_2 {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 海报卡（整卡可点击） */
.category_2 .game-item {
    position: relative;

    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);

    text-decoration: none;
}

/* 3:4 竖海报封面 */
.category_2 .cover {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 4;

    background: #e5eeff;          /* 占位浅底：懒加载/滚动不露黑 */
    overflow: hidden;
}

.category_2 .cover .swiper-wrapper { height: 100%; }
.category_2 .cover .swiper-slide { height: 100%; }

.category_2 .cover .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* 混合比例截图统一裁成 3:4，不留白 */

    display: block;

    -webkit-user-drag: none;      /* 防桌面端拖出图片残影，滑动交给 Swiper */
    user-drag: none;
    user-select: none;
}

/* 多图提示：封面底部一排小圆点（单图时 watchOverflow 自动隐藏） */
.category_2 .cover .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    z-index: 2;

    text-align: center;
    line-height: 0;
    pointer-events: none;         /* 不拦截点击，整卡可点进详情 */
}

.category_2 .cover .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    margin: 0 3px;

    background: #fff;
    opacity: .5;
    box-shadow: 0 0 2px rgba(0, 0, 0, .35);
}

.category_2 .cover .swiper-pagination-bullet-active {
    opacity: 1;
}

/* 分类标签：悬浮在封面右上角（毛玻璃样式由 index_ethereal.css 提供） */
.category_2 .type-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.category_2 .tag-value {
    white-space: nowrap;
}

/* 信息行：图标 + 标题 */
.category_2 .info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;

    padding: 10px;
    min-width: 0;
}

.category_2 .info .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;

    border-radius: 8px;
    object-fit: cover;
    background: #e5eeff;
}

.category_2 .info .name {
    flex: 1;
    min-width: 0;

    color: #323538;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

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


/* 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;
}