:root {
  color-scheme: light;
  --bg: #ffffff;
  --white: var(--bg);
  --bg-panel: #f4f8fc;
  --bg-panel-2: #eaf2fa;
  --border: #e4e7ec;
  --hatch: #eef1f5;
  --accent: #0c78d4;
  --accent-dark: #095aa3;
  --text: #121826;
  --text-muted: #5b6472;
  --success: #1f9d6b;
  --warn: #c98a12;
  --error: #d6453d;
  --sky: #cfe2ff;
  --sakura: #f7c6dd;
  --peach: #fbd7b5;
  --lavender: #e3d6fb;
  --beam-direct: #a6b7cb;
  --beam-reject: #e99cc1;
  --ink-band: #142b43;
  --ink-text: #ffffff;
  --ink-muted: #c9d9e9;
  --ink-link: #a6d5ff;
  --cta-light: #0b70c7;
  --clear: transparent;
  --mask-core: #000000;
  --mask-edge: rgb(0 0 0 / .45);
  --stripe: rgb(12 120 212 / .075);
  --dot-wash: rgb(12 120 212 / .17);
  --dot-ring: rgb(12 120 212 / .16);
  --ok-ring: rgb(31 157 107 / .16);
  --beam-glow: rgb(12 120 212 / .30);
  --tag-shadow: rgb(18 24 38 / .10);
  --veil-fill: rgb(18 24 38 / .38);
  --glass-72: rgb(255 255 255 / .72);
  --glass-86: rgb(255 255 255 / .86);
  --section-tint: color-mix(in srgb, var(--accent) 6%, var(--bg));
  --accent-border: color-mix(in srgb, var(--accent) 30%, var(--border));
  --shadow-1: 0 1px 2px rgb(18 24 38 / .05);
  --shadow-2: 0 1px 2px rgb(18 24 38 / .05), 0 12px 32px rgb(18 24 38 / .07);
  --shadow-3: 0 1px 2px rgb(18 24 38 / .06), 0 18px 44px rgb(18 24 38 / .09);
  --shadow-float: 0 1px 2px rgb(18 24 38 / .06), 0 8px 20px rgb(18 24 38 / .08);
  --shadow-seg: 0 1px 2px rgb(18 24 38 / .08), 0 2px 6px rgb(18 24 38 / .05);
  --shadow-cta: inset 0 1px 0 rgb(255 255 255 / .24), 0 2px 4px rgb(9 90 163 / .22), 0 10px 24px rgb(12 120 212 / .28);
  --shadow-cta-hover: inset 0 1px 0 rgb(255 255 255 / .24), 0 2px 4px rgb(9 90 163 / .24), 0 14px 30px rgb(12 120 212 / .34);
  --r-card: 8px;
  --r-btn: 8px;
  --r-pill: 999px;
  --r-frame: 18px;
  --r-inner: 12px;
  --r-note: 14px;
  --r-node: 3px;
  --r-segment: 6px;
  --r-shot: 8px;
  --r-round: 50%;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --size-body: 15px;
  --size-small: 12.5px;
  --size-mono: 11.5px;
  --size-title: clamp(34px, 3.4vw, 48px);
  --size-h2: clamp(23px, 2.6vw, 34px);
  --size-h3: clamp(17px, 1.6vw, 22px);
  --shell: 1240px;
  --reading: 76ch;
  --gutter: 40px;
  --gap: 16px;
  --section-space: clamp(40px, 6vw, 88px);
  --bar-height: 64px;
  --tap: 44px;
  --ease: .2s ease;
  --color-primary: var(--accent-dark);
  --color-accent: var(--accent);
  --color-text: var(--text);
  --color-bg: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  background: var(--bg);
  color: var(--text);
  font: var(--size-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
main { position: relative; }
:where(section, article, div, nav, aside, figure, header, footer, li) { min-width: 0; }
img, svg { max-width: 100%; }
svg, .dot, .icon, .brand-mark { flex-shrink: 0; }
button { font: inherit; color: inherit; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
:where(nav, .site-footer, .card, .notice, .hero) a { text-decoration: none; }
:where(nav, .site-footer, .card, .notice) a:hover { text-decoration: underline; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-btn);
}
p, figure, h1, h2, h3, h4, dl, dd { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
}
h1 { font-size: var(--size-title); text-wrap: pretty; }
h2 { font-size: var(--size-h2); text-wrap: balance; }
h3 { font-size: var(--size-h3); text-wrap: balance; }
:lang(ja) :is(h1, h2, h3, .lede) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2) { word-break: keep-all; }
.keep-word { white-space: nowrap; }
.clean-list { margin: 0; padding: 0; list-style: none; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
pre code { white-space: pre; overflow-wrap: normal; }
[id] { scroll-margin-top: 20px; }
.wrap, .shell {
  position: relative;
  width: min(var(--shell), calc(100% - 32px));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { width: min(100%, var(--reading)); min-width: 0; margin-inline: auto; }
.prose { min-width: 0; }
.prose > * + *, .flow > * + * { margin-block-start: var(--gap); }
.prose :is(h2, h3):not(:first-child) { margin-block-start: 1.5em; }
.prose :is(ul, ol) { padding-inline-start: 1.5em; }
.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;
}
.skip-link {
  position: absolute;
  inset: 6px auto auto 16px;
  z-index: 1;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--accent-dark);
}
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body > .skip-link:focus { z-index: 21; }

.btn {
  min-height: 46px;
  max-width: 100%;
  min-width: 0;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--bg);
  color: var(--text);
  font: 600 var(--size-body)/1.35 var(--font-body);
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), border-color var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { text-decoration: none; }
.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--cta-light), var(--accent-dark));
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-cta-hover); }
.btn-primary.dl-fab {
  background: var(--accent-dark);
  color: var(--white);
  border-color: var(--accent-dark);
}
.btn-ghost { background: var(--glass-72); color: var(--text); box-shadow: var(--shadow-1); font-weight: 550; }
.btn-ghost:hover { background: var(--white); color: var(--text); border-color: var(--accent-border); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--bg-panel-2); color: var(--text-muted); box-shadow: none; cursor: not-allowed; transform: none; }

