.vid {
    display: block;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.vid .wrapper {
    padding-top: var(--header-height-max);
    position: relative;
    z-index: 210;
}

.vid .vid-ctn {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 190;

    will-change: transform;
}

.vid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vid-ctn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: calc(320 * var(--rpx));
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #0008, #0000);
    z-index: 210;
}

.swiper-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 195;
}

.swiper-back img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cases {
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cases .part1,
.cases .part2 {
    position: relative;
    z-index: 200;
}

.cases-back {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #000;
}

section {
    position: relative;
    z-index: 190;
}

.site-footer {
    position: relative;
    z-index: 190;
}

.part1 {
    border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.part1 .wrapper {
    padding-top: calc(120 * var(--rpx));
    padding-bottom: calc(130 * var(--rpx));
    display: flex;
    justify-content: space-between;
}

.part1 .left {
    width: 45%;
    font-size: calc(48 * var(--rpx));
    font-weight: bold;
    line-height: calc(68em / 48);
}

.part1 .right {
    width: 40%;

    display: flex;
    flex-wrap: wrap;
    gap: calc(80 * var(--rpx-50)) calc(40 * var(--rpx));

}

.part1 .data {
    flex-basis: calc((100% - 80 * var(--rpx-50)) / 2);
    padding-bottom: calc(24 * var(--rpx));
    position: relative;
}

.part1 .data::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    bottom: 0;
    background: linear-gradient(to right, #fff 12%, #fff0 12%);
}

.part1 .line1 {
    font-size: calc(48 * var(--rpx));
    line-height: calc(58em / 48);
    font-weight: bold;
}

.part1 .line2 {
    font-size: calc(18rem / 16);
    margin-top: calc(8em / 16);
}

.part2 {
    padding-top: calc(72 * var(--rpx));
    padding-bottom: calc(100 * var(--rpx));
}

.part2 .section-title {
    margin-bottom: calc(90 * var(--rpx));
}

.swiper-cases {
    height: calc(720 * var(--rpx));
    overflow: visible;
    position: relative;
}

.swiper-cases .swiper-slide {
    position: relative;
    width: 100%;
}

.swiper-cases .left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(360 * var(--rpx));
    margin-left: var(--wrapper-margin);
    height: 100%;
}

.thumb-clip{
    position: absolute;
    right: 0;
    bottom: calc(100 * var(--rpx));
    width: calc(100% - var(--rpx) * 400 - var(--wrapper-margin));
    height: calc(720 * var(--rpx));

    overflow: hidden;
    z-index: 260;
}

.swiper-case-thumb {
    overflow: visible;
    left: calc(400 * var(--rpx));
    width: calc(100% - 400 * var(--rpx));
    position: absolute;
    bottom: 0;
}

.swiper-case-thumb .swiper-wrapper{
    align-items: flex-end;
}

.swiper-case-thumb .swiper-slide {
    flex-basis: calc(240 * var(--rpx));
}

.swiper-case-thumb .swiper-slide-active{
    pointer-events: none;
}

.swiper-case-thumb .swiper-slide .pic{
    transform-origin: right bottom;
    transition: transform .8s cubic-bezier(0.15, 1, 0.336, 1);
}

.swiper-case-thumb .swiper-slide-prev .pic{
    transform: scale(1) translateX(-150%);
    transition: transform .5s cubic-bezier(.7, 0, .3, 1);
}

.swiper-case-thumb .swiper-slide-active .pic{
    transform: scale(2.667);
}

.swiper-case-thumb .pic {
    position: relative;
    aspect-ratio: 640/720;
    overflow: hidden;
    cursor: pointer;
}

.swiper-case-thumb .pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.swiper-case-thumb .pic .name {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: rgba(0, 0, 0, .5);
    font-weight: bold;
    font-size: calc(24rem / 16);
    transition: .3s;
}

.swiper-case-thumb .swiper-slide-active .pic .name {
    visibility: hidden;
    opacity: 0;
}

.swiper-case-thumb .pic:hover .name {
    background-color: rgba(0, 0, 0, .25);
    transform: scale(1.08);
}

.swiper-case-thumb .pic:hover img {
    transform: scale(1.05);
}

.swiper-cases .line1 {
    font-size: calc(48 * var(--rpx));
    font-weight: bold;
}

.swiper-cases .line2 {
    font-size: calc(32 * var(--rpx));
    line-height: calc(44em / 32);
    font-weight: bold;
    margin-top: calc(16 * var(--rpx));
}

.swiper-cases .bottom {
    font-size: calc(18rem / 16);
    line-height: calc(30em / 18);
}

.swiper-cases .info-title {
    padding-left: calc(6 * var(--rpx));
    border-left: 2px solid #fff;
    line-height: 1em;
    margin-bottom: calc(12 * var(--rpx));
}

.swiper-cases .info-desc{
    word-break: keep-all;
    overflow-wrap: anywhere; /* 防止极端溢出 */
    line-break: strict;
}

.swiper-cases .info {
    margin-bottom: calc(45 * var(--rpx));
    width: 100%;
}

.info-desc ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.info-desc li {
    padding-left: calc(12 * var(--rpx));
    position: relative;
}

.info-desc li::before {
    content: "";
    position: absolute;
    top: .48em;
    left: 0;
    /*bottom: 0;*/
    /*margin: auto;*/
    width: calc(6em / 18);
    height: calc(12em / 18);
    background: url("../images/icon_angle_right_white.svg") center/contain no-repeat;
}

.info.achievements .info-desc {
    font-weight: bold;
}

.swiper-cases .bottom {
    display: flex;
    flex-direction: column;
}

.btn-learn {
    align-self: flex-start;
    font-size: 1rem;
}

.swiper .progress-bar {
    position: absolute;
    width: 100%;
    height: calc(2 * var(--rpx));
    right: 0;
    bottom: 0;
    background-color: #fff2;
    left: unset;
    top: unset;
}

.swiper-cases .progress-bar {
    width: calc(100% - var(--rpx) * 400 - var(--wrapper-margin));
    bottom: calc(-36 * var(--rpx));
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #fff;
}

.progress-value {
    position: absolute;
    width: 0;
    height: 100%;
    background-color: #fff;
    left: 0;
    top: 0;
}

.clients {
    text-align: center;
    padding-top: calc(120 * var(--rpx));
    padding-bottom: calc(120 * var(--rpx));
    background-color: #f7f7f7;
}

.clients .section-title {
    margin-bottom: calc(72 * var(--rpx));
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: calc(20 * var(--rpx));
}

.clients p {
    flex-basis: calc((100% - var(--rpx) * 100) / 6);
    position: relative;
}


.clients p::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 2px solid var(--theme-red);
    opacity: 0;
    transition: .2s;
    border-radius: calc(30 * var(--rpx));
}

