:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-soft: #1c1c22;
  --line: #2a2a32;
  --text: #f2f2f4;
  --muted: #a8a8b3;
  --pink: #ff2d7a;
  --pink-soft: #ff5c9a;
  --pink-deep: #c9185a;
  --gold: #f0c14b;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --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(1200px 600px at 10% -10%, rgba(255, 45, 122, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 24, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #0d0d12 0%, var(--bg) 40%, #08080a 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-soft);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pink);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 12, 0.86);
  border-bottom: 1px solid rgba(255, 45, 122, 0.18);
}

.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: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.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(255, 45, 122, 0.16);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 102;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--pink-soft);
  background: rgba(255, 45, 122, 0.12);
  border: 1px solid rgba(255, 45, 122, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 45, 122, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--pink);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 45, 122, 0.22);
  background: var(--bg-elevated);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.95), rgba(16, 16, 20, 0.98));
  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(255, 45, 122, 0.45);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: #111;
}

.card-body {
  padding: 14px 16px 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  background: rgba(20, 20, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 90px;
}

.prose h2 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(255, 45, 122, 0.22);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.3em;
  margin-bottom: 0.45em;
  color: #ffe3ef;
}

.prose p {
  margin: 0 0 1em;
  color: #d7d7de;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  color: #d7d7de;
}

.prose li {
  margin-bottom: 0.45em;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: rgba(255, 45, 122, 0.06);
  border: 1px solid rgba(255, 45, 122, 0.18);
  border-radius: 14px;
}

.toc a {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--pink-soft);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.feature-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.media-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
  margin: 22px 0;
}

.media-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.media-row img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 4px;
}

.page-hero {
  padding: 42px 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(--muted);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--pink-soft);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 10px;
  background: linear-gradient(135deg, #fff, var(--pink-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 22px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 45, 122, 0.16);
  background: rgba(0, 0, 0, 0.35);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand p,
.footer-col p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--pink-soft);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

.age-note {
  color: var(--gold);
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 122, 0.4);
  background: rgba(20, 20, 24, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.cols-4,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 45, 122, 0.28);
    background: rgba(16, 16, 20, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 101;
  }

  .nav.open {
    display: flex;
    position: absolute;
  }

  .hero {
    padding-top: 28px;
  }

  .card-grid,
  .card-grid.cols-4,
  .card-grid.cols-2,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 18px 16px;
  }

  .section {
    padding: 28px 0;
  }

  .ads-bar {
    top: 0;
  }

  .site-header.is-sticky-with-ads {
    position: relative;
  }
}

/* Sticky partner ads below header */
.ads-bar {
  position: sticky;
  top: 68px;
  z-index: 99;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.92);
  border-bottom: 1px solid rgba(255, 45, 122, 0.18);
  padding: 8px 0 6px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  background: transparent;
  margin: 0;
}

#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: 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(255, 45, 122, 0.28);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #a8a8b3;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
