* {
  margin: 0%;
  padding: 0;
}
html,
body {
  height: 100%;
  margin: 0;
  background-color: #000e1c;
  overflow-x: hidden;
}

/* 定义所有动画时长的CSS变量（默认值） */
:root {
  --dashMove-duration: 0.6s;
  --pumpRotate-duration: 2s;
  --waterHide-duration: 2s;
  --waterLevel-duration: 3s;
  --bigBoxPiston-duration: 2s;
  --videBigPiston-duration: 1.5s;
  --upDownScroll-duration: 6s;
  --pistonMaskReset-duration: 1.68s;
}

#container {
  position: absolute;
  width: 100vw;
  height: 100vh;
  color: white;
}

/* 顶部区域 */
.toppp {
  position: relative;
  width: 100%;
}

.topTitleImg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.timeBox {
  position: absolute;
  top: 30%;
  right: 3%;
  color: #fff;
  font-size: 0.9vw;
  background-color: #000e1c;
  height: 30%;
  width: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  display: flex;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
/* 左侧 */
.contentLeft {
  width: 75%;
  height: 100%;
  font-size: 18px;
  min-width: 0;
  position: relative;
}
.leftTopImg {
  width: 100%;
  position: relative;
}
/* 循环泵，补水泵 */
.pumpBox {
  width: 3%;
  height: 5.4%;
  min-width: 0;
  position: absolute;
  right: 31.4%;
  top: 24%;
  border-radius: 60%;
  background-color: #000000;
}
.pumpBox2 {
  right: 35.4%;
  top: 52.5%;
}
.pumpBox3 {
  right: 18.4%;
    top: 66.5%;
}
.pumpBox4 {
  right: 12.4%;
    top: 86%;
}
/* ========== 核心修改部分 ========== */
.pumpImg {
  width: 100%;
  height: 100%;
  /* 绑定CSS变量作为动画时长 */
  animation: pumpRotate var(--pumpRotate-duration) linear infinite;
  transform-origin: center center;
}

@keyframes pumpRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ========== 核心修改部分结束 ========== */
/* 换热器 */
.heatExchanger {
  width: 6.3%;
  height: 24%;
  min-width: 0;
  position: absolute;
  left: 48.3%;
  top: 9%;
}
.heatExchanger2 {
  left: 48%;
  top: 37.5%;
}
/* ========== heatWater1/2 动画保留 ========== */
.heatWater1 {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
@keyframes waterHideAnimation {
  0% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 100%);
  }
}
.heatWater2 {
  width: 57%;
  height: 60%;
  position: absolute;
  bottom: 27px;
  left: 19%;
  background-color: #000e1c;
  /* 绑定CSS变量作为动画时长 */
  animation: waterHideAnimation var(--waterHide-duration) infinite;
}
/* ========== heatWater1/2 动画结束 ========== */
/* 自流井 */
.well {
  width: 7%;
  height: 26.4%;
  min-width: 0;
  position: absolute;
  left: 14%;
  bottom: 5%;
}
.wellWater img {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.wellWaterLevel{
    width: 100%;
    height: 70%;
    position: absolute;
    bottom: 8px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #9966FF;
    /* 绑定CSS变量作为动画时长 */
    animation: waterLevelAnimation var(--waterLevel-duration) ease-in-out infinite;
}
/* 水箱 */
.radiatorBox {
  width: 8px;
  height: 18%;
  min-width: 0;
  position: absolute;
  left: 53.6%;
  bottom: 5.6%;
  background-color: #5f6160;
}
/* ========== 水箱水位动画保留 ========== */
.radiatorWater {
  width: 100%;
  height: 70%;
  position: absolute;
  bottom: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color: #ff6600;
  /* 绑定CSS变量作为动画时长 */
  animation: waterLevelAnimation var(--waterLevel-duration) ease-in-out infinite;
}

@keyframes waterLevelAnimation {
  0% {
    height: 0%;
  }
  50% {
    height: 78%;
  }
  100% {
    height: 0%;
  }
}
/* ========== 水箱水位动画结束 ========== */
.bottomBox {
  width: 100%;
  height: 25%;
  position: absolute;
  left: 1%;
}
.bottomBoxImg {
  width: 19%;
  height: 100%;
}
/* 基础正向流动（橙色） */
.videLine4::after,
.videLine::after {
    content: "";
    position: absolute;
    left: -40px;
    top: 33%;
    height: 34%;
    width: calc(100% + 80px);
    background: repeating-linear-gradient(90deg, transparent 0 12px, #FF7A00 12px 32px, transparent 32px 44px);
    /* 绑定CSS变量作为动画时长 */
    animation: dashMove var(--dashMove-duration) linear infinite;
}

.videLine::after {
    /* 特殊倍率保留，同时绑定变量 */
    animation-duration: calc(var(--dashMove-duration) * 0.83);
}

/* 紫色正向流动 */
.videLine3::after,
.videLine2::after,
.videLine5::after,
.videLine6::after,
.videLine7::after,
.videLine8::after,
.videLine9::after,
.videLine11::after,
.videLine18::after,
.videLine10::after {
    content: "";
    position: absolute;
    left: -40px;
    top: 33%;
    height: 34%;
    width: calc(100% + 80px);
    background: repeating-linear-gradient(90deg, transparent 0 12px, #9966FF 12px 32px, transparent 32px 44px);
    /* 绑定CSS变量作为动画时长 */
    animation: dashMove var(--dashMove-duration) linear infinite;
}

/* 橙色反向流动 */
.videLine13::after {
    content: "";
    position: absolute;
    left: -40px;
    top: 33%;
    height: 34%;
    width: calc(100% + 80px);
    background: repeating-linear-gradient(90deg, transparent 0 12px, #ff7a00 12px 32px, transparent 32px 44px);
    /* 绑定CSS变量作为动画时长 */
    animation: dashMove var(--dashMove-duration) linear infinite reverse;
}

/* 紫色反向流动 */
.videLine12::after,
.videLine14::after,
.videLine15::after,
.videLine16::after,
.videLine17::after {
    content: "";
    position: absolute;
    left: -40px;
    top: 33%;
    height: 34%;
    width: calc(100% + 80px);
    background: repeating-linear-gradient(90deg, transparent 0 12px, #9966FF 12px 32px, transparent 32px 44px);
    /* 绑定CSS变量作为动画时长 */
    animation: dashMove var(--dashMove-duration) linear infinite reverse;
}
/* 管线样式（统一复用） */
.videLine,
.videLine2,
.videLine3,
.videLine4,
.videLine5,
.videLine6,
.videLine7,
.videLine8,
.videLine9,
.videLine10,
.videLine11,
.videLine12,
.videLine13,
.videLine14,
.videLine15,
.videLine16,
.videLine17,
.videLine18 {
    height: 1.9%;
    background: linear-gradient(to bottom, #dcdcdc, #c9c9c9 45%, #bdbdbd 55%, #f0f0f0);
    overflow: hidden;
    position: absolute;
}
.videLine {
    width: 92.3%;
    top: 11.5%;
    left: 1%;
}

.videLine2 {
    width: 62.8%;
    top: 28.8%;
    left: 1%;
}

.videLine3 {
    width: 22.5%;
    top: 23%;
    left: 70.6%;
}

.videLine4 {
    width: 67.6%;
    top: 40%;
    left: 25.6%;
}

.videLine5 {
    width: 40.8%;
    top: 57%;
    left: 18.6%;
}

.videLine6 {
        width: 26.7%;
    top: 51%;
    left: 66.5%;
}

.videLine7 {
    width: 26.8%;
    top: 89.8%;
    left: 55.7%;
}

.videLine8 {
    width: 10.3%;
    top: 70.2%;
    left: 65.9%;
}

.videLine9 {
    width: 41%;
    top: 65.8%;
    left: 0.7%;
}

.videLine10 {
    width: 4.6%;
    top: 77.2%;
    left: 21.0%;
}

.videLine11 {
    width: 1.9%;
    top: 79%;
    left: 46.8%;
}

.videLine12 {
    width: 11%;
    top: 43.5%;
    left: 11%;
    rotate: 270deg;
}

.videLine13 {
        width: 11.5%;
    top: 25.8%;
    left: 17.8%;
    rotate: 270deg;
}

.videLine14 {
    width: 19%;
    top: 44.4%;
    right: 9%;
    rotate: 90deg;
}

.videLine15 {
        width: 15%;
    top: 67.4%;
    right: 4.9%;
    rotate: 90deg;
}


.videLine16 {
    width: 6.7%;
    top: 79.9%;
    right: 33.3%;
    rotate: 90deg;
}

.videLine17 {
    width: 3.5%;
    top: 71%;
    left: 26.5%;
    rotate: 90deg;
}

.videLine18 {
    width: 3.7%;
    top: 72.5%;
    left: 42.6%;
    rotate: 90deg;
}
/* 图标容器 */
.iconBox {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -4%;
    left: 45%;
}

.aniamtionBox,
.iconBox4 {
    width: 6%;
    height: 24%;
    position: absolute;
    z-index: 99;
    --lines: 7;
    --gap: 10%;
}

.iconBox3 {
    width: 5%;
    height: 6.1%;
    position: absolute;
    top: 26.5%;
    left: 13.9%;
    z-index: 9999;
}

.aniamtionBox {
    top: 12%;
    left: 3%;
}

.iconBox4 {
    top: 36.5%;
    left: 47.9%;
    height: 23.6%;
}
.icons{
    z-index: 20;
    margin-top: 0.8%;
}
.icon {
    width: 4%;
    height: 6%;
    position: absolute;
    top: 27.7%;
    left: -42.6%;

}

/* 零散图标定位 */
.icon2 {
    width: 5.5%;
    height: 4%;
    position: absolute;
    top: 13%;
    left: -40.56%;
}

.icon3 {
    width: 5%;
    height: 4%;
    position: absolute;
    top: 12.6%;
    left: -33.4%;
}

.icon4 {
    width: 5%;
    height: 4%;
    position: absolute;
    top: 13%;
    left: -24.1%;
}

.icon5 {
    width: 5%;
    height: 6.1%;
    position: absolute;
    top: 9%;
    left: -43%;
}

.icon6 {
    width: 5%;
    height: 6.1%;
    position: absolute;
    top: 12%;
    left: -31.1%;
}

.icon7 {
    width: 5%;
    height: 6.1%;
    position: absolute;
    top: 26.6%;
    z-index: 999;
    left: 13.8%;
}

.icon8,
.icon1 {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 999;
}

.icon9 {
    width: 5%;
    height: 6.1%;
    position: absolute;
    top: 49%;
    right: 9.9%;
}

.icon10 {
    width: 4%;
    height: 3.1%;
    position: absolute;
    top: 68%;
    right: 29.2%;
    z-index: 20;
}

.icon11 {
    width: 4%;
    height: 3.1%;
    position: absolute;
    top: 88%;
    right: 29%;
}

.icon12 {
    width: 4.8%;
    height: 4%;
    position: absolute;
    top: 87.1%;
    right: 34.2%;
}

.icon13 {
    width: 4%;
    height: 3.1%;
    position: absolute;
    top: 63.6%;
    left: 2.4%;
}

.icon14 {
    width: 5%;
    height: 5.1%;
    position: absolute;
    top: 63.5%;
    left: 25.8%;
}

.icon15 {
    width: 4%;
    height: 3.1%;
    position: absolute;
    top: 63.5%;
    left: 32.3%;
}

.icon17 {
    width: 5%;
    height: 5%;
    position: absolute;
    top: 21%;
    left: 79%;
}

.bigBox {
    width: 100%;
    height: 100%;
}
/* 按钮样式 */
.viteBtn,
.lowBtn,
.stopBtn {
    position: absolute;
    font-size: 1vw;
    width: 6%;
    height: 17%;
    cursor: pointer;
    border: 1px solid;
}

.viteBtn {
    top: 41%;
    left: 9.7%;
    background-color: #9966FF;
    border-color: white;
    color: white;
}

.lowBtn {
    top: 64%;
    left: 9.7%;
    background-color: black;
    border-color: #9966FF;
    color: red;
}

.stopBtn {
    top: 64%;
    left: 29.2%;
    background-color: black;
    border-color: #9966FF;
    color: red;
}
/* 告警滚动动画 - 绑定CSS变量 */
@keyframes upDownScroll {
    0%,
    60%,
    80%,
    100% {
        transform: translateY(0);
    }
    20%,
    40% {
        transform: translateY(-100px);
    }
}
.scroll-container {
    position: absolute;
    width: 100%;
    animation: upDownScroll var(--upDownScroll-duration) ease-in-out infinite;
}

/* 管线流动动画 */
@keyframes dashMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 44px 0;
    }
}

/* 其他动画（绑定变量） */
@keyframes bigBoxPiston {
    0% {
        transform: translateX(-50%) scaleY(0);
    }
    100% {
        transform: translateX(-50%) scaleY(1);
    }
}

@keyframes videBigPiston {
    0% {
        transform: translateY(-50%) scaleX(0);
    }
    100% {
        transform: translateY(-50%) scaleX(1);
    }
}

@keyframes pistonMask {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

@keyframes pistonMaskReset {
    0% {
        transform: scaleX(1);
    }
    99.9% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes stripeRevealMask {
    0% {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
    90% {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
    95%,
    100% {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
}

/* 右侧 */
.content-right,
.contentRight {
  width: 25%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 今日值班班长模块 */
.right-first,
.dutyCard {
  width: 82%;
  background: #002850;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35) inset,
    0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2% 4% 4%;
  margin: 2% auto;
  margin-left: 7%;
}

.dutyHeader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2vw;
  line-height: 1.2;
  padding: 2% 0 1.5%;
  color: white;
}

.dot {
  width: 6%;
  aspect-ratio: 1 / 1;
  border: 0.35vw solid #e6f3ff;
  border-radius: 50%;
}

.dot.left {
  left: 6px;
}

.dot.right {
  right: 6px;
}

.dutyDivider {
  height: 2px;
  width: 100%;
  background: #001c39;
  margin: 2% 0 3%;
}
.dutyBody {
  margin-left: 15%;
}
.dutyRow {
  display: flex;
  align-items: center;
  gap: 4%;
  margin: 2% 0;
  font-size: 1vw;
}

.dutyValue {
  color: #f1f0e7;
  font-size: 0.85vw;
}

/* 实时告警信息模块 */
.right-second,
.block {
  width: 85%;
  margin-bottom: 2%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 20%;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35) inset,
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.alertCard {
  width: 100%;
  height: 100%;
  padding: 5px;
  border: 1px solid rgba(110, 198, 255, 0.3);
  background: #07283f;
  overflow: hidden;
}

.topRibbon {
  width: 100%;
  padding: 3px 0;
  display: flex;
}

.topRibbon img {
  width: 20px;
  height: 8px;
}

.headerBar {
  display: flex;
  align-items: center;
  gap: 2%;
  padding: 2% 3%;
  background: linear-gradient(
    90deg,
    rgba(5, 51, 101, 1) 27%,
    rgba(0, 14, 28, 1) 107%
  );
  font-size: 1.1vw;
  color: #80ffff;
}

.headerIcon {
  width: 5%;
  min-width: 18px;
  height: auto;
  display: block;
}

.headerIcon::before,
.headerIcon::after {
  content: none !important;
}

.headerTitle {
  color: #0f81bb;
  font-size: 12px;
  letter-spacing: 1px;
}

.alertTable {
  width: 100%;
  font-size: 0.9vw;
  height: 220px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.tableHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  color: #7cbaff;
  position: sticky;
  top: 0;
  background-color: #21415a;
  z-index: 10;
  border-left: 0;
  border-right: 0;
  font-size: 0.7vw;
}

.tableRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1% 1%;
  height: 30px;
  border-bottom: 1px solid rgba(110, 198, 255, 0.12);
  color: #ffffff;
  font-size: 0.7vw;
  text-align: center;
}

.tableRow:nth-child(odd) {
  background: #000e1c;
}

.tableRow:nth-child(even) {
  background: #333c4b;
}

.cellContent {
  width: 50%;
  flex: 1.5;
  color: inherit;
  text-align: center;
  font-size: 0.7vw;
}

.cellDevice {
  width: 25%;
  flex: 1;
  color: inherit;
  text-align: center;
  font-size: 0.7vw;
}

.cellTime {
  width: 40%;
  flex: 1.2;
  color: inherit;
  text-align: center;
  font-size: 0.7vw;
}

/* 能源数据卡片样式 */
.right-third {
  width: 95%;
}

.alertTables,
.energyTiles {
  width: 100%;
  font-size: 0.9vw;
  display: flex;
  gap: 2%;
  background-color: #000e1c;
}

.energyCard {
  width: 100%;
  height: 100%;
  background: #07283f;
  border: 1px solid rgba(110, 198, 255, 0.3);
  overflow: hidden;
  margin-top: 0;
}

.energyRibbon {
  width: 100%;
}

.energyHeaderBar {
  display: flex;
  align-items: center;
  gap: 2%;
  padding: 2% 3% 1.5% 3%;
  background: linear-gradient(
    90deg,
    rgba(24, 98, 150, 0.5) 0%,
    rgba(24, 98, 150, 0.15) 100%
  );
}

.energyIcon {
  width: 5%;
  min-width: 18px;
  height: auto;
  display: block;
}

.energyIcon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.energyTitle {
  color: #9fd9ff;
  font-size: 1vw;
  letter-spacing: 1px;
}

.energyTile {
  flex: 1 1 0;
  padding: 2.5% 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tileTop {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2%;
  position: relative;
  background-color: #181f30;
}

.tileIcon {
  position: static;
  width: 25%;
  max-width: 30px;
  height: auto;
  opacity: 0.35;
  margin-bottom: 2%;
}

.tileValueRow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.tileValue {
  color: #e8f6ff;
  font-size: 1vw;
}

.tileUnit {
  font-size: 0.7vw;
  color: #e8f6ff;
  margin-top: 5px;
}

.tileLabel {
  color: #ffffff;
  font-size: 0.8vw;
  margin-top: 5px;
}

/* 图表模块 */
.chartCard {
  width: 100%;
  height: 100%;
  background: #07283f;
  border: 1px solid rgba(110, 198, 255, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chartRibbon {
  width: 100%;
}

.chartHeaderBar {
  display: flex;
  align-items: center;
  gap: 2%;
  padding: 1.5% 3%;
  background: linear-gradient(
    90deg,
    rgba(24, 98, 150, 0.5) 0%,
    rgba(24, 98, 150, 0.15) 100%
  );
}

.chartIcon {
  width: 5%;
  min-width: 18px;
  height: auto;
  display: block;
}

.chartTitle {
  color: #9fd9ff;
  font-size: 1vw;
  letter-spacing: 1px;
}

.chartBody {
  flex: 1 1 auto;
  padding: 1% 2% 2% 2%;
}

#tempChart {
  width: 100%;
  height: 100%;
  min-height: 180px;
}