/* ==========================================================================
   吃吃大作战 官网样式
   主色：深紫 #2D1B5A → 亮紫 #8B5FD9
   强调：橙黄 #FFB627
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f7f4ff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.25; }

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

/* ---------- Theme Tokens ---------- */
:root {
  --c-purple-900: #1a0e3a;
  --c-purple-800: #2D1B5A;
  --c-purple-700: #3a2473;
  --c-purple-600: #5B3A9E;
  --c-purple-500: #7558bd;
  --c-purple-400: #8B5FD9;
  --c-purple-300: #b591ee;
  --c-purple-200: #e2d4f8;
  --c-yellow: #FFB627;
  --c-orange: #FF8C42;
  --c-pink: #ff6b9d;
  --c-text: #1a1a1a;
  --c-text-soft: #5a5a6e;
  --c-bg: #f7f4ff;
  --c-bg-alt: #ffffff;
  --c-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(45, 27, 90, 0.08);
  --shadow-md: 0 8px 24px rgba(45, 27, 90, 0.12);
  --shadow-lg: 0 16px 48px rgba(45, 27, 90, 0.18);
  --shadow-glow: 0 0 32px rgba(255, 182, 39, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container-w: 1180px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
  white-space: nowrap;
  user-select: none;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn__icon { font-size: 18px; }

.btn--primary {
  background: linear-gradient(135deg, var(--c-yellow) 0%, var(--c-orange) 100%);
  color: var(--c-purple-900);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 182, 39, 0.5);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost:disabled,
.btn--disabled,
.btn--disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  transform: none;
}
.section--alt .btn--disabled,
.section--alt .btn--ghost:disabled {
  background: var(--c-bg);
  color: var(--c-text-soft);
  border-color: var(--c-purple-200);
}
.section--alt .btn--ghost {
  color: var(--c-purple-800);
  border-color: var(--c-purple-300);
  background: rgba(255, 255, 255, 0.6);
}
.section--alt .btn--ghost:hover {
  background: var(--c-white);
  border-color: var(--c-purple-600);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 14, 58, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}
.nav--scrolled { background: rgba(26, 14, 58, 0.92); }

.nav__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.nav__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--c-yellow); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange));
  color: var(--c-purple-900);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s;
  cursor: pointer;
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta--disabled,
.nav__cta--disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("images/1920X1080.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at center, rgba(26, 14, 58, 0.15) 0%, rgba(26, 14, 58, 0.55) 70%, rgba(26, 14, 58, 0.75) 100%),
    linear-gradient(180deg, rgba(26, 14, 58, 0.25) 0%, rgba(26, 14, 58, 0.45) 60%, rgba(26, 14, 58, 0.7) 100%);
  z-index: 1;
}
.hero__content { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--c-white);
  max-width: 800px;
  animation: fadeUp 0.8s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__logo {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero__subtitle {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 36px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--c-yellow);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 100%);
}
.section__head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section__title {
  font-size: 40px;
  font-weight: 800;
  color: var(--c-purple-800);
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.section__sub {
  font-size: 17px;
  color: var(--c-text-soft);
  margin: 0;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--c-white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 95, 217, 0.08);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature__icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(255, 182, 39, 0.3));
}
.feature__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-purple-800);
  margin: 0 0 10px;
}
.feature__desc {
  font-size: 15px;
  color: var(--c-text-soft);
  margin: 0;
  line-height: 1.7;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.step {
  text-align: center;
  padding: 24px 12px;
  position: relative;
}
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-purple-600), var(--c-purple-400));
  color: var(--c-white);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 16px rgba(91, 58, 158, 0.25);
}
.step__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-purple-800);
  margin: 0 0 8px;
}
.step p {
  font-size: 14px;
  color: var(--c-text-soft);
  margin: 0;
  line-height: 1.6;
}

.gameplay__showcase {
  text-align: center;
}
.gameplay__img {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.gameplay__img--portrait {
  max-width: 360px;
  max-height: 720px;
  width: auto;
  object-fit: contain;
}
.gameplay__phone {
  display: inline-block;
  padding: 14px 10px;
  background: linear-gradient(145deg, #1a0e3a, #2D1B5A);
  border-radius: 36px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  margin: 0 auto;
}
.gameplay__phone::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.gameplay__phone img {
  display: block;
  border-radius: 24px;
  max-width: 100%;
}
.gameplay__caption {
  font-size: 15px;
  color: var(--c-text-soft);
  font-style: italic;
}

/* ---------- Characters ---------- */
.characters__hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}
.characters__hero img {
  width: 100%;
  display: block;
}
.characters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.characters__tags li {
  padding: 10px 20px;
  background: var(--c-white);
  border: 2px solid var(--c-purple-200);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-purple-700);
  transition: all 0.25s ease;
  cursor: default;
}
.characters__tags li:hover {
  background: var(--c-purple-600);
  color: var(--c-white);
  border-color: var(--c-purple-600);
  transform: translateY(-2px);
}
.characters__note {
  text-align: center;
  font-size: 13px;
  color: var(--c-text-soft);
  margin: 0;
}

