body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  user-select: none;
}

.controls {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #eaeaea;
}
.control-item {
  margin: 0 20px 0 20px;
  text-align: center;
}
.control-items {
  display: flex;
  align-items: center;
}
#viewerContainer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
model-viewer {
  width: 100%;
  height: 100%;
}
#controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-width: unset;
  transform: unset;
  pointer-events: auto;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease;
}

#controls label {
  font-size: 16px;
  color: #666;
  font-weight: 550;
  font-family: Arial, Helvetica, sans-serif;
}

#controls select {
  margin: 10px 0;
}

.dot {
  display: none;
}
.dim {
  background: #fff;
  border-radius: 4px;
  border: none;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.8);
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: em;
  font-weight: 700;
  max-width: 128px;
  overflow-wrap: break-word;
  padding: 0.5em 1em;
  position: absolute;
  width: max-content;
  height: max-content;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  --min-hotspot-opacity: 0;
}
.Logo {
  margin: 0;
  padding: 8px 0;
}
.Top {
  width: 180px;
  height: auto;
}
select {
  width: 180px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f8f8f8;
  font-size: 16px;
  appearance: none;
}
select:focus {
  outline: none;
  border-color: #16a5e6;
}
.dimensionLineContainer {
  pointer-events: none;
  display: block;
}
.dimensionLine {
  stroke: #16a5e6;
  stroke-width: 2;
  stroke-dasharray: 2;
}
.hide {
  display: none;
}

.words {
  margin: 0 0 8px;
  font-size: 16px;
  color: #666;
  font-weight: 550;
  font-family: Arial, Helvetica, sans-serif;
}

.ar-button {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 16px;
}

/*手機板RWD*/

@media only screen and (max-width: 800px) {
  .controls {
    padding: 10px 50px 10px 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .control-items {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .control-item {
    width: 100%;
  }

  #controls select {
    margin: 5px 0;
  }

  select {
    width: 100%;
  }

  .Logo {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .Top {
    max-width: 140px;
    width: 100%;
    height: auto;
  }

  #controls {
    padding: 12px;
    opacity: 1;
  }

  #controls.hidden {
    opacity: 0;
    pointer-events: none;
  }

  #controls label {
    font-size: 15px;
  }

  .words {
    font-size: 15px;
    margin: 0 0 5px;
  }

  label {
    font-size: 15px;
  }
}
