@import './variable/config.scss';
@import './variable/default.scss';
@import 'core';
@import 'icon';

@media screen and (min-width: 1600px) {
  html {
    font-size: 100px;
  }

  body {
    font-size: 0.14rem;
  }
}

@media screen and (min-width: 1366px) and (max-width: 1599px) {
  html {
    font-size: 75px;
  }

  body {
    font-size: 0.13rem;
  }

  .major-node {
    .ab-fs {
      font-size: 17px!important;
    }
  }
  .disaster-search-right {
    .base-small-fs {
      font-size: 16px!important;
    }
  }
}

@media screen and (min-width: 1280px) and (max-width: 1365px) {
  html {
    font-size: 70px;
  }

  body {
    font-size: 0.14rem;
  }
  .major-node {
    .ab-fs {
      font-size: 14px!important;
    }
  }
  .disaster-search-right {
    .base-small-fs {
      font-size: 16px!important;
    }
  }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  html {
    font-size: 55px;
  }

  body {
    font-size: 0.17rem;
  }

  #app {
    // 标题
    .title {
      font-size: 17px !important;
    }
    // 字体大小
    .base-super-big-fs {
      font-size: 21px !important;
    }

    .base-big-fs {
      font-size: 17px !important;
    }

    .base-medium-fs {
      font-size: 16px !important;
    }

    .base-small-fs {
      font-size: 14px !important;
    }

    .base-sixteen-fs {
      font-size: 12px !important;
    }

    .base-eighteen-fs {
      font-size: 13px !important;
    }

    .base-twentyeight-fs {
      font-size: 23px !important;
    }

    .base-thirtytwo-fs {
      font-size: 27px !important;
    }

    // 树
    .ant-tree {
      padding-right: 12px;
      font-size: 14px;
    }

    // Tabs
    .ant-tabs-nav-container {
      font-size: 17px;
    }

    // 折叠面板
    .ant-collapse-header {
      font-size: 14px;
    }

    .ant-collapse-content {
      font-size: 14px;
    }
    // 按钮
    .ant-btn {
      font-size: 14px !important;
    }
    // 输入框
    .ant-input {
      font-size: 14px;
    }
    // form
    .ant-form-item-label label {
      font-size: 14px;
    }

    // 数字圈显示
    .arround-item-icon-num {
      font-size: 17px;
    }

    // 表格
    table {
      td {
        font-size: 14px !important;
      }

      th {
        font-size: 14px !important;
      }
    }

    .ant-table-content {
      margin-right: -0.05rem;
      margin-left: -0.05rem;
    }

    // 切换按钮字体
    .ant-radio-group {
      label {
        font-size: 14px;
      }
    }


    .war-info-left {
      width: 400px;
    }

    .alarm-content {
      .tableHead {
        font-size: 14px;
      }
    }
    .major-node {
      .ab-fs {
        font-size: 12px!important;
      }
    }
    // 辅助决策--灾情查询
    .disaster-search-root {
      .disaster-search-left {
        width: 320px;
      }
      .disaster-search-center {
        width: 260px;
      }
      .disaster-search-right {

      }
    }

    // 地图屏
    // logo
    .logo-text {
      font-size: 23px;
    }

    .amos-nav-item {
      a {
        font-size: 18px;
      }
    }

    .bmap-root {
      left: 280px;
      width: calc(100% - 280px);
    }

    .map-left-root {
      width: 280px;

      .basic-left-search {
        .search-btn {
          .ant-input-search {
            .ant-input {
              width: 112px;
            }
          }
        }
      }

      // 战备值守
      .basic-left-root {
        .title {
          font-size: 18px;

          .immediate-search-btn {
            .ant-input-search {
             top: 0;
            }
          }
        }
      }

      .disaster-item {
        .disaster-item-words {
          font-size: 17px;
        }

        .text-style {
          font-size: 14px;
        }
      }

      // 应急指挥
      .basic-left-title {
        font-size: 17px;
      }

      .power-deploy-card {
        padding: 5px 6px 5px 6px;

        .title-words {
          font-size: 17px;
        }

        .title-map-emergency {
          font-size: 14px;
        }

        .title-map-emergency-total {
          font-size: 14px;
        }

        .title-map-security-power {
          font-size: 14px;
        }
      }

      .power-deploy-card-title {
        .title-words {
          font-size: 17px;
        }
      }

      // 重大安保
      .major-left-selected {
        .amos-collapse-header {
          font-size: 16px;
        }

        .amos-collapse-content {
          .shcs-name {
            font-size: 14px;
          }

          .distance {
            font-size: 14px;
          }
        }
      }
    }


    .tab-root {
      left: 280px;
    }

    .map-tool-root {
      width: 32px;
    }
  }

  //应急指挥--力量信息
  .middle-butn-css {
    .ant-tabs-tab-inner {
      div {
        font-size: 17px !important;
      }
    }

    .ant-tabs.tabs-frame {
      >.ant-tabs-bar {
        position: relative;

        > div {
          &:first-child {
            position: absolute;
            right: 11%;
            top: -20%;
            .ant-tabs-extra-content {
              float: inherit;
            }
          }
        }
      }
    }
  }

  // 应急指挥--计算公式
  .formula-calculate-wrapper {
    .ant-tabs-nav-container {
      font-size: 14px;
    }

    .disaster-right-title-css {
      font-size: 16px;
    }
  }
  // 应急指挥--作战地图
  .battle-map {
    .battle-map-left {
      width: 300px;
      .leftModelBox  {
        .item {
          .itemLabel {
            width:40px!important;
          }
          .itemBody {
            width: 155px!important;
          }
        }
        .leftModelTitle {
          font-size: 14px!important;
        }
      }
      .iconBox {
        .iconTitle {
          font-size: 12px!important;
        }
      }
      .amos-custom-color-picker-swatch {
        .amos-custom-color-picker-color {
          width: 198px!important;
        }
      }
      .amos-input-number {
        margin-left: 5px!important;
        .amos-input {
          // height: 30px;
          width: 70px!important;
        }
      }
    }
    .battle-map-right {
      padding-left: 310px;
    }
  }

  .centerMapBox {
    background-size: 92% 75%;
  }

  .middle-center-map, .police-analysis-middle-center {
    background-size: 92% 75% !important;
  }
}

