html {
    font-size: 6px;
    
}
body {
    overflow: hidden;
    flex-direction: column;
    background-color: #202020;
}
.content_main {
    padding: 1.5rem;
}
.head {
    display: flex;
    align-items: center;
    background-color: #363636;
    height: 5rem;
    border-radius: 1.5rem;
}
.head li {
    overflow: hidden;
    margin-left: 1rem;
    width: 13.5rem;
    height: 4.2rem;
    font-size: 2.5rem;
    text-align: center;
    line-height: 4.2rem;
    color: #c1c1c1;
    background-color: #3f3f3f;
    border-radius: 1rem;
    
}
.head li button {
    border: 0;
    width: 13.5rem;
    height: 4.2rem;
    font-size: 2.1rem;
    text-align: center;
    line-height: 4.2rem;
    color: #c1c1c1;
    background-color: #3f3f3f;
}
.head li:last-child{
    
    overflow: hidden;
    /* margin-left: 1rem; */
    margin-left: auto; /* 让 li 右对齐 */
    margin-right: 1rem;
    width: 9.4rem;
    height: 2.9rem;
    line-height: 1.9rem;
    text-align: center;
    color: #c1c1c1;
    background-color: #464646;
    border-radius: 0.8rem;

}
.head li:last-child button {
    border: 0;
    width: 9.4rem;
    height: 2.9rem;
    font-size: 1.3rem;
    text-align: center;
    line-height: 2.9rem;
    color: #3c3c3c;
    background-color: #464646;
    letter-spacing: -0.05rem;
}

.content {
    flex-grow: 1;
    display: flex;
    margin-top: 1.5rem;
    /* margin-bottom: 1.5rem; */
}
.content_1 {
    display: flex;
    width: 100%;
    height: 90vh;
}
.content .left {

    border-radius: 1.5rem;
    background-color: #2d2d2d;
    flex-grow: 35;
    overflow-y: scroll;
    padding-right: 1rem;
    padding-left: 0.5rem;
}

.content .left::-webkit-scrollbar {
    width: 1.2rem;  /* 滚动条宽度 */
}
.content .left::-webkit-scrollbar-thumb
{
    border-radius:0.3rem;
    background-color:#202020;
}
.content .left::-webkit-scrollbar-track {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.content .left li {
    width: fit-content; /* 宽度根据内容调整 */
    margin: 0 1rem;
    margin-top: 2.2rem; 
    height: 6rem;
    background-color: #4d4d4d;
    border-radius: 2rem;
    color: #efefef;
    font-size: 2.2rem;
    letter-spacing: 0.2rem;
    line-height: 6rem;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
}
.content .left .player {
    width: fit-content; 
    margin-left: auto; /* 让 li 右对齐 */
    
    height: 6rem;
    background-color: #4d4d4d;
    border-radius: 2rem;
    color: #efefef;
    font-size: 2.2rem;
    letter-spacing: 0.2rem;
    line-height: 6rem;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
}

.content .left li:last-child{
    margin-bottom: 5rem;
}


.content .right {
    margin-left: 1.8rem;
    flex-grow: 0;
}
.right {

    display: flex;
    flex-direction: column;

}
.right .right_1 {
    height: 41.5rem;
    padding-bottom: 0.5rem;

}
.right .right_2 {
    height: 50.1rem;
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.right .right_3 {

    height: 35rem;
    background-color: #464646;
    border-radius: 1rem;
    overflow-y: scroll;   
    
}
.right .right_3::-webkit-scrollbar {
    width: 1.2rem;  /* 滚动条宽度 */
}
.right .right_3::-webkit-scrollbar-thumb
{
    border-radius:0.3rem;
    background-color:#202020;
}
.right .right_3::-webkit-scrollbar-track {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.right .right_3 li {
    margin: 0 auto;
    margin-top: 1.5rem; 
    min-height: 6rem; 
    width: 38rem;
    overflow-wrap: break-word;  /* 允许单词内换行 */
    white-space: normal;        
    background-color: #2d2d2d;
    border-radius: 2rem;
    color: #bebebe;
    font-size: 2.2rem;
    letter-spacing: 0.2rem;
    line-height: 6rem;
    padding-left: 1.3rem;
    cursor: pointer; 

}
.right .right_3 li:last-child{
    margin-bottom: 1.5rem;
}

.right_1 {
    display: flex;

}
.screen {
    flex-grow: 3;
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
}
.chart {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-around;

}
.chart li {
    position: relative;
    flex-grow: 1;
}

.chart li div {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    top: 0;
    width: 4rem;
    height: 95%;
    padding-bottom: 1.6rem;
    background-color: #2d2d2d;
    border-radius: 1rem;

}

.chart li div .o2 {
    width: 80%;
    /* -----------------------------------------height: 91%;为计量表的值 -----------------------------------*/
    height: 91%;
    background-color: #78a074;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.chart li div .o2::after{
    content: "O2";
    position: absolute;
    bottom: 0;
    font-size: 1.2rem;
    text-align: center;
    color: #c6c6c6;
    height: 1.5rem;
    width: 4rem;
}
.chart li div .h2o {
    width: 80%;
    height: 43%;
    background-color: #6d98a1;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.chart li div .h2o::after{
    content: "H2O";
    position: absolute;
    bottom: 0;
    font-size: 1.2rem;
    text-align: center;
    color: #c6c6c6;
    height: 1.5rem;
    width: 4rem;
}
.chart li div .eng {
    width: 80%;
    height: 53%;
    background-color: #a18a54;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.chart li div .eng::after{
    content: "ENG";
    position: absolute;
    bottom: 0;
    font-size: 1.2rem;
    text-align: center;
    color: #c6c6c6;
    height: 1.5rem;
    width: 4rem;
}
.name {
    flex-grow: 1;
    border-radius: 0.8rem;
    padding-left: 1.3rem;
    height: 3rem;
    font-size: 2rem;
    color: #c6c6c6;
    background-color: #454545;
}
.hrm {
    position: relative;
    flex-grow: 6;
    width: 100%;
    height: 75%;
}
#number {
    /* position: absolute;
    text-align: center;
    right: -0.5rem;
    bottom: -2rem;
    margin: auto;
    font-size: 13rem;
    width: 26rem;
    height: 20rem; */

    position: absolute;
    text-align: center;
    right: -0.5rem;
    bottom: -2rem;
    font-size: 13rem;
    inset: 0rem;
    margin: auto;
    width: 26rem;
    height: 20rem;
    line-height: 20rem;
    
}
#ecgCanvas {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 26rem;
    height: 20rem;
}
.title {
    position: relative;
    flex-grow: 1;
    font-size: 2rem;
    color: #c6c6c6;
    text-align: center;
}

.title:before{
    position: absolute;
    top: 0;
    left: 0;
    content:"";
    width:1.8rem;
    height:3rem;
    border-radius: 0.8rem;
    background-color: #444444;
}

.title:after{
    position: absolute;
    top: 0;
    right: 0;
    content:"";
    width:1.8rem;
    height:3rem;
    border-radius: 0.8rem;
    background-color: #444444;

}

.right_2 .main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 41.7rem;
    height: 97%;
    background-color: #454545;
    border-radius: 1rem;
}
.right_2 .main>div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%; 
    height: 9rem;

}
.right_2 .main .hrmb {
    position: relative;
    margin-left: 1rem;
    background-color: #454545;
    border: 0.2rem solid #212121;
    border-radius: 0.8rem;

}

