<template>
  <div class="footerlink">
    <div class="link-pic">
      <div class="footerlink-txt">友情链接</div>
      <div class="footerlink-pic">
        <div class="pic-item" @click="openwindown('http://www.nlc.cn/')">
          <div class="pic"><img src="@/assets/linkpic/zgbook.png" alt="" class="pic-size" /> </div>
          <div class="txt">中国国家图书馆</div>
        </div>
        <div class="pic-item" @click="openwindown('http://open.nlc.cn/onlineedu/client/index.htm')">
          <div class="pic"><img src="@/assets/linkpic/gtgkk.png" alt="" class="pic-size" /> </div>
          <div class="txt">国图公开课</div>
        </div>
        <div class="pic-item" @click="openwindown('http://www.cfed.cnki.net/')">
          <div class="pic"><img src="@/assets/linkpic/cnk.png" alt="" class="pic-size" /> </div>
          <div class="txt">CNKI中小学数字图书馆</div>
        </div>
        <div class="pic-item" @click="openwindown('http://www.zhlhh.com/')">
          <div class="pic"><img src="@/assets/linkpic/lhh.png" alt="" class="pic-size" /> </div>
          <div class="txt">中国连环画数字图书馆</div>
        </div>
        <div class="pic-item" @click="openwindown('https://www.wanfangdata.com.cn/index.html')">
          <div class="pic"><img src="@/assets/linkpic/wfsj.png" alt="" class="pic-size" /> </div>
          <div class="txt">万方数据</div>
        </div>
      </div>
    </div>
  </div>
  <div class="box"></div>
  <div class="main">
    <div class="content" @click="toGov">
      {{ Copyright }}
    </div>
  </div>
</template>

<script setup lang="ts">
  const Copyright = import.meta.env.VITE_APP_COPYRIGHT;
  const toGov = () => {
    window.open('https://beian.miit.gov.cn', '_blank');
  };
  const openwindown = (url) => {
    window.open(url);
  };
</script>

<style lang="less" scoped>
  .box {
    height: 80px;
    background: white;
  }
  .footerlink {
    width: 100%;
    background: white;
    padding-top: 100px;
    .link-pic {
      display: flex;
      width: 1160px;
      height: 254px;
      border: 1px solid #ffeeeeee;
      margin: 0 auto;
      flex-flow: column wrap;
      .footerlink-txt {
        font-size: 24px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        margin: 24px 16px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ffeeeeee;
      }
      .footerlink-pic {
        display: flex;
        margin: 0px 16px 24px;
        justify-content: space-between;
        .pic-item {
          display: flex;
          flex-flow: column wrap;
          justify-content: center;
          .pic {
            width: 212px;
            height: 88px;
            .pic-size {
              width: 212px;
              height: 88px;
              cursor: pointer;
            }
          }
          .txt {
            text-align: center;
            cursor: pointer;
            font-size: 14px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #666666;
          }
        }
      }
    }
  }
  .main {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: @heading-color;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;

    .content {
      display: flex;
      justify-content: center;
      .mbottom46 {
        margin-bottom: 25px;
      }
      .left {
        margin-right: 40px;
      }
      .right {
        img {
          width: 18px;
          height: 20px;
          margin-right: 10px;
        }
        .url {
          cursor: pointer;
        }
      }
    }
  }

  @media screen and (max-width: 600px) {
    .box {
      height: 0px;
      background: white;
    }
    .main {
      width: 100% !important;
    }
    .footerlink {
      width: 100% !important;
      padding-top: 40px;
    }
    .content {
      font-size: 12px;
      transform: scale(0.8);
      div {
        width: 380px;
      }
    }
    .link-pic {
      width: 100% !important;
      height: auto !important;
      display: flex;
      flex-flow: column nowrap;
      .footerlink-txt {
        font-size: 18px !important;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 400;
        text-align: center;
        color: #333333;
        margin: 0px 16px !important;
        padding-bottom: 0px !important;
        border-bottom: 1px solid #ffeeeeee;
      }
      .footerlink-pic {
        display: flex;
        flex-flow: column nowrap;
      }
      .pic-item {
        display: flex;
        flex-flow: column wrap;
        justify-content: center;
        .pic {
          display: none;
          width: 20px !important;
          height: 10px;
          .pic-size {
            width: 20px;
            height: 10px;
            cursor: pointer;
          }
        }
      }
    }
  }
  .text-color {
    color: rgba(255, 255, 255, 0.6);
  }
</style>
