:root {
  --color-bg: #FFFFFF;
  --color-panel: #F5F5F7;
  --color-panel-strong: #ECECF0;
  --color-border: #E4E4E9;
  --color-accent: #0F6BFF;
  --color-accent-dark: #0A4ECF;
  --color-accent-soft: rgba(15, 107, 255, 0.10);
  --color-text: #0B0B0F;
  --color-text-muted: #5E5F69;
  --color-success: #1FA85A;
  --color-warning: #E39B0E;
  --color-error: #DE3B3B;
  --color-stage: #0E1626;
  --color-stage-end: #16213A;
  --color-stage-text: #FFFFFF;
  --color-switch-knob: #FFFFFF;
  --color-overlay: rgba(11, 11, 15, 0.46);
  --color-shadow-stage: rgba(14, 22, 38, 0.26);
  --color-shadow-stage-soft: rgba(14, 22, 38, 0.10);
  --color-shadow-device: rgba(4, 9, 20, 0.55);
  --color-shadow-device-soft: rgba(4, 9, 20, 0.35);
  --color-shadow-near: rgba(4, 9, 20, 0.45);
  --color-shadow-near-soft: rgba(4, 9, 20, 0.30);
  --color-shadow-button: rgba(15, 107, 255, 0.28);
  --color-shadow-button-hover: rgba(15, 107, 255, 0.34);
  --color-shadow-card: rgba(14, 22, 38, 0.09);
  --color-shadow-card-hover: rgba(14, 22, 38, 0.14);
  --color-shadow-knob: rgba(11, 11, 15, 0.25);
  --color-status-border: rgba(255, 255, 255, 0.18);
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-stage: 28px;
  --radius-card: 24px;
  --radius-card-large: 28px;
  --radius-phone: 36px;
  --radius-screen: 28px;
  --radius-float: 20px;
  --radius-control: 12px;
  --radius-small: 10px;
  --radius-pill: 999px;
  --shadow-stage: 0 32px 80px var(--color-shadow-stage), 0 8px 24px var(--color-shadow-stage-soft);
  --shadow-phone: 0 30px 70px var(--color-shadow-device), 0 6px 18px var(--color-shadow-device-soft);
  --shadow-float: 0 22px 48px var(--color-shadow-near), 0 4px 12px var(--color-shadow-near-soft);
  --shadow-button: 0 10px 24px var(--color-shadow-button);
  --shadow-button-hover: 0 16px 32px var(--color-shadow-button-hover);
  --shadow-card: 0 18px 48px var(--color-shadow-card);
  --shadow-card-hover: 0 24px 60px var(--color-shadow-card-hover);
  --header-height: 76px;
  --content-width: 1200px;
  --wide-width: 1280px;
  --reading-width: 820px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(72px, 9vw, 128px);
  --transition-fast: 180ms ease;
  --transition-reveal: 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

html.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

svg[aria-hidden="true"] {
  flex-shrink: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol,
dl,
blockquote,
pre,
table {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
blockquote:last-child,
pre:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 3.35vw, 48px);
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.015em;
}

h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.title-lock {
  white-space: nowrap;
}

.accent-text {
  color: var(--color-accent);
}

.muted {
  color: var(--color-text-muted);
}

.mono {
  font-family: var(--font-mono);
}

code {
  border-radius: var(--radius-small);
  background: var(--color-panel);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
  padding: 0.16em 0.42em;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--color-stage);
  color: var(--color-stage-text);
  font-family: var(--font-mono);
  line-height: 1.65;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  overflow-wrap: normal;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-wide {
  width: 100%;
  max-width: calc(var(--wide-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading-wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}

.section-compact {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
  overflow-x: clip;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.panel {
  border-radius: var(--radius-card-large);
  background: var(--color-panel);
  color: var(--color-text);
  padding: clamp(28px, 5vw, 64px);
  overflow-x: clip;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  color: var(--color-text);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--color-panel-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 14px 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 750;
}

.eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  flex-shrink: 0;
}

.eyebrow-dot::before {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--color-accent);
  content: "";
  opacity: 0.32;
  animation: status-breathe 2.4s ease-in-out infinite;
}

@keyframes status-breathe {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.6);
  }

  50% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-stage-text);
  box-shadow: var(--shadow-button);
}

