:root {
  --bg: #0c0c0e;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --line: #2a2a32;
  --text: #f2f2f4;
  --muted: #a8a8b3;
  --brand: #c4121a;
  --brand-soft: #8b0e14;
  --accent: #e8e8ea;
  --ok: #3dba6a;
  --max: 1120px;
  --radius: 10px;
  --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.75;
  font-size: 16px;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #ff6b72; text-decoration: none; }
a:hover { color: #ff9499; text-decoration: underline; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover,
.nav a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 18, 26, 0.22), transparent 55%),
    linear-gradient(180deg, #121216 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 h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  margin: 10px 0 16px;
  font-weight: 800;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 36em;
}

.eyebrow {
  display: inline-block;
  color: #ff8a90;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: #555; color: #fff; }

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Sections */
section { padding: 56px 0; }
.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 10px;
  font-weight: 800;
}
.section-desc {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 46em;
}

.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature p { color: var(--muted); font-size: 0.95rem; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shot {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.shot figcaption {
  padding: 10px 12px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.prose h2, .prose h3 {
  margin: 1.4em 0 0.55em;
  line-height: 1.35;
}
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin-bottom: 1em; color: #d6d6dc; }
.prose ul, .prose ol {
  margin: 0 0 1.1em 1.2em;
  color: #d6d6dc;
}
.prose li { margin-bottom: 0.45em; }
.prose strong { color: #fff; font-weight: 700; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9rem; }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

.cta-band {
  text-align: center;
  padding: 48px 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(196, 18, 26, 0.25), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 20px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  background: #09090b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #fff;
}
.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.copyright {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #777;
  font-size: 0.85rem;
}

/* Inner pages */
.page-hero {
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #151518, var(--bg));
}
.page-hero h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 8px;
}
.page-hero p { color: var(--muted); }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--muted); }
.content-wrap { padding: 36px 0 56px; max-width: 820px; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}
.error-page .code {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h1 { margin-bottom: 10px; }
.error-page p { color: var(--muted); margin-bottom: 22px; }

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 280px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { position: relative; flex-wrap: nowrap; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    z-index: 60;
  }
  .nav.open { display: flex; }
  .feature-grid,
  .shot-grid,
  .steps { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .hero { padding: 32px 0 28px; }
}

@media (min-width: 721px) {
  .nav {
    display: flex !important;
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px 18px;
    padding: 0;
    background: transparent;
    border-bottom: none;
  }
}
