:root {
  color-scheme: light;
  --c-bg: #E8EEF9;
  --c-panel: #F8FAFE;
  --c-pane: #EEF2FA;
  --c-groove: #DCE3F2;
  --c-border: #C8D2E8;
  --c-border-soft: rgb(200 210 232 / .72);
  --c-hero-top: #F1F5FC;
  --c-hero-bottom: #E3EAF6;
  --c-accent: #B12CD8;
  --c-accent-dark: #7E1BA0;
  --c-accent-hi: #CC5BEB;
  --c-accent-soft: rgb(177 44 216 / .10);
  --c-accent-tint: rgb(177 44 216 / .08);
  --c-sky: #3D63F2;
  --c-sky-hi: #7C9BFF;
  --c-sky-soft: #D9E3FF;
  --c-sky-tint: rgb(61 99 242 / .09);
  --c-text: #16224F;
  --c-text-2: #24336E;
  --c-muted: #56628B;
  --c-success: #1E9A6A;
  --c-success-soft: rgb(30 154 106 / .22);
  --c-warn: #C7831A;
  --c-error: #D2384B;
  --c-white: #FFFFFF;
  --c-on-dark: #E9EEFB;
  --c-on-dark-muted: rgb(233 238 251 / .74);
  --c-on-dark-chip: rgb(255 255 255 / .14);
  --glow-accent: rgb(177 44 216 / .06);
  --glow-sky: rgb(61 99 242 / .06);
  --shadow-ink: rgb(22 34 79 / .07);
  --shadow-ink-strong: rgb(22 34 79 / .22);
  --shadow-tint-10: rgb(177 44 216 / .10);
  --shadow-tint-12: rgb(177 44 216 / .12);
  --shadow-tint-20: rgb(177 44 216 / .20);
  --shadow-tint-40: rgb(177 44 216 / .40);
  --shadow-sky-14: rgb(61 99 242 / .14);
  --hl-edge: rgb(255 255 255 / .92);
  --hl-soft: rgb(255 255 255 / .32);
  --hl-gloss: rgb(255 255 255 / .26);
  --hl-none: transparent;
  --flag-red: #D3313F;
  --flag-navy: #26306B;
  --flag-white: #FFFFFF;
  --flag-edge: rgb(22 34 79 / .16);
  --radius-card: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-btn: 10px;
  --radius-plate: 32px;
  --radius-arc: 240px;
  --radius-inset: 8px;
  --radius-seg: 9px;
  --radius-conn: 18px;
  --radius-focus: 6px;
  --radius-flag: 4px;
  --radius-indicator: 3px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gradient-word: linear-gradient(100deg, var(--c-accent) 8%, var(--c-sky) 92%);
  --gradient-action: linear-gradient(135deg, var(--c-accent-hi), var(--c-accent) 48%, var(--c-accent-dark));
  --gradient-pair: linear-gradient(135deg, var(--c-accent), var(--c-sky));
  --gradient-tint: linear-gradient(135deg, var(--c-accent-tint), var(--c-sky-tint));
  --card-shadow: 0 0 0 1px var(--c-border-soft), inset 0 1px 0 var(--hl-edge), 0 24px 60px -14px var(--shadow-tint-10);
  --gutter: 32px;
  --wrap: 1304px;
  --head-h: 68px;
  --ann-h: 44px;
  --toc-offset: 0px;
  --anchor-gap: 12px;
  --section-gap: clamp(48px, 6vw, 88px);
  --type-h1: clamp(52px, 4.6vw, 64px);
  --type-h2: clamp(28px, 3.3vw, 44px);
  --type-h3: 22px;
  --type-body: 16px;
  --type-small: 14px;
  --weight-display: 800;
  --weight-strong: 700;
  --weight-label: 600;
  --lift-time: .2s;
  --reveal-time: .36s;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--anchor-gap);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-bg);
  font: var(--type-body)/1.6 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); line-height: 1.15; }
