/* 日语培训详情 — Figma 52:699  1920 × 2584 */

.page-course {
  background: #fff9f2;
}

.page-courses {
  background: #fff9f2;
}

.page-courses .header,
.page-course .header {
  background: #fff;
}

.courses-page {
  width: 1152px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 15px 0 80px;
}

.page-courses .courses {
  padding-top: 0;
}

.courses-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  padding: 48px 0;
}

.course-main {
  width: 1152px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 15px 0 115px;
}

.course-crumb {
  font-size: 14px;
  line-height: 28px;
  color: #4b5563;
  margin-bottom: 18px;
}

.course-crumb a {
  color: #4b5563;
}

.course-crumb a:hover {
  color: #f58220;
}

/* Hero */
.course-hero {
  display: flex;
  gap: 42px;
  background: #fff;
  min-height: 348px;
  padding: 19px 26px 24px;
  box-sizing: border-box;
}

.course-hero__media {
  width: 407px;
  height: 314px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.course-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-hero__info {
  flex: 1;
  min-width: 0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.course-hero__info h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #3e3242;
  margin: 0;
}

.course-hero__meta {
  margin-top: 15px;
}

.course-hero__row {
  display: flex;
  align-items: center;
  min-height: 35px;
}

.course-hero__row + .course-hero__row {
  margin-top: 16px;
}

.course-hero__label {
  width: 70px;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 35px;
  color: #9c999a;
}

.course-hero__times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-hero__time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 20px;
  padding: 0 12px;
  background: #f58220;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.course-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 32px;
  padding: 0 14px;
  border-radius: 18px;
  background: #fff;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
}

.course-tag--jp {
  border: 1px solid #f58220;
  color: #f58220;
}

.course-tag--lang {
  border: 1px solid #f189b6;
  color: #f189b6;
}

.course-hero__price {
  display: flex;
  align-items: center;
  width: 574px;
  max-width: 100%;
  height: 44px;
  margin-top: 20px;
  padding-left: 28px;
  background: linear-gradient(90deg, #f3994d 0%, #e25c5c 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
}

.course-hero__feats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 574px;
  max-width: 100%;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.course-hero__feats li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #a09d9e;
  white-space: nowrap;
}

.course-hero__feats img {
  flex-shrink: 0;
}

.course-hero__feats li:nth-child(1) img {
  width: 18px;
  height: 18px;
}

.course-hero__feats li:nth-child(2) img {
  width: 16px;
  height: 16px;
}

.course-hero__feats li:nth-child(3) img {
  width: 17px;
  height: 17px;
}

.course-hero__feats li:nth-child(4) img {
  width: 22px;
  height: 22px;
}

/* Layout */
.course-layout {
  display: flex;
  gap: 33px;
  margin-top: 34px;
  align-items: flex-start;
}

.course-body {
  width: 779px;
  flex-shrink: 0;
  background: #fff;
}

.course-tabs {
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.course-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 48px;
  background: #f58220;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.course-article {
  padding: 0;
}

.course-article__content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: #374151;
  word-break: break-word;
}

.course-article__content > :first-child {
  margin-top: 0;
}

.course-article__content p {
  margin: 0 0 14px;
}

.course-article__content img {
  width: 100%;
  max-width: 778px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.course-article__content h2,
.course-article__content h3,
.course-article__content h4 {
  position: relative;
  margin: 24px 0 12px;
  padding-left: 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #3e3242;
}

.course-article__content h2::before,
.course-article__content h3::before,
.course-article__content h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9a063;
  transform: translateY(-50%);
}

.course-article__content ul,
.course-article__content ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.course-article__content li {
  margin-bottom: 6px;
}

.course-article__content table {
  width: 100%;
  max-width: 778px;
  margin: 16px auto;
  border-collapse: collapse;
  font-size: 14px;
}

.course-article__content th,
.course-article__content td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: center;
}

.course-article__content th {
  background: #c9a063;
  color: #fff;
  font-weight: 700;
}

.course-article__content td {
  background: #fff;
  color: #374151;
}

.course-article__content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #f58220;
  background: #fff9f2;
  color: #6b7280;
}

/* Sidebar */
.course-side {
  width: 340px;
  flex-shrink: 0;
  background: #fff;
  padding: 21px 18px 24px 17px;
  box-sizing: border-box;
}

.course-side__title {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  color: #000;
  margin: 0 0 13px;
}

.course-side__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 18px;
  background: #f58220;
  border-radius: 12px;
}

.rec-card {
  display: block;
  width: 303px;
  max-width: 100%;
  margin: 0 auto 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.rec-card:last-child {
  margin-bottom: 0;
}

.rec-card__cover {
  width: 277px;
  max-width: calc(100% - 26px);
  height: 214px;
  margin: 15px auto 0;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: #989898;
}

.rec-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px 12px;
}

.rec-card__bar span {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-card__bar strong {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 700;
  color: #e91111;
}

@media (max-width: 1280px) {
  .course-main {
    width: auto;
  }

  .course-hero,
  .course-layout {
    width: 100%;
  }

  .course-body,
  .course-side,
  .course-hero__price,
  .course-hero__feats {
    width: auto;
  }

  .course-hero__media {
    width: 46%;
    max-width: 407px;
  }

  .rec-card,
  .rec-card__cover {
    width: 100%;
  }

  .rec-card {
    height: auto;
  }
}

@media (max-width: 1100px) {
  .course-hero {
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    padding: 16px;
  }

  .course-hero__media {
    width: 100%;
    max-width: 407px;
    margin: 0 auto;
  }

  .course-layout {
    flex-direction: column;
  }

  .course-body,
  .course-side {
    width: 100%;
  }

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

  .course-side__title {
    grid-column: 1 / -1;
  }

  .rec-card {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .course-main {
    max-width: calc(100% - 24px);
    padding: 12px 0 48px;
  }

  .course-hero {
    padding: 16px;
  }

  .course-hero__info h1 {
    font-size: 24px;
  }

  .course-hero__feats {
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: flex-start;
  }

  .course-hero__price {
    padding-left: 16px;
    font-size: 20px;
  }

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

  .course-article__content table {
    display: block;
    overflow-x: auto;
  }
}
