@import "./common.css";
@import "./style.css";

.block {
    padding: 1.1rem var(--content-padding) 1.2rem;
    background: #fff;
}

.block .in {
    width: var(--content-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.block .in > .title {
    max-width: 9.38rem;
    margin: 0 auto .18rem;
    text-align: center;
}

.block .in > .sub-title {
    max-width: 10rem;
}

.payments {
    background: transparent;
}

.payments .in {
    text-align: left;
}

.payments .items {
    gap: .3rem;
    flex-direction: column;
    flex-wrap: wrap;
    margin: .6rem auto 0;
    height: 9.54rem;
}

.payments .item {
    position: relative;
    border: 1px solid var(--border-color-light);
    border-radius: 14px;
    width: 6.84rem;
    transition: 
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
    overflow: hidden;
}

.payments .item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(36, 96, 237, 0.2);
}

.payments .item .bg {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.payments .item:hover .bg {
    transform: scale(1.05);
}

.payments .item.type1 {
    height: 5.6rem;
}

.payments .item.type2 {
    height: 3.62rem;
}

.payments .item .name {
    padding: .28rem .28rem .2rem;
    font-weight: bolder;
    font-size: .24rem;
}

.payments .item .desc {
    padding: 0 .3rem;
    font-size: .16rem;
    line-height: 1.5;
    font-weight: lighter;
}

.payments .item .bg {
    position: absolute;
    width: calc(100% - .6rem);
    bottom: 0; left: .3rem;
}

.payments .item:first-child {
    background: #000;
}

.payments .item:first-child .name {
    color: #fff;
}

.payments .item:first-child .desc {
    color: #fff;
    opacity: .6;
}

.payments .item:first-child .bg {
    width: 100%;
    bottom: 0; left: 0;
}

.payments .item.type2 .bg {
    bottom: .3rem;
}

@media (max-width: 960px) {
    .block .in > .title {
        max-width: 100%;
    }

    .block .in > .sub-title {
        max-width: 100%;
        width: 100%;
    }

    .payments .items {
        gap: 14px;
        flex-direction: column;
        flex-wrap: wrap;
        margin: .6rem auto 0;
        height: 540px;
    }

    .payments .item {
        position: relative;
        border: 1px solid var(--border-color-light);
        border-radius: 14px;
        width: calc(50% - 14px);
    }

    .payments .item.type1 {
        height: 300px;
    }

    .payments .item.type2 {
        height: 220px;
    }

    .payments .item .name {
        padding: .28rem .28rem .2rem;
        font-weight: bolder;
        font-size: 13px;
    }

    .payments .item .desc {
        padding: 0 .3rem;
        font-size: 10px;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .payments .items {
        height: 500px;
    }

    .payments .item.type1 {
        height: 280px;
    }

    .payments .item.type2 {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .block .in > .title {
        margin-bottom: 15px;
    }

    .payments .items {
        height: auto;
        gap: 20px;
        margin-top: 30px;
    }

    .payments .item {
        width: 100%;
        border-width: 0;
        background: #fff;
    }

    .payments .item.type1 {
        height: 13.5rem;
    }

    .payments .item.type2 {
        height: 8.4rem;
    }

    .payments .item .name {
        font-size: 16px;
        padding: 20px 14px 10px;
    }

    .payments .item .desc {
        padding: 0 14px;
        font-size: 12px;
        line-height: 1.5;
        font-weight: normal;
    }

    .payments .item .bg {
        position: absolute;
        width: calc(100% - 28px);
        bottom: 0; left: 14px;
    }
}

@media (max-width: 576px) {
    .payments .item.type1 {
        height: 14.5rem;
    }

    .payments .item.type2 {
        height: 9rem;
    }
}

@media (max-width: 530px) {
    .payments .item.type1 {
        height: 15.5rem;
    }

    .payments .item.type2 {
        height: 9.5rem;
    }
}

@media (max-width: 470px) {
    .payments .item.type1 {
        height: 16.5rem;
    }

    .payments .item.type2 {
        height: 10rem;
    }
}

@media (max-width: 420px) {
    .payments .item.type1 {
        height: 17.5rem;
    }

    .payments .item.type2 {
        height: 11rem;
    }
}

@media (max-width: 380px) {
    .payments .item.type1 {
        height: 18.5rem;
    }

    .payments .item.type2 {
        height: 12rem;
    }
}