/* IC 实践三大主题落地页（与《处芯积律一站式学习平台功能介绍》对齐） */
body.ic-practice-hub-page {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%) !important;
  color: #1e293b;
  min-height: 100vh;
}
.ic-hub-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.ic-hub-hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.ic-hub-hero h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.3;
}
.ic-hub-hero .ic-hub-lead {
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 20px;
}
.ic-hub-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  margin-bottom: 14px;
}
.ic-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.ic-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ic-hub-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}
.ic-hub-btn-primary:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.ic-hub-btn-secondary {
  background: #fff;
  color: #4338ca !important;
  border: 1.5px solid #c7d2fe;
}
.ic-hub-btn-secondary:hover {
  background: #f5f3ff;
  color: #3730a3 !important;
}
.ic-hub-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ic-hub-section h2 {
  font-size: 1.15rem;
  color: #0f172a;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ic-hub-section h2 i {
  color: #6366f1;
}
.ic-hub-section p,
.ic-hub-section li {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
}
.ic-hub-section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}
.ic-hub-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}
.ic-hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ic-hub-table th,
.ic-hub-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
}
.ic-hub-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}
.ic-hub-table td {
  color: #334155;
}
.ic-hub-tip-inline {
  margin: 2px 0 10px;
  color: #475569 !important;
  font-size: 0.9rem !important;
}
.ic-hub-tip-inline i {
  color: #6366f1;
  margin-right: 6px;
}
.ic-hub-row-link:hover td {
  background: #f8fafc;
}
.ic-hub-project-link {
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ic-hub-project-link:hover {
  color: #3730a3;
  text-decoration: underline;
}
.ic-hub-token-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 16px;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}
.ic-hub-cross {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.ic-hub-cross a {
  display: block;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.ic-hub-cross a:hover {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #4338ca;
}
.ic-hub-cross a span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 6px;
}
.ic-hub-pipeline {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.ic-hub-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.ic-hub-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic-hub-step-body strong {
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}
.ic-hub-step-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}
.ic-hub-lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.ic-hub-lang-tags span {
  padding: 6px 12px;
  border-radius: 8px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.85rem;
  font-weight: 500;
}
.ic-hub-alert {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #78350f;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.ic-hub-alert a {
  font-weight: 600;
  color: #b45309;
}

/* VNC README 折叠（details/summary） */
.ic-hub-readme-details {
  margin: 0;
  border: 0;
}
.ic-hub-readme-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 4px 14px;
  margin: 0;
  border-radius: 10px;
  user-select: none;
  transition: background 0.15s;
}
.ic-hub-readme-summary::-webkit-details-marker {
  display: none;
}
.ic-hub-readme-summary:hover {
  background: #f8fafc;
}
.ic-hub-readme-summary-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
  transition: transform 0.2s;
}
.ic-hub-readme-details[open] .ic-hub-readme-summary-chevron {
  transform: rotate(90deg);
}
.ic-hub-readme-summary-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ic-hub-readme-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ic-hub-readme-summary-title i {
  color: #6366f1;
}
.ic-hub-readme-summary-hint {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}
.ic-hub-readme-summary-hint code {
  font-size: 0.82em;
  padding: 1px 6px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #475569;
}
.ic-hub-readme-body {
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
  animation: ic-hub-readme-open 0.2s ease;
}
@keyframes ic-hub-readme-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* VNC README 区块（IC 仿真实践页） */
.ic-hub-readme-section .ic-hub-readme-lead {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.95rem;
}
.ic-hub-readme-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 10px;
}
.ic-hub-readme-section .ic-hub-readme-h3:first-of-type {
  margin-top: 6px;
}
.ic-hub-readme-pre {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 10px 0 14px;
  font-size: 0.82rem;
  line-height: 1.55;
}
.ic-hub-readme-pre code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: #334155;
  white-space: pre;
  display: block;
}
.ic-hub-alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.ic-hub-alert-danger strong {
  display: block;
  margin-bottom: 8px;
  color: #7f1d1d;
}
.ic-hub-alert-danger p {
  margin: 0;
  color: #991b1b;
  line-height: 1.65;
  font-size: 0.9rem;
}
.ic-hub-alert-danger p + p {
  margin-top: 8px;
}
.ic-hub-readme-path-table td:first-child {
  min-width: 200px;
}
.ic-hub-readme-note {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
  margin: 10px 0 0;
}

/* 七大实践项目盘点：整块 details 折叠，内嵌卡片网格 */
.ic-hub-inv-section .ic-hub-readme-body .ic-hub-inv-intro {
  margin-top: 0;
}
.ic-hub-inv-intro {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 14px;
}
.ic-hub-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.ic-hub-inv-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
}
.ic-hub-inv-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}
.ic-hub-inv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ic-hub-inv-path {
  font-size: 0.78rem;
  color: #64748b;
  word-break: break-all;
}
.ic-hub-inv-path code {
  font-size: 0.78rem;
  padding: 2px 6px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #475569;
}
.ic-hub-diff {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.ic-hub-diff--entry {
  background: #dcfce7;
  color: #166534;
}
.ic-hub-diff--mid {
  background: #dbeafe;
  color: #1e40af;
}
.ic-hub-diff--midhigh {
  background: #fef3c7;
  color: #92400e;
}
.ic-hub-diff--high {
  background: #fee2e2;
  color: #991b1b;
}
.ic-hub-diff--tool {
  background: #e0e7ff;
  color: #3730a3;
}
.ic-hub-inv-dl {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}
.ic-hub-inv-dl dt {
  font-weight: 700;
  color: #334155;
  margin-top: 10px;
}
.ic-hub-inv-dl dt:first-child {
  margin-top: 0;
}
.ic-hub-inv-dl dd {
  margin: 4px 0 0;
  padding-left: 0;
}
.ic-hub-inv-dl ul {
  margin: 4px 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #475569;
}
.ic-hub-inv-footnote {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.65;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
