/* 主容器样式 */
.container {
  padding: 16px;
  background-color: #f0f2f5;
}

/* 统计卡片样式 */
.statsRow {
  margin-bottom: 16px;
}

.statCard {
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  
  &:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
}

.statContent {
  display: flex;
  align-items: center;
  padding: 16px;
}

.statIcon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e6f7ff;
  border-radius: 4px;
  font-size: 24px;
  margin-right: 16px;
}

.statInfo {
  flex: 1;
}

.statTitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.statCount {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.statStatus {
  font-size: 12px;
  font-weight: 500;
}

/* 图表区域样式 */
.chartRow {
  margin-bottom: 16px;
}

.chartCard {
  margin-bottom: 16px;
  height: 360px;
  overflow: hidden;
}

/* 监控预警样式 */
.alarmList {
  height: 100%;
  overflow-y: auto;
  padding: 8px 0;
  
  &::-webkit-scrollbar {
    width: 4px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 2px;
  }
  
  &::-webkit-scrollbar-track {
    background: #f5f5f5;
  }
}

.alarmItem {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fafafa;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  
  &:hover {
    background: #f0f0f0;
    transform: translateX(4px);
  }
  
  &:last-child {
    margin-bottom: 0;
  }
}

.alarmIcon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.alarmInfo {
  flex: 1;
  min-width: 0;
}

.alarmTitle {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alarmDesc {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.alarmTime {
  font-size: 11px;
  color: #999;
}

.chart {
  height: 300px;
}

/* 表格区域样式 */
.tableCard {
  background-color: #fff;
  border-radius: 4px;
}

.searchFilter {
  margin-bottom: 16px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.operationTable {
  .ant-table-thead > tr > th {
    background-color: #fafafa;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .ant-table-tbody > tr > td {
    border-bottom: 1px solid #f0f0f0;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding: 8px;
  }
  
  .searchFilter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .searchFilter > * {
    margin-bottom: 8px !important;
  }
  
  .chart {
    height: 250px;
  }
}