.page-comment-page {
  background: #f2f3f7;
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: 130rpx;
  padding-bottom: calc(130rpx + env(safe-area-inset-bottom));
  /* 头部 */
  .det-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30rpx;
    background: #fefefe;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    .item {
      padding: 0 30rpx;
      position: relative;
      &::after {
        position: absolute;
        bottom: -10rpx;
        left: 28%;
        right: 28%;
        display: block;
        width: auto;
        height: 4rpx;
        border-radius: 4rpx;
        content: " ";
        font-size: 0;
        background: #fff;
      }
      &.active {
        font-weight: 600;
        &::after {
          background: linear-gradient(to right, #fc1b35, #fff);
        }
      }
    }
  }
  /* 大图 */
  .pic-box {
    width: 750rpx;
    height: 750rpx;
    font-size: 0;
    background: #fff;
  }
  .video-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 750rpx;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 10;
  }

  video {
    display: block;
    width: 100%;
  }

  .play-btn {
    position: absolute;
    left: 50%;
    bottom: 12%;
    padding: 2rpx;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50rpx;
    color: #000;
    font-size: 24rpx;
    text-align: center;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
  }

  .play-icon {
    width: 50rpx;
    height: 50rpx;
  }

  .play-text {
    padding-right: 10rpx;
    margin: 0 10rpx;
  }

  .video-stop {
    padding: 2rpx 8rpx;
  }

  .comment-box {
    padding: 30rpx;
    background: #fff;
    margin-top: 30rpx;
    border-radius: 10rpx;
    .c-tit {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .text {
        display: flex;
        align-items: baseline;
        font-weight: 600;
        .small {
          margin-left: 10rpx;
          font-size: 20rpx;
        }
      }
      .more {
        font-size: 20rpx;
        color: #999;
      }
    }
    .c-tags {
      white-space: nowrap;
      .item {
        display: inline-block;
        padding: 6rpx 16rpx;
        border-radius: 40rpx;
        font-size: 20rpx;
        background: #ffebed;
        margin: 20rpx 0 0 20rpx;
        &:first-child {
          margin-left: 0;
        }
      }
      &:deep(.active) {
        color: #fc1b35;
      }
    }
    .c-con{
      .item {
        padding: 30rpx 0;
        box-shadow: 0 6rpx 6rpx rgba(0, 0, 0, 0.01);
        &:last-child {
          box-shadow: none;
        }
        .user-box {
          display: flex;
          align-items: center;
          justify-content: space-between;
          .info {
            display: flex;
            align-items: center;
            margin-right: 30rpx;
            .img {
              width: 50rpx;
              height: 50rpx;
            }
            .text {
              margin-left: 10rpx;
              .name {
                font-weight: 600;
              }
              .sku-name {
                color: #999999;
                margin-top: 10rpx;
              }
            }
          }
          .time {
            color: #999;
            font-size: 20rpx;
          }
          .sku {
            padding-left: 20rpx;
            margin-left: 20rpx;
            position: relative;
            color: #999;
            font-size: 20rpx;
          }
        }
        .stars {
          display: flex;
          align-items: center;
          margin-right: 60rpx;
          padding: 20rpx 0;
          .star {
            width: 20rpx;
            height: 20rpx;
            font-size: 0;
            margin-right: 6rpx;
            &:last-child {
              margin-right: 0;
            }
          }
        }
        .star-box{
          .sku::before {
            position: absolute;
            left: 0;
            top: 20%;
            bottom: 20%;
            display: block;
            width: 2rpx;
            height: auto;
            content: " ";
            font-size: 0;
            background: #eee;
          }
        }
        .comment-text {
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
          text-overflow: ellipsis;
          word-break: break-word;
        }
        .comment-detail {
          word-break: break-word;
        }
        .reply {
          margin-top: 16rpx;
          word-break: break-word;
          padding: 18rpx;
          background: #f5f5f5;
          border-radius: 8rpx;
          font-size: 24rpx;
          .title {
            font-weight: bold;
            color: #5b5b5b;
            line-height: 28rpx;
          }
          .reply-time {
            font-weight: 400;
            margin-left: 12rpx;
          }
          .reply-content {
            margin-top: 16rpx;
          }
        }
        .comment-img {
          margin-top: 20rpx;
          padding: 0 10rpx;
          .img-box {
            white-space: nowrap;
            .img {
              display: inline-block;
              width: 80px;
              height: 80px;
              font-size: 0;
              margin-left: 5px;
              &:first-child {
                margin-left: 0;
              }
            }
          }
        }
      }

    }
    .c-btn {
      display: flex;
      justify-content: center;
      .view-all {
        padding: 12rpx 40rpx 12rpx 26rpx;
        border: 2rpx solid #ddd;
        border-radius: 60rpx;
        &.text-arrow::after {
          right: 26rpx;
        }
      }
    }
  }
  /* 评论弹窗 */
  .comment-popup {
    position: fixed;
    top: 100%;
    bottom: calc(100rpx + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    max-width: 750rpx;
    margin: auto;
    background: #f2f3f7;
    z-index: 190;
    &.show {
      top: 0;
      .comment-con {
        transform: translateX(0);
      }
    }
    .comment-con {
      transform: translateX(100%);
      transition: all 0.3s;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      height: 100%;
      /* overflow-y: scroll; */
      -webkit-overflow-scrolling: touch;
      &::after {
        min-height: calc(100% + 2rpx);
      }
      &.comment-box {
        margin-top: 0;
        padding: 0;
        background: #f2f3f7;
        .c-tit {
          margin-top: 88rpx;
          padding: 30rpx 30rpx 0rpx;
          background: #fff;

          /* #ifndef H5 */
          margin-top: 0;
          /* #endif */
        }
        .c-tags {
          padding: 0 30rpx 30rpx;
          box-sizing: border-box;
          background: #fff;
          border-radius: 0 0 10rpx 10rpx;
        }
        .c-con {
          padding: 0 20rpx;
          border-radius: 10rpx 10rpx 0 0;
          margin-top: 30rpx;
          background: #fff;
          height: 100%;
          box-sizing: border-box;
          .c-btn {
            padding: 40rpx 0;
          }
        }
      }
    }
    .top-bar {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      background: #fff;
      height: 88rpx;
      box-shadow: 0 6rpx 6rpx rgba(0, 0, 0, 0.01);
      z-index: 199;
      .arrow {
        position: absolute;
        top: 50%;
        left: 30rpx;
        width: 16rpx;
        height: 16rpx;
        border: 2rpx solid #333;
        border-width: 2rpx 0 0 2rpx;
        transform: rotate(-45deg);
      }
      .text {
        text-align: center;
        line-height: 88rpx;
        font-size: 32rpx;
        margin: 0 70rpx;
        font-weight: 600;
      }
    }
  }
}
