.billing-rule {
    width: 100%;
    padding-top: 131px;
    padding-bottom: 128px;
}

.billing-rule h2 {
    font-family: Source Han Sans CN;
    font-weight: bold;
    font-size: 48px;
    color: #000000;
    text-align: center;
}

.billing-rule-container {
    display: flex;
    justify-content: center;
    gap: 21px;
    margin-top: 136px;
}

.billing-rule-item {
    max-width: 260px;
    min-height: 370px;
    background: #FAFBFF;
    border-radius: 15px;
    border: 1px solid #E6E3E4;
    overflow: hidden;
}

.billing-rule-item h4 {
    height: 67px;
    padding: 0 22px;
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 18px;
    color: #000000;
    display: flex;
    align-items: center;
}

.billing-rule-item>h4>div {
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 8px;
    color: #fff;
    margin-right: 14px;
}

.billing-rule-item:nth-child(1) h4 {
    background: linear-gradient(to right, #FFFAFB, #FFF0F3);
}

.billing-rule-item:nth-child(2) h4 {
    background: linear-gradient(to right, #FAFCFF, #EDF8FF);
}

.billing-rule-item:nth-child(3) h4 {
    background: linear-gradient(to right, #FDFAFF, #FBEDFF);
}

.billing-rule-item:nth-child(4) h4 {
    background: linear-gradient(to right, #FAFFFA, #E6FFEB);
}

.billing-rule-item:nth-child(1) h4>div {
    background-color: #FE4066;
}

.billing-rule-item:nth-child(2) h4>div {
    background-color: #0570FF;
}

.billing-rule-item:nth-child(3) h4>div {
    background-color: #A53BEF;
}

.billing-rule-item:nth-child(4) h4>div {
    background-color: #34C241;
}

.billing-rule-left {
    width: 40%;
    height: 730px;
    padding: 10px;
    background-color: #EFFDF5;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.billing-rule-left h2{
    margin-top: 100px;
}
.billing-rule-left img{
    margin-top: 90px;
}
.billing-rule-right {
    width: 60%;
    height: 730px;
    display: flex;
    overflow: hidden;
}
.billing-rule-right-left {
    width: 40%;
    height: 730px;
    background-color: #EFFDF5;
}
.billing-rule-right-right {
    width: 60%;
    height: 730px;
    background: linear-gradient(-56deg, #D7DFFF, #C8F3F0);
}

.billing-rule-one {
    transition: transform 0.3s ease;
    display: inline-block;
    animation: scrollone 10s linear infinite;
    width: 500px;
    margin-left: 500px;
    padding: 10px;
    margin-top: 60px;
    height: 122px;
    border-left: 3px solid #007AFF; 
    background: #FFFFFF;
    box-shadow: 0px 0px 16px 0px rgba(0,122,255,0.17);
    border-radius: 10px 10px 10px 0px;
}

.billing-rule-two {
    transition: transform 0.3s ease;
    padding: 10px;
    display: inline-block;
    animation: scrolltwo 10s linear infinite;
    width: 500px;
    margin-left: 500px;
    margin-top: 10px;
    position: relative;
    left: 50px;
    top: 50px;
    height: 122px;
    border-left: 3px solid #007AFF; 
    background: #FFFFFF;
    box-shadow: 0px 0px 16px 0px rgba(0,122,255,0.17);
    border-radius: 10px 10px 10px 0px;
}
.billing-rule-three {
    transition: transform 0.3s ease;
    padding: 10px;
    display: inline-block;
    animation: scrollthree 19s linear infinite;
    width: 500px;
    margin-left: 500px;
    margin-top: 10px;
    position: relative;
    left: 587px;
    top: -200px;
    height: 122px;
    border-left: 3px solid #007AFF; 
    background: #FFFFFF;
    box-shadow: 0px 0px 16px 0px rgba(0,122,255,0.17);
    border-radius: 10px 10px 10px 0px;
}

.billing-rule-four {
    transition: transform 0.3s ease;
    display: inline-block;
    animation: scrollfour 19s linear infinite;
    width: 500px;
    margin-left: 500px;
    padding: 10px;
    position: relative;
    left: 590px;
    top: 30px;
    margin-top: 10px;
    height: 122px;
    border-left: 3px solid #007AFF; 
    background: #FFFFFF;
    box-shadow: 0px 0px 16px 0px rgba(0,122,255,0.17);
    border-radius: 10px 10px 10px 0px;
}
.billing-rule-five{
    transition: transform 0.3s ease;
    display: inline-block;
    animation: scrollfive 10s linear infinite;
    width: 500px;
    margin-left: 500px;
    padding: 10px;
    margin-top: 10px;
    position: relative;
    left: -50px;
    top:-80px;
    height: 122px;
    border-left: 3px solid #007AFF; 
    background: #FFFFFF;
    box-shadow: 0px 0px 16px 0px rgba(0,122,255,0.17);
    border-radius: 10px 10px 10px 0px;
}
.billing-rule-one:hover  {
    opacity: 1;
    z-index: 1000;
    animation-play-state: paused; 
    background-color: #007AFF;
    transform: scale(1.2);
  }
  .billing-rule-one:hover p {
    color: #fff;
  }
  .billing-rule-one:hover span{
    color: #fff;
  }
  .billing-rule-two:hover {
     opacity: 1;
    z-index: 1000;
    background-color: #007AFF;
    transform: scale(1.2);
    animation-play-state: paused; 
  }
  .billing-rule-two:hover p {
    color: #fff;
  }
  .billing-rule-two:hover span{
    color: #fff;
  }
  .billing-rule-three:hover {
    opacity: 1;
    z-index: 1000;
    background-color: #007AFF;
    transform: scale(1.2);
    animation-play-state: paused; 
  }
  .billing-rule-three:hover p {
    color: #fff;
  }
  .billing-rule-three:hover span{
    color: #fff;
  }
  .billing-rule-four:hover {
    opacity: 1;
    z-index: 1000;
    background-color: #007AFF;
    transform: scale(1.2);
    animation-play-state: paused; 
  }
  .billing-rule-four:hover p {
    color: #fff;
  }
  .billing-rule-four:hover span{
    color: #fff;
  }
  .billing-rule-five:hover {
    opacity: 1;
    z-index: 1000;
    background-color: #007AFF;
    transform: scale(1.2);
    animation-play-state: paused; 
  }
  .billing-rule-five:hover p {
    color: #fff;
  }
  .billing-rule-five:hover span{
    color: #fff;
  }
.billing-rule-item p {
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 17px;
    color: #4D4D4D;
    line-height: 30px;
    padding: 23px 18px;
}
.billing-rule-right-right p{
    font-family: Source Han Sans CN;
    font-weight: 700;
    font-size: 16px;
    color: #0A0A0A;
    line-height: 20px;margin-bottom: 10px;
}
.billing-rule-right-right span{
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 24px;
}
@keyframes scrollone {
    0% {
        transform: translateX(0);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-700px);
        opacity: 0;
    }

    /* 根据内容宽度调整 */
}
@keyframes scrolltwo {
    0% {
        transform: translateX(0);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-750px);
        opacity: 0;
    }

    /* 根据内容宽度调整 */
}
@keyframes scrollthree {
    0% {
        transform: translateX(0);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-1290px);
        opacity: 0;
    }

    /* 根据内容宽度调整 */
}
@keyframes scrollfour {
    0% {
        transform: translateX(0);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-1290px);
        opacity: 0;
    }

    /* 根据内容宽度调整 */
}
@keyframes scrollfive {
    0% {
        transform: translateX(0);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-650px);
        opacity: 0;
    }

    /* 根据内容宽度调整 */
}
@media screen and (max-width: 768px) {
    .billing-rule{
        display: block !important;
    }
    .billing-rule-left{
        width: 100%;
    }
    .billing-rule-right{
        width: 100%;
    }
    .billing-rule-right-left{
        display: none;
    }
    .billing-rule-right-right{
        width: 100%;
    }
    .billing-rule-container {
        display: block;
    }

    .billing-rule-item {
        margin: 20px auto;
    }
}