/* 目录页 / 课程卡 / 教程详情 —— 对齐设计稿「全部课程」与「课程详情」 */

/* ---- 精品课程卡（首页/列表共用） ---- */
.pt-course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.pt-course {
  --course-bg: #0053c9;
  --course-fg: #fff;
  --course-accent: #4d84ff;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-1);
  transition: transform var(--t-base) var(--ease-out-soft), box-shadow var(--t-base) var(--ease-out-soft), border-color var(--t-fast);
}
a.pt-course:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: #d5e0ff;
  color: inherit;
  text-decoration: none;
}
.pt-course__cover {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.28), transparent 45%),
    linear-gradient(145deg, var(--course-bg), #1a2744);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-course__cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pt-course__cover.has-cover .pt-course__glow,
.pt-course__cover.has-cover .pt-course__badge {
  display: none;
}
.pt-course__glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  filter: blur(8px);
}
.pt-course__badge {
  position: relative;
  z-index: 1;
  min-width: 72px;
  height: 72px;
  padding: 0 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--course-fg);
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.pt-course__ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.92);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.pt-course__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  flex: 1;
}
.pt-course__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.pt-course__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pt-course__stat {
  font-size: var(--fs-xs);
  color: var(--c-text-weak);
}
.pt-course__price {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.2;
}
.pt-course__price--muted {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-warning);
}
.pt-course__ribbon--lock {
  color: #92400e;
  background: #fef3c7;
}
button.pt-course {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
}
button.pt-course.is-locked:hover {
  transform: none;
  box-shadow: var(--sh-sm);
  border-color: #fde68a;
}
.pt-catalog2__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-3);
  width: 100%;
}
.pt-catalog2__search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  background: #fff;
  color: var(--c-text);
}
.pt-catalog2__search input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0, 83, 201, .12);
}
.pt-catalog2__search button {
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--r-md);
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.pt-catalog2__search button:hover {
  background: var(--c-primary-hover);
}
.pt-catalog2__toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

/* ---- 双栏目录（侧栏分类 + 主区） ---- */
.pt-catalog2 {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.pt-catalog2__side {
  position: sticky;
  top: calc(var(--h-header) + 16px);
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--sh-1);
}
.pt-catalog2__side-title {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--c-text);
}
.pt-catalog2__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-catalog2__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--fs-base);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.pt-catalog2__link:hover {
  background: var(--c-bg-page);
  color: var(--c-primary);
  text-decoration: none;
}
.pt-catalog2__link.is-active {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 700;
}
.pt-catalog2__count {
  font-size: var(--fs-xs);
  color: var(--c-text-weak);
  background: var(--c-bg-page);
  padding: 0 7px;
  height: 18px;
  line-height: 18px;
  border-radius: var(--r-full);
}
.pt-catalog2__link.is-active .pt-catalog2__count {
  background: #fff;
  color: var(--c-primary);
}

.pt-catalog2__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.pt-catalog2__title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pt-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-filter-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-fast);
}
.pt-filter-pill:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}
.pt-filter-pill.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.pt-pagination {
  gap: 8px;
}
.pt-pagination a,
.pt-pagination span {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--c-bg-page);
  font-weight: 600;
}
.pt-pagination .is-active {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 83, 201, .35);
}

