:root {
  --bg: #0c0c0e;
  --bg2: #141418;
  --bg3: #1c1c22;
  --line: #2a2a32;
  --text: #e8e6e3;
  --muted: #9a9690;
  --accent: #c45c3a;
  --accent2: #e8a87c;
  --link: #d4a574;
  --ok: #5aaf7a;
  --radius: 10px;
  --max: 1100px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  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;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(196, 92, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(232, 168, 124, 0.08), transparent 50%),
    linear-gradient(180deg, #121214 0%, #0c0c0e 40%, #0a0a0c 100%);
  pointer-events: none;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 4px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--accent2);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
  box-shadow: none;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle:hover {
  border-color: var(--accent2);
}

.nav-toggle:hover .nav-toggle-icon,
.nav-toggle:hover .nav-toggle-icon::before,
.nav-toggle:hover .nav-toggle-icon::after {
  background: var(--accent2);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent2);
  border: 1px solid rgba(232, 168, 124, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.35;
  margin-bottom: 14px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent2);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
  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;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #c45c3a, #a84830);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #d46844, #b85238);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--ok);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  margin: 0 auto;
  max-height: 520px;
  width: auto;
  object-fit: contain;
  background: var(--bg2);
}

/* Sections */
section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  max-width: 46em;
}

.alt {
  background: rgba(20, 20, 24, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--accent2);
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Shot grids */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shot-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.shot-item:hover {
  border-color: rgba(196, 92, 58, 0.5);
  transform: translateY(-2px);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg3);
}

.shot-item figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Content prose */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 32px 0 12px;
  padding-top: 8px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--accent2);
}

.prose p {
  margin-bottom: 14px;
  color: #d2cfc9;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.25em;
  color: #d2cfc9;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.toc {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0 28px;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--accent2);
}

.toc ol {
  margin: 0 0 0 1.1em;
}

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--accent2);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq details {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent2);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page header for subpages */
.page-hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.page-body {
  padding: 36px 0 56px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h2 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0a0c;
  padding: 36px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--accent2);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

.notice-18 {
  display: inline-block;
  border: 1px solid rgba(196, 92, 58, 0.5);
  color: var(--accent2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 8px;
}

/* Two col layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.split img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  max-height: 480px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.related {
  margin-top: 36px;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.related ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.related a {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid,
  .shot-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 4px;
    gap: 8px;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .feature-grid,
  .shot-grid,
  .shot-grid.cols-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 0 24px;
  }

  section {
    padding: 36px 0;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
