:root {
  --bg-deep: #0A1128;
  --bg-card: #152A4A;
  --bg-foot: #050810;
  --accent-green: #00E5A0;
  --accent-purple: #8A2BE2;
  --accent-orange: #FF7E40;
  --accent-blue: #4A90E2;
  --text-white: #F5F7FA;
  --text-gray: #A0AAB5;
  --warning-red: #FF4D4F;
  --font-head: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
  --content-width: 1200px;
  --radius: 10px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-white);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.025) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(138, 43, 226, 0.12), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(0, 229, 160, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0C1733 50%, var(--bg-deep) 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
  padding-top: 96px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--accent-green);
}

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

ul, ol {
  list-style-position: inside;
}

#main-content {
  outline: none;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 80px 0 40px;
  position: relative;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-green);
  background: rgba(0, 229, 160, 0.10);
  border: 1px solid rgba(0, 229, 160, 0.20);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: 1px;
}

.section-sub {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-gray);
  white-space: nowrap;
}

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

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

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

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: rgba(0, 229, 160, 0.12);
  z-index: 300;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple) 70%, var(--accent-orange));
  transition: width 0.05s linear;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--accent-green);
  color: var(--bg-deep);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 12px;
}

.nav-capsule {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 24px 8px 12px;
  background: rgba(10, 17, 40, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 229, 160, 0.35);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-green), #66FFC2);
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-white);
}

.brand-text em {
  font-style: normal;
  color: var(--accent-green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
}

.site-nav a::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.75;
  margin-right: 4px;
}

.site-nav a:hover {
  color: var(--accent-green);
  background: rgba(0, 229, 160, 0.10);
}

.site-nav a[aria-current="page"] {
  color: var(--bg-deep);
  background: var(--accent-green);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 229, 160, 0.30);
}

.site-nav a[aria-current="page"]::before {
  color: var(--bg-deep);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.30);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--accent-green);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

@media (max-width: 920px) {
  body {
    padding-top: 80px;
  }

  .site-header {
    padding: 12px 12px 0;
  }

  .nav-capsule {
    padding: 6px 12px 6px 8px;
    gap: 12px;
    border-radius: 40px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(21, 42, 74, 0.96);
    border: 1px solid rgba(0, 229, 160, 0.30);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.50);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-white);
  }

  .site-nav a[aria-current="page"] {
    background: rgba(0, 229, 160, 0.12);
    color: var(--accent-green);
    box-shadow: none;
  }

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

.site-footer {
  position: relative;
  background: var(--bg-foot);
  border-top: 1px solid rgba(0, 229, 160, 0.25);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple), var(--accent-orange));
  opacity: 0.60;
}

.footer-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo em {
  font-style: normal;
  color: var(--accent-green);
}

.footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-gray);
  max-width: 320px;
}

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

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.footer-heading-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-purple);
  display: block;
  letter-spacing: 2px;
  margin-top: 2px;
}

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

.footer-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

.footer-list a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}

.footer-list a:hover {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(160, 170, 181, 0.12);
  font-size: 13px;
  color: var(--text-gray);
  text-align: center;
}

.footer-note {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
}

.footer-trust {
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px dashed rgba(0, 229, 160, 0.25);
  border-radius: var(--radius);
  color: rgba(245, 247, 250, 0.70);
  font-size: 12px;
  line-height: 1.6;
}

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

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 98;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.back-top:hover {
  background: var(--accent-green);
  color: var(--bg-deep);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent-green);
  color: var(--bg-deep);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: #00FFB0;
  box-shadow: 0 8px 30px rgba(0, 229, 160, 0.25);
}

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

.btn.outline:hover {
  background: rgba(138, 43, 226, 0.10);
  box-shadow: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 24px;
  padding: 0;
}

.breadcrumb li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}

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

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

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 160, 0.15);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 229, 160, 0.35);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  background: rgba(138, 43, 226, 0.15);
  color: #C086FF;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(138, 43, 226, 0.30);
  line-height: 1.4;
}

.tag.green {
  background: rgba(0, 229, 160, 0.10);
  color: var(--accent-green);
  border-color: rgba(0, 229, 160, 0.30);
}

.tag.orange {
  background: rgba(255, 126, 64, 0.10);
  color: var(--accent-orange);
  border-color: rgba(255, 126, 64, 0.30);
}

.tag.blue {
  background: rgba(74, 144, 226, 0.10);
  color: var(--accent-blue);
  border-color: rgba(74, 144, 226, 0.30);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.stat-block {
  padding: 20px;
  background: rgba(21, 42, 74, 0.50);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 4px;
}

.timeline {
  position: relative;
  padding-left: 24px;
  margin-left: 8px;
  border-left: 2px solid rgba(0, 229, 160, 0.20);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--bg-deep);
  border: 2px solid var(--accent-green);
  border-radius: 50%;
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  margin-bottom: 4px;
}

.image-frame {
  position: relative;
  border: 1px solid rgba(0, 229, 160, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(21, 42, 74, 0.80), rgba(5, 8, 16, 0.60));
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame::before {
  content: attr(data-index);
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-green);
  letter-spacing: 1px;
  z-index: 1;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 229, 160, 0.08), transparent 40%),
    linear-gradient(315deg, rgba(138, 43, 226, 0.10), transparent 40%);
  pointer-events: none;
}

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

.mono {
  font-family: var(--font-mono);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}

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

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

  .section-head {
    flex-wrap: wrap;
  }

  .section-sub {
    margin-left: 0;
    width: 100%;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}
