/* =========================================================
   FASTJEET LANDING PAGE THEME
   Red + Gold Theme
   ========================================================= */

/* ===================== Design Tokens ===================== */
:root {
  /* Brand */
  --accent: #9c0201;
  --accent-dark: #650000;
  --accent-deep: #3f0f03;
  --accent-soft: #fff1ed;

  --gold: #f6c344;
  --gold-light: #ffe58a;
  --gold-dark: #9b5a00;
  --gold-soft: #fff7d6;

  /* Text */
  --text: #24110d;
  --text-strong: #170704;
  --muted: #7c6964;
  --white: #ffffff;

  /* Surfaces */
  --page-bg: #f7f2ef;
  --surface: #ffffff;
  --surface-soft: #fffaf7;
  --surface-red: #fff2ed;

  /* Borders */
  --border: #eadbd5;
  --border-strong: #d7b8ac;
  --border-gold: rgba(246, 195, 68, .55);

  /* Radius */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow:
    0 6px 18px rgba(63, 15, 3, .08);

  --shadow-md:
    0 10px 28px rgba(63, 15, 3, .12);

  --shadow-red:
    0 8px 22px rgba(156, 2, 1, .24);

  --shadow-gold:
    0 5px 16px rgba(246, 195, 68, .28);

  /* Layout */
  --phone-width: 375px;
  --page-pad: 14px;

  /* Sticky CTA height reserve */
  --cta-reserve: 112px;

  /* Header */
  --header-height: 58px;
}

/* ===================== Base Reset ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--page-bg);
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--page-bg);
}

body {
  overflow-x: clip;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Noto Sans",
    Arial,
    sans-serif;

  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

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

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

a {
  color: inherit;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

/* ===================== Container ===================== */
.container {
  width: 100%;
  margin: 0 auto;

  min-height: 100vh;
  min-height: 100dvh;

  position: relative;
  background:
    radial-gradient(
      circle at top right,
      rgba(246, 195, 68, .08),
      transparent 240px
    ),
    linear-gradient(
      180deg,
      #fff 0,
      var(--surface-soft) 240px,
      var(--page-bg) 100%
    );

  overflow-x: clip;

  padding-bottom:
    calc(var(--cta-reserve) + env(safe-area-inset-bottom, 0));
}

@media (min-width: 768px) {
  .container {
    width: var(--phone-width);
    box-shadow:
      0 0 0 1px rgba(63, 15, 3, .05),
      0 0 30px rgba(63, 15, 3, .16);
  }
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  min-height:
    calc(var(--header-height) + env(safe-area-inset-top, 0));

  padding-top: env(safe-area-inset-top, 0);

  display: flex;
  align-items: center;
  justify-content: space-between;

  background:
    linear-gradient(
      135deg,
      rgba(63, 15, 3, .98),
      rgba(156, 2, 1, .98)
    );

  border-bottom: 1px solid rgba(246, 195, 68, .5);

  box-shadow:
    0 4px 18px rgba(63, 15, 3, .24);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .brand {
  min-width: 0;
  height: var(--header-height);
  padding: 0 var(--page-pad);

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--white);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.2px;

  text-shadow:
    0 2px 4px rgba(0, 0, 0, .3);
}

.logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;

  flex: 0 0 auto;

  background:
    linear-gradient(
      145deg,
      var(--gold-light),
      var(--gold) 48%,
      var(--gold-dark)
    );

  border: 1px solid rgba(255, 255, 255, .35);

  box-shadow:
    0 0 0 2px rgba(246, 195, 68, .16),
    0 4px 12px rgba(0, 0, 0, .28);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===================== Language Switch ===================== */
