/**
 * 简道云学习中心 — 体系化导航 / 课程大纲 / 能力矩阵
 */
.jdy-hub-hero {
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 45%, #134e4a 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.jdy-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.1), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(16, 185, 129, 0.15), transparent 40%);
  pointer-events: none;
}
.jdy-hub-hero > .container {
  position: relative;
  z-index: 1;
}

.jdy-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1023px) {
  .jdy-pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .jdy-pillar-grid { grid-template-columns: 1fr; }
}

.jdy-pillar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
}
.jdy-pillar__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}
.jdy-pillar__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.jdy-pillar__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.jdy-pillar__desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.jdy-pillar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.jdy-pillar__links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #334155;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  transition: background 0.15s, color 0.15s;
}
.jdy-pillar__links a:hover {
  background: #ecfdf5;
  color: #047857;
}
.jdy-pillar__links a i {
  color: #10b981;
  width: 1rem;
  text-align: center;
  font-size: 0.75rem;
}

.jdy-syllabus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1023px) {
  .jdy-syllabus { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .jdy-syllabus { grid-template-columns: 1fr; }
}

.jdy-chapter {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.jdy-chapter:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}
.jdy-chapter__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.jdy-chapter__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.jdy-chapter__meta {
  font-size: 0.6875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.jdy-chapter__topics {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  flex: 1;
}
.jdy-chapter__topics li {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.55;
  padding-left: 0.85rem;
  position: relative;
  margin-bottom: 0.2rem;
}
.jdy-chapter__topics li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #10b981;
}
.jdy-chapter__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  text-decoration: none;
  margin-top: auto;
}
.jdy-chapter__cta:hover { text-decoration: underline; }

.jdy-api-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.jdy-api-matrix th,
.jdy-api-matrix td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.jdy-api-matrix th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}
.jdy-api-matrix tr:last-child td { border-bottom: none; }
.jdy-api-matrix .tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-right: 0.25rem;
  margin-bottom: 0.15rem;
}
.jdy-api-matrix .tag--config { background: #ecfdf5; color: #047857; }
.jdy-api-matrix .tag--dev { background: #eff6ff; color: #1d4ed8; }
.jdy-api-matrix .tag--both { background: #f5f3ff; color: #6d28d9; }

.jdy-scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
@media (max-width: 1023px) {
  .jdy-scenario-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .jdy-scenario-grid { grid-template-columns: 1fr; }
}
.jdy-scenario {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.jdy-scenario:hover {
  border-color: #10b981;
  transform: translateY(-2px);
}
.jdy-scenario__icon { font-size: 1.35rem; margin-bottom: 0.35rem; }
.jdy-scenario__title { font-size: 0.875rem; font-weight: 700; color: #0f172a; margin-bottom: 0.25rem; }
.jdy-scenario__desc { font-size: 0.75rem; color: #64748b; line-height: 1.5; }

.jdy-role-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 767px) {
  .jdy-role-split { grid-template-columns: 1fr; }
}
.jdy-role-card {
  background: #fff;
  border-radius: 0.85rem;
  padding: 1.15rem;
  border: 1px solid #e5e7eb;
}
.jdy-role-card--config { border-top: 3px solid #10b981; }
.jdy-role-card--dev { border-top: 3px solid #3b82f6; }
