html.adapt-enabled,
html.adapt-enabled body {
  width: 100%;
  min-width: 320px;
  background: #1f1f1f;
}

html.adapt-enabled body {
  min-height: calc(var(--vh, 1vh) * 100);
}

body[data-viewport-adapter="true"] {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: #1f1f1f;
}

body[data-viewport-adapter="true"] .adapt-viewport {
  position: fixed;
  /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: #1f1f1f;
}

body[data-viewport-adapter="true"] .adapt-stage {
  position: absolute;
  left: var(--adapt-stage-left, 0px);
  top: var(--adapt-stage-top, 0px);
  width: var(--adapt-stage-width, 100vw);
  height: var(--adapt-stage-height, calc(var(--vh, 1vh) * 100));
  overflow: hidden;
  color: var(--color-text, #f7fbff);
}

body[data-viewport-adapter="true"] .adapt-design {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--adapt-design-width, 25.6rem);
  height: var(--adapt-design-height, 14.4rem);
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

body[data-viewport-adapter="true"] .adapt-full {
  position: absolute;
  /* [inset-fallback] iOS<14.5 不支持 inset 简写，勿删 */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-viewport-adapter="true"] .adapt-cover {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

body[data-viewport-adapter="true"] .adapt-contain {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

body[data-viewport-adapter="true"] .adapt-stage .container {
  width: auto;
  max-width: none;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  /* reduce-motion 降级：对所有元素生效，但带 .motion-keep 的装饰性无限循环动画除外 */
  body[data-viewport-adapter="true"] *:not(.motion-keep),
  body[data-viewport-adapter="true"] *:not(.motion-keep)::before,
  body[data-viewport-adapter="true"] *:not(.motion-keep)::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001s !important;
  }
}
