/* 标题部分 */
.top_img {
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
}

.top_img .tips {
  width: 60%;
  color: #7e7c7c;
}

.top_img .tips p {
  text-indent: 40px;
  font-size: 18px;
  line-height: 32px;
}

.top_img .tips .title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.top_img .xlxbg {
  margin-right: 50px;
}

.stats-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: -6%;
}

.query-container div {
  display: flex;
}

.query-container .form {
  width: 70%;
}

.stats-header__title {
  font-size: 45px;
  font-weight: normal;
  color: #ff7c51;
  margin-bottom: 10px;
  background: url("/syx/lsswszf/resource/hdjlimg/lxxd.png") no-repeat top center;
  position: relative;
  z-index: 11111;
}

.stats-header__title.lxxd {
  margin-top: 40px;
}

.stats-wishs {
  text-align: center;
}

/* 统计部分 */
.stats-content {
  display: flex;
  gap: 20px;
}

/* 左侧统计信息 */
.stats-panel--left {
  flex: 1;
  padding: 20px;
  background: #ececec;
}

.stats-panel__item {
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px dashed #aaaaaa;
}

.stats-panel__item:last-child {
  border-bottom: none;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.stats-panel__item-title {
  font-size: 1.8rem;
  color: #666;
  line-height: 3rem;
}

.stats-panel__item-value {
  font-size: 2rem;
  color: #d63031;
  font-weight: bold;
}

/* 右侧统计信息 */
.stats-panel--right {
  flex: 4;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.tab-item {
  cursor: pointer;
  color: #9b9b9b;
  position: relative;
  font-size: 2.4rem;
  width: 276px;
  text-align: center;
  padding: 15px 0;
  border-top-left-radius: 8px;
  /* 左上角圆角 */
  border-top-right-radius: 8px;
  /* 右上角圆角 */
  overflow: hidden;
  margin-right: 17px;
  background: #e9e9e9;
}

.tab-item:last-child {
  margin-right: 0;
}

.tab-item--active {
  color: #f15a24;
  background: #ffe6d6;
}

/* 图表和数据详情 */
.chart-container {
  width: 80%;
  overflow: hidden;
}

.tab-header {
  display: flex;
}

.chart-container__content {
  padding: 22px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.details-content {
  display: none;
  width: 100%;
}

.details-content--active {
  display: flex;
  align-items: center;
  /* 水平居中对齐 */
  gap: 20px;
  /* 设置内容间的间距 */
  box-sizing: border-box;
}

.echart {
  flex: 1;
}

.details-span {
  width: 40%;
  margin-right: 5%;
}

.details-echart {
  width: 100%;
}

.details-item {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.details-item:nth-child(3) {
  margin-bottom: 20px;
}

.details-item strong {
  color: #d51817;
}

.details-bar {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.details-bar__label {
  width: 60px;
  text-align: right;
  margin-right: 10px;
  font-size: 1.8rem;
  color: #666;
}

.details-bar__progress {
  flex: 1;
  height: 20px;
  border-radius: 10px;
  background: #f1f1f1;
  overflow: hidden;
  /* 确保进度条内部不会溢出 */
  display: flex;
  /* 让内部元素自然填充 */
}

.details-bar__progress-inner {
  height: 100%;
  background: #ff1616;
  transition: width 0.3s ease;
  /* 平滑过渡 */
}

.details-bar__progress--red .details-bar__progress-inner {
  background: #d63031;
}

.details-bar__value {
  margin-left: 10px;
  font-size: 1.8rem;
  min-width: 50px;
}

/*查询*/
.query-container {
  display: flex;
  gap: 10px;
  align-items: center;
  background-color: #fcfcfc;
  padding: 15px 20px;
  margin-top: 40px;
}

.query-label {
  white-space: nowrap;
  color: #cf1c1c;
  margin-right: 10px;
  font-size: 1.8rem;
  margin-left: 20px;
}

.query-input {
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 1.8rem;
  margin-right: 20px;
  flex: 1;
}

.query-button {
  width: 180px;
  padding: 8px 0px;
  border: none;
  border-radius: 6px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.query-button--search {
  background-color: #f7b582;
  /* 浅橙色 */
  margin-right: 10px;
  margin-left: 20px;
}

.query-button--search:hover {
  background-color: #e6a270;
  /* 按钮悬停效果 */
}

.query-button--write {
  background-color: #f08c70;
  /* 深橙色 */
}

.query-button--write:hover {
  background-color: #d87c63;
  /* 按钮悬停效果 */
}

/*表格数据*/
/* 表格基础样式 */

.table-container {
  width: 100%;
  min-height: 774px;
  margin: 20px auto;
  overflow-x: auto;
  background-color: #fff;
  font-size: 1.8rem;
}

/* 表格样式 */
.custom-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

.custom-table thead {
  background-color: #f8f6f1;
  color: #060606;
}

.custom-table thead th:first-child {
  text-align: left;
}

.custom-table th,
.custom-table td {
  padding: 8px 16px;
  text-align: center;
  position: relative;
  font-weight: normal;
}

.custom-table td {
  padding: 12px 10px;
}

.custom-table td:nth-child(1) {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 50%;
}

.custom-table td:nth-child(2) {
  width: 20%;
}

.custom-table td:nth-child(3) {
  width: 20%;
}

.custom-table td:nth-child(4) {
  width: 10%;
}

.custom-table td:nth-child(2),
.custom-table td:nth-child(3) {
  font-size: 1.6rem;
  color: #7a7a7a;
}

.custom-table td:not(:first-child) {
  text-indent: 0px;
}

thead th:not(:last-child)::after {
  content: "";
  /* 生成内容 */
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  /* 模拟右侧空隙 */
  height: 100%;
  background-color: white;
  /* 覆盖背景颜色 */
}

thead th:last-child {
  width: 50px;
}

/* 状态列样式 */
.status {
  text-align: center;
}

.status.done {
  text-align: center;
  border-radius: 4px;
  padding: 4px 8px;
}

.xlx_bgall {
  width: 100%;
}

.time_ele {
  width: 20%;
}

@media (max-width: 1600px) {
  .stats-header {
    margin-top: -7%;
  }
}

@media (max-width: 1500px) {
  .stats-header {
    margin-top: -6%;
  }
}
@media (max-width: 1200px) {
  .details-content--active{
    display: block;
  }
  .details-span{
    width: 100%;
  }
}

@media (max-width: 830px) {
  .top_img {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats-header {
    margin-top: 0%;
  }

  .top_img {
    margin-top: 40px;
    width: 100%;
  }

  .xlx_bgall {
    display: none !important;
  }

  .top_img img {
    margin: 0 0 15px 0;
  }

  .top_img .tips {
    width: 94%;
  }

  .top_img .xlxbg,
  .top_img .tips,
  .stats-content {
    display: block !important;
  }

  .chart-container {
    width: 100%;
    margin-top: 10px;
  }

  .query-container,
  .details-content--active {
    display: block;
  }

  .query-container .btn {
    margin-top: 15px;
  }

  .query-container .form,
  .query-container .btn {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .details-span {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .time_ele {
    display: none;
  }
}