/*.home-bg{*/
/*    width: 100%;*/
/*    height: 100vh;*/
/*    background: linear-gradient( 173deg, var(--primary) 0%, rgba(216,216,216,0) 455px,#f4f4f4 100%);*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    z-index: 0;*/
/*    pointer-events: none;*/
/*}*/
.home-bg {
    width: 100%;
    height: 100vh;
    background-image: url("../img/bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
}

/*===header===*/
.header {
    padding: 30px 15px 0;
}

.header .slogan-bar {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}

.header .slogan-bar .slogan-left {
    flex: 1;
}

.header .slogan-bar .slogan-title {
    width: 230px;
    height: 24px;
    background-image: url("../img/slogan.png");
    background-repeat: no-repeat;
    background-size: 100%;
}

.header .slogan-bar {
    font-weight: 350;
    font-size: 10px;
    color: #FFFFFF;
    line-height: 21px;
}

.slogan-subtitle {
    font-weight: 350;
    font-size: 10px;
    color: #464646;
    line-height: 21px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.header .slogan-bar .customer-service {
    display: block;
    width: 17px;
    height: 15px;
    margin-top: 5px;
    background-image: url('../icon/icon-customer-service.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.header .search-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    padding: 0 3px;
    background: #FFFFFF;
}

.header .search-bar .icon {
    width: 22px;
    height: 22px;
    background-image: url('../icon/icon-search.png');
    background-repeat: no-repeat;
    background-size: cover;
    margin-right: 3px;
}

.header .search-bar .search-input {
    flex: 1;
    line-height: 30px;
    border: none;
    background: transparent;
    outline: none;
}

.header .search-bar .btn-search {
    line-height: 24px;
    padding: 0 13px;
    font-weight: 350;
    font-size: 10px;
    color: #FFFFFF;
    background: var(--primary);
}

.search-bar {
    background: #FFFFFF;
    border-radius: 5px 5px 5px 5px;
}

.search-input {
    font-weight: 350;
    font-size: 10px;
    color: #9F9F9F;
    line-height: 21px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.btn-search {
    font-weight: 350;
    font-size: 10px;
    color: #9F9F9F !important;
    line-height: 21px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    background: none !important;
}

/*===banner===*/
.swiper-container {
    margin: 10px 15px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: rgba(244, 244, 244, 1);
}

/*===tool bar===*/
.tool-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    /*background: #fff;*/
    padding: 20px 25px 10px;
    margin: 0 15px;
    font-family: 'Source Han Sans', 'PingFang SC', 'microsoft yahei', sans-serif;
}

.tool-bar .tool-item {
    flex: 0 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-bar .tool-item .icon {
    width: 30px;
    height: 30px;
    background-size: cover;
    background-repeat: no-repeat;
}

.tool-bar .tool-item .icon.icon-fast-recovery {
    background-image: url("../icon/icon-fast-recovery.png");
}

.tool-bar .tool-item .icon.icon-account-choose {
    background-image: url("../icon/icon-account-choose.png");
}

.tool-bar .tool-item .icon.icon-account-estimate {
    background-image: url("../icon/icon-account-estimate.png");
}

.tool-bar .tool-item .icon.icon-guaranty {
    background-image: url("../icon/icon-guaranty.png");
}

.tool-bar .tool-item .icon.icon-game-coin {
    background-image: url("../icon/icon-game-coin.png");
}

.tool-bar .tool-item .title {
    font-weight: 350;
    font-size: 10px;
    color: #3D3D3D;
    line-height: 21px;
    margin-top: 5px;
}

/*===game list===*/
.game-list-box {
    margin: 10px 15px;
}

.game-list-box .game-title-bar {
    display: flex;
    flex-direction: row;
}

.game-list-box .game-title-bar .game-title-item {
    height: 30px;
    font-weight: 500;
    font-size: 14px;
    color: #BFC2CC;
    line-height: 30px;
    margin-right: 45px;
    transition: all .4s ease;
}

.game-list-box .game-title-bar .game-title-item.active {
    font-weight: 500;
    font-size: 16px;
    color: #303133;
    line-height: 23px;
    position: relative;
}

.game-list-box .game-title-bar .game-title-item.active:after {
    display: block;
    content: '';
    width: 100%;
    height: 7px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: 0;
}

.game-list-box .game-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-content: center;
    row-gap: 10px;
    padding: 5px 10px;
}

.game-list-box .game-list .game-item-content{
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-list-box .game-list .game-item{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-list-box .game-list .game-item .icon {
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

.game-list-box .game-list .game-item .title {
    width: 100%;
    font-weight: 500;
    font-size: 10px;
    color: #626262;
    line-height: 14px;
    text-align: center;
    margin-top: 3px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.game-list-box .game-list .game-more-item .icon {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    border-radius: 8px;
    background: var(--primary);
}

/*===service box===*/
.service-box {
    display: flex;
    margin: 10px 15px 15px;
    height: 60px;
    /* Slight increase for better spacing */
    background: linear-gradient( 180deg, #DE97BA 0%, #EB6AAA 80.71%);
    border-radius: 5px 5px 5px 5px;
    padding: 0;
    overflow: hidden;
}

.service-box .service-divider {
    display: none;
}

.service-box .service-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    height: 100%;
}

.service-box .service-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 10px 0 15px;
    background: transparent;
    position: relative;
    text-decoration: none;
}

/* Vertical divider between the two items */
/*.service-box .service-item.service-insurance-item {*/
/*    border-right: 2px solid #FFFFFF;*/
/*}*/

.service-box .service-item.service-insurance-item {
    position: relative;
    /* 移除原来的边框 */
    border-right: none;
}

.service-box .service-item.service-insurance-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 5px; /* 控制顶部距离 */
    bottom: 5px; /* 控制底部距离 */
    width: 1px;
    background-color: #FFFFFF;
}

/* Title Bar Layout */
.service-box .service-item .title-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.service-box .service-item .title-bar .title {
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.2;
}

/* Recommend Tag */
.service-box .service-item .title-bar .recommend {
    display: flex;
    align-items: center;
    height: 14px;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 7px;
    /*background: rgba(255, 255, 255, 0.2);*/
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    font-size: 9px;
    line-height: 1;
}
.recommend {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.icon-area {
    width: 6px;
    height: 6px;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("../icon/icon-give.png");
    margin-right: 3px;
}

.service-box .service-item .title-bar .recommend .icon {
    display: block !important;
}

/* Hide the old icon in recommend if not needed, or adjust it */
.service-box .service-item .title-bar .recommend .icon {
    display: none;
    /* Icon in tag not clearly visible in low-res, simplify to text/border for now or keep if needed. Image suggests just text '推荐' maybe? kept structure. */
}

/* Name inside recommend */
.service-box .service-item .title-bar .recommend .name {
    transform: scale(0.9);
    /* visual tweak for small text */
}

/* Subtitle */
.service-box .service-item .subtitle {
    font-weight: 400;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-top: 4px;
}

/* Icon for the right item (Binoculars/Handcuffs) */
.service-box .service-item.service-recovery-item:after {
    display: block;
    content: '';
    width: 50px;
    height: 50px;
    background-image: url("../icon/icon-recover.png");
    /* Ensure this icon exists or user needs to upload new one. Assuming existing one is OK or placeholder */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/*===goods list===*/
.goods-list-box {
    padding: 0 15px;
    border-radius: 10px 10px 0 0;
}

.goods-list-box .goods-title-bar {
    height: 40px;
    margin-bottom: 10px;
    overflow: hidden;
}

.goods-list-box .goods-title-bar .goods-title-wrapper {
    display: flex;
    flex-direction: row;
    /*align-items: center;*/
    gap: 20px;
    height: 60px;
    overflow-x: auto;
    scrollbar-width: none;
}

.goods-list-box .goods-title-bar .goods-title-item {
    flex-shrink: 0;
    margin: 6px 0;
}

.goods-list-box .goods-title-bar .goods-title-item .title {
    height: 28px;
    line-height: 28px;
    font-weight: 400;
    font-size: 14px;
    color: #9F9F9F;
    border-radius: 14px;
}

.goods-list-box .goods-title-bar .goods-title-item.active .title {
    white-space: nowrap;
    font-weight: 700;
    font-size: 14px;
    color: #3D3D3D;
}

.goods-list-box .goods-item {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background: #fff;
}

.goods-list-box .goods-item:not(:last-child) {
    margin-bottom: 10px;
}

.goods-list-box .goods-item .cover-box {
    width: 100%;
    height: 213px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.goods-list-box .goods-item .cover-box .cover {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.goods-list-box .goods-item .right-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    padding: 0 7px;
}

.goods-list-box .goods-item .right-bar .right-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    color: #fff;
    border-radius: 10px;
    padding: 0 5px;
    margin-right: 12px;
    background: var(--primary);
}

.goods-list-box .goods-item .right-bar .right-item .icon {
    width: 10px;
    height: 10px;
    margin-right: 5px;
    background-size: 100%;
    background-repeat: no-repeat;
}

.goods-list-box .goods-item .right-bar .right-item .icon.retrieve-compensation {
    background-image: url("../icon/icon-retrieve-compensation.png");
}

.goods-list-box .goods-item .right-bar .right-item .icon.no-goods-compensation {
    height: 11px;
    background-image: url("../icon/icon-no-goods-compensation.png");
}

.goods-list-box .goods-item .title {
    font-weight: 400;
    font-size: 16px;
    color: #3D3D3D;
    line-height: 24px;
    padding: 0 10px 10px;
}

.goods-list-box .goods-item .price-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 10px;
}

.goods-list-box .goods-item .price-bar .price {
    font-weight: 700;
    font-size: 16px;
    color: #EB392D;
}

.goods-list-box .goods-item .price-bar .views {
    font-weight: 350;
    font-size: 12px;
    color: #9F9F9F;
}

.goods-list-box .goods-list .empty-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 50px;
    line-height: 50px;
    color: #ccc;
}

.loading {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #ccc;
}
