:root {
  --color-page: #FAFAFA;
  --color-panel: #FFFFFF;
  --color-panel-muted: #F1F3F6;
  --color-border: #E7E9EE;
  --color-primary: #0847F0;
  --color-primary-dark: #0530B0;
  --color-primary-sky: #2FA6F5;
  --color-primary-soft: #EAF0FE;
  --color-text: #15181E;
  --color-text-muted: #5B6472;
  --color-success: #0FA968;
  --color-success-soft: #E4F6EE;
  --color-warning: #EE9312;
  --color-warning-soft: #FCF1DF;
  --color-danger: #DE2B4E;
  --color-danger-soft: #FCE8EC;
  --color-line: #C6CCD8;
  --color-overlay: rgba(21, 24, 30, 0.34);
  --color-shadow-faint: rgba(21, 24, 30, 0.04);
  --color-shadow-soft: rgba(21, 24, 30, 0.06);
  --color-shadow-medium: rgba(21, 24, 30, 0.10);
  --color-shadow-primary: rgba(8, 71, 240, 0.20);
  --color-shadow-primary-faint: rgba(8, 71, 240, 0.07);
  --color-focus: rgba(8, 71, 240, 0.28);
  --gradient-primary: linear-gradient(120deg, var(--color-primary) 8%, var(--color-primary-sky) 100%);
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --radius-window: 28px;
  --radius-card: 20px;
  --radius-control: 16px;
  --radius-small: 10px;
  --radius-pill: 999px;
  --shadow-window: 0 1px 2px var(--color-shadow-faint), 0 8px 24px var(--color-shadow-soft), 0 24px 64px var(--color-shadow-primary-faint);
  --shadow-card: 0 1px 2px var(--color-shadow-faint), 0 8px 24px var(--color-shadow-soft);
  --shadow-chip: 0 1px 2px var(--color-shadow-faint), 0 4px 14px var(--color-shadow-soft);
  --shadow-button: 0 2px 6px var(--color-shadow-primary), 0 10px 26px var(--color-shadow-primary);
  --content-width: 1240px;
  --reading-width: 820px;
  --header-height: 72px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(72px, 9vw, 128px);
  --transition-fast: 150ms ease;
  --transition-reveal: 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  background: var(--color-page);
  color: var(--color-text);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

html.nav-open {
  overflow: hidden;
}

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

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

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

img {
  height: auto;
}

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

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

button {
  border: 0;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  margin-top: 0;
}

p {
  margin-top: 0;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
}

:not(pre) > code {
  padding: 0.14em 0.42em;
  overflow-wrap: anywhere;
  border-radius: var(--radius-small);
  background: var(--color-panel-muted);
  color: var(--color-primary-dark);
  font-size: 0.9em;
}

pre {
  max-width: 100%;
  margin: 1.5rem 0;
  padding: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: var(--radius-control);
  background: var(--color-text);
  color: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-panel-muted);
  font-weight: 750;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.wrap {
  width: 100%;
  max-width: var(--content-width);
  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 {
  position: relative;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}

.section-compact {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.kicker::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  content: "";
}

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

h1,
.hero-title {
  margin-bottom: 22px;
  font-size: clamp(52px, 5.1vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 850;
  letter-spacing: -0.018em;
  line-height: 1.16;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.28;
}

h4 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 800;
}

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

.lead {
  color: var(--color-text-muted);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

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

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

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

.panel,
.card {
  min-width: 0;
  border-radius: var(--radius-card);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.panel {
  padding: clamp(24px, 4vw, 48px);
}

.card {
  padding: 24px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-window);
}

.btn {
  display: inline-flex;
  min-height: 52px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-button);
  color: var(--color-panel);
}

.btn-primary:hover {
  color: var(--color-panel);
}

.btn-secondary {
  background: var(--color-panel);
  box-shadow: var(--shadow-chip);
  color: var(--color-text);
}

.btn-secondary:hover {
  color: var(--color-primary);
}

.btn-soft {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.btn-danger {
  background: var(--color-danger);
  color: var(--color-panel);
}

.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

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

.badge,
.capsule {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1.25;
}

.badge {
  padding: 6px 11px;
  background: var(--color-panel-muted);
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.capsule {
  padding: 8px 14px;
  background: var(--color-panel);
  box-shadow: var(--shadow-chip);
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.badge-dot,
.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

.dot-success {
  background: var(--color-success);
}

.dot-warning {
  background: var(--color-warning);
}

.dot-danger {
  background: var(--color-danger);
}

.badge-primary {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.badge-danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

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

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

.tilt,
.tilt-card {
  transform: rotate(-0.35deg);
}

.prose {
  color: var(--color-text);
  font-size: 1.02rem;
}

.prose > * {
  max-width: 100%;
}

.prose p,
.prose li {
  overflow-wrap: break-word;
}

.prose h2 {
  margin-top: 3.5rem;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.prose h3 {
  margin-top: 2.2rem;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.prose blockquote {
  margin: 1.6rem 0;
}

.prose li + li {
  margin-top: 0.55rem;
}

.data-table-wrap,
.prose > .data-table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-radius: var(--radius-control);
  background: var(--color-panel);
  box-shadow: var(--shadow-chip);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  min-width: 640px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-page);
}

.header-inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: var(--content-width);
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  align-items: center;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  color: var(--color-text);
  text-decoration: none;
}

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

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-link:hover {
  background: var(--color-panel-muted);
  color: var(--color-text);
}

.nav-link.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.header-tools {
  position: relative;
  z-index: 104;
  display: flex;
  margin-left: 14px;
  align-items: center;
  gap: 8px;
}

.language-control {
  position: relative;
}

.language-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  box-shadow: var(--shadow-chip);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}

.language-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.language-short {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 108;
  display: none;
  width: 176px;
  padding: 8px;
  border-radius: var(--radius-control);
  background: var(--color-panel);
  box-shadow: var(--shadow-window);
}

.language-control.is-open .language-menu {
  display: block;
}

.language-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  box-shadow: var(--shadow-chip);
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 19px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  transition: background var(--transition-fast);
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  content: "";
  transition: transform var(--transition-fast), top var(--transition-fast);
}

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

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

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

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: 103;
  display: none;
  max-height: calc(100dvh - var(--header-height));
  padding: 12px var(--gutter) 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-panel);
  box-shadow: var(--shadow-window);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer a {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

.mobile-drawer a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-drawer a:hover,
.mobile-drawer a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.mobile-language-list {
  display: grid;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.mobile-language-label {
  padding: 8px 14px 4px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

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

.nav-veil.is-visible {
  display: block;
}

.site-footer {
  padding-top: 72px;
  padding-bottom: 28px;
  background: var(--color-panel);
}

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

.footer-brand-copy {
  max-width: 340px;
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 0.91rem;
}

.footer-heading {
  margin-bottom: 14px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-links,
.footer-keywords,
.footer-languages {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  list-style: none;
}

.footer-links a,
.footer-keywords a,
.footer-languages a {
  color: var(--color-text-muted);
  font-size: 0.87rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-keywords a:hover,
.footer-languages a:hover {
  color: var(--color-primary);
}

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

.footer-keywords a {
  overflow-wrap: anywhere;
}

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

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

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

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

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

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

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

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

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

@media (max-width: 768px) {
  h1,
  .hero-title {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(28px, 7.5vw, 38px);
  }

  .brand-name {
    font-size: 1rem;
  }

  .language-full {
    display: none;
  }

  .language-short {
    display: inline;
  }

  .language-button {
    min-width: 44px;
    padding-inline: 12px;
  }

  .footer-grid {
    gap: 34px 24px;
  }
}

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

  body {
    font-size: 15.5px;
  }

  .wrap,
  .reading-wrap {
    padding-inline: var(--gutter);
  }

  .tilt,
  .tilt-card,
  [class*="tilt"] {
    transform: none;
  }

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

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

  .badge-row,
  .capsule-row {
    display: flex;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .panel,
  .card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .brand-logo {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 390px) {
  .brand-name {
    display: none;
  }

  .footer-keywords {
    grid-template-columns: 1fr;
  }
}