<!--
 * @Author: sjl
 * @Date: 2021-09-08 16:19:24
 * @Descripttion:
-->
<template>
  <div class="xtjc-left-side" v-show="mapStore.rightSideMenu">
    <!-- 实时告警 -->
    <alarm />
    <!-- 水位信息 -->
    <qxWater />
  </div>
</template>

<script lang="ts" setup>
import { useMapStore } from '/@/store/modules/map';
import alarm from './components/alarm.vue';
import qxWater from './components/qxWater.vue';
const mapStore = useMapStore();
</script>

<style lang="less" scoped>
@font-face {
  font-family: 'AgencyFB';
  src: url('../../assets/font/AgencyFB-Bold.ttf');
}
@font-face {
  font-family: 'AlimamaShuHeiTi';
  src: url('../../assets/font/AlimamaShuHeiTi-Bold.ttf');
}
.xtjc-left-side {
  animation-name: move;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}
@keyframes move {
  0% {
    right: -400px;
  }
  100% {
    right: 20px;
  }
}
::v-deep .ant-tabs-bar {
  border-bottom: 0px solid #303030 !important;
}
::v-deep .ant-tabs-nav .ant-tabs-tab-active {
  // color: #ffe75c !important;
}
::v-deep .ant-tabs-nav .ant-tabs-tab-active {
  // background: url('../../assets/images/sjx1.png') no-repeat 0px 10px;
}
::v-deep .ant-tabs-nav-animated > div {
  display: flex;
  justify-content: center;
}
::v-deep .ant-tabs-nav-animated > div > div {
  flex: 1;
  text-align: center;
}
::v-deep .total3 .ant-tabs-nav .ant-tabs-tab-active {
  // background: url('../../assets/images/sjx1.png') no-repeat 42px 9px;
  background: url('../../assets/images/tab.png') no-repeat;
  // width: 45px;
  background-position: 6px 3px;
  background-size: 100% 100%;
  height: 54px;
  line-height: 40px;
  margin-top: -6px;
}

::v-deep .ant-tabs-nav-wrap {
  z-index: 999;
  // height: 38px;
  // width: 300px;
  background-size: 100% 85% !important;
  // margin: 10px 15px;
  background: url('../../assets/images/tab-背景.png') no-repeat;
}
::v-deep span.anticon.anticon-caret-right svg path {
  box-shadow: 0 0 10px 5px yellow;
  background: linear-gradient(to right, yellow, #fff);
}
::v-deep .ant-tabs-nav .ant-tabs-tab {
  margin-left: -10px;
  // margin-right: 0px;
  padding: 6px 10px 4px 26px;
}
.bjj {
  display: flex;
  justify-content: space-evenly;
  margin-top: 10px;
}
.bjj li {
  display: inline-block;
}
.bjj li span {
  display: block;
  width: 65px;
  height: 65px;
  margin-bottom: 10px;
  font-family: 'AgencyFB';
  text-align: center;
  line-height: 32px;
  background: url('../../assets/images/yjn-04.png') no-repeat;
  background-size: 65px 65px;
  background-position: 3px 0px;
  font-size: 24px;
  font-weight: bold;
  font-style: italic;
}
.bjj li:nth-child(2) span {
  background: url('../../assets/images/yjn-03.png') no-repeat;
  background-size: 65px 65px;
  background-position: 3px 0px;
}
.bjj li:nth-child(3) span {
  background: url('../../assets/images/yjn-02.png') no-repeat;
  background-size: 65px 65px;
  background-position: 3px 0px;
}
.bjj li:nth-child(4) span {
  background: url('../../assets/images/yjn-01.png') no-repeat;
  background-size: 65px 65px;
  background-position: 3px 0px;
}
.bjj li b {
  color: #fff;
  width: 56px;
  display: block;
  text-align: center;
  font-size: 15px;
  font-family: 'AlimamaShuHeiTi';
  margin-left: 7px;
}
::v-deep .ant-tabs-ink-bar {
  visibility: hidden;
}

::v-deep .ant-tabs-top > .ant-tabs-nav::before,
.ant-tabs-bottom > .ant-tabs-nav::before,
.ant-tabs-top > div > .ant-tabs-nav::before,
.ant-tabs-bottom > div > .ant-tabs-nav::before {
  border-bottom: 0px;
}
::v-deep .ant-tabs {
  color: #69aeec !important;
}
::v-deep .ant-tabs-nav .ant-tabs-tab-active {
  color: #fff !important;
}
::v-deep .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  // color: #ffe75c;
}
::v-deep .ant-tabs-tab {
  // font-size: 18px;
  // font-weight: bold;
  font-size: 16px;
  font-weight: normal !important;
}
.ant-tabs-tab-active {
  // background-color: yellow;
}
.tab-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 24px;
}

.icon {
  margin-right: 16px;
}

