/* flex */
.flx-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flx-justify-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flx-align-center {
  display: flex;
  align-items: center;
}

/* clearfix */
.clearfix::after {
  display: block;
  height: 0;
  overflow: hidden;
  clear: both;
  content: "";
}

/* 文字单行省略号 */
.sle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文字多行省略号 */
.mle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 文字多了自动換行 */
.break-word {
  word-break: break-all;
  word-wrap: break-word;
}

/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all 0.2s;
}
.fade-transform-enter-from {
  opacity: 0;
  transition: all 0.2s;
  transform: translateX(-30px);
}
.fade-transform-leave-to {
  opacity: 0;
  transition: all 0.2s;
  transform: translateX(30px);
}

/* breadcrumb-transform */
.breadcrumb-enter-active {
  transition: all 0.2s;
}
.breadcrumb-enter-from,
.breadcrumb-leave-active {
  opacity: 0;
  transform: translateX(10px);
}

/* scroll bar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--el-border-color-darker);
  border-radius: 20px;
}

/* nprogress */
#nprogress .bar {
  background: var(--el-color-primary) !important;
}
#nprogress .spinner-icon {
  border-top-color: var(--el-color-primary) !important;
  border-left-color: var(--el-color-primary) !important;
}
#nprogress .peg {
  box-shadow:
    0 0 10px var(--el-color-primary),
    0 0 5px var(--el-color-primary) !important;
}

