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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #181818;
  color: #fff;
  overflow: hidden;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  height: 56px;
  background-color: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.app-title {
  font-size: 18px;
  color: #ffffff;
}

#page-container {
  flex: 1;
  overflow: hidden;
}

.tabbar {
  height: 60px;
  background-color: #181818;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #333;
}

.tabbar-item {
  background: none;
  border: none;
  color: #cccccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
}

.tabbar-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.tabbar-item.active {
  color: #a7fb9d;
}

.page {
  padding: 12px;
}

.placeholder-card {
  padding: 16px;
  border-radius: 8px;
  background: #292929;
  text-align: center;
  color: #999;
  margin-top: 24px;
}

/* ---- 监控首页（home）样式，来自小程序 WXSS，适配为 H5 ---- */

.header {
  display: flex;
  position: relative;
  justify-content: center;
}

.header .left_img {
  width: 32px;
  height: 32px;
  position: absolute;
  left: 12px;
  top: 12px;
}

.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  line-height: 54px;
  font-size: 18px;
}

.body {
  min-height: 70vh;
  padding-bottom: 50px;
}

.center_body {
  width: 92%;
  margin-left: 4%;
  padding-top: 4%;
  overflow: hidden;
  border-radius: 10px;
}

.center_text {
  text-align: center;
}

.tips {
  margin-top: -10px;
  margin-bottom: 10px;
  opacity: 0.6;
}

/* 监控页顶部设备名称与温度之间预留 10px 间距 */
.new_body_hezi .center_text {
  margin-top: 5px;
}

.top_num {
  text-align: center;
  padding-top: 8px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0;
  margin-top: -5px;
}

.success_btn {
  background-color: #6bff98;
}

.warning_btn {
  background-color: #f09a41;
}

.p {
  color: #fff;
  font-size: 14px;
}

.btn {
  margin: 0 auto;
  width: 60px;
  padding: 4px 0;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  color: #0a0a0a;
}

.sheshi {
  font-size: 16px;
  margin-top: -20px;
  margin-left: 8px;
}

.red_text {
  color: red !important;
}

.active {
  color: #f09a41 !important;
  font-weight: bold;
}

.one_body {
  width: 100%;
  height: 100%;
  padding-top: 40px;
  background: url(https://panlv.reelshorm.com/assets/home_bgc.png) no-repeat center center;
  background-size: cover;
}

/* ---- 登录页样式 ---- */

.login_body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
}

