<template>
  <common-header />
  <div class="content">
    <div class="title">
      <div class="big">
        <div class="left">
          {{ detailData.zz_name }} <span>智慧教研-自主研学-</span
          ><span>{{ detailData.zz_name }}</span>
        </div>
        <div class="right" @click="goBack()">返回</div>
      </div>
    </div>
    <div class="header">
      <div>
        <p class="top-title">{{ detailData.zz_name }}</p>
        <el-popover placement="bottom" :width="410" trigger="hover">
          <template #reference>
            <div class="share">
              <!-- <i-fluent:share-28-regular class="mr-1.5," style="color: #00a3ff; position: absolute; bottom: 12px;  left: -25px" />分享 -->
              <img
                style="
                  display: inline-block !important;
                  width: 16px;
                  margin-right: 7px;
                "
                src="@/assets/kczy/shareIcon.png"
                alt=""
              />分享
            </div>
          </template>

          <div class="w-full">
            <div class="w-full text-center">呼唤小伙伴们前来围观吧</div>
            <div class="flex justify-around m-10" style="position: relative">
              <div class="weibo" @click="shareToSina(shareLink)">
                <img src="@/assets/img/wb.png" />
              </div>
              <div class="qq" @click="shareToQq(shareLink)">
                <img src="@/assets/img/QQ.png" />
              </div>
              <div class="qqkj" @click="shareToQqzone(shareLink)">
                <img src="@/assets/img/QQ1.png" />
              </div>
              <qrcode-vue :value="shareLink" :size="size" level="H" />
              <div style="position: absolute; bottom: -20px; right: 17px">
                微信扫码分享
              </div>
            </div>
            <el-divider></el-divider>
            <div class="text-hex-00a3ff mb-2">地址</div>
            <div class="flex">
              <div class="bg-hex-F7F7F7 p-2 flex-auto mr-4 truncate">
                {{ shareLink }}
              </div>
              <div
                class="text-sm bg-hex-0A8AFF text-white flex_left min-w-100px h-40px rounded cursor-pointer copy"
                @click="copyLink"
              >
                复制链接
              </div>
            </div>
          </div>
        </el-popover>
      </div>
    </div>

    <div class="main">
      <div class="display:flex;flex-direction:column;">
        <div class="Info">
          <div class="vedioMainContent_left_top">
            <div class="nicBaseInfo_avator">
              <el-avatar
                :src="userInfoData.user_avatar"
                v-if="userInfoData.user_avatar"
              />
              <el-avatar
                src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
                v-else
              />
            </div>
            <div class="nicBaseInfo_text">
              <div class="nicBaseInfo_text_top" style="height: 50%">
                <span class="fir">{{ detailData.zz_jsxx }}</span>
                <span class="middle"
                  ><img src="@/assets/kczy/fireIcon.png" alt=""
                /></span>
                <span class="sec" v-if="userInfoData.ext">{{
                  userInfoData.ext.ue_hot
                }}</span>
              </div>
              <div class="nicBaseInfo_text_bottom" style="height: 50%">
                <span class="markLableOne">金牌讲师</span>
                <span class="markLableTwo">YYDS</span>
              </div>
            </div>
            <div class="nicBaseInfo_action">
              <div class="coverC" @click="finger">
                <img
                  class="posiA posi1"
                  v-if="fingerSwitch == '0'"
                  src="@/assets/kczy/zanIcon.png"
                />
                <img
                  class="posiA posi1"
                  v-else
                  src="@/assets/kczy/zanIcon_full.png"
                />
                <span class="posiA posi2">{{ fingerNum }}</span>
              </div>
              <div class="coverC" @click="loveIcon">
                <img
                  class="posiA posi3"
                  v-if="loveSwitch == '0'"
                  src="@/assets/kczy/collectIcon.png"
                />
                <img
                  class="posiA posi3"
                  v-else
                  src="@/assets/kczy/collectIcon_full.png"
                />
                <span class="posiA posi4">{{ loveNum }}</span>
              </div>
            </div>
            <div class="nicBaseInfo_forceBtn">
              <div
                v-if="detailData.is_watch == 1"
                @click="delFollow(detailData.create_user_id)"
              >
                已关注
              </div>
              <div v-else @click="toFollow(detailData.create_user_id)">
                关注
              </div>
            </div>
          </div>
        </div>

        <div class="spbf video" id="player-con">
          <video class="" src=""></video>
          <!-- <div class="spbf-left">助教:沈老师</div> -->
          <div class="spbf-right">
            当前观看人数：{{ detailData.zz_views }}人
          </div>
        </div>
      </div>
      <div class="vedioMainContent_right">
        <div class="vedioMainContent_right_bottom">
          <div class="tabTitle">
            <ul>
              <li
                :class="{ activein: num == index }"
                v-for="(item, index) in sliderTab"
                :key="index"
                @click="handleSwitch(index)"
              >
                <p>{{ item }}</p>
                <span></span>
              </li>
            </ul>
          </div>
          <div class="comList" v-show="num == 0">
            <div>
              <el-rate v-model="pjInfo.ke_star"></el-rate>
            </div>
            <div>
              <button
                :disabled="disabled"
                @click="formSubmit(detailData.zz_id)"
                :class="disabled ? 'add-gray' : 'rateBtn1'"
              >
                评价
              </button>
            </div>
            <div class="allCommonList">
              <div
                class="singleList"
                v-for="(e, i) in evaluateListData"
                :key="i"
                v-show="detailData.zz_id == e.kk_id"
              >
                <p class="item1">
                  {{ e.ke_user_realname
                  }}<span class="itemSon1">{{ e.create_dateline }}</span>
                </p>
                <div class="starListS">
                  <img
                    src="@/assets/img/zhjyzxxx/star.png"
                    v-for="(item, index) in Number(e.ke_star)"
                    :key="index"
                    alt=""
                  />
                </div>
              </div>
            </div>
          </div>
          <div class="comList" v-show="num == 1">
            <div class="allCommonList allCommonListSec">
              <div
                class="singleList"
                v-for="(item, index) in fjData"
                :key="index"
              >
                <p class="item1">
                  {{ item.upload_user == false ? "未知" : item.upload_user }}
                  <span class="itemSon1">{{ item.upload_time }}</span>
                </p>
                <div class="fileAll">
                  <div class="fileAll_left">
                    <img
                      v-if="item.suffix == 'mp4' || item.suffix == 'mp3'"
                      style="width: 20px; height: 20px"
                      src="@/assets/kczy/mp4.png"
                    />
                    <img
                      v-else-if="item.suffix == 'doc' || item.suffix == 'docx'"
                      src="@/assets/kczy/word.png"
                    />
                    <img
                      v-else-if="item.suffix == 'pdf'"
                      src="@/assets/kczy/pdf.png"
                    />
                    <img
                      v-else-if="item.suffix == 'ppt' || item.suffix == 'pptx'"
                      src="@/assets/kczy/ppt.png"
                    />
                    <img
                      v-else-if="item.suffix == 'xls' || item.suffix == 'xlsx'"
                      src="@/assets/kczy/excel.png"
                    />
                  </div>
                  <div class="fileAll_middle">{{ item.file_name }}</div>
                  <div class="fileAll_right" @click="downloadFile(item)">
                    下载
                  </div>
                  <!-- <div class="fileAll_right" @click="preview(item)">预览</div> -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- <div class="footer">
      <div style="width: 1400px; height: 50px; position: relative; margin: 0 auto">
        <el-pagination background layout="total,prev, pager, next" :total="total" style="position: absolute; top: 0; right: 200px" @current-change="handleCurrentChange" :page-size="limit">
        </el-pagination>
      </div>
    </div> -->
  </div>
  <common-footer />
