:root {
  --bg: #0A1628;
  --bg-2: #1B2B4B;
  --bg-3: #101E36;
  --accent: #00E676;
  --accent-orange: #FF7A00;
  --text: #F5F7FA;
  --text-2: #C9D1D9;
  --text-3: #7A8BA0;
  --mint: #E6FFF2;
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-pill: 999px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-mono: "Roboto Mono", "SF Mono", "Courier New", monospace;
  --header-w: 280px;
  --grid-gap: clamp(16px, 2vw, 28px);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 78% 8%, rgba(0, 230, 118, 0.07), transparent 38%),
    linear-gradient(115deg, transparent 34%, rgba(255, 122, 0, 0.035) 34.5%, rgba(255, 122, 0, 0.035) 35%, transparent 35.5%),
    repeating-linear-gradient(90deg, rgba(0, 230, 118, 0.018) 0 1px, transparent 1px 84px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-lock {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

#main-content {
  display: block;
  flex: 1;
  width: 100%;
  outline: none;
  scroll-margin-top: 72px;
}

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tight {
  padding-block: 24px;
}

.page-hero {
  padding-block: clamp(40px, 7vw, 76px);
}

.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-hero__kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.page-hero__title {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}

.page-hero__lead {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.5;
  color: var(--text-2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-3);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 4px;
  color: var(--text-3);
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}

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

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 24px;
}

.section-heading__index {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.section-heading__title {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--text);
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

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

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

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .grid--12 {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--12 {
    grid-template-columns: repeat(12, 1fr);
  }

  .col-span-2 { grid-column: span 2; }
  .col-span-3 { grid-column: span 3; }
  .col-span-4 { grid-column: span 4; }
  .col-span-5 { grid-column: span 5; }
  .col-span-6 { grid-column: span 6; }
  .col-span-7 { grid-column: span 7; }
  .col-span-8 { grid-column: span 8; }
  .col-span-9 { grid-column: span 9; }
  .col-span-12 { grid-column: 1 / -1; }
}

.card {
  background: var(--bg-2);
  border: 1px solid rgba(0, 230, 118, 0.1);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.tag--orange {
  background: rgba(255, 122, 0, 0.14);
  color: var(--accent-orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 230, 118, 0.25);
}

.btn--orange {
  background: var(--accent-orange);
  color: var(--bg);
}

.btn--orange:hover {
  box-shadow: 0 10px 24px rgba(255, 122, 0, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost:hover {
  background: rgba(0, 230, 118, 0.08);
}

.prose {
  max-width: 720px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.3;
}

.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: 1.6rem;
}

.prose h3 {
  margin: 1.4em 0 0.5em;
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 1.2em;
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

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

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-m);
  background: rgba(0, 230, 118, 0.06);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.data-list {
  display: grid;
  gap: 12px;
}

.data-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: var(--radius-m);
  background: rgba(0, 230, 118, 0.05);
}

.data-item__label {
  color: var(--text-3);
}

.data-item__value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend__dot--green { background: var(--accent); }
.legend__dot--orange { background: var(--accent-orange); }
.legend__dot--gray { background: var(--text-3); }

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 5000;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
  left: 14px;
}

.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 5000;
  pointer-events: none;
  background: rgba(0, 230, 118, 0.08);
}

.site-progress__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-orange));
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
  transition: width 0.1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 230, 118, 0.12);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  margin-inline: auto;
  padding: 12px 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 900;
  font-size: 18px;
}

.site-brand__sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(0, 230, 118, 0.06);
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.nav-toggle__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__line:nth-child(1) { top: 0; }
.nav-toggle__line:nth-child(2) { top: 6px; }
.nav-toggle__line:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  top: 6px;
  transform: 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) {
  top: 6px;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(320px, 86vw);
  padding: 84px 20px 24px;
  background: var(--bg-2);
  border-right: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: var(--shadow);
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.3s var(--ease);
}

.site-nav[data-open] {
  transform: translateX(0);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-nav__list a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-nav__list a:hover {
  color: var(--text);
  background: rgba(0, 230, 118, 0.08);
  transform: translateX(4px);
}

.site-nav__list a[aria-current="page"] {
  color: var(--bg);
  background: var(--accent);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 230, 118, 0.25);
}

.site-nav__list a[aria-current="page"]::before {
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.4);
}

.quick-action {
  display: block;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-pill);
  color: var(--accent-orange);
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.quick-action:hover,
.quick-action:focus-visible {
  background: var(--accent-orange);
  color: var(--bg);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.25);
}

.site-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: var(--radius-m);
  background: rgba(0, 230, 118, 0.08);
  color: var(--text-2);
  font-size: 13px;
}

.site-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.site-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(2, 8, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.site-nav[data-open] ~ .site-nav__overlay {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  position: relative;
  margin-top: auto;
  background: #0C1A30;
  border-top: 1px solid rgba(0, 230, 118, 0.14);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(0, 230, 118, 0.1) 40%, transparent 80%);
  pointer-events: none;
}

.site-footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

.site-footer__heading {
  margin: 0 0 12px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.site-footer a[aria-current="page"] {
  color: var(--accent);
}

.site-brand--footer .site-brand__mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.site-brand--footer .site-brand__text {
  font-size: 22px;
}

.site-footer__about {
  max-width: 360px;
  margin: 16px 0;
  color: var(--text-2);
}

.site-footer__trust {
  max-width: 380px;
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text-3);
  font-size: 14px;
}

.site-footer__contact-list {
  display: grid;
  gap: 10px;
}

.site-footer__contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__contact-label {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-footer__icp {
  margin: 16px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

@media (min-width: 640px) {
  .site-footer__container {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__col--brand,
  .site-footer__contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  body {
    margin-left: var(--header-w);
  }

  body.nav-lock {
    overflow: auto;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--header-w);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B1930 0%, var(--bg) 68%, #0D1B30 100%);
    border-right: 1px solid rgba(0, 230, 118, 0.12);
    border-bottom: none;
    box-shadow: var(--shadow);
  }

  .site-header__bar {
    flex-shrink: 0;
    padding: 32px 20px 16px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: auto;
    padding: 8px 16px 0;
    background: transparent;
    border-right: none;
    box-shadow: none;
    transform: none;
    overflow-y: auto;
  }

  .site-nav__overlay {
    display: none;
  }

  .quick-action {
    margin: 16px;
  }

  .site-status {
    margin: 0 16px 20px;
  }

  .site-footer__container {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
  }

  .site-footer__col--brand,
  .site-footer__contact {
    grid-column: auto;
  }
}

@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;
  }
}
