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

:root {
  --yx-bg: #0A192F;
  --yx-bg-panel: #112240;
  --yx-bg-glass: #0D2137;
  --yx-accent: #00FFA3;
  --yx-highlight: #FF6B35;
  --yx-text: #E6F1FF;
  --yx-muted: #8892B0;
  --yx-border: #1D3A5F;
  --yx-font-head: 'Arial Black', 'Impact', 'Noto Sans SC', system-ui, sans-serif;
  --yx-font-body: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --yx-font-data: 'JetBrains Mono', 'Roboto Mono', monospace;
}

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

body {
  margin: 0;
  font-family: var(--yx-font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--yx-bg);
  color: var(--yx-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-family: var(--yx-font-head);
  font-weight: 900;
  line-height: 1.2;
  color: var(--yx-text);
}

p { margin: 0 0 1rem; }

a { color: var(--yx-accent); text-decoration: none; }
a:hover { color: var(--yx-accent); }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button { font-family: inherit; font-size: inherit; }

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

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

.yx-skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--yx-highlight);
  color: #0A192F;
  font-weight: 900;
  border-radius: 0 0 4px 0;
}
.yx-skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 47, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--yx-border);
}

.yx-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.yx-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.yx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.yx-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  background: var(--yx-accent);
  color: #0A192F;
  font-family: var(--yx-font-head);
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 4px;
  transform: skewX(-8deg);
  box-shadow: 0 0 12px rgba(0, 255, 163, 0.3);
}

.yx-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.yx-brand-name {
  font-family: var(--yx-font-head);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--yx-text);
}

.yx-brand-tagline {
  margin-top: 0.1rem;
  padding-left: 0.5rem;
  font-family: var(--yx-font-data);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yx-muted);
  border-left: 2px solid var(--yx-accent);
}

.yx-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--yx-font-head);
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}

.yx-btn-primary {
  background: var(--yx-accent);
  color: #0A192F;
}
.yx-btn-primary:hover {
  background: transparent;
  border-color: var(--yx-accent);
  color: var(--yx-accent);
}

.yx-btn-highlight {
  background: var(--yx-highlight);
  color: #0A192F;
}
.yx-btn-highlight:hover {
  background: transparent;
  border-color: var(--yx-highlight);
  color: var(--yx-highlight);
}

.yx-btn-ghost {
  background: transparent;
  border-color: var(--yx-border);
  color: var(--yx-text);
}
.yx-btn-ghost:hover {
  background: rgba(0, 255, 163, 0.05);
  border-color: var(--yx-accent);
  color: var(--yx-accent);
}

.yx-btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.yx-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--yx-border);
  border-radius: 4px;
  cursor: pointer;
}

.yx-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--yx-text);
  border-radius: 1px;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.yx-nav-toggle[aria-expanded="true"] .yx-nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.yx-nav-toggle[aria-expanded="true"] .yx-nav-toggle-bar:nth-child(2) { opacity: 0; }
.yx-nav-toggle[aria-expanded="true"] .yx-nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.yx-main-nav {
  border-top: 1px solid rgba(29, 58, 95, 0.6);
  background: rgba(13, 33, 55, 0.5);
}

.yx-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.yx-nav-link {
  position: relative;
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--yx-text);
  transition: color 160ms ease-out;
}

.yx-nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.55rem;
  height: 2px;
  background: var(--yx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease-out;
}

.yx-nav-link:hover,
.yx-nav-link:focus-visible {
  color: var(--yx-accent);
}

.yx-nav-link:hover::after,
.yx-nav-link:focus-visible::after {
  transform: scaleX(1);
}

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

.yx-scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yx-accent), var(--yx-highlight));
  z-index: 10;
}

.site-footer {
  margin-top: 4rem;
  background: var(--yx-bg-panel);
  border-top: 2px solid var(--yx-border);
}

.yx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.yx-footer-brand {
  display: flex;
  flex-direction: column;
}

.yx-footer-tagline {
  max-width: 34rem;
  margin-top: 1rem;
  padding-left: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--yx-muted);
  border-left: 2px solid var(--yx-highlight);
}

.yx-footer-links { display: flex; flex-direction: column; }

.yx-footer-title {
  margin: 0 0 1rem;
  font-family: var(--yx-font-head);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yx-text);
}

.yx-footer-list li {
  margin-bottom: 0.55rem;
}

.yx-footer-list a {
  color: var(--yx-muted);
  transition: color 160ms ease-out, padding-left 160ms ease-out;
}
.yx-footer-list a:hover {
  color: var(--yx-accent);
  padding-left: 0.25rem;
}

.yx-footer-contact { display: flex; flex-direction: column; }

