﻿:root {
  --brand: #e85d4c;
  --brand-dark: #c94436;
  --brand-soft: rgba(232, 93, 76, 0.12);
  --ink: #1a1514;
  --ink-soft: #4a403e;
  --muted: #7a6f6c;
  --paper: #faf7f5;
  --paper-2: #f3eeea;
  --line: #e8e0db;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 21, 20, 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;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

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(250, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(26, 21, 20, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  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);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 100px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(26, 21, 20, 0.55) 0%, rgba(26, 21, 20, 0.72) 55%, rgba(26, 21, 20, 0.88) 100%),
    url("/o.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(232, 93, 76, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(232, 93, 76, 0.15), transparent 55%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px;
  max-width: 520px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232, 93, 76, 0.35);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  animation: fadeUp 0.7s ease both;
}

.feature-item:nth-child(2) { animation-delay: 0.08s; }
.feature-item:nth-child(3) { animation-delay: 0.16s; }

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 16px 0 8px;
  letter-spacing: 0.02em;
}

.feature-item p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.feature-item:hover .shot img,
.cat-card:hover .shot img,
.split-media:hover img {
  transform: scale(1.03);
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-card .shot {
  border-radius: 0;
  box-shadow: none;
  max-height: 280px;
  aspect-ratio: 3 / 4;
}

.cat-body {
  padding: 14px 16px 18px;
}

.cat-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.cat-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  margin: 8px 0 14px;
}

.split-text p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.split-text ul {
  margin: 12px 0 20px;
}

.split-text li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.split-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* Prose / SEO content */
.prose {
  max-width: 820px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 36px 0 14px;
  letter-spacing: 0.02em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 8px;
  list-style: disc;
}

.prose ol li {
  list-style: decimal;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  font-family: var(--font-body);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc li {
  margin-bottom: 6px;
  list-style: decimal;
  color: var(--ink-soft);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.gallery .shot {
  max-height: 240px;
  aspect-ratio: 3 / 4;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, #2a1f1d 0%, #3d2824 50%, #1a1514 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  max-width: 560px;
  margin-inline: auto;
}

/* Page hero (inner) */
.page-hero {
  padding: 56px 0 40px;
  background:
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 8rem);
  color: var(--brand);
  line-height: 1;
  letter-spacing: 0.04em;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 12px 0;
}

.error-page p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 500;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 960px) {
  .feature-grid,
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .hero {
    min-height: 78vh;
    padding: 80px 0 56px;
    align-items: flex-end;
  }

  .section {
    padding: 52px 0;
  }

  .feature-grid,
  .cat-grid,
  .steps,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot {
    max-height: 360px;
  }

  .split-media {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: 2.4rem;
  }
}

/* Ads sticky bar (base; details also injected by ads.js) */
.ads-sticky {
  position: sticky;
  top: 68px;
  z-index: 90;
}
body.has-ads-bar .nav {
  /* keep mobile nav below ads when open */
}