:root {
  --c-bg: #ffffff;
  --c-panel: #f4f5f7;
  --c-panel-2: #e8f1fc;
  --c-line: #d6d9de;
  --c-accent: #1e50e0;
  --c-accent-dark: #1438a8;
  --c-text: #15171a;
  --c-muted: #5b6068;
  --c-success: #1f8a4c;
  --c-warn: #b7791f;
  --c-error: #c9302c;
  --c-on-accent: #ffffff;
  --c-accent-wash: rgba(30, 80, 224, .08);
  --c-clear: transparent;
  --c-veil: rgba(21, 23, 26, .28);
  --rig-top: #dfe8fb;
  --rig-bottom: #f4f7fe;
  --orb-blue: 61 91 255;
  --orb-violet: 122 60 240;
  --orb-magenta: 224 71 158;
  --glass-top: rgba(255, 255, 255, .34);
  --glass-bottom: rgba(255, 255, 255, .70);
  --glass-rim: rgba(255, 255, 255, .92);
  --glass-shine: rgba(255, 255, 255, 1);
  --glass-inner: rgba(30, 80, 224, .18);
  --glass-side-top: rgba(206, 220, 250, .92);
  --glass-side-bottom: rgba(232, 240, 253, .35);
  --glass-label: #5b6068;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-strong: 600;
  --r-card: 2px;
  --r-chip: 2px;
  --r-btn: 0px;
  --r-mark: 6px;
  --r-round: 50%;
  --r-shot: 10px;
  --h1: clamp(34px, 3.35vw, 48px);
  --h2: clamp(24px, 2.4vw, 32px);
  --h3: 20px;
  --text-base: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --tracking-title: -.01em;
  --gutter: 40px;
  --reading-width: 1120px;
  --header-width: 1280px;
  --nav-h: 64px;
  --rig-h: clamp(440px, 64vh, 588px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-24: 96px;
  --line: 1px;
  --line-active: 2px;
  --icon-stroke: 1.25;
  --duration-fast: .15s;
  --duration-reveal: .55s;
  --dur-orb: 14s;
  --ease: cubic-bezier(.2, 0, .38, .9);
  --layer-header: 40;
  --layer-menu: 42;
  --layer-float: 30;
  --layer-skip: 80;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-6));
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { border-radius: var(--r-card); }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
a, button, input, summary, select, textarea { -webkit-tap-highlight-color: var(--c-accent-wash); }
:focus-visible { outline: var(--line-active) solid var(--c-accent); outline-offset: 3px; }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  margin: 0 0 var(--space-6);
  font-size: var(--h1);
  line-height: 1.16;
  letter-spacing: var(--tracking-title);
  color: var(--c-accent);
}
h2 { margin: 0 0 var(--space-6); font-size: var(--h2); line-height: 1.3; }
h3 { margin: 0 0 var(--space-4); font-size: var(--h3); line-height: 1.4; }
p { margin: 0 0 var(--space-5); }
strong, b { font-weight: var(--weight-strong); }
small { font-size: var(--text-caption); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .88em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: var(--space-5);
  border: var(--line) solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-text);
  line-height: 1.7;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
