<template>
  <common-header/>
  <div class="content">
    <div class="title">
      协同备课 <span>智慧校园</span><span>-协同备课</span>
    </div>
    <div class="jy-header">
      <p>协同备课</p>
      <div class="search">
        <input v-model="searMsg" type="text" placeholder="搜索关键字" />
        <span class="inp-sear"></span>
      </div>
    </div>

    <div class="nav">
      <div>
        <span>年级</span>
        <el-tabs v-model="njActiveName" @tab-click="handleClick">
          <el-tab-pane label="全部" name="a"></el-tab-pane>
          <el-tab-pane label="幼儿园" name="b"></el-tab-pane>
          <el-tab-pane label="一年级" name="c"></el-tab-pane>
          <el-tab-pane label="二年级" name="d"></el-tab-pane>
          <el-tab-pane label="三年级" name="e"></el-tab-pane>
          <el-tab-pane label="四年级" name="f"></el-tab-pane>
           <el-tab-pane label="五年级" name="g"></el-tab-pane>
          <el-tab-pane label="六年级" name="h"></el-tab-pane>
          <el-tab-pane label="初一" name="i"></el-tab-pane>
          <el-tab-pane label="初二" name="j"></el-tab-pane>
          <el-tab-pane label="初三" name="k"></el-tab-pane>
          <el-tab-pane label="高一" name="l"></el-tab-pane>
          <el-tab-pane label="高二" name="m"></el-tab-pane>
          <el-tab-pane label="高三" name="n"></el-tab-pane>
          <el-tab-pane label="其他" name="o"></el-tab-pane>

        </el-tabs>
      </div>

      <div>
        <span>科目</span>
        <el-tabs v-model="kmActiveName" @tab-click="handleClick">
          <el-tab-pane label="全部" name="a"></el-tab-pane>
          <el-tab-pane label="音乐" name="b"></el-tab-pane>
          <el-tab-pane label="美术" name="c"></el-tab-pane>
          <el-tab-pane label="舞蹈" name="d"></el-tab-pane>
          <el-tab-pane label="摄影" name="e"></el-tab-pane>
          <el-tab-pane label="毛笔" name="f"></el-tab-pane>
        </el-tabs>
      </div>
    </div>

    <div class="ysgc-kind">
      <ul class="specail">
        <li class="kc" v-for="kc in 4" :key="kc">
          <img class="kc-back" src="@/assets/img/zhjyzxxx/img_5.png" alt="" />
          <div class="kc-des">
            <p class="kc-name">安徒生世界插画</p>
            <div class="rate">
              <img
                v-for="star in 5"
                :key="star"
                src="@/assets/img/zhjyzxxx/star.png"
                alt=""
              />
            </div>
          </div>
          <div class="zan">
            <img src="@/assets/img/zhjyzxxx/zan.png" /> 10w+
            <img src="@/assets/img/zhjyzxxx/xin.png" alt="" />14w+
          </div>
        </li>
      </ul>
    </div>
    <div class="ysgc-kind">
      <ul class="specail">
        <li class="kc" v-for="kc in 4" :key="kc">
          <img class="kc-back" src="@/assets/img/zhjyzxxx/img_3.png" alt="" />
          <div class="kc-des">
            <p class="kc-name">安徒生世界插画</p>
            <div class="rate">
              <img
                v-for="star in 5"
                :key="star"
                src="@/assets/img/zhjyzxxx/star.png"
                alt=""
              />
            </div>
          </div>
          <div class="zan">
            <img src="@/assets/img/zhjyzxxx/zan.png" /> 10w+
            <img src="@/assets/img/zhjyzxxx/xin.png" alt="" />14w+
          </div>
        </li>
      </ul>
    </div>
    <div class="ysgc-kind">
      <ul class="specail">
        <li class="kc" v-for="kc in 4" :key="kc">
          <img class="kc-back" src="@/assets/img/zhjyzxxx/img_1.png" alt="" />
          <div class="kc-des">
            <p class="kc-name">安徒生世界插画</p>
            <div class="rate">
              <img
                v-for="star in 5"
                :key="star"
                src="@/assets/img/zhjyzxxx/star.png"
                alt=""
              />
            </div>
          </div>
          <div class="zan">
            <img src="@/assets/img/zhjyzxxx/zan.png" /> 10w+
            <img src="@/assets/img/zhjyzxxx/xin.png" alt="" />14w+
          </div>
        </li>
      </ul>
    </div>
    <div class="block">
      <el-pagination layout="prev, pager, next" :total="1000"> </el-pagination>
    </div>
  </div>
</template>

