body, html {

}

/* 搜索-上下页 */
.search-container {
    display: flex;
    margin: 35px auto 30px;
    justify-content: center;
}

.search-container .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container form {
    width: calc(100% - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a7a7a7;
    border-radius: 5px;
}

.search-container form input {
    font-family: 'PingFang Regular';
    display: inline-block;
    width: calc(100% - 100px);
    padding: 15px;
    font-size: 24px;
    color: #9d9d9d;
    border: none;
    outline: none; /* 去掉点击时的外边框 */
}

.search-container form span {
    display: inline-block;
    width: 35px;
    height: 35px;
    padding: 0 15px;
    cursor: pointer;
}

.search-container form span.hide img {
    display: none;
}

.search-container form span img {
    width: 100%;
}

.search-container form button img {
    width: 20px;
    height: 20px;
}

.search-container form #search {
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    width: 33px;
    height: 33px;
    border-right: 2px solid #9d9d9d;
}

.search-container .prev-next-btn span {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-block;
    border: 2px solid black;
    border-radius: 5px;
    margin: 0 10px;
    cursor: pointer;
}

.search-container .prev-next-btn span::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px;
    border-style: solid;
}

.search-container .prev-next-btn span.prev-btn::after {
    left: 0;
    border-color: transparent black transparent transparent;
}

.search-container .prev-next-btn span.next-btn::after {
    right: 0;
    border-color: transparent transparent transparent black;
}

/*tab选项卡*/
.tab-container {
    display: flex;
    justify-content: center;
}

.tab-container .container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #fff, #EEEEEE);
    padding-bottom: 280px;
}

.tab-container .container > p {
    width: 1200px;
    font-size: 36px;
    margin: 0 auto;
    padding-right: 20px;

}

.tab-container .container > p span {
    font-family: 'PingFang Heavy';
    font-size: 28px;
    display: inline-block;
    border-bottom: 1px solid #ccc;
    width: calc(100% - 180px);
    margin-left: 180px;
    margin-bottom: 20px;
    padding: 0 0 6px
}

.tab-container .tab-buttons {
    width: 180px;
    display: flex;
    flex-direction: column;
}

.tab-container .tab-buttons .tab-link {
    font-family: 'PingFang Regular';
    display: inline-flex;
    align-items: center;
    justify-content: left;
    width: 100%;
    height: 60px;
    padding-left: 10px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 20px;
    color: #b2b2b2;
    font-weight: bold;
}

.tab-container .tab-buttons .tab-link.active {
    font-family: 'PingFang Regular';
    font-size: 20px;
    color: #2c2c2c;
}

.tab-container .tab-buttons .tab-link img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.tab-container .tab-content {
    width: calc(1200px - 200px);
    flex: 1;
    padding: 0 25px 20px 0;
}

.tab-container .tab-panel {
    display: none;
}

.tab-container .tab-panel.active {
    display: block;
}

.search-container > p {
    color: #fcc40d;
    font-size: 2rem;
}

.search-container form {
    margin: 0 20px;
}

