:root {
  color-scheme: light;
  --bg: #E7EEF9;
  --bg-top: #F1F5FC;
  --panel: #F7FAFE;
  --panel-2: #D9E3F2;
  --border: #C9D5E8;
  --accent: #1B56C9;
  --accent-dark: #133E96;
  --ice: #3FA9E8;
  --announce: #0D2C6E;
  --text: #0F1C33;
  --muted: #52617A;
  --success: #1E8E5A;
  --warn: #B7791F;
  --error: #C8364A;
  --white: #FFFFFF;
  --mask-on: #000000;
  --clear: transparent;
  --flag-red: #D42A2F;
  --flag-navy: #22357F;
  --ice-deep: color-mix(in srgb, var(--ice) 80%, var(--accent));
  --frame: color-mix(in srgb, var(--accent) 30%, var(--white));
  --a04: rgba(27,86,201,.04);
  --a06: rgba(27,86,201,.06);
  --a08: rgba(27,86,201,.08);
  --a10: rgba(27,86,201,.10);
  --a12: rgba(27,86,201,.12);
  --a16: rgba(27,86,201,.16);
  --a22: rgba(27,86,201,.22);
  --a32: rgba(27,86,201,.32);
  --a50: rgba(27,86,201,.50);
  --w-a90: rgba(255,255,255,.90);
  --w-a72: rgba(255,255,255,.74);
  --w-a20: rgba(255,255,255,.22);
  --w-a12: rgba(255,255,255,.13);
  --deep-a30: rgba(6,22,64,.30);
  --ink-a14: rgba(15,28,51,.14);
  --font-display: "Inter","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --font-body: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --font-mono-mix: "JetBrains Mono","Noto Sans SC","PingFang SC",ui-monospace,Menlo,Consolas,monospace;
  --weight-medium: 500;
  --weight-label: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --r-dot: 50%;
  --r-flag: 3px;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-control: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-phone: 34px;
  --r-pill: 999px;
  --grid-size: 32px;
  --grid-x: linear-gradient(to right,var(--a04) 1px,var(--clear) 1px);
  --grid-y: linear-gradient(to bottom,var(--a04) 1px,var(--clear) 1px);
  --hl: inset 0 1px 0 var(--w-a90);
  --sh-card: 0 1px 2px var(--a06),0 10px 30px -10px var(--a10);
  --sh-window: 0 2px 4px var(--a06),0 12px 32px -16px var(--a16),0 30px 90px -10px var(--a12);
  --sh-float: 0 2px 6px var(--a08),0 18px 44px -14px var(--a22);
  --sh-btn: 0 12px 26px -12px var(--a50),inset 0 1px 0 var(--w-a20);
  --grad-btn: linear-gradient(115deg,var(--accent) 0%,var(--accent) 50%,var(--ice-deep) 135%);
  --gutter: clamp(16px, 3vw, 32px);
  --site-width: 1200px;
  --read-width: 850px;
  --head-height: 64px;
  --head-inset: 12px;
  --anchor-gap: 16px;
  --toc-height: 54px;
  --toc-top: 8px;
  --page-space: clamp(42px, 7vw, 88px);
  --type-h1: clamp(52px, 5vw, 72px);
  --type-hero: clamp(52px, 6.2vw, 68px);
  --type-h2: clamp(26px, 4vw, 40px);
  --type-h3: 21px;
  --type-body: 16px;
  --type-lede: 17px;
  --type-small: 14px;
  --type-chip: 13px;
  --type-micro: 11px;
  --type-nav: 15px;
  --type-brand: 20px;
  --type-price: clamp(30px, 5vw, 44px);
  --ease-ui: .18s ease;
  --ease-reveal: .36s ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--anchor-gap); scroll-behavior: smooth; }
body {
  margin: 0;
  font: var(--type-body)/1.5 var(--font-body);
  color: var(--text);
  background: var(--bg) var(--grid-x);
  background-image: var(--grid-x), var(--grid-y);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; vertical-align: middle; }
