chat.sass 7.13 KB
/* packageEquity/pages/aiCheck/chat/chat.wxss */
page {
  background-color: #F7F8FA;
}

.font-b {
  color: #3989FE;
}

.bg-box {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 750rpx;
  height: 640rpx;
  background: linear-gradient(to bottom, #DEF6FC 0%, #E3EAFF 27%, #D6E6FF 71%, #F7F8FA 96%);
}

.chat-bar .navigation-bar {
  position: relative;
  box-shadow: none;

  .end-btn {
    position: absolute;
    left: 32rpx;
    bottom: 12rpx;
    width: 164rpx;
    height: 64rpx;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333333;
    font-weight: 500;
    font-size: 28rpx;

    .icon {
      width: 32rpx;
      height: 32rpx;
      margin-right: 15rpx;
    }
  }
}

.chat-section {
  margin-top: 28rpx;

  .chat-list {
    height: calc(100vh - 340rpx - env(safe-area-inset-bottom));
    overflow: auto;

    // padding: 0rpx 32rpx;
    .chat-item {
      margin-bottom: 30rpx;
      padding: 0rpx 32rpx;

      .chat-left {
        display: flex;

        .avatar-icon {
          width: 80rpx;
          height: 80rpx;
          margin-right: 16rpx;
          border-radius: 50%;
        }

        .content-box {
          // margin-top: 12rpx;
          background: #FFFFFF;
          font-size: 30rpx;
          color: #333333;
          line-height: 44rpx;
          // border-radius: 16rpx;
          border-radius: 37rpx 37rpx 37rpx 0;
          max-width: 560rpx;
          display: inline-block;
          box-sizing: border-box;
          padding: 16rpx 24rpx;
        }

        .operation {
          margin-top: 12rpx;
          font-weight: 500;
          font-size: 28rpx;
          color: #3989FE;
          background: #FFFFFF;
          padding: 20rpx 24rpx;
          max-width: 560rpx;
          box-sizing: border-box;
          border-radius: 16rpx;

          .operation-top {
            width: 180rpx;
            height: 56rpx;
            background: #EFF5FF;
            border-radius: 28rpx;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          .suggest-icon {
            width: 32rpx;
            height: 32rpx;
            margin-right: 12rpx;
          }

          .content {
            margin-top: 12rpx;
            font-size: 30rpx;
            color: #333333;
            line-height: 44rpx;
          }
        }
      }

      .chat-right {
        display: flex;
        justify-content: flex-end;

        .content-box {
          width: 606rpx;
          background: #F0F6FF;
          font-size: 30rpx;
          color: #000000;
          line-height: 44rpx;
          // border-radius: 16rpx;
          max-width: 560rpx;
          box-sizing: border-box;
          padding: 16rpx 24rpx;
          margin-top: 12rpx;

          .operation-box {
            margin-top: 16rpx;
            display: flex;
            justify-content: space-between;

            .operation {
              display: flex;
              align-items: center;
              font-weight: 500;
              font-size: 28rpx;
              color: #3989FE;

              .suggest-icon {
                width: 32rpx;
                height: 32rpx;
                margin-right: 12rpx;
              }
            }
          }

          .chat-item-right-text {
            background-color: #FFFFFF;
            border-radius: 16rpx;
            padding: 24rpx 28rpx;
            margin-top: 24rpx;

            .title {
              display: flex;
              align-items: center;
              font-weight: 500;
              font-size: 28rpx;
              color: #333333;

              .suggest-icon {
                width: 32rpx;
                height: 32rpx;
                margin-right: 12rpx;
              }
            }
          }

          .text {
            margin-top: 12rpx;
            font-weight: 400;
            font-size: 26rpx;
            color: #333333;
            letter-spacing: 0;
            line-height: 44rpx;
          }

          .line {
            width: 100%;
            height: 2rpx;
            background-color: #F0F6FF;
            margin: 28rpx 0;
          }

        }
      }
    }
  }

  .setting-btn {
    display: inline-block;
    width: 74rpx;
    height: 74rpx;
    background-color: #fff;
    border-radius: 50%;
    padding: 21rpx;
    box-sizing: border-box;

    .setting-icon {
      width: 32rpx;
      height: 32rpx;
    }
  }

  .control-box {
    position: fixed;
    display: flex;
    bottom: 0;
    background-color: #fff;
    width: 100%;
    // height: 128rpx;
    padding: 24rpx 32rpx 0;
    box-sizing: border-box;
    padding-bottom: calc(24rpx + constant(safe-area-inset-bottom));
    padding-bottom: calc(24rpx + env(safe-area-inset-bottom));

    .inspiration-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 96rpx;
      height: 80rpx;
      background: #F0F6FF;
      border-radius: 486rpx;
      margin-right: 16rpx;

      .icon {
        width: 32rpx;
        height: 32rpx;
      }

      &.active {
        background-image: linear-gradient(90deg, #4D53FF 0%, #389AFF 100%);
      }
    }

    .speak-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      background-image: linear-gradient(95deg, #E1F7FC 0%, #E8F0FF 27%, #E8F1FF 65%, #F0EBFF 100%);
      border-radius: 486rpx;
      height: 80rpx;
      // line-height: 80rpx;
      color: #3275FA;
      font-size: 28rpx;
      font-weight: 500;

      .icon {
        width: 32rpx;
        height: 32rpx;
        margin-right: 8rpx;
      }
    }
  }
}

.wrapper-pop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
}

.icon-tips {
  width: 160rpx;
  height: 160rpx;
  position: absolute;
  top: -26rpx;
  left: 50%;
  transform: translateX(-50%);
}

.wrapper-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 590rpx;
  height: 432rpx;
  background: #FFFFFF;
  box-shadow: 0 -8rpx 12rpx 0 rgba(0, 0, 0, 0.05);
  border-radius: 32rpx;
  text-align: center;

  .title {
    font-weight: 500;
    font-size: 32rpx;
    color: #292D33;
    margin-top: 112rpx;
  }

  .content {
    font-size: 28rpx;
    color: #5A5E66;
    margin-top: 20rpx;
    padding: 0 70rpx;
  }

  .footer {
    display: flex;
    margin: 48rpx auto;
    justify-content: center;
  }

  .btn {
    width: 244rpx;
    height: 80rpx;
    background-image: linear-gradient(90deg, #4D53FF 0%, #389AFF 100%);
    border-radius: 486rpx;
    color: #fff;
    font-weight: 500;
    font-size: 28rpx;
    line-height: 80rpx;
    margin-right: 20rpx;
    &.cancel {
      background: #F2F3F5;
      color: #292D33;
    }
    &.sure {
      background-image: linear-gradient(90deg, #4D53FF 0%, #389AFF 100%);
    }
  }
}