:root {
  --brand: #c42a4a;
  --brand-dark: #9a1f38;
  --brand-soft: #fce8ed;
  --ink: #1a1216;
  --ink-soft: #5c4a52;
  --muted: #8a7580;
  --line: #eadde2;
  --paper: #fff9fb;
  --surface: #ffffff;
  --grad: linear-gradient(145deg, #fff5f7 0%, #f7eef8 45%, #eef4ff 100%);
  --shadow: 0 18px 40px rgba(154, 31, 56, 0.08);
  --radius: 18px;
  --max: 1120px;
  --nav-h: 72px;
  --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: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 249, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 221, 226, 0.8);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo:hover {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.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.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--grad);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196, 42, 74, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(120, 90, 160, 0.08), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--ink);
  margin: 0 0 0.35em;
  letter-spacing: 0.04em;
}

.hero-brand span {
  color: var(--brand);
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 28em;
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 50px rgba(154, 31, 56, 0.18));
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise 0.8s ease both;
}

.reveal-delay {
  animation-delay: 0.15s;
}

.reveal-delay-2 {
  animation-delay: 0.3s;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  color: var(--brand);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 52rem;
}

.prose p {
  margin-bottom: 1.15em;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Feature / content grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #1a1216;
}

.feature-item .body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.feature-item h3 {
  margin-bottom: 0.35em;
  font-size: 1.2rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.shot-grid figure:hover img {
  transform: scale(1.03);
}

.shot-grid figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--surface);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}

.split-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
  margin-inline: auto;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li a,
.pill-list li span {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.88rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.4rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.faq {
  display: grid;
  gap: 0.85rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.cta-band {
  margin: 2rem 0 0;
  padding: 2.5rem;
  border-radius: 24px;
  background: linear-gradient(120deg, #c42a4a, #8b1e4d 55%, #4a2a6b);
  color: #fff;
  text-align: center;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  opacity: 0.9;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  background: #fff;
  color: var(--brand);
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.page-hero {
  padding: 3rem 0 2rem;
  background: var(--grad);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.4em;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.content-page {
  padding: 3rem 0 4.5rem;
}

.content-page .prose {
  max-width: 48rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--grad);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.3em;
}

/* Footer */
.site-footer {
  background: #1a1216;
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .split.reverse .split-media,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual img {
    max-height: 55vh;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(255, 249, 251, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 2rem 0 2.5rem;
    gap: 2rem;
  }

  .feature-grid,
  .shot-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-band {
    padding: 1.75rem 1.25rem;
  }

  .split-media img,
  .feature-item img {
    max-height: 420px;
  }
}
