/* 未登录首页：单张 Banner */
.guest-featured-banner {
  margin: 0 0 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  line-height: 0;
}

.guest-featured-banner__link {
  display: block;
  text-decoration: none;
}

.guest-featured-banner__img {
  width: 100%;
  height: clamp(180px, 28vw, 380px);
  object-fit: cover;
  display: block;
}

/* 登录后作业列表：Steam 风轮播 */
.steam-banner {
  margin: 0 0 24px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  user-select: none;
}

.steam-banner__viewport {
  position: relative;
  height: clamp(200px, 32vw, 420px);
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
}

.steam-banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.steam-banner__arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.steam-banner__arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.steam-banner__arrow--prev {
  left: 12px;
}

.steam-banner__arrow--next {
  right: 12px;
}

.steam-banner__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.steam-banner__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.steam-banner__slide-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.steam-banner__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.steam-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}

.steam-banner__dot {
  pointer-events: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.steam-banner__dot[aria-current="true"] {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

.steam-banner__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.steam-banner__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 35%,
    transparent 65%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

@media (max-width: 768px) {
  .guest-featured-banner__img {
    height: clamp(140px, 42vw, 260px);
  }

  .steam-banner__viewport {
    height: clamp(160px, 48vw, 300px);
  }

  .steam-banner__arrow {
    display: none;
  }
}