h1, h2 { text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: var(--type-h1); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); text-wrap: pretty; }
ul[role="list"], nav ul, .facts, .platforms, .flags, .routes__list, .footer-list {
  list-style: none; margin: 0; padding: 0;
}
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-sky); outline-offset: 3px; border-radius: var(--radius-focus); }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
small, .muted { color: var(--c-muted); }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%; min-width: 0; overflow-x: auto; padding: 16px;
  background: var(--c-pane); border-radius: var(--radius-sm);
}
pre code { white-space: pre; overflow-wrap: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); min-width: 0; }
.section { padding-block: var(--section-gap); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head p, .lede { color: var(--c-muted); max-width: 40em; }
.reading-wrap { max-width: 54em; }
.prose { min-width: 0; }
.prose :where(p, ul, ol, pre, blockquote, .table-scroll) { margin-block: 0 1em; }
.prose :where(h2, h3) { margin-block: 1.35em .5em; }
.prose p { max-width: 45em; }
.prose :where(p, li) a { color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: .18em; }
.no-break, .nowrap, .price-lock { 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;
}
.title-accent { color: var(--c-accent-dark); padding-bottom: .04em; }
@supports (background-clip: text) {
  .title-accent { background: var(--gradient-word); background-clip: text; color: var(--hl-none); }
}
@media (forced-colors: active) {
  .title-accent { background: none; color: inherit; }
}
.icon, .dot { flex-shrink: 0; }
.card { min-width: 0; padding: clamp(16px, 3vw, 32px); border-radius: var(--radius-card); background: var(--c-panel); box-shadow: var(--card-shadow); }
.panel { min-width: 0; padding: 16px; border-radius: var(--radius-md); background: var(--c-groove); }
.decor-field { position: relative; overflow-x: clip; isolation: isolate; }
.decor-field > .stripe-halo { position: absolute; pointer-events: none; inset: 0 0 auto; max-width: 100%; height: 65%; background: radial-gradient(ellipse at 85% 25%, var(--glow-accent), var(--hl-none) 70%); z-index: -1; }
#server-status { margin-block: 24px; padding: 12px; background: var(--c-panel); border-radius: var(--radius-card); border: 1px solid var(--c-border-soft); overflow: hidden; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-btn);
  font-size: var(--type-body); font-weight: var(--weight-strong); white-space: nowrap; cursor: pointer;
  transition: transform var(--lift-time) ease, box-shadow var(--lift-time) ease;
}
.btn--primary, .btn-primary { color: var(--c-white); background: var(--gradient-action); box-shadow: 0 14px 28px -12px var(--shadow-tint-40), inset 0 1px 0 var(--hl-soft); }
.btn--ghost, .btn-secondary { color: var(--c-text); background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-border), 0 6px 16px -12px var(--shadow-ink-strong); }
.btn--compact { min-height: 40px; padding-inline: 14px; font-size: var(--type-small); }
.btn:not(:disabled):hover, .btn.is-hover { transform: translateY(-1px); }
.btn:not(:disabled):active, .btn.is-pressed { transform: translateY(1px); }
.btn.is-focused { outline: 2px solid var(--c-sky); outline-offset: 3px; }
.btn:disabled { color: var(--c-muted); background: var(--c-groove); box-shadow: none; cursor: not-allowed; }
.reveal { transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease; }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; }

#site-header, .preview-header { position: relative; z-index: 20; }
.ann-toggle:checked + .announce { display: none; }
.announce { background: var(--c-text); color: var(--c-on-dark); }
.announce__inner {
  position: relative; min-height: var(--ann-h); display: flex; align-items: center;
  justify-content: center; gap: 16px; padding-block: 6px; padding-inline: max(var(--gutter), 64px);
}
.announce__text { font-size: var(--type-small); font-weight: 500; letter-spacing: .01em; text-align: center; }
.announce__pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px;
  padding-inline: 14px 12px; border-radius: var(--radius-pill); background: var(--c-sky-soft);
  color: var(--c-text); font-size: 13px; font-weight: var(--weight-strong); white-space: nowrap;
  transition: transform var(--lift-time) ease;
}
.announce__pill:hover { transform: translateX(2px); }
.announce__close {
  position: absolute; right: 24px; top: 50%; margin-top: -16px; width: 32px; height: 32px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-inset);
  background: none; color: var(--c-on-dark); cursor: pointer; font-size: 22px; line-height: 1;
}
.announce__close:hover { background: var(--c-on-dark-chip); }
.ann-toggle:focus-visible + .announce .announce__close { outline: 2px solid var(--c-sky-soft); outline-offset: 2px; }