blockquote { margin-inline: 0; }
hr { border: 0; border-top: var(--line) solid var(--c-line); margin-block: var(--space-10); }
:where(main, section, article, aside, nav, div, li, figure) { min-width: 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: var(--space-18); padding-bottom: var(--space-18); }
.section--blue { background: var(--c-panel-2); color: var(--c-text); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.section__head h2, .section__head p { margin: 0; }
.muted { color: var(--c-muted); }
.keep { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-accent);
  color: var(--c-on-accent);
  padding: var(--space-2) var(--space-3);
}
.skip:focus { left: var(--space-2); top: var(--space-2); z-index: var(--layer-skip); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-width: 236px;
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  border: var(--line) solid var(--c-accent);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: var(--c-accent-wash); color: var(--c-accent); text-decoration: none; }
.btn--solid { background: var(--c-accent); color: var(--c-on-accent); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: var(--c-on-accent); }
.btn--line.is-hover { background: var(--c-accent-wash); color: var(--c-accent); }
.btn:active { border-color: var(--c-accent-dark); }
.btn.is-focus { outline: var(--line-active) solid var(--c-accent); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--c-panel);
  color: var(--c-muted);
  border-color: var(--c-line);
}
.btn--compact { min-width: 0; min-height: 48px; }
.topbar {
  position: relative;
  z-index: var(--layer-header);
  height: var(--nav-h);
  border-bottom: var(--line) solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
}
.topbar__in {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--r-round);
  border: var(--line) solid var(--c-line);
  background: var(--c-panel);
  color: var(--c-text);
}
.brand__mark--placeholder { border-radius: var(--r-mark); }
.dotnav { height: 100%; min-width: 0; margin-left: auto; }
.dotnav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.dotnav li { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.dotnav li + li::before {
  content: "·";
  color: var(--c-line);
  font-size: 18px;
  padding-inline: var(--space-3);
}
.dotnav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--c-muted);
  font-size: var(--text-small);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease);
}
.dotnav a:hover { color: var(--c-text); text-decoration: none; }
.dotnav a[aria-current="page"] { color: var(--c-accent); }
.dotnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--line-active);
  background: var(--c-accent);
}
.topbar__tools {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-2);
}
.lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  border: var(--line) solid var(--c-line);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 13px;
  white-space: nowrap;
}
.lang:hover { border-color: var(--c-accent); color: var(--c-accent); }
.lang svg { width: 16px; height: 16px; }
.lang__short { display: none; }
.lang-menu {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: 0;
  z-index: var(--layer-menu);
  width: 200px;
  max-width: calc(100vw - var(--gutter) * 2);
  padding: var(--space-2);
  border: var(--line) solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
}
.lang-menu a, .mobile-nav a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
}
.lang-menu a:hover, .mobile-nav a:hover { background: var(--c-panel-2); color: var(--c-accent); text-decoration: none; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2);
  border: var(--line) solid var(--c-line);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  color: var(--c-text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  z-index: var(--layer-menu);
  padding: var(--space-4) var(--gutter) var(--space-6);
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: var(--line) solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
}
.mobile-nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav li + li { border-top: var(--line) solid var(--c-line); }
.mobile-nav [aria-current="page"] { background: var(--c-panel-2); color: var(--c-accent); }
.mobile-nav__label { margin: var(--space-5) var(--space-4) var(--space-2); color: var(--c-muted); font-size: var(--text-caption); }
.nav-veil {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: -1;
  border: 0;
  background: var(--c-veil);
  color: var(--c-text);
}
.site-footer {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  border-top: var(--line) solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
}
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.5fr; gap: var(--space-12); }
.footer-brand p { margin-top: var(--space-5); max-width: 32em; color: var(--c-muted); font-size: var(--text-small); }
.site-footer h2 { font-size: var(--text-small); font-weight: var(--weight-strong); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { display: inline-block; padding-block: var(--space-1); font-size: var(--text-small); }
.footer-langs { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-8); }
.footer-langs a { padding-block: var(--space-2); font-size: var(--text-small); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: var(--line) solid var(--c-line);
  font-size: var(--text-caption);
  color: var(--c-muted);
}
.footer-bottom p { margin: 0; }
.card, .panel {
  padding: var(--space-6);
  border: var(--line) solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
}
.panel--subtle { background: var(--c-panel); color: var(--c-text); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.prose { max-width: 78ch; }
.prose h2 { margin-top: var(--space-16); }
.prose h3 { margin-top: var(--space-8); }
.prose li { margin-block: var(--space-2); }
.prose :first-child { margin-top: 0; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease), transform var(--duration-reveal) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
.decorated, .hero { overflow-x: clip; }
input, textarea, select {
  max-width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  border: var(--line) solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
}
@media (max-width: 1280px) {
  .topbar__in { gap: var(--space-5); }
  .dotnav li + li::before { padding-inline: var(--space-2); }
}
@media (max-width: 1180px) {
  .dotnav { display: none; }
  .menu-toggle { display: flex; }
  .topbar__tools { margin-left: auto; }
}
@media (max-width: 1040px) {
  :root { --gutter: 24px; --rig-h: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --h1: clamp(24px, 5vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --h1: clamp(24px, 7vw, 30px); --rig-h: 340px; }
  .section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .wrap { padding-inline: var(--gutter); }
  .btn { min-width: 0; max-width: 100%; min-height: 52px; }
  .card-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .topbar__in { gap: var(--space-2); }
  .topbar__tools { margin-left: auto; }
  .brand { gap: var(--space-2); font-size: var(--text-small); }
  .brand__mark { width: 28px; height: 28px; }
  .brand__name small { display: none; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { padding-inline: var(--space-2); min-height: 44px; }
  .lang svg { display: none; }
  .tilt, [data-tilt] { transform: none !important; }
  .section__head { gap: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}