:root {
  --bg: #ffffff;
  --bg-panel: #f1ecff;
  --bg-panel2: #1a0a5c;
  --border: #e4ddf6;
  --accent: #5414e8;
  --accent-dark: #3a0bb0;
  --color-primary: var(--accent);
  --color-accent: var(--accent-dark);
  --color-text: var(--text);
  --color-bg: var(--bg);
  --text: #17123a;
  --text-muted: #5f5a78;
  --success: #1e9e6a;
  --warn: #ff6a4d;
  --error: #d6363c;
  --tab-on: #d9ccff;
  --title-tail: #ab3d57;

  --hero-1: #4b0ff0;
  --hero-2: #2e0aa8;
  --hero-3: var(--bg-panel2);
  --ink-deep: #0d0433;
  --lilac: #c9b8ff;
  --lilac-2: #ece4ff;
  --white: var(--bg);
  --mask: #000000;
  --clear: transparent;
  --w-88: rgb(255 255 255 / .88);
  --w-76: rgb(255 255 255 / .76);
  --w-56: rgb(255 255 255 / .56);
  --w-30: rgb(255 255 255 / .30);
  --w-20: rgb(255 255 255 / .20);
  --w-14: rgb(255 255 255 / .14);
  --w-08: rgb(255 255 255 / .08);
  --w-05: rgb(255 255 255 / .05);
  --ink-fg: var(--white);
  --ink-muted: var(--lilac-2);
  --ink-link: var(--lilac);
  --glow-lilac: rgb(160 130 255 / .25);
  --glow-lilac-strong: rgb(160 130 255 / .34);
  --glow-coral: rgb(255 106 77 / .18);
  --fade-mid: rgb(122 80 255 / .46);
  --panel-a: rgb(26 10 92 / .22);
  --panel-b: rgb(13 4 51 / .46);
  --dot: rgb(255 255 255 / .24);
  --hl: rgb(160 130 255 / .30);
  --warn-ring: rgb(255 106 77 / .22);
  --veil: rgb(13 4 51 / .52);
  --shadow-float: 0 24px 60px rgba(84,20,232,.14);
  --shadow-btn: 0 12px 34px rgb(160 130 255 / .42), 0 2px 6px rgb(13 4 51 / .28);
  --shadow-btn-hover: 0 16px 40px rgb(160 130 255 / .55), 0 2px 6px rgb(13 4 51 / .28);
  --shadow-head: 0 1px 0 rgb(23 18 58 / .02);

  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-pill: 999px;
  --radius-shot: 8px;
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --h1-size: clamp(34px, 2.2vw + 16px, 48px);
  --h2-size: clamp(24px, 1.2vw + 16px, 32px);
  --track-display: -.025em;
  --track-cjk: -.02em;
  --wrap: 1240px;
  --measure: 74ch;
  --gutter: clamp(20px, 4vw, 40px);
  --hero-gutter: max(40px, calc(50vw - 620px));
  --head-h: 64px;
  --section-space: clamp(56px, 7vw, 104px);
  --card-pad: clamp(18px, 3vw, 36px);
  --gap: clamp(14px, 2vw, 24px);
  --ease: ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
:where(main, section, article, aside, nav, .wrap, .prose) { min-width: 0; }
:where(img, svg) { max-width: 100%; }
:where(img) { height: auto; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(a) { color: var(--accent); text-underline-offset: .18em; }
:where(a:hover) { color: var(--accent-dark); }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:where(h1, h2, h3) {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.18;
  text-wrap: balance;
}
:where(:lang(zh), :lang(ja), :lang(ko)) :where(h1, h2, h3) { letter-spacing: var(--track-cjk); }
h1, .display-type { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: clamp(19px, 1vw + 10px, 24px); }
p { margin: .75em 0 0; }
:where(p, li, dd, figcaption) { overflow-wrap: break-word; }
:where(code, pre, kbd, samp) { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .91em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
  font-size: .875rem;
  white-space: pre;
}
pre code { font-size: inherit; overflow-wrap: normal; }
:where([id]) { scroll-margin-block-start: 20px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.prose :where(h2, h3) { margin-block-start: 1.6em; }
.prose :where(ul, ol) { padding-inline-start: 1.5em; }
.prose li + li { margin-block-start: .4em; }
.section { padding-block-start: var(--section-space); padding-block-end: var(--section-space); }
.sec--tint { background: var(--bg-panel); color: var(--text); }
.sec--ink { background: var(--bg-panel2); color: var(--ink-fg); }
.sec--ink :where(p, .muted) { color: var(--ink-muted); }
.sec--ink a:not([class]), .sec--ink .text-link { color: var(--ink-link); }
.sec--ink :focus-visible, .hero :focus-visible { outline-color: var(--lilac); }
.sec--ink .card :where(p, .muted) { color: var(--text-muted); }
.sec--ink .card a:not([class]), .sec--ink .card .text-link { color: var(--accent); }
.decor-field { position: relative; isolation: isolate; overflow-x: clip; }
.heading-key { white-space: nowrap; }
h1 .heading-key { white-space: normal; }
.muted { color: var(--text-muted); }
.gradient-title {
  display: inline-block;
  max-width: 100%;
  color: var(--accent);
}
@supports (background-clip: text) {
  .gradient-title {
    background: linear-gradient(90deg, var(--accent) 35%, var(--title-tail));
    background-clip: text;
    color: var(--clear);
  }
}
.text-link { font-weight: 500; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.row > *, .grid > *, .card-grid > *, .footer-grid > * { min-width: 0; }
.row svg, .btn svg, .flag-dot, .sd, .brand-mark, .brand-placeholder { flex-shrink: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap); }
.card, .panel, .float-card {
  min-width: 0;
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.panel { background: var(--bg-panel); color: var(--text); }
.float-card { box-shadow: var(--shadow-float); }
.tilt-ornament { transform: rotate(-.45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  max-width: 100%;
  padding: 10px 23px;
  border: 1px solid var(--clear);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover, .btn.is-hover { background: var(--accent-dark); color: var(--white); }
.btn:active, .btn.is-pressed { transform: translateY(1px); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-secondary { background: var(--bg); color: var(--accent); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-panel); color: var(--accent-dark); }
.btn-main {
  background: linear-gradient(180deg, var(--white), var(--lilac-2));
  color: var(--accent);
  box-shadow: var(--shadow-btn);
}
.btn-main:hover {
  background: linear-gradient(180deg, var(--white), var(--lilac-2));
  color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}
.btn-ghost { background: var(--w-08); color: var(--white); border-color: var(--w-30); }
.btn-ghost:hover { background: var(--w-14); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel);
  color: var(--text-muted);
  border-color: var(--border);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.masthead {
  position: relative;
  z-index: 40;
  height: var(--head-h);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-head);
}
.masthead-in {
  height: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--accent-dark); }
.brand-mark, .brand-placeholder { display: block; width: 32px; height: 32px; }
.brand-placeholder {
  background: linear-gradient(145deg, var(--white), var(--lilac-2));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.brand-name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.tabs { min-width: 0; margin-inline-start: auto; height: 100%; }
.tabs ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  gap: 4px;
}
.tabs li { height: 100%; }
.tabs a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: 14px;
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.tabs a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.tabs a:hover { color: var(--text); }
.tabs a:hover::after { transform: scaleX(.5); opacity: .35; }
.tabs a[aria-current] { color: var(--text); font-weight: 500; }
.tabs a[aria-current]::after { transform: scaleX(1); opacity: 1; }
.tabs a:focus-visible { outline-offset: -6px; border-radius: var(--radius-btn); }
.head-tools { position: relative; display: flex; flex: none; align-items: center; gap: 6px; }
.lang, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.lang { min-height: 34px; font-size: 13px; white-space: nowrap; }
.lang svg { width: 15px; flex-shrink: 0; color: var(--text-muted); }
.lang:hover, .nav-toggle:hover { border-color: var(--tab-on); }
.lang-popup {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 152px;
  max-height: calc(100dvh - var(--head-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.nav-toggle { display: none; min-width: 44px; min-height: 44px; padding-inline: 8px; }
.nav-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.lang-short, .nav-drawer, .nav-veil { display: none; }
html.nav-open { overflow: hidden; }
.nav-drawer {
  position: absolute;
  z-index: 1;
  inset: 100% 0 auto;
  max-height: calc(100dvh - var(--head-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px var(--gutter) 20px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-float);
}
.nav-veil { position: fixed; inset: var(--head-h) 0 0; background: var(--veil); color: var(--white); }
.nav-drawer a, .lang-popup a {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
}
.nav-drawer a { border-bottom: 1px solid var(--border); }
.nav-drawer a:hover, .lang-popup a:hover, .nav-drawer a[aria-current], .lang-popup a[aria-current] {
  background: var(--bg-panel);
  color: var(--accent-dark);
}
.nav-drawer a:focus-visible, .lang-popup a:focus-visible { outline-offset: -3px; }
.drawer-label { margin-block: 16px 4px; color: var(--text-muted); font-size: 13px; }

.site-foot { background: var(--bg-panel); color: var(--text); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .75fr);
  gap: var(--gap);
  padding-block-start: 52px;
  padding-block-end: 40px;
}
.footer-grid h2 { font-size: 15px; font-weight: 500; margin-block-end: 10px; }
.footer-grid p, .foot-copy { color: var(--text-muted); font-size: 14px; }
.footer-links li + li { margin-top: 5px; }
.footer-links a { text-decoration: none; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.foot-copy { border-top: 1px solid var(--border); padding-block: 16px; }

.reveal { opacity: 1; }
.reveal-ready .reveal:not(.shown):not(:focus-within) { opacity: 0; transform: translateY(10px); }
.reveal-ready .reveal { transition: opacity .42s var(--ease), transform .42s var(--ease); }

@media (min-width: 1321px) and (max-width: 1599px) {
  .masthead-in { max-width: 1320px; }
}
@media (max-width: 1320px) {
  .masthead-in { gap: 24px; }
  .tabs a { padding-inline: 10px; }
  .tabs a::after { inset-inline: 10px; }
  .masthead-in:not(:lang(zh-CN)) > .tabs { display: none; }
  .masthead-in:not(:lang(zh-CN)) .nav-toggle,
  .masthead-in:not(:lang(zh-CN)) > :is(.nav-drawer, .nav-veil):not([hidden]) { display: flex; }
  .masthead-in:not(:lang(zh-CN)) > .nav-drawer:not([hidden]) { display: block; }
  .masthead-in:not(:lang(zh-CN)) > .head-tools { margin-inline-start: auto; }
}
@media (max-width: 1020px) {
  .masthead-in { gap: 8px; }
  .masthead-in > .tabs { display: none; }
  .head-tools { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer:not([hidden]), .nav-veil:not([hidden]) { display: block; }
}
@media (max-width: 768px) {
  :root { --h1-size: clamp(24px, 4vw + 8px, 30px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tilt, .tilt-ornament { transform: none; rotate: none; }
  .btn { min-height: 46px; padding-inline: 17px; }
}
@media (max-width: 540px) {
  .brand { gap: 7px; }
  .brand-name { font-size: 14px; overflow-wrap: normal; }
  .masthead-in > .brand { min-width: 0; flex-shrink: 1; line-height: 1.25; }
  .lang-full, .lang svg { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: 44px; padding-inline: 8px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tabs a, .tabs a::after, .btn, .reveal-ready .reveal { transition: none; }
  .reveal-ready .reveal:not(.shown):not(:focus-within) { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .gradient-title { background: none; color: inherit; }
  .tabs a[aria-current] { text-decoration: underline; }
}