/* 猫猫陪玩活动页 — 对齐 admin-uniapp theme.scss 色板 */

:root {
  --brand: #7c3aed;
  --brand-2: #a855f7;
  --brand-3: #ec4899;
  --accent-a: #8b5cf6;
  --accent-b: #a78bfa;
  --accent-c: #38bdf8;
  --bg-start: #f5f3ff;
  --bg-mid: #f1f5f9;
  --bg-end: #eef2f7;
  --text: #1e1b2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --surface: #ffffff;
  --border: rgba(30, 27, 46, 0.08);
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(40, 25, 98, 0.15);
  --radius-lg: 20px;
  --radius-md: 14px;
  --btn-grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 48%, #ec4899 100%);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --topbar-h: 56px;
  --sticky-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 背景光斑 */
.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.orb--a {
  width: 280px;
  height: 280px;
  background: #c4b5fd;
  top: -60px;
  right: -40px;
}

.orb--b {
  width: 220px;
  height: 220px;
  background: #bae6fd;
  bottom: 20%;
  left: -50px;
  animation-delay: -4s;
}

.orb--c {
  width: 180px;
  height: 180px;
  background: #f0abfc;
  top: 40%;
  right: 10%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand__logo {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--btn-grad);
  color: #fdfdff;
  box-shadow: 0 10px 24px rgba(40, 25, 98, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(40, 25, 98, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

.btn__icon {
  width: 20px;
  height: 20px;
}

.btn--pulse {
  animation: pulse-shadow 2.5s ease-in-out infinite;
}

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 10px 24px rgba(40, 25, 98, 0.28); }
  50% { box-shadow: 0 10px 36px rgba(124, 58, 237, 0.45); }
}

/* 主内容 */
main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Hero */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--btn-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 12px;
}

.hero__desc {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
}

.hero__actions {
  margin-bottom: 36px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--brand);
  margin-bottom: 2px;
}

.stat span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 限免横幅 */
.promo {
  margin-bottom: 40px;
}

.promo__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.1) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.promo__tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--btn-grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.promo__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.promo__text strong {
  color: var(--brand);
}

/* 区块通用 */
.section {
  margin-bottom: 48px;
}

.section__head {
  text-align: center;
  margin-bottom: 28px;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.section__sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 卖点卡片 */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.feature-card__icon--pink { background: #fce7f3; color: #ec4899; }
.feature-card__icon--blue { background: #e0f2fe; color: #0284c7; }
.feature-card__icon--violet { background: #f3e8ff; color: #9333ea; }

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 流程步骤 */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  opacity: 0.3;
}

.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}

.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
  position: relative;
  z-index: 1;
}

.step__body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step__body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* 展示手机 mock */
.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-mock {
  width: 260px;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2e2264 0%, #1e1b2e 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-mock__screen {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.phone-mock__status {
  height: 24px;
  background: linear-gradient(180deg, #1e1b2e, #2e2264);
}

.phone-mock__carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.phone-mock__carousel::-webkit-scrollbar {
  display: none;
}

.phone-mock__carousel img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  scroll-snap-align: start;
}

.showcase__dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.showcase__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}

.showcase__dots span.is-active {
  opacity: 1;
  background: var(--brand);
  transform: scale(1.2);
}

/* 下载区 */
.section--download {
  margin-bottom: 24px;
}

.download-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-lg);
}

.download-card__logo {
  margin: 0 auto 16px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.download-card__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.download-card__pkg {
  margin: 0 0 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.download-card__tips {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.download-card__tips li + li {
  margin-top: 6px;
}

/* 页脚 */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 20px 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer p {
  margin: 0 0 4px;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__icp {
  margin-top: 8px;
  font-size: 0.75rem;
}

.footer__icp a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__icp a:hover {
  color: var(--brand);
}

/* 底部 sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sticky-h) + 20px);
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 27, 46, 0.92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
  max-width: calc(100% - 40px);
  text-align: center;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 微信内下载引导遮罩 */
body.wechat-mask-open {
  overflow: hidden;
}

.wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 10, 30, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wechat-mask.is-show {
  opacity: 1;
  visibility: visible;
}

.wechat-mask__arrow {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 72px;
  height: 72px;
  color: #fff;
  animation: wechat-arrow-bounce 1.2s ease-in-out infinite;
}

.wechat-mask__arrow svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes wechat-arrow-bounce {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(6px, -6px); opacity: 0.85; }
}

.wechat-mask__panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.wechat-mask.is-show .wechat-mask__panel {
  transform: translateY(0);
}

.wechat-mask__icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.wechat-mask__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  text-align: center;
  color: var(--text);
}

.wechat-mask__desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

.wechat-mask__desc strong {
  color: var(--brand);
}

.wechat-mask__steps {
  margin: 0 0 20px;
  padding-left: 1.2em;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.wechat-mask__steps li::marker {
  color: var(--brand);
  font-weight: 700;
}

.wechat-mask__dot {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 1px;
}

.wechat-mask__btn {
  margin-top: 4px;
}

/* 滚动入场 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 桌面端增强 */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .sticky-cta {
    display: none;
  }

  .topbar__cta {
    display: inline-flex;
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__stats {
    max-width: 520px;
  }

  .steps {
    flex-direction: row;
    gap: 20px;
  }

  .steps::before {
    display: none;
  }

  .step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .topbar__cta {
    display: none;
  }
}