.right_2 .main .hrmb::after{
    content: "HRM";
    position: absolute;
    bottom: -1.2rem;
    color: #c6c6c6;
    width: 5.5rem;
    text-align: center;
    background-color: #454545;
    font-size: 1.3rem;


}
.right_2 .main .eogb{
    position: relative;
    border: 0.2rem solid #212121;
    border-radius: 0.8rem;

}
.right_2 .main .eogb::after{
    content: "EOG";
    position: absolute;
    bottom: -1.2rem;
    color: #c6c6c6;
    width: 5.5rem;
    text-align: center;
    background-color: #454545;
    font-size: 1.3rem;

}

.right_2 .main .ehb{
    position: relative;
    margin-right: 1rem;
    border: 0.2rem solid #212121;
    border-radius: 0.8rem;

}
.right_2 .main .ehb::after{
    content: "EH";
    position: absolute;
    bottom: -1.2rem;
    color: #c6c6c6;
    width: 5.5rem;
    text-align: center;
    background-color: #454545;
    font-size: 1.3rem;

}
.right_2 .main .msgb{
    position: relative;
    margin-left: 1rem;
    width: 63%;
    border-left: 0.2rem solid #212121;
    color: #bdbdbd;
}

.right_2 .main .msgb .msgb_l{
    font-size: 1.8rem;
    left: 1.5rem;
    position: absolute;
}
.right_2 .main .msgb .msgb_l::after{
    content: "";
    position: absolute;
    top: 1rem;
    left: 6rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: #c66908;

}

.right_2 .main .msgb .msgb_r{
    right: 1rem;
    bottom: 1.5rem;
    position: absolute;
    
}
.right_2 .main .radiob{
    position: relative;
    margin-right: 1rem;
    
    width: 30%; 
    border: 0.2rem solid #212121;
    border-radius: 0.8rem;
}
/* .right_2 .main .radiob::after {
    content: "";
    position: absolute;
    bottom: -15rem;
    left: -2rem;
    color: #c6c6c6;
    width: 129rem;
    height: 23rem;
    text-align: center;
    background-color: #454545;
    border-left: 2rem solid #212121;
    border-right: 2rem solid #212121;
} */
.right_2 .main .radio{
    position: relative;
    margin-left: 1rem;
    margin-right: 1rem;
    width: 95.3%;
    height: 8.4rem;
    border: 0.2rem solid #212121;
    border-radius: 0.8rem;
    /* border-top-right-radius: 0; */
}

