:root {
  --bg: #14060e;
  --bg-2: #1d0a14;
  --card: rgba(255, 244, 248, 0.045);
  --line: rgba(255, 130, 176, 0.32);
  --text: #fff7fa;
  --muted: #f3d5e1;
  --soft: #ffd0e0;
  --pink: #ff3d86;
  --orange: #ff8c1a;
  --gold: #f4c56e;
  --grad: linear-gradient(100deg, #ff9a22 0%, #ff4d6a 46%, #ff2f92 100%);
  --nav-h: 64px;
  --max: 1120px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 120px); }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(255, 47, 146, 0.28), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(255, 140, 26, 0.16), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: #ffd0e4; }
a:hover { color: #fff; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  z-index: 200;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  top: 8px;
  background: #fff;
  color: #111;
}
.wrap { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 6, 13, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; }
.brand img { width: 124px; height: auto; display: block; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
}
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 3;
  background: rgba(20, 6, 14, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px 14px;
}
.site-nav.is-open {
  display: grid;
  gap: 4px;
  background: #14060e;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
}
.site-nav a[aria-current="page"],
.site-nav a:hover { background: rgba(255, 61, 134, 0.16); }

.site-ads {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(255, 248, 251, 0.97);
  border-bottom: 1px solid rgba(255, 130, 176, 0.35);
  box-shadow: var(--shadow);
  color: #333;
}
.site-ads-inner {
  padding: 4px 0 6px;
}
.site-ads .applist-title {
  color: #2a121c;
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 0;
}
.site-ads figure {
  margin: 0;
}

.hero { padding: 22px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 16px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 12px;
}
h1, h2, h3 { line-height: 1.35; font-weight: 760; }
h1 { font-size: 1.55rem; margin: 0 0 10px; }
h2 { font-size: 1.28rem; margin: 0 0 10px; }
h3 { font-size: 1.05rem; margin: 1.1em 0 0.4em; }
.lead { color: var(--muted); margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: #1a0a10;
  background: var(--grad);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}
.hero figure { margin: 0; }
.hero img { width: 100%; border-radius: 16px; display: block; box-shadow: var(--shadow); }
.hero figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }

main { padding-bottom: 36px; }
.panel {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 176, 206, 0.16);
  border-radius: 18px;
  padding: 16px 14px 6px;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc li { margin: 4px 0; }

.ratio {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 12px 16px;
  align-items: start;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ratio figure { margin: 0; }
.ratio img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #090308;
}
.ratio figcaption { margin-top: 6px; color: var(--soft); font-size: 12px; line-height: 1.45; }
.ratio p { margin: 0 0 0.75em; }
.meta { color: var(--gold); font-size: 13px; margin: 0 0 6px; }

.table-wrap { overflow-x: auto; margin: 8px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid rgba(255, 176, 206, 0.2); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: rgba(255, 61, 134, 0.12); }

.crumb { font-size: 14px; color: var(--muted); margin: 14px 0; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumb li:not(:last-child)::after { content: " / "; color: var(--gold); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #10040b;
  padding: 22px 0 28px;
}
.footer-grid { display: grid; gap: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-nav a { text-decoration: none; }
.fine { color: var(--muted); font-size: 13px; }
.logo-word { width: 148px; height: auto; }

.status-code {
  font-size: 42px;
  margin: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.age-note {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--grad);
  color: #1a0a10;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}
.kicker { color: var(--gold); font-size: 13px; letter-spacing: 0.04em; }
dl.glossary { margin: 0 0 16px; }
dl.glossary dt { font-weight: 760; margin-top: 12px; }
dl.glossary dd { margin: 4px 0 0; color: var(--muted); }
.faq details {
  border-top: 1px solid rgba(255, 176, 206, 0.16);
  padding: 8px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 6px 0 8px; }
.card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.card-row article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.card-row h3 { margin-top: 0; }
.updated { color: var(--soft); font-size: 13px; }
.site-header { padding-top: env(safe-area-inset-top); }
.ratio img.shot { background: #050206; }
ul.clean, ol.clean { margin-top: 0; padding-left: 1.2em; }
li { margin: 4px 0; }

@media (min-width: 860px) {
  h1 { font-size: 2rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 4px;
  }
  .site-nav a { padding: 8px 10px; }
  .panel { padding: 22px 22px 8px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .card-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .card-row { grid-template-columns: 1fr; }
  body { font-size: 15.5px; }
  .ratio figcaption, .hero figcaption { font-size: 12px; }
}
