/* index.html 专属样式 */

.badge-green, .badge-red {
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
  }
  
  .badge-green { background-color: #2ecc71; }
  .badge-red { background-color: #e74c3c; }
  
  .history-container {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 8px;
  }
  
  .el-timeline-item {
    font-size: 14px;
    margin: 5px 0;
  }
  .el-timeline-item-head {
    background-color: #3498db;
    color: #fff;
  }
  .el-timeline-item-body {
    background-color: #f0f8ff;
  }
  
  /* ===== 迷你表格 mini-table ===== */
.mini-table {
  border-collapse: collapse;
  width: auto;
  font-size: 13px;
  color: #333;
}

.mini-table td {
  padding: 2px 6px;
  border: none;
  text-align: right;
  vertical-align: middle;
  line-height: 1.3;
}

/* 数值列右对齐、标签列左对齐 */
.mini-table td:first-child {
  text-align: left;
  color: #666;
  font-weight: 500;
}

/* 数值高亮（继承 up/down 类） */
.mini-table .up {
  color: #2ecc71;
  font-weight: 600;
}

.mini-table .down {
  color: #e74c3c;
  font-weight: 600;
}

/* 行间距更紧凑 */
.mini-table tr + tr td {
  padding-top: 3px;
}

/* 小表格容器微调间距 */
.card-content .mini-table {
  margin-top: 4px;
}

/* ===== 卡片容器 ===== */
.card-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== 卡片内容区域 ===== */
.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* 左侧标题 */
.card-content b {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
}

/* 右侧内容文字 */
.card-content span {
  font-size: 14px;
  color: #555;
  display: inline-block;
}

/* 数值部分统一加粗 */
.card-content .percent {
  font-weight: 600;
  color: #333;
}

/* 小表格放在卡片内部时微调间距 */
.card-content .mini-table {
  margin-left: 10px;
}

/* 卡片标题与分割线 */
.el-divider {
  margin: 12px 0;
  border-top: 1px solid #eee;
}

/* 详情弹窗内时间行特化 */
.card-content.time-row {
  font-size: 13px;
  color: #666;
}
