:root {
  --bg: #09090b;
  --bg-2: #121217;
  --card: #17171d;
  --card-2: #201f27;
  --text: #f7f4f1;
  --muted: #b7b1aa;
  --pink: #ff3d86;
  --pink-2: #ff7aa8;
  --orange: #ff9a3c;
  --gold: #e6c48a;
  --line: rgba(230, 196, 138, 0.18);
  --header-h: 56px;
  --top-offset: 56px;
  --wrap: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 50% -80px, rgba(255, 61, 134, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  padding-top: var(--top-offset);
}

img { max-width: 100%; height: auto; display: block; }

a { color: #ffc1d6; text-underline-offset: 0.18em; }

a:hover { color: #fff; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 200;
}

.skip:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 28px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 80;
  background: rgba(9, 9, 11, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand img { height: 36px; width: auto; }

.brand strong {
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #17171d;
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 70;
  background: #121217;
  border-bottom: 1px solid var(--line);
  padding: 8px 14px 14px;
}

.site-nav.is-open { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover { background: rgba(255, 61, 134, 0.16); color: #fff; }

.site-ads-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  margin: 0 0 14px;
  padding: 8px 8px 10px;
  border-radius: 16px;
  background: rgba(18, 14, 16, 0.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.site-ads-sticky .applist-title {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 2px;
}

.site-ads-sticky #ads {
  margin: 6px 0 0;
  gap: 8px;
}

.site-ads-sticky #ads > div {
  flex: 0 0 70px;
  min-width: 70px;
}

.site-ads-sticky #ads img {
  width: 65px;
  height: 65px;
  min-width: 65px;
  min-height: 65px;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

.site-ads-sticky #ads figcaption,
.site-ads-sticky #ads .caption {
  color: var(--muted);
}

.site-nav.is-open { z-index: 70; }

.hero { padding: 18px 0 8px; }

.hero-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.hero-copy { padding: 16px 2px 6px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 750;
}

.lead { margin: 0 0 14px; color: #efe8e1; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #1a0b10;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-weight: 700;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-small { min-height: 36px; padding: 6px 10px; font-size: 13px; color: #1a0b10; }

.toc, .panel, .note, .faq, .crumb, .site-footer, .block {
  margin: 22px 0;
}

.toc, .panel, .note, .faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 8px;
}

.toc ol { margin: 0; padding-left: 1.2rem; }
.faq h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.toc a { text-decoration: none; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 12px 16px;
  align-items: start;
  margin: 0 0 22px;
}

.split figure { margin: 0; }

.split img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
}

.split figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.prose { min-width: 0; }
.prose h2, .prose h3 { line-height: 1.4; margin: 0 0 8px; }
.prose h2 { font-size: 1.28rem; color: #ffe7cf; }
.prose h3 { font-size: 1.05rem; color: #fff; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 1.2rem; }
.prose li { margin: 0 0 6px; }

.meta { color: var(--gold); font-size: 14px; }

.note { color: #f3e7dc; }
.note strong { color: #fff; }

.glossary { margin: 0; }
.glossary dt { font-weight: 700; color: #ffe7cf; margin-top: 12px; }
.glossary dd { margin: 4px 0 0; color: #f3eee9; }

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 14px 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.crumb li:not(:last-child)::after { content: " / "; margin-left: 6px; color: #6d675f; }
.crumb a { color: var(--gold); text-decoration: none; }

.page-intro h1 { font-size: 1.45rem; }

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand { height: 32px; width: auto; margin-bottom: 8px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; }
.footer-nav a { color: var(--text); text-decoration: none; }
.age {
  display: inline-block;
  border: 1px solid var(--pink);
  color: var(--pink-2);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 14px;
}

th, td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th { background: #241c22; color: var(--gold); }

.work { padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }

@media (min-width: 960px) {
  h1 { font-size: 2rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .site-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav a { padding: 8px 10px; font-size: 15px; }
  .site-ads-sticky { padding: 10px 14px 12px; }
  .split { gap: 18px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
