:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --surface: #ffffff;
  --footer: #1c1917;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 6px;
}

.menu-icon span:nth-child(3) {
  top: 12px;
}

.menu-toggle.is-open .menu-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(225, 29, 72, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(190, 18, 60, 0.1), transparent 50%),
    linear-gradient(165deg, #fff 0%, #fff1f2 45%, #fafaf9 100%);
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand);
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.45;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.35;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

/* Feature / category grids */
.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-item,
.cat-item,
.shot-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-item:hover,
.cat-item:hover,
.shot-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-item img,
.cat-item img,
.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f5f5f4;
}

.feature-item .body,
.cat-item .body,
.shot-item .body {
  padding: 14px 16px 18px;
}

.feature-item h3,
.cat-item h3,
.shot-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-item p,
.cat-item p,
.shot-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Content prose for SEO */
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45em;
}

.prose a {
  font-weight: 600;
}

.toc {
  background: var(--brand-soft);
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.toc a {
  display: inline-block;
  margin: 4px 12px 4px 0;
  color: var(--ink-soft);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

/* Page banner (inner pages) */
.page-banner {
  background:
    linear-gradient(120deg, #fff1f2 0%, #ffffff 55%, #fafaf9 100%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.page-banner p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40em;
}

.breadcrumb {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin: 0 0 12px;
}

.error-page h1 {
  margin: 0 0 12px;
}

.error-page p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #d6d3d1;
  padding: 48px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #a8a29e;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #78716c;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: fadeUp 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-2.cats-mobile,
  .grid-4.vlog-mobile {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero-visual {
    order: -1;
    max-width: 280px;
    margin-inline: auto;
  }

  .section {
    padding: 40px 0;
  }

  .prose {
    padding: 20px 18px;
  }

  .feature-item img,
  .cat-item img,
  .shot-item img {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 520px) {
  .grid-2.cats-mobile {
    grid-template-columns: 1fr;
  }
}