#site-header, .preview-head { position: relative; z-index: 20; }
.notice {
  min-height: 36px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 10px;
  background:
    repeating-linear-gradient(135deg, var(--stripe) 0 1px, var(--clear) 1px 7px),
    radial-gradient(420px 60px at 30% 50%, var(--sky), var(--clear) 70%),
    radial-gradient(420px 60px at 72% 50%, var(--sky), var(--clear) 70%),
    var(--bg-panel);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: .005em;
  text-align: center;
}
.notice a { font-weight: 500; }
.site-head {
  position: relative;
  min-height: var(--bar-height);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.head-frame {
  position: relative;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  min-height: calc(var(--bar-height) - 1px);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 40px);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-name { min-width: 0; font: 700 16px/1.25 var(--font-display); letter-spacing: -.015em; }
.desktop-nav { margin-inline-start: auto; min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding-block: 7px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--text-muted);
  white-space: nowrap;
}
:is(.nav-list, .drawer-links) a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
  text-decoration: underline 2px var(--accent);
  text-underline-offset: .45em;
}
.head-tools { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.head-frame > .brand { flex-shrink: 0; }
.locale { position: relative; }
.lang, .menu-toggle {
  min-height: var(--tap);
  border: 0;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.lang {
  padding-inline: 24px 0;
  border-inline-start: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 14px/1.25 var(--font-body);
  white-space: nowrap;
}
.lang-short { display: none; }
.locale-list, .mobile-drawer {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.locale-list {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 4px) 0 auto auto;
  width: 174px;
  border-radius: var(--r-card);
  padding: 4px;
}
.locale-list a, .drawer-links a {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  color: var(--text);
  border-radius: var(--r-btn);
}
.locale-list a:hover, .drawer-links a:hover, a[hreflang][aria-current="true"]:is(.locale-list a, .drawer-links a) {
  background: var(--bg-panel);
  color: var(--accent-dark);
}
.menu-toggle { display: none; min-width: var(--tap); padding: 0; place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; z-index: -1; inset: 0; background: var(--veil-fill); }
html.nav-open { overflow: hidden; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  padding-block: 48px 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .8fr; gap: 24px; }
.footer-grid p { margin-top: 12px; color: var(--text-muted); }
.footer-grid h2 { font-size: var(--size-body); margin-bottom: 10px; }
.footer-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-list a, .footer-tail a { color: var(--accent-dark); }
.footer-tail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.sec--paper { background: var(--bg); color: var(--text); }
.sec--tint { background: var(--section-tint); color: var(--text); }
.sec--ink { background: var(--ink-band); color: var(--ink-text); }
.sec--ink .muted { color: var(--ink-muted); }
.sec--ink a:not(.btn) { color: var(--ink-link); }
.sec--ink :focus-visible { outline-color: var(--ink-link); }
.card, .panel {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.panel { background: var(--bg-panel); color: var(--text); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.card-grid > * { min-width: 0; }

.rails {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  width: min(var(--shell), calc(100% - 32px));
  transform: translateX(-50%);
  border-inline: 1px solid var(--border);
  pointer-events: none;
  z-index: 1;
}
.node {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-node);
  background: var(--bg);
  pointer-events: none;
}
.node.l { left: -6px; }
.node.r { right: -6px; }
.node.t { top: -6px; }
.node.b { bottom: -6px; }
.hline { position: absolute; inset-inline: 0; height: 1px; background: var(--border); pointer-events: none; }
.hatch { position: relative; z-index: 2; height: 56px; }
.hatch .shell {
  height: 100%;
  border-block: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, var(--hatch) 0 1.2px, var(--clear) 1.2px 9px);
}
.decor-clip { overflow-x: clip; }
.reveal { opacity: 1; }
.reveal.reveal-pending { transition: transform .44s ease, opacity .44s ease; }
.reveal.reveal-pending:not(.shown):not(:focus-within):not(:target) { opacity: 0; transform: translateY(10px); }

@media (max-width: 1280px) {
  html:not(:lang(zh)) .desktop-nav { display: none; }
  html:not(:lang(zh)) .menu-toggle { display: grid; }
  html:not(:lang(zh)) .head-tools { margin-inline-start: auto; }
  html:not(:lang(zh)) .mobile-drawer:not([hidden]) { display: block; }
}
@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  .desktop-nav { display: none; }
  .head-tools { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
  .mobile-drawer:not([hidden]) { display: block; }
}
.mobile-drawer {
  position: absolute;
  z-index: 2;
  inset: 100% var(--gutter) auto;
  padding: 8px;
  border-radius: var(--r-card);
  max-height: min(var(--drawer-space, 70dvh), calc(100dvh - var(--bar-height)));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-locales { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  :root { --size-title: clamp(24px, 5.6vw, 30px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .notice { font-size: 12px; padding-block: 6px; }
  .notice > a { margin-inline-start: auto; }
  .head-frame { gap: 6px; }
  .head-frame > .brand { max-width: min(16.5rem, calc(100vw - 128px)); gap: 8px; }
  .brand-name { text-wrap: balance; }
  .lang { border: 0; padding-inline: 5px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .tilt, .tilt:hover, [data-tilt], [data-tilt]:hover { transform: none; }
}
@media (max-width: 380px) {
  .wrap, .shell { width: calc(100% - 16px); }
  .rails { width: calc(100% - 16px); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.reveal-pending, .reveal.reveal-pending:not(.shown) { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}