body {
  margin: 0;
}

#root {
  width: 100v2;
  width: 100%;
  max-height: 100vh;
  overflow-y: hidden;
  /* margin-top: 70px; */
}

#root * {
  box-sizing: border-box;
}


/* 容器 */
.preview-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  width: 100vw;
  width: 100%;
  height: calc(100vh - 100px);
  height: calc(100vh - 70px);
  overflow-x: hidden;
  overflow-y: hidden;
  background: #494949;
  /*
        background-image: url("/1210/bg-images/bg-image-1.png");
        */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top left;
}

.model-card {
  width: 100%;
  height: 100%;
  padding-left: 430px;
  transition: all 0s linear;
  box-sizing: border-box;
}

.config-wrap.is-collapse+.model-card {
  padding-left: 0;
}

#WebGL-output {
  /* overflow: hidden;
        flex: 1; */
  /*
        */
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

#WebGL-output canvas {
  /* width: 100% !important; */
}

.config-wrap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  /* width: 22.135%; */
  width: 430px;
  min-width: 430px;
  height: 100%;
  padding: 1rem;
  background-color: rgb(4, 8, 6);
  color: #fff;
  transition: all 0.3s linear;
  margin-left: 0;
}

.config-wrap.is-collapse {
  margin-left: -430px;
}

.config-expand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  z-index: 2;
  position: absolute;
  bottom: 0px;
  left: 0;
  right: -48px;
  height: 48px;

  cursor: pointer;
}

.config-expand-logo-box {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
  padding: 10px;
  font-size: 16px;
}

.config-logo {
  width: 162px;
  height: 30px;
}

.config-expand-arrow-box {
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
}

.config-arrow {
  width: 24px;
  height: 24px;
  transition: 0.3s linear;
}

.is-collapse .config-arrow {
  transform: rotate(180deg);
}

.config-inner {
  height: calc(100% - 50px);
  overflow-y: auto;
  padding-right: 10px;
}

.config-cards {
  /* min-height: 100vh; */
}

.config-card {
  margin-bottom: 12px;
}

.card-top {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 4px;
  background-color: rgb(4, 8, 6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-name {
  font-size: 16px;
  color: #fff;
}

.card-arrow {
  width: 16px;
  height: 16px;
  background-image: url("https://omo-oss-image.thefastimg.com/portal-saas/pg2025082911254961588/cms/image/3337d631-819c-4ff3-9f1a-b06be2a31533.png?d=1765785069365");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.card-arrow.rotated {
  transform: rotate(180deg);
}

.card-ctx {
  padding: 20px 10px 10px;
  overflow-x: hidden;
}

.slide-enter-active,
.slide-leave-active {
  transition: all 0.3s ease;
  max-height: 500px;
  opacity: 1;
}

.slide-enter,
.slide-leave-to {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.params-group {}

.params-group-name {
  margin-bottom: 14px;
  font-weight: 300;
  color: rgb(255, 255, 255);
  opacity: 0.65;
  font-size: 14px;
}

.color-cards {
  display: flex;
  flex-wrap: wrap;
}

.color-card {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
  margin-right: 8px;
  width: calc((100% - 24px) / 4);
  height: 90px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-card:nth-child(4n) {
  margin-right: 0;
}

.color-card:hover {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05) !important;
}

.color-card.is-select {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05) !important;
}

.color-box {
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(128, 128, 128);
}

.color_Default {
  position: relative;
  background: transparent !important;
  border: 1px solid #fff;
}

.color_Default::before {
  content: "";
  width: 2px;
  height: 200%;
  position: absolute;
  right: 22px;
  z-index: 2;
  top: calc(50% + 0.5px);
  transform: translateY(-50%) rotate(45deg);
  background-color: #f00;
}

.color-box.is-double {
  border: 1px solid #fff;
}

.color-double {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.color-name {
  width: 100%;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #fff;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.pantong-picker {}

.pantong-area {
  width: 100%;
  height: 108px;
  background-image: linear-gradient(0deg, rgb(0, 0, 0), transparent),
    linear-gradient(90deg, rgb(255, 255, 255), rgb(255, 0, 0));
}

.pantong-slide {
  margin-top: 10px;
  width: 100%;
  height: 16px;
  background: linear-gradient(to right,
      rgb(255, 0, 0) 0%,
      rgb(255, 255, 0) 17%,
      rgb(0, 255, 0) 33%,
      rgb(0, 255, 255) 50%,
      rgb(0, 0, 255) 67%,
      rgb(255, 0, 255) 83%,
      rgb(255, 0, 0) 100%);
}

.pantong-color-info {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.pantong-color-block {
  width: 76px;
  height: 27px;
  border-radius: 4px;
  background-color: rgb(141, 204, 27);
}

.pantong-color-name {
  margin-left: 10px;
  font-size: 14px;
  color: #fff;
}

.color-input {
  display: none;
}

.action-cards {
  margin-bottom: 20px;
}

.action-cards button {
  padding: 6px 10px;
}

.action-card {
  display: flex;
}

.action-name {
  flex: 0 0 80px;
  text-align: center;
  line-height: 40px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-share {
  position: absolute;
  z-index: 1;
  top: 40px;
  right: 20px;

  width: 112px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: transparent;
  color: #f2f4fa;
  border: 2px solid #f2f4fa;
  font-size: 16px;
  transition: 0.3s linear;
  cursor: pointer;
  border-radius: 4px;
}

.share-icon {
  margin-right: 4px;
  width: 24px;
  height: 24px;
}

.btn-share:hover {
  background-color: rgba(159, 155, 155, 0.29) !important;
}