/* --------------------收音机图片------------------------ */
.slider-container {
    /* width: 300rem; */
    position: relative;
    width: 97%;
    height: 6.5rem;
  
  }
  img{
      width: 100%;
    user-select: none;       /* 禁用文本/图片选择 */
    -webkit-user-drag: none; /* 禁用WebKit内核拖拽幽灵图 */
    pointer-events: none;    /* 禁用鼠标事件 (慎用) */
  }
  
  .slider-track {
    position: relative;
    top: -4.5rem;
    left: 1.8rem;
    width: 32.9rem;
    height: 0.8rem;
    background: rgba(0, 0, 0, 0);
    border-radius: 0.4rem;
  
  }
  
  .slider-thumb {
    position: relative;
    width: 0.3rem;
    height: 2.8rem;
    background: #d6740b;
    position: absolute;
    top: -0.9rem;
    left: 0;
    cursor: grab;
    transition: transform 0.2s ease;
  }
  .slider-thumb::before{
      position: absolute;
      content: "";
      width: 0;
      height: 0;
      top: -0.6rem;
      left: -0.6rem;
      border-left: 0.8rem solid transparent;
      border-right: 0.9rem solid transparent;
      border-bottom: 0.8rem solid transparent;
      border-top: 1rem solid #d6740b;
  }
  .slider-thumb::after{
      position: absolute;
      content: "";
      width: 2.8rem;
      height: 1.5rem;
      bottom: -1.5rem;
      left: -1.1rem;
      background-color: #646464;
      border-radius: 0.1rem;
  }
  .interval-mark {
    width: 0.2rem;
    height: 1.6rem;
    background: #ff0000;
    position: absolute;
    top: -0.4rem;
  }

  /* ------------------------------------------ */



.bg {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 0.8rem;
    width: 80%;
    height: 75%;
    background-color: #2c2c2c;
    border-radius: 0.5rem;
}
.labels {
    position: absolute;
    left: 0;   /* 水平偏移量 */
    top: -1.8rem;
    z-index: 10;   /* 控制层叠顺序，避免被遮挡 */
    display: flex;
    justify-content: space-around;
    width: 100%;
    font-size: 1.4rem;

  }
  .on-label, .off-label {
    color: #666;
    transition: color 0.3s;
  }
  .on-label.active { color: #fff; }  /* ON高亮色 */
  .off-label.active { color: #fff; } /* OFF高亮色 */
  
  /* 滑动轨道 */
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 9rem;
    height: 5.4rem;
  }
  .toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* 滑块 */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #212121;
    transition: .4s;
    border-radius: 1rem;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 6.2rem;
    width: 3.2rem;
    left: 0;
    bottom: -0.4rem;
    background-color: #656565;
    transition: .4s;
    border-radius: 0.5rem;
  }
  
  /* 开关激活状态 */
  .toggle-input:checked + .slider {
    background-color: #464646;
  }
  .toggle-input:checked + .slider:before {
    transform: translateX(5.8rem);
  }

  .bg.disabled {
    pointer-events: none; 
  }


   /* 弹窗样式 */
   .modal {
    display: none; /* 默认隐藏 */
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    background: #656565;
    z-index: 1000;
    width: 30%;
    height: 40%;
    overflow: auto;
}
.modal::-webkit-scrollbar {
    width: 1.2rem;  /* 滚动条宽度 */
}
.modal::-webkit-scrollbar-thumb
{
    border-radius:0.3rem;
    background-color:#303030;
}
.modal::-webkit-scrollbar-track {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


.modal button{
    margin-top: 5rem;
    border: 0;
    background: #ffffff;
    border-radius: 0.5rem;
    height: 5rem;
    width: 20rem;
    font-size: 2rem;
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 2rem;
}

/* 等待动画 */
.loader {
    display: none;
    position: relative;
    width: 10rem;
    height: 10rem;
    margin: 5rem auto;
    border: 0.1rem solid #b2b0b2;
    border-radius: 50%;
}

.rotator {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.ball {
    position: absolute;
    top: -0.7rem; /* 调整小球到边框外侧 */
    left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    background: #b2b0b2;
    border-radius: 50%;
    transform: translateX(-50%);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); } 
    80% { transform: rotate(360deg); } 
    100% { transform: rotate(360deg); } 
}
.loader-img{
    position: absolute;
    top: 1.3rem;
    left: 1.3rem;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    overflow: hidden;
}




