/* 原下载页 (pages/download/download.vue) 样式移植，rpx → px (1rpx = 0.5px) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

.page {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-fallback {
  background: linear-gradient(180deg, #1a1008, #3d2312, #1a1008);
}

.mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 4, 0.12) 0%, rgba(10, 6, 4, 0.22) 45%, rgba(10, 6, 4, 0.48) 100%);
}

.content { position: relative; z-index: 1; width: 100%; height: 100%; }

.el { position: absolute; }

.el-video { width: 100%; height: 100%; display: block; object-fit: cover; }

.el-text {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; word-break: break-word; overflow: hidden;
}

/* carousel 3D 轮播（视频模式：页面中间显示） */
.carousel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(300px, 68vw); aspect-ratio: 9 / 16; z-index: 2;
}
.carousel-stage { position: relative; width: 100%; height: 100%; perspective: 1000px; }

.c-card {
  position: absolute; top: 0; border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backface-visibility: hidden; cursor: pointer;
}
.c-card.moving { transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.c-center { left: 12%; width: 76%; height: 100%; z-index: 3; transform: translateZ(0) rotateY(0deg) scale(1); }
.c-left { left: -10%; width: 34%; height: 82%; top: 9%; z-index: 1; filter: brightness(0.45); transform: translateZ(-75px) rotateY(30deg) scale(0.78); }
.c-right { right: -10%; width: 34%; height: 82%; top: 9%; z-index: 1; filter: brightness(0.45); transform: translateZ(-75px) rotateY(-30deg) scale(0.78); }
.c-hidden { opacity: 0; pointer-events: none; transform: translateZ(-100px) scale(0.5); }

.c-video { width: 100%; height: 100%; object-fit: cover; }
.c-cover { position: absolute; inset: 0; z-index: 2; background: transparent; }

.carousel-dots { display: flex; justify-content: center; gap: 5px; margin-top: 9px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: all 0.3s; }
.dot.active { background: #fff; width: 13px; border-radius: 3px; }

/* 状态卡片 */
.state-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; max-width: 300px; padding: 16px; border-radius: 14px;
  background: rgba(255, 248, 239, 0.9); box-shadow: 0 9px 20px rgba(42, 22, 7, 0.18);
  text-align: center;
}
.state-card.error { background: rgba(255, 234, 230, 0.92); }

.spinner { width: 24px; height: 24px; margin: 0 auto 9px; border: 2px solid rgba(120, 80, 40, 0.15); border-top-color: #8b6b3d; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.state-title { display: block; font-size: 15px; font-weight: 700; color: #24180f; }
.state-text { display: block; margin-top: 5px; font-size: 12px; color: #644f3f; }

/* 底部 dock */
.dock { position: fixed; bottom: 20px; left: 0; right: 0; z-index: 50; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.dock-glass { max-width: 380px; margin: 0 auto; padding: 7px; border-radius: 999px; background: rgba(255, 250, 243, 0.16); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 11px 24px rgba(24, 14, 7, 0.25); border: 1px solid rgba(255, 255, 255, 0.18); }
.download-btn { width: 100%; height: 54px; padding: 0; border: none; border-radius: 999px; background: linear-gradient(135deg, rgba(248, 255, 250, 0.98), rgba(228, 244, 233, 0.96)); box-shadow: 0 7px 15px rgba(20, 52, 32, 0.14); cursor: pointer; }
.download-btn[disabled] { opacity: 0.5; }

/* 右上角浮动下载按钮（第二个下载入口） */
.float-download {
  position: fixed; top: calc(25px + env(safe-area-inset-top)); right: 10px;
  padding: 10px 15px; border-radius: 20px; background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4), 0 0 0 3px rgba(76, 175, 80, 0.15);
  z-index: 100; line-height: 1; cursor: pointer;
  animation: float-bounce 2s ease-in-out infinite, float-glow 2s ease-in-out infinite;
}
.float-download[disabled] { opacity: 0.4; animation: none; }
@keyframes float-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4), 0 0 0 3px rgba(76, 175, 80, 0.15); }
  50% { box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4), 0 0 0 8px rgba(76, 175, 80, 0.05); }
}
.float-inner { display: flex; align-items: center; gap: 5px; }

.float-android { position: relative; width: 16px; height: 18px; flex-shrink: 0; }
.fa-head { position: absolute; top: 0; left: 2px; width: 12px; height: 7px; border-radius: 5px 5px 2px 2px; background: #fff; }
.fa-body { position: absolute; left: 1px; top: 7px; width: 14px; height: 9px; border-radius: 0 0 4px 4px; background: #fff; }
.fa-eye { position: absolute; top: 2px; width: 1.5px; height: 1.5px; border-radius: 50%; background: #4caf50; }
.fa-eye.le { left: 2px; } .fa-eye.re { right: 2px; }
.fa-antenna { position: absolute; top: -1.5px; width: 1px; height: 3.5px; border-radius: 999px; background: #fff; }
.fa-antenna.la { left: 3px; transform: rotate(-28deg); } .fa-antenna.ra { right: 3px; transform: rotate(28deg); }
.float-text { font-size: 13px; font-weight: 700; }
@keyframes float-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.btn-inner { display: flex; align-items: center; justify-content: center; gap: 9px; height: 100%; padding: 0 15px; }
.btn-text { font-size: 15px; font-weight: 700; letter-spacing: 0.15px; color: #17311f; }
.btn-copy { display: flex; flex-direction: column; align-items: flex-start; }
.btn-sub { margin-top: 2px; font-size: 10px; line-height: 1.4; color: #5c7363; }

.android-glyph { position: relative; width: 22px; height: 26px; flex-shrink: 0; }
.android-head { position: absolute; top: 0; left: 3px; width: 16px; height: 10px; border-radius: 8px 8px 4px 4px; background: #36b35f; }
.android-body { position: absolute; left: 2px; top: 10px; width: 18px; height: 13px; border-radius: 0 0 6px 6px; background: #36b35f; }
.android-eye { position: absolute; top: 4px; width: 2px; height: 2px; border-radius: 50%; background: #ffffff; }
.android-eye.left { left: 4px; } .android-eye.right { right: 4px; }
.android-antenna { position: absolute; top: -2.5px; width: 1px; height: 5px; border-radius: 999px; background: #36b35f; }
.android-antenna.left { left: 4px; transform: rotate(-28deg); } .android-antenna.right { right: 4px; transform: rotate(28deg); }

/* 浏览器内打开提示 */
.browser-tip { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.browser-tip-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); }
.browser-tip-card { position: relative; width: 100%; max-width: 300px; padding: 24px 18px 16px; border-radius: 16px; background: #1a1a1a; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); }
.browser-tip-arrow { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 14px; font-size: 60px; z-index: 202; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.5); animation: float-bounce 1s ease-in-out infinite; }
.browser-tip-title { display: block; margin-top: 8px; font-size: 18px; font-weight: 800; color: #fff; }
.browser-tip-desc { display: block; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.5; }
.browser-tip-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tip-step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.tip-step-num { width: 22px; height: 22px; border-radius: 50%; background: #e8913a; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tip-step-text { font-size: 13px; color: #ddd; }
.browser-tip-close { margin-top: 14px; height: 40px; width: 100%; border-radius: 10px; background: linear-gradient(135deg, #e8913a, #f0a855); color: #1e160d; font-size: 14px; font-weight: 700; border: none; cursor: pointer; }

@keyframes float-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 兼容大屏（PC 访问） */
@media (min-width: 900px) {
  .dock-glass { max-width: 420px; }
}
