@import '../style/var.less';

.zt-card-list {
  position: relative;
  &::after {
    border-color: @border-color;
    border-radius: @radius;
  }
  > .van-cell {
    padding: 6px;
    &::after {
      border-color: @border-color;
    }
    .van-cell__title {
      text-align: right;
      color: #969799;
      font-size: @g3-font-size;
    }
    .van-cell__value {
      flex: 2;
      text-align: left;
      color: #323233;
      padding-left: @padding-base;
      font-size: @g3-font-size;
    }
  }

  .zt-card-list__title {
    line-height: 22px;
    padding: 10px 16px;
    background-color: @bg-1;
    font-size: @g2-font-size;
    color: @weight-1;
    font-weight: 500;
    .van-cell__title {
      width: auto;
      flex: none;
      font-size: @g2-font-size;
      color: @weight-1;
      text-align: left;
    }
    .van-cell__value {
      padding-left: 5px;
      font-size: @g2-font-size;
    }
  }

  &.zt-card-list--card {
    border-radius: @radius;
    overflow: hidden;
  }
  &.zt-card-list--notice {
    .van-cell__title {
      text-align: left;
      font-size: @g2-font-size;
      > span {
        color: #323233;
      }
    }
  }
  .zt-card-list__sign {
    position: absolute;
    z-index: 10;
    top: 5px;
    right: 5px;
    padding: 14px;
    color: @white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50%;
    .zt-card-list__sign--text {
    }
    &.success {
      background: rgba(82, 196, 26, 0.8);
    }
    &.fail {
      background: rgba(255, 77, 79, 0.8);
    }
    &.normal {
      background: rgba(24, 144, 255, 0.8);
    }
  }

  &.zt-card-list--image {
    display: flex;
    padding: 10px;
    .image-card--left {
      // border-radius: 8px;
      .van-image {
        overflow: hidden;
        .van-image__img {
          height: auto;
        }
      }
    }
    .image-card--right {
      flex: 1;
      padding-left: 10px;
      position: relative;
      .card-ul {
        li {
          font-size: 13px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #333333;
          line-height: 18px;
          &.card-title {
            max-width: 140px;
            line-height: 22px;
            font-weight: 400;
            font-size: 13px;
            margin-bottom: 6px;
            b {
              font-size: 16px;
              font-weight: 600;
              padding-right: 10px;
            }
          }
          &.card-tags-list {
            padding-top: 4px;
            color: #888888;
          }
        }
      }
      .van-tag {
        background-color: #fff;
        border-radius: 4px 0;
        font-size: 12px;
        padding: 2px 8px;
        position: absolute;
        right: 0;
      }
    }
    &::after {
      content: ' ';
      border-color: #ebebeb;
      position: absolute;
      box-sizing: border-box;
      pointer-events: none;
      top: -50%;
      right: -50%;
      bottom: -50%;
      left: -50%;
      border: 0 solid var(--van-gray-3);
      border-bottom-width: 1px;
      transform: scale(0.5);
    }
  }
}
