* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

/* 声明字体*/
@font-face {
  font-family: electronicFont;
  src: url(../font/DS-DIGIT.TTF);
}

body {
  height: 100vh;
  overflow: hidden;
  background: url(../images/bg.jpg) no-repeat top center;
  line-height: 1.15;
}

body::after {
  content: "";
  position: fixed;
  inset: -30%;
  background: radial-gradient(circle at 30% 20%,
      rgba(2, 166, 181, 0.12) 0%,
      rgba(2, 166, 181, 0) 48%),
    radial-gradient(circle at 70% 80%,
      rgba(255, 235, 123, 0.1) 0%,
      rgba(255, 235, 123, 0) 45%);
  animation: bgFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

header,
.mainbox {
  position: relative;
  z-index: 1;
}

header {
  position: relative;
  height: 1.25rem;
  background: url(../images/head_bg.png) no-repeat;
  background-size: 100% 100%;
}

header h1 {
  font-size: 0.8rem;
  color: #f7fdf7;
  text-align: center;
  line-height: 1rem;
}

header .sync-meta {
  position: absolute;
  right: 0.3rem;
  top: 0.08rem;
  display: flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.16rem;
  color: rgba(210, 236, 255, 0.9);
}

header .sync-dot {
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 50%;
  background: #3cff8f;
  box-shadow: 0 0 10px rgba(60, 255, 143, 0.85);
  animation: syncPulse 1.8s ease-in-out infinite;
}

header .showTime {
  position: absolute;
  right: 0.375rem;
  top: 0;
  line-height: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.25rem;
}

.mainbox {
  display: flex;
  min-width: 1024px;
  max-width: 1920px;
  height: calc(100vh - 1.25rem);
  margin: 0 auto;
  padding: 0.125rem 0.125rem 0;
  overflow: hidden;
}

.mainbox .column {
  flex: 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mainbox .column:nth-child(2) {
  flex: 5;
  margin: 0 0.125rem 0.1875rem;
  overflow: hidden;
}

.mainbox .panel {
  position: relative;
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 0 0.1875rem 0.5rem;
  border: 1px solid rgba(25, 186, 139, 0.17);
  margin-bottom: 0.1875rem;
  background: url(../images/line\(1\).png) rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mainbox .panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-left: 2px solid #02a6b5;
  border-top: 2px solid #02a6b5;
  content: "";
}

.mainbox .panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #02a6b5;
  border-top: 2px solid #02a6b5;
  content: "";
}

.mainbox .panel .panel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.mainbox .panel .panel-footer::before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-left: 2px solid #02a6b5;
  border-bottom: 2px solid #02a6b5;
  content: "";
}

.mainbox .panel .panel-footer::after {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #02a6b5;
  border-bottom: 2px solid #02a6b5;
  content: "";
}

.mainbox .column:first-child .panel:first-child {
  flex: 0 0 auto;
  height: auto;
}

.mainbox .bar {
  flex: 1;
  padding: 0 0.06rem 0.02rem;
}

.mainbox .bar h2 {
  position: absolute;
  top: -0.15rem;
  left: 0;
  right: 0;
  z-index: 2;
  height: 0.3rem;
  line-height: 0.3rem;
  font-size: 0.21rem;
  pointer-events: none;
}

.mainbox .bar .chart {
  height: 100%;
}

.mainbox .bar2 {
  flex: 2.40;
  padding: 0 0.06rem 0.02rem;
}

.mainbox .bar2 h2 {
  position: absolute;
  top: -0.2rem;
  left: 0;
  right: 0;
  z-index: 2;
  height: 0.3rem;
  line-height: 0.3rem;
  font-size: 0.21rem;
  pointer-events: none;
}

.mainbox .bar2 .chart {
  height: 100%;
}

.mainbox .column:first-child .bar {
  flex: 2.35;
}

.mainbox .panel h2 {
  height: 0.6rem;
  color: #fff;
  line-height: 0.6rem;
  text-align: center;
  font-size: 0.25rem;
  font-weight: 400;
}

