.sku-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sku-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f6faf8 55%, #eef7fb 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.sku-kicker {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sku-hero h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #102033;
  font-size: 28px;
  letter-spacing: 0;
}

.sku-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.sku-status {
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.82);
  color: #0f766e;
  font-weight: 800;
  text-align: center;
}

.sku-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sku-section {
  overflow: hidden;
}

.sku-table-head {
  gap: 12px;
}

.sku-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sku-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.sku-filter.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.sku-priority-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.sku-priority-column {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 3px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.sku-priority-column.is-scale { border-top-color: #0f766e; }
.sku-priority-column.is-test { border-top-color: #2563eb; }
.sku-priority-column.is-protect { border-top-color: #7c3aed; }
.sku-priority-column.is-fix { border-top-color: #d97706; }
.sku-priority-column.is-stop { border-top-color: #dc2626; }

.sku-priority-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #0f172a;
}

.sku-priority-column-head span {
  color: #64748b;
  font-size: 12px;
}

.sku-priority-item {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.sku-priority-item strong,
.sku-products-table strong,
.sku-table strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.sku-priority-item span,
.sku-diagnosis-item span,
.sku-matrix th span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.sku-priority-item p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.sku-priority-item dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.sku-priority-item dl div {
  padding: 6px;
  border-radius: 6px;
  background: #f8fafc;
}

.sku-priority-item dt {
  color: #64748b;
  font-size: 11px;
}

.sku-priority-item dd {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.sku-table-wrap,
.sku-matrix-wrap {
  width: 100%;
  overflow-x: auto;
}

.sku-table,
.sku-matrix {
  width: 100%;
  border-collapse: collapse;
}

.sku-table th,
.sku-table td,
.sku-matrix th,
.sku-matrix td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  vertical-align: top;
}

.sku-table th,
.sku-matrix th {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sku-table code,
.sku-diagnosis-item code {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.sku-matrix th:first-child {
  min-width: 220px;
}

.sku-matrix td b {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.sku-matrix td span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

/* 商品诊断按 field (问题类型) 分组 — TikTok 接口不返回严重度。 */
.sku-diagnosis-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sku-diagnosis-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.sku-diagnosis-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sku-diagnosis-group-head strong {
  font-size: 13px;
  color: #0f172a;
}

.sku-diagnosis-group-head span {
  font-size: 12px;
  color: #64748b;
}

.sku-diagnosis-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.sku-diagnosis-group .sku-diagnosis-item:last-child {
  border-bottom: 0;
}

.sku-diagnosis-item p {
  margin: 6px 0 0;
  color: #475569;
}

.sku-empty {
  padding: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1100px) {
  .sku-priority-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .sku-kpi-grid,
  .sku-diagnosis-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sku-hero {
    grid-template-columns: 1fr;
  }

  .sku-kpi-grid,
  .sku-priority-grid,
  .sku-diagnosis-list {
    grid-template-columns: 1fr;
  }

  .sku-hero h2 {
    font-size: 23px;
  }

  .sku-diagnosis-item {
    grid-template-columns: 1fr;
  }
}
