:root {
  --ink: #0E1116;
  --ink-2: #151A22;
  --line: #2A3442;
  --steel: #3C4657;
  --fog: #8A94A6;
  --paper: #F4F7FB;
  --orange: #FF5A1F;
  --orange-deep: #B83A10;
  --cyan: #00E5FF;
  --cyan-soft: #7DF3FF;
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", "Arial", sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", "Consolas", monospace;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --hard-shadow: 8px 8px 0 rgba(0, 0, 0, 0.36);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(42, 52, 66, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 52, 66, 0.28) 1px, transparent 1px),
    radial-gradient(circle at 84% 8%, rgba(0, 229, 255, 0.08), transparent 27%),
    radial-gradient(circle at 14% 0%, rgba(255, 90, 31, 0.07), transparent 25%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: 0;
  background: none;
}

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

::selection {
  background: var(--orange);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.16);
}

[hidden] {
  display: none !important;
}

#main-content {
  scroll-margin-top: 132px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease;
}

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

.page-shell {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.stat-number {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.05em;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: rgba(21, 26, 34, 0.8);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.tag--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translate(-1px, -1px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.36);
}

.button--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.button--solid:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--paper);
}

.button--line {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog);
}

.breadcrumb__link {
  color: var(--cyan-soft);
}

.breadcrumb__link:hover {
  color: var(--paper);
}

.breadcrumb__current {
  color: var(--paper);
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--ink-2);
  box-shadow: 12px 12px 0 var(--steel);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.09), transparent 38%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(42, 52, 66, 0.45) 39px 40px);
}

.media-frame img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.media-frame__placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 220px;
  height: 100%;
  padding: 24px;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(90deg, transparent 0 63px, rgba(42, 52, 66, 0.3) 63px 64px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: 5;
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transition: width 90ms linear;
}

.header-upper {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 6px 6px 0 var(--steel);
  transform: skewX(-8deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand-meta {
  overflow: hidden;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tool-button,
.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(21, 26, 34, 0.72);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tool-button:hover,
.tool-link:hover {
  border-color: var(--orange);
  background: rgba(255, 90, 31, 0.09);
  color: var(--paper);
}

.tool-button--hot {
  border-color: rgba(255, 90, 31, 0.5);
  color: var(--orange);
}

.tool-button[aria-pressed="true"],
.tool-button--hot[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--orange-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 86px;
  min-height: 42px;
  padding: 0 12px;
  border: 2px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-toggle__label {
  line-height: 1;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--orange);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.header-lower {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.nav-kicker,
.nav-signal {
  align-self: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-kicker {
  color: var(--orange);
}

.nav-signal {
  color: var(--cyan);
  text-align: right;
}

.primary-nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 52px;
}

.nav-item {
  display: flex;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid rgba(42, 52, 66, 0.55);
  color: var(--fog);
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover {
  background: rgba(255, 90, 31, 0.06);
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  background: rgba(255, 90, 31, 0.08);
  color: var(--paper);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 3px;
  background: var(--orange);
}

.search-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: var(--gutter);
  z-index: 120;
  width: min(560px, calc(100vw - (var(--gutter) * 2)));
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 18px;
  background: rgba(21, 26, 34, 0.99);
  border: 2px solid var(--orange);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.46);
}

.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.search-panel__title {
  color: var(--paper);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.search-panel__close {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.search-panel__close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.search-field {
  display: block;
}

.search-field__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  outline: none;
}

.search-field__input::placeholder {
  color: var(--steel);
}

.search-field__input:focus {
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(0, 229, 255, 0.16);
}

.search-results {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(42, 52, 66, 0.7);
  color: var(--paper);
  transition: background 160ms ease, color 160ms ease;
}

.search-result:hover {
  background: rgba(255, 90, 31, 0.1);
}

.search-result__index {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
}

.search-result__label {
  font-size: 14px;
}

.search-result__route {
  color: var(--fog);
  font-family: var(--mono);
  font-size: 10px;
}

.search-empty {
  padding: 18px 8px;
  color: var(--fog);
  font-size: 13px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 4px solid var(--orange);
  background: linear-gradient(180deg, #121820 0%, #0b0e12 65%);
  color: var(--fog);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(42, 52, 66, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 52, 66, 0.32) 1px, transparent 1px);
  background-size: 56px 56px;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-mast {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(36px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.footer-mast__brand {
  min-width: 0;
}

.footer-kicker {
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.footer-brand {
  display: inline-block;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: 0.02em;
}

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

.footer-statement {
  max-width: 34em;
  margin-top: 16px;
  color: var(--fog);
  font-size: 14px;
}

.footer-signal {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
  font-family: var(--mono);
  color: var(--cyan);
}

.footer-signal__num {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.footer-signal__label {
  color: var(--fog);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.footer-grid {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 1.4fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px) 0;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fog);
  font-size: 14px;
}

.footer-link::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--steel);
  transition: width 160ms ease, background 160ms ease;
}

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

.footer-link:hover::before {
  width: 22px;
  background: var(--cyan);
}

.footer-contact {
  padding-left: clamp(16px, 3vw, 28px);
  border-left: 2px solid var(--line);
}

.footer-contact__line {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}

.footer-address {
  margin-top: 10px;
  color: var(--fog);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.footer-note {
  margin-top: 12px;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.6;
}

.footer-base {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 11px;
}

.footer-icp {
  color: var(--fog);
}

.footer-base__hint {
  color: var(--cyan);
}

@media (max-width: 1040px) {
  .header-tools {
    gap: 6px;
  }

  .tool-button,
  .tool-link {
    padding-inline: 9px;
  }

  .brand-meta {
    max-width: 210px;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 920px) {
  #main-content {
    scroll-margin-top: 178px;
  }

  .header-upper {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 12px;
  }

  .brand {
    flex: 1 1 220px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .header-tools {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(42, 52, 66, 0.9);
    overflow-x: auto;
  }

  .header-lower {
    display: block;
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--line);
  }

  .nav-kicker,
  .nav-signal {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    display: none;
    padding: 12px var(--gutter) 20px;
    background: rgba(21, 26, 34, 0.99);
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.48);
  }

  .primary-nav[data-open] {
    display: block;
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: 0;
  }

  .nav-item {
    display: block;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(42, 52, 66, 0.75);
    border-left: 0;
    font-size: 16px;
  }

  .nav-link[aria-current="page"]::after {
    left: 12px;
    right: auto;
    bottom: 4px;
    width: 38px;
  }

  .search-panel {
    top: calc(100% + 1px);
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-height: calc(100vh - 190px);
  }

  .footer-mast {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-signal {
    justify-items: start;
    margin-top: 12px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-meta {
    max-width: 180px;
    line-height: 1.3;
    white-space: normal;
  }

  .header-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .tool-button,
  .tool-link {
    width: 100%;
    min-height: 36px;
    padding-inline: 4px;
    font-size: 10px;
  }

  .search-panel {
    padding: 14px;
  }

  .search-result {
    grid-template-columns: 28px 1fr;
  }

  .search-result__route {
    display: none;
  }

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

  .footer-contact {
    grid-column: auto;
  }

  .footer-base {
    display: grid;
    gap: 8px;
  }
}

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

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

  .scroll-progress__bar {
    transition: none;
  }
}