/* 外边距、内边距全局样式 */
@for $i from 0 through 100 {
  .mt#{$i} {
    margin-top: #{$i}px !important;
  }
  .mr#{$i} {
    margin-right: #{$i}px !important;
  }
  .mb#{$i} {
    margin-bottom: #{$i}px !important;
  }
  .ml#{$i} {
    margin-left: #{$i}px !important;
  }
  .pt#{$i} {
    padding-top: #{$i}px !important;
  }
  .pr#{$i} {
    padding-right: #{$i}px !important;
  }
  .pb#{$i} {
    padding-bottom: #{$i}px !important;
  }
  .pl#{$i} {
    padding-left: #{$i}px !important;
  }

  .container-tag {
    display: flex;
    flex-flow:row wrap;
    align-items: flex-start;
    padding: 0 20px 20px 20px;
    text-align: left;
    gap: 20px;
    overflow-y: auto;
    max-height: 500px;
  }
  .item-tag {
    cursor: pointer;
    width: 18%;
    background-color: #F2F2F2;
    border-radius: 8px;
    color: #000000;
    font-size: 16px;
    text-align: center;
    padding: 10px 15px;
    flex: 0 1 auto;
  }

  .item-tag-active {
    cursor: pointer;
    width: 18%;
    background-color: var(--el-color-primary-light-9);
    border-radius: 8px;
    color: var(--el-color-primary);
    font-size: 16px;
    text-align: center;
    padding: 10px 15px;
    flex: 0 1 auto;
    position: relative;
  }

  .item-tag-active::after {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url("@/assets/images/selected.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: 0px;
    bottom: 0px;
    transform: translateY(-10000px);
    filter: drop-shadow(var(--el-color-primary) 0 10000px);
  }


  .container-box{
    padding: 18px 18px;
    margin-bottom: 15px;
  }

  .container-main{
    display: flex;
    gap: 10px;
  }

  .container-item{
    display: flex;
    cursor: pointer;
    width: 100%;
    color: #000000;
    font-size: 16px;
    padding: 15px;
    flex: 0 1 auto;
    align-items: center;
  }

  .container__label {
    color: var(--el-text-color-regular);
    font-size: var(--el-form-label-font-size);
    height: 32px;
    line-height: 32px;
    padding: 0 12px 0 0;
  }


  .container-device-main{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-content:flex-start;
    overflow-y: auto;
  }


  .container-device-item{
    cursor: pointer;
    width: 21%;
    border: 1px solid #BFBFBF;
    color: #000000;
    font-size: 16px;
    flex: 0 1 auto;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .device-img{
    width: 110px;
    height: 110px;
    background-color: #1a1a37;
    border-radius: 110px;
  }

  .container-text-box{
    display: flex;
    flex-direction: column;
    align-content: space-between;
  }

  .container-title{
    font-size: 18px;
    font-weight: 700;
    color: var(--el-header-text-color);
  }

  .container-name{
    font-size: 17px;
    color: #999999;
  }

  .disposition-title{
    font-size: 15px;
    color: var(--el-menu-active-color);
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .disposition-bottom{
    display: flex;
    align-items: flex-end;
    justify-content: right;
    flex-shrink: 0;
    flex-grow: 0;
  }

  .form-inline{
    display: flex;
    flex-direction: column
  }

  .selected-list-box{
    display: flex;
    flex-direction: column;
    width: 200px;
    flex-shrink: 0;
    height: 100%;
    padding-left: 20px;
    border-left: var(--el-border-color-light) solid 2px
  }

  .button-container {
    margin-top: 15px;
    position: relative;
    width: 100%;
    height: 80px;
  }

  .top-left {
    position: absolute;
    top: 0;
    left: 0;
  }

  .top-right {
    position: absolute;
    top: 0;
    right: 0;
  }

  .bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: 0px!important;
  }

  .bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .selected-list-c{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 400px;
    overflow-y: auto;
  }

  .selected-item-tag {
    border-radius: 8px;
    color: #000000;
    font-size: 16px;
    text-align: center;
    padding: 10px 15px;
    flex: 0 1 auto;
    cursor: move;
  }

  .selected-item-tag-active {
    cursor: move;
    background-color: var(--el-color-primary-light-9);
    border-radius: 8px;
    color: var(--el-color-primary);
    font-size: 16px;
    text-align: center;
    padding: 10px 15px;
    flex: 0 1 auto;
    position: relative;
  }

  .lan-state{
    background: #007AFF10;
    border-radius: 2px 2px 2px 2px;
    padding: 0px 12px;
    color: #007AFF;
  }

  .lv-state{
    background: #3BA27210;
    border-radius: 2px 2px 2px 2px;
    padding: 0px 12px;
    color: #3BA272;
  }

  .hong-state{
    background: #DB000010;
    border-radius: 2px 2px 2px 2px;
    padding: 0px 12px;
    color: #DB0000;
  }

  .cheng-state{
    background: #FC845210;
    border-radius: 2px 2px 2px 2px;
    padding: 0px 12px;
    color: #FC8452;
  }

  .hei-state{
   border: #333333 solid 1px;
    border-radius: 2px 2px 2px 2px;
    padding: 0px 10px;
    line-height: 28px;
    color: #333333;
    cursor:pointer;
  }

  .hei-state-primary{
    border: var(--el-color-primary) solid 1px;
    border-radius: 2px 2px 2px 2px;
    padding: 0px 10px;
    line-height: 28px;
    color: var(--el-color-primary);
    cursor:pointer;
  }

  .gis-c{
    display: flex;
    align-items: center;
    height: 100%;width: 100%;
    justify-content: right
  }

  .gis-icon{
    margin-left: 5px;
    transform: translateY(-1000px);
    filter: drop-shadow(var(--el-color-primary) 0 1000px);
    margin-bottom: 2px;
  }

  .gis-icon-type1{
    transform: translateY(-1000px);
    filter: drop-shadow(var(--el-menu-hover-text-color) 0 1000px);
    margin-top: 5px;
    height: 20px;
    width: 20px;
    margin-right: 5px;
    cursor: pointer;
  }

  .gis-icon-type2{
    transform: translateY(-1000px);
    filter: drop-shadow(var(--el-color-primary) 0 1000px);
    margin-top: 5px;
    height: 20px;
    width: 20px;
    margin-right: 5px;
    cursor: pointer;
  }

  .el-tabs .el-tabs__item.is-active {
    margin-left: 5px;
  }

  .gis-bottom-box{
    height:80px;
    display: flex;
    justify-content: center
  }

  .gis-bottom-item{
    margin-right: 30px;
    display: flex;
    justify-items: center;
    align-items: center;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none; /* 兼容Safari等WebKit内核浏览器 */
    -moz-user-select: none; /* 兼容Firefox等Gecko内核浏览器 */
    -ms-user-select: none; /* 兼容IE10+ */
  }

  .gis-bottom-text{
   color: #333333;
    font-size: 14px;
  }

  .gis-bottom-hei-state{
    border: var(--el-border-color-hover) solid 1px;
    border-radius: 2px 2px 2px 2px;
    padding: 0px 40px 0px 10px;
    width: 170px;
    line-height: 28px;
    color: var(--el-text-color-regular);
    background-color: var(--el-fill-color-blank);
  }

  .button-bg{
    width: 42px;
    height: 42px;
    background-image: url("@/assets/images/button-bg.svg");
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .button-bg-c{
    transform: translateY(-10000px);
    filter: drop-shadow(var(--el-color-primary) 0 10000px);
  }
}
