:root {
  --bg: #0b0b0d;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #f2f2f2;
  --text-muted: #a8a8b0;
  --accent: #c41e1e;
  --accent-hover: #e02828;
  --line: #2a2a32;
  --green: #2ecc71;
  --max: 1100px;
  --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;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.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.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  position: relative;
  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.1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  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: 1px;
  transition: 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 */
.hero {
  padding: 48px 0 36px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196, 30, 30, 0.18), transparent 50%),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  text-decoration: none;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-shot {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-shot img {
  border-radius: 10px;
  margin: 0 auto;
  max-height: 520px;
  width: auto;
}

/* Sections */
.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-soft);
}

.section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 820px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.shot-card,
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card h3,
.shot-card h3,
.content-block h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-card p,
.shot-card p,
.content-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-card img {
  border-radius: 8px;
  margin-bottom: 14px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

.shot-wide img {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  object-fit: contain;
  background: #000;
}

.prose {
  max-width: 860px;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
}

.prose p {
  margin-bottom: 14px;
  color: #d6d6dc;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2em;
  color: #d6d6dc;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  text-decoration: underline;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.toc h3 {
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--text-muted);
}

.breadcrumb {
  padding: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-wrap h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.error-wrap p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(20, 20, 24, 0.98);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 120;
  }

  .nav a {
    padding: 12px 16px;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .section {
    padding: 36px 0;
  }

  .shot-card img {
    max-height: 480px;
    object-fit: contain;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
