:root {
  --bg: #0A0F1E;
  --bg-2: #111827;
  --bg-3: #0D1220;
  --line: #1F2937;
  --cyan: #00C2FF;
  --green: #39FF14;
  --orange: #FF9500;
  --purple: #9B5CF6;
  --text: #E5E7EB;
  --muted: #9CA3AF;
  --font-head: Rajdhani, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-num: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --header-h: 72px;
  --nav-w: min(380px, 88vw);
  --shadow: 0 18px 44px rgba(0, 0, 0, .38);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 194, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

::selection {
  background: rgba(0, 194, 255, .3);
}

h1, h2, h3, h4 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

#main-content {
  display: block;
  width: 100%;
  flex: 1 0 auto;
  min-height: 70vh;
  padding-top: var(--header-h);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section {
  position: relative;
  padding-block: clamp(56px, 10vw, 112px);
}

.section::before {
  content: attr(data-index);
  position: absolute;
  top: 14px;
  right: max(20px, calc((100vw - 1240px) / 2));
  color: rgba(0, 194, 255, .45);
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .1em;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: .5rem 1.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  grid-column: 1 / -1;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  text-shadow: 0 0 24px rgba(0, 194, 255, .18);
}

.section-desc {
  grid-column: 1 / -1;
  max-width: 620px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  padding: 1rem 0;
  font-family: var(--font-num);
  font-size: .875rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .5rem;
  color: rgba(0, 194, 255, .5);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb [aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  padding: .75rem 1.35rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:hover {
  color: #fff;
  border-color: var(--cyan);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04101D;
  box-shadow: 0 0 24px rgba(0, 194, 255, .25);
}

.btn-primary:hover {
  background: #38D0FF;
  color: #04101D;
  box-shadow: 0 0 40px rgba(0, 194, 255, .4);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(0, 194, 255, .45);
  color: var(--cyan);
}

.btn-ghost:hover {
  background: rgba(0, 194, 255, .1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card::before {
  content: attr(data-index);
  position: absolute;
  top: .75rem;
  right: .75rem;
  color: rgba(0, 194, 255, .5);
  font-family: var(--font-num);
  font-size: .75rem;
}

.card:hover {
  border-color: rgba(0, 194, 255, .4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  transform: translateY(-2px);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 2rem 0;
}

.data-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 1.5rem;
  background: var(--bg-2);
  transition: background .2s ease, box-shadow .2s ease;
}

.data-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border-right: 1px solid rgba(0, 194, 255, .35);
  border-bottom: 1px solid rgba(0, 194, 255, .35);
}

.data-card:hover {
  background: #131C2D;
  box-shadow: inset 0 0 0 1px rgba(0, 194, 255, .3);
}

.data-number {
  font-family: var(--font-num);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -.04em;
}

.data-card--orange .data-number {
  color: var(--orange);
}

.data-label {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 24, 39, .7);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .8125rem;
  text-decoration: none;
}

.tag:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  text-decoration: none;
}

.tag[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 194, 255, .1);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem 0;
  margin: 1.5rem 0;
  border-block: 1px solid var(--line);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .8125rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.filter-btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 194, 255, .5);
}

.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04101D;
  font-weight: 700;
}

.figure-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--bg-2);
  background-image:
    linear-gradient(rgba(0, 194, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, .08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.figure-frame::before {
  content: "IMAGE / DATA-GRID";
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  color: rgba(0, 194, 255, .8);
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .08em;
}

.figure-frame::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-right: 1px solid rgba(155, 92, 246, .5);
  border-bottom: 1px solid rgba(155, 92, 246, .5);
  z-index: 2;
}

.figure-frame img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: .6rem 1rem;
  background: var(--cyan);
  color: #04101D;
  font-family: var(--font-num);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 22, .96);
  border-bottom: 1px solid var(--line);
}

.header-frame {
  position: relative;
  height: 100%;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding-inline: max(20px, calc((100vw - 1240px) / 2));
}

.header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-self: end;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid transparent;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.nav-toggle:hover {
  background: rgba(0, 194, 255, .08);
  border-color: rgba(0, 194, 255, .3);
  color: var(--cyan);
}

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

.nav-toggle-label {
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-toggle-box {
  position: relative;
  width: 20px;
  height: 16px;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle-box span:nth-child(1) {
  top: 0;
}

.nav-toggle-box span:nth-child(2) {
  top: 7px;
}

.nav-toggle-box span:nth-child(3) {
  top: 14px;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, rgba(0, 194, 255, .25), transparent);
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: .8rem;
  transform: skewX(-8deg);
}

.brand-name {
  color: #fff;
  font-weight: 700;
}

.brand-version {
  padding: .15rem .4rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .65rem;
  letter-spacing: .06em;
}

.path-index {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-width: 220px;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, .6);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .8rem;
  letter-spacing: .1em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.path-label {
  color: var(--cyan);
  text-transform: uppercase;
}

.path-segment + .path-segment::before {
  content: "/";
  margin-right: .75rem;
  color: rgba(0, 194, 255, .5);
}

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, .65);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .08em;
}

.status-light {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.status-light::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(57, 255, 20, .6);
  border-radius: 50%;
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: .2;
    transform: scale(.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.progress-track {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 12px rgba(0, 194, 255, .5);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: var(--nav-w);
  padding: 0 0 1.25rem;
  background: linear-gradient(180deg, #0B1120 0%, #0A0F1E 100%);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}

.site-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s var(--ease), visibility 0s linear 0s;
}

.nav-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-heading-index {
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: .8rem;
}

.nav-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.nav-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 194, 255, .08);
}

.nav-list {
  display: grid;
  gap: .25rem;
  padding: 1.25rem;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border-left: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(0, 194, 255, .08);
  border-left-color: var(--cyan);
  transform: translateX(4px);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-left: 2px solid var(--cyan);
  background: linear-gradient(90deg, rgba(0, 194, 255, .12), transparent);
}

.nav-link-num {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .72rem;
}

.nav-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.nav-stat {
  padding: 1rem .75rem;
  background: var(--bg-2);
  text-align: center;
}

.nav-stat-num {
  display: block;
  color: var(--green);
  font-family: var(--font-num);
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-stat-label {
  display: block;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  margin-top: auto;
  background: #070B16;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 194, 255, .6), var(--purple), transparent);
}

.footer-frame {
  display: grid;
  gap: 3rem;
  padding: 64px max(20px, calc((100vw - 1240px) / 2)) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand .brand {
  font-size: 1.3rem;
}

.footer-trust {
  margin-top: 1.25rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: .925rem;
  line-height: 1.8;
  border-left: 2px solid var(--cyan);
  padding-left: 1rem;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--cyan);
}

.footer-links {
  display: grid;
  gap: .55rem;
}

.footer-links a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 4px;
  text-decoration: underline;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: .15rem;
}

.footer-contact-item {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .875rem;
  line-height: 1.6;
}

.label {
  min-width: 3.5em;
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-contact-note {
  margin-top: .9rem;
  padding-left: .75rem;
  border-left: 2px solid var(--purple);
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .04em;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

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

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  .header-grid {
    gap: 8px;
  }

  .header-left {
    gap: .25rem;
  }

  .path-index {
    display: none;
  }

  .nav-toggle-label {
    display: none;
  }

  .brand-version {
    display: none;
  }

  .status-text {
    display: none;
  }

  .status-lamp {
    padding: .35rem .6rem;
  }

  .footer-frame {
    padding-top: 48px;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .section-header {
    grid-template-columns: 1fr;
  }

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

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

  .data-card {
    min-height: 120px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
