:root {
  --red: #d90000;
  --deep-red: #8d0004;
  --ink: #1d1d1f;
  --muted: #7b7b7b;
  --line: #cccccc;
  --paper: #ffffff;
  --gold: #ffefe0;
  --shadow: 0 24px 80px rgba(36, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(217, 0, 0, 0.12), transparent 34rem),
    linear-gradient(135deg, #f4f4f4, #ffffff 48%, #f1eeee);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  height: 294px;
  overflow: hidden;
  padding: 13px 24px 10px;
  color: #fff7eb;
  background:
    linear-gradient(49deg, rgba(255, 37, 65, 0.9) 0 1px, transparent 2px 88px),
    radial-gradient(circle at 72% 16%, rgba(255, 105, 120, 0.28), transparent 34%),
    linear-gradient(130deg, #a80005 0%, #720004 48%, #2d0002 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: -120px -140px auto auto;
  width: 290px;
  height: 290px;
  rotate: 42deg;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 70%);
}

.hero::after {
  top: 31px;
  left: 25px;
  width: 116px;
  height: 2px;
  background: #fff;
  box-shadow: 0 216px 0 rgba(255, 255, 255, 0.45), 182px 175px 0 rgba(255, 255, 255, 0.28);
}

.hero__slashes {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 16px;
  height: 136px;
  opacity: 0.38;
  background: repeating-linear-gradient(180deg, #ff2330 0 11px, transparent 11px 20px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hero__brand {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  text-align: right;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 4px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  font-size: 27px;
  line-height: 1.1;
  color: var(--gold);
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(51px, 14.2vw, 57px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 3px 0 rgba(70, 0, 0, 0.28);
}

.hero__lead {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 23px;
  line-height: 1.24;
  font-weight: 700;
}

.promise {
  display: grid;
  min-height: 49px;
  place-items: center;
  padding: 4px 12px 0;
  background: #fff;
}

.promise p {
  margin: 0;
  color: #262626;
  font-size: 25px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
}

.form-card {
  padding: 12px 14px 24px;
  background: #fff;
}

.form-card h2 {
  margin: 0 0 16px;
  color: var(--red);
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.field {
  margin-top: 10px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #3d3d3d;
  font-size: 16px;
  line-height: 1.5;
}

.field span {
  color: #ee0808;
}

.field input {
  width: min(340px, calc(100% - 20px));
  min-height: 45px;
  margin-left: 10px;
  padding: 8px 10px 11px;
  border: 0;
  border-bottom: 1.3px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #000;
  font-size: 14px;
}

.field input::placeholder {
  color: #bababa;
}

.field input:focus {
  border-bottom-color: #0099ff;
}

.consent {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 6px;
  margin: 11px 0 22px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--red);
  cursor: pointer;
}

.link-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  cursor: pointer;
}

.submit-button {
  display: block;
  width: 300px;
  max-width: 100%;
  min-height: 50px;
  margin: 0 auto;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  cursor: pointer;
  animation: pulse 1s ease-in-out infinite;
  box-shadow: 0 10px 18px rgba(217, 0, 0, 0.18);
}

.submit-button:focus-visible,
.link-button:focus-visible,
.modal__close:focus-visible,
.modal__agree:focus-visible {
  outline: 3px solid rgba(0, 153, 255, 0.42);
  outline-offset: 3px;
}

.product-detail {
  padding: 0;
  background: #fff;
  font-size: 0;
}

.product-detail img {
  display: block;
  width: 100%;
  height: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}

.modal__panel {
  position: relative;
  width: min(100%, 360px);
  max-height: min(78vh, 620px);
  overflow: auto;
  padding: 22px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
}

.modal__panel h2 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 20px;
}

.modal__panel p {
  margin: 10px 0;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal__agree {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  width: max-content;
  max-width: min(330px, calc(100vw - 32px));
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  translate: -50% 18px;
  transition: opacity 180ms ease, translate 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

@keyframes pulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 10px 18px rgba(217, 0, 0, 0.18);
  }

  50% {
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(217, 0, 0, 0.34);
  }
}

@media (max-width: 360px) {
  .form-card {
    padding-inline: 22px;
  }

  .hero {
    padding-inline: 20px;
  }

  .promise p {
    font-size: 22px;
  }
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .page-shell {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
