:root {
  --bg-deep: #0B0B0F;
  --bg-panel: #1A1A24;
  --border-soft: #2A2A3A;
  --purple: #B14BFF;
  --blue: #00E5FF;
  --red: #FF3B5C;
  --text-bright: #F5F5FA;
  --text-muted: #8A8A9E;
  --radius-card: 24px;
  --radius-pill: 999px;
  --font-head: "Orbitron", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  padding-top: 92px;
  background:
    radial-gradient(circle at 20% 0%, rgba(177,75,255,.08), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(0,229,255,.06), transparent 28%),
    var(--bg-deep);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.25;
  margin: 0 0 .4em;
}

p, ul, ol, dl, figure {
  margin: 0 0 16px;
}

ul, ol {
  padding-left: 1.25rem;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--purple);
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::selection {
  background: var(--purple);
  color: var(--text-bright);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-kicker {
  display: block;
  color: var(--purple);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  margin-bottom: 16px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 680px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  flex-shrink: 0;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn-cta {
  background: linear-gradient(135deg, var(--purple), #7B2BE0);
  color: #fff;
  box-shadow: 0 0 16px rgba(177,75,255,.28);
  letter-spacing: .02em;
}

.btn-cta:hover {
  color: #fff;
  box-shadow: 0 0 26px rgba(177,75,255,.45);
}

.skip-link {
  position: fixed;
  left: 0;
  top: -100%;
  z-index: 200;
  background: var(--blue);
  color: var(--bg-deep);
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus-visible {
  top: 0;
}

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 12px;
  pointer-events: none;
}

.header-inner {
  position: relative;
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(20,20,30,.88);
  border: 1px solid rgba(177,75,255,.28);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.55), 0 0 30px rgba(177,75,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 101;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  box-shadow: 0 0 12px rgba(0,229,255,.5);
  pointer-events: none;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--text-bright);
}

.brand-sub {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 2px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: rgba(245,245,250,.88);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.nav-link:hover {
  color: var(--blue);
  background: rgba(0,229,255,.08);
  box-shadow: 0 0 12px rgba(0,229,255,.12);
}

.nav-link[aria-current="page"] {
  color: var(--blue);
  background: rgba(0,229,255,.12);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.35), 0 0 14px rgba(0,229,255,.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: rgba(245,245,250,.04);
  color: var(--text-bright);
  gap: 3px;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-label {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1;
}

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

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

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

.site-footer {
  margin-top: 80px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  position: relative;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr .9fr 1.3fr;
  gap: 48px;
}

.footer-brand,
.footer-links,
.footer-contact {
  min-width: 0;
}

.footer-brand .site-brand {
  margin-bottom: 4px;
}

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

.trust-statement {
  margin-top: 20px;
  border-left: 2px solid var(--purple);
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--purple);
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link-list li {
  margin-bottom: 8px;
}

.footer-link-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}

.footer-link-list a:hover {
  color: var(--blue);
}

.contact-item {
  margin: 6px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-icp {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(177,75,255,.65);
  background: rgba(11,11,15,.88);
  color: var(--text-bright);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.back-to-top:hover {
  box-shadow: 0 0 20px rgba(177,75,255,.35);
  border-color: var(--purple);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(177,75,255,.55);
  box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 24px rgba(177,75,255,.12);
}

.card-heading {
  font-size: 20px;
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(177,75,255,.12);
  border: 1px solid rgba(177,75,255,.3);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,59,92,.12);
  border: 1px solid rgba(255,59,92,.45);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.data-highlight {
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .02em;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--purple), var(--blue));
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
  padding-left: 20px;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--purple);
  box-shadow: 0 0 0 3px rgba(177,75,255,.15);
}

.timeline-time {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.timeline-content h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--border-soft);
  margin-right: 8px;
}

.breadcrumb-link {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text-bright);
}

.prose {
  max-width: 72ch;
}

.prose p {
  color: rgba(245,245,250,.82);
  margin-bottom: 16px;
}

.prose h2 {
  margin-top: 32px;
}

.prose ul,
.prose ol {
  color: rgba(245,245,250,.82);
}

.prose strong {
  color: var(--text-bright);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--border-soft);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6));
  pointer-events: none;
}

.image-frame-16x9 {
  aspect-ratio: 16 / 9;
}

.image-frame-4x3 {
  aspect-ratio: 4 / 3;
}

.image-frame-1x1 {
  aspect-ratio: 1 / 1;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  body {
    padding-top: 88px;
  }

  .header-inner {
    padding: 8px 12px 8px 16px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    z-index: 99;
    border-radius: 20px;
    background: rgba(20,20,30,.98);
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 40px rgba(0,0,0,.6);
    padding: 12px;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

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

  .btn-cta {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 48px 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 32px;
  }

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

  .back-to-top {
    right: 12px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .brand-sub {
    letter-spacing: .18em;
  }

  .btn-cta {
    font-size: 12px;
    padding: 8px 12px;
  }

  .section-title {
    font-size: 28px;
  }
}

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

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

  .card,
  .back-to-top {
    transform: none !important;
  }
}
