:root {
  --primary: #F472B6;
  --secondary: #8B5CF6;
  --accent: #FBBF24;
  --bg-dark: #1a0b2e;
  --bg-light: rgba(255, 255, 255, 0.08);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --card-glass: rgba(255, 255, 255, 0.1);
  --neon-pink: 0 0 20px rgba(244, 114, 182, 0.55), 0 0 40px rgba(244, 114, 182, 0.25);
  --neon-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  line-height: 1.25;
}

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

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

#main-header {
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header-scrolled {
  background: rgba(26, 11, 46, 0.92) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  letter-spacing: 0.02em;
  box-shadow: var(--neon-pink), 0 6px 0 #9d174d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-neon:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 30px rgba(244, 114, 182, 0.75), 0 0 60px rgba(139, 92, 246, 0.4), 0 8px 0 #9d174d;
}

.btn-neon:active {
  transform: translateY(2px);
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.5), 0 3px 0 #9d174d;
}

.btn-liquid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent), #f59e0b, var(--primary), var(--accent));
  background-size: 300% 100%;
  color: #1a0b2e;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  box-shadow: 0 6px 0 #b45309, 0 12px 24px rgba(251, 191, 36, 0.25);
  animation: liquidMove 3.5s linear infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-liquid:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 0 #b45309, 0 18px 36px rgba(251, 191, 36, 0.45);
}

.btn-liquid:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #b45309, 0 8px 16px rgba(251, 191, 36, 0.3);
}

@keyframes liquidMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 1.2em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.6);
}

.handwritten {
  font-family: "Comic Sans MS", "PingFang SC", "Microsoft YaHei", cursive;
  color: var(--accent);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
}

.page-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: radial-gradient(ellipse at 20% 30%, rgba(244, 114, 182, 0.22) 0%, transparent 45%),
              radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 45%),
              linear-gradient(135deg, #1a0b2e 0%, #2e1065 55%, #1a0b2e 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: floatBlob 8s ease-in-out infinite;
}

.hero-blobs span:nth-child(1) {
  width: 320px;
  height: 320px;
  background: var(--primary);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hero-blobs span:nth-child(2) {
  width: 260px;
  height: 260px;
  background: var(--secondary);
  bottom: 15%;
  right: 8%;
  animation-delay: -2s;
}

.hero-blobs span:nth-child(3) {
  width: 180px;
  height: 180px;
  background: var(--accent);
  top: 40%;
  right: 25%;
  animation-delay: -4s;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 10rem);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-text {
  animation: bounceInLeft 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-badge i {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #fbcfe8 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(244, 114, 182, 0.35);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  animation: bounceInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  animation: spin 24s linear infinite;
}

.hero-ring::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed rgba(244, 114, 182, 0.35);
  animation: spinReverse 18s linear infinite;
}

.hero-character {
  position: relative;
  z-index: 2;
  width: 78%;
  max-width: 460px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: heroFloat 4.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

@keyframes bounceInLeft {
  0% { opacity: 0; transform: translateX(-60px) scale(0.92); }
  60% { opacity: 1; transform: translateX(8px) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes bounceInRight {
  0% { opacity: 0; transform: translateX(60px) scale(0.92); }
  60% { opacity: 1; transform: translateX(-8px) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.section {
  position: relative;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-alt {
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.06) 0%, transparent 60%), #1a0b2e;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.intro-text {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.85;
}

.stats-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 2rem;
  background: var(--card-glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, background 0.25s ease;
}

.stat-cell:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .feature-row.reverse .feature-media {
    order: 2;
  }
  .feature-row.reverse .feature-body {
    order: 1;
  }
}

.feature-media {
  position: relative;
}

.feature-frame {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-1deg);
  transition: transform 0.35s ease;
}

.feature-row.reverse .feature-frame {
  transform: rotate(1deg);
}

.feature-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.feature-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 11, 46, 0.55) 100%);
  pointer-events: none;
}

.feature-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  z-index: 2;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #1a0b2e;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
  transform: rotate(-4deg);
}

.feature-row.reverse .feature-tag {
  left: auto;
  right: 24px;
  transform: rotate(4deg);
}

.feature-body h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 0.75rem;
  color: #fff;
}

.feature-body p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feature-list span {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #e9d5ff;
  font-size: 0.85rem;
  font-weight: 700;
}

.download-section {
  position: relative;
  padding: 5rem 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.18) 0%, transparent 65%), #1a0b2e;
  overflow: hidden;
}

@media (min-width: 768px) {
  .download-section {
    padding: 7rem 0;
  }
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.phone-mockup {
  position: relative;
  width: 260px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .phone-mockup {
    width: 300px;
  }
}

.phone-frame {
  position: relative;
  border-radius: 2.5rem;
  padding: 0.6rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), var(--neon-purple);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.phone-screen {
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 9 / 18;
  background: linear-gradient(180deg, #2e1065 0%, #1a0b2e 100%);
  position: relative;
}

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

.phone-notch {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 22px;
  background: #1a0b2e;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--card-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
  transform: translateX(8px);
  box-shadow: var(--neon-pink);
}

.download-icon {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  flex-shrink: 0;
}

.download-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.download-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #1a0b2e 0%, rgba(244, 114, 182, 0.08) 100%);
}

@media (min-width: 768px) {
  .contact-section {
    padding: 7rem 0;
  }
}

.qr-card {
  position: relative;
  padding: 1.75rem 1.25rem;
  border-radius: 2rem;
  background: var(--card-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.qr-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--neon-purple);
}

.qr-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.15);
  filter: blur(30px);
}

.qr-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.qr-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0.75rem auto;
  border-radius: 1rem;
  background: #fff;
  padding: 0.5rem;
}

.qr-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-footer {
  position: relative;
  background: #140821;
  padding-top: 6rem;
  padding-bottom: 2.5rem;
}

.wave-divider {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-divider path {
  fill: var(--bg-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-brand span {
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  max-width: 720px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.mobile-nav {
  background: rgba(26, 11, 46, 0.98);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent);
}

.mobile-nav i {
  width: 28px;
  text-align: center;
  margin-right: 0.75rem;
  color: var(--primary);
}

@media (max-width: 767px) {
  .hero-actions {
    justify-content: center;
  }
  .hero-title,
  .hero-subtitle,
  .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badge-row {
    justify-content: center;
  }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-body {
    order: unset;
  }
  .feature-frame,
  .feature-row.reverse .feature-frame {
    transform: rotate(0);
  }
  .download-card:hover {
    transform: translateX(0);
  }
}