.yx-footer-contact-list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
  color: var(--yx-muted);
}

.yx-footer-label {
  flex-shrink: 0;
  min-width: 2.5em;
  font-weight: 600;
  color: var(--yx-text);
}

.yx-footer-note {
  margin-top: 1rem;
  padding-left: 0.75rem;
  font-size: 0.85rem;
  color: var(--yx-muted);
  border-left: 2px solid var(--yx-accent);
}

.yx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--yx-muted);
  border-top: 1px solid var(--yx-border);
}

.yx-footer-copy { margin: 0; }

.yx-footer-icp { margin: 0; font-family: var(--yx-font-data); }

.yx-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.yx-section { padding-top: 4rem; padding-bottom: 4rem; }
.yx-section-sm { padding-top: 2rem; padding-bottom: 2rem; }
.yx-section-dark { background: var(--yx-bg-panel); }

.yx-grid {
  display: grid;
  gap: 1.5rem;
}

.yx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.yx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.yx-grid-main { grid-template-columns: 7fr 5fr; }

.yx-grid-main > *:last-child {
  padding: 1.5rem;
  background: var(--yx-bg-panel);
  border: 1px solid var(--yx-border);
}

.yx-card {
  padding: 1.5rem;
  background: var(--yx-bg-panel);
  border: 1px solid var(--yx-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease-out, transform 160ms ease-out;
}
.yx-card:hover {
  border-color: var(--yx-accent);
  transform: translateY(-2px);
}
.yx-card-accent { border-top: 2px solid var(--yx-accent); }

.yx-frame {
  position: relative;
  padding: 1.5rem;
  background: var(--yx-bg-panel);
  border: 1px solid var(--yx-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.yx-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(29, 58, 95, 0.6);
  pointer-events: none;
  z-index: 0;
}
.yx-frame > * { position: relative; z-index: 1; }

.yx-data {
  font-family: var(--yx-font-data);
  font-variant-numeric: tabular-nums;
  color: var(--yx-accent);
}

.yx-data-large {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.yx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--yx-font-data);
  font-size: 0.75rem;
  color: var(--yx-muted);
  background: var(--yx-bg-glass);
  border: 1px solid var(--yx-border);
  border-radius: 999px;
}
.yx-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--yx-accent);
  box-shadow: 0 0 6px var(--yx-accent);
}

.yx-stat {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(13, 33, 55, 0.6);
  border-left: 2px solid var(--yx-accent);
}

.yx-stat-value {
  font-family: var(--yx-font-data);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--yx-accent);
}

.yx-stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--yx-muted);
}

.yx-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--yx-bg-panel);
  border: 1px solid var(--yx-border);
  border-radius: 4px;
}
.yx-media-ratio-wide { aspect-ratio: 21 / 9; }
.yx-media-ratio-portrait { aspect-ratio: 3 / 4; }
.yx-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yx-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--yx-font-data);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--yx-muted);
  background: linear-gradient(135deg, var(--yx-bg-panel), var(--yx-bg-glass));
}

.yx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--yx-muted);
}

.yx-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.yx-breadcrumb li + li::before {
  content: "/";
  color: var(--yx-border);
}
.yx-breadcrumb a {
  color: var(--yx-muted);
}
.yx-breadcrumb a:hover {
  color: var(--yx-accent);
}

.yx-kicker {
  margin-bottom: 0.5rem;
  font-family: var(--yx-font-data);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yx-accent);
}

.yx-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.yx-section-lead {
  max-width: 40rem;
  font-size: 1.05rem;
  color: var(--yx-muted);
}

@media (max-width: 991px) {
  .site-header {
    background: rgba(10, 25, 47, 0.95);
  }

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

  .yx-main-nav {
    display: none;
    background: var(--yx-bg-glass);
    border-top: 1px solid var(--yx-border);
  }

  .yx-main-nav[data-open] {
    display: block;
  }

  .yx-nav-list {
    flex-direction: column;
  }

  .yx-nav-link {
    padding: 1rem 0.9rem;
    border-bottom: 1px solid rgba(29, 58, 95, 0.5);
  }
  .yx-nav-link::after {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0;
  }

  .yx-grid-main,
  .yx-grid-3 {
    grid-template-columns: 1fr;
  }

  .yx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .yx-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .yx-header-top {
    padding: 0.7rem 0;
  }

  .yx-brand-name {
    font-size: 1.15rem;
  }

  .yx-grid-2 {
    grid-template-columns: 1fr;
  }

  .yx-footer-grid {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .yx-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .yx-brand-tagline {
    display: none;
  }

  .yx-header-actions .yx-btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
}
