:root {
  --bg: #f7f3f0;
  --bg-soft: #efe8e2;
  --surface: #ffffff;
  --ink: #1a1412;
  --ink-soft: #5c524c;
  --line: #e2d8d0;
  --accent: #c43d5a;
  --accent-deep: #9a2a42;
  --accent-soft: #f6e6ea;
  --shadow: 0 12px 40px rgba(26, 20, 18, 0.08);
  --radius: 14px;
  --max: 1120px;
  --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:
    radial-gradient(1200px 500px at 10% -10%, #f8dce4 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e8ddd4 0%, transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 243, 240, 0.88);
  border-bottom: 1px solid rgba(226, 216, 208, 0.8);
}

.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-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.hero {
  padding: 56px 0 40px;
  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(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.hero-copy .lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36em;
}

.cta-row {
  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: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
}

.gallery figure:nth-child(2) { animation-delay: 0.08s; }
.gallery figure:nth-child(3) { animation-delay: 0.16s; }
.gallery figure:nth-child(4) { animation-delay: 0.24s; }
.gallery figure:nth-child(5) { animation-delay: 0.32s; }
.gallery figure:nth-child(6) { animation-delay: 0.4s; }

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  padding: 12px 14px 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.feature img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 1.6em;
}

.prose h2:first-child,
.prose > h2:first-of-type {
  margin-top: 0;
}

.prose p {
  margin: 0.9em 0;
  color: var(--ink);
}

.prose ul {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.prose li {
  margin: 0.45em 0;
}

.prose .toc {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
}

.prose .toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-deep);
}

.prose .toc a {
  display: inline-block;
  margin-right: 14px;
  margin-bottom: 6px;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.shot-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.page-hero {
  padding: 42px 0 18px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42em;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(226, 216, 208, 0.35));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.site-footer p,
.site-footer li {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.4em 0;
}

.copyright {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 10px;
  font-weight: 400;
}

.error-wrap p {
  color: var(--ink-soft);
  margin: 0 0 22px;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature {
    grid-template-columns: 110px 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 60;
    width: min(240px, calc(100vw - 32px));
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav.open a {
    padding: 10px 16px;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero-visual {
    aspect-ratio: 3 / 4;
    max-height: 520px;
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature img {
    aspect-ratio: 16 / 10;
  }

  .hero {
    padding-top: 28px;
  }
}
