:root {
  --bg: #fff7f9;
  --bg-soft: #ffe8ef;
  --surface: #ffffff;
  --ink: #1c1216;
  --muted: #6b525c;
  --line: #f0d4dc;
  --brand: #e91e63;
  --brand-deep: #c2185b;
  --brand-soft: #ff4d88;
  --accent: #ff8a3d;
  --shadow: 0 18px 50px rgba(201, 40, 90, 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;
  padding-top: 68px;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, #ffd6e4 0%, transparent 42%),
    radial-gradient(circle at 90% 8%, #ffe0c8 0%, transparent 36%),
    linear-gradient(180deg, #fff9fb 0%, var(--bg) 48%, #fff 100%);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 249, 251, 0.96);
  border-bottom: 1px solid rgba(240, 212, 220, 0.8);
}

.nav {
  position: relative;
  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: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  padding: 2.4rem 0 1.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-copy .lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line);
  color: var(--ink);
}

.phone-stack {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(46%, 230px);
  aspect-ratio: 9 / 19.2;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #1f1a1c;
  background: #111;
  box-shadow: var(--shadow);
  position: absolute;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-back {
  transform: translate(-18%, 8%) rotate(-8deg);
  z-index: 1;
  animation: float-back 5.5s ease-in-out infinite;
}

.phone-front {
  transform: translate(18%, -4%) rotate(6deg);
  z-index: 2;
  animation: float-front 4.8s ease-in-out infinite;
}

@keyframes float-front {
  0%, 100% { transform: translate(18%, -4%) rotate(6deg); }
  50% { transform: translate(18%, -14px) rotate(5deg); }
}

@keyframes float-back {
  0%, 100% { transform: translate(-18%, 8%) rotate(-8deg); }
  50% { transform: translate(-18%, 18px) rotate(-7deg); }
}

.section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.prose {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(240, 212, 220, 0.9);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  box-shadow: 0 10px 30px rgba(80, 30, 50, 0.04);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  margin-top: 1.6rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0.85rem 0;
  color: #2a1c22;
}

.prose ul,
.prose ol {
  margin: 0.7rem 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-family: var(--font-display);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.split.reverse .shot {
  order: 2;
}

.shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.shot-wide img {
  aspect-ratio: 4 / 5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  min-height: 210px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.92;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.9rem;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(20, 8, 14, 0.82));
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq p {
  margin: 0.7rem 0 0.15rem;
  color: var(--muted);
}

.cta-band {
  margin: 1rem 0 2.5rem;
  padding: 1.6rem;
  border-radius: 22px;
  background: linear-gradient(120deg, #ff6f9c, #ff8f55 55%, #ffb457);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.95;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-deep);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #1a1114;
  color: #f7e9ee;
  padding: 2.2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer a {
  color: #ffd0df;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.footer-note {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.breadcrumbs {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: var(--brand);
}

.error-page p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.related-links a {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .split.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .shot {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-stack {
    min-height: 380px;
    order: -1;
  }

  .phone {
    width: min(42%, 190px);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(78vw, 240px);
    padding: 0.55rem;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(80, 30, 50, 0.14);
    z-index: 60;
  }

  .nav-links.open a {
    display: block;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
  }

  .nav-links.open a:hover,
  .nav-links.open a.active {
    background: var(--bg-soft);
  }

  .nav {
    flex-wrap: nowrap;
  }

  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 320px;
  }

  .phone {
    width: min(46%, 160px);
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-front,
  .phone-back,
  .btn,
  .feature,
  .category-card img {
    animation: none !important;
    transition: none !important;
  }
}
