// ========== Mixin 配置 ==========
@mixin flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

@mixin flex-row-between {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

@mixin flex-column-between {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

@mixin box-sizing-border-box {
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

// ========== 样式定义 ==========
.device-container {
  width: 100%;
  height: 100%;
  border: 1px solid #000000;

  .device-update {
    width: 100%;
    height: 10%;
   
    @include flex-row-between;
    
    .device-update-title {
      width: 70%;
      height: 100%;
      user-select: none;
      
      @include flex-center;
    }

    .device-update-btn {
      width: 30%;
      height: 100%;
      @include flex-center;

      .UpdateBtn{
        transform: scale(0.6);
      }
    }

    background-color: #efe8e88d;
  }

  .device-list {
    width: 100%;
    height: 80%;

    // border: 1px solid #000000;
  }

  .device-add {
    width: 100%;
    height: 10%;

    @include flex-row-between;
    @include box-sizing-border-box;

    .ip-input {
      width: 90%;
      height: 50%;
      @include flex-center;
      input {
        width: 90%;
        height: 80%;
        border: 1px solid #000000;
        outline: none;
        text-align: center;
        
        &::placeholder {
          text-align: center;
        }
        
        &:focus {
          // outline: 2px solid #0769fb;
          outline-offset: 0;
          // border-color: #0769fb;
        }
      }
    }
    .add-btn {
      width: 10%;
      height: 100%;
      // border: 1px solid rgb(13, 255, 0);
      @include flex-center;
      
      svg {
        width: 80%;
        height: 80%;
      }
    }
  }
}