</template>

<script>
import {
  zxxx_detail,
  zxxx_evaluate_add,
  zxxx_evaluate_list,
  user_avatar,
  zxxx_like_add,
  zxxx_like_del,
  zxxx_fav_add,
  zxxx_fav_del,
  zxxx_attention_add,
  zxxx_attention_del,
  userInfoDetail,
} from "./api";
import QrcodeVue from "qrcode.vue";
import { ElMessage } from "element-plus";
import CommonHeader from "@/components/CommonHeader/index.vue";
import CommonFooter from "@/components/CommonFooter/index.vue";
import { user } from "@/store/user.js";
export default {
  name: "index",
  components: {
    CommonHeader,
    CommonFooter,
    QrcodeVue,
  },
  data() {
    return {
      sliderTab: ["评价", "资源"],
      num: 0,
      detailData: {},
      evaluateInfo: {},
      evaluateListData: [],
      pjInfo: {
        ke_star: "",
        ke_user_realname: "",
        kk_id: "",
        kf_id: "",
      },
      limit: 10,
      total: 0,
      cur_page: 1,
      ke_id: "",
      activeName: "first",
      https: window.GLOBAL_CONFIG.api,
      shareLink: window.location.href,
      zz_id: "",
      fingerNum: 0, //点赞数
      fingerSwitch: 0, //0：关 1：开
      loveNum: 0, //收藏
      loveSwitch: 0, //0：关 1：开
      userInfoData: {},
      disabled: false,
      fjData: [],
      suffix: "",
    };
  },
  methods: {
    goBack() {
      this.$router.go(-1);
    },
    /**资源-下载*/
    downloadFile(item) {
      let downFileUrl = this.https + item.file_url;
      window.open(downFileUrl, "_self");
    },
    handleSwitch(index) {
      this.num = index;
    },
    //关注or已关注
    toFollow(e) {
      console.log(e, 123);
      let data = {
        site: "tyyx",
        issubmit: "1",
        user_watch: {
          uw_user_id: e,
        },
      };
      zxxx_attention_add(data).then((res) => {
        if (res.code == "1") {
          ElMessage({
            message: "关注成功!",
            type: "success",
          });
          this.detailData.is_watch = 1;
        }
      });
    },
    delFollow(e) {
      let data = {
        site: "tyyx",
        uw_user_id: e,
      };
      zxxx_attention_del(data).then((res) => {
        if (res.code == "1") {
          ElMessage({
            message: "已取消关注!",
            type: "success",
          });
          this.detailData.is_watch = 0;
        }
      });
    },
    initUserInfoDetail() {
      let transObj = {
        token: user?.token,
        user_id: user.user_id,
      };
      userInfoDetail(transObj)
        .then((res) => {
          if (res.code == "1") {
            this.userInfoData = res.data;
          }
        })
        .catch((error) => {
          console.log(error);
        });
    },

    // shareLink = window.location.href;
    async copyLink() {
      await navigator.clipboard.writeText(window.location.href);
      ElMessage.success("已复制");
    },
    //分享
    shareToQq(url) {
      // 分享到腾讯QQ
      var shareqqstring =
        "https://connect.qq.com/widget/shareqq/index.html?url=" +
        encodeURIComponent(url);
      window.open(shareqqstring);
    },
    shareToQqzone(url) {
      // 分享到QQ空间
      var shareqqzonestring =
        "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" +
        encodeURIComponent(url);
      window.open(shareqqzonestring);
    },
    shareToSina(url) {
      // 分享到新浪微博
      var sharesinastring =
        "http://v.t.sina.com.cn/share/share.php?url=" +
        encodeURIComponent(url) +
        "&searchPic=true#_loginLayer_1639641926022";
      window.open(sharesinastring);
    },

    //详情数据
    getDetailData() {
      let data = {
        zz_id: this.zz_id,
      };
      zxxx_detail(data)
        .then((res) => {
          this.detailData = res.data.one_info;
          this.fingerNum = res.data.one_info.zz_like_num; //点赞数
          this.fingerSwitch = res.data.one_info.is_like; //0：关 1：开
          this.loveNum = res.data.one_info.zz_fav_num; //收藏
          this.loveSwitch = res.data.one_info.is_fav; //0：关 1：开
          this.fjData = JSON.parse(res.data.one_info.zz_fj_json);
          console.log(this.fjData, 123333);
          this.fjData.map((item) => {
            item.suffix = item.file_url.substr(
              item.file_url.lastIndexOf(".") + 1
            );
          });

          var player = new Aliplayer(
            {
              id: "player-con",
              source: window.GLOBAL_CONFIG.api + this.detailData.zz_video,
              width: "100%",
              height: "570px",
              autoplay: true,
              isLive: this.detailData.status == 1 ? true : false,
              rePlay: false,
              playsinline: true,
              preload: true,
              controlBarVisibility: "hover",
              useH5Prism: true,
            },
            function (player) {
              console.log("The player is created");
            }
          );
        })
        .catch((err) => {
          console.log(err);
        });
    },

    //评价
    evaluateData() {
      this.pjInfo = {
        ke_star: "",
        ke_user_realname: "",
        kk_id: "",
        kf_id: "",
      };
    },
    formSubmit(id) {
      let data = {
        ke_star: this.pjInfo.ke_star,
        ke_user_realname: user.user_realname,
        kk_id: id,
        kf_id: this.pjInfo.kf_id,
      };
      zxxx_evaluate_add(data).then((res) => {
        this.evaluateInfo = res.data.one_info;
        if (res.code == 1) {
          this.getEvaluateListData();
          this.getDetailData();
          this.pjInfo.ke_star = "";
          this.$forceUpdate(); //强制刷新
        }
      });
    },
    //评价列表
    getEvaluateListData() {
      let data = { kk_id: this.zz_id };
      zxxx_evaluate_list(data).then((res) => {
        this.evaluateListData = res.data.page_data;
        //  this.cur_page = Number(res.data.page_now);
        //   this.total = Number(res.data.total_rows);
        if (res.template.check_myexist == 1) {
          this.disabled = true;
        }
      });
    },

    //头像数据
    AvatarData() {
      let data = {};
      user_avatar(data).then((res) => {
        if (res.code == 1) {
          this.avatarList = res.data;
        }
      });
    },
    /**增加赞或取消*/
    finger() {
      if (this.fingerSwitch == "1") {
        //去掉赞
        let transObj = {
          zz_id: this.zz_id,
        };
        zxxx_like_del(transObj)
          .then((res) => {
            if (res.code == "1") {
              this.fingerNum--;
              this.fingerSwitch = 0;
              ElMessage({
                message: res.msg,
                type: "success",
              });
            } else {
              ElMessage({
                message: res.msg,
                type: "waring",
              });
            }
          })
          .catch((error) => {
            console.log(error);
          });
      } else {
        let transObj = {
          zz_id: this.zz_id,
        };
        zxxx_like_add(transObj)
          .then((res) => {
            if (res.code == "1") {
              ElMessage({
                message: res.msg,
                type: "success",
              });
              this.fingerNum++;
              this.fingerSwitch = 1;
            } else {
              ElMessage({
                message: res.msg,
                type: "waring",
              });
            }
          })
          .catch((error) => {
            console.log(error);
          });
      }
    },
    /**增加收藏或取消*/
    loveIcon() {
      if (this.loveSwitch == 1) {
        //去掉收藏
        let transObj = {
          zz_id: this.zz_id,
        };
        zxxx_fav_del(transObj)
          .then((res) => {
            if (res.code == "1") {
              ElMessage({
                message: res.msg,
                type: "success",
              });
              this.loveNum--;
              this.loveSwitch = 0;
            } else {
              ElMessage({
                message: res.msg,
                type: "waring",
              });
            }
          })
          .catch((error) => {
            console.log(error);
          });
      } else {
        let transObj = {
          zz_id: this.zz_id,
        };
        zxxx_fav_add(transObj)
          .then((res) => {
            if (res.code == "1") {
              ElMessage({
                message: res.msg,
                type: "success",
              });
              this.loveNum++;
              this.loveSwitch = 1;
            } else {
              ElMessage({
                message: res.msg,
                type: "waring",
              });
            }
          })
          .catch((error) => {
            console.log(error);
          });
      }
    },
  },
  mounted() {
    if (this.$route.params.id != "") {
      this.zz_id = this.$route.params.id;
      this.getDetailData();
      this.getEvaluateListData();
      this.initUserInfoDetail();
    }
  },
};
</script>
<style lang="scss">
.rateBtn1 {
  width: 111px;
  height: 32px;
  background: linear-gradient(90deg, #00a3ff 1%, #57c38f);
  border-radius: 38px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: 400;
  text-align: center;
  color: #ffffff;
  line-height: 32px;
  letter-spacing: 0.6px;
  margin-top: 15px;
  cursor: pointer;
}
.add-gray {
  width: 111px;
  height: 32px;
  background: #ccc;
  border-radius: 38px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: 400;
  text-align: center;
  color: #ffffff;
  line-height: 32px;
  letter-spacing: 0.6px;
  margin-top: 15px;
  cursor: pointer;
}
.activein {
  color: #222222 !important;

  span {
    position: absolute;
    left: 10%;
    top: 80%;
    transform: translate(-50%, -50%);
    z-index: 12;
    width: 25%;
    height: 6px;
    border-radius: 3px;
    background-color: #e2e0f6;
  }
}
.vedioMainContent_right {
  width: 28%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 22px;
  .vedioMainContent_right_top {
    width: 100%;
    height: 459px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 2px 10px 24px 0px rgba(161, 153, 168, 0.18);
    box-sizing: border-box;
    padding: 33px 18px;

    .titleChapter {
      width: 100%;
      height: 50px;
      position: relative;

      .titleBorder-title {
        font-size: 16px;
        font-weight: 500;
        text-align: left;
        color: #222222;
        position: absolute;
        left: 5px;
        top: 13%;
        z-index: 14;
      }

      .titleBorder-line {
        width: 72px;
        height: 6px;
        opacity: 0.2;
        background: #6c5dd3;
        border-radius: 3px;
        position: absolute;
        left: 0;
        top: 42%;
        z-index: 13;
      }
    }

    .detailChapter {
      overflow: auto;

      ul {
        li {
          width: 100%;
          height: 40px;
          line-height: 40px;
          background: #f3faff;
          border-radius: 16px 16px 0px 0px;
          margin-bottom: 20px;
          box-sizing: border-box;
          padding-left: 24px;
        }
      }
    }
  }

  .vedioMainContent_right_bottom {
    width: 100%;
    // min-height: 578px;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 2px 10px 24px 0px rgba(161, 153, 168, 0.18);
    box-sizing: border-box;
    padding: 18px;

    .tabTitle {
      ul {
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 0 5%;

        li {
          width: 100%;
          height: 32px;
          line-height: 32px;
          font-size: 16px;
          font-weight: 500;
          text-align: left;
          color: #a09dbb;
          cursor: pointer;
          position: relative;

          p {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0%;
            top: 0%;
            z-index: 13;
            //  text-align: center;
          }
        }
      }
    }

    .comList {
      box-sizing: border-box;
      padding: 25px 0 0 0;

      .rateBtn {
        margin-top: 20px;
        button {
          width: 111px;
          height: 32px;
          line-height: 32px;
          background: linear-gradient(90deg, #00a3ff 1%, #57c38f);
          border-radius: 38px;
          font-size: 14px;
          font-weight: 400;
          text-align: center;
          color: #ffffff;
          letter-spacing: 0.6px;
        }
      }

      .allCommonListSec {
        height: 495px !important;
      }
      ::-webkit-scrollbar {
        width: 0;
        height: 0;
        color: transparent;
      }
      .allCommonList {
        margin-top: 25px;
        height: 412px;
        overflow-y: scroll;

        .singleList {
          min-height: 70px;
          border-bottom: 1px dashed #6e58c5;
          box-sizing: border-box;
          padding-top: 10px;

          .item1 {
            height: 20px;
            line-height: 20px;
            font-size: 14px;
            font-weight: 600;
            text-align: left;
            color: #171721;

            .itemSon1 {
              font-size: 12px;
              font-weight: 400;
              text-align: left;
              color: #8083a3;
              margin-left: 15px;
            }
          }

          .starListS {
            margin: 10px 0;
            box-sizing: border-box;
            padding: 0 10%;

            img {
              display: inline;
              margin-left: 2%;
            }
          }

          .fileAll {
            display: flex;
            height: 25px;
            line-height: 25px;
            box-sizing: border-box;
            padding: 0 10% 0 4%;
            margin: 10px 0 15px 0;

            .fileAll_left {
              width: 30px;

              img {
                width: 20px;
                height: 25px;
              }
            }

            .fileAll_middle {
              flex: 1;
              font-size: 14px;
              font-weight: 400;
              text-align: left;
              color: #171721;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            .fileAll_right {
              width: 58px;
              height: 25px;
              border: 1px solid #00a3ff;
              border-radius: 12px;
              font-size: 12px;
              font-family: PingFangSC, PingFangSC-Regular;
              font-weight: 400;
              text-align: center;
              color: rgba(0, 131, 197, 0.8);
              cursor: pointer;
              margin-left: 10px;
            }
          }
        }
      }
    }
  }
}
#player-con.prism-player .prism-cc-btn {
  display: none !important;
}
</style>
<style lang="scss" scoped>
.el-button {
  background: #0083c5;
  color: #fff;
}
.nicBaseInfo_action {
  //border: 1px solid red;
  width: 50%;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  color: #00a3ff;
  position: relative;
  .coverC {
    cursor: pointer;
  }
  .posiA {
    position: absolute;
    z-index: 12;
  }
  .posi1 {
    left: 0px;
    top: 50%;
    transform: translate(0, -50%);
  }

  .posi2 {
    margin: 0 2px;
    left: 12%;
    top: 50%;
    transform: translate(0, -50%);
  }

  .posi3 {
    left: 58%;
    top: 50%;
    transform: translate(0, -50%);
  }

  .posi4 {
    margin: 0 2px;
    left: 70%;
    top: 50%;
    transform: translate(0, -50%);
    // border: 1px solid red;
  }

  .zan {
    background: url("../assets/kczy/zanIcon.png") no-repeat left center;
    background-size: 21px 20px;
    box-sizing: border-box;
    padding: 3px 0 3px 25px;
    cursor: pointer;
  }

  .collect {
    background: url("../assets/kczy/collectIcon.png") no-repeat left center;
    background-size: 21px 20px;
    box-sizing: border-box;
    padding: 3px 0 3px 25px;
    margin-left: 30px;
    cursor: pointer;
  }
}
.copy {
  text-align: center;
  line-height: 40px;
}
.content {
  width: 100%;
  min-width: 1400px;
  margin: 0 auto;
  background-image: url("@/assets/img/zhjy/xq_bg.png");
  background-repeat: no-repeat;
}
.title {
  width: 100%;
  height: 60px;
  line-height: 60px;
  font-size: 18px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: 400;
  color: #050026;
  background: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0px 1px 10px 0px rgba(17, 46, 74, 0.1);
  .big {
    width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-right: 130px;

    .left {
      span:first-of-type {
        width: 56px;
        height: 20px;
        font-size: 14px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #949494;
        line-height: 20px;
        margin-left: 30px;
      }
      span:last-of-type {
        width: 56px;
        height: 20px;
        font-size: 14px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #000000;
        line-height: 20px;
      }
    }
    .right {
      width: 100px;
      height: 40px;
      background: rgba(0, 163, 255, 0.8);
      border-radius: 6px;
      font-size: 14px;
      font-family: PingFang SC, PingFang SC-Regular;
      font-weight: 400;
      text-align: center;
      color: #ffffff;
      line-height: 40px;
      margin-top: 10px;
    }
  }
}
.header {
  width: 100%;
  background: transparent;
  div {
    width: 1400px;
    height: 40px;
    margin: 0 auto;
    font-size: 20px;
    font-family: PingFang, PingFang-Heavy;
    font-weight: 800;
    text-align: left;
    color: #000000;
    position: relative;
    display: flex;
    .top-title {
      display: inline-block;
      margin-right: 10px;
      height: 30px;
      //  width: 120px;
      word-wrap: break-word;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      overflow: hidden;
    }
    //   img {
    //     display: inline-block;
    //   }
    //   span {
    //     width: 32px;
    //     height: 22px;
    //     font-size: 16px;
    //     font-family: PingFangSC, PingFangSC-Regular;
    //     font-weight: 400;
    //     text-align: left;
    //     color: #00a3ff;
    //     line-height: 22px;
    //     margin-left: 5px;
    //   }
    .share {
      width: 100px;
      display: inline;
      cursor: pointer;
      color: #00a3ff;
      font-weight: 400;
      margin: 0;
      font-size: 16px;
    }
  }
}
.main {
  width: 1400px;
  margin: 0 auto;

  display: flex;
}
.Info {
  width: 850px;

  height: 100px;
  background: #ffffff;
  border-radius: 12px;
  padding: 11px 23px;
  box-shadow: 2px 10px 24px 0px rgba(161, 153, 168, 0.18);

  .vedioMainContent_left_top {
    display: flex;
    height: 100px;
    // background: #ffffff;
    border-radius: 10px;
    //box-shadow: 2px 10px 24px 0px rgba(161, 153, 168, 0.18);
    margin-bottom: 10px;
    justify-content: space-between;

    .nicBaseInfo_avator {
      width: 10%;
      line-height: 100px;
      position: relative;

      span {
        width: 77px;
        height: 77px;
        border-radius: 50%;
        display: inline-block;
        background-color: #cacaca;
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 13;
        transform: translate(-50%, -50%);
      }
    }

    .nicBaseInfo_text {
      width: 50%;

      .nicBaseInfo_text_top {
        line-height: 70px;
        display: flex;

        span.middle {
          display: inline-block;
          margin-left: 10px;
          margin-right: 3px;
          box-sizing: border-box;
          padding-top: 4%;

          img {
            width: 19px;
            height: 22px;
          }
        }

        span.fir {
          font-size: 16px;
          font-weight: 800;
          text-align: left;
          color: #000000;
        }

        span.sec {
          font-size: 14px;
          font-weight: 400;
          text-align: left;
          color: #949494;
          background: url("../assets/images/kczy/fireIcon1.png");
          background-size: 100% 100%;
        }
      }

      .nicBaseInfo_text_bottom {
        line-height: 30px;

        .markLableOne {
          background: #190006;
          border: 1px solid #f1c342;
          border-radius: 12px;
          font-size: 12px;
          font-weight: 400;
          text-align: center;
          color: #ffffff;
          padding: 5px 8px;
          margin-right: 10px;
        }

        .markLableTwo {
          background: linear-gradient(90deg, #00a3ff 1%, #57c38f);
          border-radius: 12px;
          font-size: 12px;
          font-weight: 400;
          text-align: center;
          color: #ffffff;
          padding: 5px 8px;
        }
      }
    }

    .nicBaseInfo_action {
      width: 30%;
      font-size: 16px;
      font-weight: 400;
      text-align: left;
      color: #00a3ff;
      position: relative;

      .coverC {
        cursor: pointer;
      }

      .posiA {
        position: absolute;
        z-index: 12;
      }

      .posi1 {
        left: 0px;
        top: 50%;
        transform: translate(0, -50%);
      }

      .posi2 {
        margin: 0 2px;
        left: 10%;
        top: 50%;
        transform: translate(0, -50%);
      }

      .posi3 {
        left: 40%;
        top: 50%;
        transform: translate(0, -50%);
      }

      .posi4 {
        margin: 0 2px;
        left: 50%;
        top: 50%;
        transform: translate(0, -50%);
      }

      .zan {
        background: url("../assets/kczy/zanIcon.png") no-repeat left center;
        background-size: 21px 20px;
        box-sizing: border-box;
        padding: 3px 0 3px 25px;
        cursor: pointer;
      }

      .collect {
        background: url("../assets/kczy/collectIcon.png") no-repeat left center;
        background-size: 21px 20px;
        box-sizing: border-box;
        padding: 3px 0 3px 25px;
        margin-left: 30px;
        cursor: pointer;
      }
    }

    .nicBaseInfo_forceBtn {
      width: 20%;
      text-align: left;
      position: relative;
      div {
        position: absolute;
        right: 43%;
        top: 50%;
        transform: translate(0, -50%);
        width: 100px;
        height: 40px;
        font-size: 16px;
        font-weight: 400;
        text-align: center;
        color: #ffffff;
        background: rgba(0, 131, 197, 0.8);
        border-radius: 6px;
        padding: 7px 20px;
        cursor: pointer;
      }
    }
  }
}

.part {
  //   width: calc(30% - 20px);
  width: 400px;
  height: 459px;
  margin-left: 20px;

  margin-bottom: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 2px 10px 24px 0px rgba(161, 153, 168, 0.18);
  ul {
    padding: 20px;
    li {
      width: 100%;
      height: 50px;
      line-height: 50px;
      padding-left: 20px;
      font-size: 14px;
      font-family: PingFangSC, PingFangSC-Semibold;
      font-weight: 600;
      text-align: left;
      color: #050026;
      margin: 10px 0px;
      background: rgba(#00a3ff, 0.05);
      border-radius: 16px 16px 0px 0px;
      &:nth-of-type(1) {
        width: 100%;
        display: flex;
        font-size: 16px;
        justify-content: space-between;
        margin: 0 20px;
        background-color: transparent;
      }
    }
  }
}

.spbf {
  //   width: 70%;
  width: 850px;

  //background: #cee5fb;
  background: #050026;
  border-radius: 15px;
  // border-radius: 10px;
  margin-top: 15px;
  position: relative;
  // .spbf-left {
  //   position: absolute;
  //   top: 0;
  //   left: 0;
  //   width: 176px;
  //   height: 48px;
  //   opacity: 0.5;
  //   background: #ffffff;
  //   border-radius: 0px 10px 0px 10px;
  //   font-size: 16px;
  //   font-family: PingFangSC, PingFangSC-Regular;
  //   font-weight: 400;
  //   text-align: center;
  //   color: #00a3ff;
  //   line-height: 48px;
  // }
  .spbf-right {
    width: 190px;
    height: 45px;
    color: #fff;
    line-height: 45px;
    background: rgba(#050026, 0.3);
    border-radius: 0px 10px 0px 10px;
    position: absolute;
    top: 0;
    right: 0;
    padding-left: 8px;
  }
}
.pingjia {
  width: 400px;

  // margin-left: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 2px 10px 24px 0px rgba(161, 153, 168, 0.18);

  .rate {
    height: 500px;
    // border: 1px solid red;
    overflow-y: scroll;

    .rate-list {
      width: 100%;
      height: 80px;
      padding: 15px;
      border-bottom: 1px dashed rgba(#6e58c5, 0.5);
      .rate-list-title {
        .rate-list-name {
          display: inline-block;

          font-size: 14px;
          font-family: PingFangSC, PingFangSC-Semibold;
          font-weight: 600;
          text-align: left;
          color: #171721;
          line-height: 18px;
          margin-right: 8px;
        }
        .rate-list-time {
          display: inline-block;

          font-size: 12px;
          font-family: PingFangSC, PingFangSC-Regular;
          font-weight: 400;
          text-align: left;
          color: #8083a3;
          line-height: 18px;
        }
      }
      .rate-list-star {
        .rate-list-img {
          display: inline-block;
          width: 21px;
          height: 20px;
          margin-left: 14px;
        }
      }
    }
  }
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
    color: transparent;
  }
  .z-footer {
    width: 100%;
    height: 50px;
    margin-top: 100px;

    display: inline-block;
  }
}

.el-rate {
  --el-rate-icon-size: 22px;
  margin-top: 15px;
}
</style>