/* ---------- Platforms ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.platform {
  background: var(--c-white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.platform--current {
  border-color: var(--c-yellow);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(255, 182, 39, 0.12);
}
.platform:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.platform__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange));
  color: var(--c-purple-900);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.platform__badge--soft {
  background: var(--c-purple-200);
  color: var(--c-purple-700);
}
.platform__icon {
  font-size: 48px;
  margin: 8px 0 16px;
}
.platform__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-purple-800);
  margin: 0 0 12px;
}
.platform__desc {
  font-size: 15px;
  color: var(--c-text-soft);
  margin: 0 0 24px;
  min-height: 48px;
}

/* ---------- CTA / Reserve ---------- */
.section--cta {
  background: linear-gradient(135deg, var(--c-purple-800) 0%, var(--c-purple-600) 50%, var(--c-purple-500) 100%);
  color: var(--c-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255, 182, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.section--cta::after {
  content: "";
  position: absolute;
  bottom: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta__title {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta__sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 36px;
}
.cta__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.cta__input::placeholder { color: rgba(255, 255, 255, 0.6); }
.cta__input:focus {
  border-color: var(--c-yellow);
  background: rgba(255, 255, 255, 0.2);
}
.cta__hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
}
.cta__contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
}
.cta__link {
  color: var(--c-white);
  transition: color 0.2s;
}
.cta__link:hover { color: var(--c-yellow); }
.cta__divider { color: rgba(255, 255, 255, 0.5); }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-purple-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 32px;
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--c-white);
  font-size: 16px;
}
.footer__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--c-yellow); }
.footer__legal p { margin: 4px 0; }
.footer__legal a { color: rgba(255, 255, 255, 0.5); }
.footer__legal a:hover { color: var(--c-yellow); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 14, 58, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.modal__close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 28px;
  line-height: 1;
  color: var(--c-text-soft);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal__close:hover { background: var(--c-bg); }
.modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-purple-800);
  margin: 0 0 24px;
}
.modal__qr {
  width: 200px; height: 200px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
}
.modal__qr-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-purple-200), var(--c-purple-300));
  display: flex; align-items: center; justify-content: center;
  color: var(--c-purple-800);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
}
.modal__qr img { width: 100%; height: 100%; object-fit: contain; }
.modal__desc {
  font-size: 14px;
  color: var(--c-text-soft);
  margin: 0;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.is-dev .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section__title { font-size: 32px; }
  .cta__title { font-size: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(4), .step:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { padding: 6px 14px; font-size: 13px; }
  .nav__title { font-size: 16px; }
  .nav__icon { width: 32px; height: 32px; }

  .hero { padding: 80px 20px 60px; }
  .hero__logo { max-width: 320px; }
  .hero__subtitle { font-size: 18px; letter-spacing: 2px; }
  .hero__tagline { font-size: 15px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .section__title { font-size: 28px; }
  .section__sub { font-size: 15px; }

  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 28px 24px; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step { padding: 20px; background: var(--c-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
  .step__num { width: 48px; height: 48px; font-size: 18px; }

  .platforms { grid-template-columns: 1fr; }
  .platform { padding: 32px 24px; }
  .platform__desc { min-height: auto; }

  .cta__title { font-size: 26px; }
  .cta__sub { font-size: 15px; }
  .cta__form { flex-direction: column; }
  .cta__input { min-width: 0; width: 100%; }
  .cta__contact { flex-direction: column; gap: 12px; }
  .cta__divider { display: none; }

  .footer__links { gap: 16px; font-size: 13px; }

  .modal__panel { padding: 32px 24px 24px; }
  .modal__qr { width: 180px; height: 180px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__logo { max-width: 260px; }
  .section__title { font-size: 24px; }
  .feature__icon { font-size: 36px; }
  .feature__title { font-size: 18px; }
}

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
