* {
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 1.2vw;
  color: #444444;
  height: 100%;
  width: 100%;
}

.container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* 加载样式 */
.loading {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: hsla(0, 0%, 100%, 0.774);
  z-index: 4;
}

.progress-container {
  position: relative;
  width: 400px;
  height: 30px;
  z-index: 10;
}

.progress {
  display: flex;
  align-items: center;
  width: 400px;
  height: 16px;
}

.progress_length {
  width: 360px;
  height: 8px;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.progress_current {
  width: 1%;
  height: 8px;
  border-radius: 4px;
  background-color: #1890ff;
  transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
}

.progress_percentage {
  width: 40px;
  font-size: 0.8vw;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
}

.models {
  font-size: 12px;
  margin-top: 1px;
  margin-left: 2px;
}

.model_loaded {
  transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
}

/* switch组件样式 */
.switch,
.switch::before,
.switch::after {
  box-sizing: border-box;
}

.switch {
  cursor: pointer;
  border-width: 0.1vw;
  border-style: solid;
  border-radius: 1.5vw;
  box-shadow: 0 0 0.1vw rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
  width: 3vw;
  height: 1.4vw;
  background-color: #E9E9E9;
  border-color: #E9E9E9;
}

.switch::after {
  content: "";
  top: 0;
  left: 0;
  border-radius: 1.2vw;
  position: absolute;
  width: 1.2vw;
  height: 1.2vw;
  background-color: #ffffff;
  box-shadow: 0.1vw 0.1vw 0.3vw rgba(0, 0, 0, 0.25);
  transform: translateX(0) scale(1, 1);
  transition: all 0.3s ease;
}

.switch-checked {
  border-color: rgb(54, 188, 250);
  background-color: rgb(54, 188, 250);
}

.switch-checked::after {
  transform: translateX(1.4vw);
  margin-left: 0.1vw
}

.switch:active::after {
  width: 2.04vw;
}

.switch-checked:active::after {
  width: 2.04vw;
  margin-left: -0.55vw;
}

/* 头部 */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4vw;
  display: flex;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  margin: 1vw 0 0 1vw;
}

.company-name {
  color: #FFFFFF;
  font-size: 1.2vw;
} 

.vertical-line {
  height: 1.8vw;
  width: 0.1vw;
  background-color: #FFFFFF;
  margin: 0px 0.8vw;
}

.product-name-en {
  color: #FFFFFF;
  font-size: 1.2vw;
  padding-left: 0.2vw;
  display: flex;
  align-items: center;
}

/* 时间、天气情况、定位 */
.message {
  position: absolute;
  top: 0;
  right: 0;
  margin: 1vw 1vw 0 0;
  display: flex;
  align-items: center;
}

.date {
  color: #ffffff;
  text-align: right;
}

.date-hms {
  font-size: 1vw;
}

.date-ymd {
  font-size: 0.6vw;
}

.weather {
  display: flex;
  align-items: center;
}

.weather-image {
  width: 2.1vw;
  height: 2.1vw;
}

.sensor {
  display: flex;
  align-items: center;
}

.sensor-image {
  margin-top: 0.1vw;
  width: 2.1vw;
  height: 2.1vw;
}

.sensor-data {
  color: #ffffff;
  font-size: 1.2vw;
  padding-left: 0.3vw;
}

.location {
  display: flex;
  align-items: center;
}

.location-image {
  width: 1.5vw;
  height: 1.5vw;
}

.location-name {
  color: #FFFFFF;
  font-size: 1vw;
}

.line-margin {
  margin: 0px 16px;
}

/* 视角复位 */
.back {
  display: none;
  position: absolute;
  top: 12%;
  right: 4%;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 0.8vw;
  border-radius: 0.5vw;
}

.back:hover {
  cursor: pointer;
}

.back-icon {
  display: block;
  width: 1.6vw;
  height: 1.6vw;
  margin: 0 auto;
}

.back-message {
  margin-top: 0.1vw;
  font-size: 0.6vw;
}

/* 控制面板 */
.control-panel {
  position: absolute;
  top: 50%;
  left: 0.5%;
  width: 22vw;
  height: 81vh;
  margin-top: -38vh;
  border-radius: 1vw;
  display: flex;
}

.control-panel-nav {
  width: 4vw;
  height: 81vh;
  background-color: rgba(255, 255, 255, 1);
  border-top-left-radius: 1vw;
  border-bottom-left-radius: 1vw;
}

.control-panel-name {
  width: 2vw;
  height: 4vw;
  font-size: 0.8vw;
  font-weight: 600;
  text-align: center;
  margin: 1vw auto;
  color: #1890ff;
  overflow: hidden;
  white-space: nowrap;
}

.control-panel-nav-item {
  width: 4vw;
  padding: 1vw 0vw;
  font-size: 0.6vw;
  text-align: center;
  color: #8a8a8a;
}

.control-panel-nav-icon {
  width: 1.4vw;
  height: 1.4vw;
}

.control-panel-nav-item:hover {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
}

.control-panel-nav-item-active {
  color:#1890ff;
}

.control-panel-content {
  width: 18vw;
  height: 81vh;
  background-color: rgba(255, 255, 255, 0.7);
  border-top-right-radius: 1vw;
  border-bottom-right-radius: 1vw;
  overflow: hidden;
}

.control-panel-content-item {
  box-sizing: border-box;
  height: 100%;
  padding: 0.5vw;
  display: none;
}

.control-panel-content-item-active {
  display: block;
}

.control-panel-content-item-title {
  font-size: 0.9vw;
  font-weight: 600;
  padding-top: 0.5vw;
  padding-left: 0.5vw;
}

.control-panel-content-item-sub-title {
  font-size: 0.6vw;
  padding-top: 0.2vw;
  padding-left: 0.5vw;
  color: #8c8c8c;
}

