/* =========================================================
   智慧水务运营管理平台 · 大屏样式
   设计稿基准：1920 × 1080（16:9），由 JS 等比缩放适配窗口
   主题：实拍同款明亮宝蓝底 + 亮蓝发光面板
   ========================================================= */

/* ---------- 全局 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --c-bg-deep: #084899;
  --c-bg-top: #0d5cbb;
  --c-bg-edge: #063a78;
  --c-text: #eaf6ff;
  --c-sub: #b5d8f8;
  --c-dim: #8fbde4;
  --c-cyan: #5fe6ff;
  --c-blue: #3aa7ff;
  --panel-line: rgba(101, 196, 255, 0.38);
  --panel-line-strong: rgba(126, 216, 255, 0.6);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a4f9e;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* 数字使用等宽感更强的字体，贴合实拍大屏数字样式 */
.num,
.mc-value em,
.tc-val,
.stat b,
#clockTime,
.map-badge b {
  font-family: "Bahnschrift", "DIN Alternate", "Microsoft YaHei", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ---------- 舞台 ---------- */
.screen {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% -12%, #1874d4 0%, rgba(24, 116, 212, 0) 58%),
    radial-gradient(70% 60% at 82% 104%, rgba(70, 180, 255, 0.38) 0%, rgba(70, 180, 255, 0) 70%),
    radial-gradient(60% 55% at 12% 88%, rgba(40, 130, 230, 0.4) 0%, rgba(40, 130, 230, 0) 72%),
    linear-gradient(160deg, #0d61bd 0%, #0a52a4 42%, #084898 100%);
}

/* 大屏网格底纹 */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 205, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 205, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* 顶部与底部光晕 */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 30% at 50% 0%, rgba(120, 215, 255, 0.22), transparent 70%),
    radial-gradient(40% 24% at 50% 100%, rgba(60, 160, 255, 0.22), transparent 72%);
  pointer-events: none;
}

/* =========================================================
   顶部导航标题栏
   ========================================================= */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex: none;
  height: 86px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(10, 78, 158, 0.96) 0%, rgba(8, 70, 148, 0.5) 62%, rgba(8, 70, 148, 0) 100%);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(95, 230, 255, 0) 0%, rgba(95, 230, 255, 0.85) 50%, rgba(95, 230, 255, 0) 100%);
  box-shadow: 0 0 14px rgba(95, 230, 255, 0.65);
}

/* 央企 LOGO + 时间（右侧） */
.title-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.corp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #e6f5ff;
  border: 1px solid rgba(120, 205, 255, 0.26);
  border-radius: 3px;
  background: rgba(18, 84, 165, 0.42);
}

.corp i {
  font-size: 13px;
  color: #a8e4ff;
}

/* 时钟 */
.clock {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-left: 12px;
  margin-left: 2px;
  line-height: 1.1;
  border-left: 1px solid rgba(120, 200, 255, 0.22);
}

#clockTime {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #eefaff;
  text-shadow: 0 0 10px rgba(90, 200, 255, 0.7);
}

#clockDate {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #9dc9ec;
}

/* 全屏切换按钮 */
.fs-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: #d8efff;
  cursor: pointer;
  border: 1px solid rgba(120, 205, 255, 0.32);
  border-radius: 3px;
  background: rgba(18, 84, 165, 0.45);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.fs-btn i {
  font-size: 12px;
  color: #8fe2ff;
}

.fs-btn:hover {
  color: #ffffff;
  border-color: rgba(133, 222, 255, 0.8);
  background: rgba(30, 110, 200, 0.6);
  box-shadow: 0 0 12px rgba(90, 200, 255, 0.55), inset 0 0 10px rgba(90, 200, 255, 0.35);
}

/* --- 第二行：居中大标题 --- */
.title-row {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(140, 220, 255, 0.5));
}

.main-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 26px;
}

.main-title::before {
  content: "";
  position: absolute;
  inset: 2px 0;
  background: linear-gradient(90deg, rgba(30, 130, 225, 0) 0%, rgba(40, 150, 240, 0.5) 22%, rgba(60, 175, 255, 0.5) 50%, rgba(40, 150, 240, 0.5) 78%, rgba(30, 130, 225, 0) 100%);
  clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
  filter: blur(0.2px);
  opacity: 0.85;
}

.main-title h1 {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(110, 215, 255, 0.95), 0 0 30px rgba(40, 150, 255, 0.7), 0 2px 0 rgba(3, 40, 90, 0.4);
}

