:root {
  --ink: #0b2b5a;
  --muted: #6c7d92;
  --paper: #f7fbff;
  --primary: #1677ff;
  --primary-strong: #0b5fd7;
  --primary-soft: #e8f4ff;
  --accent: #ff4d4f;
  --accent-soft: #fff0ee;
  --cyan: #32c8f0;
  --mint: #59ddc5;
  --line: #18385f;
  --page-pad: 18px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: #eaf4ff;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgb(22 119 255 / 17%), transparent 30rem),
    #eaf4ff;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 3px solid rgb(34 121 224 / 34%);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background: var(--paper);
  box-shadow: 0 0 48px rgb(11 43 90 / 10%);
}

.app-header {
  position: relative;
  padding: max(12px, env(safe-area-inset-top)) var(--page-pad) 16px;
  background:
    radial-gradient(circle at 72% 16%, rgb(255 255 255 / 78%), transparent 25%),
    linear-gradient(180deg, #7bc4ff 0%, #b9ddff 52%, #e7f3ff 84%, var(--paper) 100%);
}

.status-bar {
  display: flex;
  min-height: 23px;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  font-size: 14px;
  font-weight: 850;
}

.status-icons {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.status-icons i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--ink);
}

.status-icons i:nth-child(1) { height: 5px; }
.status-icons i:nth-child(2) { height: 8px; }
.status-icons i:nth-child(3) { height: 11px; }