/* 环境温度 */
.tem-chart {
  width: 17vw;
  height: 6vw;
}

.tem-curve-chart {
  width: 17vw;
  height: 8vw;
  margin-top: 1vw;
}

/* 设备列表 */
.device-list {
  position: relative;
  margin-top: 0.4vw;
  width: 17vw;
  overflow: hidden;
}

.scroll-box {
  box-sizing: border-box;
  display: flex;
  width: 29.8vw;
  height: 9vw;
  padding: 0.5vw 0vw;
}

.device-list-item {
  position: absolute;
  /* margin: 0vw 0.2vw; */
  width: 5.26vw;
  height: 8vw;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0.4vw;
  transition: all 0.8s ease-in-out;
}

.device-list-enter-active {
  position: absolute;
}

.device-list-item-active {
  background-color: rgba(255, 255, 255, 1);
}

.device-list-item-active .device-list-item-name-content {
  color: #fa8c16;
}

.device-list-item-name {
  margin-top: 0.6vw;
  margin-left: 0.6vw;
}

.device-list-item-name-label {
  font-size: 0.7vw;
  font-weight: 600;
}

.device-list-item-name-content {
  font-size: 0.8vw;
  font-weight: 700;
}

.device-list-item-data {
  display: flex;
  align-items: flex-end;
  margin-top: 2.6vw;
  margin-left: 0.6vw;
}

.device-list-item-data-content {
  font-size: 1vw;
  color: #1890ff;
  font-weight: 600;
}

.device-list-item-data-unit {
  font-size: 0.6vw;
  margin-left: 0.2vw;
}

.device-list-item-remark {
  display: flex;
  align-items: center;
  margin-top: 0.05vw;
  margin-left: 0.6vw;
}

.device-list-item-remark-icon {
  width: 0.8vw;
  height: 0.8vw;
}

.device-list-item-remark-content {
  font-size: 0.6vw;
  padding-left: 0.3vw;
}

/* 操作 */
.park-operation {
  margin-top: 0.2vw;
  width: 17vw;
  display: flex;
  flex-wrap: wrap;
}

.park-operation-item {
  box-sizing: border-box;
  margin: 0.15vw 0.15vw;
  width: 8.2vw;
  height: 2vw;
  background-color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  padding-left: 0.6vw;
  font-size: 0.6vw;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.5s;
}

.operation-item-active {
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  color: #ffffff;
}

.park-operation-item:hover {
  cursor: pointer;
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  color: #ffffff;
}

/* 温室信息 */
.house-device {
  width: 17vw;
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.2vw;
}

.house-device-item {
  box-sizing: border-box;
  width: 8.2vw;
  height: 2vw;
  margin: 0.15vw 0.15vw;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 0.6vw;
  font-weight: 600;
  padding-left: 0.6vw;
  transition: all 0.2s;
}

.house-device-item:hover {
  cursor: pointer;
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  color: #FFFFFF;
}

.house-device-item-active {
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  color: #FFFFFF;
}

.device-icon {
  display: block;
  width: 1.15vw;
  height: 1.15vw;
  margin-right: 0.6vw;
}

.device-operation {
  display: none;
}

.device-operation-active {
  display: block;
}

.house-operation {
  margin-top: 0.2vw;
  width: 17vw;
}

.house-operation-empty {
  box-sizing: border-box;
  width: 17vw;
  border-radius: 4px;
  padding: 0.4vw 0vw;
  text-align: center;
  font-size: 0.6vw;
  color: #8c8c8c;
}

.house-operation-item {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25vw 0.25vw;
  margin: 0vw 0.15vw;
  border-radius: 0.15vw;
  background-color: rgba(255, 255, 255, 0);
  transition: all 0.2s;
} 

.house-operation-item:hover {
  background-color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.house-operation-item-name {
  font-size: 0.75vw;
  font-weight: 600;
}

.house-operation-item-data {
  font-size: 0.7vw;
}

.camera-control-pancel {
  width: 17vw;
}

.camera-show {
  width: 17vw;
  height: 12vw;
  margin-top: 0.5vw;
  background-color: rgba(255, 255, 255, 0.7);
}

.camera-control {
  width: 6vw;
  height: 6vw;
  margin: 0.5vw auto;
  display: flex;
  flex-wrap: wrap;
  transition: all 0.2s;
}

.camera-control-item {
  display: block;
  width: 2vw;
  height: 2vw;
}

.camera-control-item:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.camera-control-help {
  font-size: 0.6vw;
}

.big-data-web {
  font-size: 0.8vw;
}

.flower-field-station-data {
  width: 17vw;
  margin: 0.5vw auto;
}

.flower-field-station-data-title {
  font-size: 0.8vw;
  font-weight: 600;
  padding-left: 0.5vw;
}

.flower-field-station-data-sub-title {
  font-size: 0.6vw;
  padding-top: 0.2vw;
  padding-left: 0.5vw;
  color: #8c8c8c;
  text-align: right;
}

.flower-field-chart {
  width: 17vw;
  height: 6vw;

}

.wind-direction-chart {
  height: 12vw;
  margin: 2vw 0vw;
}

.flower-field-station-data-item {
  width: 17vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.4vw 0;
}

.flower-field-station-data-item-data {
  font-size: 0.8vw;
}

.flower-field-station-data-item-title {
  display: flex;
  align-items: center;
  width: 17vw;
  font-size: 0.6vw;
  padding-left: 0.5vw;
}

.station-icon {
  width: 0.8vw;
  height: 0.8vw;
  margin-right: 0.2vw;
}

.corn-field-devices {
  width: 17vw;
}

.device-chart {
  width: 17vw;
  height: 10vw;
}