.mt-line {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, rgba(130, 230, 255, 0), rgba(150, 240, 255, 0.95));
  box-shadow: 0 0 10px rgba(120, 225, 255, 0.8);
}

.mt-line::before {
  content: "";
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  background: #9df1ff;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(120, 225, 255, 0.9);
}

.mt-line.left::before {
  right: -2px;
}

.mt-line.right {
  transform: rotate(180deg);
}

.mt-line.right::before {
  right: -2px;
}

/* =========================================================
   主体三栏布局
   ========================================================= */
.layout {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  gap: 16px;
  min-height: 0;
  padding: 0 20px 16px;
}

.col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.col-left {
  width: 434px;
  gap: 12px;
}

.col-center {
  flex: 1;
  min-width: 0;
}

.col-right {
  width: 520px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

/* =========================================================
   通用面板
   ========================================================= */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 96, 180, 0.55) 0%, rgba(7, 58, 122, 0.42) 100%);
  border: 1px solid var(--panel-line);
  border-radius: 5px;
  box-shadow:
    inset 0 0 28px rgba(56, 170, 255, 0.16),
    0 0 14px rgba(18, 108, 214, 0.3);
}

/* 面板四角高亮角标 */
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  opacity: 0.9;
}

.panel::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid #7fe4ff;
  border-top: 2px solid #7fe4ff;
  border-radius: 5px 0 0 0;
  box-shadow: -2px -2px 8px rgba(80, 210, 255, 0.45);
}

.panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid #7fe4ff;
  border-bottom: 2px solid #7fe4ff;
  border-radius: 0 0 5px 0;
  box-shadow: 2px 2px 8px rgba(80, 210, 255, 0.45);
}

/* 面板标题 */
.panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  margin-bottom: 9px;
}

.panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 215, 255, 0.55) 0%, rgba(95, 215, 255, 0.06) 100%);
}

.ph-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #eaf7ff;
  text-shadow: 0 0 10px rgba(80, 190, 255, 0.65);
}

.ph-left i {
  font-size: 13px;
  color: #6fe6ff;
}

.ph-extra {
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: #8fc2e6;
}

.p-metrics,
.p-types,
.p-intro {
  padding: 11px 13px 12px;
}

/* =========================================================
   左侧 ① 指标介绍
   ========================================================= */
.p-metrics {
  flex: 0 0 15.6%;
  display: flex;
  flex-direction: column;
}

.p-metrics .panel-head {
  flex: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  overflow: hidden;
  border: 1px solid rgba(110, 205, 255, 0.26);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(34, 130, 218, 0.46) 0%, rgba(9, 58, 128, 0.28) 100%);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 235, 255, 0.8), transparent);
}

.metric-card:hover {
  border-color: rgba(140, 230, 255, 0.7);
  box-shadow: 0 0 16px rgba(70, 190, 255, 0.45), inset 0 0 16px rgba(80, 200, 255, 0.25);
}

.metric-card i {
  font-size: 17px;
  color: #8fe9ff;
  filter: drop-shadow(0 0 7px rgba(90, 215, 255, 0.85));
}

.mc-label {
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: #b9dcff;
}

.mc-value {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1.1;
}

.mc-value em {
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(90, 210, 255, 0.75);
}

.mc-value span {
  font-size: 9px;
  color: #9fd6ff;
  white-space: nowrap;
}

/* =========================================================
   左侧 ② 项目类型
   ========================================================= */
.p-types {
  flex: 0 0 23.8%;
}

.types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
  height: 172px;
}

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(110, 205, 255, 0.22);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(30, 122, 210, 0.42) 0%, rgba(9, 56, 122, 0.2) 100%);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.type-card::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tc) 0%, transparent 68%);
  opacity: 0.3;
}

.type-card:hover {
  border-color: rgba(140, 230, 255, 0.6);
  box-shadow: 0 0 14px rgba(70, 190, 255, 0.4);
}

.tc-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: #d9efff;
}

.tc-top i {
  font-size: 12px;
  color: var(--tc);
  filter: drop-shadow(0 0 6px var(--tc));
}

.tc-top b {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.9;
}

.tc-val {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(80, 200, 255, 0.55);
}

.tc-val span {
  margin-left: 3px;
  font-size: 9.5px;
  font-weight: 400;
  color: #9fd6ff;
}

/* =========================================================
   左侧 ③ 企业简介
   ========================================================= */
