
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #000;
}
.page-bg {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: calc(100vh * 9 / 16);
  max-height: calc(100vw * 16 / 9);
  background: url('/__frontend_img/8gg/50437e8c315692e6a4ab189c4170aec2.js') center/cover no-repeat;
  z-index: 0;
}

/* 弹窗遮罩 */
.overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: calc(100vh * 9 / 16);
  max-height: calc(100vw * 16 / 9);
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 图1 - 初始弹窗 */
.modal-1 {
  width: 90%;
  max-width: 340px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.2);
}
.modal-1 .header {
  padding: 24px 20px 20px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-weight: 500;
}
.modal-1 .btns {
  display: flex;
  gap: 12px;
  padding: 0 20px 24px;
}
.modal-1 .btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.modal-1 .btn:active { transform: scale(0.98); }
.modal-1 .btn:first-child {
  background: linear-gradient(135deg, #e9547a, #c2185b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233,84,122,0.4);
}
.modal-1 .btn:first-child:hover { box-shadow: 0 6px 20px rgba(233,84,122,0.5); }
.modal-1 .btn:last-child {
  background: rgba(0,0,0,0.06);
  color: #666;
}
.modal-1 .btn:last-child:hover { background: rgba(0,0,0,0.1); }

/* 图2 - 加载雷达 */
.loading-screen {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: calc(100vh * 9 / 16);
  max-height: calc(100vw * 16 / 9);
  background: url('/__frontend_img/8gg/50437e8c315692e6a4ab189c4170aec2.js') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}
.loading-screen.active {
  opacity: 1;
  visibility: visible;
}
.loading-screen .text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.radar {
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,200,220,0.1) 70%, rgba(0,200,220,0.2) 100%);
  border: 2px solid rgba(0,200,220,0.4);
}
.radar::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,220,0.3);
}
.radar::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,220,0.2);
}
.radar-sweep {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(0,220,240,0.4));
  transform-origin: left top;
  animation: sweep 2s linear infinite;
}
.radar-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(0,220,240,0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,220,240,0.8);
}
.radar-dot:nth-child(1) { left: 35%; top: 45%; }
.radar-dot:nth-child(2) { left: 55%; top: 30%; }
.radar-dot:nth-child(3) { left: 70%; top: 55%; }
.radar-dot:nth-child(4) { left: 45%; top: 70%; }
.radar-dot:nth-child(5) { left: 25%; top: 35%; }
@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 图3 - 请注意弹窗 */
.modal-notice {
  width: 90%;
  max-width: 340px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.modal-notice .header {
  background: #f06292;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
.modal-notice .body {
  padding: 20px 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.modal-notice .btn-ok {
  margin: 0 16px 20px;
  padding: 14px;
  background: #4caf50;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  width: calc(100% - 32px);
  cursor: pointer;
}

/* 问题弹窗 1-4 */
.modal-question {
  width: 90%;
  max-width: 340px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.modal-question .header {
  background: #e95275;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-question .header-title {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
}
.modal-question .steps {
  display: flex;
  gap: 8px;
}
.modal-question .step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-question .step.active {
  background: #fff;
  color: #333;
}
.modal-question .body {
  padding: 24px 16px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}
.modal-question .body .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
}
.modal-question .btns {
  display: flex;
  gap: 10px;
  padding: 0 16px 20px;
}
.modal-question .btn-yes {
  flex: 1;
  padding: 14px;
  background: #e95275;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}
.modal-question .btn-no {
  flex: 1;
  padding: 14px;
  background: #444;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

/* 选择类弹窗 */
.modal-select {
  width: 90%;
  max-width: 340px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.modal-select .header {
  background: #e94b75;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
.modal-select .body {
  padding: 16px;
  color: #fff;
}
.modal-select .hint {
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.9);
}
.modal-select .options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.modal-select .option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
}
.modal-select .option input { display: none; }
.modal-select .option .check {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-select .option input:checked + .check::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
}
.modal-select .btn-next {
  width: 100%;
  padding: 14px;
  background: #44b324;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* 恭喜弹窗 */
.modal-congrats .header {
  background: #e9547a;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
.modal-congrats .body {
  padding: 20px 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
}
.modal-congrats .body p { margin-bottom: 10px; }
.modal-congrats .body .note { color: rgba(255,255,255,0.85); font-size: 13px; }
.modal-congrats .app-icon {
  width: 80px;
  height: 80px;
  margin: 20px auto;
  background: linear-gradient(135deg, #e9547a, #c2185b);
  border-radius: 16px;
  box-shadow: 0 0 0 4px #e9547a, 0 0 20px rgba(233,84,122,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  cursor: pointer;
}
.modal-congrats .download-link {
  text-align: center;
  margin-top: 10px;
}
.modal-congrats .download-link a {
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
}