:root {
  --pink: #ff4d8d;
  --pink-deep: #e91e63;
  --pink-soft: #ff7aa8;
  --pink-mist: #fff0f5;
  --ink: #2a1a22;
  --muted: #8a6b78;
  --line: rgba(233, 30, 99, 0.12);
  --shadow: 0 18px 50px rgba(233, 30, 99, 0.18);
  --radius: 18px;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Outfit", var(--font-cn);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-cn);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 122, 168, 0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(233, 30, 99, 0.12), transparent 55%),
    linear-gradient(180deg, #fff8fb 0%, #ffffff 45%, #fff5f9 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* —— 微信 / QQ 内置浏览器提示 —— */
.browser-tip {
  display: none;
}

html.is-inapp,
html.is-inapp body {
  height: 100%;
  overflow: hidden;
}

html.is-inapp body {
  background: #1a1014;
}

html.is-inapp .page,
html.is-inapp .modal {
  display: none !important;
}

html.is-inapp .browser-tip {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 20px 24px;
  color: #fff;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(255, 77, 141, 0.35), transparent 60%),
    #1a1014;
}

.browser-tip__arrow {
  position: absolute;
  top: 8px;
  right: 18px;
  color: #ff7aa8;
  animation: tip-bounce 1.4s ease-in-out infinite;
}

.browser-tip__card {
  margin-top: 120px;
  text-align: center;
}

.browser-tip__title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  color: #fff;
}

.browser-tip__desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.browser-tip__desc strong {
  color: #ff7aa8;
  font-weight: 700;
}

@keyframes tip-bounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* —— 顶部跑马灯 —— */
.marquee-wrap {
  width: 100%;
}

.marquee {
  width: 100%;
  height: clamp(180px, 42vw, 240px);
  overflow: hidden;
  background: #1a1014;
  box-shadow: 0 8px 24px rgba(42, 26, 34, 0.12);
}

.marquee__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: scroll-x 28s linear infinite;
}

.marquee__track img {
  height: 100%;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 22px 20px;
}

.panel__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.brand {
  text-align: center;
  animation: rise 0.7s ease both;
}

.brand__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: float 4.5s ease-in-out infinite;
}

.brand__name {
  font-family: var(--font-en);
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--pink-deep), var(--pink-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.brand__slogan {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  animation: rise 0.7s ease 0.12s both;
}

.desktop-hint {
  display: none;
}

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
}

.btn--android {
  background: linear-gradient(135deg, #ff4d8d 0%, #e91e63 100%);
}

.btn--ios {
  background: linear-gradient(135deg, #ff7aa8 0%, #d81b60 100%);
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.btn__text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn__text small {
  font-family: var(--font-en);
  font-size: 0.75rem;
  opacity: 0.85;
  letter-spacing: 0.06em;
}

.footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  animation: rise 0.7s ease 0.2s both;
}

.footer__company {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pink-deep);
  letter-spacing: 0.16em;
}

.footer__copy,
.footer__extra {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* —— 二维码弹窗 —— */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 34, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(42, 26, 34, 0.28);
  text-align: center;
  animation: pop 0.25s ease both;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: var(--pink-mist);
  color: var(--pink-deep);
}

.modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink-deep);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.modal__qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.16);
}

.modal__tip {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* —— 电脑端 —— */
@media (min-width: 900px) {
  body {
    background:
      radial-gradient(900px 700px at 70% 20%, rgba(255, 122, 168, 0.22), transparent 55%),
      linear-gradient(135deg, #fff7fa 0%, #ffffff 50%, #fff0f6 100%);
  }

  .marquee-wrap {
    display: flex;
    justify-content: center;
    padding: 28px 0 0;
  }

  .marquee {
    width: min(720px, 58vw);
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
  }

  .panel {
    max-width: 560px;
    padding: 40px 48px 28px;
  }

  .panel__inner {
    gap: 32px;
  }

  .brand__logo {
    width: 112px;
    height: 112px;
    border-radius: 26px;
  }

  .brand__name {
    font-size: 3rem;
  }

  .brand__slogan {
    font-size: 1.05rem;
  }

  .actions {
    max-width: 400px;
  }

  .desktop-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    animation: rise 0.7s ease 0.16s both;
  }

  .footer {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .brand__logo,
  .modal__dialog,
  .browser-tip__arrow {
    animation: none !important;
  }
}
