:root {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --gold: #ffe56a;
  --rose: #ff5d8f;
  --panel: rgba(0, 0, 0, 0.45);
  --serif: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

.viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 6s ease;
}

.bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0.15) 68%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 28%, transparent 58%, rgba(0, 0, 0, 0.72) 100%);
}

.stage {
  position: relative;
  z-index: 2;
  width: min(100%, 1920px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 36px) clamp(20px, 3.5vw, 64px) clamp(18px, 2.2vw, 34px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(12px, 2vh, 28px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fade-up 0.8s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-copy em {
  margin-top: 3px;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.pill-accent {
  border-color: rgba(255, 93, 143, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 93, 143, 0.15), 0 8px 24px rgba(255, 93, 143, 0.18);
}

.theme {
  align-self: center;
  max-width: min(640px, 48vw);
  animation: fade-up 0.9s ease 0.08s both;
}

.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.2vw, 6.2rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.theme-title .line {
  display: block;
}

.theme-title .hl {
  background: linear-gradient(105deg, var(--gold) 0%, #ffb347 55%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-desc {
  margin-top: clamp(14px, 1.8vh, 22px);
  max-width: 34em;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.25vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: min(620px, 52vw);
  animation: fade-up 0.9s ease 0.16s both;
}

.qr-frame {
  flex: 0 0 auto;
  width: 148px;
  height: 148px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

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

.qr-copy {
  min-width: 0;
  padding-top: 2px;
}

.qr-title {
  color: var(--gold);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.dl-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dl-link:hover {
  background: rgba(255, 229, 106, 0.2);
  border-color: rgba(255, 229, 106, 0.55);
  transform: translateY(-1px);
}

.qr-tip {
  margin-top: 10px;
  font-size: clamp(0.68rem, 0.78vw, 0.78rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.covers {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  animation: fade-up 0.9s ease 0.22s both;
}

.cover {
  position: relative;
  width: clamp(84px, 7.2vw, 116px);
  aspect-ratio: 3 / 4.2;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

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

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
}

.cover span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  font-size: clamp(0.68rem, 0.75vw, 0.78rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.cover.is-active,
.cover:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(255, 229, 106, 0.65);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 229, 106, 0.25);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .viewport {
    min-height: 100%;
    height: auto;
  }

  .stage {
    min-height: 100vh;
    height: auto;
    grid-template-rows: auto auto auto auto;
    padding-bottom: 24px;
  }

  .theme {
    max-width: none;
    align-self: start;
  }

  .theme-title {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .cta {
    max-width: none;
  }

  .covers {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .cover {
    width: 92px;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .cta {
    flex-direction: column;
  }

  .qr-frame {
    width: 132px;
    height: 132px;
  }

  .top-actions .pill {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