.lang-switch {
  margin-right: var(--page-pad);
  padding: 4px;

  display: inline-flex;
  align-items: center;
  gap: 4px;

  flex: 0 0 auto;

  border: 1px solid rgba(246, 195, 68, .45);
  border-radius: 999px;

  background: rgba(255, 255, 255, .12);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-btn {
  border: 0;
  background: transparent;

  padding: 7px 10px;
  border-radius: 999px;

  color: rgba(255, 255, 255, .88);

  font-weight: 900;
  font-size: 12px;

  cursor: pointer;

  transition:
    transform .15s ease,
    color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.lang-btn[aria-pressed="true"] {
  color: var(--accent-deep);

  background:
    linear-gradient(
      145deg,
      var(--gold-light),
      var(--gold)
    );

  box-shadow:
    0 5px 14px rgba(246, 195, 68, .3);
}

/* =========================================================
   TOP CAROUSEL
   Supports custom carousel and common Swiper structure
   ========================================================= */

/* Carousel outer section */
.hero,
.hero-carousel,
.banner-carousel {
  position: relative;
  padding: 10px var(--page-pad) 4px;
  overflow: hidden;
}

/* Main carousel shell */
.carousel,
.hero-slider,
.banner-slider,
.swiper {
  width: 100%;
  position: relative;
  overflow: hidden;

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      var(--accent-deep),
      var(--accent)
    );

  border: 1px solid rgba(246, 195, 68, .45);

  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(255, 255, 255, .35) inset;
}

/* Custom track */
.carousel-track,
.hero-track,
.banner-track,
.swiper-wrapper {
  display: flex;
  width: 100%;

  transition:
    transform .45s cubic-bezier(.22, .61, .36, 1);

  will-change: transform;
}

/* Each slide */
.carousel-slide,
.hero-slide,
.banner-slide,
.swiper-slide {
  position: relative;

  min-width: 100%;
  width: 100%;
  flex: 0 0 100%;

  overflow: hidden;
  background: var(--accent-deep);
}

/* Recommended banner ratio */
.carousel-slide,
.hero-slide,
.banner-slide {
  aspect-ratio: 2 / 1;
}

/* Carousel image */
.carousel-slide img,
.hero-slide img,
.banner-slide img,
.swiper-slide img,
.hero img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;
}

/* Optional dark overlay for readable text */
.carousel-slide::after,
.hero-slide::after,
.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(40, 5, 2, .28),
      transparent 48%,
      rgba(40, 5, 2, .08)
    );
}

/* Optional carousel text */
.carousel-content,
.hero-content,
.banner-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 2;

  color: #fff;
}

.carousel-title,
.hero-title,
.banner-title {
  margin: 0 0 4px;

  font-size: 22px;
  line-height: 1.1;
  font-weight: 950;

  color: var(--gold-light);

  text-shadow:
    0 2px 7px rgba(0, 0, 0, .6);
}

.carousel-description,
.hero-description,
.banner-description {
  margin: 0;

  font-size: 13px;
  font-weight: 700;

  color: rgba(255, 255, 255, .94);

  text-shadow:
    0 1px 4px rgba(0, 0, 0, .6);
}

/* Carousel navigation arrows */
.carousel-prev,
.carousel-next,
.hero-prev,
.hero-next,
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 5;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(246, 195, 68, .55);
  border-radius: 50%;

  color: var(--gold-light);
  background: rgba(63, 15, 3, .72);

  box-shadow:
    0 4px 14px rgba(0, 0, 0, .24);

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    transform .15s ease,
    background .15s ease,
    opacity .15s ease;
}

.carousel-prev,
.hero-prev,
.swiper-button-prev {
  left: 8px;
}

.carousel-next,
.hero-next,
.swiper-button-next {
  right: 8px;
}

.carousel-prev:hover,
.carousel-next:hover,
.hero-prev:hover,
.hero-next:hover,
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(156, 2, 1, .92);
}

.carousel-prev:active,
.carousel-next:active,
.hero-prev:active,
.hero-next:active {
  transform: translateY(-50%) scale(.92);
}

/* Remove default Swiper arrow characters when custom icons are used */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 15px;
  font-weight: 900;
}

/* Carousel dots */
.carousel-dots,
.hero-dots,
.banner-dots,
.swiper-pagination {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 6;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transform: translateX(-50%);
}

.carousel-dot,
.hero-dot,
.banner-dot,
.swiper-pagination-bullet {
  width: 7px;
  height: 7px;

  padding: 0;
  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, .55);
  opacity: 1;

  cursor: pointer;

  transition:
    width .2s ease,
    transform .2s ease,
    background .2s ease;
}

.carousel-dot.is-active,
.carousel-dot.active,
.hero-dot.is-active,
.banner-dot.is-active,
.swiper-pagination-bullet-active {
  width: 22px;
  background:
    linear-gradient(
      90deg,
      var(--gold-light),
      var(--gold)
    );

  box-shadow:
    0 2px 8px rgba(246, 195, 68, .5);
}

/* Hide arrows on very small screens */
@media (max-width: 420px) {
  .carousel-prev,
  .carousel-next,
  .hero-prev,
  .hero-next,
  .swiper-button-prev,
  .swiper-button-next {
    width: 30px;
    height: 30px;
  }
}