.mainbox .panel h2 a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.125rem;
}

.mainbox .panel .chart {
  flex: 1;
  min-height: 0;
  height: auto;
  position: relative;
  overflow: hidden;
  animation: chartPulse 6s ease-in-out infinite;
}

.mainbox .panel .chart::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -55%;
  width: 50%;
  height: 140%;
  background: linear-gradient(115deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(12deg);
  animation: chartSweep 7s linear infinite;
  pointer-events: none;
}

.mainbox .panel:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 166, 181, 0.5);
  box-shadow: 0 8px 22px rgba(2, 166, 181, 0.22);
}

.alarm-records {
  flex: 1 !important;
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0.2rem !important;
}

.alarm-records h2 {
  margin-bottom: 0.1rem;
}

.records-wrap {
  height: calc(100% - 0.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  position: relative;
  overflow: hidden;
}

.overview-row {
  position: relative;
  overflow: hidden;
  padding: 0.08rem 0.04rem;
  border: 1px solid rgba(2, 166, 181, 0.16);
  background: rgba(8, 36, 54, 0.18);
}

.overview-stat {
  min-width: 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.glow-scan::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -55%;
  width: 44%;
  height: 150%;
  background: linear-gradient(115deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(12deg);
  animation: chartSweep 7s linear infinite;
  pointer-events: none;
}

.record-half {
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(2, 166, 181, 0.22);
  background: rgba(8, 36, 54, 0.35);
  padding: 0.1rem 0.12rem;
  position: relative;
  overflow: hidden;
}

.record-half.v-scan-down::after,
.record-half.v-scan-up::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 42%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.record-half.v-scan-down::after {
  top: -45%;
  animation: recordScanDown 6.5s linear infinite;
}

.record-half.v-scan-up::after {
  bottom: -45%;
  animation: recordScanUp 6.5s linear infinite;
}

.record-half h3 {
  color: #9fd6ff;
  font-size: 0.19rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.record-window {
  height: calc(100% - 0.34rem);
  overflow: hidden;
}

.record-track {
  margin: 0;
  padding: 0;
}

.record-track li {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.2fr 0.9fr;
  align-items: center;
  gap: 0.1rem;
  color: rgba(240, 247, 255, 0.88);
  font-size: 0.16rem;
  line-height: 1.5;
  padding: 0.06rem 0.04rem;
  border-bottom: 1px dashed rgba(159, 214, 255, 0.2);
}

.record-track li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-track li span:last-child {
  justify-self: end;
}

.record-track .level {
  border-radius: 0.08rem;
  padding: 0.01rem 0.08rem;
  font-size: 0.14rem;
}

.record-track .level.high {
  color: #ff9f9f;
  background: rgba(255, 53, 53, 0.16);
  animation: alertBlink 1.4s ease-in-out infinite;
}

.record-track .level.mid {
  color: #ffd689;
  background: rgba(255, 180, 39, 0.16);
}

.record-track .level.low {
  color: #88ffcf;
  background: rgba(0, 202, 138, 0.16);
}

.record-track li:only-child {
  opacity: 0.82;
  font-style: italic;
}

.up-scroll {
  animation: recordScrollDown 80s linear infinite;
}

.down-scroll {
  animation: recordScrollDown 80s linear infinite;
}

.record-window:hover .up-scroll,
.record-window:hover .down-scroll {
  animation-play-state: paused;
}

.no {
  flex-shrink: 0;
  background: rgba(101, 132, 226, 0.1);
  padding: 0.1875rem;
}

.no .no-hd {
  position: relative;
  border: 1px solid rgba(25, 186, 139, 0.17);
}

.no .no-hd::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 30px;
  height: 10px;
  border-top: 2px solid #02a6b5;
  border-left: 2px solid #02a6b5;
}

.no .no-hd::after {
  position: absolute;
  bottom: 0;
  right: 0;
  content: "";
  width: 30px;
  height: 10px;
  border-right: 2px solid #02a6b5;
  border-bottom: 2px solid #02a6b5;
}

.no .no-hd ul {
  display: flex;
}

.no .no-hd ul li {
  position: relative;
  flex: 1;
  line-height: 1rem;
  font-size: 0.875rem;
  color: #ffeb7b;
  text-align: center;
  font-family: "electronicFont";
}

.no .no-hd ul li::after {
  content: "";
  position: absolute;
  top: 25%;
  right: 0;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.no .no-bd ul {
  display: flex;
}

.no .no-bd ul li {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.225rem;
  height: 0.5rem;
  line-height: 0.5rem;
  padding-top: 0.125rem;
}

.map {
  position: relative;
  flex: 1;
  min-height: 0;
  height: auto;
}

.map .map1 {
  width: 6.475rem;
  height: 6.475rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url(../images/map.png);
  background-size: 100% 100%;
  opacity: 0.3;
  animation: mapBreath 8s ease-in-out infinite;
}

.map .map2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8.0375rem;
  height: 8.0375rem;
  background: url(../images/lbx.png);
  animation: rotate1 15s linear infinite;
  opacity: 0.6;
  background-size: 100% 100%;
}

.map .map3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7.075rem;
  height: 7.075rem;
  background: url(../images/jt.png);
  animation: rotate2 10s linear infinite;
  opacity: 0.6;
  background-size: 100% 100%;
}

.map #container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.map #containerCQ {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.map .inline-title {
  display: inline;
  margin-right: 10px;
  /* 添加一些右边距，使标题之间有间隔 */
  color: aliceblue;
}

