: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; }
.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 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[data-open="true"] { display: grid; }
  .site-nav a { min-height: 44px; padding-inline: 12px; }
  .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; } }