img { height: auto; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
summary { cursor: pointer; }
h1, h2, h3 { margin: 0 0 .45em; font-family: var(--font-display); overflow-wrap: normal; text-wrap: balance; }
h1 { font-size: var(--type-h1); font-weight: var(--weight-display); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: var(--type-h2); font-weight: var(--weight-display); line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: var(--type-h3); line-height: 1.35; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel-2); }
pre code { white-space: pre; }
main, article, section, aside, .grid > *, .feature-browser > *, .footer-grid > * { min-width: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i, .pf, .flag, .dot { display: inline-block; flex-shrink: 0; }
.no-break { white-space: nowrap; }
.wrap, .reading-wrap { width: 100%; max-width: var(--site-width); margin-inline: auto; padding-inline: var(--gutter); }
.reading-wrap { max-width: var(--read-width); }
.sec { padding-top: var(--page-space); padding-bottom: var(--page-space); }
.page-lead { padding-top: var(--page-space); padding-bottom: 24px; }
.prose { line-height: 1.8; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.prose li + li { margin-top: .4em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono-mix); }
.eyebrow { margin: 0 0 14px; font-size: var(--type-chip); line-height: 18px; font-weight: var(--weight-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lede { margin: 20px auto 0; max-width: 860px; font-size: var(--type-lede); line-height: 27px; color: var(--muted); }
.lede strong { color: var(--text); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(min(100%, 240px),1fr)); }
.card, .panel { padding: clamp(16px, 3vw, 26px); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-card),var(--hl); }
.panel-inset { padding: 16px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-sm); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.stage { position: relative; max-width: 100%; overflow-x: clip; background-color: var(--bg); background-image: var(--grid-x),var(--grid-y),linear-gradient(180deg,var(--bg-top) 0,var(--bg) 900px); background-size: var(--grid-size) var(--grid-size),var(--grid-size) var(--grid-size),100% 100%; }
.art-clip { position: relative; max-width: 100%; overflow-x: clip; }
.stripe-halo { position: absolute; inset-inline: 0; max-width: 100%; pointer-events: none; }
#server-status { position: relative; display: flow-root; min-width: 0; max-width: 100%; overflow: hidden; margin: 0; }
#server-status > * { min-width: 0; max-width: 100%; }
#server-status + * { margin-top: 24px; }
.reveal { transition: opacity var(--ease-reveal),transform var(--ease-reveal); }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  max-width: 100%; min-height: 50px; padding: 8px 28px; border: 1.5px solid var(--clear); border-radius: var(--r-pill);
  font-size: var(--type-body); font-weight: var(--weight-label); letter-spacing: .01em; text-decoration: none; text-align: center;
  transition: transform var(--ease-ui), background-color var(--ease-ui); cursor: pointer;
}
.btn-primary, .btn-solid { color: var(--white); background-color: var(--accent); background-image: var(--grad-btn); box-shadow: var(--sh-btn); }
.btn-ghost, .btn-secondary { color: var(--accent); background: var(--panel); border-color: var(--accent); box-shadow: var(--hl); }
.btn-secondary { white-space: nowrap; }
.btn:not(:disabled):hover, .btn.demo-hover { transform: translateY(-1px); }
.btn:not(:disabled):active, .btn.demo-active { transform: translateY(1px); }
.btn:disabled { color: var(--muted); background: var(--panel-2); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.btn.demo-focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.notice-bar { background: var(--announce); color: var(--white); }
.notice-text { max-width: var(--site-width); margin: 0 auto; padding: 10px max(24px,var(--gutter)); font-size: var(--type-small); line-height: 20px; text-align: center; letter-spacing: .01em; }
.notice-link { display: inline-block; min-height: 24px; margin: -2px 0 -2px 12px; line-height: 24px; color: var(--white); font-weight: var(--weight-label); white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.notice-link:focus-visible { outline-color: var(--white); }
.masthead { position: relative; z-index: 20; padding: var(--head-inset) 24px 0; min-height: calc(var(--head-height) + var(--head-inset)); }
.masthead-inner {
  position: relative; z-index: 3; max-width: 1376px; height: var(--head-height); margin: 0 auto;
  display: flex; align-items: center; gap: 24px; padding: 0 14px 0 20px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-card),var(--hl);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { display: block; flex: none; }
.brand-en { font-family: var(--font-display); font-size: var(--type-brand); font-weight: var(--weight-display); letter-spacing: -.02em; color: var(--text); }
.nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 38px;
  padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--clear);
  font-size: var(--type-nav); font-weight: var(--weight-medium); color: var(--text); text-decoration: none;
  white-space: nowrap; cursor: pointer;
}
.nav-link:hover, .nav-more[open] > .nav-link { background: var(--a06); color: var(--accent); }
.nav-link.is-current { color: var(--accent); font-weight: var(--weight-label); }
.nav-link.is-current::after { content: ""; position: absolute; inset: auto 14px 4px; height: 2px; border-radius: var(--r-pill); background: var(--accent); }
.nav-more, .lang-menu { position: relative; }
.nav-more summary::-webkit-details-marker, .nav-sm summary::-webkit-details-marker { display: none; }
.more-panel, .lang-panel, .nav-sm-panel {
  position: absolute; z-index: 5; top: calc(100% + 12px); padding: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-float),var(--hl);
}
.more-panel { left: 50%; width: 286px; transform: translateX(-50%); }
.more-cap { margin: 6px 10px 4px; font-family: var(--font-mono-mix); font-size: var(--type-micro); letter-spacing: .08em; color: var(--muted); }
.more-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; }
.more-item:hover, .lang-panel a:hover, .mobile-drawer a:hover { background: var(--a06); }
.more-ico { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--panel-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.more-name { display: block; font-size: var(--type-small); font-weight: var(--weight-label); color: var(--text); line-height: 20px; }
.more-desc { display: block; font-size: var(--type-micro); color: var(--muted); line-height: 17px; }
.more-item[aria-current="page"], .lang-panel a[aria-current="true"], .mobile-drawer a[aria-current] { color: var(--accent-dark); background: var(--a08); font-weight: var(--weight-bold); }
.mast-actions { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: nowrap; }
.lang-switch, .nav-sm summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px;
  padding: 0 12px; border: 0; border-radius: var(--r-sm); background: var(--clear);
  font-size: var(--type-small); color: var(--muted); cursor: pointer; white-space: nowrap;
}
.lang-switch:hover, .nav-sm[open] summary { background: var(--a06); color: var(--text); }
.lang-name { white-space: nowrap; }
.lang-panel, .nav-sm-panel { right: 0; width: 170px; margin: 0; }
.lang-panel a, .nav-sm-panel a { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
.btn-login {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 22px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--white); box-shadow: var(--sh-btn);
  font-size: var(--type-small); font-weight: var(--weight-label); text-decoration: none; white-space: nowrap;
}
.btn-login:hover { background: var(--accent-dark); }
.nav-sm, .burger, .mobile-drawer, .nav-veil { display: none; }
.burger { min-width: 44px; min-height: 44px; padding: 0; border: 0; color: var(--text); background: var(--clear); border-radius: var(--r-sm); cursor: pointer; }
.burger[aria-expanded="true"] { background: var(--panel-2); }

