.wy-course-v6,
.wy-course-reviews {
  --wy-primary: #ff7d00;
  --wy-primary-dark: #d95f00;
  --wy-primary-soft: #fff3e8;
  --wy-success: #22a06b;
  --wy-text: #1d1d1f;
  --wy-muted: #667085;
  --wy-line: #ebeef2;
  --wy-surface: #ffffff;
  --wy-background: #f5f5f7;
  --wy-warning: #f5a623;
  --wy-radius: 14px;
  color: var(--wy-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.wy-course-v6 *,
.wy-course-v6 *::before,
.wy-course-v6 *::after,
.wy-course-reviews *,
.wy-course-reviews *::before,
.wy-course-reviews *::after {
  box-sizing: border-box;
}

.wy-course-v6 {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px;
  background: var(--wy-background);
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.75;
}

.wy-course-v6__section + .wy-course-v6__section {
  margin-top: 28px;
}

.wy-course-v6__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--wy-text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.wy-course-v6__heading::before {
  width: 5px;
  height: 23px;
  flex: 0 0 auto;
  background: var(--wy-primary);
  border-radius: 999px;
  content: "";
}

.wy-course-v6__card {
  padding: 20px;
  background: var(--wy-surface);
  border: 1px solid rgba(29, 29, 31, 0.05);
  border-radius: var(--wy-radius);
  box-shadow: 0 8px 24px rgba(29, 29, 31, 0.06);
}

.wy-course-v6 p,
.leftbody .content .wy-course-v6 p {
  width: auto;
  margin: 0;
  color: var(--wy-muted);
  font-size: 15px;
  line-height: 1.8;
}

.wy-course-v6__intro {
  position: relative;
  overflow: hidden;
}

.wy-course-v6__intro::after {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 125, 0, 0.13), rgba(255, 125, 0, 0));
  content: "";
  pointer-events: none;
}

.wy-course-v6__tags,
.wy-course-v6__service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.wy-course-v6__tag,
.wy-course-v6__service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  color: #5b6472;
  font-size: 13px;
  line-height: 1.45;
  background: #f4f6f8;
  border: 1px solid #edf0f3;
  border-radius: 8px;
}

.wy-course-v6__course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wy-course-v6__course-card {
  min-width: 0;
  padding: 18px;
  background: var(--wy-surface);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: var(--wy-radius);
  box-shadow: 0 7px 20px rgba(29, 29, 31, 0.055);
}

