.flutter-container {
  width: 100%;
  height: 200px;
  position: fixed;
  top: 0;
  left: 0;

  .flutter-banner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(
      to bottom,
      rgb(0 0 0 / 51%),
      rgb(0 0 0 / 24%),
      rgb(47 47 47 / 3%)
    );
  }

  .user-region {
    // backdrop-filter: saturate(180%) blur(20px);
    // background: rgb(81 81 81 / 80%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.51), rgba(0, 0, 0, 0.24), rgba(47, 47, 47, 0.03));
    color: #ffffff;
    // margin: 10px auto;
    // background: #fb475ec7;
    padding: 10px 20px;
    width: 80%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }
    .user-nickname {
      margin-left: 10px;
    }
    .gift-name {
      font-size: 20px;
      font-weight: bold;
      font-family: '微软雅黑';
      background: #d32d2d;
      color: #fff;
      text-align: center;
      margin: 0 6px;
      text-shadow: 0 0 20px #fefcc9, 10px -10px 30px #feec85,
        -20px -20px 40px #ffae34, 20px -40px 50px #ec760c, 0 -80px 70px #f38e1c; /*设置文字阴影*/
      animation: fontAmt 2s infinite; /*设置动画*/
      padding: 0px 10px;
    }
  }
  .gift-container {
    width: 100%;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    .gift-img {
      position: absolute;
      top: 0;
      width: 100px;
      height: 100px;
      animation: scaleUp 3s ease-in-out infinite; /* 使用scaleUp动画，持续3秒 */
    }
  }
}

@keyframes scaleUp {
  0% {
    right: 0;
  }
  // 30% {
  //   right: 150px;
  // }
  20% {
    right: 180px;
  }
  30% {
    right: 150px;
  }
  40% {
    right: 150px;
    transform: rotateZ(300deg);
  }
  50% {
    right: 150px;
    transform: rotateZ(0deg);
  }
  60% {
    right: 150px;
    transform: rotateZ(360deg);
  }
  70% {
    right: 150px;
    transform: rotateZ(0deg);
  }
  // 90% {
  //   right:150px
  // }
  100% {
    right: 390px;
  }
}

@keyframes fontAmt {
  /*创建动画*/
  0% {
    text-shadow: 0 0 20px #fefcc9, 10px -10px 30px #feec85,
      -20px -20px 40px #ffae34, 20px -40px 50px #ec760c, 0 -80px 70px #f38e1c;
  }
  30% {
    text-shadow: 0 0 20px #fefcc9, 10px -10px 30px #feec85,
      -20px -20px 40px #ffae34, 20px -40px 50px #ec760c, 10px -90px 80px #f38e1c;
  }
  60% {
    text-shadow: 0 0 20px #fefcc9, 10px -10px 30px #feec85,
      -20px -20px 40px #ffae34, 20px -40px 50px #ec760c, 0px -80px 100px #f38e1c;
  }
  100% {
    text-shadow: 0 0 20px #fefcc9, 10px -10px 30px #feec85,
      -20px -20px 40px #ffae34, 20px -40px 50px #ec760c, 0 -80px 70px #f38e1c;
  }
}