.button-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-stage-text);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.button-secondary {
  background: var(--color-panel);
  color: var(--color-text);
}

.button-secondary:hover {
  background: var(--color-panel-strong);
  color: var(--color-text);
  transform: translateY(-2px);
}

.button-outline {
  border-color: var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.button-outline:hover {
  border-color: var(--color-text-muted);
  background: var(--color-bg);
  color: var(--color-text);
  transform: translateY(-2px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.language-button:focus-visible,
.menu-toggle:focus-visible,
.mobile-nav a:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 3px;
}

.button[aria-disabled="true"],
.button:disabled {
  background: var(--color-panel-strong);
  color: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  color: var(--color-accent-dark);
  font-weight: 750;
}

.text-link:hover {
  color: var(--color-accent);
}

.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 650;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--color-text);
}

.chip:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

.tilt {
  transform: rotate(-0.7deg);
}

.site-header {
  position: relative;
  z-index: 100;
  min-height: var(--header-height);
  background: var(--color-bg);
  color: var(--color-text);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: min(100%, calc(var(--wide-width) + var(--gutter) * 2));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-nav {
  align-self: stretch;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: clamp(16px, 2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  height: 100%;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

.header-tools {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.language-button,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.language-button {
  gap: 6px;
  padding-inline: 12px;
  white-space: nowrap;
}

.language-button:hover,
.menu-toggle:hover {
  background: var(--color-panel);
  color: var(--color-text);
}

.language-button svg {
  width: 12px;
  height: 12px;
}

.language-short {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 7;
  width: 180px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  list-style: none;
}

.language-menu[hidden] {
  display: none;
}

.language-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 650;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--color-panel);
  color: var(--color-text);
}

.header-download {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle-lines::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-nav-veil {
  display: none;
}

.site-footer {
  margin-top: var(--section-space);
  background: var(--color-panel);
  color: var(--color-text);
  overflow-x: clip;
}

.footer-shell {
  width: 100%;
  max-width: calc(var(--wide-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 64px var(--gutter) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.35fr 0.8fr;
  gap: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.footer-copy {
  max-width: 28em;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-title {
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-accent-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  color: var(--color-text);
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--color-panel);
  color: var(--color-text);
  font-weight: 750;
}

.prose {
  color: var(--color-text-muted);
}

.prose h2,
.prose h3,
.prose h4,
.prose strong {
  color: var(--color-text);
}

.prose a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose > .data-table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1120px) {
  .site-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav-veil {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 1;
    display: block;
    background: var(--color-overlay);
  }

  .mobile-nav-veil[hidden] {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 4;
    display: block;
    max-height: calc(100dvh - var(--header-height));
    padding: 10px var(--gutter) 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 700;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--color-accent-dark);
  }

  .mobile-language {
    padding-top: 14px;
  }

  .mobile-language-label {
    margin: 0 0 6px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 750;
  }

  .mobile-language a {
    color: var(--color-text-muted);
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: clamp(24px, 7.6vw, 30px);
    line-height: 1.18;
  }

  h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-download {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }

  .header-shell {
    gap: 10px;
  }

  .site-brand {
    gap: 9px;
    font-size: 16px;
  }

  .site-brand img {
    width: 34px;
    height: 34px;
  }

  .language-full {
    display: none;
  }

  .language-short {
    display: inline;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    flex: 1 1 100%;
  }

  .panel {
    padding: 26px 20px;
  }

  .card {
    padding: 22px 18px;
  }

  .tilt {
    transform: none;
  }

  [class*="tilt"] {
    transform: none;
  }

  .chip-row {
    flex-direction: row;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-shell {
    padding-top: 48px;
  }

  .data-table th,
  .data-table td {
    min-width: 140px;
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .eyebrow-dot::before {
    opacity: 0.25;
    transform: none;
  }
}