<template>
  <div class="base-container">
    <div class="header">
      <div class="title">
        <img src="@/assets/images/common/logo.png" alt="">
        <span>飞鸟智慧巡园平台</span>
        <img src="@/assets/images/common/logo-icon.png" alt="">
      </div>
      <div class="date">
        <div>111</div>
        <div class="time">
          <div>21:05:46</div>
          <span>2024.11.04 星期一</span>
        </div>
      </div>
    </div>
    <div class="content">
      <!-- <div class="top"></div> -->
      <div class="left">
        <div class="tool-list">
          <div class="tool-item">气象预警</div>
        </div>
        <div class="chart-list">
          <div class="chart-item">
            <chart-box name="气象预警"></chart-box>
          </div>
          <div class="chart-item">
            <chart-box name="物候调节"></chart-box>
          </div>
          <div class="chart-item">
            <chart-box name="病虫测报"></chart-box>
          </div>
          <div class="chart-item">
            <chart-box name="树势评估"></chart-box>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="list">
          <chart-box name="农事列表" arrow="arrow-left"></chart-box>
        </div>
          <div class="tool-list">
          <div class="tool-item">气象预警</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import chartBox from '@/components/chartBox.vue';

</script>

<style lang="scss" scoped>
.base-container{
  width: 100%;
  height: 100vh;
  color: #fff;
  position: relative;
  box-sizing: border-box;
  background: red;
  .header{
    width: 100%;
    height: 76px;
    display: flex;
    justify-content: space-between;
    background: #000;
    box-sizing: border-box;
    
    .title{
      width: 100%;
      height: 100%;
      font-size: 24px;
      letter-spacing: 2px;
      line-height: 72px;
      padding-left: 20px;
      box-sizing: border-box;
      background: url('@/assets/images/common/header-bg.png') no-repeat center center /100% 100%;
      span{
        margin: 0 5px;
        font-family: 'PangMenZhengDao';
      }
    }
    .date{
      display: flex;
      align-items: center;
      width: 180px;
    }
  }
  .content{
    width: 100%;
    height: calc(100% - 76px);
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    .left,.right{
      width: calc(376px + 54px);
      height: 95%;
      padding-top: 10px;
      box-sizing: border-box;
      display: flex;
      .tool-list{
        width: 54px;
        height: 100%;
        background: #232323;
        border: 0.6px solid rgb(255, 255, 255,0.4);
        border-left: none;
        box-sizing: border-box;
        border-radius: 4px;
        margin-right: 10px;
        .tool-item{
          font-size: 20px;
          writing-mode: vertical-rl; /* 从右到左的竖排 */  
          text-orientation: upright; /* 保持文字直立，而不是旋转 */  
          white-space: nowrap; /* 防止文本换行 */  
          line-height: 54px;
        }
      }
      .chart-list{
        width: calc(100% - 54px - 10px);
        height: calc(100% - 30px);
        .chart-item{
          width: 100%;
          height: calc(100% / 4);
          box-sizing: border-box;
          margin-bottom: 10px;
        }
      }
    }
    .right{
      .tool-list{
        margin-left: 10px;
      }
      .list{
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>