.course-list {
  display: grid;
}

.course-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 102px;
  padding: 9px 14px;
}

.course-item + .course-item {
  border-top: 1px solid rgba(225, 221, 214, 0.72);
}

.course-thumb {
  position: relative;
  height: 68px;
  overflow: hidden;
  border-radius: 5px;
  background: #e7e1d5;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.course-thumb--plan img {
  filter: saturate(0.72) contrast(1.04);
  object-position: center;
}

.course-thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.34) 100%);
  content: "";
}

.course-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(38, 38, 34, 0.46);
  color: #fff;
  transform: translate(-50%, -50%);
}

.course-play svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke-width: 0;
}

.course-thumb time {
  position: absolute;
  right: 4px;
  bottom: 3px;
  z-index: 1;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.course-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.course-copy h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #171c19;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.course-copy h3 span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(15, 139, 83, 0.1);
  color: #178456;
  font-size: 10px;
  font-weight: 850;
}

.course-copy p {
  margin: 0;
  overflow: hidden;
  color: #6f756f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-meta,
.course-avatars {
  display: flex;
  align-items: center;
}

.course-meta {
  gap: 7px;
  color: #909691;
  font-size: 11px;
  font-weight: 650;
}

.course-avatars span {
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f423e, #d9c3aa);
}

.course-avatars span + span {
  margin-left: -4px;
}

.course-price {
  align-self: end;
  padding-bottom: 13px;
  color: #0f8b53;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.course-item:last-child .course-price {
  font-size: 19px;
}

.course-gift {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px 24px;
  background:
    radial-gradient(circle at 18% 45%, rgba(15, 139, 83, 0.1), transparent 25%),
    linear-gradient(90deg, rgba(244, 249, 244, 0.98), rgba(255, 255, 255, 0.96));
}

.course-gift > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(15, 139, 83, 0.1);
  color: #13935e;
}

.course-gift svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.1;
}

.course-gift h2 {
  margin: 0;
  color: #1d241f;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.course-gift p {
  margin-top: 3px;
  color: #7d837e;
  font-size: 12px;
  font-weight: 650;
}

.course-gift button {
  height: 41px;
  border-radius: 999px;
  background: #0f8b53;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 139, 83, 0.18);
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.course-gift button:hover {
  box-shadow: 0 14px 24px rgba(15, 139, 83, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 390px) {
  .course-page { width: calc(100% - 30px); margin-top: 11px; }
  .course-header { grid-template-columns: minmax(0, 1fr) 158px; }
  .course-header h1 { font-size: 23px; }
  .course-header p { font-size: 11px; }
  .course-search { height: 40px; padding: 0 13px; }
  .course-hero { min-height: 118px; }
  .course-hero-copy { padding-top: 24px; padding-left: 22px; }
  .course-hero h2 { font-size: 23px; }
  .course-hero h2 span { font-size: 29px; }
  .course-dots { right: 170px; }
  .course-item { grid-template-columns: 108px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .course-thumb { height: 64px; }
  .course-gift { grid-template-columns: 40px minmax(0, 1fr) 88px; padding: 13px 18px; }
}
