:root {
  --pink: #ff4d8d;
  --pink-deep: #e83574;
  --pink-soft: #ffe4ef;
  --ink: #1a1220;
  --ink-soft: #4a3a4f;
  --muted: #7a6a7f;
  --line: rgba(26, 18, 32, 0.08);
  --paper: #fffafc;
  --white: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(232, 53, 116, 0.12);
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-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);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 77, 141, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 180, 210, 0.28), transparent 50%),
    linear-gradient(180deg, #fff7fa 0%, var(--paper) 40%, #fff 100%);
  min-height: 100vh;
}

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(100% - 2rem, var(--max));
  margin-inline: 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 var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 77, 141, 0.28);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 86vh, 720px);
  display: grid;
  align-items: end;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 18, 32, 0.25) 0%, rgba(26, 18, 32, 0.55) 45%, rgba(26, 18, 32, 0.82) 100%),
    linear-gradient(90deg, rgba(232, 53, 116, 0.35), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.5rem;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.35;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.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.35rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6ea3, var(--pink-deep));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(6px);
}

/* Sections */
.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 228, 239, 0.45), rgba(255, 255, 255, 0.2));
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.3rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Feature mosaic */
.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.feature-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  animation: floatSoft 6s ease-in-out infinite;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-body {
  padding: 1rem 1.05rem 1.15rem;
}

.shot-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.shot-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Category chips as text links, not pill clusters */
.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.category-list a {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.category-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.2rem 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--pink);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

/* Page hero for inner pages */
.page-hero {
  padding: 3.2rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--ink-soft);
}

.page-content {
  padding: 0 0 4rem;
}

.page-content .content-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* Error pages */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.error-page .error-box {
  max-width: 520px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--pink);
  margin: 0 0 0.4rem;
}

.error-page h1 {
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
}

.error-page p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

.error-page img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  margin: 0 auto 1.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #1a1220;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.8rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #ffb3cf;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  color: var(--ink-soft);
}

/* TOC */
.toc {
  margin: 1.2rem 0 1.8rem;
  padding: 1rem 1.1rem;
  background: var(--pink-soft);
  border-radius: 12px;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.toc a {
  color: var(--ink-soft);
}

.toc a:hover {
  color: var(--pink-deep);
}

/* Animations */
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal {
  animation: riseIn 0.8s ease both;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(255, 250, 252, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.2rem;
  }

  .nav-cta {
    margin-top: 0.6rem;
    width: 100%;
  }

  .feature-grid,
  .showcase,
  .steps,
  .footer-grid,
  .category-list {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: 1fr 1fr;
  }

  .feature-visual {
    min-height: 320px;
  }

  .hero-inner {
    padding: 4.5rem 0 2.6rem;
  }

  .hero-brand {
    font-size: 2.2rem;
  }

  .hero-brand img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 560px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
  }
}