.site-foot { background: var(--panel); border-top: 1px solid var(--border); padding-top: 44px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .7fr; gap: 24px; }
.footer-brand p { margin-top: 12px; max-width: 28ch; color: var(--muted); }
.footer-title { margin-bottom: 8px; font-size: var(--type-small); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .foot-base a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; }
.footer-links a:hover, .foot-base a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border); font-size: var(--type-small); color: var(--muted); }

@media (max-width: 1024px) {
  .nav { display: none; }
  .mast-actions { margin-left: auto; }
  .burger { display: inline-grid; place-items: center; }
  .nav-sm { display: block; position: relative; }
  .nav-sm-panel { width: 220px; }
  html.nav-open { overflow: hidden; }
  html.nav-open .masthead-inner { position: fixed; top: 0; inset-inline: 0; max-width: none; border-radius: 0; }
  .nav-veil { display: block; position: fixed; z-index: 1; inset: var(--head-height) 0 0; background: var(--deep-a30); }
  .mobile-drawer {
    display: block; position: fixed; z-index: 2; top: var(--head-height); right: 0;
    width: min(100%, 420px); height: calc(100dvh - var(--head-height)); max-height: calc(100dvh - var(--head-height));
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom,0px)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel); border-left: 1px solid var(--border); box-shadow: var(--sh-float);
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer ul + ul { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --type-h1: clamp(28px, 6vw, 40px); --type-hero: clamp(28px, 9vw, 40px); }
}
@media (max-width: 640px) {
  .no-break { white-space: normal; }
  .tilt { transform: none; }
  .art-clip, .stripe-halo { max-width: 100%; }
  .masthead { padding-inline: var(--gutter); }
  .masthead-inner { padding-inline: 9px; gap: 4px; }
  .masthead .brand { gap: 5px; }
  .masthead .brand-mark { width: 26px; }
  .masthead .brand-en { font-size: var(--type-body); }
  .mast-actions { gap: 2px; }
  .lang-switch, .nav-sm summary { min-height: 44px; padding-inline: 5px; font-size: var(--type-chip); }
  .lang-switch svg { display: none; }
  .lang-panel { right: auto; left: 50%; transform: translateX(-50%); }
  .btn-login { padding-inline: 10px; font-size: var(--type-chip); }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { transition: none; opacity: 1; transform: none; }
  .btn, .btn:not(:disabled):hover, .btn:not(:disabled):active { transition: none; transform: none; }
}