:root {
  --brand: #e91e8c;
  --brand-deep: #c2186a;
  --brand-soft: #ffe4f1;
  --brand-mist: #fff5fa;
  --ink: #2a1a24;
  --muted: #6b5560;
  --line: rgba(233, 30, 140, 0.16);
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 48px rgba(194, 24, 106, 0.12);
  --radius: 22px;
  --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;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.85;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffd6ea 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, #ffc2df 0%, transparent 50%),
    linear-gradient(180deg, #fff8fb 0%, #fff 38%, #fff5fa 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 251, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  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(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #ff6bab);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(233, 30, 140, 0.28);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 2.4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff6bab);
  color: #fff;
  box-shadow: 0 12px 28px rgba(233, 30, 140, 0.3);
}

.btn-ghost {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--line);
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Overlapping phone screenshots */
.phone-stack {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(240px, 42vw);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #fff, #ffe8f3);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.phone img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.phone-back {
  position: absolute;
  transform: translate(-18%, -4%) rotate(-7deg);
  z-index: 1;
  animation: floatA 5.5s ease-in-out infinite;
}

.phone-front {
  position: relative;
  transform: translate(18%, 6%) rotate(5deg);
  z-index: 2;
  animation: floatB 6s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(-18%, -4%) rotate(-7deg); }
  50% { transform: translate(-18%, -12px) rotate(-5deg); }
}

@keyframes floatB {
  0%, 100% { transform: translate(18%, 6%) rotate(5deg); }
  50% { transform: translate(18%, calc(6% - 10px)) rotate(3deg); }
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.prose {
  font-size: 1.02rem;
}

.prose p {
  margin: 0 0 1.05rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.prose h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(42, 26, 36, 0.04);
  transition: transform 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
}

.feature-card .body {
  padding: 1rem 1.05rem 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-family: var(--font-display);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.split-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.shot-pair img {
  border-radius: 18px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #fff;
}

.info-panel {
  background: linear-gradient(145deg, #fff, var(--brand-mist));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.06);
}

.info-panel h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.85rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
}

.step .num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.safe-box {
  border-left: 4px solid var(--brand);
  background: #fff;
  border-radius: 0 18px 18px 0;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.related-links a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-links a:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  color: var(--brand-deep);
}

.related-links strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.related-links span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Inner pages */
.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem 2rem;
  box-shadow: 0 10px 28px rgba(42, 26, 36, 0.04);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page img {
  width: 120px;
  margin: 0 auto 1rem;
  border-radius: 24px;
}

.error-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
}

.error-page p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, #ffeaf4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  .phone-back,
  .phone-front {
    animation: none;
  }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .feature-grid,
  .steps,
  .related-links,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .nav-cta {
    margin: 0.35rem 0.4rem 0.55rem;
    text-align: center;
  }

  .hero-grid,
  .split,
  .feature-grid,
  .steps,
  .related-links,
  .footer-grid,
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 380px;
    margin-top: 0.5rem;
  }

  .phone {
    width: min(190px, 46vw);
  }

  .section {
    padding: 2.2rem 0;
  }

  .legal {
    padding: 1.2rem;
  }
}
