/* 侧边抽屉样式 */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 240px;
    height: 100%;
    background-color: var(--colorModalBg);
    z-index: 150;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.drawer.open {
    left: 0;
}


/* 首页菜单的样式 */
.drawer-menu{
    margin-top: 40px;
}
.drawer-logo{
    font-size: 30px;
    color: var(--colorPrimary);
    font-weight: bold;
    margin-bottom: 40px;
   
}
.drawer-logo-img{
    width: 100px;
}
.menu-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 17px;
}
.menu-right{
    display: flex;
    align-items: center;
}
.label-icon{
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
.next-icon{
    width: 7px;
    height: 13px;
}
.lang-box{
    display: flex;
    align-items: center;
    font-size: 17px;
    margin-bottom: 40px;

}
.flag-icon{
    margin-right: 6px;
    font-size: 24px;
}
.down-icon{
    width: 13px;
    height: 7px;
    margin-left: 10px;
}

/* 首页样式 */
.home-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    padding: 10px 15px;
    background: linear-gradient(180deg, var(--colorBackground), rgba(var(--homeHeader),0.8),rgba(var(--homeHeader),0.3));

}
.menu-box{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
    background-color: var(--colorBackground);
    display: flex;
    align-items: center;
    justify-content: center;
}
.location-button{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
    background-color: var(--colorBackground);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    bottom: 240px;
    z-index: 10;
}
.location-icon{
    
    width: 23px;
    height: 23px;
    color: var(--colorWhite);
}
.menu-icon{
    width: 18px;
    height: 13px;
    color: var(--colorWhite);
}
.search-icon{
    width: 20px;
    height: 20px;
}
.meun-tab{
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    /* margin-left: 15px;
    margin-right: 15px; */
    font-size: 14px;
    line-height: 27px;
    justify-content: space-around;
    color: rgba(var(--colorWhite), 0.5);
    flex-wrap: nowrap;
    overflow: hidden;
}
.meun-item{
    color: rgba(var(--colorWhite), 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meun-tab .select{
    /* color: var(--colorPrimary); */
    color: var(--colorWhite);
    border-bottom: 3px solid var(--colorWhite);
    font-size: 20px;
    font-weight: bold;
}
/* 选择语言的弹窗 */
/* 弹窗的样式结束 */
.lang-mask{
    background-color: rgba(0, 0, 0, 0.4);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        z-index: 200;
}
.lang-pop{
    background: var(--colorModalBg);
    border-radius: 15px;
    padding: 20px;
    position: absolute;
    width: 70%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.close-icon{
    position: absolute;
    right: 20px;
    top:20px;
    width: 13px;
    height: 13px;
  }
.lang-title{
    font-weight: bold;
    font-size: 25px;
    margin-bottom: 20px;
    text-align: center;
}
.lang-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.right-icon{
    width: 17px;
    height: 12px;
    display:none;
}
.select{
    color: var(--colorPrimary);
}


/* 地图跟地图出来的弹窗样式 */
#map {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.body {
    padding: 0;
}

.scan-btn {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 50px;
    z-index: 10;
    background-color: var(--colorPrimary);
    height: 55px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    color: var(--colorBlack);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-icon {
    width: 23px;
    height: 23px;
    margin-right: 10px;
}

.lightning-icon {
    color: var(--colorBlack);
    width: 12px;
    height: 17px;
}

.shop-box {
    background-color: var(--colorModalBg);
    border-radius: 15px 15px 0px 0px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    padding: 30px 20px 20px 20px;
    display: none;
}

.shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 10px;
}

.shop-left {
    flex: 1;
}

.shop-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.shop-tab {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.shop-rent {
    padding: 5px 10px;
    margin-right: 19px;
    background-color: rgba(var(--colorWhiteRgb), 0.08);
    border-radius: 5px;
}

.shop-return {
    padding: 5px 10px;
    background-color: rgba(var(--colorWhiteRgb), 0.08);
    border-radius: 5px;
}

.shop-address {
    font-size: 13px;
    color: rgba(var(--colorWhiteRgb), 0.6);
    margin-bottom: 6px;
}

.shop-img {
    width: 91px;
    height: 91px;
    margin-left: 15px;
    border-radius: 10px;
}

.route-btn {
    background-color: var(--colorPrimary);
    height: 55px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    color: var(--colorBlack);
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-icon {
    color: var(--colorBlack);
    width: 16px;
    height: 20px;
    margin-right: 10px;
}

.shop-close-icon {
    position: absolute;
    right: 20px;
    top: 15px;
    width: 13px;
    height: 13px;
}
/* 订单租赁中的样式 */
.order-box{
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    /* padding-left: 20px; */
    overflow: hidden;
    z-index: 10;
}

.order-slider{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding: 20px;
    /* gap: 20px; */
}

.order-slider::-webkit-scrollbar{
    display: none;
}

.order-slider .slide{
    /* flex: 0 0 calc(80% - 7.5px);  */
    /* 显示一个完整slide，右边露出第二个slide的1/5 */
    scroll-snap-align: start;
    background-color: var(--colorModalBg);
    border-radius: 10px;
    padding: 25px 25px 30px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-height: 200px;
    margin-right: 20px;
    width: 70%;
    margin-bottom: 20px;
}
.order-slider .slide:first-child{
    margin-left: 20px;
}
.order-slider .slide:last-child{
    /* margin-right: 60px;  */
    /* 确保最后一个slide完整显示 */
}
.order-slider .slide:only-of-type{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* 订单内容样式 */
.order-item{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.power-bank-icon{
    position: absolute;
    top: -40px;
    right: -40px;
    color: rgba(var(--colorWhiteRgb), 0.4);
    width: 80px;
    height: 100px;
}

.order-title{
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.order-tab{
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tab-item{
    width: 50%;
    font-size: 16px;
}

.item-name{
    font-size: 14px;
    color: rgba(var(--colorWhiteRgb), 0.6);
    margin-bottom: 5px;
}

.item-time, .item-price{
    font-size: 18px;
    font-weight: bold;
}

.order-time{
    font-size: 14px;
    line-height: 20px;
    color: rgba(var(--colorWhiteRgb), 0.6);
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.order-time-icon{
    width: 15px;
    height: 15px;
    margin-right: 5px;
    flex-shrink: 0;
    color: rgba(var(--colorWhiteRgb), 0.6);
}

.start-begin{
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.return-pop{
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid var(--colorPrimary);
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
    color: var(--colorPrimary);
    background-color: rgba(var(--colorPrimaryRgb), 0.05);
    margin-bottom: 15px;
}

.lost-btn{
    font-size: 14px;
    color: rgba(var(--colorWhiteRgb), 0.6);
    margin-bottom: 10px;
}

/* 分页器样式 */
.order-pagination{
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.order-pagination .dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--colorWhiteRgb), 0.3);
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-pagination .dot.active{
    background: var(--colorPrimary);
}
