:root {
  --bg: #f6f4f1;
  --bg-soft: #efeae4;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #5f5750;
  --line: #e4ddd4;
  --brand: #c45c2a;
  --brand-deep: #9a3f18;
  --brand-soft: #f3e0d4;
  --accent: #2a6f6b;
  --shadow: 0 18px 40px rgba(28, 25, 23, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "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(circle at 12% 8%, rgba(196, 92, 42, 0.12), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(42, 111, 107, 0.1), transparent 32%),
    linear-gradient(180deg, #faf8f5 0%, var(--bg) 48%, #f3efe9 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 245, 0.88);
  border-bottom: 1px solid rgba(228, 221, 212, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 3.2rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: floatIn 0.9s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -10% 18%;
  height: 42%;
  background: radial-gradient(circle, rgba(196, 92, 42, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section {
  padding: 2.8rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 48rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.2rem;
}

.feature-grid,
.shot-grid,
.cat-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.shot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-item {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

.cat-item strong {
  font-size: 0.98rem;
}

.cat-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top;
  max-height: 640px;
}

.steps {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.link-grid {
  grid-template-columns: repeat(4, 1fr);
}

.link-card {
  display: block;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, var(--brand-soft));
  border: 1px solid var(--line);
  color: var(--ink);
}

.link-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.link-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero {
  padding: 2.4rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.legal {
  padding-bottom: 3rem;
}

.legal .panel h2 {
  margin-top: 1.8rem;
  font-size: 1.2rem;
}

.legal .panel h2:first-child {
  margin-top: 0;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.copyright {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.error-page p {
  margin: 0 0 1.3rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shot-grid,
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: relative;
    flex-wrap: nowrap;
    min-height: 60px;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(72vw, 240px);
    padding: 0.75rem 0.9rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.55rem 0.35rem;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--brand-soft);
  }

  .hero {
    padding-top: 1.8rem;
  }

  .feature-grid,
  .shot-grid,
  .link-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .shot-card img,
  .cat-item img,
  .split img {
    aspect-ratio: 3 / 4;
    max-height: 520px;
  }

  /* 移动端：导航固定，内容区整体滚动（有广告时由 ads.js 接管） */
  body:not(.has-ads-bar) .site-header {
    position: sticky;
    top: 0;
  }
}

/* sticky ads bar sits under header (desktop) */
.site-header {
  z-index: 50;
}

body.has-ads-bar .site-header {
  box-shadow: none;
}
