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

html {
  touch-action: manipulation;
  height: 100%;
  background: #000;
}

body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.page {
  position: relative;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

/* ===== 顶部下载横幅 ===== */
.download-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 100%;
  max-width: 480px;
}

.download-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 6px 16px;
  background: #0b080b;
  border-bottom: 0.5px solid #515151;
}

.download-banner__left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.download-banner__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.download-banner__intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.download-banner__name {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-banner__subtitle {
  color: #999;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  padding-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-banner__open {
  flex-shrink: 0;
  display: inline-block;
  width: 72px;
  height: 32px;
  background: #ff2b58;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

.download-banner__open:active {
  opacity: 0.8;
}

/* ===== 全屏背景 ===== */
.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  border: 0;
}

.bg-mask {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 1) 51%, #000 100%);
}

/* ===== 加载 ===== */
.loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: #000;
}

.loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ff2b58;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 主内容 ===== */
.content-box {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 73px;
}

.cover-box {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 16px;
  width: 100%;
}

.cover-container {
  position: relative;
  overflow: hidden;
  width: 72%;
  max-width: 290px;
  padding-bottom: 100%;
  border-radius: 8px;
}

.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.9;
  background: linear-gradient(135deg, #2a1040 0%, #1a1a2e 50%, #0f0f1a 100%);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.cover.is-loading {
  opacity: 0;
  filter: blur(20px);
}

.cover.is-loaded {
  opacity: 0.9;
  filter: blur(0);
}

/* 播放按钮 */
.play-btn {
  position: absolute;
  z-index: 10;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-btn__icon {
  width: 48px;
  height: 48px;
}

/* 信息区 */
.info {
  width: 100%;
  padding: 0 16px 120px;
}

.title {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 16px;
}

.desc {
  position: relative;
  z-index: 2;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  padding: 0 16px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* ===== 底部 CTA ===== */
.bottom-box {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 100%;
  max-width: 480px;
  padding: 0 16px;
  z-index: 20;
}

.bottom-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: none;
  border-radius: 25px;
  background-image: linear-gradient(to right, rgb(239, 148, 57), rgb(233, 62, 79), rgb(227, 49, 204));
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  font-family: inherit;
}

.bottom-btn:active {
  opacity: 0.85;
}

.click-hand {
  position: absolute;
  width: 48px;
  height: auto;
  top: 32px;
  right: 8px;
  pointer-events: none;
  animation: hand-click 1s linear infinite;
}

@keyframes hand-click {
  0%, 100% {
    top: 32px;
    right: 8px;
  }
  50% {
    top: 16px;
    right: 20px;
  }
}

/* 平板/桌面居中预览 */
@media (min-width: 481px) {
  body {
    background: #111;
  }

  .page {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  }
}
