:root {
  --pink: #e91e63;
  --pink-dark: #c2185b;
  --orange: #ff8a00;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #ebebeb;
  --bg: #fff8f5;
  --card: #ffffff;
  --max: 1120px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(233, 30, 99, 0.08);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  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(--pink-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

ul {
  list-style: none;
}

.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.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--pink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(194, 24, 91, 0.88), rgba(255, 138, 0, 0.78)),
    url("/homefeat.jpg") center / cover no-repeat;
  min-height: clamp(360px, 58vh, 560px);
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 26, 0.35));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  max-width: 720px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-brand span {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 560px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--pink-dark);
}

.btn-primary:hover {
  background: #fff5f8;
  color: var(--pink-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin-bottom: 10px;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.prose p {
  margin-bottom: 16px;
  color: #333;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
}

.prose ul {
  margin: 0 0 16px 1.2em;
  list-style: disc;
  color: #333;
}

.prose li {
  margin-bottom: 8px;
}

/* Grids */
.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.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-card,
.shot-card,
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.shot-card:hover,
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(233, 30, 99, 0.14);
}

.shot-card img,
.cat-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #f3f3f3;
}

.cat-card img {
  aspect-ratio: 3 / 4;
}

.card-body {
  padding: 14px 16px 18px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card {
  padding: 22px;
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--pink-dark);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.icon-dot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 700;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

/* Page hero (inner) */
.page-hero {
  padding: 42px 0 24px;
  background: linear-gradient(120deg, #fff1f5, #fff7ef);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--muted);
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-wrap h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  background: linear-gradient(120deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  background: #1f1f1f;
  color: #ddd;
  padding: 42px 0 24px;
  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-bottom: 12px;
  font-size: 1rem;
}

.site-footer a {
  color: #bbb;
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand strong {
  color: #fff;
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--muted);
}

.toc a {
  color: var(--pink-dark);
}

.highlight-box {
  background: linear-gradient(120deg, #fff1f5, #fff8ef);
  border-left: 4px solid var(--pink);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-cloud a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.tag-cloud a:hover {
  border-color: var(--pink);
  color: var(--pink);
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    z-index: 102;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.12);
  }

  .nav.open a {
    padding: 12px 16px;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .shot-card img,
  .cat-card img {
    aspect-ratio: 16 / 10;
    object-position: top;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 48px 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner,
.section-head {
  animation: fadeUp 0.6s ease both;
}
