/* @import './variables.css'; */

/* 模块样式 */
.main-left>.left-item:first-child{
  height: 40%;
  width: 100%;
}

.main-left>.left-item:not(:first-child){
  flex: 1;
  width: 100%;
}
.left-item-title{
  height: 1.875rem;
  background-image: url('../img/left_title_bg.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  text-align: right;
  line-height: 1.875rem;
  padding-right: 3rem;
  font-size: var(--font-size-base);
}

/* 综合能源 */
.energy-infos{
  height: calc(100% - 1.875rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}
.energy-total{
  width: 100%;
  height: 2rem;
  text-align: center;
  line-height: 3rem;
  font-size: var(--font-size-base);
  font-weight: bold;
  letter-spacing: 2px;
  margin-top: 4px;
}
.energy-total-text{
  display: inline-block;
  width: 100%;
  background-image: url('../img/title_sec_bg.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.energy-total-text>i{
  letter-spacing: 0px;
}
.energy-total>span{
  text-shadow: 
    0 0 10px var(--theme-color-primary),
    0 0 20px var(--theme-color-primary),
    0 0 40px var(--theme-color-primary);
  /* letter-spacing: 2px; */
}
.enery-mes{
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.energy-info{
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.energy-info>div{
  width: 100%;
}
.energy-info>div:nth-child(1){
  flex: 3;
  background-image: url('../img/chassis.png');
  background-size: 80% 40%;
  background-position: bottom;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-base);
}
.info-light>div:nth-child(1)>i{
  background-image: linear-gradient(to bottom, var(--text-color-primary), var(--theme-color-warning));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.info-charging>div:nth-child(1)>i{
  background-image: linear-gradient(to bottom, var(--text-color-primary), var(--theme-color-success));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.info-air>div:nth-child(1)>i{
  background-image: linear-gradient(to bottom, var(--text-color-primary), var(--text-color-highlight));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.energy-info>div:nth-child(2),.energy-info>div:nth-child(3){
  flex: 1;
}

/* 聚光灯效果 */
.energy-info-bg {
  position: relative;
  /* 确保伪元素不会撑破容器或溢出 */
  overflow: visible; 
}

.energy-info-bg::before {
  content: '';
  position: absolute;
  /* 调整光束起点在容器底部 */
  bottom: 0; 
  left: 50%;
  transform: translateX(-50%);
  /* 宽度和高度决定光束大小 */
  width: 100%;
  height: 70%;
  /* 渐变色：从底部的半透明青色向上到完全透明 */
  background: linear-gradient(to top, rgba(0, 216, 255, 0.25) 0%, transparent 100%);
  /* 梯形裁切，模拟光束 */
  clip-path: polygon(10% 0, 90% 0, 90% 100%, 10% 100%);
  /* 放在图标(z-index: 1)下面 */
  z-index: 0;
  /* 模糊边缘，增加真实感 */
  filter: blur(2px);
  pointer-events: none;
  /* 呼吸动画 */
  animation: spotlight-pulse 4s ease-in-out infinite;
}

/* 底部旋转科技光环 */
.energy-info-bg::after {
  content: '';
  position: absolute;
  bottom: 5%; /* 稍微离底一点，形成立体感 */
  left: 50%;
  width: 80%;
  height: 80%; /* 原始正方形，视觉上会被 rotateX 压扁 */
  border: 1px dashed rgba(0, 216, 255, 0.4);
  border-radius: 50%;
  /* 初始变换状态 */
  transform: translateX(-50%) rotateX(75deg);
  z-index: 0;
  pointer-events: none;
  animation: ring-rotate 10s linear infinite;
  box-shadow: 0 0 5px rgba(0, 216, 255, 0.2), inset 0 0 5px rgba(0, 216, 255, 0.2);
}

.energy-info-bg i {
  position: relative;
  z-index: 1;
  /* 增加图标发光效果，增强立体感 */
  filter: drop-shadow(0 0 8px rgba(0, 216, 255, 0.6));
  /* 图标轻微浮动 */
  animation: float-icon 3s ease-in-out infinite;
}

/* --- 综合能源动画定义 --- */
/* 光束呼吸与伸缩 */
@keyframes spotlight-pulse {
  0%, 100% {
    opacity: 0.6;
    height: 70%;
    filter: blur(2px);
  }
  50% {
    opacity: 1;
    height: 75%;
    filter: blur(4px);
  }
}

/* 光环旋转 */
@keyframes ring-rotate {
  0% {
    transform: translateX(-50%) rotateX(75deg) rotateZ(0deg);
  }
  100% {
    transform: translateX(-50%) rotateX(75deg) rotateZ(360deg);
  }
}

/* 图标浮动 */
@keyframes float-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.energy-info-value{
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../img/resource_number_bg.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  font-size: var(--font-size-xs);
}
.energy-info-value>span{
  text-align: center;
  font-size: var(--font-size-base);
  letter-spacing: 2px;
  font-weight: bold;
}
/* 蓝色 - 照明 */
.info-light .energy-info-value span {
  color: #e6f7ff;
  text-shadow: 
    0 0 10px var(--theme-color-warning),
    0 0 20px var(--theme-color-warning),
    0 0 40px var(--theme-color-warning);
}

/* 绿色 - 充电桩 */
.info-charging .energy-info-value span {
  color: #e6fffa;
  text-shadow: 
    0 0 10px var(--theme-color-success),
    0 0 20px var(--theme-color-success),
    0 0 40px var(--theme-color-success);
}

/* 红色 - 空调 */
.info-air .energy-info-value span {
  color: #fff1f0;
  text-shadow: 
    0 0 10px var(--theme-color-primary),
    0 0 20px var(--theme-color-primary),
    0 0 40px var(--theme-color-primary);
}
.energy-info-title{
  font-size: var(--font-size-xs);
  text-align: center;
}


/* 停车位统计 */
.parking-spot{
  height: calc(100% - 1.875rem);
  display: flex;
  flex-direction: row;
}
.parking-echarts{
  flex: 1;
}
.parking-info{
  flex: 2;
}
#parking-echarts-map{
  height: 100%;
}
.parking-info{
  font-size: var(--font-size-xs);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.5rem;
  padding: 0.5rem;
}

/* 停车场信息卡片样式 */
.info-card {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding-left: 0.5rem;
  background: rgba(0, 50, 100, 0.2);
  border: 1px solid rgba(0, 216, 255, 0.1);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  overflow: hidden; /* 限制扫光溢出 */
  /* 科幻分割边框动画 */
  box-shadow: inset 0 0 10px rgba(0, 216, 255, 0.05);
}

/* 动态扫光效果 */
.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(0, 216, 255, 0.2), transparent);
  transform: skewX(-25deg);
  animation: scan-light 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* 动态边框呼吸 */
.info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  animation: border-glow 3s infinite alternate;
  pointer-events: none;
}

@keyframes scan-light {
  0% { left: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 200%; opacity: 0; }
}

@keyframes border-glow {
  0% { border-color: rgba(0, 216, 255, 0.1); box-shadow: 0 0 0 rgba(0, 216, 255, 0); }
  100% { border-color: rgba(0, 216, 255, 0.4); box-shadow: inset 0 0 15px rgba(0, 216, 255, 0.2); }
}

.info-card:hover {
  background: rgba(0, 216, 255, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  width: 1rem;
  height: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-right: 0.5rem;
  position: relative;
  z-index: 1;
}
.card-icon{
  background-image: linear-gradient(to top, rgba(255, 255, 255, 0.1), rgba(92, 225, 249, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  font-size: var(--font-size-xs);
}

.card-label {
  font-size: var(--font-size-xs);
  color: #8fb4d9;
}

.card-value {
  font-weight: bold;
}

.unit {
  color: #8fb4d9;
  margin-left: 0.2rem;
  font-weight: normal;
}

/*物联感知*/
.connect-infos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.5rem;
  padding: 0.5rem;
}
.connect-info{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 50, 100, 0.2);
  border: 1px solid rgba(0, 216, 255, 0.1);
  border-radius: 0.25rem;
  padding: 0.5rem 0rem;
  gap: 1;
  transition: all 0.3s ease;
  overflow: hidden; /* 限制扫光溢出 */
  /* 科幻分割边框动画 */
  box-shadow: inset 0 0 10px rgba(0, 216, 255, 0.05);
  font-size: var(--font-size-xs);
  position: relative;
  text-align: center;
}

.connect-info:hover {
  background: rgba(0, 216, 255, 0.15);
  transform: translateY(-2px);
}
.connect-info-mes{
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--theme-color-success);
  border-radius: 50%;
  animation: blink 3s infinite;
  box-shadow: 0 0 5px var(--theme-color-success);
}
@keyframes blink {
  0% { opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { opacity: 0.8; }
}