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

html {
  scroll-behavior: smooth;
  /* Safety net: decorative full-bleed layers (glow videos etc.) must never
     produce a horizontal scrollbar / implicit min-width for the page. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #EBEFF5;
  color: #090C0C;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ===== Fonts ===== */
@font-face {
  font-family: "Geist Mono";
  src: local("Geist Mono"), local("GeistMono");
}

/* ===== Design Tokens ===== */
:root {
  --bg: #EBEFF5;
  --text-primary: #090C0C;
  --text-secondary: #000000;
  --accent: #725CFF;
  --white: #FFFFFF;
  --rainbow: radial-gradient(circle at 100% 0%, #33ADFF 0%, #0A8DFF 15%, #3D4AFF 40%, #281BE0 60%, #6531F5 85%, #9D5CFF 100%);
  --glass-white-12: rgba(255, 255, 255, 0.12);
  --glass-white-30: rgba(255, 255, 255, 0.3);
  --glass-white-50: rgba(255, 255, 255, 0.5);
  --black-6: rgba(0, 0, 0, 0.06);
  --shadow-card: -16px 24px 48px -24px rgba(37, 47, 184, 0.12);
  --shadow-button: 0px 24px 48px -24px rgba(37, 47, 184, 0.12);
  --radius-card: 32px;
  --radius-pill: 9999px;
  --container: 1440px;
  --content: 1024px;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 208px;
}

.content {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

@media (max-width: 1280px) {
  .container {
    padding: 0 80px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ===== Typography ===== */
.heading-xl {
  font-size: 64px;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: -0.02em;
}

.heading-lg {
  /* Section 大标题统一流式字号（与各产品页 section 标题同一档位）：
     桌面封顶 48px，随视口平滑收缩，手机保底 28px */
  font-size: clamp(28px, 5.6vw, 48px);
  font-weight: 500;
  line-height: 1.4;
}

.heading-md {
  font-size: 40px;
  font-weight: 500;
  line-height: 56px;
}

.heading-sm {
  font-size: 30px;
  font-weight: 500;
  line-height: 42px;
}

.body-lg {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.body-sm {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(153deg, #725CFF 0%, #090C0C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1024px) {
  .heading-xl { font-size: 48px; line-height: 60px; }
  .heading-md { font-size: 32px; line-height: 44px; }
}

@media (max-width: 768px) {
  .heading-xl { font-size: 36px; line-height: 44px; }
  .heading-md { font-size: 24px; line-height: 34px; }
  .heading-sm { font-size: 22px; line-height: 30px; }
  .body-lg { font-size: 16px; line-height: 26px; }
}

/* ===== Components ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 1024px;
  height: 56px;
  padding: 4px;
  background: var(--glass-white-50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #33ADFF 0%, #3D4AFF 50%, #9D5CFF 100%);
}

.nav__logo-img {
  height: 24px;
  width: auto;
}

.nav__items {
  display: flex;
  align-items: center;
}

.nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.nav__item:hover,
.nav__item.active {
  background: rgba(255, 255, 255, 0.7);
}

.nav__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.nav__hamburger svg {
  width: 24px;
  height: 24px;
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav__mobile-menu.open {
  display: flex;
}

.nav__mobile-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.nav__mobile-item:hover,
.nav__mobile-item.active {
  background: rgba(114, 92, 255, 0.08);
}

/* Download QR tooltip */
.download-qr-wrap {
  position: relative;
  display: inline-flex;
}

.download-qr-wrap:hover {
  z-index: 200;
}

.download-qr-popup {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 100;
  text-align: center;
  min-width: 160px;
}

.download-qr-wrap:hover .download-qr-popup {
  display: block;
}

.download-qr-popup img {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
}

.download-qr-popup span {
  font-size: 12px;
  color: var(--text-primary);
  opacity: 0.7;
}

/* Magic Rings animation placeholder */
.magic-rings-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
}

.magic-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(114, 92, 255, 0.15);
  animation: ring-expand 3s ease-out infinite;
}

.magic-ring:nth-child(1) { width: 100px; height: 100px; animation-delay: 0s; }
.magic-ring:nth-child(2) { width: 100px; height: 100px; animation-delay: 0.6s; }
.magic-ring:nth-child(3) { width: 100px; height: 100px; animation-delay: 1.2s; }
.magic-ring:nth-child(4) { width: 100px; height: 100px; animation-delay: 1.8s; }
.magic-ring:nth-child(5) { width: 100px; height: 100px; animation-delay: 2.4s; }

@keyframes ring-expand {
  0% { width: 80px; height: 80px; opacity: 0.6; border-color: rgba(114, 92, 255, 0.4); }
  100% { width: 400px; height: 400px; opacity: 0; border-color: rgba(114, 92, 255, 0); }
}

@media (max-width: 768px) {
  .nav {
    max-width: calc(100% - 40px);
    height: 48px;
  }
  .nav__brand {
    padding: 0 12px;
    font-size: 16px;
  }
  .nav__logo {
    width: 24px;
    height: 24px;
  }
  .nav__items {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .magic-rings-container {
    width: 280px;
    height: 280px;
  }
  @keyframes ring-expand {
    0% { width: 60px; height: 60px; opacity: 0.6; }
    100% { width: 280px; height: 280px; opacity: 0; }
  }
}

/* 页脚宽度/左右内边距与导航栏一致（max-width 1024 居中，内容内缩 28px 对齐 logo/菜单） */
.footer {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 28px;
  border-top: 1px solid var(--black-6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__left,
.footer__right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.8;
}

.footer__link {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__dot {
  width: 1px;
  height: 12px;
  background: #DCE0DF;
}

@media (max-width: 1024px) {
  .footer {
    padding: 32px 20px;
  }
  /* Tablet and below: stack the two footer groups and center everything;
     each group wraps its own items to centered lines instead of breaking
     mid-line at the left edge. */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer__left,
  .footer__right {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--rainbow);
  color: #F6F8F8;
  box-shadow: var(--shadow-button);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rainbow);
  color: var(--white);
}

.icon-arrow {
  width: 20px;
  height: 20px;
}

/* ===== Utilities ===== */
.glass {
  background: var(--glass-white-30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Aurora 流式呼吸光晕背景 ===== */
.aurora-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.7;
}

.aurora-bg__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.aurora-bg__blob--1 {
  width: 700px;
  height: 600px;
  top: -10%;
  left: -5%;
  background: radial-gradient(ellipse at 40% 50%, rgba(114, 92, 255, 0.65) 0%, rgba(175, 71, 255, 0.3) 50%, transparent 80%);
  animation: aurora-breathe-1 10s ease-in-out infinite alternate;
}

.aurora-bg__blob--2 {
  width: 600px;
  height: 500px;
  top: 10%;
  right: -8%;
  background: radial-gradient(ellipse at 60% 40%, rgba(51, 173, 255, 0.55) 0%, rgba(91, 76, 255, 0.25) 55%, transparent 85%);
  animation: aurora-breathe-2 12s ease-in-out infinite alternate;
}

.aurora-bg__blob--3 {
  width: 500px;
  height: 450px;
  bottom: -5%;
  left: 20%;
  background: radial-gradient(ellipse at 50% 60%, rgba(157, 92, 255, 0.5) 0%, rgba(51, 173, 255, 0.2) 50%, transparent 80%);
  animation: aurora-breathe-3 14s ease-in-out infinite alternate;
}

.aurora-bg__blob--4 {
  width: 400px;
  height: 380px;
  top: 30%;
  left: 40%;
  background: radial-gradient(ellipse at 50% 50%, rgba(175, 71, 255, 0.4) 0%, rgba(114, 92, 255, 0.15) 60%, transparent 90%);
  animation: aurora-breathe-4 11s ease-in-out infinite alternate;
}

.aurora-bg__blob--5 {
  width: 550px;
  height: 480px;
  bottom: 10%;
  right: 15%;
  background: radial-gradient(ellipse at 45% 55%, rgba(91, 76, 255, 0.45) 0%, rgba(157, 92, 255, 0.2) 50%, transparent 85%);
  animation: aurora-breathe-5 13s ease-in-out infinite alternate;
}

@keyframes aurora-breathe-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(40px, 30px) scale(1.15); opacity: 0.85; }
}

@keyframes aurora-breathe-2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-35px, 25px) scale(1.12); opacity: 0.75; }
}

@keyframes aurora-breathe-3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  100% { transform: translate(30px, -20px) scale(1.1); opacity: 0.7; }
}

@keyframes aurora-breathe-4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  100% { transform: translate(-25px, -30px) scale(1.18); opacity: 0.6; }
}

@keyframes aurora-breathe-5 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(20px, 35px) scale(1.08); opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-bg__blob {
    animation: none !important;
    opacity: 0.5;
  }
}
