/* ═══════════ RESET & BASE ═══════════ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #FF69B4;
  --pink-light: #FFE5E5;
  --pink-bg: #FFF5F5;
  --gold: #FFD700;
  --lavender: #D8BFD8;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --radius: 12px;

  --font-pixel: 'Press Start 2P', monospace;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--pink-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════ REUSABLE ═══════════ */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Pixel-style utility */
.pixel-border {
  border: 3px solid var(--pink);
  box-shadow: 3px 3px 0 var(--pink);
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 245, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 105, 180, 0.15);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--pink);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
  padding: 8px 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link--cta {
  background: var(--pink);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 2px 2px 0 rgba(255, 105, 180, 0.4);
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(255, 105, 180, 0.4);
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  background: linear-gradient(180deg, var(--pink-light) 0%, var(--pink-bg) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo {
  width: 280px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(4px 4px 0 rgba(255, 105, 180, 0.25));
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__title-pixel {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.5vw, 28px);
  display: block;
  color: var(--pink);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.hero__title-sans {
  display: block;
  color: var(--text);
}

.hero__sub {
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--pink);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero__desc {
  font-size: 15px;
  color: var(--text-light);
  max-width: 40ch;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: var(--white);
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(255, 105, 180, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 8px;
}

.hero__cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(255, 105, 180, 0.35);
}

/* ═══════ HERO STARS ═══════ */
.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: float 4s ease-in-out infinite;
  opacity: 0;
}

@keyframes float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  20%, 80% { opacity: 0.7; }
  50% { transform: translateY(-20px) scale(1); opacity: 0.6; }
}

/* ═══════════ SERVICES ═══════════ */
.services {
  padding: 100px 24px;
  background: var(--white);
}

.services__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.service-card {
  background: var(--pink-light);
  border: 2px solid rgba(255, 105, 180, 0.15);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.12);
}

.service-card--lg {
  grid-row: span 2;
  background: linear-gradient(135deg, var(--pink-light), #FFF0F5);
}

.service-card__icon {
  width: 48px;
  height: 48px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 14px;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
}

/* ═══════════ CASES ═══════════ */
.cases {
  padding: 0;
  background: var(--pink-bg);
  overflow: hidden;
  position: relative;
}

.cases__wrap {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

.cases__track {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 32px;
  padding: 0 80px;
  will-change: transform;
}

.case-card {
  flex-shrink: 0;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid rgba(255, 105, 180, 0.12);
  transition: transform 0.3s;
}

.case-card:hover {
  transform: translateY(-6px);
}

.case-card__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.case-card__placeholder {
  font-size: 40px;
}

.case-card__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.case-card__stat {
  font-size: 12px;
  color: var(--pink);
  font-weight: 500;
  background: var(--pink-light);
  padding: 4px 12px;
  border-radius: 20px;
}

.cases__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 13px;
  z-index: 5;
  animation: hintPulse 2s ease-in-out infinite;
  font-family: var(--font-sans);
}

.cases__arrow {
  font-size: 18px;
  display: inline-block;
  animation: arrowSlide 1.5s ease-in-out infinite;
}

.cases__label {
  letter-spacing: 0.05em;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes arrowSlide {
  0%, 100% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
}

/* ═══════════ CONTACT ═══════════ */
.contact {
  padding: 120px 24px;
  background: var(--white);
  text-align: center;
}

.contact__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact__desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 480px;
}

.contact__qr {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact__qr-box {
  width: 140px;
  height: 140px;
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
}

.contact__qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 13px;
}

.contact__qr-icon {
  font-size: 28px;
  color: var(--gold);
}

.contact__qr-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.contact__info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__wechat {
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact__tag {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--pink);
  background: var(--pink-light);
  padding: 3px 8px;
  border-radius: 3px;
}

.contact__note {
  font-size: 14px;
  color: var(--text-light);
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  padding: 40px 24px;
  background: var(--pink-bg);
  text-align: center;
  border-top: 2px solid rgba(255, 105, 180, 0.1);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__pixel {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.3em;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-light);
}

.footer__made {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-light);
  opacity: 0.6;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 820px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero__content {
    align-items: center;
  }

  .hero__sub {
    text-align: center;
  }

  .hero__desc {
    text-align: center;
  }

  .hero__logo {
    width: 200px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card--lg {
    grid-row: auto;
  }

  .case-card {
    width: 300px;
  }

  .cases__track {
    padding: 0 20px;
    gap: 20px;
  }

  .contact__qr {
    flex-direction: column;
    align-items: center;
  }

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

  .nav__links {
    gap: 16px;
  }

  .nav__link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(var(--nav-h) + 24px) 16px 60px;
  }

  .hero__logo {
    width: 160px;
  }

  .services {
    padding: 60px 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .case-card {
    width: 260px;
  }

  .contact {
    padding: 60px 16px;
  }

  .nav__inner {
    padding: 0 16px;
  }

  .nav__logo {
    font-size: 11px;
  }

  .nav__link--cta {
    padding: 6px 14px;
    font-size: 12px;
  }
}