.tab-content .tab-panel.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tab-content .game-box {
    width: 480px;
    background: #efefef;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.tab-content .game-box .game-view {
    padding: 35px 10px 10px;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.tab-content .game-box > img {
    width: calc(100% - 4px);
    height: 191px;
    border: 2px solid #fff;
    border-radius: 10px;
}

.tab-content .game-box .game-view .tit-context {
    width: calc(100% - 190px);
    padding: 0 10px;
}

.tab-content .game-box .game-view .tit-context span {
    font-family: 'PingFang Regular';
    line-height: 18px;
    font-size: 22px;
    color: #2c2c2c;
}

.tab-content .game-box .game-view .tit-context p {
    font-family: 'PingFang Regular';
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    width: 100%;
    word-break: break-word;
    color: #717171;
    font-size: 16px;
    line-height: 23px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tab-content .game-box .game-view > img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
}

.tab-content .game-box .game-view > a {
    font-family: 'PingFang Regular';
    font-size: 18px;
    display: inline-block;
    width: 100px;
    background: #ff8a00;
    color: #fff;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 20px;
    margin-top: 25px;
}

.prev-next-btn span.disable {
    pointer-events: none;
    cursor: default;
    border-color: #8B8B8B !important;
}

.search-container .prev-next-btn span.prev-btn.disable::after {
    border-color: transparent #8B8B8B transparent transparent;
}

.search-container .prev-next-btn span.next-btn.disable::after {
    right: 0;
    border-color: transparent transparent transparent #8B8B8B;
}

.tab-panel.all > li {
    width: 308px;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.tab-panel.all > li > a {
    font-family: 'PingFang Regular';
    font-size: 18px;
    width: 100%;
    display: inline-block;
    background: #ff8a00;
    color: #fff;
    line-height: 50px;
    text-align: center;
}

.tab-panel.all > li:nth-child(3n) {
    margin-right: 0;
}

.tab-panel.all > li .bg-box {
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 350px;
    display: flex;
    align-items: flex-end;
}

.tab-panel.all > li .bg-box .context-box {
    width: 100%;
}

.tab-panel.all > li .bg-box .context-box .icon-info {
    width: calc(100% - 30px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 15px 15px 0;
}

.bg-box .context-box .icon-info .info-box {
    width: calc(100% - 75px);
}

.tab-panel.all > li .bg-box .context-box .icon-info h3 {
    font-family: 'PingFang Regular';
    font-size: 18px;
    color: #fff;
    line-height: 18px;
    font-weight: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

.tab-panel.all li .bg-box .context-box .icon-info img {
    width: 63px;
    height: auto;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #fff;
}

.tab-panel.all li .bg-box .context-box .icon-info p {
    font-family: 'PingFang Regular';
    color: #ccc;
    font-size: 12px;
    line-height: 14px;
    padding-top: 5px;
    display: -webkit-box; /* 让元素变成弹性盒子 */
    -webkit-box-orient: vertical; /* 让文本按垂直方向排列 */
    -webkit-line-clamp: 3; /* 限制最多显示 3 行 */
    overflow: hidden; /* 隐藏溢出的文本 */
    text-overflow: ellipsis; /* 显示省略号 */
    word-break: break-word; /* 避免长单词撑破 */
}

.tab-panel.all .bg-box .context-box ul {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px 20px;
}

.tab-panel.all .bg-box .context-box ul li {
    width: 33.3%;
    text-align: left;
}

.tab-panel.all .bg-box .context-box ul li h4 {
    font-family: 'PingFang Regular';
    font-size: 16px;
    color: #fff;
    font-weight: normal;
}

.tab-panel.all .bg-box .context-box ul li p {
    font-family: 'PingFang Regular';
    color: #ccc;
    font-size: 12px;
    margin-top: 5px;
}

@media (max-width: 1220px) {
    .tab-container .tab-buttons {
        position: absolute;
        left: 0;
        top: 0;
        width: calc(100% - 60px);
        margin: 0 30px 30px;
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        box-shadow: 0 0 5px #ccc;
    }

    .tab-container .tab-content {
        width: calc(100% - 60px);
        padding: 0 30px;
    }

    .tab-container .container {
        position: relative;
        padding-top: 100px;
    }

    .tab-container .container > p {
        width: calc(100% - 60px);
        padding: 0 30px;
    }

    .tab-container .container > p span {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 1040px) {
    .tab-content .tab-panel.all.active {
        display: flex;
        justify-content: flex-start;
    }

    .tab-content .tab-panel.all.active li {
        margin-right: 40px;
    }

    .tab-content .tab-panel.all.active li:nth-child(2n) {
        margin-right: 0;
    }

    .tab-container .container {
        padding-bottom: 100px;
    }
}

@media (max-width: 568px) {
    .search-container .container {
        display: block;
    }

    .search-container form {
        width: calc(100% - 40px);
    }

    .prev-next-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    .tab-content .tab-panel.all.active {
        justify-content: center;
    }

    .tab-content .tab-panel.all.active li {
        margin-right: 0;
    }

    .tab-container .container {
        padding-bottom: 50px;
    }

    .tab-content .game-box > img {
        height: 130px;
    }

    .tab-content .game-box .game-view {
        padding-top: 20px;
    }

    .tab-content .game-box .game-view .tit-context {
        padding: 0;
        width: calc(100% - 160px);
    }

    .tab-content .game-box .game-view .tit-context span {
        font-size: 18px;
        width: 100%;
        display: inline-block;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .tab-content .game-box .game-view > a {
        font-size: 16px;
        width: 80px;
        height: 35px;
        line-height: 35px;
        border-radius: 20px;
        margin-top: 15px;
    }

    .tab-content .game-box .game-view .tit-context p{
        font-size: 14px;
        line-height: 18px;
    }

    .tab-content .game-box .game-view > img {
        width: 70px;
        height: 70px;
    }
}
