:root {
  --bg: #f7f3ef;
  --bg-soft: #fffaf6;
  --ink: #1c1714;
  --muted: #6b5e56;
  --line: rgba(28, 23, 20, 0.1);
  --accent: #c23b4a;
  --accent-deep: #8f2432;
  --accent-soft: #f3d5d8;
  --surface: rgba(255, 250, 246, 0.92);
  --shadow: 0 18px 40px rgba(28, 23, 20, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", 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.8;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(194, 59, 74, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 176, 120, 0.18), transparent 50%),
    linear-gradient(180deg, #faf6f2 0%, var(--bg) 40%, #f3ece6 100%);
  min-height: 100vh;
}

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% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 239, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 23, 20, 0.18) 0%, rgba(28, 23, 20, 0.55) 55%, rgba(28, 23, 20, 0.82) 100%);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3.5rem;
  color: #fffaf6;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  max-width: 18em;
}

.hero-desc {
  margin: 0 0 1.5rem;
  max-width: 32em;
  color: rgba(255, 250, 246, 0.88);
  font-size: 1.02rem;
}

.cta-row {
  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: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 250, 246, 0.12);
  color: #fff;
  border-color: rgba(255, 250, 246, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 250, 246, 0.22);
  color: #fff;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.55), rgba(243, 213, 216, 0.18));
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.prose h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  padding: 0.25rem 0 1rem;
  border-top: 2px solid var(--accent-soft);
}

.feature-item h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.15rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.shot {
  grid-column: span 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
}

.shot:nth-child(1) { animation-delay: 0.05s; }
.shot:nth-child(2) { animation-delay: 0.12s; }
.shot:nth-child(3) { animation-delay: 0.19s; }
.shot:nth-child(4) { animation-delay: 0.26s; }
.shot:nth-child(5) { animation-delay: 0.33s; }
.shot:nth-child(6) { animation-delay: 0.4s; }

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.shot:hover img {
  transform: scale(1.04);
}

.shot figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.shot.wide {
  grid-column: span 6;
}

.shot.wide img {
  aspect-ratio: 16 / 10;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.9rem;
  font-weight: 400;
}

.split-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.split-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 210px;
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
}

.category-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(28, 23, 20, 0.78));
}

.prose {
  max-width: 760px;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 90px;
}

.prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.toc {
  display: grid;
  gap: 0.45rem;
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toc a {
  color: var(--muted);
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
}

.page-hero p {
  max-width: 42rem;
  color: var(--muted);
  margin: 0;
}

.breadcrumb {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.6rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(28, 23, 20, 0.94);
  color: rgba(255, 250, 246, 0.78);
}

.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: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.site-footer p,
.site-footer li {
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: rgba(255, 250, 246, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 250, 246, 0.12);
  font-size: 0.86rem;
  color: rgba(255, 250, 246, 0.55);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-weight: 400;
}

.error-page p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.4rem;
}

.inline-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.4rem 0 1.8rem;
}

.inline-shots img {
  border-radius: 14px;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow);
}

.seo-block {
  margin-top: 1rem;
}

.seo-block + .seo-block {
  margin-top: 2rem;
}

.keyword-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 1rem;
}

.keyword-links a {
  color: var(--muted);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .feature-grid,
  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse {
    direction: ltr;
  }

  .shot,
  .shot.wide {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    background: rgba(247, 243, 239, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 78vh;
  }

  .feature-grid,
  .category-list,
  .inline-shots,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot.wide {
    grid-column: auto;
  }

  .shot img,
  .inline-shots img {
    aspect-ratio: 9 / 15;
  }

  .section {
    padding: 3.2rem 0;
  }
}
