/* ==============================================================================
   🏰 HP 全维资源归堆分类栈 (HP Full-Stack Resource Taxonomy HUD)
   ============================================================================== */
.hp-taxonomy-wrapper {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
}

.hp-taxonomy-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hp-taxonomy-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.hp-taxonomy-pill {
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.hp-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.hp-tax-card {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hp-tax-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
}

.hp-tax-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 3.5px;
  background: #6366f1;
}

.hp-tax-card.card-models::before { background: #3b82f6; }
.hp-tax-card.card-runtime::before { background: #10b981; }
.hp-tax-card.card-network::before { background: #f59e0b; }
.hp-tax-card.card-guard::before { background: #8b5cf6; }

.hp-tax-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hp-tax-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-tax-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.badge-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-purple { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.hp-tax-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.hp-tax-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.6);
}

.hp-tax-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hp-tax-item strong {
  color: var(--text-main);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.hp-model-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 4px;
}

.hp-model-row.model-active {
  background: #f0fdf4;
  border-color: #86efac;
}

.hp-model-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.hp-model-name {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #0f172a;
}

.hp-model-status {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.status-active-pill { background: #dcfce7; color: #15803d; }
.status-standby-pill { background: #f1f5f9; color: #64748b; }

.hp-model-desc {
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

body.theme-dark .hp-taxonomy-pill { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.theme-dark .hp-tax-card { background: #0f172a; border-color: #1e293b; }
body.theme-dark .hp-tax-item { border-color: #1e293b; }
body.theme-dark .hp-model-row { background: #1e293b; border-color: #334155; }
body.theme-dark .hp-model-row.model-active { background: rgba(16, 185, 129, 0.1); border-color: #059669; }
body.theme-dark .hp-model-name { color: #f8fafc; }
body.theme-dark .hp-model-desc { color: #94a3b8; }
body.theme-dark .badge-blue { background: rgba(30, 64, 175, 0.2); color: #93c5fd; border-color: #1d4ed8; }
body.theme-dark .badge-green { background: rgba(22, 101, 52, 0.2); color: #86efac; border-color: #166534; }
body.theme-dark .badge-amber { background: rgba(180, 83, 9, 0.2); color: #fde68a; border-color: #b45309; }
body.theme-dark .badge-purple { background: rgba(126, 34, 206, 0.2); color: #d8b4fe; border-color: #7e22ce; }
