/* 周边与课程：首页小卡 + 各自页面的大图排版共用 */
.goods__image { aspect-ratio: 4 / 5; overflow: hidden; border-bottom: var(--line); background: var(--zi-light); }
.goods__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
a.goods:hover .goods__image img { transform: scale(1.04); }
.goods__subtitle { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--zi-deep); }
.goods__price { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: var(--zhu); }
.goods__price--pending { font-size: 15px; color: var(--mo-soft); }
.goods-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.goods__desc { display: none; }

@media (min-width: 900px) {
  a.goods { flex-direction: row; }
  a.goods .goods__image { flex: none; width: 46%; border-bottom: none; border-right: var(--line); }
  a.goods .card__body { justify-content: center; padding: 20px; }
  a.goods .card__title { font-size: 22px; }
  .goods__desc { display: block; line-height: 1.8; }
}

/* 周边页：一件一行，大图和文字左右交错 */
.feature { display: grid; gap: 20px; margin: 0 0 56px; }
.feature__gallery { display: grid; grid-template-columns: 3fr 1fr; gap: 10px; }
.feature__main, .feature__thumbs img { border: var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.feature__main { aspect-ratio: 4 / 5; box-shadow: var(--pop); }
.feature__main img { width: 100%; height: 100%; object-fit: cover; }
.feature__thumbs { display: grid; gap: 10px; align-content: start; }
.feature__thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-small); }
.feature__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.feature__name { font-size: clamp(26px, 4.5vw, 36px); }
.feature__desc { margin: 4px 0 0; font-size: 16px; line-height: 1.8; }
.feature__points { margin: 8px 0; padding: 0; list-style: none; }
.feature__points li { position: relative; padding: 4px 0 4px 28px; }
.feature__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--mo);
  border-radius: 50%;
  background: var(--huang);
  font-size: 12px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .feature { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
  .feature:nth-of-type(even) .feature__gallery { order: 2; }
}

/* 课程：左边封面大图，右边介绍和环节 */
.course { display: grid; }
.course__cover { aspect-ratio: 1; overflow: hidden; border-bottom: var(--line); background: var(--zi-light); }
.course__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.course:hover .course__cover img { transform: scale(1.03); }
.course__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
.course__title { font-size: clamp(22px, 3.6vw, 28px); }
.course__subtitle { margin: 0; font-weight: 700; color: var(--zi-deep); }
.course__steps-title { margin: 8px 0 0; font-weight: 800; }
.course__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  border: 2px solid var(--mo);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
}
.steps__no {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--zi);
  color: #fff;
  font-size: 12px;
}

@media (min-width: 768px) {
  .course { grid-template-columns: minmax(280px, 2fr) 3fr; }
  .course__cover { aspect-ratio: auto; border-bottom: none; border-right: var(--line); }
  .course__text { justify-content: center; padding: 28px; }
}
