:root {
  --bg: #0b0b0d;
  --bg-2: #141418;
  --bg-3: #1c1c22;
  --text: #f2f2f5;
  --muted: #a8a8b3;
  --line: #2a2a33;
  --accent: #c62828;
  --accent-2: #e53935;
  --accent-soft: rgba(198, 40, 40, 0.15);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff6b6b;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

/* Ads sticky bar sits under header via ads.js (#zk-ads-bar) */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-3);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--accent-2) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(198, 40, 40, 0.22), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(80, 80, 100, 0.18), transparent 45%),
    linear-gradient(180deg, #121217 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8a80;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid rgba(198, 40, 40, 0.35);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-2);
}

.hero-float {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 42%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.section-head {
  margin-bottom: 32px;
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  color: #ff8a80;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Cards / grids */
.feature-grid,
.shot-grid,
.cat-grid,
.link-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.content-card,
.shot-card,
.cat-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card,
.content-card {
  padding: 24px;
}

.feature-card h3,
.content-card h3,
.shot-card h3,
.cat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p,
.content-card p,
.shot-card p,
.cat-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.shot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-card img,
.cat-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.shot-card .body,
.cat-card .body {
  padding: 16px;
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-card img {
  aspect-ratio: 3 / 4;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.prose h2,
.prose h3 {
  margin: 1.4em 0 0.6em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1em;
  color: #d5d5dc;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.2em;
  color: #d5d5dc;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: #fff;
}

.media-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}

.media-block img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 560px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.faq details {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 10px;
  color: #ff8a80;
}

.faq p {
  color: var(--muted);
}

.link-grid {
  grid-template-columns: repeat(3, 1fr);
}

.link-card {
  display: block;
  padding: 20px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

.link-card:hover {
  border-color: var(--accent);
  color: #fff;
}

.link-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Page hero for inner pages */
.page-hero {
  padding: 48px 0 28px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(198, 40, 40, 0.18), transparent 45%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 720px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.page-content {
  padding: 48px 0 72px;
}

.legal {
  max-width: 860px;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.error-wrap h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  margin-bottom: 12px;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand p,
.footer-col p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

.toc {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.toc a:hover {
  color: #fff;
}

.download-panel {
  background: linear-gradient(135deg, #221016, #1a1a22);
  border: 1px solid rgba(198, 40, 40, 0.35);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.download-panel h2 {
  margin-bottom: 8px;
}

.download-panel p {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .footer-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shot-grid,
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-float {
    position: static;
    width: 56%;
    margin-top: 16px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding: 42px 0 36px;
  }

  .section {
    padding: 48px 0;
  }

  .feature-grid,
  .shot-grid,
  .cat-grid,
  .steps,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .shot-card img,
  .cat-card img,
  .media-block img {
    aspect-ratio: 9 / 16;
    max-height: 480px;
  }
}
