:root {
  --bg:#FEFEFE;
  --bg-panel:#F4F4F4;
  --bg-panel-2:#EBEBEC;
  --border:#E3E3E6;
  --accent:#4D63FF;
  --accent-dark:#3043D9;
  --accent-soft:#7486FF;
  --text:#1C1C1F;
  --text-muted:#5F6068;
  --success:#1E9E5A;
  --warn:#D99A00;
  --error:#DE4538;
  --note:#FFE37A;
  --note-deep:#F0C94A;
  --peach:#FFD9C2;
  --halo-blue:#DCE1FF;
  --halo-peach:#FFE6D8;
  --halo-blue-soft:#EEF1FF;
  --tint:#F3F5FF;
  --inverse:#20243B;
  --inverse-text:#F7F8FF;
  --inverse-muted:#C4CAE2;
  --inverse-link:#ACB8FF;
  --ink:#2C2D33;
  --ink-soft:#4A4B53;
  --canvas:#E6E6E9;
  --canvas-shade:#D3D3D8;
  --canvas-light:#F1F1F3;
  --canvas-deep:#BDBDC4;
  --canvas-hi:#FAFAFB;
  --rack:#C9CAD1;
  --rack-hi:#ECECF0;
  --belt-top:#E1E1E5;
  --belt-side:#C3C3CA;
  --belt-stripe:#C9C9D0;
  --belt-hi:#F4F4F6;
  --roller:#A9AAB3;
  --wood-top:#EFD2A8;
  --wood-front:#DDB37E;
  --wood-leg:#CFA06A;
  --wood-deep:#B98953;
  --wood-hi:#F9E8CF;
  --wood-grain:#C99A63;
  --box:var(--bg-panel-2);
  --box-side:#D5D5DA;
  --lining:var(--bg);
  --lining-shade:#EDEDF0;
  --env-gray:#DCDCE0;
  --floor:#E6E8F1;
  --drop:rgba(28,28,40,.09);
  --shadow-soft:rgba(28,28,40,.06);
  --shadow-panel:rgba(28,28,40,.16);
  --accent-glow:rgba(77,99,255,.42);
  --hi-line:rgba(255,255,255,.28);
  --glass:rgba(255,255,255,.74);
  --clear:transparent;
  --color-primary:var(--accent-dark);
  --color-accent:var(--accent);
  --color-text:var(--text);
  --color-bg:var(--bg);
  --font-display:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Hiragino Sans GB","Microsoft YaHei","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --font-body:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Hiragino Sans GB","Microsoft YaHei","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace;
  --body-size:16px;
  --muted-size:14px;
  --tiny-size:12px;
  --h1-size:clamp(34px,3.4vw,48px);
  --h2-size:clamp(25px,3vw,40px);
  --h3-size:clamp(19px,2vw,23px);
  --r-pin:2px;
  --r-shot:10px;
  --r-note:16px;
  --r-card:22px;
  --r-tray:32px;
  --r-stage:40px;
  --r-pill:999px;
  --r-circle:50%;
  --bar-h:68px;
  --gutter:48px;
  --wrap:1344px;
  --nav-wrap:1280px;
  --reading:72ch;
  --gap:24px;
  --section-space:clamp(48px,7vw,88px);
  --fab-size:52px;
  --speed:.2s;
  --card-shadow:0 12px 30px -18px var(--shadow-panel),0 1px 3px var(--shadow-soft);
}