.clients p:hover::after {
    opacity: 1;
}

.clients p img {
    display: block;
    width: 100%;
    height: auto;
}

.control-ctn {
    z-index: 240;
    position: absolute;
    right: var(--wrapper-margin);
    bottom: calc(100% + 40 * var(--rpx));
    margin: auto;
    height: 50px;
    display: flex;
    gap: calc(10 * var(--rpx));
}

.btn-prev,
.btn-next {
    width: calc(50 * var(--rpx));
    height: calc(50 * var(--rpx));
    cursor: pointer;
    transition: .3s;
}

.btn-prev {
    background: url("../images/btn_prev_light.svg") center/contain no-repeat;
}

.btn-next {
    background: url("../images/btn_next_light.svg") center/contain no-repeat;
}

.btn-prev:hover,
.btn-next:hover {
    transform: scale(1.05);
}

.btn-next.hint {
    box-shadow: 0 0 calc(12 * var(--rpx)) rgba(255, 255, 255, .3);
    animation: btn_hint 1s alternate infinite;
    border-radius: 50%;
}

@keyframes btn_hint {
    0% {
        box-shadow: 0 0 calc(12 * var(--rpx)) calc(12 * var(--rpx)) rgba(255, 255, 255, .4);
    }
    100% {
        box-shadow: 0 0 calc(12 * var(--rpx)) 0 rgba(255, 255, 255, .1);
    }
}


.pagination {
    height: calc(50 * var(--rpx));
    border-radius: calc(25 * var(--rpx));
    padding-left: calc(20 * var(--rpx));
    padding-right: calc(20 * var(--rpx));
    background-color: rgba(25, 25, 25);
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    gap: calc(5 * var(--rpx));
    display: none;
}

.pagination {
    color: #fff8;
}

