/* ==========================================================
   site.css — 乐竞体育全站共享样式
   设计内核：电竞数据驾驶舱 / 侧轨胶囊 / 青橙双色节奏
   ========================================================== */

/* ---------- 1. Reset & Variables ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0A0E14;
  --bg-panel: #141B24;
  --bg-elev: #1A2330;
  --cyan: #00E5FF;
  --orange: #FF6A00;
  --gold: #FFC107;
  --text-main: #E6E8EB;
  --text-sub: #8A93A0;
  --line: #1F2733;

  --font-head: 'Montserrat', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Syne', sans-serif;
  --font-num: 'Roboto Mono', 'JetBrains Mono', monospace;

  --header-w: 240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 82% 18%, rgba(0, 229, 255, 0.055), transparent 58%),
    radial-gradient(ellipse at 12% 86%, rgba(255, 106, 0, 0.045), transparent 52%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(0, 229, 255, 0.25);
  color: #fff;
}

/* ---------- 2. Typography & Utilities ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
}

.num {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

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

.text-center {
  text-align: center;
}

/* ---------- 3. Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.section-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  position: relative;
  padding-left: 36px;
}

.section-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 60ch;
  line-height: 1.8;
}

/* ---------- 4. Grid System ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ---------- 5. Panel & Image Frame ---------- */
.panel {
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.panel-accent {
  border-top: 3px solid var(--cyan);
}

.panel-accent-warm {
  border-top: 3px solid var(--orange);
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  min-height: 120px;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(0, 229, 255, 0.028) 14px,
    rgba(0, 229, 255, 0.028) 15px
  );
}

.image-frame::after {
  content: "IMG";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-sub);
  letter-spacing: 0.3em;
}

/* ---------- 6. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 0.8125rem;
  color: var(--text-sub);
  padding: 16px 0 8px;
}

.breadcrumb a {
  color: var(--cyan);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--text-sub);
  border-right: 1px solid var(--text-sub);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #FF8A00 0%, var(--orange) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 106, 0, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 106, 0, 0.38);
  filter: brightness(1.08);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 106, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: var(--header-w);
  height: 100vh;
  padding: 16px;
  pointer-events: none;
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 20px 24px;
  background: rgba(20, 27, 36, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  pointer-events: auto;
}

.header-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  opacity: 0.7;
}

.header-inner::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 70%);
  pointer-events: none;
}

/* ---------- 9. Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 106, 0, 0.1));
  color: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

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

.brand-name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-family: var(--font-num);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- 10. Navigation ---------- */
.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--cyan);
  border-radius: 0 3px 3px 0;
  transition: height var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link[aria-current="page"],
.nav-link[aria-current="true"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.09);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before,
.nav-link[aria-current="true"]::before {
  height: 20px;
}

.nav-cta {
  margin-top: 8px;
  width: 100%;
}

/* ---------- 11. Nav Toggle ---------- */
.nav-toggle {
  display: none;
}

/* ---------- 12. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  padding: 12px 24px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 12px;
  text-decoration: none;
  transition: top var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 13. Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
  pointer-events: none;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
  opacity: 0.5;
  z-index: 1;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -8%;
  width: 55%;
  height: 220%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 36px,
    rgba(0, 229, 255, 0.018) 36px,
    rgba(0, 229, 255, 0.018) 37px
  );
  pointer-events: none;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) 28px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 48px;
}

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

.footer-trust {
  color: var(--text-sub);
  font-size: 0.9375rem;
  line-height: 1.85;
  max-width: 42ch;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  color: var(--text-sub);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.footer-link-list a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-sub);
  transition: all var(--transition-fast);
}

.footer-link-list a:hover {
  color: var(--cyan);
  padding-left: 6px;
}

.footer-link-list a:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.contact-line {
  color: var(--text-sub);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.contact-note {
  color: var(--text-sub);
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 0.8125rem;
  color: var(--text-sub);
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-summary {
  font-family: var(--font-body);
  font-size: 0.8125rem;
}

/* ---------- 15. Desktop Layout Offset ---------- */
@media (min-width: 1024px) {
  body {
    padding-left: var(--header-w);
  }
}

/* ---------- 16. Tablet & Mobile Responsive ---------- */
@media (max-width: 1023px) {
  .site-header {
    width: 100%;
    height: 64px;
    padding: 0;
    background: rgba(10, 14, 20, 0.88);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
  }

  .header-inner {
    height: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 20px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .header-inner::before,
  .header-inner::after {
    display: none;
  }

  .header-inner .brand-name {
    font-size: 1rem;
  }

  .header-inner .brand-sub {
    font-size: 0.5625rem;
  }

  .header-inner .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .header-inner .brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 1005;
    width: min(340px, 86vw);
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    background: rgba(20, 27, 36, 0.97);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-right: 1px solid var(--line);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--orange));
    opacity: 0.6;
  }

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

  .site-nav .nav-list {
    flex: 1;
    gap: 4px;
  }

  .site-nav .nav-link {
    font-size: 1rem;
    padding: 14px 16px;
  }

  .nav-cta {
    margin-top: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    transition: all var(--transition-fast);
  }

  .nav-toggle:hover {
    border-color: rgba(0, 229, 255, 0.4);
  }

  .nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s 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;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

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

  .footer-brand {
    padding-bottom: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-link-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .footer-link-list a::before {
    display: none;
  }
}

/* ---------- 17. Reduced Motion ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .site-nav {
    transition: none !important;
  }

  .scroll-progress {
    box-shadow: none;
  }

  .panel:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ---------- 18. Focus-visible refinements ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.footer-link-list a:focus-visible {
  outline-color: var(--cyan);
  outline-offset: 2px;
}
