:root {
  --bg: #FFF4F3;
  --bg-panel: #FFFFFF;
  --bg-panel-2: #2A1038;
  --border: #EBDCE1;
  --border-strong: #D9C3CF;
  --accent: #6B2A8E;
  --accent-dark: #45175F;
  --text: #1D1220;
  --text-muted: #6E5F72;
  --text-soft: #A396A6;
  --success: #1FAE84;
  --warn: #F2B33D;
  --error: #E0365A;
  --success-ink: #086348;
  --warn-ink: #704500;
  --error-ink: #AB2341;
  --lilac: #F4E8F9;
  --lilac-strong: #E6D0F1;
  --mist: #FBF7FC;
  --track-off: #E6D9E0;
  --success-tint: rgba(31,174,132,.12);
  --warn-tint: rgba(242,179,61,.18);
  --error-tint: rgba(224,54,90,.09);
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255,255,255,.74);
  --frame-search: rgba(255,255,255,.16);
  --rail-bg: rgba(29,10,40,.30);
  --rail-active: rgba(230,208,241,.26);
  --glow-rose: rgba(224,54,90,.17);
  --glow-amber: rgba(242,179,61,.20);
  --veil: rgba(29,18,32,.40);
  --clear: transparent;
  --shadow-window: 0 36px 80px -36px rgba(69,23,95,.34);
  --shadow-xs: 0 1px 2px rgba(69,23,95,.14);
  --shadow-float: 0 8px 28px -12px rgba(69,23,95,.30);
  --radius-card: 20px;
  --radius-panel: 24px;
  --radius-btn: 10px;
  --radius-inner: 12px;
  --radius-rail: 14px;
  --radius-sm: 8px;
  --radius-code: 6px;
  --radius-mark: 4px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --radius-arc: 50% 50% 0 0;
  --font-display: 'Inter','Noto Sans SC','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --font-body: 'Inter','Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --font-mono: 'JetBrains Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
  --text-xs: 12.5px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lede: 17px;
  --text-h1: clamp(34px,1rem + 2.3vw,48px);
  --text-h2: clamp(26px,2.8vw,36px);
  --text-h3: 20px;
  --weight-body: 400;
  --weight-medium: 600;
  --weight-bold: 700;
  --weight-heading: 800;
  --weight-display: 900;
  --tracking-title: -.02em;
  --tracking-latin: -.03em;
  --gutter: 32px;
  --content-width: 1200px;
  --reading-width: 820px;
  --header-height: 64px;
  --space-section: 80px;
  --motion-fast: .15s;
  --motion-reveal: .5s;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--weight-body) var(--text-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { vertical-align: middle; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); font-weight: var(--weight-display); line-height: 1.14; }
h2 { font-size: var(--text-h2); font-weight: var(--weight-display); }
h3 { font-size: var(--text-h3); font-weight: var(--weight-heading); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin-top: 0; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  background: var(--mist);
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.7;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
:where(section, article, div, nav, aside, main, li) { min-width: 0; }
:where(h2, h3, section, [id]) { scroll-margin-top: 24px; }
.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading-width); margin-inline: auto; }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section--white { background: var(--bg-panel); color: var(--text); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }
.keep { white-space: nowrap; }
.muted { color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid { display: grid; gap: 20px; }
.grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card, .panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.panel { border-radius: var(--radius-panel); }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  max-width: 100%;
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--accent);
  font: var(--weight-bold) var(--text-base)/1.35 var(--font-body);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--accent); color: var(--on-dark); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--on-dark); border-color: var(--accent-dark); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--lilac); color: var(--accent-dark); }
.btn:active, .btn.is-pressed { background: var(--accent-dark); color: var(--on-dark); border-color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--track-off); border-color: var(--border-strong); color: var(--text-muted); cursor: not-allowed; }
.btn.is-focus { outline: 3px solid var(--accent); outline-offset: 4px; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: var(--text-sm); }
.topbar { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  width: 100%;
  max-width: min(100%,calc(1280px + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.menu { min-width: 0; margin-left: auto; }
.menu ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-fast), background-color var(--motion-fast);
}
.menu a:hover { background: var(--lilac); color: var(--text); }
.menu a[aria-current="page"] { background: var(--lilac-strong); color: var(--accent-dark); }
.topbar__tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text);
  font: var(--weight-medium) 14px/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.lang svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__caret { color: var(--text-muted); font-size: 11px; }
.lang__short { display: none; }
.language__list {
  position: absolute;
  z-index: 4;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.language__list a { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-muted); text-decoration: none; }
.language__list a:hover, .language__list a[aria-current="true"] { background: var(--lilac); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--accent-dark);
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 3;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
}
.mobile-menu ul { padding: 0; margin: 0; list-style: none; }
.mobile-menu a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 14px; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-btn); }
.mobile-menu a[aria-current] { background: var(--lilac); color: var(--accent-dark); }
.mobile-menu__label { margin: 20px 14px 8px; color: var(--text-muted); font-size: var(--text-sm); }
.nav-veil { position: fixed; z-index: 40; inset: var(--header-height) 0 0; border: 0; padding: 0; background: var(--veil); color: var(--on-dark); }
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 100px; background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.3fr .7fr; gap: 36px; }
.footer-brand p { margin-top: 18px; color: var(--text-muted); font-size: var(--text-sm); max-width: 310px; }
.site-footer h2 { font-size: var(--text-base); font-weight: var(--weight-heading); margin: 0 0 16px; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--text-muted); font-size: var(--text-sm); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; color: var(--text-muted); font-size: var(--text-sm); }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: 2.2em; margin-bottom: .7em; }
.prose h3 { margin-top: 1.7em; }
.prose p, .prose li { line-height: 1.85; }
.prose :not(pre) > code { padding: .12em .35em; border-radius: var(--radius-mark); background: var(--lilac); color: var(--accent-dark); font-size: .9em; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal { transition: opacity var(--motion-reveal) var(--ease-out), transform var(--motion-reveal) var(--ease-out); }
.reveal.shown { opacity: 1; transform: none; }
@media (max-width: 1279px) {
  .menu { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar__tools { margin-left: auto; }
}
@media (min-width: 1280px) {
  .mobile-menu, .nav-veil { display: none !important; }
}
@media (max-width: 860px) {
  .grid--three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --text-h1: clamp(24px,4.2vw,30px); --gutter: 24px; --space-section: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .topbar__inner { gap: 8px; }
  .topbar__tools { gap: 6px; margin-left: auto; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .lang { padding-inline: 10px; min-height: 40px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .grid--two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tilt, [data-tilt] { transform: none !important; }
  .card, .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}