.iot-main {
  padding: 20rpx 30rpx;
  background: #f8f8f8;
  box-sizing: border-box;
  min-height: calc(100vh - 180rpx);
  .banner-box {
    position: relative;
    display: block;
    width: 690rpx;
    height: 790rpx;
    background-color: #fff;
    border-radius: 30rpx;
    .music-btn {
      position: absolute;
      top: 17rpx;
      right: 17rpx;
      width: 54rpx;
      height: 54rpx;
      background: #f8f8f8;
      border-radius: 50%;
      z-index: 10;
      display: flex;
      justify-content: center;
      align-items: center;
      .music-btn_icon {
        width: 54rpx;
        height: 54rpx;
      }
    }
    .video-or-image {
      display: block;
      width: 690rpx;
      height: 640rpx;
      border-radius: 30rpx;
    }
    .iot-device {
      width: 690rpx;
      height: 150rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      .device-time {
        font-size: 26rpx;
        color: #000;
        font-weight: 400;
        .time {
          font-size: 30rpx;
          font-weight: 800;
        }
      }
      .line {
        width: 1rpx;
        height: 50rpx;
        background: #dddddd;
        margin-left: 69rpx;
        margin-right: 60rpx;
      }
      .electricity-box {
        display: flex;
        flex-direction: column;
        .item {
          display: flex;
          align-items: center;
          justify-content: left;
          height: 50rpx;
          .label {
            width: 154rpx;
            font-size: 26rpx;
            color: #000;
            margin-right: 14rpx;
          }
        }
      }
    }
    .msg-tips {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      max-width: 635rpx;
      margin: auto;
      padding: 15rpx 34rpx;
      background-color: rgba(0, 0, 0, 0.5);
      box-sizing: border-box;
      border-radius: 30rpx;
      .msg-tips-img {
        width: 30rpx;
        height: 30rpx;
        margin-right: 17rpx;
      }
      .msg-tips-content {
        flex: 1;
        max-width: 530rpx;
        font-size: 28rpx;
        color: #fff;
        word-break: break-word;
      }
    }
  }
  .mode-box {
    // background-color: #fff;
  }
}

.iot-btn-start {
  width: 690rpx;
  height: 90rpx;
  line-height: 90rpx;
  text-align: center;
  color: #fff;
  font-size: 32rpx;
  background-color: #ccc;
  border-radius: 45rpx;
  &.is-connect {
    background-color: #000;
  }
}

.footer {
  position: fixed;
  bottom: 0;
  z-index: 99;
  display: flex;
  align-items: baseline;
  width: 100%;
  height: 153rpx;
  background: #ffffff;
  box-shadow: 0rpx -3rpx 7rpx 1rpx rgba(173, 191, 207, 0.21);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
  .btn {
    width: 690rpx;
    height: 90rpx;
    background: #000;
    border-radius: 45rpx;
    color: #fff;
    line-height: 90rpx;
    text-align: center;
    margin: 21rpx 49rpx 42rpx 30rpx;
    font-size: 32rpx;
  }

  .text {
    display: flex;
    align-items: center;
    font-size: 32rpx;
    font-weight: bold;
    color: #000;
  }

  .btn-disable {
    background-color: #ccc !important; /* 设置按钮背景颜色为灰色 */
    color: #fff !important; /* 设置按钮文字颜色为白色 */
    border-color: #ccc !important; /* 设置按钮边框颜色为灰色 */
  }

  .switch-btn-box {
    width: 100vw;
    display: flex;
    align-items: center;
    margin-top: 34rpx;
    .btn-item {
      height: 70rpx;
      display: flex;
      flex: 1;
      align-items: center;
      justify-content: center;
      .btn-icon {
        width: 36rpx;
        height: 36rpx;
        margin-right: 18rpx;
      }
      .btn-text {
        font-size: 32rpx;
        font-family: PingFang SC;
        font-weight: bold;
        color: #000000;
      }
    }
    .border-right {
      border-right: 1px solid #ddd;
    }
  }
}

.battery_icon {
  width: 8rpx;
  height: 20rpx;
  border-radius: 5rpx;
  & + .battery_icon {
    margin-left: 8rpx;
  }
}

.v1 {
  background: linear-gradient(0deg, #efdcc2 0%, #fff2df 100%);
}

.v2 {
  background: #f8f8f8;
}

.v3 {
  background: linear-gradient(0deg, #ff4646, #ff6b6b, #f86f6f, #ff9494);
}
