.container {
  padding: 12px;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
  font-size: 14px;
  gap: 8px;
}

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.actionCard {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  :global(.adm-card-body) {
    padding: 16px;
  }
}

.taskHeader {
  margin-bottom: 16px;
}

.taskInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.taskName {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
  margin-right: 12px;
}

.taskStatus {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 12px;
  background-color: rgba(82, 196, 26, 0.1);
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 20px;

  :global(.adm-button) {
    flex: 1;
    border-radius: 6px;
    font-size: 14px;
  }
}

.tabs {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;

  :global(.adm-tabs-header) {
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
  }

  :global(.adm-tabs-tab) {
    font-size: 15px;
    font-weight: 500;

    &.adm-tabs-tab-active {
      color: #1890ff;
    }
  }

  :global(.adm-tabs-tab-line) {
    background: #1890ff;
  }
}

.tabContent {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.infoCard {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;

  :global(.adm-card-body) {
    padding: 16px;
  }
}

.cardTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.infoList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.infoItem {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
}

.label {
  color: #666;
  margin-right: 12px;
  min-width: 80px;
  flex-shrink: 0;
}

.value {
  color: #333;
  flex: 1;
  word-break: break-all;
}

.recordList {
  :global(.adm-list-body) {
    border: none;
  }
}

.recordItem {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  margin-bottom: 12px;

  :global(.adm-list-item-content) {
    padding: 16px;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

.recordHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.recordInfo {
  flex: 1;
}

.recordDevice {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.recordTime {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.recordContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recordDetail {
  display: flex;
  align-items: center;
  font-size: 13px;

  .label {
    min-width: 70px;
    color: #666;
  }

  .value {
    color: #333;
  }
}

.recordError {
  font-size: 13px;
  color: #ff4d4f;
  background: #fff2f0;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ffccc7;
}

.loadingMore {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
  gap: 8px;
}

// 状态标签样式覆盖
:global {
  .adm-tag {
    border-radius: 12px;
    font-size: 12px;
    padding: 2px 8px;

    &.adm-tag-success {
      background: #f6ffed;
      border-color: #b7eb8f;
      color: #52c41a;
    }

    &.adm-tag-danger {
      background: #fff2f0;
      border-color: #ffccc7;
      color: #ff4d4f;
    }

    &.adm-tag-warning {
      background: #fff7e6;
      border-color: #ffd591;
      color: #fa8c16;
    }
  }
}

// 下拉刷新样式
:global(.adm-pull-to-refresh) {
  .adm-pull-to-refresh-indicator {
    color: #1890ff;
  }
}

// 响应式设计
@media (max-width: 480px) {
  .taskName {
    font-size: 16px;
  }

  .taskStatus {
    font-size: 13px;
    padding: 3px 10px;
  }

  .cardTitle {
    font-size: 15px;
  }

  .infoItem {
    font-size: 13px;
  }

  .label {
    min-width: 70px;
  }

  .recordDevice {
    font-size: 13px;
  }

  .recordTime {
    font-size: 11px;
  }

  .recordDetail {
    font-size: 12px;

    .label {
      min-width: 60px;
    }
  }

  .recordError {
    font-size: 12px;
    padding: 6px 10px;
  }
}

// 空状态样式
:global(.adm-empty) {
  padding: 40px 20px;

  .adm-empty-image {
    width: 60px;
    height: 60px;
    opacity: 0.3;
  }

  .adm-empty-description {
    color: #999;
    font-size: 14px;
    margin-top: 12px;
  }
}
