<template>
  <div class="left_server">
    <!-- 标题区域 -->
    <div class="server_title"></div>

    <!-- 内容区域 -->
    <div class="server_body">
      <!-- 左边边框线区域 -->
      <div class="body_line"></div>

      <!-- 右边边框线区域 -->
      <div class="body_line right"></div>

      <!-- 线上住宿标题区域 -->
      <div class="body_title">线上住宿</div>

      <!-- 线上住宿内容区域 -->
      <div class="body_box">
        <!-- 住宿统计区域 -->
        <div class="box_item">
          <Stat />
        </div>

        <!-- 近7天房间预定趋势区域 -->
        <div class="box_item">
          <Trend />
        </div>

        <!-- 近7天平均房价区域 -->
        <div class="box_item">
          <Average />
        </div>

        <!-- 住宿资源区域 -->
        <div class="box_item">
          <Resource />
        </div>

        <!-- 订单量排行区域 -->
        <div class="box_item">
          <Rank />
        </div>

        <!-- 用户评价区域 -->
        <div class="box_item">
          <Evaluate />
        </div>
      </div>

      <!-- 线上特产和景区餐饮区域 -->
      <div class="body_box2">
        <!-- 线上特产区域 -->
        <div class="box2_left">
          <div class="left_title">线上特产</div>
          <div class="left_box">
            <!-- 销售热榜top3区域 -->
            <div class="hot">
              <Hot />
            </div>

            <!-- 近12月销售额区域 -->
            <div class="sale">
              <Sale />
            </div>
          </div>
        </div>

        <!-- 景区餐饮区域 -->
        <div class="box2_right">
          <Catering />
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import Stat from "./stat.vue";
import Average from "./average.vue";
import Evaluate from "./evaluate.vue";
import Rank from "./rank.vue";
import Resource from "./resource.vue";
import Trend from "./trend.vue";
import Catering from "./catering.vue";
import Hot from "./hot.vue";
import Sale from "./sale.vue";
</script>

<style lang="scss" scoped>
.left_server {
  margin-left: 140px;
  width: 2011px;
  height: 100%;

  .server_title {
    margin-top: 67px;
    width: 2011px;
    height: 96px;
    background-image: url(@/assets/images/31.png);
    background-size: contain;
    background-repeat: no-repeat;
  }

  .server_body {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 48px;
    height: 1394px;
    // overflow: hidden;

    .body_line {
      position: absolute;
      top: 0px;
      width: 42px;
      height: 1364px;
      background-image: url(@/assets/images/analyse-line.png);
      background-size: 100% 100%;
    }

    .right {
      right: 0;
      transform: rotateY(180deg);
    }

    .body_title {
      padding-left: 44px;
      margin-left: 58px;
      margin-top: 16px;
      width: 1900px;
      height: 48px;
      font-size: 28px;
      font-family: "庞门正道标题体";
      background-image: url(@/assets/images/37.png);
      background-size: 100% 100%;
    }

    .body_box {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      margin-top: 21px;
      margin-left: 55px;
      width: 1918px;
      height: 836px;
      background-image: url(@/assets/images/9.png);
      background-size: 100% 100%;

      .box_item {
        width: 548px;
        height: 391px;
      }
    }

    .body_box2 {
      display: flex;
      justify-content: space-between;
      margin-top: 35px;
      margin-left: 55px;
      width: 1918px;
      height: 473px;

      .box2_left {
        width: 1233px;
        height: 440px;

        .left_title {
          padding-left: 44px;
          width: 1233px;
          height: 48px;
          font-size: 28px;
          font-family: "庞门正道标题体";
          background-image: url(@/assets/images/35.png);
          background-size: 100% 100%;
        }

        .left_box {
          display: flex;
          justify-content: space-between;
          padding: 26px 48px;
          margin-top: 24px;
          width: 1233px;
          height: 370px;
          background-image: url(@/assets/images/9.png);
          background-size: 100% 100%;

          .hot {
            width: 548px;
            height: 100%;
          }

          .sale {
            width: 515px;
            height: 100%;
          }
        }
      }

      .box2_right {
        margin-right: 25px;
        width: 569px;
        height: 440px;
      }
    }
  }
}
</style>
