:root {
  --bg-main: #0a2e2a;
  --bg-side: #16324a;
  --bg-footer: #0c3b35;
  --neon: #39ff14;
  --orange: #ff6b35;
  --blue: #00b4d8;
  --wine: #722f37;
  --indigo: #4b0082;
  --red: #dc2626;
  --ink: #e0f2e8;
  --ink-dim: rgba(224, 242, 232, 0.68);
  --line: rgba(57, 255, 20, 0.18);
  --font-head: Impact, "Noto Sans SC", "Source Sans Pro", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Sans Pro", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-w: 280px;
  --container: 1180px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

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

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

body {
  margin: 0;
  padding-left: var(--header-w);
  background: var(--bg-main);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

::selection {
  background: var(--neon);
  color: #06231f;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--orange);
  color: #06231f;
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-w);
  z-index: 1200;
  background: var(--bg-side);
  border-right: 1px solid rgba(0, 180, 216, 0.3);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.08), rgba(0, 180, 216, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--orange));
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
}

.brand-lockup {
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(57, 255, 20, 0.25);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--neon);
  color: #06231f;
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 15px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.3);
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-text-cn {
  color: var(--neon);
}

.brand-tagline {
  margin: 12px 0 0;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
}

.site-nav {
  flex: 1;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  color: rgba(224, 242, 232, 0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-left: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-left 0.2s, transform 0.2s;
}

.nav-link:hover {
  color: var(--neon);
  background: rgba(57, 255, 20, 0.06);
  border-left-color: var(--neon);
  transform: translateX(2px);
}

.nav-link[aria-current="page"] {
  background: var(--neon);
  color: #06231f;
  border-left-color: var(--orange);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.25);
}

.nav-link[aria-current="page"] .nav-index {
  color: #06231f;
}

.nav-index {
  font-family: var(--font-data);
  font-size: 11px;
  min-width: 1.6rem;
  color: var(--orange);
}

.nav-label {
  display: block;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: #06231f;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.btn-primary:hover {
  background: #ff8555;
  transform: translateX(3px) skewX(-2deg);
  box-shadow: 6px 0 18px rgba(255, 107, 53, 0.25);
}

.btn-compact {
  padding: 0.48rem 0.75rem;
  font-size: 0.78rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
}

.btn-ghost:hover {
  background: rgba(57, 255, 20, 0.1);
}

.search-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(0, 180, 216, 0.45);
  color: var(--blue);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.search-link:hover {
  background: rgba(0, 180, 216, 0.15);
  border-color: var(--blue);
  color: #d6f8ff;
}

.search-link-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.search-link-label {
  font-family: var(--font-body);
}

.header-coord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 180, 216, 0.4);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(224, 242, 232, 0.5);
}

.coord-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--blue);
}

.coord-text {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: var(--neon);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-box {
  width: 16px;
  height: 14px;
  display: block;
  position: relative;
}

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

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

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

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

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

.nav-toggle-label {
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer {
  background: var(--bg-footer);
  color: var(--ink);
  border-top: 1px solid rgba(57, 255, 20, 0.2);
  padding-top: 3.5rem;
}

.footer-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  padding-right: 1rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--neon);
  color: #06231f;
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 12px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.footer-note {
  color: rgba(224, 242, 232, 0.7);
  font-size: 0.85rem;
  max-width: 32rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(224, 242, 232, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--neon);
  border-left: 2px solid var(--neon);
  padding-left: 8px;
}

.footer-title {
  font-family: var(--font-data);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-line {
  color: rgba(224, 242, 232, 0.8);
}

.contact-label {
  display: inline-block;
  min-width: 3.2rem;
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 0.78rem;
}

.contact-note {
  color: rgba(224, 242, 232, 0.5);
  font-size: 0.72rem;
  font-family: var(--font-data);
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 180, 216, 0.3);
}

.footer-legend .legend-item {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: rgba(224, 242, 232, 0.6);
}

.footer-legend .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.4rem;
  transform: rotate(45deg);
  background: var(--neon);
}

.footer-legend .legend-item:nth-child(1) .legend-dot {
  background: var(--neon);
}

.footer-legend .legend-item:nth-child(2) .legend-dot {
  background: var(--orange);
}

.footer-legend .legend-item:nth-child(3) .legend-dot {
  background: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(57, 255, 20, 0.14);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(224, 242, 232, 0.5);
  font-family: var(--font-data);
}

