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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #fff;
  color: #222;
  overflow-x: hidden;
}

.phone-shell { width: 100%; }
.phone-frame { position: relative; width: 100%; }
.phone-screen { position: relative; min-height: 100vh; background: #fff; overflow-x: hidden; }
.page-scroll { min-height: 100vh; }
.phone-side-button, .phone-island, .phone-home-indicator { display: none; }

/* 问卷弹层 */
.qa-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #1f0d16 0%, #3d1a2c 42%, #1a0a12 100%);
}

.qa-layer-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.qa-layer-bg-scroll {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: bgWaterfall 20s linear infinite;
}

.qa-layer-bg-scroll img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@keyframes bgWaterfall {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.qa-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

.qa-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  margin: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
  animation: slideUp 0.4s ease-out;
  z-index: 2;
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.qa-card.switching {
  animation: cardSwitch 0.25s ease-out;
}

@keyframes cardSwitch {
  0% { opacity: 0.3; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

.progress-text {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff4081, #ff6b9d);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.q-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  text-align: center;
}

.q-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: center;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  padding: 16px 24px;
  background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  user-select: none;
}

.option:active {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
  border-color: #667eea;
  background: linear-gradient(135deg, #e8ecf1, #d4dae6);
}

.img-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.img-option {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 0;
  background: none;
  user-select: none;
}

.img-option:active {
  transform: scale(1.05);
  border-color: #ff4081;
  box-shadow: 0 8px 25px rgba(255, 64, 129, 0.3);
}

.img-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.countdown-bar {
  height: 8px;
  background: #ffd6d6;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
}

.countdown-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff3b3b 0%, #ff4081 55%, #ff6b9d 100%);
  transition: width 2s linear;
  border-radius: 4px;
}

.transition-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ff4081;
  letter-spacing: 1px;
  text-align: center;
}

.transition-sub {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  text-align: center;
}

/* 失败弹窗 */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

.popup-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  max-width: 320px;
  width: 85%;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.popup-box h2 {
  color: #f44;
  font-size: 20px;
  margin-bottom: 12px;
}

.popup-box p {
  color: #666;
  font-size: 15px;
  margin-bottom: 24px;
}

.popup-box button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.popup-box button:active {
  transform: scale(1.03);
}

/* 首页样式 */
.hero {
  background: linear-gradient(165deg, #ff5a8a 0%, #e040fb 42%, #9c27b0 100%);
  padding: 44px 20px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.hero img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  display: inline-block;
  object-fit: cover;
  background: #fff;
}

.hero h1 {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 28px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.download-btn {
  display: inline-block;
  padding: 14px 64px;
  background: #fff;
  color: #ff4081;
  text-decoration: none;
  border: none;
  border-radius: 28px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  animation: btnShake 2s ease-in-out infinite;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

@keyframes btnShake {
  0%, 100% { transform: translate(0) translateY(0); }
  10% { transform: translate(-3px) translateY(1px); }
  20% { transform: translate(3px) translateY(-1px); }
  30% { transform: translate(-2px) translateY(2px); }
  40% { transform: translate(2px) translateY(-2px); }
  50% { transform: translate(-1px) translateY(1px); }
  60% { transform: translate(1px) translateY(-1px); }
  70% { transform: translate(0) translateY(0); }
}

.download-btn.touching {
  animation-play-state: paused;
  transform: scale(0.97);
}

.section {
  padding: 32px 16px;
  background: #fff;
}

.section h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 20px;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f5f5f5;
}

.feature svg {
  width: 36px;
  height: 36px;
  fill: #ff4081;
  margin-bottom: 8px;
}

.feature h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.feature p {
  font-size: 11px;
  color: #ff4081;
  line-height: 1.45;
}

.screenshots-wrapper {
  position: relative;
  overflow: hidden;
}

.screenshots {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.screenshots img {
  width: 260px;
  height: 480px;
  border-radius: 20px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: block;
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: linear-gradient(135deg, #fff9f5, #fff);
  padding: 18px 20px;
  border-radius: 14px;
  border-left: 4px solid #ff4081;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.review-item b {
  display: block;
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 8px;
  font-weight: 700;
}

.review-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8f9fb;
  border-radius: 10px;
  font-size: 14px;
}

.info-list li span:first-child {
  color: #888;
  font-weight: 500;
}

.info-list li span:last-child {
  color: #1a1a2e;
  font-weight: 600;
}

.footer {
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
  color: #aaa;
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* 桌面端适配 */
@media (min-width: 768px) {
  body {
    background: radial-gradient(circle at 16% 18%, rgba(255,190,221,0.95), transparent 24%),
                radial-gradient(circle at 84% 16%, rgba(191,214,255,0.88), transparent 26%),
                radial-gradient(circle at 52% 84%, rgba(214,194,255,0.72), transparent 28%),
                linear-gradient(145deg, #fffafc 0%, #f7f7ff 42%, #eef4ff 100%);
  }

  .phone-shell {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .phone-frame {
    width: min(462px, calc(100vw - 40px));
    height: min(940px, calc(100vh - 40px));
    padding: 14px;
    border-radius: 56px;
    background: linear-gradient(155deg, #fff 0%, #f4f6f9 22%, #dfe4eb 52%, #fff 100%);
    box-shadow: 0 30px 90px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.88);
  }

  .phone-screen {
    position: absolute;
    inset: 14px;
    min-height: auto;
    height: auto;
    border-radius: 42px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(10,12,16,0.08);
  }

  .page-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .phone-side-button {
    display: block;
    position: absolute;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9fafb 0%, #cfd5de 28%, #8d95a1 100%);
    z-index: 0;
  }

  .phone-side-button--mute { left: -2px; top: 136px; height: 28px; }
  .phone-side-button--volume-up { left: -2px; top: 188px; height: 66px; }
  .phone-side-button--volume-down { left: -2px; top: 268px; height: 66px; }
  .phone-side-button--power { right: -2px; top: 208px; height: 96px; }

  .phone-island {
    display: block;
    position: absolute;
    top: 24px;
    left: 50%;
    width: 132px;
    height: 36px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #0b0b0d 0%, #000 100%);
    z-index: 3;
  }

  .phone-home-indicator {
    display: block;
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 132px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(18,20,24,0.58);
    z-index: 3;
  }
}