/* AYX · 爱游戏体育 —— /assets/site.css */

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

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

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

address {
  font-style: normal;
}

/* Design tokens */
:root {
  color-scheme: dark;
  --c-bg: #0B1E36;
  --c-bg-2: #13325C;
  --c-primary: #1E4E8C;
  --c-accent: #4A7FC1;
  --c-ice: #B8D4F0;
  --c-lime: #C6F432;
  --c-orange: #FF6B1A;
  --c-paper: #F4F8FF;
  --c-ink: #04101F;
  --c-text: #EAF3FD;
  --c-text-dim: #A9C3DE;
  --font-display: "Archivo Black", "DIN Condensed", "Noto Sans SC", sans-serif;
  --font-base: "Inter", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", sans-serif;
  --container: 1200px;
}

/* Base */
body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 88% 8%, rgba(30, 78, 140, 0.34) 0, transparent 38%),
    radial-gradient(circle at 4% 84%, rgba(19, 50, 92, 0.52) 0, transparent 46%),
    linear-gradient(180deg, #0B1E36 0%, #091A2F 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--c-lime);
  color: var(--c-ink);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 210;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--c-lime);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  width: 100%;
  height: 3px;
  background: var(--c-lime);
  box-shadow: 0 0 12px rgba(198, 244, 50, 0.4);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Floating capsule header */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 32px);
  max-width: var(--container);
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(11, 30, 54, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(74, 127, 193, 0.36);
  box-shadow: 0 12px 36px rgba(4, 16, 31, 0.48);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--c-lime);
  background: var(--c-ink);
  border-radius: 4px 1px 6px 1px;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: rgba(184, 212, 240, 0.3);
}

.brand-text {
  font-family: var(--font-base);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--c-paper);
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-ice);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--c-lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.15s ease;
}

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

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

.nav-link[aria-current="page"] {
  color: var(--c-ink);
  background: var(--c-lime);
}

.nav-link[aria-current="page"]::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(74, 127, 193, 0.4);
  border-radius: 999px;
  background: transparent;
}

.toggle-bar {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ice);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

[data-open="true"] .toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

[data-open="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

[data-open="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Main spacing */
.main-content {
  padding-top: 112px;
}

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

.section {
  padding-block: 72px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lime {
  background: var(--c-lime);
  color: var(--c-ink);
}

.btn-lime:hover,
.btn-lime:focus-visible {
  box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.24);
}

.btn-orange {
  background: var(--c-orange);
  color: var(--c-ink);
}

.btn-orange:hover,
.btn-orange:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.24);
}

.btn-ghost {
  background: transparent;
  color: var(--c-paper);
  border-color: rgba(74, 127, 193, 0.65);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--c-lime);
  border-color: var(--c-lime);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 24px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-text-dim);
}

.breadcrumb a {
  color: var(--c-ice);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-lime);
}

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

.crumb-sep {
  color: var(--c-accent);
}

/* Grid */
.grid {
  display: grid;
  gap: 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));
}

/* Cards */
.card,
.card-dark,
.card-glass {
  padding: 26px;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card {
  background: var(--c-paper);
  color: var(--c-ink);
  border: 1px solid transparent;
}

.card-dark {
  background: var(--c-bg-2);
  color: var(--c-text);
  border: 1px solid rgba(74, 127, 193, 0.35);
}

.card-glass {
  background: rgba(19, 50, 92, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--c-text);
  border: 1px solid rgba(74, 127, 193, 0.28);
}

.card:hover,
.card-dark:hover,
.card-glass:hover {
  border-color: rgba(198, 244, 50, 0.5);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(74, 127, 193, 0.18);
  border: 1px solid rgba(74, 127, 193, 0.45);
  color: var(--c-ice);
}

.chip-lime {
  background: var(--c-lime);
  border-color: var(--c-lime);
  color: var(--c-ink);
}

.chip-orange {
  background: rgba(255, 107, 26, 0.14);
  border-color: rgba(255, 107, 26, 0.55);
  color: var(--c-orange);
}

/* Media placeholders */
.media-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--c-bg-2);
  background-image: repeating-linear-gradient(-55deg, rgba(74, 127, 193, 0.08) 0 2px, transparent 2px 12px);
  border: 1px solid rgba(74, 127, 193, 0.34);
  border-radius: 4px;
}

.media-frame::before {
  content: attr(data-label);
  padding: 8px 12px;
  border-radius: 2px;
  background: rgba(4, 16, 31, 0.42);
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ice);
}

.media-frame::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 42%;
  height: 64%;
  border-left: 2px solid rgba(198, 244, 50, 0.5);
  transform: rotate(-16deg);
  opacity: 0.7;
  pointer-events: none;
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.media-frame:has(img)::before,
.media-frame:has(img)::after {
  display: none;
}

.media-16x9 {
  aspect-ratio: 16 / 9;
}

.media-4x3 {
  aspect-ratio: 4 / 3;
}

.media-1x1 {
  aspect-ratio: 1 / 1;
}

.media-3x4 {
  aspect-ratio: 3 / 4;
}

/* Speed lines and slash accent */
.speed-lines {
  position: relative;
}

.speed-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-55deg, transparent 0 11px, rgba(74, 127, 193, 0.09) 11px 12px);
  pointer-events: none;
}

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

.slash-accent {
  display: inline-block;
  width: 38px;
  height: 5px;
  background: var(--c-lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-ice);
  border-top: 1px solid rgba(74, 127, 193, 0.3);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(30, 78, 140, 0.18) 0, transparent 50%),
    repeating-linear-gradient(-55deg, transparent 0 12px, rgba(74, 127, 193, 0.045) 12px 13px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  padding-block: 64px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 0.9fr 1.4fr;
  gap: 32px 48px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.brand-footer .brand-mark {
  font-size: 14px;
  padding: 6px 8px;
}

.brand-footer .brand-text {
  font-size: 16px;
}

.footer-tagline {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-dim);
}

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

.footer-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.footer-nav a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--c-ice);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--c-lime);
  border-bottom-color: var(--c-lime);
}

.footer-contact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-ice);
  word-break: break-word;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(74, 127, 193, 0.24);
  font-size: 13px;
  color: var(--c-text-dim);
}

.footer-icp {
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    border-radius: 18px;
    padding: 10px 12px;
  }

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

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(74, 127, 193, 0.22);
  }

  .site-nav .nav-link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

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

  [data-open="true"] .site-nav {
    display: flex;
  }

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

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

@media (max-width: 600px) {
  .site-header {
    top: 12px;
    width: calc(100% - 20px);
  }

  .brand-text {
    font-size: 15px;
  }

  .main-content {
    padding-top: 96px;
  }

  .section {
    padding-block: 48px;
  }

  .container {
    padding-inline: 18px;
  }

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

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

  .footer-inner {
    padding-block: 48px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px 0;
  }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .skip-link {
    transition: none;
  }
}
