:root {
  --color-bg: #061321;
  --color-bg-panel: #0B1D2E;
  --color-bg-panel-2: #10283B;
  --color-bg-deep: #030B13;
  --color-border: #29455B;
  --color-border-light: #527085;
  --color-accent: #FF5A86;
  --color-accent-dark: #C92F5E;
  --color-accent-soft: #FFB3C7;
  --color-text: #F2F6F7;
  --color-text-muted: #9CB1BE;
  --color-success: #39DDB3;
  --color-success-soft: #A8FFE8;
  --color-warn: #FFB52E;
  --color-warn-soft: #FFE2A4;
  --color-error: #FF665F;
  --color-metal: #172B3A;
  --color-metal-dark: #071725;
  --color-metal-light: #3B586C;
  --color-bolt: #7890A0;
  --color-black: #000000;
  --color-transparent: transparent;
  --color-header: rgba(3, 11, 19, 0.88);
  --color-header-solid: #030B13;
  --color-wall-shadow: rgba(0, 0, 0, 0.48);
  --color-panel-shadow: rgba(0, 0, 0, 0.62);
  --color-accent-glow: rgba(255, 90, 134, 0.70);
  --color-accent-glow-soft: rgba(255, 90, 134, 0.22);
  --color-success-glow: rgba(57, 221, 179, 0.58);
  --color-success-glow-soft: rgba(57, 221, 179, 0.15);
  --color-warn-glow: rgba(255, 181, 46, 0.62);
  --color-warn-glow-soft: rgba(255, 181, 46, 0.18);
  --color-brick-line: rgba(41, 69, 91, 0.48);
  --color-brick-highlight: rgba(82, 112, 133, 0.10);
  --color-grain: rgba(242, 246, 247, 0.025);
  --color-overlay: rgba(3, 11, 19, 0.72);
  --font-display: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius-zero: 0;
  --radius-small: 3px;
  --radius-medium: 8px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --header-height: 72px;
  --content-width: 1320px;
  --reading-width: 820px;
  --gutter: clamp(16px, 4vw, 32px);
  --space-section: clamp(72px, 9vw, 124px);
  --transition-fast: 180ms ease;
  --transition-medium: 420ms ease;
  --transition-slow: 5s ease-in-out;
  --shadow-frame: 0 22px 55px var(--color-panel-shadow), 0 0 34px var(--color-accent-glow-soft);
  --shadow-panel: 0 18px 42px var(--color-panel-shadow);
  --shadow-button: 0 0 25px var(--color-accent-glow-soft);
  --shadow-warn: 0 0 25px var(--color-warn-glow);
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: var(--color-bg);
  color-scheme: dark;
}

html.nav-open {
  overflow: hidden;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 16% 22%, var(--color-brick-highlight) 0 1px, var(--color-transparent) 2px),
    radial-gradient(circle at 73% 64%, var(--color-grain) 0 1px, var(--color-transparent) 2px),
    linear-gradient(var(--color-brick-line) 1px, var(--color-transparent) 1px),
    linear-gradient(90deg, var(--color-brick-line) 1px, var(--color-transparent) 1px),
    linear-gradient(90deg, var(--color-transparent) 50%, var(--color-brick-line) 50%, var(--color-brick-line) calc(50% + 1px), var(--color-transparent) calc(50% + 1px));
  background-position: 0 0, 0 0, 0 0, 0 0, 56px 28px;
  background-size: 17px 17px, 23px 23px, 100% 56px, 112px 56px, 112px 112px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--color-wall-shadow), var(--color-transparent) 22%, var(--color-transparent) 78%, var(--color-wall-shadow)),
    linear-gradient(180deg, var(--color-wall-shadow), var(--color-transparent) 24%, var(--color-transparent) 76%, var(--color-wall-shadow));
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: 0.015em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 820;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 760;
}

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

p,
li,
dd {
  color: var(--color-text-muted);
}

strong {
  color: var(--color-text);
}

small {
  font-size: 0.82em;
}

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

:not(pre) > code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-success-soft);
  background: var(--color-bg-deep);
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  margin: 24px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-success);
  border-radius: var(--radius-small);
  color: var(--color-text);
  background: var(--color-bg-deep);
  font-family: var(--font-mono);
  line-height: 1.65;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

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

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

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

th {
  color: var(--color-text);
  background: var(--color-bg-panel-2);
  font-family: var(--font-mono);
  font-size: 13px;
}

td {
  color: var(--color-text-muted);
  background: var(--color-bg-panel);
}

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

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

.eyebrow,
.plate-label {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 10px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-small);
  color: var(--color-success-soft);
  background: var(--color-bg-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.eyebrow::before,
.plate-label::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-circle);
  content: "";
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success-glow);
}

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

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

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

.text-link {
  color: var(--color-accent-soft);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-dark);
  text-underline-offset: 0.24em;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav-link:focus-visible,
.language-button:focus-visible,
.menu-toggle:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-warn);
  outline-offset: 3px;
}

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