/* ===================== Buttons ===================== */
.btn {
  appearance: none;

  min-width: 0;
  height: 48px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  border: 1px solid var(--border);

  font-weight: 900;
  letter-spacing: .15px;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  --pulse: 1;

  transform:
    scale(var(--pulse))
    translateZ(0);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    background .18s ease,
    border-color .18s ease;

  will-change: transform;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.025);
}

.btn:active {
  transform: scale(.97);
}

/* Main Fastjeet button */
.btn-primary {
  color: #fff7d2;

  border-color: var(--gold);

  background:
    linear-gradient(
      180deg,
      #bd160f 0%,
      var(--accent) 52%,
      var(--accent-dark) 100%
    );

  box-shadow:
    0 7px 18px rgba(156, 2, 1, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -2px 0 rgba(63, 15, 3, .4);

  text-shadow:
    0 1px 2px rgba(0, 0, 0, .45);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--gold-light);

  box-shadow:
    0 10px 24px rgba(156, 2, 1, .34),
    0 0 0 3px rgba(246, 195, 68, .14),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* Optional gold secondary button */
.btn-secondary,
.btn-gold {
  color: var(--accent-deep);

  border-color: var(--gold-dark);

  background:
    linear-gradient(
      180deg,
      var(--gold-light),
      var(--gold)
    );

  box-shadow:
    0 7px 18px rgba(246, 195, 68, .28),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* Breathing animation */
@property --pulse {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@keyframes btn-breathe {
  0%,
  100% {
    --pulse: .97;

    box-shadow:
      0 6px 16px rgba(156, 2, 1, .24),
      0 0 0 0 rgba(246, 195, 68, .2);
  }

  50% {
    --pulse: 1.025;

    box-shadow:
      0 10px 24px rgba(156, 2, 1, .34),
      0 0 0 5px rgba(246, 195, 68, .08);
  }
}

.btn.btn-primary {
  animation:
    btn-breathe 1.8s ease-in-out infinite;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus-visible,
.btn.btn-primary:active {
  animation: none;
}

/* ===================== Tutorials ===================== */
.tutorials {
  padding:
    16px
    var(--page-pad)
    18px;
}

.tutorials-title {
  position: relative;

  margin: 0 0 12px;
  padding-left: 12px;

  color: var(--text-strong);

  font-size: 19px;
  font-weight: 950;
  letter-spacing: -.25px;
}

.tutorials-title::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 4px;
  height: 20px;

  border-radius: 99px;

  background:
    linear-gradient(
      180deg,
      var(--gold),
      var(--accent)
    );

  transform: translateY(-50%);
}

.accordion {
  display: grid;
  gap: 10px;
}

.acc-item {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      #fff,
      #fffaf8
    );

  box-shadow: var(--shadow);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.acc-item:hover {
  border-color: var(--border-strong);

  box-shadow:
    0 8px 22px rgba(63, 15, 3, .1);
}

.acc-item:has(.acc-btn[aria-expanded="true"]) {
  border-color: rgba(156, 2, 1, .28);

  box-shadow:
    0 9px 24px rgba(156, 2, 1, .1);
}

.acc-btn {
  width: 100%;
  min-height: 54px;

  padding: 13px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  border: 0;

  color: var(--text-strong);
  background: transparent;

  text-align: left;
  cursor: pointer;

  transition:
    color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.acc-btn:hover {
  color: var(--accent);

  background:
    linear-gradient(
      90deg,
      rgba(156, 2, 1, .035),
      rgba(246, 195, 68, .055)
    );
}

.acc-btn:active {
  transform: scale(.995);
}

.acc-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;

  flex: 1;
  min-width: 0;
}

.acc-title {
  min-width: 0;

  font-weight: 900;
  font-size: 14px;

  overflow: hidden;
  text-overflow: ellipsis;
}

/* Accordion plus icon */
.acc-icon {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border: 1px solid rgba(156, 2, 1, .14);
  border-radius: 9px;

  color: var(--accent);

  background:
    linear-gradient(
      145deg,
      #fff7df,
      var(--gold-soft)
    );

  font-size: 17px;
  font-weight: 950;

  box-shadow:
    0 4px 10px rgba(246, 195, 68, .2);

  transition:
    color .2s ease,
    transform .25s ease,
    background .2s ease;
}

.acc-btn[aria-expanded="true"] .acc-icon {
  color: var(--gold-light);

  background:
    linear-gradient(
      145deg,
      #b8140f,
      var(--accent-dark)
    );

  transform: rotate(45deg);
}

/* Accordion panel */
.acc-panel {
  padding:
    0
    14px
    14px;
}

.acc-panel[hidden] {
  display: none;
}

.acc-hint {
  margin: 4px 0 12px;

  color: var(--muted);

  font-size: 12px;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  margin: 0;
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: #fff;

  box-shadow:
    0 4px 14px rgba(63, 15, 3, .06);
}

.step img {
  width: 100%;
  height: auto;

  display: block;
  cursor: zoom-in;
}

.step-cap {
  padding: 10px 11px 12px;

  color: var(--text);

  font-size: 14px;
  line-height: 1.4;

  background:
    linear-gradient(
      180deg,
      #fff,
      #fff9f5
    );
}

/* ===================== Badges ===================== */
.acc-badge {
  margin-left: auto;

  padding: 4px 8px;

  flex: 0 0 auto;

  border: 1px solid rgba(246, 195, 68, .45);
  border-radius: 999px;

  color: var(--accent-deep);

  background:
    linear-gradient(
      145deg,
      var(--gold-light),
      var(--gold)
    );

  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;

  box-shadow:
    0 4px 10px rgba(246, 195, 68, .25);

  animation:
    badge-pulse 2s ease-in-out infinite;
}

/* Reward badge */
.acc-badge--reward {
  color: #fff7db;

  border-color: rgba(246, 195, 68, .5);

  background:
    linear-gradient(
      145deg,
      #c31c14,
      var(--accent)
    );

  box-shadow:
    0 4px 12px rgba(156, 2, 1, .24);
}

/* Game badge */
.acc-badge--game {
  color: var(--accent-deep);

  background:
    linear-gradient(
      145deg,
      var(--gold-light),
      var(--gold)
    );

  box-shadow:
    0 4px 10px rgba(246, 195, 68, .28);
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(.97);
  }

  50% {
    transform: scale(1.035);
  }
}

/* ===================== Trust ===================== */
.trust {
  padding:
    8px
    var(--page-pad)
    16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-img {
  width: 100%;
  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #fff,
      var(--gold-soft)
    );

  box-shadow: var(--shadow);
}

/* ===================== Footer ===================== */
footer {
  padding:
    18px
    var(--page-pad)
    calc(24px + var(--cta-reserve));

  color: var(--muted);

  font-size: 12px;
  text-align: center;
}

footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===================== Sticky CTA ===================== */
.sticky {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 70;

  width: min(100vw, var(--phone-width));

  padding:
    10px
    var(--page-pad)
    calc(12px + env(safe-area-inset-bottom, 0));

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;

  transform: translateX(-50%);

  border-top: 1px solid rgba(246, 195, 68, .5);

  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 247, .95),
      rgba(255, 255, 255, .98)
    );

  box-shadow:
    0 -10px 28px rgba(63, 15, 3, .13);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky::before {
  content: "";

  position: absolute;
  left: 20%;
  right: 20%;
  top: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}

@media (max-width: 767px) {
  .sticky {
    width: 100vw;
  }
}

/* ===================== Lightbox ===================== */
.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;

  padding: 18px;

  display: grid;
  place-items: center;

  background:
    rgba(25, 4, 2, .9);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.lightbox img {
  max-width: 96vw;
  max-height: 76vh;

  border: 1px solid rgba(246, 195, 68, .5);
  border-radius: 12px;

  background: #fff;

  box-shadow:
    0 22px 50px rgba(0, 0, 0, .48),
    0 0 0 4px rgba(246, 195, 68, .08);
}

.lb-close {
  position: absolute;
  top:
    calc(10px + env(safe-area-inset-top, 0));
  right: 12px;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(246, 195, 68, .7);
  border-radius: 50%;

  color: var(--gold-light);
  background: rgba(156, 2, 1, .68);

  font-size: 20px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, .28);
}

