:root {
  --bg-main: #0A1128;
  --bg-panel: #111B3D;
  --bg-deep: #060A18;
  --color-neon: #39FF14;
  --color-orange: #FF6A00;
  --color-data: #00D4FF;
  --color-text: #F2F6FF;
  --color-dim: #A8B4D4;
  --color-line: #1E2B4F;
  --color-brand: #FF3B30;
  --font-display: "DIN Alternate", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1440px;
  --shadow: 0 16px 48px rgba(0,0,0,.35);
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,212,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(600px) rotateX(60deg) scale(2.1) translateY(42%);
  transform-origin: top center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(57,255,20,.22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 30%, rgba(0,212,255,.22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 38% 62%, rgba(255,106,0,.18) 0 1px, transparent 1.8px);
  background-size: 260px 260px, 220px 220px, 320px 320px;
  animation: particle-drift 34s linear infinite alternate;
}

@keyframes particle-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 120px 80px, -80px 140px, 90px -60px; }
}

#main-content,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

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

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

p {
  overflow-wrap: break-word;
}

::selection {
  background: var(--color-neon);
  color: #04100A;
}

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

.visually-hidden {
  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: .75rem;
  left: .75rem;
  z-index: 3000;
  transform: translateY(-200%);
  background: var(--color-neon);
  color: #04100A;
  font-weight: 800;
  padding: .75em 1.25em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform .2s ease;
}

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

.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2000;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-neon), var(--color-orange));
  will-change: transform;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,17,40,.96);
  border-bottom: 1px solid var(--color-line);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header[data-scrolled] {
  background: rgba(6,10,24,.94);
  box-shadow: var(--shadow);
}

.trust-strip {
  max-height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .42rem 1.5rem;
  background: rgba(17,27,61,.72);
  border-bottom: 1px solid rgba(30,43,79,.8);
  transition: max-height .3s ease, padding .3s ease, border-color .3s ease;
}

.trust-strip-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--color-neon);
  border: 1px solid rgba(57,255,20,.3);
  padding: .12em .45em;
  line-height: 1.4;
}

.trust-item {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--color-dim);
  white-space: nowrap;
}

.trust-sep {
  width: 4px;
  height: 4px;
  background: var(--color-orange);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.site-header[data-scrolled] .trust-strip {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: .4rem clamp(1rem, 3vw, 2.5rem);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-orange) 100%);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 28% 100%, 0 72%);
  box-shadow: 0 0 18px rgba(255,59,48,.35);
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--color-text);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--color-neon);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--color-neon);
  border: 1px solid rgba(57,255,20,.35);
  padding: .18em .4em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  counter-reset: navindex;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .7rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-dim);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav-link::before {
  content: counter(navindex, decimal-leading-zero);
  counter-increment: navindex;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--color-data);
  opacity: .8;
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(0,212,255,.08);
  border-color: rgba(0,212,255,.18);
}

.nav-link[aria-current="page"] {
  color: var(--color-text);
  background: rgba(0,212,255,.1);
  border-color: rgba(0,212,255,.18);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: .4rem;
  right: .4rem;
  height: 2px;
  background: var(--color-orange);
}

.header-end {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: .6em .8em;
  background: linear-gradient(135deg, rgba(57,255,20,.16), rgba(57,255,20,.05));
  border: 1px solid rgba(57,255,20,.45);
  color: var(--color-neon);
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}

.live-badge small {
  font-size: .7em;
  opacity: .82;
  margin-left: .2em;
  border-left: 1px solid rgba(57,255,20,.3);
  padding-left: .55em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 0 0 rgba(57,255,20,.7);
  animation: live-pulse 2s ease-out infinite;
  flex: 0 0 auto;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(57,255,20,.6); }
  70% { box-shadow: 0 0 0 8px rgba(57,255,20,0); }
  100% { box-shadow: 0 0 0 0 rgba(57,255,20,0); }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  background: rgba(17,27,61,.6);
  flex: 0 0 auto;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  display: block;
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform .25s ease, opacity .25s ease, top .25s ease, background .25s ease;
}

.nav-toggle-line {
  top: 21px;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

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

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

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

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--color-line);
  color: var(--color-dim);
}

.footer-grid {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem) 2rem;
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.footer-brand-cell p {
  max-width: 40ch;
  margin-top: .8rem;
  font-size: .9rem;
}

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

.footer-icp {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--color-dim);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(30,43,79,.7);
}

.footer-links h2,
.footer-contact h2 {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-data);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  padding: .32rem 0;
  color: var(--color-dim);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, padding-left .2s ease, border-color .2s ease;
}

.footer-links a:hover {
  color: var(--color-neon);
  padding-left: .35rem;
  border-bottom-color: rgba(57,255,20,.2);
}

.footer-contact p {
  margin-bottom: .5rem;
  font-size: .9rem;
}

.footer-contact a {
  color: var(--color-dim);
  border-bottom: 1px solid rgba(0,212,255,.2);
  transition: color .2s ease, border-color .2s ease;
}

