/**
 * 6Q嘉年华 · iOS 预览壳（对齐 enterprise-knowledge-base mp-device）
 */
body.ios-preview {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #dfe6eb 0%, #c8d3dc 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 32px;
}

.ios-device {
  width: 100%;
  max-width: 390px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.ios-screen {
  position: relative;
  background: var(--q-bg);
  border-radius: 34px;
  overflow: hidden;
  min-height: 780px;
  max-height: min(844px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.ios-capsule {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000;
  border-radius: 18px;
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ios-capsule::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a3a5c, #0a1520);
}

.ios-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  z-index: 50;
  pointer-events: none;
}

.ios-screen .q-app {
  max-width: none;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-bottom: 0;
}

.ios-screen .q-app--park {
  overflow-y: auto;
  overflow-x: hidden;
}

.ios-screen .q-modal-overlay {
  position: absolute;
  inset: 0;
  border-radius: 34px;
}

.ios-screen .carnival-hero {
  padding-top: 52px;
}

.ios-screen .game-header {
  padding-top: 42px;
}

.ios-screen .lobby-header {
  padding-top: 42px;
}

.ios-screen .cards-app {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 46px;
  padding-bottom: 20px;
}

.ios-screen .park-gate {
  padding-top: 36px;
}
