:root {
  --pink: #ff7eb9;
  --pink-deep: #ff4fa3;
  --purple: #8c6cff;
  --blue: #5ecbff;
  --yellow: #ffe066;
  --bg: #fff5fb;
  --text: #4a3b52;
  --text-light: #8a7a92;
  --card-bg: #ffffff;
  --shadow: 0 12px 30px rgba(255, 79, 163, 0.15);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Baloo 2', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 126, 185, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(140, 108, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(94, 203, 255, 0.15) 0%, transparent 40%);
}

/* ===== Floaties ===== */
.floaties {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floaty {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.7;
  animation: float 8s ease-in-out infinite;
}

.f1 { top: 10%; left: 5%; animation-delay: 0s; }
.f2 { top: 30%; left: 90%; animation-delay: 1.2s; }
.f3 { top: 60%; left: 8%; animation-delay: 2.4s; }
.f4 { top: 80%; left: 85%; animation-delay: 0.6s; }
.f5 { top: 45%; left: 50%; animation-delay: 1.8s; }
.f6 { top: 15%; left: 70%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(15deg); }
}

/* ===== 二次元人物虚影背景 ===== */
.silhouette {
  position: fixed;
  top: 0;
  right: -5%;
  width: 60vw;
  max-width: 640px;
  height: 100vh;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.silhouette svg {
  width: 100%;
  height: 100%;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 245, 251, 0.8);
  border-bottom: 2px solid rgba(255, 126, 185, 0.25);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--pink-deep);
}

.brand-emoji {
  font-size: 1.5rem;
}

.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(255, 79, 163, 0.35);
  transition: transform 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
}

/* ===== Layout helpers ===== */
main {
  position: relative;
  z-index: 2;
}

section {
  padding: 90px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-title.left {
  align-items: flex-start;
  text-align: left;
}

.section-title .tag {
  font-size: 0.85rem;
  color: var(--purple);
  letter-spacing: 2px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
}

/* ===== Hero ===== */
.hero {
  padding-top: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 36px;
}

.highlight {
  background: linear-gradient(135deg, var(--pink-deep), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
  margin-top: 36px;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--pink-deep);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== Templates / 作品展示 ===== */
.template-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.template-card {
  flex: 0 0 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  background: #fff;
}

.template-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.template-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Community ===== */
.community-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.community-text {
  flex: 1 1 420px;
}

.community-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 16px 0 20px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.community-art {
  flex: 1 1 320px;
  position: relative;
  height: 220px;
}

.bubble {
  position: absolute;
  background: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.9rem;
  animation: float 6s ease-in-out infinite;
}

.b1 { top: 0; left: 10%; color: var(--pink-deep); }
.b2 { top: 80px; left: 55%; color: var(--purple); animation-delay: 1s; }
.b3 { top: 160px; left: 20%; color: var(--blue); animation-delay: 2s; }

/* ===== Enter / QR ===== */
.enter-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 32px;
  padding: 48px 32px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.enter-card h2 {
  font-size: 1.6rem;
  color: var(--pink-deep);
  margin-bottom: 12px;
}

.enter-card > p {
  color: var(--text-light);
  margin-bottom: 28px;
}

.qr-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(140, 108, 255, 0.25);
}

.qr-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 4px solid var(--pink-deep);
}

.c1 { top: -8px; left: -8px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.c2 { top: -8px; right: -8px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.c3 { bottom: -8px; left: -8px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.c4 { bottom: -8px; right: -8px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

.qr-hint {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

.footer p {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--pink-deep);
}

.footer-sub {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .silhouette { opacity: 0.1; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  section { padding: 60px 20px; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