.login_panel {
  width: 82%;
  max-width: 360px;
  padding: 20px 18px 22px;
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.login_header {
  margin-bottom: 16px;
}

.login_title {
  font-size: 20px;
  font-weight: 600;
}

.login_subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.login_field {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.login_label {
  font-size: 13px;
  margin-bottom: 4px;
}

.login_input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
}

.login_input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login_error {
  margin-top: 10px;
  font-size: 12px;
  color: #ff6b6b;
}

.login_btn {
  margin-top: 18px;
  width: 100%;
  padding: 9px 0;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #0a0a0a;
  background: linear-gradient(135deg, #42cab1, #a7fb9d);
  cursor: pointer;
}

.new_body_hezi {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  transform: none;
  background: url(https://panlv.reelshorm.com/assets/quan.png);
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.shuchu_body {
  width: 92%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.shuchu_li {
  width: 48%;
  height: 86px;
  background: url(https://panlv.reelshorm.com/assets/shuchu_bgc.png) no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
}

.shu_icon {
  width: 32px;
  height: 32px;
  margin-left: 16px;
}

.shuchu_right {
  font-size: 14px;
  margin-left: 10px;
  margin-top: 6px;
  flex: 1;
  min-width: 0;
}

.out_text {
  color: #fff;
}

.item_menu_body {
  display: flex;
  width: 92%;
  margin: 0 auto;
  justify-content: space-around;
  margin-top: 10px;
}

.item_menu {
  color: #fff;
  text-align: center;
}

.item_image {
  width: 70px;
  height: 70px;
  margin-bottom: 6px;
}

.item_text {
  opacity: 0.9;
  font-size: 15px;
}

.close_kai {
  width: 140px;
  height: 140px;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 20px;
}

.hezi_ul {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.hezi_li {
  width: 49%;
  height: 86px;
  line-height: 86px;
  background: url(https://panlv.reelshorm.com/assets/shuchu_bgc.png) no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.he_text {
  margin-left: 26px;
}

.i_switch {
  margin-top: 26px;
  margin-right: 20px;
}

.hezi {
  width: 100%;
  color: #fff;
  border-radius: 10px;
  padding-bottom: 10px;
  padding-top: 8px;
}

.tuijian_text {
  margin-left: 10px;
  font-size: 18px;
}

.wenkong {
  display: flex;
  justify-content: space-between;
  width: 98%;
  margin: 0 auto;
  margin-top: 8px;
}

.wenkong .wenkong_text {
  width: 23%;
  height: 54px;
  background-size: 100% 100%;
}

.wenkong .wenkong_t {
  width: 40%;
  height: 66px;
  background-size: 100% 100%;
  background: url(https://panlv.reelshorm.com/assets/shuchu_bgc.png) no-repeat;
  background-size: 100% 100%;
  text-align: center;
  line-height: 66px;
}

.wenkong .wen_ac {
  color: #eea85a;
  font-weight: bold;
}

.qidong_text {
  display: flex;
  padding: 8px 16px;
  font-size: 14px;
  align-items: center;
}

.qidong_text input {
  display: block;
  width: 46px;
  border-radius: 10px;
  height: 20px;
  line-height: 18px;
  border: 1px solid #e45930;
  margin: 0 8px;
  transform: translateY(1px);
  text-align: center;
  color: #fff;
  background-color: transparent;
}

.new_one {
  width: 93%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.new_one1,
.new_one2 {
  display: flex;
  align-items: center;
}

.one_text {
  font-size: 20px;
  margin-left: 4px;
  margin-top: -2px;
}

.dian_body {
  width: 85%;
  border-radius: 16px;
  border: 3px solid #7ac583;
  margin: 8px auto;
  height: 34px;
  position: relative;
}

.dian_img {
  width: 100%;
  height: 96%;
  margin-top: 0.5%;
}

.yidu_dian {
  position: absolute;
  height: 100%;
  border-radius: 16px;
  opacity: 0.3;
  background-color: #83ef91;
}

.new_box {
  background: url(https://panlv.reelshorm.com/assets/wen_bgc.png) no-repeat;
  background-size: 100% 100%;
  margin-top: 6px;
  padding: 8px 10px;
}

.new_box img {
  width: 36px;
  height: 36px;
  margin-right: 4px;
}

.box_li {
  margin-bottom: 4px;
}

.box_top {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.box_bottom {
  width: 95%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.i_slider {
  width: 80%;
  margin-left: 8px;
}

.bot_text {
  width: 26px;
  text-align: right;
}

/* ---- 高阶设置页（highConfig）样式 ---- */

.high_body {
  padding-top: 40px;
  height: 100%;
}

.high_panel {
  width: 88%;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.high_panel_header {
  margin-bottom: 12px;
}

.high_title {
  font-size: 18px;
  font-weight: 600;
}

.high_subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.high_row {
  margin-top: 12px;
  display: flex;
  align-items: center;
}

.high_password_row {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
}

.high_row_label {
  font-size: 14px;
  margin-right: 8px;
  white-space: nowrap;
}

.high_input {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.high_input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.high_btn {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  color: #0a0a0a;
  background: linear-gradient(120deg, #42cab1, #e1ffb1);
  cursor: pointer;
}

.high_toggle_row {
  justify-content: flex-start;
}

.high_toggle_label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.high_toggle_label input {
  width: 16px;
  height: 16px;
}

.high_tips {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.highView {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(to bottom, #304851, #06080a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highView-center {
  width: 72vw;
  padding: 8vw 4vw;
  background: url("https://panlv.reelshorm.com/assets/config/bggao.png") no-repeat;
  background-size: 100% auto;
}

.password_body {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  width: 95%;
  margin: 0 auto;
  height: 12vw;
  font-size: 4.2vw;
  background: url("https://panlv.reelshorm.com/assets/config/input.png") no-repeat;
  background-size: 100% auto;
  padding: 0 2vw;
  margin-top: 3vw;
}

.password_input {
  width: 30vw;
  margin: 0 2vw;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
}

.exit_button {
  width: 13vw;
  height: 8vw;
  text-align: center;
  line-height: 8vw;
  border-radius: 2vw;
  background: linear-gradient(110deg, #42cab1, #224240, #17282e);
  font-size: 3.4vw;
}

.pass_btn {
  width: 32vw;
  color: #fff;
  padding-left: 2vw;
  height: 5.4vh;
  display: flex;
  align-items: center;
  background: url(https://panlv.reelshorm.com/assets/config/8.png);
  background-size: 100% 100%;
  margin: 0 auto;
  font-size: 3.8vw;
  margin-top: 2.5vw;
}

.switch_item {
  transform: scale(0.8);
  margin-right: 2vw;
}

.pass_text {
  margin-right: 1vw;
}

