:root {
  --bg: #0b0b0f;
  --bg-soft: #14141c;
  --bg-card: #1a1a24;
  --line: #2a2a38;
  --text: #f2f2f5;
  --muted: #a8a8b8;
  --accent: #e11d48;
  --accent-soft: #fb7185;
  --gold: #fbbf24;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 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;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(225, 29, 72, 0.18);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(225, 29, 72, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(251, 191, 36, 0.12), transparent 45%),
    linear-gradient(180deg, #12121a 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(225, 29, 72, 0.45);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: #fff;
}

.hero-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-float {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 42%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Sections */
section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  max-width: 48em;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.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;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.55);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}

.feature-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-copy p {
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-copy ul {
  margin: 12px 0 0 1.2em;
  color: var(--muted);
}

.feature-copy li {
  margin-bottom: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  max-width: 820px;
}

.prose h2,
.prose h3 {
  margin: 28px 0 12px;
  line-height: 1.35;
}

.prose p {
  margin-bottom: 14px;
  color: #d8d8e2;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.25em;
  color: #d8d8e2;
}

.prose li {
  margin-bottom: 8px;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 28px;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--muted);
}

.toc a {
  color: var(--accent-soft);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.links-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.links-box a {
  display: block;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
}

.links-box a:hover {
  border-color: var(--accent);
}

.page-hero {
  padding: 42px 0 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #15151e, var(--bg));
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 46em;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.content-wrap {
  padding: 36px 0 64px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #09090d;
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #7d7d8c;
  font-size: 0.88rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: var(--accent);
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: rise 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

.card,
.feature-row,
.stat {
  animation: rise 0.55s ease both;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .card-grid,
  .footer-grid,
  .stats,
  .links-box {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-media {
    order: 0;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: rgba(11, 11, 15, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-float {
    width: 38%;
    right: 8px;
    bottom: -10px;
  }
}

@media (max-width: 560px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card img {
    aspect-ratio: 16 / 11;
  }
}