.text {
  color: #333;
}
::v-deep .ant-tabs > .ant-tabs-nav .ant-tabs-nav-list,
.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-list {
  height: 32px;
}
.total3 {
  position: relative;
  padding: 15px 20px;
  width: 400px;
  height: 200px;
  color: #fff;
  border: 1px solid transparent;
  background: rgba(3, 49, 79, 0.4);
  border-image: linear-gradient(to right, #134564, #2eb3ff, #134564) 1;
}
.total3:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  border-left: 1px solid transparent;
  border-radius: 5px;
  border-image: linear-gradient(rgba(39, 209, 238, 0.3) 0%, #00d0e3 50%, rgba(255, 255, 255, 0) 99%) 1;
  // background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1),rgba(253, 253, 253, 0.3));
}
.total3:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 100%;
  border-right: 1px solid transparent;
  border-radius: 5px;
  border-image: linear-gradient(rgba(39, 209, 238, 0.3) 0%, #00d0e3 50%, rgba(255, 255, 255, 0) 99%) 1;
}
.xtjc-left-side {
  // position: fixed;
  position: absolute;
  right: 20px;
  top: 90px;
  z-index: 3;
  width: 400px;
  // height: 100%;
}
.leafTotal {
  width: 400px;
  height: 47px;
  background: url('../../assets/images/jcsbtj.png') no-repeat;
  // background: url('../../assets/images/panels.png') no-repeat;
  // background-position: -14px -13px;
  //   background-size: 101% 131%;
  font-size: 19px;
  font-weight: bold;
  color: #fff;
  line-height: 38px;
  margin: 0px 0px 5px 0px;
}
.leafTotal i {
  margin-left: 32px;
  font-family: 'AlimamaShuHeiTi';
  margin-right: 98px;
  font-weight: bold;
  // font-style: normal;
  margin-left: 32px;
  margin-right: 98px;

  // background-image:-webkit-linear-gradient(bottom,#6FCFFF,#fff);
  //   -webkit-background-clip:text;
  //   -webkit-text-fill-color:transparent;
}
.leafTotal b {
  font-weight: normal;
  font-size: 15px;
  color: #a7e6fa;
}

.leafTotal2 {
  margin: 20px 0px 20px 0px;
}

.leafTotal2 {
  margin: 20px 0px 5px 0px !important;
}

.projectList span {
  // width: 83px;
  // height: 29px;
  // margin: 8px 10px;
  // display: inline-block;
  // text-align: center;
  // line-height: 29px;
  // cursor: pointer;
  // background: url('../../assets/images/projectList2.png') no-repeat;
}

.projectList span.active {
  background: url('../../assets/images/projectList.png') no-repeat;
}

.total {
  // padding: 20px;
  // padding-top: 29px;
  width: 400px;
  // height: 184px;
  // height: calc(100% - 800px) !important;
  height: 275px;
  color: #fff;
  border: 1px solid transparent;
  background: rgba(3, 49, 79, 0.4);
  border-image: linear-gradient(to right, #134564, #2eb3ff, #134564) 1;
  display: flex;
  position: relative;
  flex-flow: row wrap;
  overflow-y: auto;
  padding-left: 10px;
  // align-items: ;
  align-items: flex-start;
  align-content: flex-start; /* 添加这行代码 */
}
.total:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  border-left: 1px solid transparent;
  border-radius: 5px;
  border-image: linear-gradient(rgba(39, 209, 238, 0.3) 0%, #00d0e3 50%, rgba(255, 255, 255, 0) 99%) 1;
  // background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1),rgba(253, 253, 253, 0.3));
}
.total:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 100%;
  border-right: 1px solid transparent;
  border-radius: 5px;
  border-image: linear-gradient(rgba(39, 209, 238, 0.3) 0%, #00d0e3 50%, rgba(255, 255, 255, 0) 99%) 1;
}

.imageItem {
  width: 33%;
  position: relative;
  padding: 10px 10px 0px 0px;
  position: relative;
  .imageItem2 {
    height: 90px;
    width: 100%;
    position: relative;
  }
  .imageItem2.active {
    border: 3px solid #04f7fa !important;
  }
  /deep/ .ant-image {
    width: 100%;
    height: 100%;
    position: relative;
  }
  /deep/ .ant-image-img {
    width: 100%;
    height: 100%;
  }
  span {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 20px;
    left: 0px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
  }
}
.projectList::-webkit-scrollbar {
  width: 4px; /* 设置滚动条宽度 */
}
.projectList::-webkit-scrollbar-track {
  /* 设置滚动条背景颜色 */
}

.projectList::-webkit-scrollbar-thumb {
  background-color: #007e8f; /* 设置滚动条滑块颜色 */
  border-radius: 4px; /* 设置滚动条滑块圆角 */
}
.projectList::-webkit-scrollbar-thumb:hover {
  background-color: #007e8f; /* 设置滚动条滑块在鼠标悬停时的颜色 */
}
</style>