.footer-contact a:hover {
  color: var(--color-data);
  border-bottom-color: rgba(0,212,255,.5);
}

.footer-meta {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.2rem clamp(1rem, 3vw, 2.5rem) 1.6rem;
  border-top: 1px solid rgba(30,43,79,.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--color-dim);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-neon);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3rem, 8vw, 7rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-line);
}

.section-kicker {
  font-family: var(--font-serif);
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--color-orange);
  margin-bottom: .35rem;
}

.section-title {
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: .01em;
}

.section-subtitle {
  max-width: 60ch;
  margin-top: .25rem;
  font-size: .98rem;
  color: var(--color-dim);
}

.section-index {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .15em;
  color: var(--color-data);
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding-block: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--color-dim);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--color-orange);
  margin-right: .5rem;
}

.breadcrumbs a:hover {
  color: var(--color-neon);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

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

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

.panel {
  position: relative;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: linear-gradient(150deg, rgba(17,27,61,.92), rgba(10,17,40,.9));
  border: 1px solid var(--color-line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--color-orange);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: .8;
}

.card {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: rgba(17,27,61,.74);
  border: 1px solid var(--color-line);
  transition: transform .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,212,255,.35);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-neon), transparent 80%);
  opacity: 0;
  transition: opacity .2s ease;
}

.card:hover::before {
  opacity: 1;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-data), transparent);
  opacity: .6;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .72em 1.15em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter .2s ease, transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button-primary {
  background: var(--color-neon);
  color: #04100A;
  box-shadow: 0 0 22px rgba(57,255,20,.16);
}

.button-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.button-ghost {
  background: rgba(0,212,255,.08);
  border-color: var(--color-data);
  color: var(--color-data);
}

.button-ghost:hover {
  background: rgba(0,212,255,.16);
}

.button-warn {
  background: var(--color-orange);
  color: #0A1128;
}

.button.is-active,
.button[aria-pressed="true"] {
  background: var(--color-orange);
  color: #0A1128;
  border-color: var(--color-orange);
}

.tag {
  display: inline-block;
  padding: .3em .68em;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.35);
  color: var(--color-data);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  line-height: 1.3;
}

.tag--warn {
  color: var(--color-orange);
  border-color: rgba(255,106,0,.4);
  background: rgba(255,106,0,.08);
}

.tag--green {
  color: var(--color-neon);
  border-color: rgba(57,255,20,.4);
  background: rgba(57,255,20,.08);
}

[data-filter-list] {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

[data-filter-control][aria-pressed="true"],
[data-filter-control].is-active {
  background: var(--color-orange);
  color: #0A1128;
  border-color: var(--color-orange);
}

[data-filter-panel] {
  transition: opacity .2s ease;
}

[data-filter-panel][data-hidden] {
  display: none;
}

.media-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a1330, #111B3D 60%, #18264c);
  border: 1px solid var(--color-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.media-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(0,212,255,.2), transparent 55%),
    linear-gradient(120deg, transparent 30%, rgba(255,106,0,.08));
}

.media-panel::after {
  content: attr(data-label);
  position: absolute;
  right: 0;
  bottom: 0;
  padding: .45em .8em;
  background: rgba(6,10,24,.72);
  color: var(--color-dim);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  border-top: 1px solid rgba(30,43,79,.8);
  border-left: 1px solid rgba(30,43,79,.8);
}

.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.media-panel--4x3 {
  aspect-ratio: 4 / 3;
}

.media-panel--dynamic {
  aspect-ratio: 1 / 1;
}

[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-reveal="visible"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .8rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
    background: rgba(6,10,24,.98);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: .9rem .2rem;
    font-size: 1rem;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-cell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-col-2,
  .grid-col-3,
  .grid-col-4 {
    grid-template-columns: 1fr;
  }

  .media-panel {
    aspect-ratio: 4 / 3;
  }

  .media-panel--dynamic {
    aspect-ratio: 16 / 10;
  }

  .header-inner {
    padding-inline: .9rem;
    gap: .5rem;
    min-height: 60px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

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

  .brand-tag {
    display: none;
  }

  .header-end {
    gap: .4rem;
  }

  .live-badge {
    font-size: .64rem;
    padding: .4em .55em;
  }

  .live-badge small {
    font-size: .62rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-toggle-line,
  .nav-toggle-line::before,
  .nav-toggle-line::after {
    left: 9px;
    width: 18px;
  }

  .nav-toggle-line {
    top: 18px;
  }

  .nav-toggle-line::before {
    top: -6px;
  }

  .nav-toggle-line::after {
    top: 6px;
  }
}

@media (max-width: 420px) {
  .live-badge small {
    display: none;
  }

  .trust-item {
    font-size: .7rem;
  }

  .trust-strip {
    gap: .5rem;
  }
}

@media (min-width: 1025px) {
  .grid-col-4 {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

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

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

  body::after {
    animation: none;
  }

  [data-reveal="pending"],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
