/* 官网课程购买样式（由 Vue 官网课程购买样式编译，类名与 course.js 输出的结构一致） */
@charset "UTF-8";
/* 课程购买各步骤共用样式（非 scoped，类名统一 course- 前缀） */
.course-page {
  background: #f6f6f6;
  text-align: left;
}

.course-stage {
  min-height: 720px;
  padding: 48px 40px 72px;
  background: linear-gradient(180deg, #f2f2f2 0%, #f7f7f8 320px);
}

.course-shell {
  max-width: 1440px;
  margin: 0 auto;
  color: #20242b;
}

.course-price {
  color: #0a0a0a;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.course-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: -8px 0 12px -9px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0a0a0a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.course-back span {
  font-size: 19px;
  line-height: 1;
}
.course-back:hover {
  background: #f2f2f2;
}

.course-primary {
  min-width: 148px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 23px;
  background: #0a0a0a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.course-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.course-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  background: #fff;
  color: #586271;
  font-size: 14px;
}
.course-state p {
  margin: 0;
}

.course-outline {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border: 1px solid #0a0a0a;
  border-radius: 19px;
  background: #fff;
  color: #0a0a0a;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.course-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e5e5;
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: course-spin 0.8s linear infinite;
}

@keyframes course-spin {
  to {
    transform: rotate(360deg);
  }
}
@media screen and (max-width: 768px) {
  .course-stage {
    min-height: 0;
    padding: 15px 12px 24px;
  }
  .course-back {
    min-height: 36px;
    margin: -6px 0 8px -9px;
    padding: 0 9px;
    font-size: 14px;
  }
  .course-back span {
    font-size: 19px;
  }
  .course-primary {
    min-width: 130px;
    height: 42px;
    padding: 0 20px;
    border-radius: 21px;
    font-size: 16px;
  }
  .course-state {
    min-height: 240px;
    gap: 12px;
    border-width: 1px;
    border-radius: 14px;
    font-size: 14px;
  }
  .course-outline {
    height: 36px;
    padding: 0 20px;
    border-radius: 18px;
    font-size: 14px;
  }
  .course-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }
}
.course-page,
.course-page-modal {
  text-align: left;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.course-page *,
.course-page *::before,
.course-page *::after,
.course-page-modal *,
.course-page-modal *::before,
.course-page-modal *::after {
  box-sizing: border-box;
}
.course-page h1,
.course-page h2,
.course-page h3,
.course-page p,
.course-page dl,
.course-page dd,
.course-page ul,
.course-page fieldset,
.course-page legend,
.course-page-modal h1,
.course-page-modal h2,
.course-page-modal h3,
.course-page-modal p,
.course-page-modal dl,
.course-page-modal dd,
.course-page-modal ul,
.course-page-modal fieldset,
.course-page-modal legend {
  float: none;
  text-indent: 0;
  letter-spacing: 0;
  text-align: inherit;
}
.course-page button,
.course-page-modal button {
  white-space: normal;
  font-family: inherit;
  line-height: 1.2;
}
.course-page img,
.course-page-modal img {
  max-width: 100%;
}
.course-page header,
.course-page-modal header {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
}

.course-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10001;
  display: none;
  max-width: 80vw;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.course-page {
  /* 有封面图时按图片原始比例完整展示，不裁切 */
  /* 列表封面加载前：先给默认高度（课程封面一般是正方形）+ 加载动画，图片加载完再按图片原始高度 */
  /* 电脑端详情页（购买卡片 + 商品详情）整体收窄居中，两侧不会太空 */
  /* 详情页多图：主图 + 左右切换 + 缩略图 */
  /* 商品详情区（购买卡片下方） */
  /* 商品详情富文本：后台 Quill 编辑器内容（对齐 / 缩进 / 字号 / 列表 / 引用 / 代码 / 视频），尺寸都用 em，随字号缩放 */
  /* 电脑端课程名一行显示，放不下用…省略，鼠标悬浮（title）看完整名字；手机端照常换行 */
  /* 电脑端（双栏）购买卡片：高度跟随视口、整卡在一屏内显示完整（最高 560）；
     左侧主图按剩余高度完整缩放，右侧班型多时在 .purchase-options 内滚动，价格和购买按钮固定在底部 */
  /* 移动端：flexible 以 375 宽度为 375px，37.5px = 37.5px */
}
.course-page .course-heading {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}
.course-page .course-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.course-page .course-tabs button {
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #e4e7eb;
  border-radius: 999px;
  background: #fff;
  color: #586271;
  font-size: 14px;
  cursor: pointer;
}
.course-page .course-tabs button:hover {
  color: #0a0a0a;
}
.course-page .course-tabs button.active {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}
.course-page .course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.course-page .course-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.course-page .course-card:hover {
  box-shadow: 0 10px 28px rgba(27, 43, 59, 0.08);
  transform: translateY(-2px);
}
.course-page .course-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  color: #20242b;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.course-page .course-tile:hover .course-action {
  background: #f2f2f2;
}
.course-page .course-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  padding: 20px 24px;
  box-sizing: border-box;
  background: #efefef;
  color: #333333;
}
.course-page .course-cover.tone-1 {
  background: #dfeef4;
  color: #1d5a72;
}
.course-page .course-cover.tone-2 {
  background: #f8e3e3;
  color: #8a2f25;
}
.course-page .course-cover svg {
  position: absolute;
  top: 0;
  right: 0;
  width: min(75%, 260px);
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: 0.23;
}
.course-page .course-cover span {
  position: relative;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
}
.course-page .course-cover-image {
  aspect-ratio: auto;
  padding: 0;
  background: #f3f4f6;
}
.course-page .course-cover-image img {
  display: block;
  width: 100%;
  height: auto;
}
.course-page .course-cover-image.is-loading {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, #f0f1f3 25%, #e5e7eb 50%, #f0f1f3 75%);
  background-size: 200% 100%;
  animation: course-cover-loading 1.2s ease-in-out infinite;
}
.course-page .course-cover-image.is-loading img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0;
}
@keyframes course-cover-loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.course-page .course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 12px 14px 14px;
  box-sizing: border-box;
}
.course-page .course-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.course-page .course-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  margin: 0 0 10px;
  color: #586271;
  font-size: 12px;
  line-height: 1.5;
}
.course-page .course-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e4e7eb;
}
.course-page .course-footer > span:first-child {
  color: #586271;
  font-size: 12px;
}
.course-page .course-footer .course-price {
  font-size: 18px;
}
.course-page .course-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
}
.course-page .course-action span {
  font-size: 18px;
  line-height: 1;
}
.course-page .course-detail {
  max-width: 1120px;
  margin: 0 auto;
}
.course-page .purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  background: #fff;
}
.course-page .purchase-media {
  min-width: 0;
  display: flex;
  align-items: center;
  background: #fff;
}
.course-page .purchase-media .course-cover {
  aspect-ratio: 3/2;
  max-height: 560px;
}
.course-page .purchase-media .course-cover-image {
  aspect-ratio: auto;
  max-height: none;
  align-items: center;
  justify-content: center;
}
.course-page .purchase-media .course-cover-image img {
  max-height: 560px;
  object-fit: contain;
}
.course-page .purchase-media .course-cover span {
  font-size: 56px;
}
.course-page .purchase-media {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.course-page .purchase-stage .gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.38);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}
.course-page .purchase-stage .gallery-arrow:hover {
  background: rgba(17, 24, 39, 0.6);
  opacity: 1;
}
.course-page .purchase-stage .gallery-arrow.prev {
  left: 12px;
}
.course-page .purchase-stage .gallery-arrow.next {
  right: 12px;
}
.course-page .purchase-stage .gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.course-page .gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px 16px;
  scrollbar-width: thin;
}
.course-page .gallery-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  overflow: hidden;
  padding: 0;
  border: 2px solid #e4e7eb;
  border-radius: 8px;
  background: #f3f4f6;
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 0.2s, opacity 0.2s;
}
.course-page .gallery-thumb:hover {
  opacity: 1;
}
.course-page .gallery-thumb.active {
  border-color: #0a0a0a;
  opacity: 1;
}
.course-page .gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-page .spec-desc {
  margin: -6px 0 18px;
  color: #586271;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.course-page .product-detail-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 21px;
}
.course-page .product-detail-area > .product-description {
  margin-top: 0;
}
.course-page .course-rich-text {
  margin-top: 4px;
  color: #20242b;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  /* 详情长图（一般按手机 1125 宽设计）：居中、电脑端最宽 860，上下无缝拼接 */
  /* Quill 2 列表里的占位符（用原生列表符号代替） */
}
.course-page .course-rich-text p,
.course-page .course-rich-text h1,
.course-page .course-rich-text h2,
.course-page .course-rich-text h3,
.course-page .course-rich-text h4,
.course-page .course-rich-text h5,
.course-page .course-rich-text h6,
.course-page .course-rich-text ol,
.course-page .course-rich-text ul,
.course-page .course-rich-text pre,
.course-page .course-rich-text blockquote,
.course-page .course-rich-text figure {
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
  text-indent: 0;
}
.course-page .course-rich-text h1,
.course-page .course-rich-text h2,
.course-page .course-rich-text h3,
.course-page .course-rich-text h4,
.course-page .course-rich-text h5,
.course-page .course-rich-text h6 {
  margin: 0.4em 0;
  font-weight: 700;
  line-height: 1.4;
}
.course-page .course-rich-text h1 {
  font-size: 2em;
}
.course-page .course-rich-text h2 {
  font-size: 1.5em;
}
.course-page .course-rich-text h3 {
  font-size: 1.17em;
}
.course-page .course-rich-text h5 {
  font-size: 0.83em;
}
.course-page .course-rich-text h6 {
  font-size: 0.67em;
}
.course-page .course-rich-text strong,
.course-page .course-rich-text b {
  font-weight: 700;
}
.course-page .course-rich-text em,
.course-page .course-rich-text i {
  font-style: italic;
}
.course-page .course-rich-text u {
  text-decoration: underline;
}
.course-page .course-rich-text s,
.course-page .course-rich-text strike,
.course-page .course-rich-text del {
  text-decoration: line-through;
}
.course-page .course-rich-text a {
  color: #0a0a0a;
  text-decoration: underline;
}
.course-page .course-rich-text img {
  display: block;
  max-width: min(100%, 860px);
  height: auto;
  margin: 0 auto;
  border: 0;
}
.course-page .course-rich-text a:has(img) {
  display: block;
}
.course-page .course-rich-text ol,
.course-page .course-rich-text ul {
  padding-left: 1.5em;
}
.course-page .course-rich-text li {
  margin: 0;
  padding: 0;
  list-style-position: outside;
}
.course-page .course-rich-text ol > li,
.course-page .course-rich-text li[data-list=ordered] {
  list-style-type: decimal;
}
.course-page .course-rich-text ul > li,
.course-page .course-rich-text li[data-list=bullet] {
  list-style-type: disc;
}
.course-page .course-rich-text li[data-list=checked],
.course-page .course-rich-text li[data-list=unchecked] {
  list-style-type: none;
}
.course-page .course-rich-text .ql-ui {
  display: none;
}
.course-page .course-rich-text blockquote {
  margin: 0.4em 0;
  padding-left: 1em;
  border-left: 0.25em solid #d0d7de;
  color: #586271;
}
.course-page .course-rich-text pre,
.course-page .course-rich-text .ql-syntax,
.course-page .course-rich-text .ql-code-block-container {
  margin: 0.4em 0;
  padding: 0.6em 0.9em;
  overflow-x: auto;
  border-radius: 0.3em;
  background: #23241f;
  color: #f8f8f2;
  font-family: Monaco, Consolas, "Courier New", monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
}
.course-page .course-rich-text code {
  padding: 0.1em 0.3em;
  border-radius: 0.2em;
  background: #f0f0f0;
  font-family: Monaco, Consolas, "Courier New", monospace;
  font-size: 0.9em;
}
.course-page .course-rich-text pre code {
  padding: 0;
  background: none;
}
.course-page .course-rich-text hr {
  margin: 1em 0;
  border: 0;
  border-top: 1px solid #e4e7eb;
}
.course-page .course-rich-text table {
  width: 100%;
  margin: 0.6em 0;
  border-collapse: collapse;
}
.course-page .course-rich-text td,
.course-page .course-rich-text th {
  padding: 0.3em 0.6em;
  border: 1px solid #e4e7eb;
}
.course-page .course-rich-text .ql-video,
.course-page .course-rich-text iframe,
.course-page .course-rich-text video {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16/9;
  margin: 0.6em auto;
  border: 0;
}
.course-page .course-rich-text .ql-align-center {
  text-align: center;
}
.course-page .course-rich-text .ql-align-right {
  text-align: right;
}
.course-page .course-rich-text .ql-align-justify {
  text-align: justify;
}
.course-page .course-rich-text .ql-direction-rtl {
  direction: rtl;
  text-align: inherit;
}
.course-page .course-rich-text .ql-indent-1 {
  padding-left: 3em;
}
.course-page .course-rich-text li.ql-indent-1 {
  padding-left: 3em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-indent-2 {
  padding-left: 6em;
}
.course-page .course-rich-text li.ql-indent-2 {
  padding-left: 6em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-indent-3 {
  padding-left: 9em;
}
.course-page .course-rich-text li.ql-indent-3 {
  padding-left: 9em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-indent-4 {
  padding-left: 12em;
}
.course-page .course-rich-text li.ql-indent-4 {
  padding-left: 12em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-indent-5 {
  padding-left: 15em;
}
.course-page .course-rich-text li.ql-indent-5 {
  padding-left: 15em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-indent-6 {
  padding-left: 18em;
}
.course-page .course-rich-text li.ql-indent-6 {
  padding-left: 18em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-indent-7 {
  padding-left: 21em;
}
.course-page .course-rich-text li.ql-indent-7 {
  padding-left: 21em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-indent-8 {
  padding-left: 24em;
}
.course-page .course-rich-text li.ql-indent-8 {
  padding-left: 24em;
  margin-left: 0;
}
.course-page .course-rich-text .ql-size-small {
  font-size: 0.75em;
}
.course-page .course-rich-text .ql-size-large {
  font-size: 1.5em;
}
.course-page .course-rich-text .ql-size-huge {
  font-size: 2.5em;
}
.course-page .course-rich-text .ql-font-serif {
  font-family: Georgia, "Times New Roman", serif;
}
.course-page .course-rich-text .ql-font-monospace {
  font-family: Monaco, Consolas, "Courier New", monospace;
}
@media screen and (max-width: 768px) {
  .course-page .purchase-stage .gallery-arrow {
    width: 30px;
    height: 30px;
    margin-top: -15px;
    padding: 0 0 3px;
    font-size: 22px;
  }
  .course-page .purchase-stage .gallery-arrow.prev {
    left: 12px;
  }
  .course-page .purchase-stage .gallery-arrow.next {
    right: 12px;
  }
  .course-page .purchase-stage .gallery-count {
    right: 12px;
    bottom: 12px;
    padding: 2px 9px;
    font-size: 12px;
  }
  .course-page .gallery-thumbs {
    gap: 8px;
    padding: 10px 12px 12px;
  }
  .course-page .gallery-thumb {
    width: 52px;
    height: 52px;
    border-width: 2px;
    border-radius: 8px;
  }
  .course-page .spec-desc {
    margin: -4px 0 14px;
    font-size: 12px;
  }
  .course-page .product-detail-area {
    gap: 12px;
    margin-top: 12px;
  }
  .course-page .course-rich-text {
    margin-top: 4px;
    font-size: 14px;
  }
  .course-page .course-rich-text hr {
    border-top-width: 1px;
  }
  .course-page .course-rich-text td,
  .course-page .course-rich-text th {
    border-width: 1px;
  }
}
.course-page .purchase-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 34px;
  border-left: 1px solid #e4e7eb;
}
.course-page .purchase-panel h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media screen and (min-width: 769px) {
  .course-page .purchase-panel h1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
.course-page .purchase-subject {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #0a0a0a;
  font-size: 12px;
}
.course-page .product-description {
  margin-top: 21px;
  padding: 28px 32px;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  background: #fff;
}
.course-page .product-description > h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.course-page .product-description > p {
  max-width: 76ch;
  margin: 0;
  color: #586271;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}
.course-page .spec-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.course-page .spec-picker legend {
  margin-bottom: 9px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}
.course-page .spec-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.course-page .spec-option.active {
  border-color: #0a0a0a;
  background: #f2f2f2;
}
.course-page .spec-option input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #c5ced6;
  border-radius: 50%;
  background: #fff;
}
.course-page .spec-option input:checked {
  border: 5px solid #0a0a0a;
}
.course-page .spec-option b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.course-page .spec-option strong {
  color: #0a0a0a;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.course-page .purchase-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
}
.course-page .purchase-footer span {
  display: block;
  margin-bottom: 2px;
  color: #586271;
  font-size: 13px;
}
.course-page .purchase-footer .course-price {
  font-size: 30px;
}
@media screen and (max-width: 1280px) {
  .course-page .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media screen and (max-width: 1160px) {
  .course-page .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (min-width: 951px) {
  .course-page .purchase-layout {
    height: clamp(400px, 100vh - 190px, 560px);
  }
  .course-page .purchase-media {
    min-height: 0;
    justify-content: flex-start;
  }
  .course-page .purchase-media > .course-cover {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
  .course-page .purchase-media .purchase-stage img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }
  .course-page .purchase-media .gallery-thumbs {
    flex: none;
  }
  .course-page .purchase-panel {
    min-height: 0;
    overflow: hidden;
    padding: 28px 30px;
  }
  .course-page .purchase-options {
    flex: 1 1 auto;
    min-height: 0;
    margin-right: -12px;
    padding-right: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .course-page .purchase-options .spec-desc {
    margin-bottom: 4px;
  }
  .course-page .purchase-footer {
    flex: none;
    padding-top: 16px;
  }
}
@media screen and (max-width: 950px) {
  .course-page .purchase-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .course-page .purchase-panel {
    border-left: 0;
    border-top: 1px solid #e4e7eb;
  }
}
@media screen and (max-width: 768px) {
  .course-page .course-heading {
    margin-bottom: 12px;
    font-size: 20px;
  }
  .course-page .course-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }
  .course-page .course-tabs button {
    min-height: 30px;
    padding: 0 12px;
    border-width: 1px;
    font-size: 13px;
  }
  .course-page .course-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .course-page .course-card {
    border-width: 1px;
    border-radius: 10px;
  }
  .course-page .course-cover {
    padding: 15px 20px;
  }
  .course-page .course-cover span {
    font-size: 30px;
  }
  .course-page .course-cover-image {
    padding: 0;
  }
  .course-page .course-body {
    padding: 12px 14px 14px;
  }
  .course-page .course-body h3 {
    margin-bottom: 4px;
    font-size: 16px;
  }
  .course-page .course-body p {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 12px;
  }
  .course-page .course-footer {
    padding-top: 8px;
    border-top-width: 1px;
  }
  .course-page .course-footer > span:first-child {
    font-size: 12px;
  }
  .course-page .course-footer .course-price {
    font-size: 18px;
  }
  .course-page .course-action {
    padding: 6px 9px;
    font-size: 13px;
  }
  .course-page .course-action span {
    font-size: 18px;
  }
  .course-page .purchase-layout {
    border-width: 1px;
    border-radius: 14px;
  }
  .course-page .purchase-media .course-cover span {
    font-size: 48px;
  }
  .course-page .purchase-panel {
    padding: 20px 17px;
    border-top-width: 1px;
  }
  .course-page .purchase-panel h1 {
    margin-bottom: 8px;
    font-size: 22px;
  }
  .course-page .purchase-subject {
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 12px;
  }
  .course-page .product-description {
    margin-top: 12px;
    padding: 16px;
    border-width: 1px;
    border-radius: 14px;
  }
  .course-page .product-description > h3 {
    margin-bottom: 8px;
    font-size: 16px;
  }
  .course-page .product-description > p {
    font-size: 13px;
  }
  .course-page .spec-picker {
    gap: 8px;
    margin-bottom: 16px;
  }
  .course-page .spec-picker legend {
    margin-bottom: 9px;
    font-size: 16px;
  }
  .course-page .spec-option {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 52px;
    padding: 9px 12px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 14px;
  }
  .course-page .spec-option input {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
  }
  .course-page .spec-option input:checked {
    border-width: 5px;
  }
  .course-page .purchase-footer {
    gap: 12px;
    padding-top: 20px;
  }
  .course-page .purchase-footer span {
    font-size: 12px;
  }
  .course-page .purchase-footer .course-price {
    font-size: 24px;
  }
}

.course-page .cashier {
  max-width: 1080px;
  margin: 0 auto;
}
.course-page .cashier-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  background: #fff;
}
.course-page .cashier-status h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.course-page .cashier-countdown {
  min-width: 132px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f2f2f2;
  color: #586271;
  text-align: center;
  font-size: 12px;
}
.course-page .cashier-countdown b {
  display: block;
  color: #0a0a0a;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.course-page .payment-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eef7f1;
  color: #2f6b4b;
  font-size: 13px;
  line-height: 1.55;
}
.course-page .payment-privacy-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.course-page .cashier-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 16px;
  /* 两张卡片等高，底部的应付金额 / 操作按钮对齐 */
  align-items: stretch;
}
.course-page .cashier-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  background: #fff;
}
.course-page .cashier-panel h3 {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7eb;
  font-size: 17px;
  font-weight: 700;
}
.course-page .order-detail-list {
  margin: 0;
  padding: 10px 20px;
}
.course-page .order-detail-row {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
}
.course-page .order-detail-row + .course-page .order-detail-row {
  box-shadow: 0 -1px 0 #e4e7eb;
}
.course-page .order-detail-row dt {
  color: #586271;
  font-size: 14px;
}
.course-page .order-detail-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.course-page .order-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: auto;
  padding: 16px 20px 18px;
  border-top: 1px solid #e4e7eb;
}
.course-page .order-total span {
  color: #586271;
  font-size: 14px;
}
.course-page .order-total b {
  color: #0a0a0a;
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.course-page .payment-methods {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
}
.course-page .pay-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.course-page .pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.course-page .pay-method img {
  width: 26px;
  height: 26px;
}
.course-page .pay-method b {
  font-size: 15px;
  font-weight: 600;
}
.course-page .pay-method small {
  margin-left: auto;
  color: #586271;
  font-size: 12px;
}
.course-page .pay-method::after {
  content: "";
  flex: none;
  width: 11px;
  height: 7px;
  margin: 0 3px 3px 4px;
  border: solid transparent;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.course-page .pay-method.active {
  border-color: #cccccc;
  background: #f2f2f2;
}
.course-page .pay-method.active::after {
  border-color: #0a0a0a;
}
.course-page .pay-method:has(input:focus-visible) {
  outline: 2px solid #1758ac;
  outline-offset: 2px;
}
.course-page .pay-fq {
  padding: 0 20px 4px;
}
.course-page .pay-fq p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #20242b;
}
.course-page .pay-fq p span {
  color: #586271;
}
.course-page .pay-fq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.course-page .pay-fq-list button {
  min-width: 72px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e4e7eb;
  border-radius: 6px;
  background: #fff;
  color: #20242b;
  font-size: 13px;
  cursor: pointer;
}
.course-page .pay-fq-list button.active {
  border-color: #0a0a0a;
  background: #f2f2f2;
  color: #0a0a0a;
}
.course-page .cashier-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: auto;
  padding: 16px 20px 18px;
  border-top: 1px solid #e4e7eb;
}
.course-page .cashier-action .course-primary {
  width: 100%;
  border-radius: 8px;
}
.course-page .cancel-pay {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #586271;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.course-page .cancel-pay:hover {
  color: #20242b;
  text-decoration: underline;
}
.course-page .expired-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid #e4e7eb;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.course-page .expired-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}
.course-page .expired-card > p {
  margin: 8px 0 0;
  color: #586271;
  font-size: 14px;
}
.course-page .expired-order {
  margin: 22px 0;
  padding: 6px 18px;
  border-radius: 12px;
  background: #f7f8fa;
  text-align: left;
}
.course-page .expired-order div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.course-page .expired-order div + div {
  border-top: 1px solid #e4e7eb;
}
.course-page .expired-order span {
  flex: none;
  color: #586271;
  font-size: 14px;
}
.course-page .expired-order b {
  font-size: 14px;
  overflow-wrap: anywhere;
  text-align: right;
}
.course-page .expired-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.course-page .expired-actions .course-outline {
  height: 46px;
  padding: 0 24px;
  border-radius: 23px;
}
@media screen and (max-width: 900px) {
  .course-page .cashier-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .course-page .cashier-status {
    gap: 12px;
    padding: 14px 16px;
    border-width: 1px;
    border-radius: 14px;
  }
  .course-page .cashier-status h2 {
    font-size: 20px;
  }
  .course-page .cashier-countdown {
    min-width: 0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
  }
  .course-page .cashier-countdown b {
    font-size: 20px;
  }
  .course-page .payment-privacy-note {
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
  }
  .course-page .payment-privacy-note svg {
    width: 16px;
    height: 16px;
  }
  .course-page .cashier-layout {
    gap: 12px;
    margin-top: 12px;
  }
  .course-page .cashier-panel {
    border-width: 1px;
    border-radius: 14px;
  }
  .course-page .cashier-panel h3 {
    padding: 14px 16px;
    border-bottom-width: 1px;
    font-size: 16px;
  }
  .course-page .order-detail-list {
    padding: 3px 16px;
  }
  .course-page .order-detail-row {
    gap: 12px;
    min-height: 0;
    padding: 12px 0;
  }
  .course-page .order-detail-row + .course-page .order-detail-row {
    box-shadow: 0 -1px 0 #e4e7eb;
  }
  .course-page .order-detail-row dt,
  .course-page .order-detail-row dd {
    font-size: 14px;
  }
  .course-page .order-total {
    padding: 14px 16px 16px;
    border-top-width: 1px;
  }
  .course-page .order-total span {
    font-size: 14px;
  }
  .course-page .order-total b {
    font-size: 24px;
  }
  .course-page .payment-methods {
    gap: 8px;
    padding: 14px 16px;
  }
  .course-page .pay-method {
    gap: 10px;
    min-height: 50px;
    padding: 8px 14px;
    border-width: 1px;
    border-radius: 8px;
  }
  .course-page .pay-method img {
    width: 26px;
    height: 26px;
  }
  .course-page .pay-method b {
    font-size: 15px;
  }
  .course-page .pay-method small {
    display: none;
  }
  .course-page .pay-method::after {
    width: 11px;
    height: 7px;
    margin-left: auto;
    border-width: 0 0 2px 2px;
  }
  .course-page .pay-fq {
    padding: 0 16px 4px;
  }
  .course-page .pay-fq p {
    margin-bottom: 8px;
    font-size: 13px;
  }
  .course-page .pay-fq-list {
    gap: 8px;
  }
  .course-page .pay-fq-list button {
    min-width: 72px;
    height: 34px;
    padding: 0 12px;
    border-width: 1px;
    border-radius: 6px;
    font-size: 13px;
  }
  .course-page .cashier-action {
    gap: 10px;
    padding: 14px 16px 16px;
    border-top-width: 1px;
  }
  .course-page .cashier-action .course-primary {
    border-radius: 8px;
  }
  .course-page .cancel-pay {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }
  .course-page .expired-card {
    padding: 30px 20px;
    border-width: 1px;
    border-radius: 16px;
  }
  .course-page .expired-card h2 {
    font-size: 22px;
  }
  .course-page .expired-card > p {
    margin-top: 8px;
    font-size: 14px;
  }
  .course-page .expired-order {
    margin: 20px 0;
    padding: 6px 16px;
    border-radius: 12px;
  }
  .course-page .expired-order div {
    gap: 12px;
    padding: 10px 0;
  }
  .course-page .expired-order span,
  .course-page .expired-order b {
    font-size: 14px;
  }
  .course-page .expired-actions {
    gap: 12px;
  }
  .course-page .expired-actions .course-outline {
    height: 42px;
    padding: 0 20px;
    border-radius: 21px;
  }
}

.course-page-modal .course-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 22, 30, 0.55);
}
.course-page-modal .course-pay-dialog {
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #20242b;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 22, 30, 0.25);
}
.course-page-modal .course-pay-dialog p {
  margin: 0;
}
.course-page-modal .course-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7eb;
}
.course-page-modal .course-pay-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.course-page-modal .course-pay-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #586271;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.course-page-modal .course-pay-head button:hover {
  background: #f3f4f6;
}
.course-page-modal .course-pay-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 22px auto 0;
  padding: 8px;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  color: #586271;
  font-size: 13px;
  box-sizing: border-box;
}
.course-page-modal .course-pay-qr img {
  display: block;
  width: 100%;
  height: 100%;
}
.course-page-modal .course-pay-hint {
  margin-top: 12px !important;
  color: #586271;
  font-size: 13px;
}
.course-page-modal .course-pay-amount {
  margin-top: 6px !important;
  color: #0a0a0a;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.course-page-modal .course-pay-time {
  margin-top: 2px !important;
  color: #586271;
  font-size: 12px;
}
.course-page-modal .course-pay-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: #20242b;
  font-size: 13px;
}
.course-page-modal .course-pay-waiting .course-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
.course-page-modal .course-pay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 20px 20px;
}
.course-page-modal .course-pay-actions .course-outline,
.course-page-modal .course-pay-actions .course-primary {
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 42px;
  border-radius: 21px;
  font-size: 15px;
}
@media screen and (max-width: 768px) {
  .course-page-modal .course-pay-modal {
    padding: 16px;
  }
  .course-page-modal .course-pay-dialog {
    max-width: 330px;
    border-radius: 16px;
  }
  .course-page-modal .course-pay-head {
    padding: 16px 20px;
  }
  .course-page-modal .course-pay-head h3 {
    font-size: 17px;
  }
  .course-page-modal .course-pay-head button {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
  .course-page-modal .course-pay-qr {
    width: 200px;
    height: 200px;
    margin-top: 22px;
    padding: 8px;
    border-radius: 12px;
    font-size: 13px;
  }
  .course-page-modal .course-pay-hint,
  .course-page-modal .course-pay-waiting {
    font-size: 13px;
  }
  .course-page-modal .course-pay-amount {
    font-size: 26px;
  }
  .course-page-modal .course-pay-time {
    font-size: 12px;
  }
  .course-page-modal .course-pay-waiting .course-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
  .course-page-modal .course-pay-actions {
    gap: 10px;
    padding: 18px 20px 20px;
  }
  .course-page-modal .course-pay-actions .course-outline,
  .course-page-modal .course-pay-actions .course-primary {
    height: 42px;
    border-radius: 21px;
    font-size: 15px;
  }
}

.course-page .receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  width: min(100%, 1080px);
  margin: 0 auto;
  align-items: stretch;
}
.course-page .receipt-card {
  min-width: 0;
  padding: 36px 38px 28px;
  border: 1px solid #e4e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(27, 43, 59, 0.07);
}
.course-page .receipt-head {
  text-align: center;
}
.course-page .receipt-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.course-page .receipt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e5f6ed;
  color: #16734c;
  font-size: 22px;
  font-weight: 700;
}
.course-page .receipt-icon.pending {
  background: #f2f2f2;
  color: #0a0a0a;
}
.course-page .receipt-icon.fail {
  background: #fdecec;
  color: #c2322f;
}
.course-page .receipt-sub {
  margin: 8px 0 0;
  color: #586271;
  font-size: 14px;
}
.course-page .receipt-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.course-page .receipt-amount span {
  color: #586271;
  font-size: 14px;
}
.course-page .receipt-amount b {
  color: #0a0a0a;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.course-page .receipt-product {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
}
.course-page .receipt-product strong {
  font-size: 16px;
  font-weight: 700;
}
.course-page .receipt-product b {
  color: #0a0a0a;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.course-page .receipt-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: #586271;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.course-page .profile-followup {
  margin: 24px 0 0;
  padding: 22px 23px;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  background: #f9fafb;
  text-align: left;
}
.course-page .profile-followup h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.course-page .profile-followup > p {
  margin: 5px 0 0;
  color: #586271;
  font-size: 13px;
  line-height: 1.6;
}
.course-page .profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 17px;
}
.course-page .profile-field {
  display: block;
  min-width: 0;
}
.course-page .profile-field span {
  display: block;
  margin-bottom: 8px;
  color: #20242b;
  font-size: 15px;
  font-weight: 500;
}
.course-page .profile-field span em {
  font-style: normal;
  color: #ff4d4f;
}
.course-page .profile-field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: #20242b;
  outline: none;
  box-sizing: border-box;
}
.course-page .profile-field input::placeholder {
  color: #8c96a3;
}
.course-page .profile-field input:focus {
  border-color: #0a0a0a;
}
.course-page .profile-field input[aria-invalid=true] {
  border-color: #c23832;
}
.course-page .profile-field small {
  display: block;
  margin-top: 4px;
  color: #a7241e;
  font-size: 12px;
}
.course-page .profile-privacy {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #f2f2f2;
  font-size: 14px;
}
.course-page .profile-privacy summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  color: #20242b;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.course-page .profile-privacy summary::-webkit-details-marker {
  display: none;
}
.course-page .profile-privacy summary:hover {
  background: #ebebeb;
}
.course-page .profile-privacy dl {
  margin: 0;
  padding: 0 14px;
  border-top: 1px solid #e2e2e2;
  background: #fff;
  color: #586271;
}
.course-page .profile-privacy dl > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 9px 16px;
  padding: 11px 0;
}
.course-page .profile-privacy dl > div + div {
  border-top: 1px solid #e8edf2;
}
.course-page .profile-privacy dt {
  color: #20242b;
  font-weight: 500;
}
.course-page .profile-privacy dd {
  margin: 0;
}
.course-page .profile-privacy[open] .privacy-toggle-closed {
  display: none;
}
.course-page .profile-privacy[open] .privacy-toggle-open {
  display: inline;
}
.course-page .profile-privacy[open] .privacy-toggle svg {
  transform: rotate(180deg);
}
.course-page .privacy-title,
.course-page .privacy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.course-page .privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
}
.course-page .privacy-icon svg {
  width: 18px;
  height: 18px;
}
.course-page .privacy-toggle {
  flex: none;
  gap: 4px;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.course-page .privacy-toggle svg {
  width: 15px;
  height: 15px;
}
.course-page .privacy-toggle-open {
  display: none;
}
.course-page .profile-submit {
  width: 100%;
  margin-top: 16px;
  border-radius: 8px;
}
.course-page .share-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background: #f2f2f2;
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
}
.course-page .share-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #0a0a0a;
}
.course-page .share-note strong {
  color: #20242b;
}
.course-page .receipt-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 20px 0 0;
}
.course-page .receipt-details > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e7eb;
}
.course-page .receipt-details .receipt-wide {
  grid-column: 1/-1;
}
.course-page .receipt-details dt {
  color: #586271;
  font-size: 13px;
}
.course-page .receipt-details dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.course-page .receipt-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.course-page .receipt-actions .course-back {
  margin: 0;
  color: #586271;
  font-size: 15px;
  font-weight: 500;
}
.course-page .receipt-actions .course-back:hover {
  color: #0a0a0a;
}
.course-page .receipt-actions .course-outline {
  height: 46px;
  padding: 0 24px;
  border-radius: 23px;
}
@media screen and (max-width: 900px) {
  .course-page .receipt-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .course-page .receipt-layout {
    gap: 12px;
  }
  .course-page .receipt-card {
    padding: 24px 16px 20px;
    border-width: 1px;
    border-radius: 16px;
  }
  .course-page .receipt-head h2 {
    font-size: 23px;
  }
  .course-page .receipt-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    font-size: 22px;
  }
  .course-page .receipt-sub {
    margin-top: 8px;
    font-size: 13px;
  }
  .course-page .receipt-amount {
    gap: 10px;
    margin-top: 12px;
  }
  .course-page .receipt-amount span {
    font-size: 13px;
  }
  .course-page .receipt-amount b {
    font-size: 22px;
  }
  .course-page .receipt-product {
    gap: 6px 12px;
    margin-top: 12px;
  }
  .course-page .receipt-product strong {
    font-size: 16px;
  }
  .course-page .receipt-product b {
    font-size: 22px;
  }
  .course-page .receipt-meta {
    gap: 6px 12px;
    margin-top: 8px;
    font-size: 12px;
  }
  .course-page .profile-followup {
    margin-top: 20px;
    padding: 16px 14px;
    border-width: 1px;
    border-radius: 12px;
  }
  .course-page .profile-followup h3 {
    font-size: 17px;
  }
  .course-page .profile-followup > p {
    margin-top: 5px;
    font-size: 13px;
  }
  .course-page .profile-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 15px;
  }
  .course-page .profile-field span {
    margin-bottom: 6px;
    font-size: 14px;
  }
  .course-page .profile-field input {
    height: 44px;
    padding: 0 12px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 16px;
  }
  .course-page .profile-field small {
    margin-top: 4px;
    font-size: 12px;
  }
  .course-page .profile-privacy {
    margin-top: 16px;
    border-width: 1px;
    border-radius: 10px;
    font-size: 13px;
  }
  .course-page .profile-privacy summary {
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
  }
  .course-page .profile-privacy dl {
    padding: 0 14px;
    border-top-width: 1px;
  }
  .course-page .profile-privacy dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 11px 0;
  }
  .course-page .privacy-title {
    gap: 9px;
  }
  .course-page .privacy-icon {
    width: 28px;
    height: 28px;
  }
  .course-page .privacy-icon svg {
    width: 18px;
    height: 18px;
  }
  .course-page .privacy-toggle {
    font-size: 13px;
  }
  .course-page .privacy-toggle svg {
    width: 15px;
    height: 15px;
  }
  .course-page .profile-submit {
    margin-top: 16px;
    border-radius: 8px;
  }
  .course-page .share-note {
    gap: 8px;
    margin-top: 20px;
    padding: 12px 14px;
    border-width: 1px;
    border-radius: 12px;
    font-size: 13px;
  }
  .course-page .share-note svg {
    width: 20px;
    height: 20px;
  }
  .course-page .receipt-details {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }
  .course-page .receipt-details > div {
    gap: 3px;
    padding: 10px 0;
    border-bottom-width: 1px;
  }
  .course-page .receipt-details dt {
    font-size: 12px;
  }
  .course-page .receipt-details dd {
    font-size: 14px;
  }
  .course-page .receipt-actions {
    gap: 12px;
    margin-top: 20px;
  }
  .course-page .receipt-actions .course-outline {
    height: 42px;
    padding: 0 20px;
    border-radius: 21px;
  }
}

