/* Modal Carousel Component Styles with Swiper */
.modal-carousel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-carousel-container {
    position: relative;
    width: 94%;
    overflow: hidden;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.modal-carousel-overlay.show .modal-carousel-container {
    transform: scale(1);
}

.modal-carousel-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.3s ease;
}

.modal-carousel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-carousel-close svg {
    color: #ffffff;
    width: 16px;
    height: 16px;
}

.modal-carousel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    
}

/* Swiper容器样式 */
.modal-carousel-swiper {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.modal-carousel-swiper .swiper-wrapper {
    align-items: center;
}

.modal-carousel-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 0;
    box-sizing: border-box;
}

.slide-image {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border-radius: 16px;
    box-sizing: border-box;
    position: relative;
}
.content-img-box{
    position: relative;
    width: 255px;
    height: 256px;
    margin-left: auto;
    margin-right: auto;
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.slide-image .content-img {
    min-width: 255px;
    max-width: 255px;
    height: 256px;

}
.slide-content {
    color: #ffffff;
    max-width: 100%;
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
    color: #ffffff;
}

.slide-text {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    color: #b0b0b0;
    opacity: 0.9;
}

/* Swiper分页器样式 */
.modal-carousel-pagination {
    position: relative !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
}

.modal-carousel-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    margin: 0 !important;
}

.modal-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--colorPrimary);
    transform: scale(1.2);
}

.modal-carousel-next-btn {
    margin: 0 auto;
    width: 170px;
    background: var(--colorPrimary);
    color: var(--colorBlack);
    height: 50px;
    line-height: 50px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    user-select: none;
}

.modal-carousel-next-btn:active {
    transform: translateY(0);
}

.next-btn-text {
    display: block;
}

/* 防止页面滚动 */
body.modal-carousel-open {
    overflow: hidden;
}


/* 动画效果 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 触摸反馈 */
.modal-carousel-slide {
    touch-action: pan-y;
}

.modal-carousel-container {
    touch-action: manipulation;
}

/* 加载状态 */
.modal-carousel-slide img {
    transition: opacity 0.3s ease;
}

.modal-carousel-slide img:not([src]) {
    opacity: 0;
}
@keyframes charging1 {
    0% {
        transform: scaleY(0.8) skewX(-30deg) skewY(-10deg);
    }
    20% {
        transform: scaleY(1) skewX(0deg) skewY(-10deg);
    }
    100% {
        transform: scaleY(1) skewX(0deg) skewY(-10deg);
    }
}
@keyframes charging2 {
    0% {
        transform: scaleY(0.8) skewX(-30deg) skewY(-10deg);
    }
    20% {
        transform: scaleY(0.8) skewX(-30deg) skewY(-10deg);
    }
    40% {
        transform: scaleY(1) skewX(0deg) skewY(-10deg);
    }
    100% {
        transform: scaleY(1) skewX(0deg) skewY(-10deg);
    }
}
@keyframes charging3 {
    0% {
        transform: scaleY(0.8) skewX(-30deg) skewY(-10deg);
    }
    40% {
        transform: scaleY(0.8) skewX(-30deg) skewY(-10deg);
    }
    60% {
        transform: scaleY(1) skewX(0deg) skewY(-10deg);
    }
    100% {
        transform: scaleY(1) skewX(0deg) skewY(-10deg);
    }
}

.powerbank{
    position: absolute;
    left: 53%;
    top: 47%;
    /* width: 34%;
    height: 100%; */
    width: 86px;
    height: 113px;
    overflow: hidden;
    padding-top: 20px;
    z-index: 10;
}
.mini-img {
    width: 100%;
}
.powerbank-image{
    width: 80%;
    width: 204px;
    height: 306px;
}
.jigui-mini{
    position: absolute;
    width: 100%;
    animation: moveUpShrink 4s linear infinite;
    -webkit-animation: moveUpShrink 4s linear infinite;
}
@keyframes moveUpShrink {
    0% {
      transform: translateY(0); /* 初始位置和大小 */
    }
    100% {
      transform: translateY(-70px); /* 上移100px并缩小50% */
    }
  }
  
.mini-color{
    position: absolute;
    color: var(--colorPrimary);
    width: 48%;
    left: 26%;
    top: 0;
    height: 40px;
}
.jigui-color{
    position: absolute;
    width: 188px;
    top: 22px;
    left: 34px;
    height: 100%;
    color: var(--colorPrimary);
}

.charging-cable{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    transform: scaleY(0.8) skewX(-30deg) skewY(-10deg);
    transform-origin: bottom left;
    animation-fill-mode: both;
}
.charging-cable-head{
    width: 12px;
    height: 16px;
    background-color: white;
    border-left: 3px solid rgba(0,0,0,0.2);
    border-top: 2px solid rgba(0,0,0,0.2);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.cable-body{
    width: 20px;
    height: 40px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-left: 2px solid rgba(0,0,0,0.2);
    border-top: 1px solid rgba(0,0,0,0.2);
    border-radius: 2px;
    background-color:var(--colorPrimary);
}
.charging-cable-line{
    width: 10px;
    height: 80%;
    background-color:var(--colorPrimary);
    border-left: 2px solid rgba(0,0,0,0.2);
}