*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #e5e5e5;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

.dl-page {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f3f3f3;
}

.dl-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(115.26deg, #dff2fe 0%, #eff6ff 100%);
}

.dl-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dl-orb--1 {
  width: 172px;
  height: 172px;
  right: -59px;
  bottom: 175px;
  background: linear-gradient(90deg, #53eafd 0%, #00d5be 100%);
  opacity: 0.4;
  filter: blur(70px);
}

.dl-orb--2 {
  width: 146px;
  height: 175px;
  left: -49px;
  top: 358px;
  background: linear-gradient(90deg, #a3b3ff 0%, #2b7fff 100%);
  opacity: 0.5;
  filter: blur(64px);
}

.dl-orb--3 {
  width: 228px;
  height: 228px;
  left: 147px;
  top: -12px;
  background: linear-gradient(90deg, #8ec5ff 0%, #00d3f3 100%);
  opacity: 0.6;
  filter: blur(150px);
}

.dl-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 40px);
}

.dl-app-icon {
  display: block;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.dl-app-icon:not([src]),
.dl-app-icon[src=""] {
  visibility: hidden;
}

.dl-app-name {
  margin: 0;
  min-height: 22px;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.dl-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 9999px;
  background: #0091ff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.dl-btn:active:not(:disabled) { opacity: 0.85; }

.dl-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.dl-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
