/* 学期课包公开落地页 */

.pt-pathway-public-page .pt-shell__main {
  padding-top: 0;
}

.pt-pathway-page {
  width: 100%;
  min-width: 0;
  padding-bottom: 36px;
}

.pt-pathway-breadcrumb {
  padding: 18px 2px 14px;
  margin-bottom: 0;
}

.pt-pathway-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  padding: 36px 40px;
  border: 1px solid #e5e9f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.05);
}

.pt-pathway-hero__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #6b7c93;
}

.pt-pathway-hero h1,
.pt-pathway-detail__copy h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #1a2b42;
}

.pt-pathway-hero p,
.pt-pathway-detail__copy > p {
  margin: 0 0 18px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.65;
  color: #4a5b70;
}

.pt-pathway-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pt-pathway-hero__stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

.pt-pathway-hero__stats > div {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(148, 163, 184, .28);
}

.pt-pathway-hero__stats dt {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2b42;
}

.pt-pathway-hero__stats dd {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7c93;
}

.pt-pathway-grid {
  margin-top: 8px;
}

.pt-pathway-grid .pt-route {
  padding-top: 0;
}
.pt-route__cover {
  display: block;
  height: 132px;
  margin: 0 -20px 14px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--route-accent, #3b82f6) 55%, #1a2b42), var(--route-accent, #3b82f6));
}
.pt-route__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pt-pathway-empty {
  margin-top: 12px;
  padding: 40px 20px;
  text-align: center;
}

/* 与首页「怎么开始学」四步叙事同源的路径说明条 */
.pt-pathway-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 0 0 26px;
  padding: 16px 4px;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
}
.pt-pathway-flow__step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 10px 2px 2px;
}
.pt-pathway-flow__step i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(196, 210, 240, .95);
  color: var(--c-primary);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  box-shadow: var(--sh-1);
}
.pt-pathway-flow__step span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pt-pathway-flow__step strong {
  color: #1f2a44;
  font-size: 12px;
  font-weight: 800;
}
.pt-pathway-flow__step em {
  color: #8b95a8;
  font-size: 10px;
  font-style: normal;
}
.pt-pathway-flow__arrow {
  color: #c7d0e0;
  font-size: 14px;
  padding: 0 2px;
}

.pt-pathway-detail .pt-tdetail__hero {
  margin-bottom: 28px;
}

.pt-pathway-detail .pt-tdetail__preview-mark {
  font-size: 52px;
  font-weight: 400;
}

.pt-pathway-detail__sub {
  margin: -4px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.pt-pathway-detail__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7c93;
}

.pt-pathway-detail__body {
  grid-template-columns: 1fr;
}

.pt-pathway-outline h2 em {
  margin-left: 8px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #8b95a8;
}

/* 周任务时间线：与首页学习路径的连线 + 编号节点同一套视觉语言 */
.pt-pathway-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.pt-pathway-timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 83, 201, .35), rgba(0, 83, 201, .06));
}

.pt-pathway-week {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.pt-pathway-week__mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(196, 210, 240, .95);
  color: var(--route-accent, var(--c-primary));
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--sh-1);
}

.pt-pathway-week__body { min-width: 0; padding-top: 5px; }

.pt-pathway-week__head {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1a2b42;
}

.pt-pathway-week__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pt-pathway-week__item {
  display: flex;
  align-items: stretch;
  padding: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4eaf3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  overflow: hidden;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.pt-pathway-week__item + .pt-pathway-week__item { margin-top: 0; }
.pt-pathway-week__item.is-link:hover {
  background: #f7faff;
  border-color: #c9d7f8;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.pt-pathway-week__link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 16px 18px 16px 16px;
  color: inherit;
  text-decoration: none;
}
.pt-pathway-week__item:not(.is-link) {
  min-height: 76px;
  padding: 16px 18px 16px 16px;
  gap: 16px;
  align-items: center;
}
.pt-pathway-week__link:hover { color: inherit; text-decoration: none; }
.pt-pathway-week__link:hover .pt-pathway-week__name { color: #0053c9; }
.pt-pathway-week__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pt-pathway-week__go {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #0053c9;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
}
.pt-pathway-week__link:hover .pt-pathway-week__go {
  background: #0053c9;
  color: #fff;
}

.pt-pathway-week__type {
  flex: 0 0 auto;
  min-width: 5.8em;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  color: #1e40af;
  background: #dbeafe;
}
.pt-pathway-week__type.is-training { color: #065f46; background: #d1fae5; }
.pt-pathway-week__type.is-quiz { color: #c2410c; background: #ffedd5; }
.pt-pathway-week__type.is-project { color: #5b21b6; background: #ede9fe; }

.pt-pathway-week__name {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  color: #17233b;
}
.pt-pathway-week__hint {
  font-size: 13px;
  line-height: 1.4;
  color: #8b95a8;
}

@media (max-width: 860px) {
  .pt-pathway-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .pt-pathway-flow__arrow { display: none; }
  .pt-pathway-flow__step { width: calc(50% - 4px); }

  .pt-pathway-week__link,
  .pt-pathway-week__item:not(.is-link) {
    flex-wrap: wrap;
    min-height: 0;
    padding: 14px;
    gap: 10px 12px;
  }
  .pt-pathway-week__copy { flex: 1 1 160px; }
  .pt-pathway-week__go { margin-left: 0; }
}

@media (max-width: 480px) {
  .pt-pathway-flow__step { width: 100%; }
}
