:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --bg: #fffafb;
  --bg-alt: #fdf2f4;
  --card: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(190, 18, 60, 0.08);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #fecdd3 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #fda4af 0%, transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, #fff 40%, var(--bg-alt) 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 251, 0.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  position: relative;
  z-index: 102;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: background 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 400;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-actions {
  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;
  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: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid #fecdd3;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  background: #111;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  animation: fadeRise 1s ease both;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 241, 242, 0.55);
  border-block: 1px solid rgba(254, 205, 211, 0.45);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 52em;
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.35;
  margin: 1.6em 0 0.6em;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 1em;
  color: #292524;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: #292524;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--ink);
}

/* Feature / category 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);
}

.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.media-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f4;
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-card:hover .thumb img {
  transform: scale(1.04);
}

.media-card .body {
  padding: 14px 16px 18px;
}

.media-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-family: var(--display);
  font-weight: 400;
}

.media-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot-frame img {
  width: 100%;
}

.shot-caption {
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item img {
  width: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  animation: softPulse 3s ease infinite;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.toc {
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0 32px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-family: var(--font);
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc li {
  margin-bottom: 6px;
}

.page-hero {
  padding: 40px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.legal {
  padding-bottom: 64px;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #1c1917;
  color: #d6d3d1;
}

.site-footer a {
  color: #fda4af;
}

.site-footer a:hover {
  color: #fecdd3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.2rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.copyright {
  border-top: 1px solid #44403c;
  padding-top: 16px;
  font-size: 0.88rem;
  color: #a8a29e;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5rem);
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 400;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 22px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  margin-right: 6px;
  margin-bottom: 6px;
}

.highlight-box {
  background: linear-gradient(135deg, #fff1f2, #fff);
  border-left: 4px solid var(--brand);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.gallery-row .shot-frame {
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .footer-grid,
  .gallery-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    grid-template-columns: 88px 1fr;
  }

  .feature-item img {
    width: 88px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 101;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover {
    background: var(--brand-soft);
    text-decoration: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .gallery-row {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    min-height: 220px;
  }

  .section {
    padding: 40px 0;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .feature-item img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
  }
}
