/**
 * 产品学习中心 · 四象限精品 Hub v4
 * 简道云 / 氚云 / 宜搭 / 明道云 样板
 */
:root {
  --plh-accent: #10b981;
  --plh-bg: rgba(15, 23, 42, 0.55);
  --plh-border: rgba(16, 185, 129, 0.22);
}

.plh-hub {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--plh-border);
}

.plh-hub__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plh-hub__head h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.plh-hub__head p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.65;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.plh-hub__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 0.65rem;
}

.plh-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.plh-pillar {
  background: var(--plh-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1rem 0.85rem;
  min-width: 0;
}

.plh-pillar__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.02em;
}

.plh-pillar__title i {
  opacity: 0.9;
}

.plh-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plh-list li {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.plh-list a {
  color: #e2e8f0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.plh-list a:hover {
  color: #6ee7b7;
  border-bottom-color: rgba(110, 231, 183, 0.4);
}

.plh-list__meta {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.plh-list__hint {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.4;
}

.plh-more {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  text-decoration: none;
}

.plh-more:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

.plh-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.plh-role {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: border-color 0.2s, transform 0.2s;
}

.plh-role:hover {
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
}

.plh-role strong {
  display: block;
  color: #f8fafc;
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}

.plh-role span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.4;
}

.plh-micount {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.plh-micount__title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c4b5fd;
}

.plh-micount__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plh-micount__links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.plh-micount__links a:hover {
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
}

/* resources 页分级 Tab */
.plh-res-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.plh-res-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.plh-res-tab.is-active,
.plh-res-tab:hover {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
}

.plh-res-panel {
  display: none;
}

.plh-res-panel.is-active {
  display: block;
}

.plh-res-card {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.65rem;
}

.plh-res-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  color: #f1f5f9;
}

.plh-res-card p {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
}

.plh-res-card a {
  font-size: 0.8125rem;
  color: #34d399;
  word-break: break-all;
}

@media (max-width: 1023px) {
  .plh-quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .plh-quad {
    grid-template-columns: 1fr;
  }

  .plh-roles {
    grid-template-columns: 1fr 1fr;
  }
}

/* 全站子页 · 学习导航轨 */
.plh-rail {
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--plh-border);
  background: rgba(15, 23, 42, 0.35);
}

.plh-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.plh-crumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.plh-crumb a:hover {
  color: #6ee7b7;
}

.plh-crumb__current {
  color: #f1f5f9;
  font-weight: 600;
}

.plh-rail__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.plh-rail__shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  text-decoration: none;
}

.plh-rail__shortcuts a:hover {
  border-color: rgba(16, 185, 129, 0.55);
}

.plh-rail__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.plh-rail__page {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
}

.plh-rail__page:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
}

.plh-rail__page.is-active {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
  font-weight: 700;
}

/* 子页角色/专题摘要 */
.plh-companion {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plh-companion__head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #f8fafc;
}

.plh-companion__meta {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #6ee7b7;
}

.plh-companion__summary {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 48rem;
}

.plh-companion__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.plh-companion__box {
  background: var(--plh-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  min-width: 0;
}

.plh-companion__box h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #34d399;
}

.plh-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.plh-steps li {
  margin-bottom: 0.35rem;
}

.plh-companion__task {
  margin: 0;
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 1.55;
}

.plh-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plh-related a {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.plh-related a:hover {
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.plh-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

.plh-pager a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.plh-pager a:hover {
  background: rgba(16, 185, 129, 0.28);
}

.plh-pager a.is-muted {
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.plh-pager__hub {
  color: #94a3b8;
  font-size: 0.75rem;
  align-self: center;
}

@media (max-width: 900px) {
  .plh-companion__grid {
    grid-template-columns: 1fr;
  }
}
