:root {
  --night: #0e0b0d;
  --panel: #171216;
  --panel2: #21191d;
  --gold: #e8a04c;
  --gold2: #f3c77b;
  --cream: #ffe6a0;
  --pink: #f472b6;
  --text: #f8f3ed;
  --muted: #b9adb2;
  --line: rgba(232, 160, 76, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 72% 8%,
      rgba(124, 74, 139, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 20% 26%,
      rgba(232, 160, 76, 0.12),
      transparent 25%
    ),
    var(--night);
  color: var(--text);
  font:
    16px/1.7 "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
}
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--cream); color: var(--night); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 30%, #f3c77b 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 18%, #fff 0 1px, transparent 1.5px);
  background-size:
    180px 180px,
    260px 260px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 11, 13, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand b {
  color: var(--gold);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
}
.links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: #d8ced1;
}
.links a:hover,
.links a[aria-current="page"] {
  color: var(--gold2);
}
.actions {
  display: flex;
  gap: 10px;
}
.btn,
.lang {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 16px;
  background: #181217;
  color: var(--text);
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, #5a351c, #2a1b14);
  border-color: #9b602d;
  color: var(--cream);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
}
.hero {
  padding: 88px 0 54px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold2);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.eyebrow:before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  margin: 18px 0 24px;
  letter-spacing: -0.04em;
}
.gradient {
  background: linear-gradient(100deg, #fff 10%, var(--gold2) 55%, var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: #d0c4c8;
  max-width: 680px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}
.hero-card {
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(
    155deg,
    rgba(56, 38, 51, 0.9),
    rgba(18, 13, 16, 0.9)
  );
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-card:before {
  content: "AI";
  position: absolute;
  font-size: 260px;
  font-weight: 900;
  right: -20px;
  bottom: -105px;
  color: rgba(232, 160, 76, 0.06);
}
.character {
  height: 100%;
  border-radius: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(244, 114, 182, 0.35),
      transparent 28%
    ),
    radial-gradient(
      circle at 60% 50%,
      rgba(232, 160, 76, 0.25),
      transparent 36%
    );
}
.mascot {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 72%;
  height: 96%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
  z-index: 3;
}
.character-copy {
  position: relative;
  z-index: 2;
  width: 72%;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(14, 11, 13, 0.9),
    rgba(14, 11, 13, 0.56)
  );
  backdrop-filter: blur(7px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.stat {
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.stat strong {
  display: block;
  color: var(--gold2);
  font-size: 20px;
}
.section {
  padding: 66px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin: 0;
}
.muted {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(33, 25, 29, 0.94),
    rgba(20, 15, 18, 0.94)
  );
  overflow: hidden;
  transition: 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 160, 76, 0.55);
}
.cover {
  height: 230px;
  padding: 18px;
  display: flex;
  align-items: end;
  background:
    radial-gradient(
      circle at 72% 24%,
      rgba(244, 114, 182, 0.42),
      transparent 27%
    ),
    linear-gradient(145deg, #4b355a, #1a1118);
}
.cover.c2 {
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(243, 199, 123, 0.4),
      transparent 25%
    ),
    linear-gradient(145deg, #313b58, #171018);
}
.cover.c3 {
  background:
    radial-gradient(
      circle at 55% 25%,
      rgba(126, 211, 213, 0.35),
      transparent 28%
    ),
    linear-gradient(145deg, #21434c, #171018);
}
.badge {
  background: rgba(10, 8, 9, 0.76);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--gold2);
  font-size: 12px;
}
.card-body {
  padding: 20px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  font-size: 12px;
  color: #cabec2;
  background: #0e0b0d;
  padding: 4px 9px;
  border-radius: 8px;
}
.feature {
  padding: 26px;
}
.feature .icon {
  font-size: 28px;
}
.feature h3 {
  margin: 12px 0 7px;
}
.banner {
  padding: 44px;
  border: 1px solid rgba(232, 160, 76, 0.38);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 90% 30%,
      rgba(244, 114, 182, 0.2),
      transparent 30%
    ),
    linear-gradient(125deg, #2b1c19, #171116);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 30px;
}
.footer h4 {
  color: var(--text);
  margin: 0 0 10px;
}
.footer a {
  display: block;
  margin: 6px 0;
}
.page-hero {
  padding: 70px 0 38px;
  max-width: 820px;
}
.page-hero h1 {
  font-size: 54px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.filter {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #171216;
  color: #d9cdd1;
}
.filter.active {
  color: var(--cream);
  border-color: #98602f;
}
.filter:hover { border-color: rgba(232, 160, 76, 0.65); }
.results-count { margin: -12px 0 18px; color: var(--muted); font-size: 14px; }
[hidden] { display: none !important; }
.article-layout,
.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 38px;
}
.article,
.legal {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(24, 18, 22, 0.9);
  padding: clamp(24px, 5vw, 54px);
}
.article h1,
.legal h1 {
  font-size: clamp(34px, 5vw, 56px);
}
.article h2,
.legal h2 {
  margin-top: 38px;
  color: var(--gold2);
}
.article p,
.legal p,
.article li,
.legal li {
  color: #d5c9cd;
}
.toc {
  position: sticky;
  top: 100px;
  height: max-content;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.toc a {
  display: block;
  color: var(--muted);
  margin: 9px 0;
}
.docs-layout {
  grid-template-columns: 240px minmax(0, 1fr) 210px;
}
.sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 112px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #151014;
}
.sidebar h3 {
  color: var(--gold2);
}
.sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.sidebar a.active {
  background: rgba(232, 160, 76, 0.12);
  color: var(--cream);
}
.search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e0b0d;
  color: white;
}
.search-status { display: block; min-height: 20px; margin: 7px 2px 18px; color: var(--muted); }
.notice {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(232, 160, 76, 0.08);
  border-radius: 0 12px 12px 0;
}
.mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  .links {
    display: none;
  }
  .links.is-open { position: absolute; display: grid; gap: 0; inset: 72px 18px auto; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(23, 18, 22, 0.98); box-shadow: var(--shadow); }
  .links.is-open a { padding: 12px 14px; border-radius: 10px; }
  .links.is-open a:hover { background: rgba(232, 160, 76, 0.1); }
  .mobile-menu {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 380px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar,
  .toc {
    position: static;
    height: auto;
  }
  .docs-layout .toc {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }
  .nav {
    gap: 10px;
  }
  .actions .btn {
    display: none;
  }
  .hero {
    padding-top: 55px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .banner {
    padding: 28px;
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 40px;
  }
  .article,
  .legal {
    padding: 22px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    text-align: center;
  }
}
