:root {
  --bg-primary: #0a0e14;
  --bg-dark: #070a0f;
  --accent-green: #39ff88;
  --accent-blue: #00d4ff;
  --accent-orange: #ff7a1a;
  --text-primary: #e6eaef;
  --text-secondary: #9aa7b5;
  --border-dark: #1c2633;
  --gradient-blue-green: linear-gradient(90deg, #00d4ff 0%, #39ff88 100%);
  --font-title: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-body: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --container: 1280px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --clip-corner: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

* {
  margin: 0;
  padding: 0;
}

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

html.nav-locked {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.015) 1px, transparent 1px);
  background-size: 96px 100%, 120px 100%;
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

ul, ol {
  list-style: none;
}

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

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

p {
  margin-bottom: 16px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.95em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10002;
  padding: 12px 24px;
  background: var(--accent-green);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

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

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

#main-content {
  min-height: 60vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1.2;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--accent-green);
  color: var(--bg-primary);
  clip-path: var(--clip-corner);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

.btn:active {
  transform: translateY(1px);
}

.btn--outline {
  background: transparent;
  color: var(--accent-blue);
  box-shadow: inset 0 0 0 1px var(--accent-blue);
}

.btn--outline:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-green);
  box-shadow: inset 0 0 0 1px var(--accent-green);
}

.breadcrumb {
  margin-bottom: 32px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.breadcrumb__link {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--accent-green);
}

.breadcrumb__current {
  color: var(--text-primary);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
}

.tag--hot {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.tag--live {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.card {
  position: relative;
  background: rgba(28, 38, 51, 0.35);
  border: 1px solid var(--border-dark);
  padding: 24px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 2px;
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  transition: left 0.45s var(--ease);
  pointer-events: none;
}

.card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.15);
}

.card:hover::after {
  left: 110%;
}

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

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

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

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

@media (max-width: 1023px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.divider {
  height: 1px;
  background: var(--border-dark);
  border: none;
  margin: 32px 0;
}

.divider--gradient {
  height: 2px;
  background: var(--gradient-blue-green);
  border: none;
  opacity: 0.6;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 0.8em;
  background: var(--accent-green);
  transform: skew(-15deg);
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-left: 14px;
  line-height: 1.6;
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--border-dark);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(57, 255, 136, 0.1));
  pointer-events: none;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

.img-frame--tall {
  aspect-ratio: 3 / 4;
}

.img-frame--square {
  aspect-ratio: 1 / 1;
}

.img-frame--stats {
  background:
    radial-gradient(circle at 15% 25%, rgba(0, 212, 255, 0.12), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(57, 255, 136, 0.08), transparent 40%),
    linear-gradient(rgba(28, 38, 51, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 38, 51, 0.6) 1px, transparent 1px),
    var(--bg-dark);
  background-size: auto, auto, 20px 20px, 20px 20px, auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: relative;
  background:
    linear-gradient(rgba(28, 38, 51, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 38, 51, 0.25) 1px, transparent 1px),
    var(--bg-primary);
  background-size: 32px 32px, 32px 32px, auto;
  border-bottom: 1px solid var(--border-dark);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue-green);
  z-index: 2;
}

.header-inner {
  display: flex;
  flex-direction: column;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding-block: 8px;
  padding-right: 56px;
  position: relative;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 6px rgba(57, 255, 136, 0.4));
}

.brand-name {
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  transition: color 0.2s var(--ease);
}

.header-brand:hover .brand-name {
  color: var(--accent-green);
}

.header-tagline {
  display: none;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  white-space: nowrap;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .header-tagline {
    display: block;
  }

  .header-top {
    padding-right: 0;
  }
}

.nav-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10002;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--accent-green);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 18px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent-green);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-toggle-line:nth-child(2) {
  background: var(--accent-blue);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-green);
}

.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);
  background: var(--accent-green);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  padding: 84px 28px 40px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 80% 90%, rgba(0, 212, 255, 0.08), transparent 55%),
    var(--bg-primary);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.site-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue-green);
}

.site-nav[data-open] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .site-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    border-top: 1px solid var(--border-dark);
  }

  .site-nav::before {
    display: none;
  }
}

.nav-layer-info {
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.nav-statement {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.nav-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-green);
  letter-spacing: 0.06em;
}

@media (min-width: 1024px) {
  .nav-layer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-statement {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 56%;
  }

  .nav-meta {
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  border-bottom: 1px solid var(--border-dark);
}

.nav-link {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--accent-green);
  padding-left: 12px;
}

.nav-link[aria-current='page'] {
  color: var(--accent-green);
  border-left: 3px solid var(--accent-green);
  padding-left: 16px;
}

@media (min-width: 1024px) {
  .nav-list {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: none;
    flex: 0 0 auto;
  }

  .nav-link {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    border-left: none;
    padding-left: 20px;
  }

  .nav-link:hover {
    color: var(--accent-green);
    padding-left: 20px;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-blue-green);
    transition: width 0.3s var(--ease), left 0.3s var(--ease);
  }

  .nav-link:hover::after,
  .nav-link[aria-current='page']::after {
    left: 0;
    width: 100%;
  }

  .nav-link[aria-current='page'] {
    color: var(--accent-green);
    border-left: none;
    padding-left: 20px;
  }
}

.site-footer {
  position: relative;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  margin-top: var(--space-7);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue-green);
}

.footer-inner {
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1.4fr 0.9fr 1.1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-blue-green);
  color: var(--bg-primary);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 15px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  transition: color 0.2s var(--ease);
}

.footer-brand:hover .footer-brand-name {
  color: var(--accent-green);
}

.footer-tagline {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-green);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent-green);
}

.footer-about-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--accent-green);
  padding-left: 6px;
}

.footer-contact-list li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
  word-break: break-all;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-trust {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-green);
  padding-left: 12px;
  margin-bottom: 0;
}

.footer-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .card::after {
    display: none;
  }
}
