:root {
  --brand: #e91e8c;
  --brand-dark: #c2186b;
  --brand-soft: #fff0f7;
  --ink: #1a1a2e;
  --muted: #5c5c72;
  --line: #f0d6e4;
  --paper: #fffafc;
  --surface: #ffffff;
  --accent: #2bb8a6;
  --shadow: 0 12px 40px rgba(233, 30, 140, 0.12);
  --radius: 18px;
  --max: 1120px;
  --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(ellipse 80% 50% at 10% -10%, rgba(233, 30, 140, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(43, 184, 166, 0.07), transparent 50%),
    linear-gradient(180deg, #fff7fb 0%, var(--paper) 40%, #fff 100%);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 400;
}

.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff5aad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.28);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
}

/* Overlapping phone screenshots */
.hero-phones {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(52%, 240px);
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.85);
  animation: floatY 5.5s ease-in-out infinite;
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
  object-position: top;
}

.phone-back {
  position: absolute;
  left: 8%;
  top: 8%;
  transform: rotate(-8deg);
  z-index: 1;
  animation-delay: -1.2s;
}

.phone-front {
  position: relative;
  z-index: 2;
  margin-left: 22%;
  transform: rotate(5deg);
  animation-delay: 0s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 5deg));
  }
  50% {
    transform: translateY(-12px) rotate(var(--r, 5deg));
  }
}

.phone-back {
  --r: -8deg;
}

.phone-front {
  --r: 5deg;
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 240, 247, 0.55), rgba(255, 255, 255, 0.2));
  border-block: 1px solid rgba(240, 214, 228, 0.6);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.7rem;
  font-weight: 400;
  line-height: 1.35;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.prose {
  color: var(--ink);
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
  font-weight: 400;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.55rem;
  font-weight: 400;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Category showcase */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #eee;
  isolation: isolate;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

.cat-card:hover img {
  transform: scale(1.04);
}

.cat-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.78));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Split media blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media .shot {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  max-width: 320px;
  margin-inline: auto;
}

.split-media .shot img {
  width: 100%;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  object-position: top;
}

.split-body h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.8rem;
  font-weight: 400;
}

.split-body p {
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Links panel */
.links-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.link-tile {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  color: var(--ink);
}

.link-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
}

.link-tile span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.6rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-soft), transparent);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.6rem;
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.page-content {
  padding: 2.4rem 0 3.5rem;
}

.crumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.crumb a {
  color: var(--muted);
}

.crumb a:hover {
  color: var(--brand);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 0.4rem;
  color: var(--brand);
  font-weight: 400;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.8rem 0 1.8rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  font-weight: 400;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #ff9ec8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: space-between;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  .phone,
  .cat-card img,
  .feature-item,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .links-panel {
    grid-template-columns: 1fr;
  }

  .hero-phones {
    min-height: 360px;
    order: -1;
  }

  .phone {
    width: min(46%, 200px);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--brand-soft);
  }

  .hero {
    padding-top: 1.8rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}