.wy-course-v6__course-name {
  margin: 0;
  color: var(--wy-primary-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.wy-course-v6__course-meta {
  margin-top: 6px !important;
  color: #8b93a1 !important;
  font-size: 13px !important;
}

.wy-course-v6__course-desc {
  margin-top: 10px !important;
  color: #545d6a !important;
  font-size: 14px !important;
}

.wy-course-v6__subcard {
  margin-top: 15px;
}

.wy-course-v6__subheading {
  margin: 0 0 14px;
  color: var(--wy-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.wy-course-v6__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wy-course-step;
}

.wy-course-v6__step {
  position: relative;
  min-height: 34px;
  padding: 0 0 15px 43px;
  color: #505966;
  font-size: 14px;
  line-height: 1.7;
  counter-increment: wy-course-step;
}

.wy-course-v6__step:last-child {
  padding-bottom: 0;
}

.wy-course-v6__step::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: var(--wy-primary);
  border-radius: 50%;
  content: counter(wy-course-step);
}

.wy-course-v6__step:not(:last-child)::after {
  position: absolute;
  top: 27px;
  bottom: -1px;
  left: 13px;
  width: 2px;
  background: #ffe2c7;
  content: "";
}

.wy-course-v6__step strong {
  color: #303642;
  font-weight: 700;
}

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

.wy-course-v6__teacher {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--wy-surface);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: var(--wy-radius);
  box-shadow: 0 7px 20px rgba(29, 29, 31, 0.055);
}

.wy-course-v6__teacher-photo,
.leftbody .content .wy-course-v6__teacher-photo {
  display: block;
  width: 76px !important;
  height: 76px !important;
  object-fit: cover;
  background: var(--wy-primary-soft);
  border: 2px solid #fff;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px #ffdec0;
}

.wy-course-v6__teacher-name {
  margin: 0;
  color: var(--wy-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.wy-course-v6__teacher-focus {
  margin-top: 4px !important;
  color: var(--wy-primary-dark) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.wy-course-v6__teacher-desc {
  margin-top: 5px !important;
  color: #687180 !important;
  font-size: 13px !important;
}

.wy-course-v6__faq-list {
  display: grid;
  gap: 11px;
}

.wy-course-v6__faq {
  overflow: hidden;
  background: var(--wy-surface);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(29, 29, 31, 0.045);
}

.wy-course-v6__faq summary {
  position: relative;
  padding: 16px 46px 16px 17px;
  color: #303642;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.wy-course-v6__faq summary::-webkit-details-marker {
  display: none;
}

.wy-course-v6__faq summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #98a1ae;
  border-bottom: 2px solid #98a1ae;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
  content: "";
}

.wy-course-v6__faq[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.wy-course-v6__faq-answer {
  padding: 0 17px 17px;
  border-top: 1px solid #f0f1f3;
}

.wy-course-v6__faq-answer p,
.leftbody .content .wy-course-v6__faq-answer p {
  padding-top: 13px;
  color: #646d7a;
  font-size: 14px;
}

.wy-course-v6__source {
  margin-top: 24px !important;
  color: #9aa1ac !important;
  font-size: 12px !important;
  text-align: right;
}

.wy-course-v6__placeholder {
  color: #b54708;
  background: #fff8f0;
  border-bottom: 1px dashed #ffb36a;
}

.wy-course-reviews {
  clear: both;
  margin-top: 28px;
  padding: 22px;
  background: var(--wy-background);
  border-radius: 18px;
}

.wy-course-reviews__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--wy-text);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.wy-course-reviews__heading::before {
  width: 5px;
  height: 23px;
  flex: 0 0 auto;
  background: var(--wy-primary);
  border-radius: 999px;
  content: "";
}

.wy-course-reviews__list {
  display: grid;
  gap: 12px;
}

.wy-course-reviews__item {
  padding: 17px;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(29, 29, 31, 0.05);
}

.wy-course-reviews__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wy-course-reviews__name {
  color: #303642;
  font-size: 15px;
  font-weight: 700;
}

.wy-course-reviews__date {
  color: #9aa1ac;
  font-size: 12px;
  white-space: nowrap;
}

.wy-course-reviews__stars {
  position: relative;
  display: inline-block;
  margin-top: 3px;
  color: #d7dbe0;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1px;
}

.wy-course-reviews__stars::before {
  content: "★★★★★";
}

.wy-course-reviews__stars::after {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: calc(var(--rating, 5) * 20%);
  color: var(--wy-warning);
  white-space: nowrap;
  content: "★★★★★";
}

.wy-course-reviews__content {
  margin: 12px 0 0;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
  word-break: break-word;
}

.wy-course-reviews__empty {
  margin: 0;
  padding: 22px 16px;
  color: #8b93a1;
  font-size: 14px;
  text-align: center;
  background: #fff;
  border: 1px dashed #dfe3e8;
  border-radius: 12px;
}

.wy-course-reviews__list:not(:empty) + .wy-course-reviews__empty {
  display: none;
}

.wy-course-reviews__form-card {
  margin-top: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(29, 29, 31, 0.045);
}

.wy-course-reviews__form-title {
  margin: 0 0 5px;
  color: var(--wy-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.wy-course-reviews__form-tip {
  margin: 0 0 16px;
  color: #7b8491;
  font-size: 13px;
  line-height: 1.6;
}

.wy-course-reviews__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.wy-course-reviews__field {
  min-width: 0;
}

.wy-course-reviews__field--full {
  grid-column: 1 / -1;
}

.wy-course-reviews__label {
  display: block;
  margin-bottom: 7px;
  color: #404754;
  font-size: 14px;
  font-weight: 600;
}

.wy-course-reviews__required {
  margin-left: 3px;
  color: #d92d20;
}

.wy-course-reviews__input,
.wy-course-reviews__textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  color: #303642;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
  border: 1px solid #d8dde4;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wy-course-reviews__textarea {
  min-height: 112px;
  resize: vertical;
}

.wy-course-reviews__input:focus,
.wy-course-reviews__textarea:focus {
  border-color: var(--wy-primary);
  box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.12);
}

.wy-course-reviews__rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.wy-course-reviews__rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wy-course-reviews__rating label {
  color: #d7dbe0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, transform 0.16s ease;
}

.wy-course-reviews__rating label:hover,
.wy-course-reviews__rating label:hover ~ label,
.wy-course-reviews__rating input:checked ~ label {
  color: var(--wy-warning);
}

.wy-course-reviews__rating label:hover {
  transform: translateY(-1px);
}

.wy-course-reviews__captcha {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.wy-course-reviews__captcha .wy-course-reviews__input {
  min-width: 0;
}

.wy-course-reviews__captcha-image {
  width: 112px;
  height: 44px;
  flex: 0 0 112px;
  object-fit: cover;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  cursor: pointer;
}

.wy-course-reviews__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 15px 0 0;
  color: #747d8a;
  font-size: 12px;
  line-height: 1.6;
}

.wy-course-reviews__consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--wy-primary);
}

.wy-course-reviews__submit {
  display: inline-flex;
  min-width: 150px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 24px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--wy-primary);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(255, 125, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.wy-course-reviews__submit:hover {
  background: var(--wy-primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 750px) {
  .wy-course-v6 {
    padding: 16px;
    border-radius: 14px;
  }

  .wy-course-v6__heading,
  .wy-course-reviews__heading {
    font-size: 18px;
  }

  .wy-course-reviews__form-grid {
    grid-template-columns: 1fr;
  }

  .wy-course-v6__course-grid {
    gap: 10px;
  }

  .wy-course-v6__card,
  .wy-course-v6__teacher,
  .wy-course-reviews__form-card {
    padding: 15px;
  }

  .wy-course-v6__course-card {
    padding: 13px;
  }

  .wy-course-v6__course-name {
    font-size: 14px;
  }

  .wy-course-v6__course-meta {
    font-size: 12px !important;
  }

  .wy-course-v6__course-desc {
    font-size: 13px !important;
  }

  .wy-course-v6__teacher {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .wy-course-v6__teacher-photo,
  .leftbody .content .wy-course-v6__teacher-photo {
    width: 62px !important;
    height: 62px !important;
  }

  .wy-course-reviews {
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
  }

  .wy-course-reviews__meta {
    align-items: flex-start;
  }

  .wy-course-reviews__field--full {
    grid-column: auto;
  }

  .wy-course-reviews__submit {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .wy-course-v6,
  .wy-course-reviews {
    padding: 13px;
  }

  .wy-course-v6__teacher {
    grid-template-columns: 1fr;
  }

  .wy-course-reviews__captcha {
    flex-direction: column;
  }

  .wy-course-reviews__captcha-image {
    height: 44px;
    flex-basis: auto;
  }
}

@media (max-width: 330px) {
  .wy-course-v6__course-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wy-course-v6 *,
  .wy-course-reviews * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
