/* 强制横屏大屏布局 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #04092e;
  min-width: 1600px;
  min-height: 900px;
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  font-family: "Microsoft YaHei", sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
/* 创建背景图片容器 */
.background-container {
  position: absolute; /* 或者 fixed，根据你的需求 */
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; /* 视口宽度的80% */
  min-width: 1280px; /* 1600px * 80% */
  height: 80vh;
  background-image: url("/img/LargeScreen/资源.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1; /* 放在内容后面 */
  pointer-events: none; /* 不干扰交互 */
}

/* 横屏警告 */
.orientation-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 10000;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-align: center;
}


@media (max-height: 600px) and (orientation: landscape) {
  .orientation-warning {
    display: flex;
  }
}

/* 主标题容器 - 模仿图片效果 */
.main-header {
  width: 100%;
  height: 60px; /* 增大高度 */
  background: linear-gradient(
    90deg,
    #039468 0%,
    /* 左侧绿色 */ #05769b 50%,
    /* 中间蓝色 */ #031c7e 100% /* 右侧深蓝 */
  );
  position: relative;
  margin-top: 0px;
  flex-shrink: 0; /* 固定高度 */
}

/* 大梯形容器 */
.large-trapezoid-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; /* 大幅增加宽度 */
  height: 75px;
  z-index: 2;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
}

/* 大梯形 */
.large-trapezoid {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #04b781, #033191);
  clip-path: polygon(100% 0%, 0% 0%, 5% 100%, 95% 100%);
}

/* 小梯形容器 */
.small-trapezoid-container {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 90px;
  z-index: 3;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
}

/* 小梯形 */
.small-trapezoid {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #02da88, #0329a3);
  clip-path: polygon(100% 0%, 0% 0%, 6% 100%, 94% 100%);
}

/* 主标题文字 */
.main-title {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 40px; /* 增大字体 */
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  z-index: 4;
  white-space: nowrap;
  letter-spacing: 3px;

  padding: 0 60px;
}

/* 时间显示 - 右侧 */
.time-display {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  text-align: right;
  z-index: 5;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
  display: flex;
  justify-content: flex-start;
}

.current-date {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
}

.current-time {
  font-size: 12px;
  margin-left: 5px;
  font-weight: bold;
}