<script>
import commonHeader from "@/components/header/index.vue";
export default {
  name: "index",
  components:{
    commonHeader
  },
  data() {
    return {
      kmActiveName: "b",
      njActiveName: "b",
    };
  },
};
</script>

<style lang="scss" scoped>
.content {
  width: 100%;
  min-width: 1280px;
  margin: 0 auto;
}
.title {
  width: 1280px;

  height: 55px;
  line-height: 55px;
  font-size: 18px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: 400;
  color: #050026;
  margin: 0 auto;
  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;
  }
}
.jy-header {
  width: 100%;
  height: 200px;
  background: url("@/assets/img/zhjyzxxx/xtbk_bg.png");
  background-size: 100% 200px;
  background-repeat: no-repeat;
  padding-top: 40px;
  p {
    width: 192px;
    height: 67px;
    font-size: 48px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #ffffff;
    line-height: 67px;
    margin: 0 auto;
    margin-bottom: 15px;
  }
  .search {
    position: relative;
    height: 50px;
    width: 497px;
    margin: 0 auto;
    input {
      background: #ffffff;
      border-radius: 8px;
      border: 1px solid #00a3ff;
      height: 50px;
      padding: 20px;
      width: 100%;
    }
    .inp-sear {
      display: block;
      width: 26px;
      height: 26px;
      background-color: #00a3ff;
      border-radius: 6px;
      position: absolute;
      top: 11px;
      right: 10px;
      background-image: url("@/assets/img/zhjyzxxx/search.png");
      background-size: 60%;
      background-position: center;
      background-repeat: no-repeat;
    }
  }
}
.nav {
  width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  div {
    display: flex;

    span {
      padding-top: 10px;
      display: inline-block;
      width: 50px;
      height: 50px;
      font-size: 16px;
      font-family: PingFangSC, PingFangSC-Semibold;
      font-weight: 600;
      text-align: center;
      color: #000000;
      line-height: 21px;
    }
  }
}
.ysgc-kind {
  // width: 1650px;
  width: 1280px;
  margin: 0 auto;
  .specail {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    li {
      margin: 0 13px 17px 0;
      overflow: hidden;
      box-shadow: 0px 10px 24px 0px rgba(161, 153, 168, 0.18);
    }
    .kind-name {
      width: 300px;
      height: 274px;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0px 10px 24px 0px rgba(161, 153, 168, 0.18);
      padding: 49px 20px;
      box-sizing: border-box;
      background-image: url("@/assets/img/zhjyzxxx/img_1.png");
      background-position: center -15px;
      h3 {
        width: 263px;
        height: 37px;
        font-size: 26px;
        font-family: PingFangSC, PingFangSC-Medium;
        font-weight: 500;
        text-align: left;
        color: #050026;
        line-height: 37px;
      }
      p {
        width: 246px;
        height: 22px;
        font-size: 16px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #050026;
        line-height: 22px;
        margin-top: 25px;
      }
      .btn-more {
        width: 111px;
        height: 31px;
        padding: 2px;
        box-sizing: border-box;
        border-radius: 38px;
        margin-top: 45px;
        background: linear-gradient(127deg, #3f64ff 10%, #8f78f8 91%);
        button {
          width: 100%;
          height: 100%;
          padding-left: 6px;
          background: #fff;
          border-radius: 38px;
          font-weight: 400;
          font-size: 14px;
          color: #6c5dd3;
          line-height: 20px;
          letter-spacing: 0.6px;
          border-image: linear-gradient(127deg, #3f64ff 10%, #8f78f8 91%) 1 1;
        }
      }
    }
    .kc {
      width: 300px;
      height: 278px;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0px 10px 24px 0px rgba(161, 153, 168, 0.18);
      position: relative;
      .kc-back {
        width: 100%;
      }
      .kc-des {
        padding: 11px 6px;
        box-sizing: border-box;
        .kc-name {
          height: 22px;
          font-size: 16px;
          font-family: PingFangSC, PingFangSC-Regular;
          font-weight: 400;
          color: #000000;
          line-height: 22px;
        }
        .rate {
          display: flex;
          margin: 11px 0;
          img {
            margin-right: 6px;
          }
        }
      }
      .zan {
        position: absolute;
        top: 0;
        right: 0;
        width: 173px;
        height: 34px;
        line-height: 34px;
        font-size: 14px;
        color: #fff;
        display: flex;
        padding-left: 20px;
        background: rgba(0, 0, 0, 0.59);
        border-radius: 0px 12px 0px 12px;
        img {
          display: inline-block;
          width: 17px;
          height: 16px;
          margin: 8px 5px 0 10px;
        }
      }
    }
  }
}
.block {
  width: 350px;
  height: 50px;
  margin: 0 auto;
  margin-top: 50px;
}
</style>

