:root {
  --bg: #ffffff;
  --bg-panel: #f6f6f4;
  --bg-panel-2: #efefec;
  --border: #e6e6e3;
  --border-strong: #d6d6d2;
  --accent: #0b74d9;
  --accent-dark: #075bb0;
  --accent-soft: #e3effc;
  --text: #191918;
  --text-muted: #6b6b68;
  --text-faint: #9a9a96;
  --on-accent: #ffffff;
  --c-orange: #f47a1f;
  --c-red: #e5484d;
  --c-yellow: #f5b72a;
  --c-purple: #8e5bd8;
  --c-green: #2f9e5b;
  --c-blue: var(--accent);
  --veil: rgba(25,25,24,.28);
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-panel: 28px;
  --r-board: 20px;
  --r-card: 16px;
  --r-col: 14px;
  --r-rule: 10px;
  --r-btn: 10px;
  --r-mark: 9px;
  --r-shot: 8px;
  --r-chip: 6px;
  --r-circle: 50%;
  --r-pill: 999px;
  --shadow-lift: 0 24px 60px -24px rgba(25,25,24,.18);
  --shadow-board: 0 1px 2px rgba(25,25,24,.05), 0 14px 30px -16px rgba(25,25,24,.14), 0 44px 96px -40px rgba(25,25,24,.24);
  --shadow-rule: 0 1px 2px rgba(25,25,24,.06);
  --shadow-sticker: 0 12px 22px -12px rgba(25,25,24,.4);
  --shadow-accent: 0 1px 0 rgba(7,91,176,.4), 0 12px 24px -12px rgba(11,116,217,.6);
  --wrap: 1360px;
  --read: 850px;
  --gutter: 48px;
  --bar-height: 72px;
  --section-space: 96px;
  --motion: .16s ease;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-dark); text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; }
svg, .dot { flex-shrink: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h1, .h1 { font-size: clamp(34px,3.4vw,48px); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; }
h2, .h2 { font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 800; }
.nowrap { white-space: nowrap; }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%; overflow-x: auto; padding: 16px; margin-inline: 0;
  border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--bg-panel); color: var(--text);
}
pre code { white-space: pre; overflow-wrap: normal; }
.wrap, .prose {
  width: 100%; margin-inline: auto; padding-inline: var(--gutter); min-width: 0;
}
.wrap { max-width: var(--wrap); }
.prose { max-width: var(--read); overflow-wrap: break-word; }
.section { padding-block: var(--section-space); }
.panel { padding: clamp(22px,4vw,56px); border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.card {
  min-width: 0; padding: 26px; border-radius: var(--r-card);
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-lift);
  border: 1px solid var(--border); overflow-wrap: break-word;
}
.card > :first-child, .panel > :first-child { margin-block-start: 0; }
.card > :last-child, .panel > :last-child { margin-block-end: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 20px; }
.grid > *, .hero > *, .tabset > *, .plat-grid > *, .footer-grid > * { min-width: 0; }
.decor-field { position: relative; overflow-x: clip; }
.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;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; max-width: 100%; padding: 10px 22px; border: 0;
  border-radius: var(--r-btn); font: 600 16px/1.2 var(--font-body);
  background: var(--bg-panel); color: var(--text); text-decoration: none;
  cursor: pointer; transition: background-color var(--motion), transform var(--motion);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-dark); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--text); color: var(--on-accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-soft:hover { background: var(--bg-panel-2); color: var(--accent-dark); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--bg-panel-2); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.topbar { position: relative; z-index: 30; height: var(--bar-height); background: var(--bg); color: var(--text); }
.topbar-in {
  max-width: min(100%,calc(1280px + var(--gutter)*2)); height: 100%;
  margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px; justify-self: start;
  font: 700 16px/1.25 var(--font-display); letter-spacing: -.01em;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand-mark { display: block; width: 32px; height: 32px; border-radius: var(--r-mark); flex: none; }
.brand-placeholder { background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border); position: relative; }
.brand-placeholder::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-chip); }
.nav { min-width: 0; }
.nav ul {
  display: flex; align-items: center; gap: clamp(18px,2.4vw,34px);
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  display: block; padding-block: 6px; color: var(--text-muted);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 6px; position: relative; justify-self: end; flex-shrink: 0; }
.lang, .menu-toggle {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--r-pill); font: 500 14px/1 var(--font-body);
  padding: 9px 14px; cursor: pointer; white-space: nowrap;
}
.lang:hover, .menu-toggle:hover { background: var(--bg-panel); color: var(--text); }
.lang-short, .menu-toggle, .mobile-nav, .nav-veil { display: none; }
.menu-toggle { min-width: 44px; min-height: 44px; padding: 0; }
.lang-list, .mobile-nav ul, .footer-list { list-style: none; margin: 0; padding: 0; }
.lang-list {
  position: absolute; z-index: 3; inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  width: max-content; min-width: 150px; padding: 6px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-lift);
}
.lang-list a, .mobile-nav a { display: block; padding: 10px 14px; min-height: 44px; color: var(--text); text-decoration: none; }
.lang-list a:hover, .mobile-nav a:hover, .mobile-nav a[aria-current="page"] {
  background: var(--bg-panel); color: var(--text); border-radius: var(--r-btn);
}
.lang-list a[aria-current], .mobile-nav a[aria-current] { font-weight: 800; }
.site-footer {
  border-top: 1px solid var(--border); padding-block: 54px 28px;
  background: var(--bg-panel); color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.4fr .8fr; gap: 26px; }
.footer-grid h2 { margin: 0 0 10px; font-size: 16px; }
.footer-list a { display: inline-block; padding-block: 4px; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--accent-dark); }
.copyright { border-top: 1px solid var(--border); margin-block: 32px 0; padding-block-start: 20px; color: var(--text-muted); font-size: 14px; }
.reveal.shown { animation: arrive .45s ease-out both; }
@keyframes arrive { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (width < 1280px) {
  .topbar-in { display: flex; gap: 12px; }
  .header-tools { margin-inline-start: auto; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-nav {
    display: block; position: fixed; z-index: 2; inset: var(--bar-height) 0 auto;
    max-height: calc(100vh - var(--bar-height)); max-height: calc(100dvh - var(--bar-height));
    overflow-y: auto; overscroll-behavior: contain; padding: 14px var(--gutter) 22px;
    background: var(--bg); color: var(--text); box-shadow: var(--shadow-lift);
  }
  .mobile-nav ul + ul { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
  .nav-veil { display: block; position: fixed; z-index: 1; inset: var(--bar-height) 0 0; background: var(--veil); color: var(--text); }
}
@media (900px < width < 1280px) {
  .topbar-in:has(.preview-tools) { display: grid; }
  .topbar-in:has(.preview-tools) .nav { display: block; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --section-space: 64px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: clamp(24px,7.4vw,30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --section-space: 48px; }
  .tilt, .tilt-left, .tilt-right { transform: none; }
  .btn { min-height: 48px; padding-inline: 18px; font-size: 15px; }
  h2, .h2 { font-size: 24px; }
  .brand { flex: 0 1 auto; min-width: 0; gap: 7px; font-size: 13px; }
  .brand > span { min-width: 0; overflow-wrap: anywhere; }
  .brand-mark { width: 28px; height: 28px; }
  .topbar-in { gap: 4px; }
  .lang { padding-inline: 9px; min-height: 44px; }
  .lang-short { display: inline; }
  .lang-full { display: none; }
  .footer-grid { gap: 18px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .reveal.shown { animation: none; }
}