/* 底部装饰条 */
.bar {
  position: absolute;
  bottom: -32px;
  display: flex;
  gap: 5px;
  /*background: linear-gradient(90deg, #061a30, #0b1c4c);*/ /* 背景深蓝 */
}
/*右侧装饰条*/
.stripe {
  width: 10px;
  height: 18px;
  background: linear-gradient(180deg, #0066ff, #00c3a3);
  transform: skewX(-30deg); /* 斜切 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
/*左侧装饰条*/
.stripe-reverse {
  width: 10px;
  height: 18px;
  background: linear-gradient(180deg, #0066ff, #00c3a3);
  transform: skewX(30deg); /* 斜切 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.stripe-left {
  left: 12%;
}

.stripe-right {
  right: 12%;
}

/* 侧边装饰角 */
.corner-decoration {
  position: absolute;
  width: 80px;
  height: 35px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  opacity: 0.6;
}

.corner-tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* 主内容区域 */
.content-container {
  position: relative;
  
  display: flex;
  /* width: 100%; */
  flex: 1;
  /* height: calc(100vh - 180px); 留出标题区域 */
  gap: 20px;
  min-width: 1400px; /* 容器最小宽度 */
  min-height: 800px; /* 容器最小高度 */
  margin-top: 80px;
}
/* 左侧信息区域 */
.left-panel {
  flex: 0 0 24%; /* 不增长，不收缩，基础宽度30% */
  max-width: 500px; /* 最大宽度限制 */
  /* border: 1px solid rgba(0, 180, 255, 0.2); */
  border-radius: 5px;
  padding-left: 20px;
  display: grid;
  grid-template-rows: 55% 45%;
}

/*内容标题*/
.content-title {
  --h: 40px; /* 标题栏高度 */
  --w: 300px; /* 标题栏宽度 */
  --small: 20px; /* 左上小三角尺寸 */
  --large: var(--h); /* 右下大三角高度 = 标题高度 */
  position: relative;
  width: 100%;
  height: 40px;
  background: linear-gradient(
    90deg,
    #02da884d 0%,
    /* 左侧绿色 */ #05769b4d 50%,
    /* 中间蓝色 */ #031c7e4d 100% /* 右侧深蓝 */
  );
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
/*左上角三角*/
.content-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--small)); /* 控制大小 */
  height: calc(var(--small));
  background: linear-gradient(90deg, #05e1ad 0%, #039468 50%, #0066e6 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%); /* 左上角直角三角形 */
  filter: drop-shadow(-2px 2px 4px rgba(0, 229, 255, 0.3));
  z-index: 2;
}

/* 右下角大直角三角 */
.content-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(var(--large)); /* 控制大小 */
  height: calc(var(--large));
  background: linear-gradient(90deg, #0066e6 0%, #039468 100%, #05e1ad 100%);
  clip-path: polygon(0 100%, 100% 100%, 100% 0); /* 左上角直角三角形 */
  filter: drop-shadow(-2px 2px 4px rgba(0, 229, 255, 0.3));
  z-index: 2;
}

.content-smallcontainer {
  display: grid;
  
  flex-direction: column;
  align-items: center;
  gap: 35px;
  margin-top: auto;
  margin-bottom: auto;
}

.card-wrapper {
  position: relative;
  width: auto;
  max-width: 600px;
  margin-left: 40px;
  margin-right: 40px;
}
/* 渐变背景条（从图标中心开始） */
.content-card {
  background: linear-gradient(
    90deg,
    #03946800 0%,
    /* 左侧绿色 */ #03946890 40%,
    #03946890 60%,
    #031c7e70 100% /* 右侧深蓝 */
  );
  height: 80px;
  padding-left: 0px; /* 内容从图标中间开始 */
  margin-left: 40px; /* 图标一半宽度 */
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
}

.card-icon {
  position: absolute;
  left: -40px; /* 图标完全显示在左侧 */
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  /*对于图片的设定*/
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
  /* border-radius: 50%; */
  /* background: linear-gradient(135deg, #00b894, #00a8ff); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  z-index: 10;
  /* border: 4px solid white; */
}

.card-content {
  padding-right: 0px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}

.card-title {
  font-weight: bold;
  font-size: 14px;
  color: white;
  text-align: center;
}

.card-text {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-top: 5px;
  line-height: 1.2;
}

.content-datashow {
  display: grid;
  grid-template-columns: 40% 30% 30%;
  grid-template-rows: 1fr 1fr;
  grid-row-gap: 50px;
  background: linear-gradient(
    90deg,
    #02da884d 0%,
    /* 左侧绿色 */ #05769b4d 50%,
    /* 中间蓝色 */ #031c7e4d 100% /* 右侧深蓝 */
  );
  /*内部元素的上下间隔*/
  padding-top: 50px;
  padding-bottom: 50px;
  /*控件本身与父容器的间隔*/
  margin-top: auto;
  margin-bottom: auto;
  grid-column-gap: 10px;
}

.content-gradient-line {
  height: 8px;
  background: linear-gradient(90deg, #05e1ad 0%, #0066e6 100%);
  border-radius: 8px;
  margin: 20px 0;
  width: 120px; /* 控制长度 */
}

.content-datashow-starttext {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.content-datashow-endtext {
  display: flex;
  justify-content: start;
  align-items: center;
  text-align: center;
  color: #fff;
}

.right-panel {
  flex: 1; /* 占剩余空间 */
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
/* 图表容器 */
#chart-panel {
  flex: 1; /* 占满右侧区域 */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* 自定义 tooltip 样式 */
.frame-tooltip {
  position: relative;
  background: rgba(255, 255, 255, 0.3);
  /* backdrop-filter: blur(10px); */
  /* border-radius: 8px; */
  padding: 20px 25px;
  min-width: 150px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}
.tooltip-content {
  position: relative;
  z-index: 2;
}

.tooltip-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tooltip-value {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 四角装饰样式 */
.frame-tooltip .corner-tl,
.frame-tooltip .corner-tr,
.frame-tooltip .corner-bl,
.frame-tooltip .corner-br {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  z-index: 1;
}

.frame-tooltip .corner-tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  /* border-top-left-radius: 4px; */
}

.frame-tooltip .corner-tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
  /* border-top-right-radius: 4px; */
}

.frame-tooltip .corner-bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
  /* border-bottom-left-radius: 4px; */
}

.frame-tooltip .corner-br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  /* border-bottom-right-radius: 4px; */
}
