.cover{
    width: 100%;
    height: 100vh;
    position:fixed;
    top:0px;
    left: 0px;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: larger;
    font-weight: 300;
    background-color: rgb(31 41 55);
    opacity: 0.8;

  }

  .loading {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    text-align: center;
    color: white;
    font-size: 24px;
    line-height: 100vh;

  }

  #circle {
    width: 1.2rem; /* 圆的宽度 */
    height: 1.2rem; /* 圆的高度 */
    background-color: green; /* 初始颜色 */
    border-radius: 50%; /* 使其变成圆形 */
    margin-left: 5px;
    margin-top: 1px;
}

  .popupLarge{
    background-color:#FFFFFF;
    border:1px solid #999999;
    cursor:default;
    display:none;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 15px;
    position:fixed;
    text-align:left;
    
    z-index:50;
    padding: 25px 25px 20px;
    border-radius: 10px;
    width: 90%; /* 默认占屏幕宽度的90%，适配小屏幕 */
    max-width: 400px;

  }

.tab-container {
    width: 100%;
    max-width: 100vw;  /*限制桌面端宽度 */    
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: hidden; /* 防止水平滚动条 */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

/* 固定顶部层 */
.fixed-header {
    font-size: 16px;
    width: 100%; 
    max-width: 100vw;  
    color: #007bff;
    text-align: center;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: hidden; /* 防止水平滚动条 */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.tab-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    border-top: 2px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-x: hidden; 
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}




.tab-footer button {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    outline: none;
    border-top: 3px solid transparent;
    line-height: 1.5;
    
}




.tab-footer button.active {
    font-weight: bold;
    color: #007bff;
    border-top-color: #007bff;
}



.tab-header button.active {
    font-weight: bold;
    color: #007bff;
    border-bottom-color: #007bff;
}

/* 选项卡内容 */
.tab-content {
    padding: 15px;
    padding-bottom: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
}

.sub-tab-header {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    padding: 5px;
    flex-wrap: wrap;
  }

  .sub-tab-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ccc;
  }

  .sub-tab-btn {
    padding: 8px 10px;
    border: none;
    background: none;
    font-size: 15px;
    color: #555;
    cursor: pointer;
  }

  .sub-tab-btn.active {
    color: #007bff;
    font-weight: bold;
  }

  .refresh-btn {
    padding: 8px 10px;
    background-color: #f0f0f0;
    border-left: 1px solid #ccc;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .sub-tab-content {
    display: none;
  }

  .sub-tab-content.active {
    display: block;
  }

/* 响应式设计 */
@media (max-width: 600px) {
    .tab-header button {
        font-size: 14px;
        padding: 8px 0;
    }

    .tab-content {
        font-size: 16px;
        padding: 10px;
        padding-bottom: 2rem;
    }
}

.config-content form { margin: 0.5rem 0; display: flex; flex-direction: column; width: 100%;align-items: center;
}

.config-content label { font-weight: bold; margin-bottom: 0.5em;  }

.loginForm {

    border-radius:5px;
    padding: 3rem;
    background-color: rgb(121,174,200,0.8);;
    margin: 2rem;
   


  
}

.loginForm input {
    border: #fff;
}

.loginForm label {
    color: #fff;
}

.loginForm  button {
    background-color: #fff;
    height: 2rem;
    margin-top: 1rem;
    font-size: 1rem;
    border: #fff;
    border-radius: 10px;
    color: #377ba8;
    cursor: pointer;
    width: 8rem;
}

.loginContainer{
    display: flex;
    align-items: center;
    border-radius:5px;
    
    background-size: 100% ;
    justify-content: center;
    height: 100%;
    padding-bottom: 2rem;
}

.loginImg {
    margin-right: 4rem;

}

input:not([type="submit"]):not([type="checkbox"])  {
    border: #377ba8 1px solid;
    border-radius: 5px;
    width: 8rem;
    padding: 4px;
    
  }

 select {
    border: #377ba8 1px solid;
    padding: 4px;


    border-radius: 5px;

  }

  * {
    font-size: 105%;
  }

  /* 自适应 iframe 样式 */
  .iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例（宽高比） */
    height: 100%;
}
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* 可选：去掉边框 */
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(24px);
}



/* rgb灯样式 */
   /* Dropdown full width */
  #tab6 .dropdown-row {
    width: 100%;
    margin-bottom: 20px;
  }

  #tab6 select {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
  }

  /* Toggle button (real sliding switch) */
  #tab6 .toggle-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
  }

  #tab6 .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px;
  }

  #tab6 .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  #tab6 .rgb_slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
  }

  #tab6 .rgb_slider-switch:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }

  #tab6 .switch input:checked + .rgb_slider-switch {
    background-color: #4CAF50;
  }

  #tab6 .switch input:checked + .rgb_slider-switch:before {
    transform: translateX(26px);
  }

  /* Input boxes */
  #tab6 .input-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
  }

  #tab6 .input-boxes input {

    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 16px;
    box-sizing: border-box;
  }

  #tab6 .input-boxes label {
    font-weight: bold;
    font-size: 16px;
  }

  /* Sliders */
  #tab6 .rgb_slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    position: relative;
  }

  #tab6 .label {
    width: 30px;
    text-align: center;
    margin-right: 10px;
    font-weight: bold;
    font-size: 18px;
  }

  #tab6 .rgb_slider-wrapper {
    position: relative;
    flex: 1;
  }

  #tab6 .rgb_slider {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
  }

  #tab6 .rgb_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    border: none;
  }

  #tab6 .rgb_slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    border: none;
  }

  #tab6 .rgb_slider.r::-webkit-slider-thumb { background: red; }
  #tab6 .rgb_slider.g::-webkit-slider-thumb { background: green; }
  #tab6 .rgb_slider.b::-webkit-slider-thumb { background: blue; }
  #tab6 .rgb_slider.r::-moz-range-thumb { background: red; }
  #tab6 .rgb_slider.g::-moz-range-thumb { background: green; }
  #tab6 .rgb_slider.b::-moz-range-thumb { background: blue; }

  #tab6 .value-floating {
    position: absolute;
    top: -30px;
    background: #333;
    color: #fff;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    transform: translateX(-50%);
    display: none;
    pointer-events: none;
    white-space: nowrap;
  }

  #tab6 .value-final {
    width: 40px;
    text-align: center;
    margin-left: 10px;
    font-weight: bold;
    font-size: 16px;
  }

  /* Preview box */
  #tab6  .color-preview {
    height: 50px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }


  .alert-row {
    display: flex;
    padding: 6px 10px;
    flex-direction: column; 
    border-bottom: 1px solid #ddd;
  }

  .alert-time {
    /* width: 180px;  固定宽度对齐 */
    
    font-weight: bold;
    color: #555;
  }

  .alert-content {
    
    flex: 1;
    color: #b30000;
  }

  .tab-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
  }

  .tab-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .tab-scroll::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 3px;
  }


  .pop-close-btn {
    position: absolute;
    top: 10px;
    right: 18px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }


  .loader {
    border: 8px solid #f3f3f3;       /* Light grey */
    border-top: 8px solid #3498db;    /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 100px auto;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  #sendVerCode:disabled {
  background: #eee;
  color: #999;
  border: 1px solid #ccc;
  cursor: not-allowed;
  font-size: small;
}