*,*::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-panel);
  color:var(--text);
  font-family:var(--font-body);
  font-size:var(--body-size);
  line-height:1.6;
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
[hidden] { display:none !important; }
:where(main,section,article,aside,div,li,nav,figure) { min-width:0; }
:where(h1,h2,h3,p,li,dt,dd,a,button,summary) { overflow-wrap:break-word; }
:where(img,svg,video) { max-width:100%; }
img { display:block; height:auto; }
:where(svg,.status-dot,.eyebrow-note,.sb-dot,.app-logo) { flex-shrink:0; }
figure { margin:0; }
button,select,input { font:inherit; color:inherit; }
a { color:var(--color-primary); text-underline-offset:.2em; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
[id] { scroll-margin-block-start:24px; }
h1,h2,h3 { margin:0 0 .55em; font-family:var(--font-display); font-weight:500; line-height:1.16; letter-spacing:-.02em; }
h1 { font-size:var(--h1-size); text-wrap:pretty; }
h2 { font-size:var(--h2-size); text-wrap:balance; }
h3 { font-size:var(--h3-size); text-wrap:balance; }
:lang(ja):is(h1,h2,h3,.lead,.hero-desc) { word-break:auto-phrase; }
:lang(ko):is(h1,h2) { word-break:keep-all; }
p { margin:0 0 1em; }
.lead { color:var(--text-muted); font-size:var(--h3-size); }
.nowrap { white-space:nowrap; }
:where(code,pre,kbd) { font-family:var(--font-mono); }
code { overflow-wrap:anywhere; }
:not(pre)>code {
  border-radius:var(--r-pin);
  background:var(--bg-panel-2);
  color:var(--text);
  padding:.09em .24em;
  font-size:.92em;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
pre { max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-inline:contain; padding:16px; border:1px solid var(--border); border-radius:var(--r-note); background:var(--bg-panel); color:var(--text); }
pre code { white-space:pre; overflow-wrap:normal; }
.wrap { width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
.reading { max-width:calc(var(--reading) + var(--gutter) * 2); }
.prose :is(h2,h3) { margin-top:1.25em; }
.section { padding-block:var(--section-space); }
.sec--paper { background:var(--bg); color:var(--text); }
.sec--tint { background:var(--tint); color:var(--text); }
.sec--ink { background:var(--inverse); color:var(--inverse-text); }
.sec--ink :is(.lead,.muted,.meta) { color:var(--inverse-muted); }
.sec--ink a:not(.btn) { color:var(--inverse-link); }
.sec--ink :focus-visible { outline-color:var(--inverse-link); }
.muted,.meta { color:var(--text-muted); }
.meta { font-size:var(--muted-size); }
.card,.tray { min-width:0; padding:clamp(18px,3vw,32px); border:1px solid var(--border); color:var(--text); }
.card { border-radius:var(--r-card); background:var(--bg); box-shadow:var(--card-shadow); }
.tray { border-radius:var(--r-tray); background:var(--bg-panel-2); }
.card h3 a,.foot-links a { color:inherit; text-decoration:none; }
.card h3 a:hover,.foot-links a:hover { text-decoration:underline; }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap); }
.grid > *, .cluster > * { min-width:0; }
.grid:has(> :nth-child(5):last-child) { grid-template-columns:repeat(6,minmax(0,1fr)); }
.grid:has(> :nth-child(5):last-child) > * { grid-column:span 2; }
.grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column:span 3; }
.grid:has(> :nth-child(7):last-child) { grid-template-columns:repeat(12,minmax(0,1fr)); }
.grid:has(> :nth-child(7):last-child) > * { grid-column:span 3; }
.grid:has(> :nth-child(7):last-child) > :nth-child(n+5) { grid-column:span 4; }
.cluster { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.decor-clip { position:relative; overflow-x:clip; }
.decor-full { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
svg.tilt,.tilt[aria-hidden="true"] { transform:rotate(-.45deg); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

.btn {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-height:52px;
  max-width:100%;
  padding:8px 26px;
  border:0;
  border-radius:var(--r-pill);
  font-family:var(--font-body);
  font-size:var(--body-size);
  font-weight:500;
  line-height:1.35;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:transform var(--speed) ease,box-shadow var(--speed) ease,border-color var(--speed) ease;
}
.btn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.btn-primary { color:var(--bg); background:linear-gradient(180deg,var(--accent),var(--accent-dark)); box-shadow:inset 0 1px 0 var(--hi-line),0 14px 30px -12px var(--accent-glow),0 3px 8px -3px var(--accent-glow); }
.dl-fab.btn-primary { background:var(--accent-dark); color:var(--bg); border:1px solid var(--accent-dark); }
.btn-primary:hover,.btn-primary.is-hover { transform:translateY(-1px); box-shadow:inset 0 1px 0 var(--hi-line),0 18px 34px -12px var(--accent-glow),0 4px 10px -3px var(--accent-glow); }
.btn-ghost { color:var(--text); background:var(--glass); border:1px solid var(--border); box-shadow:0 1px 2px var(--shadow-soft); backdrop-filter:blur(6px); }
.btn-ghost:hover { border-color:var(--accent); }
.btn-ink { background:var(--text); color:var(--bg); }
.btn-ink:hover { background:var(--ink-soft); color:var(--bg); }
.btn:active,.btn.is-pressed { transform:translateY(1px); }
.btn.is-focus { outline:2px solid var(--accent); outline-offset:3px; }
.btn:disabled { background:var(--bg-panel-2); color:var(--text-muted); box-shadow:none; cursor:not-allowed; transform:none; }

.topbar { position:relative; z-index:5; height:var(--bar-h); background:var(--bg); color:var(--text); border-bottom:1px solid var(--border); }
.topbar-inner { width:100%; max-width:min(100%,calc(var(--nav-wrap) + var(--gutter) * 2)); height:100%; margin-inline:auto; padding-inline:var(--gutter); display:flex; align-items:center; }
.brand { display:inline-flex; align-items:center; flex-shrink:0; gap:10px; color:var(--text); text-decoration:none; }
.brand-mark { width:34px; height:34px; flex-shrink:0; }
.brand-name { font-family:var(--font-display); font-size:1.0625rem; font-weight:600; letter-spacing:-.01em; line-height:1.25; text-wrap:balance; }
.mainnav { margin-inline-start:auto; min-width:0; }
.mainnav-list,.language-list,.foot-links { list-style:none; padding:0; margin:0; }
.mainnav-list { display:flex; align-items:center; gap:2px; }
.mainnav-link { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:4px 14px; border-radius:var(--r-pill); color:var(--text-muted); font-size:.9375rem; font-weight:500; text-decoration:none; white-space:nowrap; }
.mainnav-link svg,.nav-icon { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.mainnav-link:hover,.mainnav-link[aria-current="page"],.language-list a:hover,.language-list a[aria-current="true"] { color:var(--text); background:var(--bg-panel); }
.mainnav-link:hover,.language-list a:hover { text-decoration:underline; }
.header-tools { display:flex; align-items:center; gap:6px; flex-shrink:0; margin-inline-start:18px; }
.lang-control { position:relative; }
.lang,.nav-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:0 14px 0 12px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg);
  color:var(--text);
  font-size:var(--muted-size);
  font-weight:500;
  white-space:nowrap;
  cursor:pointer;
}
.lang .nav-icon,.lang-caret { color:var(--text-muted); }
.lang-caret { font-size:var(--tiny-size); }
.lang-short,.nav-toggle,.nav-drawer,.nav-veil { display:none; }
.language-pop { position:absolute; inset:calc(100% + 8px) 0 auto auto; min-width:160px; padding:6px; border:1px solid var(--border); border-radius:var(--r-note); box-shadow:var(--card-shadow); background:var(--bg); color:var(--text); }
.language-list a { display:flex; align-items:center; min-height:44px; padding:8px 12px; border-radius:var(--r-shot); text-decoration:none; color:var(--text); }
.stage { position:relative; background:var(--bg); color:var(--text); border-radius:0 0 var(--r-stage) var(--r-stage); box-shadow:0 1px 0 var(--border),0 34px 60px -44px var(--shadow-panel); }
.stage > .hero { border-radius:inherit; }

.site-footer { padding-block:56px 24px; background:var(--bg); color:var(--text); border-top:1px solid var(--border); }
.footer-grid { display:grid; grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr)); gap:var(--gap); }
.footer-grid .brand { margin-bottom:12px; }
.foot-heading { margin-bottom:12px; font-size:var(--body-size); }
.foot-links { display:grid; gap:6px; color:var(--text-muted); font-size:var(--muted-size); }
.foot-links a[aria-current] { color:var(--color-primary); text-decoration:underline; text-decoration-thickness:2px; }
.footer-end { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; margin-top:28px; padding-top:16px; border-top:1px solid var(--border); color:var(--text-muted); font-size:var(--muted-size); }
.footer-end a { text-decoration:none; }
.footer-end a:hover { text-decoration:underline; }
.with-dl-fab .site-footer { padding-bottom:calc(var(--fab-size) + 40px + env(safe-area-inset-bottom,0px)); }

