/* 下载 App 弹窗 */

.download-pop {
  position: fixed;
  inset: 0;
  z-index: 290;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.download-pop.is-open {
  display: flex;
}

.download-pop__mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.9);
}

.download-pop__panel {
  position: relative;
  z-index: 1;
  width: 480px;
  max-width: 100%;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.download-pop__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.download-pop__close .icon {
  width: 18px;
  height: 18px;
}

.download-pop__copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.download-pop__title {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  line-height: 38px;
}

.download-pop__desc {
  margin: 0;
  align-self: stretch;
  color: #b9bbc2;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.download-pop__download {
  align-self: stretch;
  height: 44px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.download-pop__download-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.download-pop__close:focus-visible,
.download-pop__download:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .download-pop {
    align-items: flex-end;
    padding: 0;
  }

  .download-pop__panel {
    width: 100%;
    max-width: none;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 20px;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }

  .download-pop__close {
    top: 12px;
    right: 12px;
  }

  .download-pop__copy {
    padding-right: 28px;
    gap: 6px;
  }

  .download-pop__title {
    font-size: 22px;
    line-height: 30px;
  }

  .download-pop__desc {
    font-size: 13px;
    line-height: 20px;
  }

  .download-pop__download {
    height: 44px;
    font-size: 16px;
  }
}
