/* 设计稿宽度 750px，1rem = 100px（750 设计稿） */
html {
  font-size: calc(100vw / 7.5);
}
/* 桌面浏览时限制最大宽度，按比例放大字号 */
@media (min-width: 560px) {
  html {
    font-size: 74.66px;
  }
  body {
    max-width: 560px;
    margin: 0 auto;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background-color: #ffffff;
}

.monitor-box {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  overflow-y: auto;
}

.monitor-main {
  padding: 0.8rem 0.2rem 0.2rem;
}

/* ---- 顶部用户信息 ---- */
.monitor-main__info {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.monitor-main__info .avatar {
  width: 0.96rem;
  height: 0.96rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f2f2f2;
}

.monitor-main__info .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-main__info .info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}

.info__name {
  font-size: 0.32rem;
  font-weight: 500;
  color: #333333;
  line-height: 0.44rem;
  margin-bottom: 0.04rem;
}

.info__desc {
  font-size: 0.24rem;
  font-weight: 400;
  color: #666666;
  line-height: 0.34rem;
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.info__sign {
  display: inline-block;
  padding: 0.1rem 0.2rem;
  line-height: 0.32rem;
  font-size: 0.24rem;
  font-weight: 500;
  color: #333333;
  text-align: left;
  border-radius: 0.3rem;
  border: 0.02rem solid #4e4e4e;
}

.monitor-main__info .status {
  width: 2.36rem;
  flex-shrink: 0;
}

.monitor-main__info .status img {
  position: relative;
  width: 100%;
  right: -0.2rem;
}

/* ---- 指标卡片 ---- */
.monitor-main__list {
  margin-bottom: 0.52rem;
}

.monitor-main__list .item {
  width: 100%;
  position: relative;
  margin-bottom: 0.28rem;
}

.monitor-main__list .item > img {
  width: 100%;
  display: block;
}

.monitor-main__list .item h4 {
  font-size: 0.36rem;
  font-weight: bold;
  line-height: 0.5rem;
  margin-bottom: 0.2rem;
  color: #333;
}

.monitor-main__list .item .info {
  position: absolute;
  top: 0.64rem;
  left: 0.96rem;
}

.textva {
  font-size: 0.56rem;
  font-weight: 500;
  color: #333333;
  line-height: 0.8rem;
}

.textva em {
  display: inline-block;
  font-style: normal;
  animation: shake 1s ease-in 0s infinite alternate;
  margin-right: 0.06rem;
}

.textva span {
  display: inline-block;
  font-size: 0.28rem;
  font-weight: 400;
  color: #717171;
  line-height: 0.4rem;
}

@keyframes shake {
  from {
    transform: translateY(-0.02rem);
    color: #b5b5b5;
  }
  to {
    transform: translateY(0.01rem);
    color: #000;
  }
}

.textvb {
  font-size: 0.28rem;
  font-weight: 500;
  color: #333333;
  line-height: 0.4rem;
}

/* ---- 底部状态提示 ---- */
.monitor-main__bottom {
  width: 100%;
  text-align: center;
  font-size: 0.28rem;
  font-weight: 500;
  color: #333333;
  line-height: 0.4rem;
  margin-bottom: 0.04rem;
}

.monitor-main__bottom .warn-icon {
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  line-height: 0.32rem;
  border-radius: 50%;
  background: #ff6c40;
  color: #fff;
  font-size: 0.24rem;
  text-align: center;
  vertical-align: middle;
  margin-right: 0.06rem;
}

.monitor-main__bottom p {
  font-size: 0.24rem;
  font-weight: 500;
  color: #999999;
  line-height: 0.34rem;
  width: 80%;
  text-align: center;
  margin: 0.08rem auto;
}

/* ---- 离线页 ---- */
.offline-box {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding-bottom: 1.5rem;
}

.offline-box img {
  width: 3.6rem;
  margin-bottom: 0.4rem;
}

.offline-title {
  font-size: 0.32rem;
  font-weight: 500;
  color: #333;
  line-height: 0.44rem;
  margin-bottom: 0.12rem;
}

.offline-desc {
  font-size: 0.26rem;
  color: #999;
  line-height: 0.36rem;
}