.reveal-live .reveal { transition:opacity .55s ease,transform .55s ease; }
.reveal-live .reveal:not(.shown):not(:focus-within) { opacity:0; transform:translateY(12px); }

@media (max-width:1280px) {
  :root { --gutter:32px; }
  .mainnav-link { padding-inline:9px; font-size:var(--muted-size); }
  html:not(:lang(zh-CN)) .topbar .mainnav { display:none; }
  html:not(:lang(zh-CN)) .header-tools { margin-inline-start:auto; }
  html:not(:lang(zh-CN)) .nav-toggle { display:inline-flex; }
  html:not(:lang(zh-CN)) .nav-drawer:not([hidden]),html:not(:lang(zh-CN)) .nav-veil:not([hidden]) { display:block; }
}
.nav-toggle { min-width:44px; min-height:44px; padding:0; }
.nav-toggle svg { width:20px; height:20px; }
.nav-veil { position:fixed; inset:var(--bar-h) 0 0; background:var(--shadow-panel); color:var(--text); z-index:1; touch-action:none; }
.nav-drawer {
  position:fixed;
  inset:var(--bar-h) 0 auto;
  z-index:2;
  max-height:calc(100vh - var(--bar-h));
  max-height:calc(100dvh - var(--bar-h));
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:12px var(--gutter) 20px;
  border-bottom:1px solid var(--border);
  background:var(--bg);
  color:var(--text);
  box-shadow:var(--card-shadow);
}
.nav-drawer .mainnav-list { align-items:stretch; flex-direction:column; }
.nav-drawer .mainnav-link { display:flex; width:100%; min-height:44px; padding:8px 12px; white-space:normal; }
.nav-drawer .language-list { margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
@media (max-width:1040px) {
  :root { --gutter:20px; }
  .mainnav { display:none; }
  .header-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,5vw,30px); --gap:16px; }
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid,.grid:has(> :nth-child(5):last-child),.grid:has(> :nth-child(7):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid > *, .grid:has(> :nth-child(5):last-child) > *, .grid:has(> :nth-child(7):last-child) > * { grid-column:auto; }
  .grid > :nth-child(odd):last-child { grid-column:1/-1 !important; }
}
@media (max-width:640px) {
  :root { --gutter:20px; }
  .grid,.grid:has(> :nth-child(5):last-child),.grid:has(> :nth-child(7):last-child) { grid-template-columns:minmax(0,1fr); }
  .cluster--badges { justify-content:center; }
  .tilt,.tilt[aria-hidden="true"] { transform:none; }
  .brand-name { max-width:min(16.5rem,calc(100vw - 128px)); }
  .topbar .brand { flex-shrink:1; min-width:0; margin-inline-end:6px; }
  .topbar .brand-name { min-width:0; }
  .lang { min-height:44px; }
  .lang-full { display:none; }
  .lang-short { display:inline; }
  .footer-grid > :first-child { grid-column:1/-1; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .reveal-live .reveal,.reveal-live .reveal:not(.shown) { transition:none; opacity:1; transform:none; }
  .btn { transition:none; }
  .btn-primary:hover { transform:none; }
}