.floating-bag:empty{
    display: block !important;
}

.floating-title:empty{
  display: block !important;
}

.floating-time:empty{
  display: block !important;
}

@keyframes slideInLeft{
    0% {
        transform: translate3d(130%, 0, 0);
        visibility: visible;
      }
      100% {
        transform: translate3d(0, 0, 0);
      }
}

@keyframes slideOutLeft {
    from {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
    to {
      visibility: hidden;
      -webkit-transform: translate3d(-130%, 0, 0);
      transform: translate3d(-130%, 0, 0);
    }
  }


@keyframes slideInRight {
    from {
      -webkit-transform: translate3d(-130%, 0, 0);
      transform: translate3d(-130%, 0, 0);
      visibility: visible;
    }
    to {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
  }

@keyframes slideOutRight{
    0%{
        transform: translate3d(0, 0, 0);
    }
    
    100%{
        transform: translate3d(130%, 0, 0);
        visibility: visible; 
    }
}

.slideInLeft {
    -webkit-animation-name: slideInLeft;
    animation-name: slideInLeft;
}

.slideOutRight {
    -webkit-animation-name: slideOutRight;
    animation-name: slideOutRight;
  }

.slideInRight {
    -webkit-animation-name: slideInRight;
    animation-name: slideInRight;
  }

  .slideOutLeft {
    -webkit-animation-name: slideOutLeft;
    animation-name: slideOutLeft;
  }
.floating-animated {
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  .floating{
    display: none;
    z-index: 99;
    position: relative;
  }

.floating-remind{
    width: 460px;
    box-shadow: 0 6px 30px 0 rgb(0 0 0 / 20%);
    border-radius: 8px;
    margin: 0 auto;
    padding: 20px;
    position: fixed;
    top: auto;
    bottom: 20px;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    color: #fff;
}

.floating-bag{
    border-radius: 8px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: -1;
    background: var(--pcBackgroundColor,#000);
}


.floating-link{
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
    color: var(--TitleColor, #000);
    text-decoration: none;
}

.floating-right{
    right: 20px;
    left: auto;
}

.floating-left{
    right: auto;
    left: 20px;
}

.m-floating-image{
    display: none !important;
    color: var(--MIconColor, #000);
}

.floating-close{
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-close svg{
    width: 18px;
    height: 18px;
}

.floating-cantainer{
    display: flex;
    align-items: center;
    width: 100%;
    color: #000;
    text-decoration: none;
}

.img-warpper{
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.floating-img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-content{
    flex: 1;
    color: var(--TitleColor, #000);
}

.floating-title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 定义显示的行数 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-time{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1; /* 定义显示的行数 */
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 640px) {
    /* .floating-animated {
      animation-duration: 0.5s;
      animation-fill-mode: both;
    } */
    .slideInRight,
    .slideInLeft {
      -webkit-animation-name: slideInUp;
      animation-name: slideInUp;
    }
    .slideOutLeft,
    .slideOutRight {
      -webkit-animation-name: slideOutDown;
      animation-name: slideOutDown;
    }

    .floating-bag{
        background: var(--mBackgroundColor, #000);
    }

      .floating-right{
        left: 0;
    }
    
    .floating-left{
        left: 0;
    }
    .floating-remind{
        width: 100%;
        padding: 15px 10px;
        bottom: 0;
    }
    .floating-img{
        display: none;
    }

    .m-floating-image{
        display: flex !important;
        align-items: center;
    }

    .img-warpper {
        width: auto;
        height: auto;
        color: #fff;
      }

      .img-warpper svg{
        width: 35px;
        height: 35px;
      }

      .floating-content {
        font-size: 14px;
        line-height: 1.5;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

    .floating-content .floating-title, .floating-content .floating-time {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        -webkit-line-clamp: 1;
    }
  }

  @keyframes slideInUp {
    from {
      transform: translate3d(0, 140%, 0);
      visibility: visible;
    }
    to {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
  }
  @keyframes slideOutDown {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      visibility: hidden;
      transform: translate3d(0, 130%, 0);
    }
  }