/* ---- 塑造工坊四入口 ---- */
.pt-learning-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.pt-learning-mode {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pt-learning-mode:hover {
  border-color: #b8caf4;
  box-shadow: 0 8px 20px rgba(0, 83, 201, .08);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}
.pt-learning-mode.is-active { border-color: #b7cbff; background: #f5f8ff; }
.pt-learning-mode__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef3fb;
  color: #56677f;
}
.pt-learning-mode.is-active .pt-learning-mode__icon { background: #0053c9; color: #fff; }
.pt-learning-mode__icon .pt-icon { width: 19px; height: 19px; }
.pt-learning-mode > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pt-learning-mode strong { color: #283349; font-size: 13px; font-weight: 800; }
.pt-learning-mode em { overflow: hidden; color: #9099a8; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.pt-learning-mode > b { color: #8f99aa; font-size: 10px; font-weight: 700; }
.pt-learning-mode.is-active > b { color: #0053c9; }

/* ---- 课程 / 实训中心 ---- */
.pt-center-page { min-width: 0; padding-bottom: 34px; }
.pt-center-breadcrumb { padding: 18px 0 14px; margin-bottom: 0; }
.pt-center-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
  align-items: center;
  gap: 48px;
  min-height: 306px;
  padding: 40px 46px;
  overflow: hidden;
  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-center-hero__copy { position: relative; z-index: 2; min-width: 0; }
.pt-center-hero__eyebrow,
.pt-center-results__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #0053c9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}
.pt-center-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #17233b;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -.035em;
}
.pt-center-hero__copy > p {
  max-width: 690px;
  margin: 14px 0 22px;
  color: #657188;
  font-size: 14px;
  line-height: 1.8;
}
.pt-center-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-center-hero__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(0, 83, 201, .13);
  border-radius: 7px;
  background: rgba(255,255,255,.7);
  color: #58677f;
  font-size: 11px;
  font-weight: 650;
}
.pt-center-hero__facts strong { margin-right: 4px; color: #0053c9; font-size: 14px; }
.pt-center-hero__visual { position: relative; min-width: 0; }

.pt-center-course-art__panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dbe5f4;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 22px 42px rgba(35, 60, 108, .14);
  transform: rotate(-1deg);
}
.pt-center-course-art__top,
.pt-center-practice-art__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #e7edf5;
  background: #fbfcfe;
}
.pt-center-course-art__top i,
.pt-center-practice-art__bar i { width: 7px; height: 7px; border-radius: 50%; background: #c3ccda; }
.pt-center-course-art__top b,
.pt-center-practice-art__bar b { margin-left: auto; color: #697990; font-size: 10px; font-weight: 650; }
.pt-center-course-art__lesson {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  margin: 7px 9px;
  padding: 7px 10px;
  border-radius: 8px;
}
.pt-center-course-art__lesson.is-current { background: #edf3ff; }
.pt-center-course-art__lesson i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: #eff2f7; color: #687890; font-size: 10px; font-style: normal; font-weight: 800; }
.pt-center-course-art__lesson.is-current i { background: #0053c9; color: #fff; }
.pt-center-course-art__lesson b { overflow: hidden; color: #344055; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pt-center-course-art__lesson em { color: #9ba5b3; font-size: 9px; font-style: normal; }

.pt-center-practice-art__window {
  width: 100%;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 14px;
  background: #13223b;
  box-shadow: 0 22px 44px rgba(30, 62, 73, .18);
  transform: rotate(1deg);
}
.pt-center-practice-art__bar { border-bottom-color: #2b3a50; background: #192b46; }
.pt-center-practice-art__bar b { color: #92a2b7; }
.pt-center-practice-art__code { display: block; min-height: 126px; padding: 24px 28px 12px; }
.pt-center-practice-art__code i { display: block; width: 73%; height: 6px; margin-bottom: 13px; border-radius: 2px; background: linear-gradient(90deg,#65a2ff 0 32%,#253e61 32% 40%,#93b4ff 40% 73%,transparent 73%); }
.pt-center-practice-art__code i:nth-child(2) { width: 58%; margin-left: 20px; }
.pt-center-practice-art__code i:nth-child(3) { width: 80%; margin-left: 20px; }
.pt-center-practice-art__code i:nth-child(4) { width: 49%; margin-left: 40px; }
.pt-center-practice-art__code i:nth-child(5) { width: 65%; }
.pt-center-practice-art__result { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px; background: #fff; }
.pt-center-practice-art__result b { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; background: #e8efff; color: #0053c9; font-size: 12px; }
.pt-center-practice-art__result em { color: #506075; font-size: 11px; font-style: normal; font-weight: 700; }
.pt-center-practice-art__result strong { margin-left: auto; color: #0053c9; font-size: 11px; }

.pt-center-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.pt-center-side {
  position: sticky;
  top: calc(var(--h-header) + 16px);
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sh-2);
}
.pt-center-side__head { display: flex; align-items: center; justify-content: space-between; padding: 17px 16px 12px; border-bottom: 1px solid #edf0f5; }
.pt-center-side__head strong { color: #283247; font-size: 13px; }
.pt-center-side__head span { color: #9ba4b2; font-size: 9px; }
.pt-center-side__nav { display: flex; flex-direction: column; gap: 3px; padding: 9px; }
.pt-center-side__link {
  min-width: 0;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #4b566a;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.pt-center-side__link:hover { background: #f7f9fc; color: #0053c9; text-decoration: none; }
.pt-center-side__link.is-active { background: #edf3ff; color: #0053c9; }
.pt-center-side__mark { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 7px; background: #eef2f8; color: #64758c; font-size: 9px; font-weight: 850; }
.pt-center-side__mark .pt-icon { width: 14px; height: 14px; }
.pt-center-side__link.is-active .pt-center-side__mark { background: #0053c9; color: #fff; }
.pt-center-side__link b { min-width: 19px; padding: 2px 5px; border-radius: 9px; background: #f1f3f7; color: #8d97a6; font-size: 9px; text-align: center; }

/* 一级 / 二级分类树（实战、题库共用） */
.pt-center-side .pt-cat-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding: 2px 0;
  border-radius: 10px;
}
.pt-center-side .pt-cat-group.is-open {
  margin-top: 4px;
  padding: 3px;
  background: #f7f9fd;
}
.pt-center-side__link--parent.is-branch {
  background: #eef3ff;
  color: #0053c9;
}
.pt-center-side .pt-cat-group__children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 2px 14px;
  padding: 2px 0 2px 10px;
  border-left: 2px solid #d7e2f6;
}
.pt-center-side__link--child {
  grid-template-columns: 6px minmax(0, 1fr) auto;
  min-height: 34px;
  margin-left: 0;
  padding: 5px 8px;
  color: #788397;
  font-weight: 600;
}
.pt-center-side__link--child .pt-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5d0e4;
}
.pt-center-side__link--child.is-active .pt-cat-dot,
.pt-center-side__link--child:hover .pt-cat-dot {
  background: #0053c9;
}
.pt-center-side__link--child.is-active {
  background: #edf3ff;
  color: #0053c9;
}
.pt-center-side__mine,
.pt-center-side__tip { margin: 0 10px 10px; border-radius: 9px; background: #f5f8ff; }
.pt-center-side__mine { display: grid; grid-template-columns: 32px 1fr; gap: 1px 9px; padding: 11px; color: inherit; text-decoration: none; }
.pt-center-side__mine:hover { color: inherit; text-decoration: none; background: #edf3ff; }
.pt-center-side__mine > span { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #fff; color: #0053c9; }
.pt-center-side__mine .pt-icon { width: 15px; height: 15px; }
.pt-center-side__mine strong { color: #344055; font-size: 11px; }
.pt-center-side__mine em { color: #8994a5; font-size: 9px; font-style: normal; }
.pt-center-side__tip { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: #f5f8ff; }
.pt-center-side__tip strong { color: #344055; font-size: 11px; }
.pt-center-side__tip span { color: #8994a5; font-size: 9px; line-height: 1.55; }
.pt-center-side__tip a { color: #0053c9; font-size: 10px; font-weight: 700; }

.pt-center-results { min-width: 0; }
.pt-center-results__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 3px 0 16px; }
.pt-center-results__head h2 { margin: 0; color: #202a3d; font-size: 23px; font-weight: 850; letter-spacing: -.025em; }
.pt-center-results__head h2 em { margin-left: 5px; color: #0053c9; font-size: 12px; font-style: normal; }
.pt-center-results__head p { margin: 5px 0 0; color: #929baa; font-size: 10px; }
.pt-center-search { display: flex; align-items: center; gap: 9px; height: 44px; padding: 4px 4px 4px 13px; border: 1px solid #dfe4ec; border-radius: 9px; background: #fff; }
.pt-center-search:focus-within { border-color: #a7bdf4; box-shadow: 0 0 0 3px rgba(0,83,201,.08); }
.pt-center-search > .pt-icon { width: 15px; height: 15px; color: #8f99a8; }
.pt-center-search input[type="search"] { min-width: 0; flex: 1; height: 34px; border: 0; outline: 0; background: transparent; color: #334055; font-size: 12px; }
.pt-center-search button { height: 34px; padding: 0 15px; border: 0; border-radius: 6px; background: #0053c9; color: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.pt-center-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.pt-center-grid .pt-course { border-radius: 12px; box-shadow: var(--sh-1); }
.pt-center-grid .pt-course__cover { aspect-ratio: 5 / 3; }
.pt-center-grid .pt-course__badge { min-width: 60px; height: 60px; border-radius: 15px; font-size: 15px; }
.pt-course__eyebrow { overflow: hidden; color: #7c8798; font-size: 9px; font-weight: 750; letter-spacing: .025em; text-overflow: ellipsis; white-space: nowrap; }
.pt-course__facts { display: flex; flex-wrap: wrap; gap: 6px 12px; min-height: 17px; }
.pt-course__facts span { position: relative; color: #8f98a7; font-size: 9px; }
.pt-course__facts span + span::before { content: "·"; position: absolute; left: -8px; color: #c1c7d0; }
.pt-center-grid .pt-course__body { gap: 7px; padding: 13px 14px 15px; }
.pt-center-grid .pt-course__title { font-size: 14px; }
.pt-center-grid .pt-course__price { font-size: 12px; }
.pt-center-empty { margin-top: 18px; padding: 48px 20px; border: 1px dashed #dce2eb; border-radius: 12px; background: rgba(255,255,255,.55); }

/* ---- 详情页头：浅色，与列表页一致 ---- */
.pt-tdetail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .72fr);
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  margin-bottom: 28px;
  border: 1px solid #e4eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.pt-tdetail__preview {
  position: relative;
  order: 2;
  min-height: 168px;
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  background: #f5f8ff;
}
.pt-tdetail__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pt-tdetail__preview.has-cover {
  background: #0f172a;
}
.pt-tdetail__preview.has-cover .pt-tdetail__preview-mark {
  display: none;
}
.pt-tdetail__preview-mark {
  color: #0053c9;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .04em;
}
.pt-tdetail__play {
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
}
.pt-tdetail__play:hover {
  background: rgba(255, 255, 255, .28);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}
.pt-tdetail__preview:not(.has-cover) .pt-tdetail__play {
  background: rgba(0, 83, 201, .1);
  border-color: rgba(0, 83, 201, .42);
  color: #0053c9;
  box-shadow: none;
}
.pt-tdetail__preview:not(.has-cover) .pt-tdetail__play:hover {
  background: rgba(0, 83, 201, .18);
  border-color: #0053c9;
  color: #0053c9;
}
.pt-tdetail__info {
  order: 1;
  min-width: 0;
}
.pt-tdetail__info h1 {
  margin: 0 0 12px;
  color: #17233b;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -.03em;
}
.pt-tdetail__desc {
  margin: 0 0 16px;
  color: #657188;
  font-size: 14px;
  line-height: 1.75;
}
.pt-tdetail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pt-tdetail__meta .pt-tag {
  background: #f5f8ff;
  border-color: #e4eaf3;
  color: #4b5b73;
}
.pt-tdetail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pt-tdetail__cta .pt-btn--primary {
  background: #0053c9;
  color: #fff;
  box-shadow: none;
}
.pt-tdetail__cta .pt-btn--primary:hover {
  background: #205ce8;
  color: #fff;
}
.pt-tdetail__cta .pt-btn--secondary {
  background: #fff;
  border-color: #d9e3f2;
  color: #334055;
}
.pt-tdetail__cta .pt-btn--secondary:hover {
  background: #f5f8ff;
  border-color: #0053c9;
  color: #0053c9;
}

.pt-tdetail__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .85fr);
  gap: var(--sp-6);
  align-items: start;
}
/* 去卡片化：介绍/目录不再是白底卡片，直接落在页面背景上，靠标题下划线分隔 */
.pt-tdetail__panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.pt-tdetail__panel h2 {
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border-light);
  font-size: var(--fs-lg);
  font-weight: 800;
}
.pt-tdetail__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pt-tdetail__bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--c-text-sub);
  line-height: 1.65;
  font-size: var(--fs-base);
}
.pt-tdetail__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  box-shadow: inset 0 0 0 4px var(--c-primary);
}

.pt-outline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-outline__chapter {
  margin-bottom: var(--sp-3);
}
.pt-outline__chapter-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f3f6fb;
}
.pt-outline__chapter-no {
  color: #2563eb;
  font-variant-numeric: tabular-nums;
}
.pt-outline__lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--c-text);
  text-decoration: none;
  transition: background var(--t-fast);
}
.pt-outline__lesson:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  text-decoration: none;
}
.pt-outline__num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--c-bg-page);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pt-outline__name {
  flex: 1;
  font-weight: 600;
  font-size: var(--fs-base);
  min-width: 0;
}
.pt-outline__dur {
  font-size: var(--fs-xs);
  color: var(--c-text-weak);
}
.pt-outline__lesson.is-done .pt-outline__num {
  background: #e8efff;
  color: #0053c9;
}
.pt-outline__lesson.is-locked {
  opacity: .62;
  cursor: not-allowed;
}
.pt-tdetail__panel h2 em {
  margin-left: 8px;
  color: var(--c-text-weak);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 650;
}
.pt-tdetail__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
}
.pt-tdetail__progress {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-light);
}
.pt-tdetail__progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  font-weight: 650;
}
.pt-tdetail__progress-label strong { color: var(--c-primary); font-size: var(--fs-md); }
.pt-tdetail__progress.is-done .pt-tdetail__progress-label strong { color: #0053c9; }
.pt-tdetail__progress-track {
  height: 8px;
  overflow: hidden;
  background: #e8edf5;
  border-radius: 999px;
}
.pt-tdetail__progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0053c9, #4d84ff);
  border-radius: 999px;
}
.pt-tdetail__progress.is-done .pt-tdetail__progress-track i {
  background: linear-gradient(90deg, #0053c9, #4d84ff);
}
.pt-tdetail__teacher {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pt-tdetail__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.pt-tdetail__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}
.pt-tdetail__teacher strong {
  display: block;
  margin-bottom: 4px;
  color: var(--c-text);
  font-size: var(--fs-md);
}
.pt-tdetail__teacher-meta {
  margin: 0 0 8px;
  color: #0053c9;
  font-size: var(--fs-sm);
}
.pt-tdetail__teacher-bio {
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.pt-tdetail__body--practice {
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr);
}
.pt-challenge-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}
.pt-challenge-stats div {
  padding: 12px 10px;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  background: #f8fafc;
  text-align: center;
}
.pt-challenge-stats dt {
  color: #0053c9;
  font-size: 20px;
  font-weight: 800;
}
.pt-challenge-stats dd {
  margin: 2px 0 0;
  color: var(--c-text-weak);
  font-size: 11px;
}
.pt-challenge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pt-challenge-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  background: #fff;
}
.pt-challenge-item.is-passed { border-color: #c5d7ff; background: #f7faff; }
.pt-challenge-item.is-in-progress { border-color: #c5d7ff; background: #f7faff; }
.pt-challenge-item.is-locked { opacity: .72; background: #f8fafc; }
.pt-challenge-item__num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef2f7;
  color: #4b5b73;
  font-size: 13px;
  font-weight: 800;
}
.pt-challenge-item.is-passed .pt-challenge-item__num,
.pt-challenge-item.is-in-progress .pt-challenge-item__num,
.pt-challenge-item.is-available .pt-challenge-item__num { background: #e8efff; color: #0053c9; }
.pt-challenge-item__body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--c-text);
  font-size: var(--fs-base);
}
.pt-challenge-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--c-text-weak);
  font-size: var(--fs-xs);
}
.pt-challenge-item__meta .is-score { color: #0053c9; font-weight: 700; }
.pt-challenge-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.pt-challenge-item__status {
  color: var(--c-text-weak);
  font-size: 11px;
  font-weight: 650;
}
.pt-btn.is-disabled,
.pt-btn--ghost.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  color: #8290a4;
  background: #f0f3f7;
  border-color: transparent;
}

.pt-library { min-width: 0; padding-bottom: 36px; }
.pt-library__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 22px;
}
.pt-library__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #0053c9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.pt-library__head h1 {
  margin: 0;
  color: var(--c-text);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.pt-library__head p {
  margin: 8px 0 0;
  max-width: 520px;
  color: var(--c-text-sub);
  font-size: var(--fs-base);
  line-height: 1.65;
}
.pt-library__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.pt-library__stats div {
  min-width: 110px;
  padding: 14px 16px;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
}
.pt-library__stats dt {
  color: #0053c9;
  font-size: 22px;
  font-weight: 800;
}
.pt-library__stats dd {
  margin: 2px 0 0;
  color: var(--c-text-weak);
  font-size: 12px;
}
.pt-library .pt-empty { margin-top: 8px; }
.pt-library .pt-empty .pt-btn { margin-top: 16px; }

@media (max-width: 991px) {
  .pt-learning-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-center-hero { grid-template-columns: 1fr; gap: 24px; }
  .pt-center-hero__visual { width: min(100%, 500px); }
  .pt-center-layout { grid-template-columns: 1fr; }
  .pt-center-side { position: static; }
  .pt-center-side__nav { flex-direction: row; overflow-x: auto; align-items: stretch; }
  .pt-center-side__link { min-width: 150px; }
  .pt-center-side .pt-cat-group {
    flex: 0 0 auto;
    min-width: 170px;
    margin-top: 0;
    padding: 3px;
    background: #f7f9fd;
  }
  .pt-center-side .pt-cat-group__children {
    margin-left: 8px;
    padding-left: 8px;
  }
  .pt-center-side__link--child { margin-left: 0; min-width: 0; }
  .pt-center-side__mine,
  .pt-center-side__tip { display: none; }
  .pt-catalog2 {
    grid-template-columns: 1fr;
  }
  .pt-catalog2__side {
    position: static;
  }
  .pt-catalog2__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .pt-catalog2__link {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .pt-course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pt-tdetail__hero,
  .pt-tdetail__body,
  .pt-tdetail__body--practice {
    grid-template-columns: 1fr;
  }
  .pt-challenge-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .pt-challenge-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
  }
  .pt-library__head { align-items: flex-start; flex-direction: column; }
  .pt-challenge-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pt-center-breadcrumb { padding-top: 12px; }
  .pt-center-hero { padding: 28px 20px; border-radius: 12px; }
  .pt-center-hero h1 { font-size: 27px; }
  .pt-center-hero__copy > p { font-size: 13px; }
  .pt-center-course-art__lesson em { display: none; }
  .pt-center-results__head { align-items: flex-start; flex-direction: column; }
  .pt-center-search button { padding: 0 11px; }
  .pt-center-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pt-course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }
  .pt-course__title { min-height: 0; }
}
@media (max-width: 480px) {
  .pt-learning-modes { grid-template-columns: 1fr; }
  .pt-center-grid { grid-template-columns: 1fr; }
  .pt-center-hero__facts span { padding: 0 8px; }
}
