:root {
  --pink: #ff4d8d;
  --pink-deep: #e91e63;
  --pink-soft: #ffe4ef;
  --ink: #1a1220;
  --muted: #5c5163;
  --line: #f0e4ea;
  --bg: #fff8fb;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(233, 30, 99, 0.12);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6e8 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe9f2 0%, transparent 45%),
    linear-gradient(180deg, #fffafc 0%, var(--bg) 40%, #fff 100%);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pink);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 252, 0.88);
  border-bottom: 1px solid rgba(255, 77, 141, 0.12);
}

.ads-bar {
  position: sticky;
  top: 68px;
  z-index: 45;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.25);
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-deep);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--pink-soft);
  color: var(--pink-deep);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-ghost {
  background: #fff;
  border-color: rgba(233, 30, 99, 0.25);
  color: var(--pink-deep);
}

.btn-ghost:hover {
  background: var(--pink-soft);
}

/* Overlapping phone screenshots */
.phone-stack {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: min(250px, 42vw);
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  animation: floatY 5.5s ease-in-out infinite;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.phone-back {
  transform: translate(-48px, 18px) rotate(-8deg);
  z-index: 1;
  animation-delay: 0.4s;
}

.phone-front {
  transform: translate(52px, -10px) rotate(6deg);
  z-index: 2;
}

@keyframes floatY {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 228, 239, 0.45) 0%, transparent 100%);
  border-radius: 28px;
  margin: 12px auto;
  width: min(1180px, calc(100% - 16px));
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.3;
}

.section .intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 48em;
}

.prose p {
  margin: 0 0 1em;
  color: #2b2230;
}

.prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  color: #2b2230;
}

.prose li {
  margin-bottom: 0.45em;
}

/* Feature / category grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shot-pair .feature-media img {
  aspect-ratio: 9 / 17;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.card-plain {
  background: var(--card);
  border: 1px solid rgba(233, 30, 99, 0.1);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(26, 18, 32, 0.04);
}

.card-plain h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.card-plain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-plain a {
  font-weight: 600;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.08);
  box-shadow: 0 8px 20px rgba(26, 18, 32, 0.05);
  transition: transform 0.25s ease;
}

.thumb:hover {
  transform: translateY(-4px);
}

.thumb img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: top center;
}

.thumb figcaption {
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* Page hero for subpages */
.page-hero {
  padding: 42px 0 18px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42em;
}

.breadcrumb {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.content-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(233, 30, 99, 0.08);
  border-radius: 22px;
  padding: 28px 30px;
  margin-bottom: 48px;
  box-shadow: 0 10px 28px rgba(26, 18, 32, 0.04);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--pink);
  margin: 0;
}

.error-page h1 {
  margin: 8px 0 12px;
  font-size: 1.6rem;
}

.error-page p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 20px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, transparent 0%, #1a1220 8%);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-top: 28px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #ffb3cf;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-display);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.7s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stack {
    height: 420px;
    margin-top: 8px;
  }

  .phone {
    width: min(190px, 46vw);
  }

  .phone-back {
    transform: translate(-36px, 16px) rotate(-7deg);
  }

  .phone-front {
    transform: translate(40px, -6px) rotate(5deg);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 250, 252, 0.98);
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .content-panel {
    padding: 20px 16px;
  }

  .section {
    padding: 40px 0;
  }

  .shot-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .thumb-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .phone-stack {
    height: 360px;
  }
}