#lbCaption {
  max-width: 90vw;
  margin-top: 10px;

  color: #fff7dc;

  font-size: 14px;
  text-align: center;

  opacity: .95;
}

/* ===================== Utilities ===================== */
.muted {
  padding: 6px 0 12px;

  color: var(--muted);

  font-size: 12px;
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-gold {
  color: var(--gold-dark);
}

.surface-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow);
}

/* ===================== Focus Accessibility ===================== */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(246, 195, 68, .48);
  outline-offset: 2px;
}

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

  .btn.btn-primary,
  .acc-badge {
    animation: none;
  }
}
/* =========================================================
   Carousel Interaction
   ========================================================= */

.carousel {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.carousel-track {
  cursor: grab;
}

.carousel.is-dragging .carousel-track {
  cursor: grabbing;
}

.carousel.is-dragging img {
  pointer-events: none;
}

.carousel-slide.is-clickable {
  cursor: pointer;
}

.carousel-prev:disabled,
.carousel-next:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.carousel-prev[hidden],
.carousel-next[hidden],
.carousel-dots[hidden] {
  display: none !important;
}

/* =========================================================
   Promotion Modal
   最大占界面 80%，水平垂直居中
   ========================================================= */

.promo-modal[hidden] {
  display: none !important;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    max(16px, env(safe-area-inset-top, 0))
    16px
    max(16px, env(safe-area-inset-bottom, 0));

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .2s ease,
    visibility .2s ease;
}

.promo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* 遮罩背景 */
.promo-modal__backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(25, 3, 2, .82);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* 弹窗主体 */
.promo-modal__dialog {
  position: relative;
  z-index: 1;

  width: min(80vw, 680px);
  max-width: 80vw;

  height: auto;
  max-height: 80vh;

  overflow: hidden;

  border: 1px solid rgba(246, 195, 68, .72);
  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fff9f5 100%
    );

  box-shadow:
    0 30px 80px rgba(0, 0, 0, .48),
    0 0 0 4px rgba(246, 195, 68, .08);

  transform:
    translateY(16px)
    scale(.96);

  transition:
    transform .22s ease;
}