.pagination .current {
    color: var(--theme-red);
}

@media (max-width: 960px) {
    .part1 .wrapper {
        flex-direction: column;
        justify-content: flex-start;
    }

    .part1 .left {
        width: 60%;
    }

    .part1 .right {
        width: 100%;
        margin-top: calc(60 * var(--rpx));
    }

    .extra-pic {
        display: none;
    }

    .swiper-cases .left {
        width: calc(480 * var(--rpx));
    }

    .swiper-case-thumb {
        left: calc(100 * var(--rpx));
        width: calc(100% - var(--rpx) * 100);
    }

    .swiper-case-thumb .swiper-slide-active .pic{
        transform: scale(1.41667);
    }

    .thumb-clip{
        width: calc(100% - var(--rpx) * 500 - var(--wrapper-margin));
    }

    .swiper-cases .progress-bar {
        width: calc(100% - var(--rpx) * 500 - var(--wrapper-margin));
    }

    .client-list p {
        flex-basis: calc((100% - var(--rpx) * 80) / 5);
    }
}

.swiper-cases-mobile {
    display: none;
}

@media (max-width: 750px) {

    .vid {
        aspect-ratio: 16/9;
        height: auto;
    }

    .cases .part1 {
        background-color: #000;
    }

    .part1 .left {
        width: 100%;
    }

    .part1 .data {
        flex-basis: 100%;
        padding-top: calc(34 * var(--rpx));
        padding-bottom: calc(34 * var(--rpx));
    }

    .part1 .data:first-of-type::before {
        content: "";
        width: 100%;
        height: 1px;
        left: 0;
        top: 0;
        position: absolute;
    }

    .part1 .data::before,
    .part1 .data::after {
        background: linear-gradient(to right, #ffff 15%, #fff8 15%);
    }

    .part1 .right {
        gap: 0;
    }

    .part1 .line2 {
        font-size: calc(28 * var(--rpx));
    }

    .swiper-cases, .swiper-case-thumb {
        display: none;
    }

    .client-list p {
        flex-basis: calc((100% - var(--rpx) * 40) / 3);
    }

    .cases .part2 {
        padding-top: calc(160 * var(--rpx));
        overflow: hidden;
    }

    .part2 .section-title {
        text-align: center;
    }

    .swiper-cases-mobile {
        display: block;
        width: calc(640 * var(--rpx));
        margin-top: calc(80 * var(--rpx));
        overflow: visible;
        color: #fff;
        text-align: center;
        padding-bottom: calc(80 * var(--rpx));
    }

    .swiper-cases-mobile .mobile-cover {
        width: 100%;
        aspect-ratio: 640/720;
        object-fit: cover;
        display: block;
    }

    .swiper-cases-mobile .mobile-name{
        margin-top: calc(55 * var(--rpx));
        font-size: calc(48 * var(--rpx));
        font-weight: bold;
    }

    .swiper-cases-mobile .mobile-keyword{
        margin-top: calc(18 * var(--rpx));
        font-size: calc(38 * var(--rpx));
        font-weight: bold;
    }

    .swiper-cases-mobile .btn-more{
        font-size: calc(24 * var(--rpx));
        margin-top: calc(56 * var(--rpx));
        margin-left: auto;
        margin-right: auto;
    }


    .swiper-cases-mobile .swiper-slide{
        transition: .4s;
    }

    .swiper-cases-mobile img{
        transition: .4s;
    }

    .swiper-cases-mobile .swiper-slide-prev,
    .swiper-cases-mobile .swiper-slide-next{
        opacity: .5;
    }

    .swiper-cases-mobile .swiper-slide-prev img{
        transform: scale(.9) translateX(5%);
    }

    .swiper-cases-mobile .swiper-slide-next img{
        transform: scale(.9) translateX(-5%);
    }

    .swiper-cases-mobile .progress-bar{
        display: none;
    }

    .swiper-cases-mobile .swiper-button-next,
    .swiper-cases-mobile .swiper-button-prev{
        color: #fff;
        width: calc(176 * var(--rpx));
        height: calc(108 * var(--rpx));
        top: 30%;
    }

    .swiper-cases-mobile .swiper-button-prev{
        left: calc(-150 * var(--rpx));
    }
    .swiper-cases-mobile .swiper-button-next{
        right: calc(-150 * var(--rpx));
    }

}
