/* The licensed artwork belongs to the built-in homepage carousel. */
.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) {
  --mfuu-banner-height: clamp(365px, 29vw, 490px);
  --mfuu-topic-width: clamp(108px, 10vw, 144px);
  --mfuu-inset: clamp(20px, 3vw, 48px);
  background: var(--home-art-surface);
  touch-action: pan-y pinch-zoom;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .campaign-inner {
  align-items: center;
  padding-block: 36px;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .campaign-copy {
  width: min(420px, 100%);
  max-width: min(43vw, 420px);
  padding: 0;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) :is(h1, h2) {
  font-size: clamp(34px, 3.6vw, 55px);
  line-height: 1.15;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .mfuu-subtitle {
  font-size: clamp(18px, 1.7vw, 25px);
  margin-top: 10px;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .campaign-tagline {
  max-width: 27em;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .mfuu-art {
  inset: 0 min(0px, (100% - 100vw) / 2);
  border-radius: 0;
  mix-blend-mode: normal;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .mfuu-art :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--art-focus, 60%) center;
  mask-image: none;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .mfuu-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--white), color-mix(in srgb, var(--white) 85%, transparent) 34%, transparent 67%);
}

.jingyue-carousel #mfuu-slide-2 { --art-focus: 66%; }
.jingyue-carousel [data-slide="4"] { --art-focus: 67%; }

.jingyue-carousel .hero-video {
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.jingyue-carousel .hero-video.is-playing { opacity: 1; }

.jingyue-carousel .hero-position,
.jingyue-carousel .hero-progress { display: none; }

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips {
  gap: 0;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips button {
  min-height: 46px;
  white-space: nowrap;
}

.home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips .hero-topic {
  width: auto;
  height: auto;
  background: none;
}

.jingyue-carousel .carousel-pips button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

@media (max-width: 700px) {
  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) {
    background: var(--white);
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .campaign-inner {
    display: grid;
    grid-template-rows: minmax(201px, auto) clamp(120px, 40vw, 242px);
    gap: 12px;
    min-height: 0;
    padding: 25px 0 54px;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .campaign-copy {
    grid-row: 1;
    align-self: start;
    max-width: none;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) :is(h1, h2) {
    font-size: clamp(31px, 7.8vw, 43px);
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .mfuu-art {
    grid-row: 2;
    position: relative;
    inset: auto;
    align-self: stretch;
    width: 100%;
    aspect-ratio: auto;
    max-height: none;
    margin: 0;
    border-radius: var(--home-radius);
    overflow: hidden;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .mfuu-art :is(img, video) {
    object-position: var(--mobile-art-focus, 74%) center;
  }

  .jingyue-carousel [data-slide="4"] { --mobile-art-focus: 70%; }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .mfuu-art::after {
    content: none;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-controls {
    inset-block: auto 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .jingyue-carousel .hero-position {
    display: block;
    flex: none;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips {
    position: static;
    flex: 1;
    width: auto;
    gap: 5px;
    border: 0;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips button {
    display: grid;
    align-content: center;
    justify-items: stretch;
    min-height: 44px;
    padding: 0;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips [aria-pressed="true"]::after {
    content: none;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips .hero-topic {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) .carousel-pips .hero-progress {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
    background: var(--home-border);
  }

  .jingyue-carousel .hero-progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--blue);
    transform-origin: left;
    visibility: hidden;
  }

  .home-figma-v3.home-illustrated.mfuu-compact .jingyue-carousel:not(:has(.managed-banner)) [aria-pressed="true"] .hero-progress {
    background: color-mix(in srgb, var(--blue) 58%, var(--white));
  }

  .jingyue-carousel [aria-pressed="true"] .hero-progress i { visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .jingyue-carousel .hero-video { transition: none; }
}