.promo-modal.is-open .promo-modal__dialog {
  transform:
    translateY(0)
    scale(1);
}

/* 内部滚动区域 */
.promo-modal__scroll {
  width: 100%;
  max-height: 80vh;

  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
}

/* 弹窗顶部图片 */
.promo-modal__image {
  width: 100%;
  max-height: 34vh;

  object-fit: cover;
  object-position: center;

  border-bottom:
    1px solid rgba(246, 195, 68, .38);

  background: var(--accent-deep);
}

/* 弹窗正文 */
.promo-modal__body {
  padding: 20px;
}

.promo-modal__title {
  margin: 0 34px 12px 0;

  color: var(--accent);

  font-size: 22px;
  line-height: 1.25;
  font-weight: 950;
}

.promo-modal__content {
  color: var(--text);

  font-size: 14px;
  line-height: 1.65;
}

.promo-modal__content p {
  margin: 0 0 12px;
}

.promo-modal__content p:last-child {
  margin-bottom: 0;
}

.promo-modal__list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.promo-modal__list li {
  margin-bottom: 8px;
}

.promo-modal__list li::marker {
  color: var(--accent);
  font-weight: 900;
}

/* 弹窗按钮区域 */
.promo-modal__actions {
  margin-top: 18px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.promo-modal__actions:empty {
  display: none;
}

/* 关闭按钮 */
.promo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  padding: 0;

  border:
    1px solid rgba(246, 195, 68, .72);
  border-radius: 50%;

  color: var(--gold-light);

  background:
    linear-gradient(
      145deg,
      #bd160f,
      var(--accent-dark)
    );

  box-shadow:
    0 6px 18px rgba(0, 0, 0, .26);

  font-size: 23px;
  line-height: 1;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.promo-modal__close:hover {
  transform: scale(1.06);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, .32);
}

.promo-modal__close:active {
  transform: scale(.94);
}

/* 手机端保证仍然接近屏幕 80% */
@media (max-width: 520px) {
  .promo-modal__dialog {
    width: 80vw;
    max-width: 80vw;
    max-height: 80vh;

    border-radius: 16px;
  }

  .promo-modal__scroll {
    max-height: 80vh;
  }

  .promo-modal__body {
    padding: 16px;
  }

  .promo-modal__title {
    font-size: 19px;
  }

  .promo-modal__image {
    max-height: 28vh;
  }
}

/* 横屏手机 */
@media (max-height: 520px) {
  .promo-modal__dialog,
  .promo-modal__scroll {
    max-height: 80vh;
  }

  .promo-modal__image {
    max-height: 25vh;
  }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
  .promo-modal,
  .promo-modal__dialog {
    transition: none;
  }
}
.tutorial-video-wrap {
  width: 100%;
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: #000;

  box-shadow:
    0 4px 14px rgba(63, 15, 3, .08);
}

.tutorial-video {
  width: 100%;
  aspect-ratio: 16 / 9;

  display: block;

  object-fit: contain;

  background: #000;
}

.tutorial-video-wrap .step-cap {
  background:
    linear-gradient(
      180deg,
      #fff,
      #fff9f5
    );
}