.status-icons b {
  position: relative;
  display: block;
  width: 21px;
  height: 10px;
  margin-left: 7px;
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.status-icons b::before {
  position: absolute;
  inset: 1px 4px 1px 1px;
  border-radius: 1px;
  background: var(--ink);
  content: "";
}

.status-icons b::after {
  position: absolute;
  top: 2px;
  right: -4px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: var(--ink);
  content: "";
}

.masthead,
.slogan-lockup,
.section-heading,
.section-heading > div,
.mentor-meta,
.package-footer {
  display: flex;
  align-items: center;
}

.masthead {
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 16px;
}

.slogan-lockup {
  min-width: 0;
}

.slogan-lockup h1 {
  margin: 0;
  font-size: clamp(21px, 6.2vw, 27px);
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

main {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.glory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(110px, 0.95fr);
  gap: 9px;
  padding: 0 var(--page-pad);
}

.glory-card,
.insight-card,
.mentor-cover,
.package-card,
.recommended-cover {
  border: 2px solid var(--line);
}

.glory-card {
  position: relative;
  min-height: 216px;
  padding: 14px 12px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 24% 12%, rgb(255 255 255 / 24%), transparent 34%),
    linear-gradient(145deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 5px 0 rgb(11 43 90 / 9%);
  color: #fff;
}

.dot-field {
  position: absolute;
  right: -18px;
  bottom: -7px;
  width: 155px;
  height: 135px;
  opacity: 0.48;
  background-image: radial-gradient(circle, #fff 0 2px, transparent 2.5px);
  background-size: 13px 13px;
  mask-image: linear-gradient(135deg, transparent 4%, #000 74%);
}

.glory-card h2 {
  position: relative;
  z-index: 3;
  margin: 5px 0 9px;
  font-size: clamp(22px, 6vw, 27px);
  font-weight: 950;
  letter-spacing: 0;
}

.glory-story-viewport {
  position: relative;
  z-index: 3;
  width: min(100%, 150px);
  height: 88px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 75%, rgb(0 0 0 / 45%) 88%, transparent 100%);
}

.glory-story-list {
  --story-step: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(0);
  will-change: transform;
}

.glory-story-list.is-rolling {
  transform: translateY(calc(-1 * var(--story-step)));
  transition: transform 620ms cubic-bezier(.22, .78, .22, 1);
}

.glory-story-row {
  display: grid;
  height: 32px;
  flex: 0 0 32px;
  align-content: start;
}

.glory-story-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.glory-story-row strong {
  flex: none;
  font-size: 12px;
  font-weight: 900;
}

.glory-story-row span {
  overflow: hidden;
  color: rgb(255 255 255 / 74%);
  font-size: 9px;
  text-overflow: ellipsis;
}

.glory-story-row b {
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
}

.glory-trophy {
  position: absolute;
  z-index: 2;
  right: -3px;
  bottom: -10px;
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(2px 5px 0 rgb(38 39 34 / 10%));
}

.insight-stack {
  display: grid;
  gap: 9px;
}

.insight-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 103px;
  padding: 11px 10px;
  overflow: hidden;
  border-radius: 17px;
  text-align: left;
  cursor: pointer;
}

.insight-cream { background: var(--accent-soft); }
.insight-blue { background: var(--primary-soft); }

.insight-card::after {
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  content: "";
}

.insight-cream::after { background: #ffc9c6; }
.insight-blue::after { background: #b9ddff; }

.insight-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.insight-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.insight-copy strong > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-copy > i {
  max-width: calc(100% - 52px);
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.insight-art {
  position: absolute;
  z-index: 2;
  right: 3px;
  bottom: 2px;
  display: block;
  width: 54px;
  height: 47px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px rgb(38 39 34 / 12%));
}

.content-section {
  padding: 29px var(--page-pad) 0;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.section-heading > div {
  gap: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.heading-mark {
  display: block;
  width: 7px;
  height: 24px;
  transform: rotate(3deg);
  border-radius: 5px;
  background: linear-gradient(var(--primary) 25%, #9fd0ff);
}

.section-heading > span,
.section-heading > button {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.section-heading > button {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.section-heading > button svg {
  width: 14px;
  height: 14px;
}

.mentor-course-list {
  display: grid;
  gap: 13px;
}

.mentor-card {
  position: relative;
  display: grid;
  min-height: 105px;
  grid-template-columns: 88px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid #eeece4;
}

.mentor-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mentor-cover {
  position: relative;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 16px;
}

.mentor-cover-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tone-yellow { background: linear-gradient(135deg, #e4f2ff, #73b8ff); }
.tone-blue { background: linear-gradient(135deg, #dff8ff, #67cfed); }
.tone-orange { background: linear-gradient(135deg, #fff0ee, #ff8b85); }
.tone-mint { background: linear-gradient(135deg, #ddfaef, #8edcc3); }

.mentor-cover > span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 5px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: #fff;
  font-size: 6px;
  font-weight: 800;
}

.mentor-cover > strong {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  font-size: 18px;
  font-weight: 950;
}

.teacher-avatar {
  position: absolute;
  right: -4px;
  bottom: -8px;
  width: 57px;
  height: 69px;
}

.teacher-avatar i {
  position: absolute;
  top: 0;
  left: 9px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff6e6;
}

.teacher-avatar i::before {
  position: absolute;
  top: -4px;
  left: 3px;
  width: 29px;
  height: 14px;
  transform: rotate(-8deg);
  border: 2px solid var(--ink);
  border-radius: 50% 55% 30% 40%;
  background: var(--ink);
  content: "";
}

.teacher-avatar b {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 52px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 23px 23px 0 0;
  background: #fff;
  font-size: 11px;
}

.mentor-info {
  min-width: 0;
}

.mentor-info h3,
.recommended-info h3 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-info .mentor-course-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 5px;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.mentor-course-title > span {
  min-width: 0;
}

.course-edition {
  flex: none;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.edition-orange {
  background: var(--accent-soft);
  color: #d9363e;
}

.edition-blue {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.mentor-info > p {
  display: -webkit-box;
  margin: 6px 0 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mentor-meta {
  min-width: 0;
  gap: 6px;
  color: #999a94;
  font-size: 8px;
}

.avatar-stack {
  display: flex;
  padding-left: 3px;
}

.avatar-stack i {
  display: grid;
  width: 18px;
  height: 18px;
  margin-left: -4px;
  place-items: center;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 6px;
  font-style: normal;
  font-weight: 900;
}

.avatar-stack i:nth-child(2) { background: var(--cyan); }
.avatar-stack i:nth-child(3) { background: var(--mint); }

.course-action {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  align-self: end;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.course-action > * {
  position: relative;
  z-index: 1;
}

.live-indicator {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgb(240 68 56 / 55%);
  animation: live-pulse 1.4s ease-out infinite;
}

.course-action.is-live::after {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -40%;
  width: 28%;
  transform: translateX(-180%) rotate(16deg);
  background: rgb(255 255 255 / 58%);
  content: "";
  animation: live-sheen 2.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgb(240 68 56 / 55%); }
  60%, 100% { box-shadow: 0 0 0 5px rgb(240 68 56 / 0%); }
}

@keyframes live-sheen {
  0%, 48% { transform: translateX(-180%) rotate(16deg); }
  70%, 100% { transform: translateX(520%) rotate(16deg); }
}

.package-heading {
  margin-bottom: 14px;
}

.package-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((200% - 9px) / 3);
  gap: 9px;
  align-items: stretch;
  padding: 1px 0 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.package-scroller.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.package-scroller::-webkit-scrollbar {
  display: none;
}

.package-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6e8eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(11 43 90 / 9%);
  flex-direction: column;
  scroll-snap-align: start;
}

.package-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  flex: none;
  overflow: hidden;
  background: #edf2f8;
}

.package-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  user-select: none;
  -webkit-user-drag: none;
}

.package-card:nth-child(2) .package-image > img {
  object-position: center 42%;
}

.package-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 96%) 0%, rgb(255 255 255 / 78%) 29%, rgb(255 255 255 / 10%) 60%, transparent 74%);
  content: "";
}

.package-image-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  display: flex;
  max-width: 48%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  color: var(--primary-strong);
}

.package-image-copy small {
  font-size: 10px;
}

.package-image-copy strong {
  font-size: 25px;
  font-weight: 950;
  line-height: 1.05;
}

.package-body {
  display: flex;
  min-height: 140px;
  flex: 1;
  padding: 12px;
  flex-direction: column;
}

.package-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0;
}

.package-card p {
  display: -webkit-box;
  min-height: 36px;
  margin: 7px 0 10px;
  overflow: hidden;
  color: #777b80;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.package-footer {
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
}

.package-footer small {
  font-size: 12px;
  font-weight: 850;
}

.package-footer strong {
  flex: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.package-footer button {
  display: inline-flex;
  min-height: 33px;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border: 1px solid #d6d9dd;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.package-footer button span {
  color: #777b80;
  font-size: 17px;
  line-height: 1;
}

.recommended-section {
  padding-bottom: 25px;
}

.recommended-section .heading-mark {
  background: linear-gradient(var(--accent) 25%, #ffaaa5);
}

.recommended-course-list {
  display: grid;
  gap: 13px;
}

.recommended-card {
  display: grid;
  min-height: 103px;
  grid-template-columns: 86px minmax(0, 1fr) 51px;
  gap: 10px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid #eeece4;
}

.recommended-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.recommended-cover {
  position: relative;
  width: 86px;
  height: 86px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #dfe3e7;
  border-radius: 13px;
  background: #eceff1;
}

.recommended-cover.is-single {
  display: block;
  padding: 0;
}

.recommended-cover.is-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.recommended-avatar {
  display: block;
  min-width: 0;
  min-height: 0;
  background-color: #dde4e9;
  background-position: var(--avatar-position, center);
  background-repeat: no-repeat;
  background-size: var(--avatar-size, cover);
}

.recommended-cover.is-single .recommended-avatar {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.recommended-cover.is-group .recommended-avatar {
  border-radius: 3px;
}

.recommended-info {
  min-width: 0;
}

.recommended-info > small {
  display: block;
  margin-bottom: 3px;
  color: #898a83;
  font-size: 8px;
}

.recommended-info > p {
  display: -webkit-box;
  margin: 5px 0 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-tags {
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.course-tags span {
  flex: 0 0 auto;
  padding: 2px 4px;
  border: 1px solid #c9c9c2;
  border-radius: 3px;
  color: #73746e;
  font-size: 6px;
}

.recommended-card > button {
  align-self: stretch;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-left: 1px dashed #d8d7d0;
  background: transparent;
  cursor: pointer;
}

.recommended-card > button strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.recommended-card > button span {
  padding: 4px 7px;
  border: 1.4px solid var(--ink);
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 7px;
  font-weight: 850;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, 480px);
  min-height: calc(67px + env(safe-area-inset-bottom));
  margin: 0 auto;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 6px max(5px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(11 43 90 / 10%);
  background: rgb(247 251 255 / 94%);
  box-shadow: 0 -8px 25px rgb(11 43 90 / 8%);
  backdrop-filter: blur(16px);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 1px 3px;
  border: 0;
  background: transparent;
  color: #718198;
  font-size: 10px;
  cursor: pointer;
}

.nav-item > svg {
  width: 27px;
  height: 27px;
}

.nav-item.active {
  color: var(--primary-strong);
  font-weight: 900;
}

.nav-item.active > svg {
  fill: var(--primary-soft);
}

.nav-course-icon {
  position: absolute;
  bottom: 19px;
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px var(--paper), 0 5px 13px rgb(11 43 90 / 18%);
  color: #fff;
}

.nav-course-icon svg {
  width: 30px;
  height: 30px;
}

.nav-course > span:last-child {
  padding-top: 36px;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100vw - 48px);
  padding: 10px 16px;
  transform: translate(-50%, 16px);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: var(--ink);
  box-shadow: 0 8px 24px rgb(38 39 34 / 24%);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

[hidden] {
  display: none !important;
}

body.course-detail-open {
  background: #eaf4ff;
}

.course-detail-view {
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  overflow: clip;
  background: #eaf4ff;
}

.course-detail-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  min-height: calc(58px + env(safe-area-inset-top));
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: end;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  background: #fff;
  backdrop-filter: none;
}

.course-detail-header h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-back-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.course-back-button svg {
  width: 27px;
  height: 27px;
}

.course-detail-header-spacer {
  width: 42px;
}

.course-detail-hero {
  position: relative;
  min-height: 260px;
  padding: 20px var(--page-pad) 60px;
  overflow: hidden;
  background: linear-gradient(155deg, #edf7ff 0%, #dceeff 52%, #ffe7e4 100%);
}

.course-detail-hero::after {
  position: absolute;
  top: 0;
  right: -52px;
  width: 190px;
  height: 94px;
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 18%);
  background: linear-gradient(120deg, rgb(255 255 255 / 0%), rgb(34 142 240 / 32%) 56%, rgb(255 78 90 / 42%));
  content: "";
}

.course-hero-glow {
  position: absolute;
  top: 32px;
  left: 0;
  width: 158px;
  height: 124px;
  opacity: 0.26;
  background-image: radial-gradient(circle, #1e8ff1 0 1.4px, transparent 1.8px);
  background-size: 11px 11px;
  mask-image: linear-gradient(90deg, #000, transparent);
}

.course-chat {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
}

.course-chat-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(11px) scale(0.98);
}

.course-detail-view.is-chat-ready .course-chat-row {
  animation: course-chat-in 360ms cubic-bezier(.2, .76, .32, 1) forwards;
}

.course-detail-view.is-chat-ready .course-chat-row:nth-child(2) {
  animation-delay: 310ms;
}

.course-chat-bubble {
  position: relative;
  max-width: 82%;
  margin: 0;
  padding: 11px 13px;
  border: 1.5px solid rgb(40 41 37 / 85%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 0 rgb(40 41 37 / 8%);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.55;
}

.course-voice-line {
  display: flex;
  min-height: 17px;
  align-items: center;
  gap: 6px;
}

.course-voice-line strong {
  font-size: 9px;
  font-weight: 850;
}

.course-voice-line small {
  margin-left: auto;
  color: rgb(40 41 37 / 58%);
  font-size: 8px;
  font-weight: 750;
}

.course-voice-wave {
  display: flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.course-voice-wave i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
}

.course-voice-wave i:nth-child(1) { height: 5px; }
.course-voice-wave i:nth-child(2) { height: 11px; }
.course-voice-wave i:nth-child(3) { height: 15px; }
.course-voice-wave i:nth-child(4) { height: 8px; }

.course-voice-transcript {
  margin: 7px 0 0;
  padding-top: 7px;
  border-top: 1px dashed rgb(40 41 37 / 25%);
  font-size: 13px;
  line-height: 1.55;
}

.is-teacher .course-chat-bubble::after {
  position: absolute;
  top: 13px;
  left: -5px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: solid rgb(40 41 37 / 85%);
  border-width: 0 0 1.5px 1.5px;
  background: #fff;
  content: "";
}

.course-chat-avatar {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

@keyframes course-chat-in {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.course-sheet {
  position: relative;
  z-index: 6;
  min-height: 540px;
  margin-top: -51px;
  padding: 12px var(--page-pad) 31px;
  border-radius: 25px 25px 0 0;
  background: #fff;
  box-shadow: 0 -10px 30px rgb(39 57 72 / 12%);
  opacity: 0;
  transform: translateY(94px);
  transition: opacity 380ms ease, transform 560ms cubic-bezier(.2, .76, .28, 1);
}

.course-detail-view.is-sheet-ready .course-sheet {
  opacity: 1;
  transform: translateY(0);
}

.course-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: #d7d9d5;
}

.course-tabs {
  position: sticky;
  z-index: 12;
  top: calc(58px + env(safe-area-inset-top));
  display: grid;
  height: 48px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 calc(-1 * var(--page-pad));
  border-bottom: 1px solid #e5e5df;
  background: #fff;
  backdrop-filter: blur(12px);
}

.course-tabs button {
  position: relative;
  min-width: 0;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #787a74;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.course-tabs button::after {
  position: absolute;
  right: 28%;
  bottom: -1px;
  left: 28%;
  height: 3px;
  transform: scaleX(0);
  border-radius: 4px 4px 0 0;
  background: var(--primary);
  content: "";
  transition: transform 180ms ease;
}

.course-tabs button.active {
  color: var(--ink);
  font-weight: 950;
}

.course-tabs button.active::after {
  transform: scaleX(1);
}

.course-tab-panels {
  min-height: 330px;
  padding: 22px 0 24px;
}

.course-tab-panel {
  animation: course-panel-in 220ms ease both;
}

.course-intro-panel {
  margin: -22px calc(-1 * var(--page-pad)) -24px;
}

.course-intro-gallery {
  display: grid;
}

.course-intro-image {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes course-panel-in {
  from { transform: translateY(5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.course-panel-heading .panel-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
}

.course-panel-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.3;
}

.course-panel-heading p {
  margin: 10px 0 0;
  color: #6f726c;
  font-size: 12px;
  line-height: 1.7;
}

.course-point-list,
.course-lesson-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.course-point-list {
  display: grid;
  gap: 9px;
}

.course-point-list li {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid #e4e8eb;
  border-radius: 8px;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 800;
}

.course-point-list i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-style: normal;
}

.course-lesson-list {
  display: grid;
}

.course-lesson-list li {
  display: grid;
  min-height: 68px;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #ecece7;
}

.course-lesson-list > li > b {
  color: var(--primary);
  font-size: 18px;
  font-weight: 950;
}

.course-lesson-list div {
  display: grid;
  gap: 5px;
}

.course-lesson-list strong {
  font-size: 12px;
}

.course-lesson-list span {
  color: #92948d;
  font-size: 9px;
}

.course-lesson-list svg {
  width: 17px;
  height: 17px;
  color: #a8aaa4;
}

.course-review-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--primary-soft);
}

.course-review-score > strong {
  font-size: 40px;
  font-weight: 950;
}

.course-review-score > div {
  display: grid;
  gap: 4px;
}

.course-stars {
  color: #ffb300;
  font-size: 15px;
}

.course-review-score small {
  color: #8d8f88;
  font-size: 9px;
}

.course-review-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.course-review-list article {
  padding: 13px 0;
  border-bottom: 1px solid #ecece7;
}

.course-review-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-review-list article strong {
  font-size: 11px;
}

.course-review-list article span {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 7px;
}

.course-review-list article p {
  margin: 8px 0 0;
  color: #646760;
  font-size: 11px;
  line-height: 1.65;
}

.course-qa-list {
  display: grid;
  gap: 9px;
  margin-top: 19px;
}

.course-qa-list > div {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.course-qa-list span {
  color: #8a8c85;
  font-size: 9px;
}

.course-qa-list strong {
  font-size: 11px;
  text-align: right;
}

.course-question-button {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.course-question-button svg {
  width: 16px;
  height: 16px;
}

.course-enroll-button {
  position: fixed;
  z-index: 30;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 36px), 444px);
  min-height: 52px;
  padding: 0 18px;
  transform: translateX(-50%);
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--primary);
  box-shadow: 3px 4px 0 var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.course-detail-open .toast {
  bottom: calc(80px + env(safe-area-inset-bottom));
}

@media (max-width: 365px) {
  :root { --page-pad: 14px; }
  .masthead { gap: 7px; }
  .slogan-lockup h1 { font-size: 19px; }
  .glory-layout { grid-template-columns: minmax(0, 1.42fr) minmax(105px, 0.98fr); gap: 7px; }
  .glory-card { min-height: 210px; padding: 12px 10px; }
  .glory-card h2 { font-size: 22px; }
  .glory-story-viewport { width: 125px; }
  .glory-trophy { right: -8px; bottom: -12px; width: 116px; height: 116px; }
  .insight-card { min-height: 100px; padding-right: 6px; padding-left: 7px; }
  .insight-copy strong { font-size: 11px; }
  .mentor-card { grid-template-columns: 78px minmax(0, 1fr) 52px; gap: 7px; }
  .mentor-cover { width: 78px; height: 82px; }
  .mentor-info h3 { font-size: 12px; }
  .mentor-info > p { font-size: 8px; }
  .course-action { padding-right: 4px; padding-left: 4px; font-size: 7px; }
  .package-scroller { grid-auto-columns: calc((200% - 7px) / 3); gap: 7px; }
  .package-image-copy { left: 9px; }
  .package-image-copy small { font-size: 8px; }
  .package-image-copy strong { font-size: 19px; }
  .package-body { min-height: 132px; padding: 10px 9px; }
  .package-card h3 { font-size: 16px; }
  .package-card p { min-height: 30px; margin: 5px 0 8px; font-size: 9px; }
  .package-footer { gap: 5px; }
  .package-footer strong { font-size: 13px; }
  .package-footer small { font-size: 10px; }
  .package-footer button { min-height: 29px; padding: 5px; font-size: 8px; }
  .package-footer button span { font-size: 13px; }
  .recommended-card { grid-template-columns: 76px minmax(0, 1fr) 47px; gap: 7px; }
  .recommended-cover { width: 76px; height: 76px; }
  .recommended-info h3 { font-size: 12px; }
  .recommended-card > button strong { font-size: 11px; }
  .course-detail-hero { min-height: 260px; padding-right: 14px; padding-left: 14px; }
  .course-chat-bubble { max-width: 84%; font-size: 12px; }
  .course-tabs button { font-size: 11px; }
}

@media (min-width: 620px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 30px; }
  .bottom-nav { bottom: 24px; border-radius: 0 0 30px 30px; }
  .course-detail-view { min-height: calc(100vh - 48px); }
  .course-detail-header { top: 24px; border-radius: 30px 30px 0 0; }
  .course-enroll-button { bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
