:root {
  --brand-core: #6b238e;
  --brand-luminous: #7a3fa0;
  --brand-mist: #f4f0f8;
  --brand-night: #1d1722;
  --ink: #17131c;
  --muted: #655f69;
  --paper: #fcfbfd;
  --white: #fff;
  --arc-light: #b79cc8;
  --line: rgba(107, 35, 142, .16);
  --error: #b3261e;
  --shell-max: 1184px;
  --shell-pad: 32px;
  --header-height: 72px;
  --font-body: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Source Han Serif SC", "Songti SC", STSong, serif;
  --ease-brand: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; min-width: 0; }
html { color: var(--ink); background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-core); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--brand-luminous); }
:focus-visible { outline: 3px solid var(--brand-luminous); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
.shell-wrap { width: min(var(--shell-max), calc(100% - var(--shell-pad) * 2)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: var(--white); background: var(--brand-core); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; height: var(--header-height); border-bottom: 1px solid var(--line); background: rgba(252, 251, 253, .98); }
.site-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-brand img { width: 174px; height: 32px; object-fit: contain; object-position: left center; }
.site-brand-name { display: none; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-hub { position: relative; }
.nav-hub-main { gap: 6px; }
.nav-hub-main::after { color: var(--brand-core); font-size: 10px; content: "▾"; transition: transform .18s var(--ease-brand); }
.nav-hub:hover .nav-hub-main::after, .nav-hub:focus-within .nav-hub-main::after { transform: rotate(180deg); }
.nav-hub-popover {
  position: fixed;
  top: calc(var(--header-height) - 1px);
  left: 50vw;
  display: grid;
  width: min(720px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(252, 251, 253, .98);
  box-shadow: 0 24px 60px rgba(42, 18, 52, .16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -7px);
  transition: opacity .18s var(--ease-brand), transform .18s var(--ease-brand);
}
.nav-hub-popover::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 12px; content: ""; }
.nav-hub:hover .nav-hub-popover, .nav-hub:focus-within .nav-hub-popover { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.site-nav .nav-hub-popover a { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; min-height: 64px; padding: 9px 10px; border-radius: 13px; }
.site-nav .nav-hub-popover a:hover, .site-nav .nav-hub-popover a:focus-visible { color: var(--ink); background: var(--brand-mist); }
.nav-hub-popover img { align-self: center; width: 38px; height: 38px; object-fit: contain; border-radius: 11px; }
.nav-hub-label { padding: 7px 10px 2px; color: var(--brand-core); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nav-hub-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.nav-hub-items-primary { grid-template-columns: 1fr; }
.nav-hub-glyph { display: grid; align-self: center; place-items: center; width: 38px; height: 38px; color: var(--white); border-radius: 11px; background: linear-gradient(145deg, var(--brand-luminous), var(--brand-core)); box-shadow: 0 7px 18px rgba(107,35,142,.16); font-size: 13px; font-style: normal; font-weight: 900; }
.nav-hub-popover span { display: grid; align-content: center; gap: 2px; }
.nav-hub-popover strong { font-size: 13px; }
.nav-hub-popover small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.nav-hub-popover b { align-self: center; color: var(--brand-core); font-size: 12px; }
.site-nav .nav-hub-popover .nav-hub-overview { grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); border-radius: 13px 13px 8px 8px; }
.nav-hub-overview span { grid-column: 1; }
.nav-hub-overview b { grid-column: 2; grid-row: 1; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 12%; bottom: 4px; left: 12%; height: 3px; border-radius: 50%; background: var(--brand-core); }
.site-nav .site-download { min-width: 88px; justify-content: center; padding-inline: 18px; border-radius: 10px; color: var(--white); background: var(--brand-core); }
.site-nav .site-download::after { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); font: inherit; font-weight: 700; }

.site-footer { padding: 64px 0 36px; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 1fr 1fr; gap: 48px; }
.footer-brand img { width: 184px; height: auto; margin-bottom: 12px; }
.footer-brand img.product-foundation-icon { width: 48px; height: 48px; object-fit: contain; border-radius: 14px; margin-bottom: 0; }
.footer-brand p { max-width: 34ch; margin: 0; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 4px; }
.footer-links a { min-height: 32px; color: var(--ink); }
.footer-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.btn-primary { color: var(--white); background: var(--brand-core); }
.btn-primary:hover { color: var(--white); background: #5b1f82; }
.btn-secondary { border: 1px solid var(--brand-core); color: var(--brand-core); background: var(--white); }

@media (max-width: 767px) {
  :root { --shell-pad: 20px; --header-height: 64px; }
  .site-brand img { width: 32px; height: 32px; object-fit: cover; object-position: left; }
  .site-brand-name { display: inline; margin-left: 10px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
  .site-nav[data-open="true"] { display: grid; }
  .site-nav a { min-height: 44px; padding-inline: 12px; }
  .nav-hub { display: grid; border-block: 1px solid var(--line); }
  .nav-hub-main { justify-content: space-between; }
  .nav-hub-main::after { transform: rotate(180deg); }
  .nav-hub-popover { position: static; width: auto; padding: 0 0 9px 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .nav-hub-items { grid-template-columns: 1fr; }
  .nav-hub-label { padding-top: 12px; }
  .nav-hub:hover .nav-hub-popover, .nav-hub:focus-within .nav-hub-popover { transform: none; }
  .site-nav .nav-hub-popover a { min-height: 58px; padding: 8px 10px; }
  .site-nav .nav-hub-overview { border-bottom: 0; }
  .site-nav a[aria-current="page"]::after { right: auto; bottom: 5px; left: 12px; width: 38px; }
  .site-nav .site-download { margin-top: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 360px) { :root { --shell-pad: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (forced-colors: active) { .site-nav a[aria-current="page"] { border-bottom: 3px solid LinkText; } .btn-primary, .site-nav .site-download { border: 1px solid ButtonText; } }
