:root {
  --brand: #c45c6a;
  --brand-dark: #9a3d4a;
  --brand-soft: #f8e8ea;
  --ink: #1a1514;
  --ink-soft: #4a4240;
  --muted: #7a706e;
  --line: #e8dfe0;
  --bg: #fffaf9;
  --bg-alt: #f3ecec;
  --card: #ffffff;
  --max: 1100px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(26, 21, 20, 0.08);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti 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(ellipse 80% 50% at 10% -10%, #f7d6db 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, #f0e4d8 0%, transparent 50%),
    var(--bg);
  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% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand);
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.hero-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--brand-dark);
}

.hero-desc {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(196, 92, 106, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(243, 236, 236, 0.65), transparent);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46em;
}

/* Feature / gallery grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-alt);
}

.feature-card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-item figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Content article for SEO */
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.article h2,
.article h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  scroll-margin-top: 5rem;
}

.article h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.6rem;
  color: var(--brand-dark);
}

.article p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.article ul,
.article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.article li {
  margin-bottom: 0.4rem;
}

.toc {
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  color: var(--brand-dark);
}

.inline-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.inline-shots figure {
  margin: 0;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.inline-shots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.inline-shots figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Page header for inner pages */
.page-hero {
  padding: 2.2rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--brand-dark);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content ul {
  padding-left: 1.2rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 0 0 0.5rem;
  color: var(--brand);
}

.error-page p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #2a2222;
  color: #d8cece;
}

.footer-inner {
  padding: 2rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #f0d6da;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-col h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 0 1.2rem;
  font-size: 0.85rem;
  color: #9e9191;
  text-align: center;
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual,
.feature-card,
.article {
  animation: rise-in 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.16s;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% - 0.15rem);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 1rem;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--brand-soft);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .feature-grid,
  .shot-grid,
  .inline-shots {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .article,
  .legal-content {
    padding: 1.2rem 1rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