@media screen and (min-width: 100px) and (max-width: 1023px) {
  html {
    min-width: 1024px;
    font-size: 55px;
  }

  body {
    font-size: 0.14rem;

    #app {
      .view-port .content-body {
        min-width: 1024px;
      }
    }
  }

  #app {
    // header
    // .top-header {
    //   .amos-nav-horizontal {
    //     width: 85%;
    //   }
    //   .amos-nav-horizontal > ul {
    //     margin-left: 0.1rem;
    //   }
    //   .amos-nav-item {
    //     margin-right: 0;
    //   }
    // }
    // .header {
    //   .amos-nav-item {
    //     margin-right: 0;
    //   }
    //   .sys-extend > .amos-nav-horizontal > ul {
    //     margin-right: 0.1rem;
    //   }
    // }
    // Tabs
    .ant-tabs-nav-container {
      font-size: 17px;
    }

    // 折叠面板
    .ant-collapse-header {
      font-size: 14px;
    }

    .ant-collapse-content {
      font-size: 14px;
    }
    // 按钮
    .ant-btn {
      font-size: 14px !important;
    }
    // 输入框
    .ant-input {
      font-size: 14px;
    }
    // form
    .ant-form-item-label label {
      font-size: 14px;
    }
    // 标题
    .title {
      font-size: 17px !important;
    }
    // 字体大小
    .base-big-fs {
      font-size: 17px !important;
    }

    .base-medium-fs {
      font-size: 16px !important;
    }

    .base-small-fs {
      font-size: 14px !important;
    }

    // 数字圈显示
    .arround-item-icon-num {
      font-size: 17px;
    }

    // 表格
    table {
      td {
        font-size: 14px !important;
      }

      th {
        font-size: 14px !important;
      }
    }

    .ant-table-content {
      margin-right: -0.05rem;
      margin-left: -0.05rem;
    }

    // 切换按钮字体
    .ant-radio-group {
      label {
        font-size: 14px;
      }
    }
    // 业务屏
    // 战备值守--信息录入
    .war-info-left {
      width: 400px;
    }

    .alarm-content {
      .tableHead {
        font-size: 14px;
      }
      .alarm-item {
        font-size: 14px;
      }
    }
    .major-node {
      .ab-fs {
        font-size: 12px!important;
      }
    }
    // 辅助决策--灾情查询
    .disaster-search-root {
      .disaster-search-left {
        width: 320px;
      }
      .disaster-search-center {
        width: 260px;
      }
      .disaster-search-right {

      }
    }
    // 应急指挥--作战地图
    .battle-map {
      .battle-map-left {
        width: 300px;
        .leftModelBox  {
          .item {
            .itemLabel {
              width:40px!important;
            }
            .itemBody {
              width: 155px!important;
            }
          }
          .leftModelTitle {
            font-size: 14px!important;
          }
        }
        .iconBox {
          .iconTitle {
            font-size: 12px!important;
          }
        }
        .amos-custom-color-picker-swatch {
          .amos-custom-color-picker-color {
            width: 198px!important;
          }
        }
        .amos-input-number {
          margin-left: 5px!important;
          .amos-input {
            // height: 30px;
            width: 70px!important;
          }
        }
      }
      .battle-map-right {
        padding-left: 310px;
      }
    }
    // 地图屏
    // logo
    .logo-text {
      font-size: 23px;
    }

    .amos-nav-item {
      a {
        font-size: 18px;
      }
    }

    .bmap-root {
      left: 290px;
      width: calc(100% - 290px);
    }

    .map-left-root {
      width: 280px;

      // 战备值守
      .basic-left-root {
        .title {
          font-size: 18px;

         .immediate-search-btn {
           .ant-input-search {
            top: 0;
           }
         }
        }
      }

      .disaster-item {
        .disaster-item-words {
          font-size: 17px;
        }

        .text-style {
          font-size: 14px;
        }
      }

      // 应急指挥
      .basic-left-title {
        font-size: 17px;
      }

      .power-deploy-card {
        padding: 5px 6px 5px 6px;

        .title-words {
          font-size: 17px;
        }

        .title-map-emergency {
          font-size: 14px;
        }

        .title-map-emergency-total {
          font-size: 14px;
        }

        .title-map-security-power {
          font-size: 14px;
        }
      }

      .power-deploy-card-title {
        .title-words {
          font-size: 17px;
        }
      }

      // 重大安保
      .major-left-selected {
        .amos-collapse-header {
          font-size: 16px;
        }

        .amos-collapse-content {
          .shcs-name {
            font-size: 14px;
          }

          .distance {
            font-size: 14px;
          }
        }
      }
    }

    .bmap-root {
      left: 290px;
      width: calc(100% - 295px);
    }

    .tab-root {
      left: 290px;
    }

    .map-tool-root {
      width: 32px;
    }
  }
}

