:root {
  color: #fff8ee;
  background: #130807;
  --red: #d41822;
  --red-dark: #780911;
  --gold: #ffd36a;
  --gold-strong: #ffb72a;
  --ink: #160706;
  --panel: rgba(29, 10, 8, 0.82);
  --line: rgba(255, 211, 106, 0.22);
  --muted: rgba(255, 248, 238, 0.72);
  font-family:
    "Arial", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 106, 0.18), transparent 34rem),
    linear-gradient(180deg, #130807 0%, #240607 52%, #100505 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(19, 8, 7, 0), rgba(19, 8, 7, 0.92) 34rem),
    repeating-linear-gradient(90deg, rgba(255, 211, 106, 0.04) 0 1px, transparent 1px 42px);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.48);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) 18px 28px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 4, 4, 0.18) 0%, rgba(8, 4, 4, 0.34) 30%, rgba(19, 8, 7, 0.86) 76%),
    radial-gradient(circle at 50% 42%, rgba(212, 24, 34, 0.16), transparent 18rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.42));
}

.hero::after {
  position: absolute;
  inset: auto -20% -10% -20%;
  z-index: -1;
  height: 42%;
  content: "";
  background: radial-gradient(ellipse at center, rgba(212, 24, 34, 0.36), transparent 64%);
  filter: blur(18px);
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  height: 38px;
}

.topline span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 211, 106, 0.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(19, 8, 7, 0.48);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content {
  align-self: end;
  padding-top: 22svh;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  display: grid;
  gap: 2px;
  margin: 12px 0 12px;
  color: #fff;
  max-width: 100%;
  font-size: clamp(36px, 10.8vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-shadow:
    0 4px 0 rgba(92, 6, 10, 0.72),
    0 0 28px rgba(255, 35, 45, 0.36);
}

h1 span {
  display: block;
  max-width: 100%;
}

.prize-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 8px;
  margin: 16px 0;
  padding: 14px 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 106, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 211, 106, 0.18), rgba(212, 24, 34, 0.2)),
    rgba(18, 5, 5, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.38);
}

.prize-card::before {
  position: absolute;
  inset: -60% auto auto -20%;
  width: 68%;
  height: 180%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.prize-card span {
  grid-column: 1 / 3;
  color: #fff1c2;
  font-size: 15px;
  font-weight: 900;
}

.prize-card strong {
  min-width: 0;
  color: var(--gold);
  font-size: clamp(39px, 12vw, 64px);
  line-height: 0.92;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(255, 183, 42, 0.4);
}

.prize-card em {
  margin-bottom: 7px;
  color: #fff;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.hero-copy {
  margin: 0 0 18px;
  color: rgba(255, 248, 238, 0.88);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 700;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 10px;
}

.primary-action,
.ghost-action,
.submit-button,
.sticky-cta a,
.sticky-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  font-weight: 950;
  cursor: pointer;
}

.primary-action,
.submit-button,
.sticky-cta a {
  color: #1a0705;
  background: linear-gradient(135deg, #fff2b0, var(--gold-strong) 48%, #ff6b35);
  box-shadow: 0 16px 34px rgba(255, 101, 41, 0.32);
}

.ghost-action,
.sticky-cta button {
  color: #fff8ee;
  border: 1px solid rgba(255, 211, 106, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.quick-info,
.section-block,
.apply-card {
  margin: 14px 14px 0;
}

.quick-info {
  display: grid;
  gap: 10px;
}

.quick-info article,
.section-block,
.apply-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 211, 106, 0.08), rgba(212, 24, 34, 0.08)),
    var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.quick-info article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 12px;
  min-height: 96px;
  padding: 16px;
}

.quick-info article span {
  grid-row: 1 / 3;
  color: var(--gold);
  font-size: 22px;
  font-weight: 1000;
}

.quick-info strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.quick-info p,
.section-block p,
.form-note,
.wechat-dialog p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

.section-block,
.apply-card {
  padding: 20px 18px;
}

.section-block h2,
.apply-card h2,
.wechat-dialog h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: 27px;
  line-height: 1.12;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tag-grid span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 211, 106, 0.18);
  border-radius: 12px;
  color: #ffe7a4;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 850;
}

.flow-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 211, 106, 0.14);
}

.flow-list li:last-child {
  border-bottom: 0;
}

.flow-list span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.flow-list strong {
  color: #fff8ee;
  font-size: 15px;
}

.apply-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.apply-form label {
  display: grid;
  gap: 7px;
  color: #ffe7a4;
  font-size: 14px;
  font-weight: 850;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 211, 106, 0.22);
  border-radius: 14px;
  padding: 0 14px;
  color: #fff8ee;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.apply-form textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: rgba(255, 248, 238, 0.42);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: rgba(255, 211, 106, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 211, 106, 0.12);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
  font-size: 16px;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: 520px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(19, 8, 7, 0), rgba(19, 8, 7, 0.94) 28%);
}

.sticky-cta a,
.sticky-cta button {
  min-height: 48px;
  padding: 0 12px;
}

.sticky-cta button {
  display: none;
}

.wechat-dialog {
  width: min(calc(100% - 30px), 440px);
  border: 1px solid rgba(255, 211, 106, 0.36);
  border-radius: 24px;
  padding: 24px 18px 18px;
  color: #fff8ee;
  background:
    linear-gradient(145deg, rgba(212, 24, 34, 0.18), rgba(255, 211, 106, 0.12)),
    #1c0807;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.62);
}

.wechat-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  cursor: pointer;
}

.wechat-code {
  margin: 16px 0 12px;
  padding: 16px;
  border: 1px dashed rgba(255, 211, 106, 0.54);
  border-radius: 16px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  font-weight: 1000;
  text-align: center;
  letter-spacing: 0.04em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 30;
  transform: translate(-50%, 16px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #170706;
  background: var(--gold);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: 160ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 211, 106, 0.16), transparent 44rem),
      linear-gradient(90deg, #090303, #2b0809 50%, #090303);
  }

  .page-shell {
    min-height: 100vh;
  }
}

@media (max-height: 720px) {
  .hero {
    min-height: 720px;
  }
}