.button-primary::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-circle);
  content: "";
  background: var(--color-warn);
  box-shadow: 0 0 9px var(--color-warn-glow);
}

.button-secondary {
  color: var(--color-text-muted);
  background: var(--color-bg-deep);
}

.button-secondary:hover {
  border-color: var(--color-success);
  color: var(--color-text);
}

.button-quiet {
  border-color: var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-bg-panel);
}

.button[disabled],
.button.is-disabled {
  cursor: not-allowed;
  color: var(--color-text-muted);
  background: var(--color-metal-dark);
  box-shadow: none;
  opacity: 0.58;
  transform: none;
}

.panel,
.card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, var(--color-bg-panel-2), var(--color-bg-panel));
  box-shadow: var(--shadow-panel);
}

.panel {
  padding: clamp(22px, 4vw, 38px);
  border-top-color: var(--color-border-light);
}

.card {
  padding: 24px;
}

.card:hover {
  border-color: var(--color-border-light);
}

.tag-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  padding: 0 10px;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-bg-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag::before,
.badge-dot::before {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-circle);
  content: "";
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success-glow);
}

.tag-active {
  border-color: var(--color-success);
  color: var(--color-success-soft);
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-header);
  box-shadow: 0 10px 30px var(--color-wall-shadow);
  backdrop-filter: blur(12px);
}

.nav-shell {
  position: relative;
  display: flex;
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: var(--radius-circle);
  filter: drop-shadow(0 0 9px var(--color-accent-glow-soft));
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav-link,
.more-menu > summary,
.language-button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid var(--color-transparent);
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  background: var(--color-transparent);
  font-size: 14px;
  font-weight: 560;
  list-style: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.more-menu > summary:hover,
.language-button:hover {
  border-color: var(--color-border);
  color: var(--color-text);
  background: var(--color-bg-panel);
}

.nav-link[aria-current="page"],
.more-menu.is-current > summary {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-soft);
  background: var(--color-bg-panel);
}

.more-menu,
.language-menu {
  position: relative;
}

.more-menu > summary {
  cursor: pointer;
}

.more-menu > summary::-webkit-details-marker {
  display: none;
}

.more-menu > summary::after,
.language-button::after {
  margin-left: 7px;
  content: "▾";
  color: var(--color-success);
  font-size: 11px;
}

.more-list,
.language-list {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: none;
  width: 178px;
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-header-solid);
  box-shadow: var(--shadow-panel);
}

.more-menu[open] .more-list,
.language-menu.is-open .language-list {
  display: grid;
}

.more-list a,
.language-list a {
  display: flex;
  min-height: 42px;
  padding: 9px 12px;
  align-items: center;
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  font-size: 14px;
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-text);
  background: var(--color-bg-panel);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  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: var(--color-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-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: 104;
  display: none;
  max-height: calc(100dvh - var(--header-height));
  padding: 12px var(--gutter) 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-header-solid);
  box-shadow: var(--shadow-panel);
}

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

.mobile-drawer a {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 12px 10px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.mobile-drawer a:hover,
.mobile-drawer a[aria-current="page"] {
  color: var(--color-accent-soft);
  background: var(--color-bg-panel);
}

.mobile-drawer-label {
  margin: 18px 10px 5px;
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

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

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

.site-footer {
  position: relative;
  overflow-x: clip;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr 0.8fr;
  gap: 40px;
  padding-top: 66px;
  padding-bottom: 52px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 18px;
}

.footer-title {
  margin-bottom: 16px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  width: fit-content;
  max-width: 100%;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

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

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

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

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

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

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

.flex-icon,
.status-dot,
.card-icon,
.client-icon {
  flex-shrink: 0;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose {
  min-width: 0;
}

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

.prose p,
.prose li {
  line-height: 1.85;
}

.prose h2 {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.prose h3 {
  margin-top: 36px;
}

.prose a {
  color: var(--color-accent-soft);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@keyframes neon-breathe {
  0%,
  100% {
    filter: brightness(0.94);
  }
  50% {
    filter: brightness(1.08);
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-tools .language-menu {
    display: none;
  }

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

  .menu-toggle {
    display: grid;
  }

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

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

  body {
    background-size: 17px 17px, 23px 23px, 100% 48px, 96px 48px, 96px 96px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(40px, 13vw, 58px);
  }

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

  .brand {
    font-size: 15px;
  }

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

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

  .button-row .button {
    width: 100%;
  }

  .panel,
  .card {
    min-width: 0;
    padding: 20px;
  }

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

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

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

  .section,
  .site-footer,
  main,
  .hero,
  [data-hero-visual] {
    overflow-x: clip;
  }

  .tag,
  .badge {
    max-width: 100%;
    overflow: hidden;
  }

  pre {
    padding: 16px;
    font-size: 12px;
  }

  th,
  td {
    padding: 12px;
  }

  .reveal {
    transform: translateY(10px);
  }
}

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

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

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