html {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow-y: hidden;
  font-family: $font-family;
  // font-size: $font-size;
  // color: $base-color-1;
  color: $base-color;
  background: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.156rem;
  margin-bottom: 0.12rem;
  font-weight: 100;
}

h1 {
  font-size: 0.24rem;
}

h2 {
  font-size: 0.18rem;
}

h3 {
  font-size: 0.156rem;
}

a {
  color: #42a5f5;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.wrapper {
  animation: wrapper-fade 0.25s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@keyframes wrapper-fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}

.amos-modal-container {
  // width: 50% !important;
  position: relative;
  left: 0 !important;
  margin: 0 auto;
  background: rgba(12, 73, 126, 1);
  box-shadow: none;
  .ant-select-selection--single {
    height: 36px;
  }
  .ant-input {
    height: 36px;
  }
}

.amos-modal-close {
  color: #ec0000 !important;
}

.amos-modal-close-x {
  width: 0.56rem;
  height: 0.56rem;
  font-size: 0.24rem !important;
  line-height: 0.56rem;
}

.amos-modal-content {
  max-height: 4.2rem;
  padding: 0.2rem;
  color: #fff;
  font-size: 0.16rem;
}

.amos-modal-header {
  padding: 0.12rem 0.24rem;
  color: #fff;
  border: none;
  height: 0.56rem;
  background: linear-gradient(180deg,rgba(154,203,251,0.24) 0%,rgba(225,238,255,0.36) 54%,rgba(157,183,223,0.1) 54%,rgba(63,117,209,0) 100%);
  box-shadow: inset 0px 0px 18px 0px rgba(111,194,226,0.67);
  border-radius: 4px 4px 0px 0px;
  .amos-modal-title {
    color: #307fdd;
    text-align: center;
  }
}

