page {
  background: #f7f7f7;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
}
.main {
  background-color: $color_bg_one;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  overflow: hidden;
}
.search {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  &__cancel {
    margin: 0 32px;
    color: #727272;
    font-size: 28px;
  }
}

.context {
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
  background-color: white;
}

.bottomBar {
  position: relative;
  z-index: 99;
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1), 0 -2px 4px -2px rgb(0 0 0 / 0.1);
  flex: none;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 24px;
  background-color: white;
  padding-bottom: calc(20px + constant(safe-area-inset-bottom));
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.bottomBar__button {
  width: 100%;
  font-size: 28px;
}

.colorCard {
  padding: 24px 0;
  border-bottom: 1px solid #f6f6f6;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  &__image {
    width: 144px;
    height: 144px;
    border-radius: 8px;
    margin-right: 24px;
    overflow: hidden;
    position: relative;
  }
  &__title {
    font-size: 28px;
    color: #383838;
  }
  &__code {
    font-size: 24px;
    color: #b3b3b3;
  }
  &__content {
    flex: 1 1 auto;
    display: flex;
    flex-flow: column nowrap;
  }
  .addButton {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}
.imageTag {
  width: 50%;
  background-color: #000;
  box-sizing: border-box;
  position: absolute;
  padding: 7px;
  bottom: 0px;
  right: 0px;
  opacity: 0.55;
  color: #ffffff;
  text-align: center;
  font-size: 22px;
  z-index: 1;
  border-top-left-radius: 16px;
  transform: perspective(1em) scale(1, 1.1) rotateX(5deg);
  /* 镜头距离元素表面的位置为8px，x轴为1.1倍y轴为1.3倍，绕x轴旋转-5度 */
  transform-origin: bottom right;
}

.collection_con {
  display: flex;
  flex-flow: column nowrap;
  max-height: 75vh;

  .header {
    padding: 32px 48px;
    .title {
      font-size: 32px;
      @include common_ellipsis;
      color: #3d3d3d;
      font-weight: 500;
    }
    .sub_title {
      font-size: 28px;
      color: #b6b6b6;
      margin-top: 8px;
    }
  }
  .productList {
    flex: 1 1 auto;
    overflow-y: scroll;
    margin-top: 30px;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    justify-content: space-between;
    .item {
      width: 100%;
      margin-bottom: 28px;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-sizing: border-box;
      .item_color {
        box-sizing: border-box;
        width: 136px;
        height: 136px;
        border-radius: 50%;
      }
      .item_name {
        text-align: center;
        margin-top: 10px;
        font-size: 24px;
        color: #666666;

        @include common_ellipsis;
      }
    }
  }
}
.popup_bottom {
  padding: 12px;
  padding-bottom: 0;
}
.productColorActive {
  border: 4px solid $color_main;
  position: relative;
  .activeIcon {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    border: 4px solid white;
    background-color: $color_main;
    position: absolute;
    top: -2px;
    right: -2px;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    border: 2px solid $color_main;
    border-radius: 50%;
    z-index: 99;
  }
}
