body {
    margin: 0;
    font-family: sans-serif;
    background: #f0f0f0;
    text-align: center;
  }
  
  h1 {
    padding: 5px;
    font-size: x-small;
    color: rgb(136, 136, 136);
  }
  navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    z-index: 20;
  }
  
  .navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
  }
  
  .navbar ul li {
    margin: 0 15px;
  }
  
  .navbar ul li a {
    text-decoration: none;
    color: rgb(89, 89, 89);
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .navbar ul li a:hover {
    color: #f39c12;
  }
  #background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;         /* 最底层 */
    pointer-events: none; /* 防止它挡住鼠标事件 */
  }
  
  #workspace {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    border: 2px dashed #aaa;
  }
  
  
  
  #workspace {
    position: relative;
    width: 100%;
    height: 90vh;
    border: 2px dashed #aaa;
    background-color: #fff;
    overflow: hidden;
  }
  
  .item {
    position: absolute;
    width: 100px; /* 初始大小 */
    height: auto;
    cursor: move;
    user-select: none;
    top: 50px;
    left: 50px;
    transform-origin: center center; /* 缩放从中心开始 */
  }
  
  .item {
    position: absolute;
    will-change: transform;
    transition: transform 0.05s linear;
  }
  .item.selected {
    outline: 2px solid red;
  }
  #workspace {
    position: relative;
    overflow: hidden;
  }
  
  .item {
    position: absolute;
    width: 100px;
    height: auto;
    cursor: move;
    user-select: none;
    transform-origin: center center;
    will-change: transform;
  }
  
  .item.selected {
    outline: 2px solid red;
  }
  