.amos-modal-footer {
  padding: 0 0.12rem;
  color: #307fdd;
  // background: rgba(7, 17, 35, 0.9) !important;
  // border: 1px solid #1274cf;
  font-size: 0.16rem;
  border: none;

  .detail-footer {
    padding: 0.12rem 0;
    border-top: 1px solid #6FC2E2;
  }

  .amos-btn {
    height: 0.336rem;
    padding: 0 0.216rem;
    margin-left: 0.096rem;

    i[class*='icon'] {
      margin-right: 0.036rem;
    }
  }
}

.ant-calendar-picker-input {
  color: #5cc1e3;
  background: #061f3b;
  border: 0px;
}

.amos-modal-wrap {
  .select-scroll-wrapper {
    display: inline-flex !important;
    // width: 130px !important;
    // margin-left: 10px;
  }
}

.ant-table {
  width: 100%;

  .ant-table-placeholder {
    margin: 0 5px;
  }

  table {
    border-collapse: separate;
    border-spacing: 5px 5px;

    .ant-table-thead {
      tr {
        th {
          padding: 5px 3px;
          font-size: 12px;
          color: #fff;
          text-align: center;
          background: rgba(18, 48, 102, 0.8);
        }
      }
    }

    .ant-table-tbody {
      tr {
        td {
          padding: 10px 8px;
          color: #fff;
          text-align: center;
          word-break: keep-all;
          background: rgba(8, 58, 117, 0.25);
          border-bottom: none;
        }
      }

      .red-words {
        color: red !important;
      }
    }
  }
}

.ant-tree {
  .ant-tree-switcher_close {
    &::after {
      display: inline-block;
      font-family: 'anticon';
      font-size: 16px;
      font-size: 7px \9;
      font-weight: bold;
      color: #fff;
      text-rendering: optimizeLegibility;
      content: '\E606';
      transform: rotate(270deg) scale(0.59);
      transition: transform 0.3s;
    }
  }

  .ant-tree-switcher_open {
    &::after {
      display: inline-block;
      font-family: 'anticon';
      font-size: 16px;
      font-size: 7px \9;
      font-weight: bold;
      color: #fff;
      text-rendering: optimizeLegibility;
      content: '\E606';
      transform: scale(0.58333333) rotate(0deg);
      transition: transform 0.3s;
    }
  }

  .ant-tree-title {
    color: #fff;
  }

  .ant-tree-node-content-wrapper {
    &:hover {
      background: none !important;
    }
  }

  // .ant-tree-node-selected {
  //   background: none !important;
  // }
}

.anticon-search:before {
  color: white;
}

.ant-select-arrow:before {
  color: white;
}

.ant-select-selection__rendered {
  line-height: 30px !important;
}