.topbar { position: relative; z-index: 3; background: var(--c-panel); border-bottom: 1px solid var(--c-border-soft); }
.topbar__row { display: flex; align-items: center; gap: 24px; height: var(--head-h); flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.brand__mark { display: block; width: 32px; height: 32px; flex: none; }
.brand__en { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 19px; letter-spacing: -.02em; color: var(--c-text); }
.tabs { margin-left: 12px; flex: 1; min-width: 0; }
.tabs > ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: var(--head-h);
  padding-inline: 14px; font-size: 15px; font-weight: var(--weight-label);
  color: var(--c-muted); white-space: nowrap; transition: color var(--lift-time) ease;
}
.tab::after {
  content: ""; position: absolute; inset: auto 14px -1px; height: 3px;
  border-radius: var(--radius-indicator) var(--radius-indicator) 0 0;
  background: var(--gradient-pair); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.tab:hover, .tab.is-active { color: var(--c-text); }
.tab:hover::after { transform: scaleX(.4); }
.tab.is-active::after { transform: scaleX(1); }
.tab-more, .lang-box { position: relative; }
.tab-more > button { border: 0; background: none; }
.lang-box summary, .preview-drawer summary { list-style: none; }
.lang-box summary::-webkit-details-marker, .preview-drawer summary::-webkit-details-marker { display: none; }
.tab-more__panel, .lang-panel {
  position: absolute; z-index: 6; top: calc(100% + 4px); min-width: 168px; padding: 8px;
  border-radius: var(--radius-md); background: var(--c-panel); box-shadow: var(--card-shadow);
}
.tab-more__panel { top: calc(100% - 6px); left: 4px; }
.lang-panel { right: 0; }
.tab-more__panel a, .lang-panel a {
  display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: var(--radius-btn);
  font-size: var(--type-small); font-weight: var(--weight-label); white-space: nowrap;
}
.tab-more__panel a:hover, .lang-panel a:hover, .drawer a:hover { background: var(--c-pane); }
.topbar__end { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 40px;
  padding-inline: 10px; border: 0; border-radius: var(--radius-btn); background: none;
  font-size: var(--type-small); font-weight: var(--weight-label);
}
.lang:hover { background: var(--c-pane); }
.btn-login {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding-inline: 20px;
  border-radius: var(--radius-btn); background: var(--c-text); color: var(--c-white); white-space: nowrap;
  font-size: var(--type-small); font-weight: var(--weight-strong); box-shadow: 0 8px 18px -10px var(--shadow-ink-strong);
  transition: transform var(--lift-time) ease;
}
.btn-login:hover { transform: translateY(-1px); }
.hamburger, .drawer, .nav-veil, .preview-drawer { display: none; }
.hamburger {
  min-width: 44px; min-height: 44px; place-items: center; padding: 0; border: 0;
  border-radius: var(--radius-btn); background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-border);
}
.drawer {
  position: absolute; top: 100%; right: var(--gutter); z-index: 2;
  width: min(360px, calc(100% - 2 * var(--gutter)));
  height: calc(100dvh - var(--head-h) - var(--ann-h));
  max-height: calc(100dvh - var(--head-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 10px var(--gutter) 18px; background: var(--c-panel);
  border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--card-shadow);
}
.drawer__langs { border-top: 1px solid var(--c-border); margin-top: 8px; padding-top: 8px; }
.drawer a {
  display: flex; width: 100%; min-height: 44px; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-btn); font-weight: var(--weight-label);
}
.drawer a[aria-current], .lang-panel a[aria-current], .tab-more__panel a[aria-current] { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.nav-veil { position: fixed; inset: 0; z-index: 1; background: var(--shadow-ink-strong); }

.site-foot { background: var(--c-text); color: var(--c-on-dark); padding-block: 48px 20px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-grid > * { min-width: 0; }
.site-foot .brand__en, .foot-title { color: var(--c-white); }
.foot-intro p { max-width: 23em; margin-top: 12px; color: var(--c-on-dark-muted); }
.foot-title { margin-bottom: 10px; font-weight: var(--weight-strong); }
.footer-list a, .foot-base a { display: inline-flex; align-items: center; min-height: 29px; color: var(--c-on-dark-muted); }
.site-foot a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: .2em; }
.site-foot a:focus-visible { outline-color: var(--c-sky-soft); }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--c-on-dark-chip);
  color: var(--c-on-dark-muted); font-size: var(--type-small);
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 16px; }

@media (min-width: 1081px) and (max-width: 1280px) {
  .topbar__row { gap: 16px; }
  .tabs { margin-left: 4px; }
  .tab { padding-inline: 10px; font-size: 14px; }
  .tab::after { inset-inline: 10px; }
}
@media (max-width: 1080px) {
  :root { --head-h: 64px; }
  .tabs { display: none; }
  .topbar__end { margin-left: auto; }
  .hamburger { display: inline-grid; }
  .drawer:not([hidden]), .nav-veil:not([hidden]), .preview-drawer { display: block; }
  .preview-drawer > .drawer { position: fixed; top: calc(var(--head-h) + var(--ann-h)); }
  .preview-header:has(.ann-toggle:checked) .preview-drawer > .drawer { top: var(--head-h); }
  html.nav-open, html:has(.preview-drawer[open]) { overflow: hidden; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --type-h1: clamp(28px, 7vw, 40px); --ann-h: 76px; }
  .announce__inner { flex-direction: column; gap: 4px; padding-inline: 40px; }
  .announce__text { font-size: 13px; }
  .announce__close { right: 6px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .no-break { white-space: normal; }
  .tilt, [data-tilt] { transform: none !important; }
  .topbar__row { gap: 6px; }
  .topbar__end { gap: 5px; }
  .topbar .brand { gap: 5px; }
  .topbar .brand__mark { width: 24px; height: 24px; }
  .topbar .brand__en { font-size: 16px; }
  .lang { padding-inline: 4px; font-size: 12px; gap: 3px; }
  .lang svg { width: 14px; height: 14px; }
  .btn-login { padding-inline: 9px; font-size: 13px; }
}
@media (max-width: 480px) {
  .drawer { inset-inline: 0; width: 100%; }
  .foot-intro { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .topbar .brand__en { font-size: 14px; }
  .topbar .brand__mark { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .btn, .btn-login, .announce__pill, .tab::after { transition: none; }
  .btn:hover, .btn-login:hover, .announce__pill:hover { transform: none; }
}