:root {
  --bg: #0c0c0f;
  --bg-soft: #15151a;
  --bg-card: #1c1c24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #a0a0ab;
  --accent: #ff3b6b;
  --accent-2: #ff8a3d;
  --grad: linear-gradient(135deg, #ffb347 0%, #ff3b6b 55%, #c43bff 100%);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --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;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  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;
  backdrop-filter: blur(16px);
  background: rgba(12, 12, 15, 0.88);
  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;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 59, 107, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 59, 107, 0.22), transparent 45%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 179, 71, 0.16), transparent 40%),
    linear-gradient(180deg, #121218 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.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;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 59, 107, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 59, 107, 0.45);
  background: rgba(255, 59, 107, 0.08);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-head p {
  color: var(--muted);
}

.prose {
  color: #d7d7df;
  font-size: 1.02rem;
}

.prose p {
  margin-bottom: 16px;
}

.prose h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.prose h4 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
  color: #d7d7df;
}

.prose a {
  color: #ff7a9a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: #fff;
  font-weight: 650;
}

/* Cards / grids */
.feature-grid,
.cat-grid,
.shot-grid,
.faq-grid,
.link-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.cat-card,
.shot-card,
.faq-item,
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card,
.faq-item,
.link-card {
  padding: 22px;
}

.feature-card h3,
.faq-item h3,
.link-card h3,
.cat-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.feature-card p,
.faq-item p,
.link-card p,
.cat-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-card img,
.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.cat-card .body,
.shot-card .body {
  padding: 14px 14px 16px;
}

.shot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-card img {
  aspect-ratio: 3 / 4;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 59, 107, 0.12);
  color: #ffb3c5;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 59, 107, 0.22);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-weight: 700;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.link-grid {
  grid-template-columns: repeat(3, 1fr);
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc ol {
  list-style: decimal;
  margin-left: 1.2em;
}

.toc a {
  color: #ff9eb5;
}

.toc a:hover {
  text-decoration: underline;
}

.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 59, 107, 0.18), transparent 40%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.content-wrap {
  padding: 40px 0 72px;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 16px;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #09090c;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #777784;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .faq-grid,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: #15151c;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding: 42px 0 36px;
  }

  .section {
    padding: 48px 0;
  }

  .feature-grid,
  .faq-grid,
  .link-grid,
  .cat-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .cat-card img,
  .shot-card img,
  .media-frame img {
    aspect-ratio: 4 / 5;
  }
}
