.knowledge-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.style-group + .style-group {
  margin-top: 34px;
}

.style-group-head {
  margin-bottom: 14px;
}

.style-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.style-group-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.style-more-panel {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.style-more-panel summary {
  padding: 16px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.style-more-panel .style-card-grid {
  padding: 4px 0 24px;
}

.knowledge-resource-card,
.knowledge-point-card,
.knowledge-step-card,
.fabric-profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(34, 30, 24, 0.06);
}

.knowledge-home-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0 30px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.knowledge-fabric-panel {
  padding: 0 0 0 30px;
  border-left: 1px solid var(--line);
}

.knowledge-home-panel-head {
  min-height: 36px;
  margin-bottom: 16px;
}

.knowledge-home-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
}

.knowledge-home-card-grid,
.knowledge-resource-grid,
.knowledge-point-grid,
.knowledge-step-grid,
.fabric-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.knowledge-home-card-grid {
  grid-auto-rows: 176px;
}

.knowledge-home-card,
.knowledge-resource-card {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  padding: 17px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.knowledge-home-card {
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr) auto;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 41, 39, 0.055);
}

.knowledge-resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(34, 30, 24, 0.06);
}

.knowledge-home-card:hover,
.knowledge-resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 109, 74, 0.55);
  box-shadow: var(--shadow);
}

.knowledge-home-card h3,
.knowledge-resource-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
}

.knowledge-home-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.knowledge-home-card p,
.knowledge-resource-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.knowledge-home-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.knowledge-home-card > span,
.knowledge-resource-link {
  margin-top: auto;
  padding-top: 12px;
  color: #9c5d44;
  font-size: 13px;
  font-weight: 800;
}

.knowledge-home-card > span {
  margin-top: 0;
}

.knowledge-home-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: #9c5d44;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.knowledge-home-all:hover {
  color: var(--ink);
}

.knowledge-hub-summary,
.knowledge-article-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: 30px;
}

.knowledge-hub-summary h2,
.knowledge-article-summary h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
}

.knowledge-hub-visual,
.knowledge-article-visual {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.knowledge-color-visual {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.28), transparent 48%),
    linear-gradient(90deg, #efe2d2 0 20%, #8b4c4e 20% 40%, #304f70 40% 60%, #6d7a51 60% 80%, #211f20 80% 100%);
}

.knowledge-fabric-visual {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.34), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 18px),
    linear-gradient(125deg, #d8c5a8 0 25%, #d6e4de 25% 49%, #8ba6ae 49% 70%, #67504b 70% 100%);
}

.knowledge-point-grid,
.knowledge-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-point-card,
.knowledge-step-card {
  min-height: 144px;
  padding: 18px;
}

.knowledge-point-card strong,
.knowledge-step-card strong,
.fabric-profile-card strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.28;
}

.knowledge-point-card span,
.knowledge-step-card span,
.fabric-profile-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.knowledge-step-card::before {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  content: attr(data-step);
  font-weight: 900;
}

.knowledge-avoid-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-avoid-list div {
  min-height: 92px;
  padding: 18px;
  border-left: 4px solid #b36d4a;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

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

.fabric-profile-card {
  min-height: 176px;
  padding: 18px;
}

.fabric-profile-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fabric-profile-card b {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .knowledge-home-grid,
  .knowledge-hub-summary,
  .knowledge-article-summary {
    grid-template-columns: 1fr;
  }

  .knowledge-home-grid {
    gap: 30px;
  }

  .knowledge-home-panel {
    padding: 0;
  }

  .knowledge-fabric-panel {
    padding: 30px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .knowledge-point-grid,
  .knowledge-step-grid,
  .fabric-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .knowledge-home-card-grid,
  .knowledge-resource-grid,
  .knowledge-point-grid,
  .knowledge-step-grid,
  .knowledge-avoid-list,
  .fabric-profile-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-home-card-grid {
    grid-auto-rows: auto;
  }

  .knowledge-home-card {
    min-height: 158px;
  }

  .knowledge-home-panel-head {
    min-height: 0;
  }

  .knowledge-hub-visual,
  .knowledge-article-visual {
    min-height: 280px;
  }
}
