* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 10vw; }
@media (min-width: 400px) {
  html { font-size: 40px; }
}
html, body {
  margin: 0;
  width: 100%;
  background: #000;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.page {
  width: 100%;
  min-height: 100vh;
  background: #000;
}

.bar, .dock {
  left: 0;
  right: 0;
  width: 100%;
}
.bar {
  position: fixed;
  top: 0;
  z-index: 20;
  height: 2.90667rem;
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0 0.24rem;
  background: transparent;
}
.logo {
  width: 1.62rem;
  height: 1.62rem;
  border-radius: 0.28rem;
  object-fit: cover;
  flex: none;
}
.meta { flex: 1; min-width: 0; }
.name {
  font-size: 0.46rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.sub {
  margin-top: 0.06rem;
  font-size: 0.26rem;
  color: #d0d0d0;
  white-space: nowrap;
}
.now {
  flex: none;
  border: 0;
  color: #fff;
  font-size: 0.32rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  height: 0.86rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a3c 0%, #ff4d6a 58%, #ff2f78 100%);
  box-shadow: 0 0.08rem 0.22rem rgba(255, 55, 110, 0.35);
}

.poster { width: 100%; height: auto; }

.dock {
  position: fixed;
  bottom: 0;
  z-index: 20;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
  padding: 0 0.28rem calc(0.16rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 56%);
}
.dock button {
  flex: 1;
  border: 0;
  background: none;
  padding: 0;
}
.dock img { width: 100%; height: 1.34rem; object-fit: contain; }

/* 电脑宽屏：内容居中成一条，底部两个下载按钮分在屏幕两边 */
@media (min-width: 1024px) {
  html, body { background: #fff; }
  .page {
    max-width: 400px;
    margin: 0 auto;
    background: #000;
  }
  .bar {
    left: 50%;
    right: auto;
    width: 400px;
    transform: translateX(-50%);
  }
  .dock {
    height: auto;
    padding: 16px 28px calc(20px + env(safe-area-inset-bottom));
    background: transparent;
  }
  .dock button { flex: 0 0 auto; width: auto; }
  .dock img { width: auto; height: 54px; }
}

/* 安装引导：始终按手机宽度排，电脑上居中成一条 */
.install-guide {
  position: fixed;
  z-index: 40;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #cfecff;
}
.install-guide[hidden] { display: none !important; }
.install-guide-page {
  width: min(100%, 400px);
  margin: 0 auto;
  min-height: 100%;
  background: #cfecff;
  padding: 0 0 0.32em;
  font-size: min(10vw, 40px);
}
.install-guide-content {
  width: 100%;
  background: #d7e7fa;
}
.guide-banner {
  position: relative;
  overflow: hidden;
  min-height: 7.54667em;
  padding: 0.24em 0.24em 0.21333em;
  border-radius: 0 0 0.24em 0.24em;
}
.guide-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.guide-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-topline h2 {
  margin: 0;
  font-size: 0.4em;
  font-weight: 800;
  color: #343435;
  line-height: 1.2;
}
.guide-back {
  border: 0;
  background: transparent;
  color: #343435;
  font-size: 0.8em;
  width: 0.8em;
  height: 0.8em;
  line-height: 0.8;
  padding: 0;
  text-align: left;
}
.guide-topline-placeholder { width: 0.8em; flex: none; }
.guide-tip {
  position: relative;
  z-index: 2;
  margin: 0.16em 0 0;
  padding: 0 0.24em;
  font-size: 0.32em;
  font-weight: 700;
  line-height: 1.5;
  color: #2f2f2f;
}
.guide-banner + .guide-tip { margin-top: -0.2em; }
.guide-redownload {
  display: inline-block;
  margin: 0.18667em 0.24em 0.08em;
  min-width: 2.93333em;
  border: 0.05333em solid #fff;
  border-radius: 0.17333em;
  background: #2e8ffb;
  color: #fff;
  font-size: 0.37333em;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.18667em 0.4em;
  box-shadow: 0 0.05333em 0.05333em rgba(0, 0, 0, 0.25);
}
.guide-step-block { margin: 0.21333em 0.24em 0; }
.guide-step-block h4 {
  margin: 0;
  font-size: 0.29333em;
  color: #2f3640;
  font-weight: 800;
  line-height: 1.45;
}
.guide-shot-card {
  margin-top: 0.13333em;
  border-radius: 0.21333em;
  padding: 0.16em;
  overflow: hidden;
  line-height: 0;
}
.guide-shot-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0.16em;
}
.download-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 60;
  transform: translate(-50%, -50%);
  min-width: 3.46667em;
  max-width: 7.2em;
  padding: 0.32em 0.34667em;
  border-radius: 0.24em;
  background: rgba(17, 19, 23, 0.86);
  color: #fff;
  text-align: center;
  font-size: min(5.33333vw, 21px);
  line-height: 1.3;
  font-weight: 700;
}
.download-toast[hidden] { display: none !important; }
