/* 一屏无滚动 · 图片等比不变形 */
:root {
  --bg: #050505;
  --panel: rgba(10, 10, 10, 0.9);
  --cream: #f4f1ea;
  --ink: #f8f5ef;
  --muted: rgba(248, 245, 239, 0.68);
  --dark: #16140f;
  --dark-muted: #6a655c;
  --gold: #d4a84b;
  --gold-hi: #f2c96a;
  --gold-lo: #b4842c;
  --grad: linear-gradient(135deg, #f2c96a 0%, #d4a84b 48%, #b4842c 100%);
  --line: rgba(212, 168, 75, 0.38);
  --font-d: "Bebas Neue", Impact, sans-serif;
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 100vw;
  --vh: 100dvh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: var(--vh);
  overflow: hidden;
  background: #0a0a0a;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  width: min(100%, var(--max));
  height: var(--vh);
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

/* 每屏严格一屏 */
.view {
  display: none;
  position: absolute;
  inset: 0;
  height: var(--vh);
  width: 100%;
  overflow: hidden;
  animation: up 0.35s var(--ease) both;
}

.view.is-active:not([hidden]) {
  display: block;
}

.screen {
  height: 100%;
  max-height: var(--vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--grad);
  color: #1a1408;
  box-shadow: 0 8px 22px rgba(212, 168, 75, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-line {
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 40px;
}

.btn-line.is-selected {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
  background: rgba(212, 168, 75, 0.12);
}

.stack {
  display: grid;
  gap: 0.55rem;
}

.stack-tight {
  gap: 0.4rem;
}

/* ===== Landing：上图 + 文案 + 底部福利，同一屏 ===== */
.landing {
  background: #050505;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0 0 0.55rem;
  background:
    radial-gradient(ellipse 90% 45% at 50% 8%, rgba(212, 168, 75, 0.18), transparent 58%),
    #050505;
}

.hero__fx {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 6%, rgba(40, 90, 55, 0.28), transparent 34%),
    radial-gradient(circle at 90% 4%, rgba(40, 90, 55, 0.24), transparent 30%);
  animation: glow 5.5s ease-in-out infinite;
  pointer-events: none;
}

.hero__brand {
  margin: 0;
  text-align: center;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero__brand span {
  color: var(--gold-hi);
}

.hero__product {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 0 auto;
  line-height: 0;
}

/* 2.jpg 占满横屏，等比不变形 */
.hero__product img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  aspect-ratio: 1702 / 1276;
}

.hero__copy {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  margin-top: auto;
  padding: 0.35rem 1rem 0;
}

.hero__title {
  margin: 0;
  font-family: var(--font-d);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.hero__title-top {
  display: block;
  font-size: clamp(1.65rem, 7.5vw, 2.1rem);
  color: #fff;
}

.hero__title-gold {
  display: block;
  font-size: clamp(1.95rem, 9vw, 2.5rem);
  background: linear-gradient(180deg, #fff4d4, #f2c96a 45%, #c9963a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.pill {
  width: fit-content;
  margin: 0;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 168, 75, 0.12);
  color: var(--gold-hi);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.trust {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  color: rgba(248, 245, 239, 0.72);
  font-size: 0.65rem;
  font-weight: 700;
}

.trust-row {
  margin: 0.35rem 0 0.55rem;
}

/* 底部福利区（同屏） */
.benefits {
  flex: 0 0 auto;
  padding: 0.75rem 0.85rem 0.85rem;
  color: #16140f;
  background:
    radial-gradient(ellipse at 0% 40%, rgba(60, 110, 70, 0.1), transparent 40%),
    #f3efe6;
}

.benefits__intro {
  text-align: center;
  margin-bottom: 0.65rem;
}

.benefits__intro h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-d);
  font-size: clamp(1.15rem, 5vw, 1.4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #141210;
}

.benefits__intro p {
  margin: 0 auto;
  max-width: 40ch;
  color: #5f5a52;
  font-size: 0.7rem;
  line-height: 1.4;
}

.benefits__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.benefits__list article {
  text-align: center;
  padding: 0.35rem 0.2rem;
}

.ico {
  width: 1.85rem;
  height: 1.85rem;
  margin: 0 auto 0.25rem;
  display: grid;
  place-items: center;
  color: #c9963a;
}

.ico svg {
  width: 1.35rem;
  height: 1.35rem;
}

.benefits__list h3 {
  margin: 0 0 0.15rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: #8a6a28;
}

.benefits__list p {
  margin: 0;
  color: #5f5a52;
  font-size: 0.58rem;
  line-height: 1.3;
}

/* ===== Quiz ===== */
.view-quiz.is-active:not([hidden]) {
  display: block;
}

.quiz-shell {
  position: relative;
  padding: 0.75rem;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 半透明遮罩，保证文字可读且背景图可见 */
.quiz-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.quiz-bg-1 {
  background-image: url("../img/quiz/1.png");
}

.quiz-bg-2 {
  background-image: url("../img/quiz/2.png");
}

.quiz-bg-3 {
  background-image: url("../img/quiz/3.png");
}

.quiz-bg-4 {
  background-image: url("../img/quiz/4.png");
}

.quiz-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0.95rem 0.9rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(212, 168, 75, 0.22);
  backdrop-filter: blur(10px);
}

.step {
  margin: 0 0 0.35rem;
  text-align: center;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.bar {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.bar i {
  width: 1.7rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.bar i.on {
  background: var(--gold);
}

.quiz-card h2 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-family: var(--font-d);
  font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.muted {
  margin: 0 0 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.muted.dark {
  color: var(--dark-muted);
}

.muted.tight {
  margin-bottom: 0.45rem;
}

.ok-box {
  animation: up 0.3s var(--ease);
}

.ok-title {
  margin: 0 0 0.25rem;
  text-align: center;
  color: var(--gold-hi);
  font-weight: 800;
  font-size: 0.9rem;
}

.checks {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
}

.checks label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 168, 75, 0.12);
}

.checks input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.err {
  margin: 0.4rem 0 0;
  text-align: center;
  color: #f0a0a0;
  font-size: 0.72rem;
}

/* ===== Almost ===== */
.view-dark.is-active:not([hidden]) {
  display: block;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(212, 168, 75, 0.12), transparent 50%),
    #080808;
}

.almost {
  padding: 0.75rem 1rem 0.9rem;
  text-align: center;
  justify-content: center;
  gap: 0;
}

/* 横图 1702x1276 等比 contain */
.almost__img-wrap {
  flex: 0 1 34%;
  min-height: 0;
  max-height: 34vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
}

.almost__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: 1702 / 1276;
  border-radius: 10px;
}

.eyebrow {
  margin: 0 0 0.15rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.almost h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-d);
  font-size: clamp(1.55rem, 7vw, 2rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.gold-text {
  margin: 0 0 0.25rem;
  color: var(--gold-hi);
  font-weight: 800;
  font-size: 0.88rem;
}

/* ===== Form ===== */
.view-form.is-active:not([hidden]) {
  display: block;
  background: #0b0b0b;
  padding: 0.55rem 0.65rem;
}

.form-box {
  background: var(--cream);
  color: var(--dark);
  border-radius: 14px;
  padding: 0.7rem 0.75rem 0.8rem;
  justify-content: flex-start;
  gap: 0.35rem;
}

.form-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.form-thumb {
  width: 64px;
  height: auto;
  aspect-ratio: 1702 / 1276;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #111;
}

.form-box h2 {
  margin: 0 0 0.15rem;
  font-family: var(--font-d);
  font-size: clamp(1.15rem, 5vw, 1.4rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: left;
}

.form-box .muted {
  text-align: left;
  margin: 0;
}

#shipping-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.row3 {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr;
  gap: 0.4rem;
}

.field {
  display: block;
  margin-bottom: 0.4rem;
}

.field span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a655c;
}

.field input,
.field select {
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #ddd5c7;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  outline: none;
  font-size: 0.82rem;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.2);
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: #c45c5c;
}

.note {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.65rem;
  color: #6a655c;
}

/* ===== Success（对齐设计稿 + 完整文案） ===== */
.view-success.is-active:not([hidden]) {
  display: block;
  background: #050505;
}

.success-shell {
  position: relative;
  justify-content: flex-end;
  padding: 0;
}

.success-bg {
  position: absolute;
  inset: 0;
  background:
    url("../img/success-bg.png") center top / cover no-repeat;
}

.success-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0.25) 0%,
    rgba(5, 8, 16, 0.55) 35%,
    rgba(5, 8, 16, 0.88) 62%,
    rgba(5, 8, 16, 0.96) 100%
  );
}

