:root {
  --bg: #050505;
  --gold-1: #fff2b0;
  --gold-2: #f4bd4e;
  --gold-3: #c98317;
  --text: #111;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: #050505;
  position: relative;
  padding-bottom: calc(118px + var(--safe-bottom));
  box-shadow: 0 0 42px rgba(0,0,0,.45);
}

.preview-wrap {
  position: relative;
  width: 100%;
  background: #050505;
}

.landing-preview {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* 让预览图自身最底部的金色按钮也可以点击 */
.image-cta-hotspot {
  position: absolute;
  left: 3.2%;
  right: 3.2%;
  bottom: 1.5%;
  height: 7.7%;
  z-index: 3;
  border-radius: 22px;
  text-indent: -9999px;
  overflow: hidden;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(640px, 100%);
  z-index: 9999;
  padding: 8px 12px calc(7px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(4,4,4,.99) 68%, rgba(4,4,4,.82));
  border-top: 1px solid rgba(244,189,78,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 61px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,247,205,.95);
  background: linear-gradient(180deg, #ffeaa3 0%, #f7c55f 48%, #d99627 100%);
  color: #12100a;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(17px, 4.5vw, 22px);
  line-height: 1.08;
  text-align: center;
  box-shadow:
    0 0 12px rgba(255,211,108,.86),
    0 0 30px rgba(236,167,42,.48),
    inset 0 1px 0 rgba(255,255,255,.75);
  overflow: hidden;
  animation: ctaJump 1.05s ease-in-out infinite;
  will-change: transform;
}

.cta-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70%;
  left: -35%;
  width: 24%;
  height: 240%;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
  filter: blur(1px);
  animation: shine 1.55s linear infinite;
}

.cta-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.cta-small {
  margin-top: 5px;
  color: #f8d371;
  text-align: center;
  font-size: clamp(13px, 3.3vw, 16px);
  font-weight: 800;
  letter-spacing: .1px;
  text-shadow: 0 0 10px rgba(231,176,51,.35);
}

@keyframes ctaJump {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-5px) scale(1.012); }
  60% { transform: translateY(0) scale(.997); }
}

@keyframes shine {
  0% { left: -35%; opacity: 0; }
  12% { opacity: .9; }
  58% { opacity: .7; }
  100% { left: 122%; opacity: 0; }
}

@media (min-width: 641px) {
  body { padding: 12px 0 0; }
  .page-shell { border-radius: 16px 16px 0 0; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-button, .cta-button::before { animation: none; }
}
