:root {
  --bg: #0a0a0c;
  --bg-soft: #121218;
  --bg-card: #1a1a22;
  --text: #f2f2f5;
  --text-muted: #9a9aad;
  --accent: #e11d2e;
  --accent-soft: #ff4d5e;
  --line: #2a2a36;
  --radius: 12px;
  --max: 1180px;
  --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; border: 0; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0;
}
.nav a:hover,
.nav a.active { color: #fff; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}
.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(225, 29, 46, 0.22), transparent 55%),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-soft); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.hero-visual img { width: 100%; aspect-ratio: 9/16; object-fit: cover; max-height: 520px; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.section .intro {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 48rem;
}
.section h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
  color: #fff;
}
.section p { margin-bottom: 1rem; color: #d8d8e2; }
.prose { max-width: 52rem; }
.prose p { margin-bottom: 1.1rem; }

/* Category / feature grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.5);
}
.media-card a { color: inherit; text-decoration: none; display: block; }
.media-card a:hover { color: inherit; }
.media-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #000;
}
.media-card .body { padding: 1rem 1.1rem 1.2rem; }
.media-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.media-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.shot-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.shot-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.feature-box h3 { margin-top: 0; }
.feature-box img {
  width: 100%;
  border-radius: 8px;
  margin: 0.85rem 0;
  border: 1px solid var(--line);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.toc ol { margin: 0; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent-soft); }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}
.faq details p { margin: 0.75rem 0 0.25rem; color: var(--text-muted); }

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); }
.page-hero {
  padding: 2.25rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
}
.related a:hover { border-color: var(--accent); color: #fff; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  background: #08080a;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer p, .site-footer a { color: var(--text-muted); font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0.4rem 0; }
.copyright {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  color: #6e6e80;
  font-size: 0.85rem;
  text-align: center;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-wrap h1 { font-size: 4rem; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.error-wrap p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: rgba(18, 18, 24, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 120;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }
  .nav a:hover,
  .nav a.active {
    background: rgba(225, 29, 46, 0.12);
  }
  .hero-grid,
  .card-grid,
  .feature-list,
  .footer-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 2rem 0 1.5rem; }
  .hero-visual img { max-height: 420px; }
  .section { padding: 2.25rem 0; }
}

@media (max-width: 520px) {
  .shot-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  body { font-size: 15px; }
}
