:root {
  --color-bg: #0B1B3D;
  --color-deep: #060D1F;
  --color-card: #13294B;
  --color-orange: #FF6B00;
  --color-green: #39FF14;
  --color-blue: #1E3A8A;
  --color-text: #E8ECF4;
  --color-muted: #8A9BB5;
  --color-warn: #FFDD00;
  --color-border: #1F2937;
  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", "Consolas", monospace;
  --header-top: 16px;
  --header-height: 64px;
  --shadow-hard: 8px 8px 0 rgba(6, 13, 31, 0.6);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: calc(var(--header-top) + var(--header-height) + 12px);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(138, 155, 181, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 155, 181, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
}

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

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 3000;
  padding: 0.6rem 1rem;
  background: var(--color-green);
  color: #060D1F;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease);
}

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

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 5000;
  background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-green) 100%);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.header-inner,
.header-pill {
  background: rgba(6, 13, 31, 0.78);
  border: 1px solid rgba(138, 155, 181, 0.32);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 107, 0, 0.08);
}

.header-inner {
  position: relative;
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--color-orange);
  color: #060D1F;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 8px 2px 8px 2px;
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.6);
}

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

.brand:hover .brand-text {
  color: var(--color-orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(6, 13, 31, 0.6);
  color: var(--color-text);
}

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

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon::after {
  top: 6px;
  box-shadow: 0 6px 0 currentColor;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 6px;
  transform: rotate(-45deg);
  box-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

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

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 107, 0, 0.12);
}

.nav-link[aria-current="page"] {
  color: var(--color-orange);
  background: rgba(255, 107, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.3);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 8px;
  padding: 0.6rem 1.1rem;
  background: var(--color-orange);
  color: #060D1F;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(57, 255, 20, 0.35);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--color-green);
  box-shadow: 3px 3px 0 rgba(255, 107, 0, 0.5);
  color: #060D1F;
}

.site-footer {
  position: relative;
  margin-top: auto;
  padding: 48px 0 28px;
  background-color: var(--color-deep);
  background-image:
    linear-gradient(rgba(138, 155, 181, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 155, 181, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  border-top: 2px solid var(--color-orange);
  box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.2);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  right: 6%;
  width: 60px;
  height: 6px;
  background: var(--color-green);
  box-shadow: 12px 0 0 var(--color-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand .brand {
  font-size: 1.2rem;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-tagline {
  margin: 16px 0 0;
  max-width: 32ch;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-nav,
.footer-contact,
.footer-legal {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--color-green);
}

.footer-contact p {
  margin: 0.3rem 0;
  color: var(--color-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--color-warn);
  background: rgba(11, 27, 61, 0.5);
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-green);
  background: rgba(6, 13, 31, 0.85);
  color: var(--color-green);
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 10px 2px 10px 2px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(255, 107, 0, 0.25);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.back-top:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #060D1F;
}

.page-header {
  padding: 24px 0 40px;
  border-bottom: 1px solid rgba(138, 155, 181, 0.2);
}

.page-index {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-green);
}

.page-index::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-orange);
}

.page-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.page-lead {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 14px;
  color: var(--color-blue);
}

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

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

.breadcrumbs [aria-current="page"] {
  color: var(--color-orange);
  font-weight: 700;
}

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

.section-head {
  margin-bottom: 28px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green);
}

.section-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  max-width: 16ch;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 55ch;
  color: var(--color-muted);
}

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

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

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

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

.card {
  padding: 24px;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  border-color: var(--color-orange);
  box-shadow: 10px 10px 0 rgba(255, 107, 0, 0.15);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 4px 4px 0 rgba(6, 13, 31, 0.5);
  aspect-ratio: 16 / 9;
}

.media-frame::after {
  content: "IMG";
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--color-muted);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #060D1F;
  box-shadow: 4px 4px 0 rgba(57, 255, 20, 0.8);
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(57, 255, 20, 0.5);
}

.btn-outline {
  border-color: var(--color-muted);
  color: var(--color-text);
  box-shadow: 4px 4px 0 var(--color-card);
}

.btn-outline:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.6em;
  border: 1px solid var(--color-border);
  background: var(--color-deep);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.tag-live {
  border-color: var(--color-green);
  background: var(--color-green);
  color: #060D1F;
}

.tag-warn {
  border-color: var(--color-warn);
  background: var(--color-warn);
  color: #060D1F;
}

.panel {
  padding: 24px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 4px 4px 0 rgba(255, 107, 0, 0.1);
}

.tabs {
  display: block;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-border);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 2px 2px 0 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.tab-btn:hover {
  color: var(--color-text);
  border-color: var(--color-blue);
}

.tab-btn[aria-selected="true"] {
  background: var(--color-card);
  color: var(--color-green);
  border-color: var(--color-green);
  box-shadow: inset 0 -3px 0 var(--color-orange);
}

.tab-panel {
  padding: 8px 4px 24px;
}

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

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

@media (max-width: 780px) {
  :root {
    --header-top: 8px;
    --header-height: 54px;
  }

  body {
    padding-top: calc(var(--header-top) + var(--header-height) + 10px);
  }

  .header-inner,
  .header-pill {
    border-radius: 20px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(6, 13, 31, 0.96);
    border: 1px solid rgba(138, 155, 181, 0.4);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 107, 0, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

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

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

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

  .nav-cta {
    margin: 6px 4px 4px;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }

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

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

  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

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