.p-intro {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.intro-body {
  height: calc(100% - 33px);
  overflow: hidden;
}

.intro-body p {
  position: relative;
  margin-bottom: 8px;
  padding-left: 12px;
  font-size: 14.5px;
  line-height: 1.95;
  color: #c9e6ff;
  text-align: justify;
}

.intro-body p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: #6fe6ff;
  transform: rotate(45deg);
  box-shadow: 0 0 7px rgba(110, 230, 255, 0.9);
}

.intro-body span{
  font-size: 16.5px;
  color: #ffa63d;
}

/* =========================================================
   左侧 ④ 厂区实景
   ========================================================= */
.p-plant {
  flex: 0 0 24.4%;
  padding: 0;
  overflow: hidden;
}

.plant-slider {
  position: absolute;
  inset: 0;
}

.plant-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.plant-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.plant-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) brightness(0.96) contrast(1.03);
  transform: scale(1.02);
  transition: transform 8s linear;
}

.plant-slide.active .plant-img {
  transform: scale(1.1);
}

/* 轮播指示条 */
.plant-dots {
  position: absolute;
  right: 12px;
  top: 11px;
  z-index: 5;
  display: flex;
  gap: 5px;
  list-style: none;
}

.plant-dots li {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
  background: rgba(200, 235, 255, 0.42);
  box-shadow: 0 0 6px rgba(0, 40, 90, 0.5);
  transition: width 0.3s, background 0.3s, box-shadow 0.3s;
}

.plant-dots li.active {
  width: 28px;
  background: #6fe6ff;
  box-shadow: 0 0 9px rgba(110, 230, 255, 0.95);
}

.plant-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 62, 128, 0.35) 0%, rgba(5, 45, 96, 0) 42%, rgba(4, 36, 80, 0.86) 100%),
    radial-gradient(120% 90% at 50% 100%, rgba(20, 110, 200, 0.35), transparent 62%);
}

.plant-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  color: #eaf8ff;
  text-shadow: 0 0 10px rgba(0, 30, 70, 0.9), 0 0 14px rgba(80, 190, 255, 0.5);
}

.plant-cap i {
  color: #6fe6ff;
}

/* =========================================================
   中间地图面板
   ========================================================= */
.col-center .map-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(38, 140, 235, 0.34) 0%, rgba(10, 70, 150, 0.12) 62%, rgba(8, 62, 130, 0) 100%),
    linear-gradient(180deg, rgba(14, 88, 168, 0.5) 0%, rgba(6, 50, 108, 0.4) 100%);
}

.map-head {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 18px;
}

.map-head .ph-left {
  font-size: 16px;
  letter-spacing: 1.6px;
}

.map-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: #bfe4ff;
  border: 1px solid rgba(120, 215, 255, 0.4);
  border-radius: 20px;
  background: rgba(22, 100, 190, 0.4);
  box-shadow: inset 0 0 12px rgba(70, 190, 255, 0.25);
}

.map-badge b {
  font-size: 16px;
  color: #8ff0ff;
  text-shadow: 0 0 10px rgba(90, 225, 255, 0.9);
}

.map-chart {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
}

/* 地图图例 */
.map-legend {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 14px;
  list-style: none;
  border: 1px solid rgba(110, 200, 255, 0.25);
  border-radius: 4px;
  background: rgba(8, 56, 120, 0.45);
  box-shadow: inset 0 0 16px rgba(60, 170, 255, 0.16);
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #d5ecff;
}

.map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 9px var(--c);
}

/* 水务卡通形象 */
.mascot {
  position: absolute;
  right: 14px;
  bottom: 6px;
  z-index: 5;
  width: 126px;
  pointer-events: none;
  animation: mascotFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(70, 190, 255, 0.6));
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

/* =========================================================
   右侧图表面板
   ========================================================= */
.p-chart {
  display: flex;
  flex-direction: column;
  padding: 11px 14px 10px;
  overflow: hidden;
}

.chart-head {
  height: 26px;
  margin-bottom: 3px;
}

.chart-head .ph-left {
  font-size: 14.5px;
}

.ph-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.stat em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #a6cdec;
}

.stat b {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(90, 210, 255, 0.65);
}

.stat b i {
  font-style: normal;
  color: #8ff0ff;
}

.chart-unit {
  padding-left: 2px;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: #8db9dd;
}

.chart-box {
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* ECharts tooltip 内联样式（HTML 内容） */
.tip-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  border-bottom: 1px solid rgba(110, 205, 255, 0.35);
}

.tip-title i {
  color: #7fe6ff;
}

.tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 11.5px;
  line-height: 1.9;
  color: #a9cdec;
}

.tip-row b {
  color: #eafcff;
  font-weight: 600;
}

/* =========================================================
   动画
   ========================================================= */
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}