:root {
  --bg: #080F1E;
  --panel: #0D2B45;
  --primary: #00E88F;
  --secondary: #7B2FF7;
  --accent: #FF7A00;
  --data: #00C2FF;
  --text: #F7F9FC;
  --muted: #8892B0;
  --font-title: "Impact", "Arial Black", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --radius: 2px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(123, 47, 247, 0.16), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(0, 232, 143, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

#main-content {
  min-height: 60vh;
  scroll-margin-top: var(--header-h);
}

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

h1, h2, h3 {
  margin: 0 0 0.45em;
  font-family: var(--font-title);
  line-height: 1.1;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

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

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
}

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

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

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

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-300%);
  transition: transform 0.16s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.72), rgba(8, 15, 30, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.is-scrolled .site-header {
  background: rgba(8, 15, 30, 0.96);
  border-bottom-color: rgba(0, 232, 143, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.nav-open .site-header {
  background: rgba(8, 15, 30, 0.98);
  border-bottom-color: rgba(0, 232, 143, 0.18);
}

.header-inner {
  max-width: 1440px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

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

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1;
  transform: rotate(-6deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(0, 232, 143, 0.55);
  transform: translate(3px, 3px);
  transition: transform 0.16s ease;
}

.brand:hover .brand-mark::after {
  transform: translate(5px, 5px);
}

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

.brand-cn {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-en {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-item {
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

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

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

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

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

.header-actions {
  position: relative;
  z-index: 1060;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--bg);
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  background: #00FFA4;
  border-color: #00FFA4;
  color: var(--bg);
  box-shadow: 0 0 22px rgba(0, 232, 143, 0.25);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 232, 143, 0.1);
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: #8A45FF;
  border-color: #8A45FF;
  color: #fff;
  box-shadow: 0 0 22px rgba(123, 47, 247, 0.35);
}

.btn-cta {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.btn-cta:hover {
  background: #8A45FF;
  border-color: #8A45FF;
  color: #fff;
  box-shadow: 0 0 24px rgba(123, 47, 247, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(0, 232, 143, 0.3);
  border-radius: var(--radius);
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transform-origin: center;
  transition: transform 0.16s ease, opacity 0.16s 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);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 5;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: min(82vw, 360px);
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 88px 24px 32px;
    background: rgba(8, 15, 30, 0.98);
    border-left: 1px solid rgba(0, 232, 143, 0.22);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(102%);
    transition: transform 0.24s ease, visibility 0.24s;
  }

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

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

  .nav-item + .nav-item {
    border-top: 1px solid rgba(137, 146, 176, 0.12);
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    padding-left: 12px;
    border-left: 3px solid var(--primary);
  }

  .header-actions {
    gap: 8px;
  }

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

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

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

  .brand-en {
    display: none;
  }

  .btn-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  background: linear-gradient(180deg, #0A1428 0%, #080F1E 100%);
  border-top: 1px solid rgba(0, 232, 143, 0.18);
}

.site-footer::before {
  content: "LEYOU SPORTS";
  position: absolute;
  top: 12px;
  right: -8px;
  font-family: var(--font-title);
  font-size: clamp(64px, 13vw, 160px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 40px) 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

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

.footer-tagline {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-nav-title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.footer-nav-list,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list {
  display: grid;
  gap: 10px;
}

.footer-nav-list a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.footer-nav-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-nav-list a[aria-current="page"] {
  color: var(--primary);
}

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

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--primary);
  transform: rotate(45deg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(137, 146, 176, 0.12);
}

.footer-copyright {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--primary);
}

.footer-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

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

  .footer-meta {
    margin-left: 0;
  }
}

/* Shared content components */
.container,
.container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.container {
  max-width: 1200px;
}

.container-wide {
  max-width: 1440px;
}

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.section-note {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-hero::before {
  content: "LEYOU";
  position: absolute;
  top: calc(var(--header-h) + 24px);
  right: 0;
  font-family: var(--font-title);
  font-size: clamp(80px, 16vw, 180px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
}

.page-title {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.page-lead {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 6px 0 2px;
  color: var(--primary);
}

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

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

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

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid-2 {
  grid-template-columns: repeat(2, 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: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(137, 146, 176, 0.16);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  opacity: 0.8;
}

.card:hover {
  border-color: rgba(0, 232, 143, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 232, 143, 0.12), 0 18px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.data-line {
  height: 2px;
  margin: 24px 0;
  border: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--data) 45%, transparent 70%);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border: 1px solid rgba(137, 146, 176, 0.16);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 232, 143, 0.1), transparent 40%, rgba(123, 47, 247, 0.14));
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-frame:hover img {
  transform: scale(1.02);
}

.stat-card {
  display: grid;
  gap: 8px;
}

.stat-value {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Reveal motion */
html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html[data-js] [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

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

  html[data-js] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-toggle-line {
    transition: none;
  }
}
