:root {
  --bg: #0B0F19;
  --bg-deep: #070A11;
  --bg-panel: #14102B;
  --neon: #00E5FF;
  --violet: #9B59FF;
  --red: #FF5A36;
  --cream: #F2E8D5;
  --cream-ink: #17120A;
  --text: #E6EDF3;
  --text-muted: #B0C4DE;
  --border: #1F2A44;
  --success: #00FF9D;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Open Sans", sans-serif;
  --font-display: "Exo 2", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --shell: min(100% - 40px, 1440px);
  --radius: 14px;
  --header-z: 1000;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -10%, rgba(155, 89, 255, 0.20), transparent 42%),
    radial-gradient(circle at 0% 20%, rgba(0, 229, 255, 0.08), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #0C101D 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--neon);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

::selection {
  background: rgba(0, 229, 255, 0.28);
  color: var(--text);
}

#main-content {
  display: block;
  scroll-margin-top: 90px;
}

#main-content:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2200;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--cream-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px 10px 2px 10px;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2100;
  background: linear-gradient(90deg, var(--neon), var(--violet), var(--red));
  transform: scaleX(0);
  transform-origin: 0 0;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
  pointer-events: none;
  transition: transform 120ms linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: rgba(9, 12, 22, 0.84);
  border-bottom: 1px solid rgba(31, 42, 68, 0.92);
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.06), transparent 40%, rgba(155, 89, 255, 0.05));
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.header-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

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

.brand-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--cream-ink);
  background: linear-gradient(135deg, var(--cream), #DDC9A5);
  border-radius: 4px 14px 4px 14px;
  box-shadow: 0 0 0 1px rgba(242, 232, 213, 0.3), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.06);
  border-radius: 2px 10px 2px 10px;
}

.version-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.version-number {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px 12px 4px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

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

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

.header-nav-wrap {
  display: block;
  border-top: 1px solid var(--border);
}

.main-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.nav-list::-webkit-scrollbar {
  height: 3px;
}

.nav-list::-webkit-scrollbar-track {
  background: transparent;
}

.nav-list::-webkit-scrollbar-thumb {
  background: var(--border);
}

.nav-link {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 14px 18px 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--neon);
  background: rgba(0, 229, 255, 0.05);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-footer {
  position: relative;
  margin-top: clamp(80px, 10vw, 140px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--violet) 60%, transparent);
  opacity: 0.8;
}

.footer-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
}

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

.footer-brand {
  grid-column: span 6;
}

.footer-links {
  grid-column: span 3;
}

.footer-contact {
  grid-column: span 3;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.footer-brand-legal {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--neon);
  text-transform: uppercase;
}

.footer-trust {
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-title {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.footer-links ul,
.footer-contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

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

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

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

.footer-contact li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

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

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

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--neon);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-lead {
  max-width: 60ch;
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

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

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

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

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

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(145deg, rgba(20, 16, 43, 0.72), rgba(11, 15, 25, 0.84));
  border: 1px solid var(--border);
  border-radius: var(--radius) 4px var(--radius) 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 50%, rgba(155, 89, 255, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 229, 255, 0.04);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

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

.card-body p + p {
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.tag-hot {
  color: var(--red);
  background: rgba(255, 90, 54, 0.08);
  border-color: rgba(255, 90, 54, 0.45);
}

.tag-neon {
  color: var(--neon);
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.4);
}

.data-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

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

.data-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--neon);
}

.version-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  color: var(--neon);
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border);
}

.version-tag-label {
  font-size: 12px;
  color: var(--text-muted);
}

.figure-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 70% 20%, rgba(155, 89, 255, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(20, 16, 43, 0.9), rgba(11, 15, 25, 0.95));
  border: 1px solid var(--border);
  border-radius: 16px 4px 16px 4px;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(0, 229, 255, 0.1) 45%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.figure-frame:hover::after {
  transform: translateX(100%);
}

.figure-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-note {
  position: relative;
  z-index: 1;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px dashed rgba(176, 196, 222, 0.35);
  border-radius: 2px 10px 2px 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
}

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

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

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

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px 14px 4px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #07101A;
  background: linear-gradient(135deg, var(--neon), #7C4DFF);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33EBFF, var(--violet));
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.32);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--neon);
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--neon);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.btn-compact {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon), var(--violet), transparent);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 2px solid var(--neon);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.timeline-marker {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.timeline-body {
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 1080px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-nav-wrap {
    display: none;
  }

  .header-nav-wrap[data-open="true"] {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 24px 18px;
    background: rgba(9, 12, 22, 0.98);
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-x: visible;
    padding: 0;
  }

  .nav-link {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--neon);
  }

  .footer-brand {
    grid-column: span 7;
  }

  .footer-links {
    grid-column: span 3;
  }

  .footer-contact {
    grid-column: span 4;
  }
}

@media (max-width: 760px) {
  .version-chip {
    display: none;
  }

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

  .brand-tagline {
    font-size: 10px;
  }

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

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

  .footer-brand,
  .footer-links,
  .footer-contact {
    grid-column: span 1;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
