:root {
  --bg: #0a0a0c;
  --bg-soft: #121218;
  --bg-card: #1a1a22;
  --line: #2a2a35;
  --text: #f3f3f6;
  --muted: #9a9aaa;
  --brand: #ff3d8a;
  --brand-2: #ff7a4d;
  --accent: #b56bff;
  --ok: #3ddc97;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 61, 138, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(181, 107, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #0d0d12 0%, var(--bg) 40%, #09090b 100%);
  color: var(--text);
  line-height: 1.75;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-top {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  z-index: 1000;
  background: #0a0a0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff7ab0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(255, 61, 138, 0.35);
}

.brand span {
  font-size: 1.15rem;
  background: linear-gradient(90deg, #fff, #ff9fc4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 61, 138, 0.35);
}

.hero {
  padding: 3.2rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: #ffb0cc;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 850;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 61, 138, 0.32);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.95;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 61, 138, 0.5);
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 42%;
  height: 42%;
  background: radial-gradient(circle, rgba(255, 61, 138, 0.35), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.section {
  padding: 2.8rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--muted);
  max-width: 46rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 138, 0.45);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #111;
}

.shot-card figcaption {
  padding: 0.9rem 1rem 1.05rem;
}

.shot-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.shot-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.feature h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  background: rgba(18, 18, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.prose h2,
.prose h3 {
  margin: 1.6rem 0 0.75rem;
  line-height: 1.35;
}

.prose h2:first-child,
.prose > h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #d7d7e2;
  margin-bottom: 0.95rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  background: rgba(255, 61, 138, 0.08);
  border: 1px solid rgba(255, 61, 138, 0.22);
  border-radius: 12px;
}

.toc a {
  color: #ffc2d8;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.split img {
  border-radius: 14px;
  border: 1px solid var(--line);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(181, 107, 255, 0.14);
  border: 1px solid rgba(181, 107, 255, 0.28);
  color: #e6d4ff;
  font-size: 0.85rem;
}

.page-hero {
  padding: 2.4rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 42rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #08080a;
  padding: 2.2rem 0 2.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.copyright {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f6f7c;
  font-size: 0.85rem;
}

.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    margin: 0;
    background: #14141c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    z-index: 1100;
  }

  .nav.open {
    display: flex;
    position: absolute;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(255, 61, 138, 0.12);
  }

  .shot-grid,
  .toc {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .shot-card img {
    aspect-ratio: 3 / 4;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid,
.shot-card,
.feature,
.prose {
  animation: rise 0.55s ease both;
}

.shot-card:nth-child(2) { animation-delay: 0.05s; }
.shot-card:nth-child(3) { animation-delay: 0.1s; }
.shot-card:nth-child(4) { animation-delay: 0.15s; }
.shot-card:nth-child(5) { animation-delay: 0.2s; }
.shot-card:nth-child(6) { animation-delay: 0.25s; }

/* Ads bar (desktop follows sticky .site-top; mobile is fixed with it) */
.ads-sticky {
  position: relative;
  z-index: 1;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.75rem 0.35rem;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  background: transparent;
  margin: 0 auto;
  max-width: 1120px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a22;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 61, 138, 0.28);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  margin-top: 4px;
  font-size: 11px;
  color: #b8b8c6;
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
