:root {
  --bg: #0c0c0e;
  --bg-2: #141418;
  --bg-3: #1c1c22;
  --text: #f2f2f4;
  --muted: #a8a8b3;
  --line: #2a2a33;
  --accent: #d42626;
  --accent-2: #ff4d4d;
  --accent-soft: rgba(212, 38, 38, 0.14);
  --radius: 14px;
  --shadow: 0 18px 50px 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:
    radial-gradient(1200px 500px at 10% -10%, rgba(212, 38, 38, 0.18), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(255, 77, 77, 0.08), transparent 50%),
    linear-gradient(180deg, #101014 0%, var(--bg) 40%, #09090b 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 12, 14, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand span {
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(212, 38, 38, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a01616);
  color: #fff;
  box-shadow: 0 10px 28px rgba(212, 38, 38, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section {
  padding: 48px 0;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 48em;
}

.prose h2,
.prose h3 {
  margin: 1.6em 0 0.7em;
  line-height: 1.35;
}

.prose p,
.prose li {
  color: #d7d7df;
  margin-bottom: 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}

.prose strong {
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.shot-card,
.info-card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card,
.info-card {
  padding: 22px;
}

.feature-card h3,
.info-card h3,
.shot-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.feature-card p,
.info-card p,
.shot-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.shot-card .shot-body {
  padding: 16px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.panel {
  background: rgba(28, 28, 34, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  color: var(--accent-2);
  font-weight: 800;
  margin-bottom: 8px;
}

.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--muted);
  margin-top: 10px;
}

.page-hero {
  padding: 42px 0 18px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.legal {
  padding-bottom: 60px;
}

.legal .panel p,
.legal .panel li {
  color: #d0d0d8;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #09090b;
  padding: 36px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #7f7f8a;
  font-size: 0.86rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--accent-2);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.toc a {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
  text-decoration: none;
}

.toc a:hover {
  color: #fff;
  border-color: var(--accent);
}

.inline-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}

.inline-shots figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.inline-shots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.inline-shots figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .footer-grid,
  .card-grid,
  .steps,
  .shot-grid,
  .shot-grid.cols-3,
  .shot-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .section {
    padding: 36px 0;
  }

  .hero-grid,
  .footer-grid,
  .card-grid,
  .steps,
  .shot-grid,
  .shot-grid.cols-3,
  .shot-grid.cols-2,
  .inline-shots {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }
}

.ads-bar {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(12, 12, 14, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}