.map .chart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes rotate1 {
  form {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotate2 {
  form {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* 约束屏幕尺寸 */
@keyframes bgFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.05);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chartPulse {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08);
  }
}

@keyframes chartSweep {
  0% {
    left: -55%;
  }

  100% {
    left: 130%;
  }
}

@keyframes mapBreath {

  0%,
  100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes recordScrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes recordScrollDown {
  0% {
    transform: translateY(-50%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes recordScanDown {
  0% {
    top: -45%;
  }

  100% {
    top: 105%;
  }
}

@keyframes recordScanUp {
  0% {
    bottom: -45%;
  }

  100% {
    bottom: 105%;
  }
}

.fx-fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.75s ease var(--delay, 0s) forwards;
}

.dynamic-number {
  text-shadow: 0 0 10px rgba(255, 235, 123, 0.4);
}

.number-bump {
  animation: numberBump 0.5s ease;
}

.panel-sync-flash {
  animation: syncFlash 0.95s ease;
}

@keyframes syncFlash {
  0% {
    box-shadow: 0 0 0 rgba(2, 166, 181, 0);
    border-color: rgba(25, 186, 139, 0.17);
  }

  35% {
    box-shadow: 0 0 25px rgba(2, 166, 181, 0.45);
    border-color: rgba(2, 166, 181, 0.75);
  }

  100% {
    box-shadow: 0 0 0 rgba(2, 166, 181, 0);
    border-color: rgba(25, 186, 139, 0.17);
  }
}

@keyframes syncPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.22);
    opacity: 0.68;
  }
}

@keyframes alertBlink {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 53, 53, 0);
  }

  50% {
    box-shadow: 0 0 14px rgba(255, 53, 53, 0.5);
  }
}

@keyframes numberBump {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  40% {
    transform: scale(1.12);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  body::after,
  .mainbox .panel .chart,
  .mainbox .panel .chart::after,
  .glow-scan::after,
  .record-half.v-scan-down::after,
  .record-half.v-scan-up::after,
  .map .map1,
  .map .map2,
  .map .map3,
  .fx-fade-up,
  .number-bump,
  .record-track .level.high,
  header .sync-dot {
    animation: none !important;
  }
}

@media screen and (max-width: 1440px) {
  html {
    font-size: 46px !important;
  }
}

@media screen and (min-width: 2560px) {
  html {
    font-size: 88px !important;
  }
}