/* 底部导航栏 */
.tabBar {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 110px;
    font-size: 12px;
    pointer-events: auto;
    user-select: none;
    z-index: 4;
}

.tabBar::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 123px;
    border-radius: 49%/58% 60% 0 0;
    background-image: linear-gradient(to right, rgba(13, 13, 13, 0.8), rgba(72, 72, 72, 1), rgba(13, 13, 13, 0.8));

}

.tabBar::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 123.5px;
    border-radius: 50%/63% 64% 0 0;
    background: #000000;
}

.borderTop {
    width: 100%;
    position: fixed;
    bottom: 2px;
    border-radius: 49%/42% 42% 0 0;
    height: 116px;
    background-image: linear-gradient(to right, rgba(13, 13, 13, 0.8), rgba(255, 255, 255, 1), rgba(13, 13, 13, 0.8));
    z-index: 3;
}

.borderBottom {
    width: 100%;
    position: fixed;
    bottom: 10px;
    border-radius: 50%/63% 64% 0 0;
    height: 20px;
    background-image: linear-gradient(to right, rgba(13, 13, 13, 0.8), rgba(255, 255, 255, 1), rgba(13, 13, 13, 0.8));
}

.navItem {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f0f0f0;
    z-index: 2;
    cursor: pointer;
}

.navItem>span {
    pointer-events: none;
}

.navItem:hover {
    opacity: 0.8;
}

@media screen and (max-width: 420px) {
    .navItem:hover {
        opacity: auto;
    }

}

.icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 2px;
    pointer-events: none;
}

.select-color {
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.47), rgba(255, 255, 255, 0.21));
}

.icon-container>img {
    width: 100%;
    height: 100%;
}

/* 汽车外观切换 */
.carColor {
    position: absolute;
    display: flex;
    bottom: 56px;
    left: 50%;
    transform: translate(-50%);
    width: 90%;
    height: 50px;
    pointer-events: auto;
    justify-content: space-around;
    align-items: center;
    font-size: 10px;
    color: white;
}


.carColor span {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

#div0,
#div1,
#div2,
#div3,
#div4 {
    pointer-events: none;
}

.carColor b {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

#div0,
#div1,
#div2,
#div3,
#div4 {
    width: 100%;
    height: 100%;
    /* background-color: skyblue; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 50px;

    background-position: center;
    background-size: 110% 110%;
    background-repeat: no-repeat;
}

#div0>span,
#div1>span,
#div2>span,
#div3>span,
#div4>span {
    color: white;
    opacity: 1;
}

#div0>span,
#div2>span {
    color: #000000;
}


#div0 {
    transform: rotate(-18deg) scale(1);
    background-image: url(../assets/icons/c-white-2.png);
}

#div1 {
    transform: rotate(-9deg) scale(1);
    background-image: url(../assets/icons/c-red.png);
}

#div2 {
    transform: rotate(0deg) scale(1);
    background-image: url(../assets/icons/c-white.png);
}

#div3 {
    transform: rotate(9deg) scale(1);
    background-image: url(../assets/icons/c-black.png);
}

#div4 {
    transform: rotate(18deg) scale(1);
    background-image: url(../assets/icons/c-gray.png);
}

.carColor>span:nth-child(1) {
    /* background-color: #ffffff; */
    cursor: pointer;
    transition: all 0.5s;
    /* color: black; */
}

.carColor>span:nth-child(2) {
    /* background-color: #C42226; */
    cursor: pointer;
    transition: all 0.5s;
}

.carColor>span:nth-child(3) {
    /* background-color: #000; */
    cursor: pointer;
    transition: all 0.5s;
}

.carColor>span:nth-child(4) {
    /* background-color: #000; */
    cursor: pointer;
    transition: all 0.5s;
}

.carColor>span:nth-child(5) {
    /* background-color: #000; */
    cursor: pointer;
    transition: all 0.5s;
}

.carColor .whiteSpan {
    transform: rotate(18deg) scale(1.2) translate(0px, -55px);
    transform-origin: center;
    opacity: 1;
}


.carColor .redSpan {
    transform: rotate(9deg) scale(1.2) translate(-0px, -62px);
    transform-origin: center;
    opacity: 1;
}

.carColor .centerSpan {
    transform: rotate(0deg) scale(1.2) translate(0px, -66px);
    transform-origin: center;
    opacity: 1;
}

.carColor .blackSpan {
    transform: rotate(-9deg) scale(1.2) translate(0px, -62px);
    transform-origin: center;
    opacity: 1;
}

.carColor .graySpan {
    transform: rotate(-18deg) scale(1.2) translate(0px, -55px);
    transform-origin: center;
    opacity: 1;
}

.outCircle {
    border: 1px solid rgb(205, 205, 205);
}


.ifr-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    animation: tilt-in-right-1 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    z-index: 2;
}

.ifr-container {
    position: relative;
    z-index: 4;
}

#iframe {
    pointer-events: auto;
}

.iframe-mask {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1.0);
    opacity: 0;
    z-index: 9;
    /* transition: opacity 0.3s ease; */
    pointer-events: none;
}

.iframe-mask.visible {
    opacity: 1;
    pointer-events: all;
}

.iframe-mask img {
    width: 255px;
    height: 255px;
}

.switch-interior {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 136px;
    left: calc(50% + 140px);
    z-index: 88;
    pointer-events: auto;
    cursor: pointer;
    /* background-color: pink; */
}

.switch-interior img {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

#parkingBrake {
    color: white;
    font-size: 12px;
    margin-top: 3px;
}

.switch-interior img {
    width: 24px;
    height: 24px;
}

.leaving {
    animation: leaveAnimation 0.5s ease-out forwards !important;
}

.noUse {
    pointer-events: none;
    cursor: not-allowed;
}

.anno img {
    width: 16px;
    height: 16px;
    pointer-events: auto;
    cursor: pointer;
}


@-webkit-keyframes tilt-in-right-1 {
    0% {
        -webkit-transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        opacity: 0;
    }

    100% {
        -webkit-transform: rotateX(0deg) translateX(0) skewX(0deg);
        transform: rotateX(0deg) translateX(0) skewX(0deg);
        opacity: 1;
    }
}

@keyframes tilt-in-right-1 {
    0% {
        -webkit-transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        opacity: 0;
    }

    100% {
        -webkit-transform: rotateX(0deg) translateX(0) skewX(0deg);
        transform: rotateX(0deg) translateX(0) skewX(0deg);
        opacity: 1;
    }
}


@-webkit-keyframes leaveAnimation {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }
}

@keyframes leaveAnimation {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }
}


#maskText {
    font-size: 68px;
    color: #fff;
}