@import "@styles/theme.scss";
@import "@styles/icon.scss";


.item {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;

  &__time {
    width: 100%;
    margin-top: 50px;
    text-align: center;

    &-text {
      display: inline-block;
      padding: 10px 20px;
      background: #b6b6b6;
      border-radius: 8px;
      color: white;
      font-size: 22px;
    }
  }
}


.item__wrap {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;

  .item__headimg {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
  }

  .item__content-txt {
    position: relative;
    max-width: 470px;
    border: solid 1px #d8d8d8;
    border-radius: 10px;
    background: white;
    padding: 20px;
    font-size: 30px;
    white-space: wrap;
    word-wrap: break-word;
    color: black;
  }

  .item__content-card {
    position: relative;
    max-width: 470px;
    border: solid 1px #d8d8d8;
    border-radius: 10px;
    background: white;
    padding: 20px;
    white-space: wrap;
    word-wrap: break-word;

    .card-msg {
      color: black;
      font-size: 30px;
    }

    .card-tip {
      font-size: 25px;
      color: $text-color-lighter;
      margin-top: 40px;
    }

    .card-btn {
      padding: 4.5px 20px;
      margin-top: 25px;
      display: flex;
      align-items: center;
      background: white;
      line-height: 1;

      text {
        font-size: 25px;
        color:  #02C577;
      }

      .iconfont {
        font-size: 25px;
        color: #02C577;
        margin-right: 30px;
      }

      .icon-shouji {
        font-size: 35rpx;
        margin-left: -3rpx;
        margin-right: 25px;
      }
    }
  }

  .item__content-img {
    width: 200px;
    height: auto;
    border-radius: 10px;
  }
}

.self {
  flex-direction: row-reverse;

  .item__headimg {
    margin-left: 30px;
  }

  .item__content-txt {
    background: #a2e65b;
    border: solid 1px #7cd13e;

    &::before {
      content: '';
      position: absolute;
      right: -40px;
      top: 25px;
      border: solid 20px transparent;
      border-top-width: 16px;
      border-bottom-width: 16px;
      border-left-color: #7cd13e;
    }

    &::after {
      content: '';
      position: absolute;
      right: -36px;
      top: 25px;
      border: solid 20px transparent;
      border-top-width: 16px;
      border-bottom-width: 16px;
      border-left-color: #a2e65b;
    }
  }
}

.other {
  flex-direction: flex-start;

  .item__headimg {
    margin-right: 30px;
  }

  .item__content-txt {

    &::before {
      content: '';
      position: absolute;
      left: -40px;
      top: 25px;
      border: solid 20px transparent;
      border-top-width: 16px;
      border-bottom-width: 16px;
      border-right-color: #d8d8d8;
    }

    &::after {
      content: '';
      position: absolute;
      left: -36px;
      top: 25px;
      border: solid 20px transparent;
      border-top-width: 16px;
      border-bottom-width: 16px;
      border-right-color: white;
    }
  }
}