html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 参考 coupon-container：一屏居中 */
.container {
  width: 100%;
  height: 100dvh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* 参考 coupon-content：保持 bg.png（3451×5723）比例，可视区内最大矩形 */
.bread_bg {
  position: relative;
  width: min(100vw, calc(100dvh * 3451 / 5723));
  height: min(100dvh, calc(100vw * 5723 / 3451));
  flex-shrink: 0;
  box-sizing: border-box;
  background: url(images/bg.png) no-repeat center center;
  background-size: 100% 100%;
  container-type: inline-size;
  padding-top: calc( 60dvh * 3451 / 5723 * 0.2);
}

.center {
  width: 100%;
  height: 100%;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overflow: hidden;
}

.logo {
  width: 20%;
  display: block;
  margin: 0 auto;
}

.img_center {
  display: block;
  margin: 0 auto;
}

.demo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 59%;
  margin: 11% auto 0;
}

.demo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.demo-touch-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.tip_img {
  width: 78%;
  display: block;
  margin: 0 auto;
  margin-top: 2%;
}

.center .btn {
  width: calc( 168/ 1080 * 100%);
  display: block;
  margin: 0 auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.is-hidden {
  display: none !important;
}

.download-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.download-loading__spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: download-spin 0.75s linear infinite;
}

@keyframes download-spin {
  to {
    transform: rotate(360deg);
  }
}

.save-success-dialog {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
}

.save-success-dialog__panel {
  width: 100%;
  max-width: 180px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.save-success-dialog__title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #111;
}

.save-success-dialog__ok {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  background: #222;
  cursor: pointer;
}

.save-success-dialog__ok:active {
  opacity: 0.9;
}

