:root {
  --bg: #0a0612;
  --bg-elevated: #140c1f;
  --bg-card: #1a1028;
  --bg-soft: #221533;
  --text: #f5f0fa;
  --text-muted: #b9a8cc;
  --text-dim: #8a7699;
  --accent: #ff4d8d;
  --accent-2: #ff7a4d;
  --accent-grad: linear-gradient(135deg, #ff4d8d 0%, #ff7a4d 100%);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --container: 1120px;
  --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);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 77, 141, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 122, 77, 0.12), transparent 50%),
    linear-gradient(180deg, #12081c 0%, var(--bg) 40%, #08040e 100%);
  background-attachment: fixed;
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff7aa8;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 6, 18, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 77, 141, 0.12);
}

.nav-cta {
  background: var(--accent-grad) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 18px !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 141, 0.12);
  border: 1px solid rgba(255, 77, 141, 0.28);
  color: #ff9bbf;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero h1 span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 77, 141, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  inset: 12% 8% auto;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin-top: 1.6em;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: #ffe4ef;
}

/* Feature / gallery grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-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;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 141, 0.35);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.feature-card .body {
  padding: 16px 16px 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-item figcaption {
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split img {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.cta-band {
  background: var(--accent-grad);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 77, 141, 0.28);
}

.cta-band h2 {
  margin: 0 0 10px;
  color: #fff;
}

.cta-band p {
  margin: 0 0 20px;
  opacity: 0.95;
}

.cta-band .btn-secondary {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.breadcrumbs {
  padding: 18px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42em;
}

.page-content {
  padding: 24px 0 64px;
}

.content-card {
  background: rgba(20, 12, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.related-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.related-links a:hover {
  border-color: rgba(255, 77, 141, 0.4);
}

.age-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 18px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 40px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin: 0 0 12px;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual {
  animation: riseIn 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(18, 10, 28, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav-wrap {
    position: relative;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .related-links,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
    margin-inline: auto;
  }

  .shot-item img {
    aspect-ratio: 9 / 16;
    max-height: none;
  }

  .hero {
    padding-top: 32px;
  }

  .section {
    padding: 42px 0;
  }

  .content-card {
    padding: 20px 16px;
  }
}

/* Sticky ads bar under header */
.ads-bar,
#ads.ads-bar,
#ads {
  position: sticky;
  top: 68px;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: rgba(10, 6, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 10px 8px 8px;
}

#ads > div,
#ads .ads-item {
  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.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#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(0, 0, 0, 0.35);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