.course-page .teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 22px;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: linear-gradient(180deg, #f2f2f2 0%, #fafafa 100%);
  text-align: center;
  box-sizing: border-box;
}
.course-page .teacher-card h3 {
  margin: 0 0 18px;
  color: #20242b;
  font-size: 20px;
  font-weight: 700;
}
.course-page .teacher-qr {
  width: 168px;
  height: 168px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.course-page .teacher-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.course-page .teacher-qr-loading {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8%;
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 50%, #f2f2f2 75%);
  background-size: 200% 100%;
  animation: teacher-qr-loading 1.2s ease-in-out infinite;
}
@keyframes teacher-qr-loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.course-page .teacher-qr-hint {
  margin: 12px 0 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.5;
}
.course-page .teacher-qr-hint .mobile-only {
  display: none;
}
.course-page .teacher-help {
  width: 100%;
  margin-top: 18px;
  padding: 14px 14px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  box-sizing: border-box;
}
.course-page .teacher-help p {
  margin: 0 0 6px;
  color: #20242b;
  font-size: 14px;
  font-weight: 700;
}
.course-page .teacher-help ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.course-page .teacher-help li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 18px;
  color: #444444;
  font-size: 13px;
  line-height: 1.45;
}
.course-page .teacher-help li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a0a0a;
}
@media screen and (max-width: 768px) {
  .course-page .teacher-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 6px 16px;
    align-items: start;
    padding: 16px;
    border-width: 1px;
    border-radius: 14px;
    text-align: left;
  }
  .course-page .teacher-card h3 {
    grid-column: 1/-1;
    margin: 0 0 4px;
    font-size: 16px;
  }
  .course-page .teacher-qr {
    grid-row: 2/span 2;
    width: 120px;
    height: 120px;
    padding: 5px;
    border-radius: 12px;
  }
  .course-page .teacher-qr img {
    border-radius: 8px;
  }
  .course-page .teacher-qr-hint {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
    font-size: 12px;
    text-align: center;
  }
  .course-page .teacher-qr-hint .pc-only {
    display: none;
  }
  .course-page .teacher-qr-hint .mobile-only {
    display: inline;
  }
  .course-page .teacher-help {
    grid-column: 2;
    grid-row: 2/span 3;
    margin: 0;
    padding: 0;
    background: transparent;
  }
  .course-page .teacher-help p {
    margin-bottom: 3px;
    font-size: 13px;
  }
  .course-page .teacher-help li {
    padding: 4px 0 4px 16px;
    font-size: 12px;
  }
  .course-page .teacher-help li::before {
    top: 10px;
    width: 7px;
    height: 7px;
  }
}

@media screen and (max-width: 768px) {
  .course-stage {
    padding-top: 24px;
  }
}
/* 后浪右侧悬浮栏（fixed，距右 33px、宽 96px）会挡住价格：电脑端内容让开悬浮栏，手机端课程页不显示 */
@media screen and (min-width: 769px) {
  .course-stage {
    padding-right: 150px;
  }
  .course-shell {
    max-width: 1200px;
  }
}
@media screen and (max-width: 768px) {
  body.hl-course-body .hl-right-sidebar {
    display: none !important;
  }
}
