/* 全部游戏弹窗样式 */
/* 基于Header.less中的样式改编 */

.gamesite_topbar {
    position: relative;
}

/* 全部游戏按钮及弹窗 */
.index_2021_c_header_allgame i.gamepad-icon {
    display: inline-block;
    width: 18px;
    height: 14px;
    background-image: url(/statics/img/web/gamesite/module6/gamepad_icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 2px;
}

.index_2021_c_header_allgame i.arrow-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.3s ease;
}

.index_2021_c_header_allgame:hover i.arrow-icon,
.index_2021_c_header_allgame.active i.arrow-icon {
    transform: rotate(180deg);
    border-top-color: #ff950d;
}

.index_2021_c_header_allgame {
    cursor: pointer;
    height: 42px;
    position: absolute;
    right: 260px; /* 放在user_info右侧 */
    top: 1px;
    z-index: 9;
    line-height: 42px;
}

.index_2021_c_header_allgame:hover .index_2021_c_header_popup_allgame {
    display: inline-block;
}

.index_2021_c_header_allgame .allgame-text-button {
    display: flex;
    align-items: center;
    height: 42px;
    /* padding: 0 10px; */
    color: #666;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.index_2021_c_header_allgame:hover .allgame-text-button,
.index_2021_c_header_allgame.active .allgame-text-button {
    color: #ff950d;
}

/* 弹窗样式 */
.index_2021_c_header_popup_allgame {
    display: none;
    position: absolute;
    z-index: 10;
    top: 42px;
    right: 0px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    box-shadow: 0px 0px 2px #d9d9d9;
    line-height: 1.5;
}

.index_2021_c_header_popup_allgame a {
    display: inline-block;
}

/* 热门页游后面的图标 */
.index_2021_c_header_popup_allgame .new,
.index_2021_c_header_popup_allgame .hot {
    width: 10px;
    height: 10px;
    background-image: url(../../../../../src/web/assets/images/common/header_allgame_sprites.png);
    background-repeat: no-repeat;
}

.index_2021_c_header_popup_allgame .new {
    background-position: -10px 0;
}

.index_2021_c_header_popup_allgame .hot {
    background-position: -20px 0;
}

.index_2021_c_header_popup_allgame_inner {
    height: 262px;
    white-space: nowrap;
}

.inner_item {
    display: inline-block;
    vertical-align: top;
}

.index_2021_c_header_popup_allgame_detail {
    width: 400px;
    height: 100%;
}

.index_2021_c_header_popup_allgame_rmyy,
.index_2021_c_header_popup_allgame_rmsy {
    width: 140px;
    height: 100%;
}

/* 隐藏热门手游部分 */
.index_2021_c_header_popup_allgame_rmsy {
    display: none;
}

.index_2021_c_header_popup_allgame_snxh {
    width: 220px;
    height: 100%;
    overflow: hidden;
}

.index_2021_c_header_popup_allgame_rmyy h1,
.index_2021_c_header_popup_allgame_rmsy h1 {
    margin: 20px 0 20px 16px;
    border-left: 2px solid #ff950d;
    padding-left: 16px;
    font-size: 14px;
    font-weight: normal;
}

.index_2021_c_header_popup_allgame_rmyy a,
.index_2021_c_header_popup_allgame_rmsy a {
    margin-bottom: 2px;
    font-size: 14px;
    color: #666666;
    display: block;
    line-height: 1.5;
}

.index_2021_c_header_popup_allgame_rmyy a:hover,
.index_2021_c_header_popup_allgame_rmsy a:hover,
.index_2021_c_header_popup_allgame_rmyy a.active,
.index_2021_c_header_popup_allgame_rmsy a.active {
    color: #ff950d !important;
}

.index_2021_c_header_popup_allgame_rmyy a span,
.index_2021_c_header_popup_allgame_rmsy a span {
    position: relative;
    padding: 0 16px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
    height: 21px;
    display: inline-block;
}

.index_2021_c_header_popup_allgame_rmyy .new,
.index_2021_c_header_popup_allgame_rmyy .hot,
.index_2021_c_header_popup_allgame_rmsy .new,
.index_2021_c_header_popup_allgame_rmsy .hot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 3px;
}

.index_2021_c_header_popup_allgame_detail_inner,
.index_2021_c_header_popup_allgame_rmyy_inner,
.index_2021_c_header_popup_allgame_rmsy_inner {
    overflow: hidden;
    height: 100%;
    border-right: 1px solid #d9d9d9;
}

.index_2021_c_header_popup_allgame_detail_inner {
    position: relative;
}

.index_2021_c_header_popup_allgame_detail_inner img {
    width: 100%;
    height: 100%;
}

.index_2021_c_header_popup_allgame_detail_inner p {
    position: absolute;
    left: 22px;
    top: 80px;
    width: 210px;
    height: 92px;
    line-height: 1.5;
    color: #666666 !important;
    white-space: pre-wrap;
}

.index_2021_c_header_popup_allgame_snxh_code2d {
    margin: 0 16px 20px;
}

.index_2021_c_header_popup_allgame_snxh_code2d:first-of-type {
    margin-top: 30px;
    display: inline-block;
}

.index_2021_c_header_popup_allgame_snxh_code2d i {
    width: 88px;
    height: 88px;
    background-size: cover;
    float: left;
}

.index_2021_c_header_popup_allgame_snxh_code2d div {
    width: 92px;
    float: right;
}

.index_2021_c_header_popup_allgame_snxh_code2d div h1 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: bold;
}

.index_2021_c_header_popup_allgame_snxh_code2d div p {
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* 自定义按钮样式 */
.custom-button {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 15px;
    background-color: #ff950d;
    color: #fff;
    font-size: 12px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    min-width: 60px;
    text-align: center;
}

.custom-button:hover {
    background-color: #e68100;
}

.index_2021_c_header_popup_allgame_rmyy_inner a {
    /* margin-bottom已在上面统一设置，这里移除以避免冲突 */
}

.index_2021_c_header_popup_allgame_rmyy_inner .more-button-box {
    text-align: right;
}

.index_2021_c_header_popup_allgame_rmyy_inner .more-button-box .more-button {
    color: #2d89f2;
    display: inline-block;
    margin-right: 5px;
}

/* 工具类 */
.CLEAR:after {
    content: "";
    display: block;
    clear: both;
}

.F_L {
    float: left;
}

.F_R {
    float: right;
}

.I_B {
    display: inline-block;
}

.T_HIDE {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.CLEAR {
    clear: both;
}