html, body, #app {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ===== 登录页 ===== */
.login-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b1a33 0%, #10264d 50%, #0a3b5c 100%);
}
/* 登录页底部 ICP 备案号 */
.icp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.icp:hover {
  color: rgba(255, 255, 255, 0.75);
}
.login-card {
  width: 380px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(64, 158, 255, 0.4);
  box-shadow: 0 0 30px rgba(64, 158, 255, 0.25);
  backdrop-filter: blur(6px);
}
.login-title {
  text-align: center;
  color: #7ec3ff;
  font-size: 22px;
  font-weight: bold;
  margin: 18px 0 24px;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(64, 158, 255, 0.8);
}

/* ===== 主布局 ===== */
.layout {
  height: 100%;
}
.layout-aside {
  background: #001529;
}
.layout-logo {
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #7ec3ff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.layout-aside .el-menu {
  border-right: none;
}
/* 菜单图标与文字垂直居中对齐 */
.layout-aside .el-menu-item,
.layout-aside .el-sub-menu__title {
  display: flex;
  align-items: center;
}
.layout-aside .el-menu-item .el-icon,
.layout-aside .el-sub-menu__title .el-icon {
  margin-right: 8px;
  font-size: 16px;
}
/* 当前选中菜单项高亮 */
.layout-aside .el-menu-item.is-active {
  background: rgba(79, 195, 247, 0.12);
  border-right: 3px solid #4fc3f7;
}
.layout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
  box-shadow: 0 1px 0 rgba(79, 195, 247, 0.30), 0 3px 10px rgba(30, 136, 229, 0.08);
  padding: 0 20px;
  position: relative;
  z-index: 5;
}
.layout-header .sys-title {
  display: flex;
  align-items: center;
}
.layout-header .sys-title::before {
  content: "";
  width: 4px;
  height: 32px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4fc3f7, #1e88e5);
  margin-right: 12px;
}
.layout-header .sys-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.layout-header .sys-name {
  font-family: "DengXian", "Microsoft YaHei Light", "Microsoft YaHei UI",
               "PingFang SC", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 3px;
  /* 渐变文字:蓝 -> 青 -> 浅蓝 */
  background: linear-gradient(90deg, #1e88e5 0%, #00acc1 55%, #4fc3f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.layout-header .sys-sub {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #7fa8c9;
  margin-top: 1px;
}
.layout-header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.layout-header .user-info > span {
  color: #3d5570;
  font-weight: 500;
}
.layout-main {
  background: #f0f2f5;
  padding: 16px;
  overflow: auto;
}

/* ===== 数据查询页 ===== */
.page-card {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
.form-tip {
  color: #909399;
  font-size: 12px;
  margin-left: 10px;
}
.pager {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* ===== 信息大屏 ===== */
.screen-page {
  height: calc(100vh - 92px);   /* 视口高度 - 顶栏60px - main上下padding 32px */
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: radial-gradient(ellipse at top, #10264d 0%, #081527 60%, #050d1a 100%);
  color: #cfe6ff;
  padding: 16px 20px 24px;
  box-sizing: border-box;
}
.screen-header {
  text-align: center;
  padding: 6px 0 18px;
  position: relative;
}
.screen-title {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 6px;
  background: linear-gradient(90deg, #4fc3f7, #7ec3ff, #b388ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(79, 195, 247, 0.35);
}
/* 右上角:全屏按钮 + 时间(横向排列,按钮在时间左侧) */
.screen-corner {
  position: absolute;
  right: 8px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.screen-time {
  color: #5f8fbf;
  font-size: 13px;
}
.fullscreen-btn {
  font-size: 12px;
  color: #7ec3ff;
  border: 1px solid rgba(64, 158, 255, 0.45);
  border-radius: 4px;
  padding: 1px 9px;
  cursor: pointer;
  user-select: none;
}
.fullscreen-btn:hover {
  color: #cfe6ff;
  border-color: #4fc3f7;
  background: rgba(64, 158, 255, 0.15);
}
/* 浏览器全屏时大屏独占整个视口(隐藏标题栏与菜单由 requestFullscreen 天然保证) */
.screen-page:fullscreen {
  height: 100vh;
  padding: 20px 28px 24px;
}
/* 面板标题右侧"更多"链接 */
.panel-title.has-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.more-link {
  font-size: 12px;
  color: #4fc3f7;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}
.more-link:hover { color: #cfe6ff; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
/* 大屏归组统计卡:一个分组内含主数值 + 细分子项 */
.stat-group {
  background: linear-gradient(160deg, rgba(21, 46, 89, 0.85), rgba(10, 25, 51, 0.9));
  border: 1px solid rgba(64, 158, 255, 0.35);
  border-radius: 8px;
  padding: 12px 16px 14px;
  box-shadow: 0 0 16px rgba(64, 158, 255, 0.15), inset 0 0 20px rgba(64, 158, 255, 0.05);
}
.stat-group .group-title {
  font-size: 14px;
  color: #7ec3ff;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid #4fc3f7;
}
.stat-group .group-body {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-group .group-main {
  flex: 0 0 auto;
  min-width: 110px;
  text-align: center;
  padding: 6px 14px;
  border-right: 1px dashed rgba(64, 158, 255, 0.35);
}
.stat-group .group-main .value {
  font-size: 34px;
  font-weight: bold;
  color: #4fc3f7;
  text-shadow: 0 0 12px rgba(79, 195, 247, 0.6);
  font-family: "DIN Alternate", "Arial", sans-serif;
}
.stat-group .group-main .label {
  font-size: 13px;
  color: #8fb3d9;
  margin-top: 4px;
}
.stat-group .group-subs {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
}
.stat-group .sub-item {
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  background: rgba(64, 158, 255, 0.08);
  border: 1px solid rgba(64, 158, 255, 0.18);
}
.stat-group .sub-value {
  font-size: 20px;
  font-weight: bold;
  color: #cfe6ff;
  font-family: "DIN Alternate", "Arial", sans-serif;
}
.stat-group .sub-label {
  font-size: 12px;
  color: #8fb3d9;
  margin-top: 2px;
  white-space: nowrap;
}
.stat-group .sub-item.green .sub-value { color: #69f0ae; text-shadow: 0 0 8px rgba(105, 240, 174, 0.5); }
.stat-group .sub-item.yellow .sub-value { color: #ffd54f; text-shadow: 0 0 8px rgba(255, 213, 79, 0.5); }
.stat-group .sub-item.blue .sub-value { color: #64b5f6; text-shadow: 0 0 8px rgba(100, 181, 246, 0.5); }
.stat-group .sub-item.red .sub-value { color: #ff8a80; text-shadow: 0 0 8px rgba(255, 138, 128, 0.5); }
/* 单行内容卡片(如设备总览):内容撑满卡片高度并垂直居中,与双行卡片对齐 */
.stat-group.v-center { display: flex; flex-direction: column; }
.stat-group.v-center .group-body { flex: 1 1 auto; }
/* 完成率主数值的百分号小一号 */
.stat-group .group-main .rate-unit {
  font-size: 18px;
  font-weight: normal;
  margin-left: 2px;
  color: #8fb3d9;
}
.stat-card {
  background: linear-gradient(160deg, rgba(21, 46, 89, 0.85), rgba(10, 25, 51, 0.9));
  border: 1px solid rgba(64, 158, 255, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 0 16px rgba(64, 158, 255, 0.15), inset 0 0 20px rgba(64, 158, 255, 0.05);
}
.stat-card .label {
  font-size: 13px;
  color: #8fb3d9;
  margin-bottom: 8px;
}
.stat-card .value {
  font-size: 26px;
  font-weight: bold;
  color: #4fc3f7;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.6);
  font-family: "DIN Alternate", "Arial", sans-serif;
}
.stat-card.yellow .value { color: #ffd54f; text-shadow: 0 0 10px rgba(255, 213, 79, 0.6); }
.stat-card.blue .value { color: #64b5f6; text-shadow: 0 0 10px rgba(100, 181, 246, 0.6); }
.stat-card.green .value { color: #69f0ae; text-shadow: 0 0 10px rgba(105, 240, 174, 0.6); }
.stat-card.red .value { color: #ff8a80; text-shadow: 0 0 10px rgba(255, 138, 128, 0.6); }
.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.screen-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: rgba(10, 25, 51, 0.7);
  border: 1px solid rgba(64, 158, 255, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 0 18px rgba(64, 158, 255, 0.12);
}
.screen-panel .panel-title {
  flex-shrink: 0;
  font-size: 15px;
  color: #7ec3ff;
  border-left: 3px solid #4fc3f7;
  padding-left: 8px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.screen-panel .chart {
  flex: 1;
  width: 100%;
  min-height: 0;
}
.screen-panel .screen-table {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.screen-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.screen-table th, .screen-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(64, 158, 255, 0.15);
  color: #cfe6ff;
}
.screen-table th {
  color: #7ec3ff;
  background: rgba(64, 158, 255, 0.08);
}
.screen-table tr:hover td {
  background: rgba(64, 158, 255, 0.06);
}
