:root {
  --bg: #0a0a0c;
  --bg-soft: #121216;
  --bg-card: #1a1a20;
  --bg-elevated: #22222a;
  --text: #f2f2f5;
  --text-muted: #a0a0ae;
  --text-dim: #6e6e7a;
  --accent: #e6364f;
  --accent-soft: #ff5a70;
  --accent-dark: #b01f35;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header-h: 68px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 32px, 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(14px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  background: linear-gradient(90deg, #fff, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(230, 54, 79, 0.15);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-card);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(230, 54, 79, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 85% 10%, rgba(120, 40, 80, 0.18), transparent 50%),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(230, 54, 79, 0.12);
  border: 1px solid rgba(230, 54, 79, 0.35);
  color: var(--accent-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 54, 79, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: #fff;
  display: block;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-strong);
  aspect-ratio: 3 / 4;
  max-height: 520px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 12, 0.85) 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head .eyebrow {
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.section-head p {
  margin-bottom: 0;
}

/* Cards / grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(230, 54, 79, 0.45);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.media-card:hover {
  border-color: rgba(230, 54, 79, 0.4);
  transform: translateY(-3px);
}

.media-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.media-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-card:hover .thumb img {
  transform: scale(1.04);
}

.media-card .body {
  padding: 1rem 1.05rem 1.15rem;
}

.media-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.media-card p {
  margin: 0;
  font-size: 0.9rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.shot-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  aspect-ratio: 9 / 16;
}

.shot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list-check li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: var(--text-muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* TOC / content pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, rgba(230, 54, 79, 0.18), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 40rem;
  margin: 0;
}

.content-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.toc h2 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.toc a {
  display: block;
  color: var(--text-muted);
  padding: 0.35rem 0;
  font-size: 0.92rem;
}

.toc a:hover {
  color: var(--accent-soft);
}

.prose {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 2rem;
}

.prose h2 {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 1.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--text-dim);
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq details p {
  margin: 0.7rem 0 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.tag:hover {
  border-color: var(--accent);
  color: #fff;
}

.cta-band {
  margin: 0;
  padding: 2.75rem 0;
  background:
    linear-gradient(135deg, rgba(230, 54, 79, 0.18), rgba(20, 20, 28, 0.9)),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.6rem;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-col h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  padding: 0.25rem 0;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.related-links a {
  color: var(--text-muted);
}

.related-links a:hover {
  color: var(--accent-soft);
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .content-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .feature-grid,
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 12, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .hero-visual {
    max-height: 420px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .media-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prose {
    padding: 1.25rem;
  }

  .hero {
    padding: 2rem 0 1.75rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .brand span {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .feature-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
}