.success-panel {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1rem 0.75rem;
  text-align: left;
}

.success-head {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.success-pop {
  font-size: 1.35rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.success-panel h2 {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 8vw, 2.2rem);
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.success-lead {
  margin: 0 3rem 0.2rem;
  color: var(--gold-hi);
  font-weight: 700;
  font-size: 0.92rem;
}

.success-sub {
  margin: 0 3rem 0.85rem;
  color: rgba(242, 201, 106, 0.85);
  font-size: 0.8rem;
  line-height: 1.4;
}

.success-next {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.timeline {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 168, 75, 0.28);
  backdrop-filter: blur(6px);
}

.timeline__ico {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--gold-hi);
  margin-top: 0.1rem;
}

.timeline__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.timeline__title {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.timeline__title span {
  color: var(--gold-hi);
  font-family: var(--font-d);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}

.timeline p:last-child {
  margin: 0;
  color: rgba(248, 245, 239, 0.78);
  font-size: 0.72rem;
  line-height: 1.35;
}

.thanks {
  margin: 0;
  text-align: center;
  color: var(--gold-hi);
  font-size: 0.78rem;
  line-height: 1.4;
}

.success-foot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.7rem 1rem 0.85rem;
  border-top: 1px solid rgba(212, 168, 75, 0.35);
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.success-foot__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.success-foot__mark {
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1.4;
}

.success-foot__brand strong {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
}

.success-foot__brand p {
  margin: 0;
  color: rgba(248, 245, 239, 0.55);
  font-size: 0.65rem;
  line-height: 1.35;
}

.success-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.success-foot__nav a {
  font-size: 0.68rem;
  color: rgba(248, 245, 239, 0.7);
}

.success-foot__nav a:hover {
  color: var(--gold-hi);
}

@media (min-width: 900px) {
  .success-shell {
    flex-direction: row;
    align-items: stretch;
  }

  .success-bg {
    left: 42%;
    right: 0;
    background-position: center center;
  }

  .success-bg::after {
    background: linear-gradient(
      90deg,
      rgba(5, 8, 16, 1) 0%,
      rgba(5, 8, 16, 0.75) 28%,
      rgba(5, 8, 16, 0.15) 70%,
      rgba(5, 8, 16, 0.05) 100%
    );
  }

  .success-panel {
    width: 46%;
    max-width: 520px;
    justify-content: center;
    padding: 2rem 1.75rem 1.25rem;
    background: linear-gradient(90deg, #050810 70%, rgba(5, 8, 16, 0));
  }

  .success-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
  }

  .timeline {
    gap: 0.65rem;
  }
}

/* 矮屏略压缩，但仍保持上图下文与间距 */
@media (max-height: 700px) {
  .hero {
    padding: 0.35rem 0.85rem 0.4rem;
    gap: 0.3rem;
  }

  .hero__copy {
    gap: 0.35rem;
  }

  .hero__product img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hero__title-top {
    font-size: 1.45rem;
  }

  .hero__title-gold {
    font-size: 1.75rem;
  }

  .hero__sub {
    font-size: 0.72rem;
  }

  .benefits {
    padding: 0.55rem 0.7rem 0.65rem;
  }

  .benefits__intro p {
    display: none;
  }

  .btn {
    min-height: 40px;
    font-size: 0.75rem;
  }

  .quiz-card h2 {
    font-size: 1.15rem;
  }

  .checks label {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
  }

  .field input,
  .field select {
    min-height: 34px;
  }
}

@media (min-width: 768px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app {
    height: min(844px, 100dvh);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .view,
  .screen {
    height: 100%;
    max-height: 100%;
  }
}