.footer-icp {
  letter-spacing: 0.04em;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--orange);
  color: #06231f;
  border: 0;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.to-top:hover {
  background: var(--neon);
  color: #06231f;
  transform: translateY(-3px);
}

.to-top[hidden] {
  display: none !important;
}

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

.site-main {
  min-height: 60vh;
}

.section {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.page-heading {
  padding: clamp(2rem, 6vw, 4.5rem) 0 1.5rem;
  border-bottom: 1px solid rgba(0, 180, 216, 0.25);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-kicker {
  display: block;
  margin: 0.4rem 0;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  margin: 0.3rem 0 0.8rem;
}

.lead {
  max-width: 72ch;
  color: rgba(224, 242, 232, 0.8);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: rgba(224, 242, 232, 0.55);
}

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

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

.breadcrumb [aria-current="page"] {
  color: rgba(224, 242, 232, 0.85);
}

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

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

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

.card {
  position: relative;
  background: linear-gradient(150deg, rgba(22, 50, 74, 0.85), rgba(10, 46, 42, 0.6));
  border: 1px solid rgba(0, 180, 216, 0.18);
  border-left: 3px solid var(--neon);
  padding: 1.4rem;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 16px 16px 0;
  border-style: solid;
  border-color: transparent var(--neon) transparent transparent;
  opacity: 0.8;
}

.data-card {
  position: relative;
  background: rgba(22, 50, 74, 0.55);
  border: 1px solid rgba(57, 255, 20, 0.22);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.data-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(57, 255, 20, 0.12) 70%);
  pointer-events: none;
}

.data-card:hover {
  transform: translateX(5px) skewX(-2deg);
  border-color: var(--neon);
  box-shadow: 8px 0 20px rgba(57, 255, 20, 0.1);
}

.data-number {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  color: var(--neon);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

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

.media-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 180, 216, 0.22), rgba(10, 46, 42, 0.65)),
    repeating-linear-gradient(45deg, rgba(224, 242, 232, 0.05) 0 1px, transparent 1px 10px);
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
  overflow: hidden;
}

.media-frame::before {
  content: "";
  position: absolute;
  left: -15%;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.18), transparent);
  transform: skewX(-24deg);
  z-index: 1;
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(57, 255, 20, 0.3);
  z-index: 2;
  pointer-events: none;
}

.media-frame img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: rgba(22, 50, 74, 0.45);
  border: 1px solid rgba(57, 255, 20, 0.25);
  color: rgba(224, 242, 232, 0.75);
  font-family: var(--font-data);
  font-size: 0.76rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.section-nav a:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.section-nav a[aria-current] {
  background: var(--neon);
  border-color: var(--neon);
  color: #06231f;
  font-weight: 700;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: rgba(224, 242, 232, 0.7);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--neon);
}

.coord-index {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: rgba(224, 242, 232, 0.65);
}

.coord-index::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--orange);
}

.slant-line {
  height: 2px;
  margin: 1rem 0;
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 53, 0));
  transform: skewX(-18deg);
  border: 0;
}

.wave-line {
  height: 2px;
  margin: 1rem 0;
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 14px);
  opacity: 0.45;
  border: 0;
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(57, 255, 20, 0.25);
    background: rgba(22, 50, 74, 0.98);
  }

  .header-shell {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    height: auto;
    overflow: visible;
  }

  .brand-lockup {
    margin-right: auto;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .brand-tagline,
  .header-coord {
    display: none;
  }

  .site-nav {
    flex: 0 0 100%;
    order: 8;
    display: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
  }

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

  .nav-link {
    padding: 0.6rem 0.5rem;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
  }

  .btn-compact {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .search-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 2px;
  }

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

  .site-footer {
    padding-top: 2.5rem;
  }

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

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

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

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

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-shell {
    padding: 0 16px;
  }
}

@media (max-width: 560px) {
  .search-link-label,
  .nav-toggle-label {
    display: none;
  }

  .brand-text {
    font-size: 0.95rem;
  }

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

  .btn-compact {
    padding: 0.38rem 0.5rem;
    font-size: 0.68rem;
  }
}

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

  .nav-link:hover,
  .data-card:hover,
  .btn-primary:hover,
  .to-top:hover {
    transform: none;
  }
}
