* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

.page-container {
  margin: 0 auto;
  background-color: #f6f7f8;el-select__wrapper
}

.header {
  height: 80px;
  text-align: center;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid #eaeaea;
  background-color: #ffffff;
}

.header-content {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.user-card {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.user-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site-info {
  display: flex;
  align-items: center;
  justify-content: start;
  height: 100%;
}

.site-logo {
  width: 48px;
  height: 48px;
  margin-right: 2px;
}

.site-nav-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 16px;
  color: #555;
  font-weight: 200;
  height: 80px;
}

.site-nav {
  height: 50px;
  display: flex;
  background-color: #f1f5f9;
  border-radius: 15px;
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 15px;
  justify-self: end;

  .site-nav-list {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;

    .site-nav-item {
      text-align: center;
      cursor: pointer;
      display: block;
      padding: 10px;
    }
  }

  .active {
    color: #000;
    font-weight: bold;
  }
}

.site-nav-item a {
  color: #000;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.site-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 80px;
  gap: 30px;

  .run-state {
    color: rgb(78, 142, 47);
    font-size: 12px;
    font-weight: 600;
    background-color: #f1f5f7;
    padding: 2px 15px;
    border-radius: 10px;
    height: 20px;
  }
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  display: none;
  cursor: pointer;
}

.menu-vertical {
  border: none;
}

.buttons {
  display: flex;
  justify-content: right;
  margin-bottom: 20px;
}

.tabbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  /* 给TabBar一个明确的高度 */
  background-color: #fff;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 自定义标签样式，使其在底部更美观 */
.tabbar-item {
  flex: 1;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  
}
.tabbar-item a{
  color: rgb(115, 118, 122);
}
.tabbar-item .router-link-active {
  color: rgb(196, 86, 86);
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.items-center {
  align-items: center;
}

.flex {
  display: flex;
}

.font-medium {
  font-weight: 500;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.justify-between {
  justify-content: space-between;
}

.equipment-page-header {
  display: none;
  background-color: rgb(223, 32, 32);
  color: #fff;
  padding: 10px 10px 20px 0;
}

.statistic-item {
  text-align: center;
  flex: 1;
  padding: 10px;
}

.breadcrumb {
  margin-bottom: 30px;
}

.statistic-item {
  background-color: hsl(0deg 0% 100% / 10%);
}

.statistic-val {
  font-size: 18px;
  font-weight: 800;
}

.statistic-label {
  font-size: 12px;
  font-weight: 100;
}

.device-status-online {
  border-radius: 9999px;
  background-color: hsl(var(--success) / 0.1);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: hsl(var(--success));
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.video-header {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 25px;
  margin-top: 20px;
}

.control-panel {
  background-color: #fff;
  border-left: 1px solid #e5e5e5;
}

.control-mode {
  background-color: #f5f7fa;
}

.control-mode div {
  flex: 1;
}

.control-param {
  margin-top: 20px;
}

.param-item {
  flex: 1 1 calc(50% - 10px);
  background-color: #f1f5f7;
  box-sizing: border-box;
  padding: 5px 14px;
  border-radius: 5px;
}

.param-label span {
  font-size: 14px;
}

.param-value {
  font-size: 14px;
  font-weight: 600;
}

.control-key {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 50px auto;
  background-color: #f1f5f7;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 中心圆点样式 */
.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #ecf0f1;
  border-radius: 50%;
  z-index: 10;
  text-align: center;
  line-height: 45px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 方向按钮通用样式 */
.direction-btn {
  position: absolute;
  width: 80px;
  height: 80px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 各个方向按钮的具体位置 */
.up-btn {
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.down-btn {
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.left-btn {
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
}

.right-btn {
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
}

.video-container .video {
  width: 100%;
  background-color: #000;
  overflow: hidden;
}

.list-box {
  box-sizing: border-box;
  width: 100%;
}

.pagination-container {
  display: flex;
  justify-content: end;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 一行三个，等分 */
  gap: 1px;
  /* 格子间距，也是“内边框”的基础 */
  background-color: #ecf0f1;
  /* 这个颜色会透过gap显示，作为内边框色 */
  width: 100%;
  /* 根据需要调整容器宽度 */
  max-width: 600px;
  /* 可选：限制最大宽度 */
  margin: 0 auto;
  /* 可选：居中显示 */
}

.grid-item {
  background-color: #fff;
  /* 格子背景色，覆盖掉容器背景色 */
  aspect-ratio: 1;
  /* 让格子保持正方形 (可选) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  flex-wrap: wrap;
  font-size: 16px;

  .el-icon {
    width: 100%;
  }
}
.svg-icon {
  margin-right: 4px;
  background-color: rgb(254, 240, 240);
  width:32px;
  height:32px;
  border-radius:32px;
  padding: 4px;
  
}
/* 在 xs 及以下屏幕（小于768px）时显示 */
@media (max-width: 992px) {
  .mini-nav {
    display: block;
  }

  .header {
    display: none;
  }

  .site-name {
    display: none;
  }

  .equipment-page-header {
    display: block;
  }

  .search-card {
    display: none;
  }

  .video-container .video {
    height: 350px;
  }

  .video-header {
    display: none;
  }

  .video-container-bg {
    color: #fff;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #000;
    display: flex;
    align-items: center;
    /* 垂直居中对齐 */
    justify-content: space-between;
    /* 左右两端对齐 */
    padding: 0 5px;
    z-index: 1000;
    /* 确保在最上层 */
  }

  .back-button {
    background: none;
    border: none;
    font-size: 16px;
    color: #fff;
    /* 使用系统蓝色，符合移动端习惯 */
    cursor: pointer;
    padding: 8px 0;
    /* 增加点击区域 */
    display: flex;
    align-items: center;
    font-weight: 800;
  }

  .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* 结合left:50%实现水平居中 */
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    /* 防止标题过长 */
  }

  /* 右侧可以放置其他按钮，如分享、菜单等，保持布局平衡 */
  .header-actions {
    width: 60px;
    /* 与左侧返回按钮区域宽度对称 */
    display: flex;
    justify-content: flex-end;
  }

  .video_container-bg .title {
    text-align: center;
  }

  .mobile-video-body {
    padding: 0;
    background-color: #000;

    .running-params {
      color: #fff;
      padding: 10px 5px;
      font-size: 12px;

      span {
        margin-right: 5px;
      }
    }
  }

  .control-mode {
    display: none;
  }

  .control-param {
    display: none;
  }

  .control-panel {
    padding: 10px;
  }
}

.device-action {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 一行三个，等分 */
  gap: 1px;
  /* 格子间距，也是“内边框”的基础 */
  padding: 1px;
  /* 抵消最外层不必要的“边框” */
  width: 100%;
  /* 根据需要调整容器宽度 */
  max-width: 600px;
  /* 可选：限制最大宽度 */
  margin: 0 auto;
  /* 可选：居中显示 */
}

.device-action .grid-item {
  background-color: #fff;
  /* 格子背景色，覆盖掉容器背景色 */
  aspect-ratio: 1;
  /* 让格子保持正方形 (可选) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .site-name {
    display: block;
  }

  .main-content {
    height: calc(100vh - 60px);
    /* 高度减去TabBar的高度 */
    overflow: auto;
    /* 允许内容区域滚动 */
  }

  .header {
    display: none;
  }

  .video-container .video {
    height: 300px;
  }
  .common-layout {
      width: 100%;
  }
    
  .login-form {
      min-width: 100px;
  }
  .login-form-card{
      width: 100%;
  }
}

@media (min-width: 768px) {
  .site-name {
    display: block;
  }
  .common-layout {
        min-width: 450px;
        max-width: 600px;
  }
  .login-form {
        min-width: 450px;
  }
}

@media (min-width: 992px) {
  .site-name {
    display: block;
  }

  .video-container .video {
    height: 700px;
  }

  .tabbar {
    display: none;
  }

  .video-container-bg {
    display: none;
  }

  .el-main {
    padding: 0 20px;
  }

  .mobile-tab {
    display: none;
  }
}

.logs-box .cell {
  font-size: 13px;
  line-height: 120%;
}

.profile-list {
  background-color: #fff;
  /* 圆角增加现代感 */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* 轻微阴影提升层次 */
}

.list-item {
  display: flex;
  /* 启用Flex布局 */
  align-items: center;
  /* 垂直居中对齐 */
  min-height: 55px;
  /* 设置最小触摸高度 */
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  /* 分隔线 */
  text-decoration: none;
  /* 移除链接下划线 */
  color: inherit;
}

.list-item:last-child {
  border-bottom: none;
  /* 最后一项无分隔线 */
}

.item-title {
  flex: 0 0 50%;
  /* 标题固定占比，不放大也不缩小 */
  font-weight: 500;
  font-size: 16px;
}

.item-content {
  flex: 1;
  /* 内容区域占据剩余所有空间 */
  font-size: 15px;
  color: #666;
  text-align: right;
  /* 内容文字右对齐 */
  padding-right: 10px;
  /* 与箭头保持间距 */
}

.item-arrow {
  flex: 0 0 auto;
  /* 箭头根据自身大小固定 */
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

/* 点击反馈 */
.list-item:active {
  background-color: #f8f8f8;
}
.logout{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 100px;
  width: 80%;
  margin: 0 auto;
  max-width: 320px;
}
.logout .btn {
  width: 100%;
  color: rgb(223, 32, 32);
}
.no-read-row{
  font-weight: 600;
  color: #333;
  cursor: pointer;
}
.has-read-row{
  font-weight: 100;
  color: #555;
  cursor: pointer;
}
.logs-detail-box{
  margin:0px auto;
  max-width: 960px;
  min-width: 320px;
  background-color: #fff;
  min-height: 500px;
}
.log-detail{
  padding-top: 20px;
  padding-left: 20px;
}
.log-label-item{
  font-weight: 500;
}
.flex-container {
  position: relative; /* 建立定位上下文 */
  display: inline-block; /* 让容器大小由图片决定 */
  height: 100px;
}
.play-button-box{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 使按钮自身中心点与容器中心点对齐 */
  background-color: rgba(255, 255, 255, 0.2); /* 半透明背景 */
  border: none;
  border-radius: 50%; /* 制作圆形按钮 */
  width: 30px;
  height: 30px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease; /* 添加过渡效果 */
}
.play-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.05); /* 悬停时轻微放大 */
}
.canvasList{
  margin-top: 10px;
}
.w-15{
  width: 150px;
}
.common-login-layout {
      height: 100vh;
      background-color: #f6f7f8;
      overflow: hidden;
      padding: 15px;
      margin: 0 auto;
      display: grid;
      place-items: center;
  }
  .grid-content{
      width:100%;
  }
  .login-form {
      background-color: #fff;
      border-radius: 12px;
      padding: 20px;
  }
  .logo {
      width: 70px;
      height: 70px;
      background-color: rgb(254, 240, 240);
      border-radius: 20px;
      margin: 20px auto 30px auto;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .title {
      text-align: center;
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 50px;
  }
  .input-with-select .el-input-group__prepend {
      background-color: var(--el-fill-color-blank);
  }
  .el-select {
      width:160px;
  }
  .title label {
      margin: 0 5px;
      display: block;
      margin-bottom: 6px;
  }
  .label-submit {
      width: 100%;
  }
.common-layout {
    overflow: hidden;
    padding: 15px;
    margin: 0 auto;
    background-color: #ffffff;
}

.label-name {
    font-weight: bold;
    color: #000;
    font-size: 16px;
}


.btn {
    width: 100%;
    border-radius: 4px;
}

.scan-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #000;
    height: 100vh;
}

#qr-reader {
    width: 100%;
    height: 100%;
}

/* 扫描框样式 */
.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 确保不阻挡摄像头操作 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scan-frame {
    width: 100%;
    position: relative;
}

.scan-line {
    position: absolute;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #409eff, transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 5%; }
    50% { top: 95%; }
    100% { top: 5%; }
}

.scan-tip {
    color: #fff;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}