@import "../../variables.less";
@import "../../svg-icon.less";

@font-face {
    font-family: "Barlow-Bold";
    src: url("Barlow-Bold.ttf") format("truetype");
}

@background-color: #060607;
@fontFamilyBar: 'Barlow-Bold';

body{
    background-color: @background-color;
}
.the-main-g {
    background-color: @background-color;

    .banner {
        height: 600px;
        background: #060607;
        .banner-background-g {
            width: auto;
            height: 600px;
            background-size: cover;
        }
    }

    .product{
        position: relative;
        width: 1200px;
        margin: auto;

        .product-bg-left-1{
            width: 115px;
            height: 116px;
            background: url("../../../images/activity/2026/blackfive/left_1.png");
            position: absolute;
            left: -215px;
            top: 240px;
        }
        .product-bg-left-2{
            width: 125px;
            height: 86px;
            background: url("../../../images/activity/2026/blackfive/left_2.png");
            position: absolute;
            left: -220px;
            top: 65%;
            transform: translateY(-50%);
        }
        .product-bg-left-3{
            width: 113px;
            height: 173px;
            background: url("../../../images/activity/2026/blackfive/left_3.png");
            position: absolute;
            left: -220px;
            top: 230px;
        }
        .product-bg-right-1{
            width: 121px;
            height: 136px;
            background: url("../../../images/activity/2026/blackfive/right_1.png");
            position: absolute;
            right: -220px;
            top: 65%;
            transform: translateY(-50%);
        }
        .product-bg-right-2{
            width: 92px;
            height: 139px;
            background: url("../../../images/activity/2026/blackfive/right_2.png");
            position: absolute;
            right: -200px;
            top: 280px;
        }
        .product-bg-right-3{
            width: 98px;
            height: 117px;
            background: url("../../../images/activity/2026/blackfive/right_3.png");
            position: absolute;
            right: -200px;
            top: 65%;
            transform: translateY(-50%);
        }

        .product-desc{
            margin-top: 20px;
            border-radius: 12px;
            background: #16161a;
            border: 1px solid #37311f;

            font-weight: 400;
            font-size: 16px;
            text-align: center;
            color: #ecd786;

            padding: 13px 50px;
        }
        &.server{
            .product-bg-right{
                top: 197px;
            }
        }

        .title{
            padding-top: 80px;
            font-weight: 800;
            font-size: 40px;
            color: #FFFFFF;
            text-align: center;
            span{
                color: #DE1E1E;
                padding-left: 20px;
            }
            .desc{
                font-weight: 400;
                font-size: 16px;
                color: #B9B7B0;
                span{
                    color: #FF3D00;
                    padding-left: 0;
                }
            }
            position: relative;
            &::after{
                content: none;
                width: 40px;
                height: 4px;
                background: #FF4757;
                border-radius: 2px 2px 2px 2px;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: -12px;
            }
        }

        .ecs-change-time{
            padding: 10px;
            width: max-content;
            margin-top: 40px;
            border-radius: 12px;
            background: #16161a;
            border: 1px solid #37311f;
            justify-content: space-evenly;
            align-items: center;
            display: none;
            &.checked{
                display: flex;
            }
            div{
                padding: 9px 35px;
                font-weight: 400;
                font-size: 18px;
                color: #fff;
                border-radius: 25px;
                cursor: pointer;

                display: flex;
                gap: 5px;
                align-items: center;
                .percentage{
                    display: inline-block;
                    font-weight: 400;
                    font-size: 14px;
                    color: #060607;
                    padding: 2px 8px;
                    border-radius: 4px;
                    background: linear-gradient(135.00deg, #f5de87 0%, #ab8120 100%);
                    border: 1px solid #685827;
                }
                &.checked{
                    color: #060607;
                    border-radius: 8px;
                    background: linear-gradient(135.00deg, #f5de87 0%, #ab8120 100%);
                    .percentage{
                        background: #2d281e;
                        color: #fff;
                    }
                }
            }
        }
        .ecs-change-region{
            height: 62px;
            border-radius: 12px;
            background: #16161a;
            border: 1px solid #37311f;
            margin-top: 20px;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            div{
                font-weight: 400;
                font-size: 18px;
                color: #fff;
                width: 234px;
                height: 42px;
                line-height: 42px;
                background: none;
                border-radius: 8px;
                text-align: center;
                cursor: pointer;
                &.checked{
                    color: #060607;
                    background: linear-gradient(135.00deg, #f5de87 0%, #ab8120 100%);
                }
                .icon-new{
                    display: inline-block;
                    position: relative;
                    &::before{
                        content: "HOT";
                        display: inline-block;
                        width: 41px;
                        height: 18px;
                        text-align: center;
                        line-height: 18px;
                        border-radius: 9px 9px 9px 0;
                        background: linear-gradient(135.00deg, #ff7e21 0%, #ff3d00 100%);
                        font-weight: 400;
                        font-size: 12px;
                        color: #fff;
                        position: absolute;
                        top: -26px;
                        left: 4px;
                    }
                }
            }
        }

        .cards-container{
            margin-top: 80px;
            display: none;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: space-between;
            .card-container{
                width: calc((100% - 60px) / 4);
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: center;

                position: relative;

                .tag-container{
                    width: auto;
                    padding: 8px 30px;
                    background: linear-gradient(135.00deg, #f5de87 0%, #ab8120 100%);
                    border-radius: 18px;
                    font-weight: bold;
                    font-size: 14px;
                    color: #060607;
                    text-align: center;
                    position: absolute;
                    top: -18px;
                    z-index: 99;
                }
                .content-container{
                    width: 100%;
                    background: #16161a;
                    border-radius: 12px;
                    border: 1px solid #37311f;
                    padding: 24px 0;
                    display: flex;
                    flex-direction: column;
                    gap: 24px;
                    position: relative;
                    z-index: 2;
                    .title-box{
                        padding: 0 24px;
                        display: flex;
                        flex-direction: column;
                        font-family: @fontFamilyBar;
                        white-space: nowrap;
                        .title{
                            font-weight: bold;
                            font-size: 24px;
                            color: #FFFFFF;
                            padding-top: 0;
                            text-align: left;
                            &::after{
                                content: none;
                            }
                        }
                        .desc{
                            padding-top: 8px;
                            font-weight: 400;
                            font-size: 12px;
                            color: #959595;
                        }
                    }
                    .price-buy{
                        padding: 24px 0;
                        margin: 0 24px;
                        background: none;
                        border-top: 1px dashed #423920;
                        border-bottom: 1px dashed #423920;
                        .price-box{
                            .price{
                                display: flex;
                                flex-direction: column-reverse;
                                gap: 12px;
                                .price-top{
                                    display: flex;
                                    //flex-direction: column;
                                    //align-items: flex-start;
                                    align-items: center;
                                    gap: 5px;
                                    justify-content: start;
                                }
                                .price-percentage{
                                    flex: 0;
                                    padding: 3px 9px;
                                    background: linear-gradient(135.00deg, #f5de87 0%, #ab8120 100%);
                                    border-radius: 12px;
                                    font-size: 14px;
                                    color: #060607;
                                }
                                .price-custom{
                                    font-weight: bold;
                                    font-size: 24px;
                                    color: #ffffff;
                                    font-family: @fontFamilyBar;
                                    white-space: nowrap;
                                    .num{
                                        font-size: 40px;
                                    }
                                }
                                .price-original{
                                    font-weight: 500;
                                    font-size: 16px;
                                    color: #959595;
                                    font-family: @fontFamilyBar;
                                    text-decoration-line: line-through;
                                }
                            }
                        }
                        .price-desc{
                            margin-top: 8px;
                            width: 100%;
                            font-weight: 400;
                            font-size: 16px;
                            color: #fff;
                            text-align: left;
                            span{
                                color: #F3C228;
                                font-family: @fontFamilyBar;
                            }
                        }
                    }
                    .region{
                        padding: 0 24px;
                        display: flex;
                        align-items: flex-start;
                        .region-icon{
                            padding: 6px 12px;
                            border-radius: 16px;
                            background: #2d281e;
                            border: 1px solid #685827;
                            font-weight: 400;
                            font-size: 14px;
                            color: #ecd786;
                            display: flex;
                            gap: 5px;
                            align-items: center;
                            line-height: 1;
                        }
                    }
                    .configs{
                        display: flex;
                        flex-direction: column;
                        gap: 15px;
                        position: relative;
                        .config{
                            padding: 0 24px;
                            position: relative;
                            white-space: nowrap;

                            font-weight: bold;
                            font-size: 14px;
                            color: #B9B7B0;

                            display: flex;
                            gap: 8px;
                            align-items: baseline;

                            overflow: hidden;
                            &::before {
                                content: '';
                                flex: 0 0 14px;
                                width: 14px;
                                height: 14px;
                                transform: translateY(1px);
                                background-color: #f3c228;
                            }
                            .label,
                            .value {
                                line-height: 1;
                            }
                            &:last-child{
                                border-bottom: none;
                            }
                            .value{
                                font-weight: normal;
                            }
                        }

                        .config.icon-flow{
                            overflow: unset;
                            .give-content {
                                color: #0044FF;
                                display: inline-flex;
                                align-items: baseline;
                                gap: 3px;
                                span{
                                    display: inline-block;
                                }
                                .tip-icon {
                                    position: relative;
                                    display: inline-flex;
                                    align-items: center;
                                    justify-content: center;

                                    width: 15px;
                                    height: 15px;
                                    border-radius: 50%;

                                    font-size: 10px;
                                    font-weight: 700;

                                    color: #fff;
                                    background: #1C1C1C;

                                    cursor: pointer;
                                    &::before {
                                        content: '?';
                                        font-weight: bolder;
                                        font-size: 10px;
                                        position: absolute;
                                        top: 0;
                                    }
                                    &::after {
                                        content: attr(data-tip);
                                        position: absolute;
                                        bottom: -280%;
                                        left: -130%;
                                        transform: translateX(-50%);

                                        //background: #333;
                                        color: #FF3D00;
                                        //padding: 6px 10px;
                                        font-size: 12px;
                                        white-space: break-spaces;
                                        border-radius: 4px;
                                        width: 300px;
                                        height: 40px;

                                        opacity: 1;
                                        pointer-events: none;
                                        transition: 0.2s ease;
                                        z-index: 9999;
                                    }
                                    &:hover::after {
                                        opacity: 1;
                                    }
                                }
                            }
                        }
                    }
                    .buy-bnt{
                        padding: 0 24px;
                        margin-top: 16px;
                        display: flex;
                        justify-content: start;
                        a{
                            display: inline-block;
                            width: 100%;
                            height: 48px;
                            text-align: center;
                            line-height: 48px;
                            border-radius: 8px;
                            background: #2d281e;
                            border: 1px solid #685827;
                            font-weight: 400;
                            font-size: 16px;
                            color: #f3c228;
                        }
                    }
                }
                &:hover{
                    .tag-container{
                        //background: #0044FF;
                    }
                    .content-container{
                        border: 1px solid #F3C228;
                        .buy-bnt{
                            a{
                                background: linear-gradient(135.00deg, #f5de87 0%, #ab8120 100%);
                                color: #060607;
                            }
                        }
                    }
                }
            }
            &.checked{
                display: flex;
            }
            &.more{
                margin: 0 auto !important;
                justify-content: center;
                padding: 16px;
                font-size: 18px;
                color: #333;
            }
        }
        &.ecs{
            .tag-container{
                display: none;
            }
            .cards-container{
                margin-top: 40px;
                .tag-container{
                    top: -8px;
                    z-index: 1;
                }
                .price-buy{
                    margin: 0 40px;
                }
            }
        }
        .buy-container{
            margin-top: 20px;
            background: #1364D8;
            height: 148px;
            position: relative;
            a{
                display: block;
                padding: 12px 40px;
                background: linear-gradient( 135deg, #FF7E21 0%, #FF3D00 100%);
                border-radius: 4px;
                font-weight: 400;
                font-size: 21px;
                color: #FFFFFF;
                position: absolute;
                left: 60%;
                top: 50%;
                transform: translateY(-50%);
            }
        }

        &.ecs{
            .cards-container{
                .card-container{
                    width: calc((100% - 60px) / 4);
                    .content-container{
                        .title-box{
                            padding: 0 24px;
                        }
                        .price-buy {
                            margin: 0 24px;
                        }
                        .price {
                            flex-direction: column-reverse;
                            .price-top{
                                flex-direction: unset !important;
                                align-items: center !important;
                                gap: 5px;
                            }
                        }
                        .region{
                            padding: 0 24px;
                        }
                        .buy-bnt{
                            padding: 0 24px;
                        }
                    }
                }
            }
        }

        &.server{
            .cards-container{
                margin-top: 40px;
                gap: 20px;
                .card-container{
                    width: calc((100% - 60px) / 4);
                    .tag-container{
                        display: none;
                    }
                    .content-container{
                        padding: 24px 0;
                        .title-box{
                            padding: 0 24px;
                            max-height: 38px;
                            .title{
                                white-space: nowrap;
                            }
                        }
                        .price-buy {
                            margin: 0 24px;
                        }
                        .price {
                            flex-direction: column;
                            .price-top{
                                flex-direction: unset !important;
                                align-items: center !important;
                                gap: 5px;
                            }
                        }
                        .region{
                            padding: 0 24px;
                        }
                        .configs{
                            .config{
                                padding: 0 24px;
                                gap: 4px;
                                .value{
                                    font-weight: bolder;
                                }
                                .label{
                                    font-weight: normal;
                                }
                            }
                        }
                        .buy-bnt{
                            padding: 0 24px;
                        }
                        position: relative;
                        &.hot::before{
                            content: "HOT";
                            position: absolute;
                            display: inline-block;
                            width: 57px;
                            height: 25px;
                            text-align: center;
                            line-height: 25px;
                            font-family: @fontFamilyBar;
                            font-size: 14px;
                            font-weight: bold;
                            color: #fff;
                            background: linear-gradient(45.00deg, #ff7e21 0%, #ff3d00 100%);
                            border-radius: 12px 12px 12px 0;
                            right: 12px;
                            top: 14px;
                        }
                    }
                }
            }
        }

        .aff-cards{
            margin-top: 40px;
            margin-bottom: 80px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            height: 316px;
            background: url("../../../images/activity/2026/blackfive/aff-bg.png") no-repeat center;
            .aff-card{
                padding: 60px 125px;
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 20px;
                justify-content: center;
                align-items: center;
                .title{
                    padding: 0;
                    color: #fff;
                    font-size: 34px;
                    font-weight: 900;
                    span{
                        color: #f3c228;
                    }
                }
                .desc{
                    font-size: 20px;
                    text-align: center;
                    color: #b9b7b0;
                }
                .btn{
                    a{
                        margin: auto;
                        display: inline-block;
                        padding: 14px 40px;
                        border-radius: 8px;
                        background: linear-gradient(135.00deg, #f5de87 0%, #ab8120 100%);
                        font-weight: 400;
                        font-size: 16px;
                        text-align: center;
                        color: #060607;
                    }
                }
            }
            .aff-card.lang_en{
                padding: 20px 60px;
            }
        }

        .advantages{
            padding-bottom: 60px;
        }
        .advantages.cards{
            padding-top: 48px;
            display: flex;
            flex-direction: column;
            gap: 22px;
            .flex-cards{
                display: flex;
                gap: 20px;
                justify-content: space-between;
                .card{
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    cursor: default;
                    border-radius: 8px;
                    background: #FFFFFF;
                    border: 1px solid #E0E1EC;
                    transition:
                        background .35s ease,
                        box-shadow .35s ease,
                        color .35s ease,
                        transform .35s ease;

                    .title{
                        padding-top: 35px;
                        font-weight: bold;
                        font-size: 16px;
                        color: #1A1A1A;
                        &:after{
                            content: none;
                        }
                    }
                    .desc{text-align: center;}
                    .card-img{
                        width: 54px;
                        height: 54px;
                        background-size: cover;
                    }
                    &.advantages-1 .card-img{
                        background: url("../../../images/activity/2026/anniversary/advantages_1.png") no-repeat center;
                    }
                    &.advantages-2 .card-img{
                        background: url("../../../images/activity/2026/anniversary/advantages_2.png") no-repeat center;
                    }
                    &.advantages-3 .card-img{
                        background: url("../../../images/activity/2026/anniversary/advantages_3.png") no-repeat center;
                    }
                    &.advantages-4 .card-img{
                        background: url("../../../images/activity/2026/anniversary/advantages_4.png") no-repeat center;
                    }
                    &.advantages-5 .card-img{
                        background: url("../../../images/activity/2026/anniversary/advantages_5.png") no-repeat center;
                    }
                }
                &:first-child{
                    .card{
                        padding: 48px 20px 34px 20px;
                        flex: 1;
                    }
                }
                &:last-child{
                    .card{
                        padding: 36px 11px 34px 11px;
                        width: 290px;
                        .title{
                            padding-top: 16px;
                            font-size: 18px;
                            &:after{
                                content: none;
                            }
                        }
                        .desc{
                            padding-top: 15px;
                            font-weight: 400;
                            font-size: 16px;
                        }
                        .card-img{
                            width: 65px;
                            height: 65px;
                        }
                        &.advantages-6 .card-img{
                            background: url("../../../images/activity/2026/anniversary/advantages_6.png") no-repeat center;
                        }
                        &.advantages-7{
                            width: 580px;
                            background: linear-gradient( 135deg, #FF7E21 0%, #FF3D00 100%);
                            box-shadow: 0 0 20px 1px rgba(0,0,0,0.05);
                            .card-img{
                                background: url("../../../images/activity/2025/blackfive/advantages_checked_7.png") no-repeat center;
                            }
                            .title,.desc{
                                color: #FFFFFF;
                            }
                        }
                        &.advantages-8 .card-img{
                            background: url("../../../images/activity/2026/anniversary/advantages_8.png") no-repeat center;
                        }
                    }
                }
                .card:hover{
                    transform: translateY(-4px);
                    background: linear-gradient( 135deg, #FF7E21 0%, #FF3D00 100%);
                    box-shadow: 0 0 20px 1px rgba(0,0,0,0.05);
                    &.advantages-1 .card-img{
                        background: url("../../../images/activity/2025/blackfive/advantages_checked_1.png") no-repeat center;
                    }
                    &.advantages-2 .card-img{
                        background: url("../../../images/activity/2025/blackfive/advantages_checked_2.png") no-repeat center;
                    }
                    &.advantages-3 .card-img{
                        background: url("../../../images/activity/2025/blackfive/advantages_checked_3.png") no-repeat center;
                    }
                    &.advantages-4 .card-img{
                        background: url("../../../images/activity/2025/blackfive/advantages_checked_4.png") no-repeat center;
                    }
                    &.advantages-5 .card-img{
                        background: url("../../../images/activity/2025/blackfive/advantages_checked_5.png") no-repeat center;
                    }
                    &.advantages-6 .card-img{
                        background: url("../../../images/activity/2025/blackfive/advantages_checked_6.png") no-repeat center;
                    }
                    &.advantages-8 .card-img{
                        background: url("../../../images/activity/2025/blackfive/advantages_8.png") no-repeat center;
                    }
                    .title,.desc{
                        color: #fff;
                    }
                }
            }
        }
    }

    .prompt{
        text-align: center;
        font-size: 16px;
        color: #FF3D00;
        padding-top: 15px;
    }
}
