/* ================================================================
   乐游竞界 · 全站共享样式
   ================================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink);
  background-color: var(--c-cream);
  background-image:
    linear-gradient(rgba(10, 28, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 28, 58, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

img { max-width: 100%; display: block; }
ul[class], ol[class] { list-style: none; }
a { color: var(--c-navy); text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

/* ---------- Variables ---------- */
:root {
  --c-navy: #0A1C3A;
  --c-neon: #B8FF00;
  --c-orange: #FF3D00;
  --c-cream: #F4F1EA;
  --c-mist: #E8EDF2;
  --c-ink: #1A1D21;
  --c-gray: #64748B;
  --c-signal: #34D399;

  --font-headline: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-data: "DIN Alternate", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --header-z: 1000;
  --container-max: 1240px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-navy);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }

/* ---------- Container ---------- */
.lt-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---------- Section ---------- */
.lt-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.lt-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.lt-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.lt-section__title::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--c-orange) 50%, var(--c-neon) 50%);
  transform: skewX(-15deg);
}

.lt-section__desc {
  max-width: 56ch;
  font-size: 0.95rem;
  color: var(--c-gray);
  line-height: 1.75;
}

/* ---------- Grid ---------- */
.lt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .lt-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 1280px) {
  .lt-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--c-navy);
  background: transparent;
  color: var(--c-navy);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lt-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.lt-btn:hover { transform: translateY(-2px); }

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

.lt-btn--accent {
  background: var(--c-neon);
  border-color: var(--c-neon);
  color: var(--c-navy);
}

.lt-btn--accent:hover {
  box-shadow: 0 8px 24px rgba(184, 255, 0, 0.3);
}

.lt-btn--outline {
  border-color: var(--c-neon);
  color: var(--c-neon);
}

.lt-btn--outline:hover {
  background: var(--c-neon);
  color: var(--c-navy);
  border-color: var(--c-neon);
}

.lt-btn--ghost {
  border-color: rgba(244, 241, 234, 0.35);
  color: var(--c-cream);
}

.lt-btn--ghost:hover {
  background: rgba(244, 241, 234, 0.12);
}

/* ---------- Breadcrumb ---------- */
.lt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--c-gray);
}

.lt-breadcrumb__sep { opacity: 0.4; }

.lt-breadcrumb a {
  color: var(--c-gray);
  transition: color 0.2s ease;
}

.lt-breadcrumb a:hover { color: var(--c-navy); }

.lt-breadcrumb [aria-current="page"] {
  color: var(--c-navy);
  font-weight: 600;
}

/* ---------- Card ---------- */
.lt-card {
  position: relative;
  background: var(--c-cream);
  border: 1px solid rgba(10, 28, 58, 0.12);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 28, 58, 0.12);
}

.lt-card--dark {
  background: var(--c-navy);
  color: var(--c-cream);
  border-color: transparent;
}

.lt-card--cut::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 30px solid var(--c-orange);
  border-left: 30px solid transparent;
}

.lt-card__title { margin-bottom: 0.75rem; }

.lt-card__body {
  color: var(--c-gray);
  line-height: 1.75;
}

.lt-card--dark .lt-card__body { color: rgba(244, 241, 234, 0.72); }

.lt-card__foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 28, 58, 0.1);
}

.lt-card--dark .lt-card__foot { border-top-color: rgba(244, 241, 234, 0.14); }

/* ---------- Tag ---------- */
.lt-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--c-cream);
  color: var(--c-navy);
  border: 1px solid rgba(10, 28, 58, 0.15);
}

.lt-tag--hot {
  background: var(--c-orange);
  color: #fff;
  border-color: transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.lt-tag--data {
  background: var(--c-neon);
  color: var(--c-navy);
  border-color: transparent;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Data ---------- */
.lt-data {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c-navy);
}

.lt-data--alert { color: var(--c-orange); }

.lt-card--dark .lt-data { color: var(--c-neon); }

/* ---------- Panel ---------- */
.lt-panel {
  position: relative;
  background: var(--c-mist);
  border: 1px solid rgba(10, 28, 58, 0.12);
  padding: 2rem 1.75rem 1.75rem;
  margin-bottom: 1.5rem;
}

.lt-panel__label {
  position: absolute;
  top: 0;
  left: 1.25rem;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--c-navy);
  color: var(--c-neon);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  box-shadow: 3px 3px 0 rgba(10, 28, 58, 0.2);
}

/* ---------- Media ---------- */
.lt-media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--c-mist);
  background-image:
    linear-gradient(45deg, rgba(10, 28, 58, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(10, 28, 58, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(10, 28, 58, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(10, 28, 58, 0.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.lt-media::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.lt-media--16x9::before { padding-bottom: 56.25%; }
.lt-media--4x3::before { padding-bottom: 75%; }
.lt-media--square::before { padding-bottom: 100%; }

.lt-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Header ---------- */
.lt-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--c-navy);
  color: var(--c-cream);
}

.lt-skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: calc(var(--header-z) + 10);
  background: var(--c-neon);
  color: var(--c-navy);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

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

.lt-scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: calc(var(--header-z) + 5);
  background: linear-gradient(90deg, var(--c-neon) 0%, var(--c-orange) 100%);
  pointer-events: none;
}

.lt-header__utilities {
  max-height: 80px;
  background: #060F20;
  border-bottom: 1px solid rgba(184, 255, 0, 0.18);
  transition: max-height 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
}

.lt-header__utilities-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: rgba(244, 241, 234, 0.7);
}

.lt-header__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lt-header__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-signal);
  animation: lt-pulse 2s infinite;
}

@keyframes lt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.lt-header__utility-link {
  color: rgba(244, 241, 234, 0.8);
  transition: color 0.2s ease;
}

.lt-header__utility-link:hover { color: var(--c-neon); }

.lt-header__masthead {
  max-height: 200px;
  background-image:
    linear-gradient(115deg, rgba(184, 255, 0, 0.07) 0%, transparent 35%),
    linear-gradient(rgba(184, 255, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 0, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  transition: max-height 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
}

.lt-header__masthead-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 0;
}

.lt-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.lt-brand__name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--c-cream);
  transition: color 0.2s ease;
}

.lt-brand__name::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  background: var(--c-neon);
  transform: skewX(-20deg);
  vertical-align: middle;
}

.lt-brand:hover .lt-brand__name { color: var(--c-neon); }

.lt-brand__tagline {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-neon);
}

.lt-nav-toggle {
  display: none;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.06);
  transition: background 0.2s ease;
}

.lt-nav-toggle:hover { background: rgba(184, 255, 0, 0.15); }

.lt-nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-neon);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ---------- Nav ---------- */
.lt-nav {
  background: #0D2043;
  border-top: 1px solid rgba(184, 255, 0, 0.22);
  border-bottom: 2px solid var(--c-neon);
}

.lt-nav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.lt-nav__link {
  display: block;
  position: relative;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.82);
  transition: color 0.2s ease;
}

.lt-nav__link::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0;
  height: 3px;
  background: var(--c-neon);
  transform: skewX(-30deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.lt-nav__link:hover,
.lt-nav__link[aria-current="page"] { color: var(--c-neon); }

.lt-nav__link:hover::after,
.lt-nav__link[aria-current="page"]::after { transform: skewX(-30deg) scaleX(1); }

/* ---------- Header collapse ---------- */
.lt-header[data-collapsed] {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.lt-header[data-collapsed] .lt-header__utilities {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-bottom-color: transparent;
}

.lt-header[data-collapsed] .lt-header__masthead {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-bottom-color: transparent;
}

/* ---------- Footer ---------- */
.lt-footer {
  position: relative;
  background: var(--c-navy);
  color: rgba(244, 241, 234, 0.8);
  font-size: 0.95rem;
}

.lt-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-neon) 0%, var(--c-orange) 60%, transparent 100%);
  z-index: 1;
}

.lt-footer__top {
  padding: 3rem 0 2.5rem;
}

.lt-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.lt-footer__logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--c-cream);
  transition: color 0.2s ease;
}

.lt-footer__logo::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 4px;
  background: var(--c-neon);
  transform: skewX(-20deg);
}

.lt-footer__logo:hover { color: var(--c-neon); }

.lt-footer__about {
  margin-top: 1rem;
  max-width: 30em;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.65);
}

.lt-footer__trust {
  margin-top: 0.8rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--c-orange);
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.5);
}

.lt-footer__heading {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-neon);
}

.lt-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--c-orange);
}

.lt-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lt-footer__links a {
  display: inline-block;
  color: rgba(244, 241, 234, 0.7);
  transition: color 0.2s ease, transform 0.2s ease;
}

.lt-footer__links a:hover {
  color: var(--c-neon);
  transform: translateX(4px);
}

.lt-footer__contact p {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.7);
}

.lt-footer__note {
  margin-top: 0.8rem !important;
  font-size: 0.8rem;
  color: rgba(244, 241, 234, 0.45);
}

.lt-footer__bar {
  background: #060F20;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(184, 255, 0, 0.15);
}

.lt-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: rgba(244, 241, 234, 0.55);
}

/* ---------- Back to top ---------- */
.lt-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(184, 255, 0, 0.4);
  background: var(--c-navy);
  color: var(--c-neon);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.lt-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lt-back-top:hover {
  background: var(--c-neon);
  color: var(--c-navy);
}

.lt-back-top__arrow {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lt-back-top:hover .lt-back-top__arrow {
  transform: translateY(-2px);
}

/* ---------- Reveal ---------- */
.lt-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lt-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .lt-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .lt-brand__name { font-size: 1.8rem; }
  .lt-brand__tagline { font-size: 0.6rem; letter-spacing: 0.12em; }

  .lt-nav__link {
    padding: 0.8rem 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 767px) {
  html { font-size: 15px; }

  .lt-header { position: relative; }

  .lt-header[data-collapsed] {
    box-shadow: none;
  }

  .lt-header[data-collapsed] .lt-header__utilities,
  .lt-header[data-collapsed] .lt-header__masthead {
    max-height: none;
    opacity: 1;
    overflow: visible;
    border-bottom-width: 1px;
  }

  .lt-header__masthead-inner {
    justify-content: space-between;
    padding: 1.2rem 0;
  }

  .lt-brand__name { font-size: 1.7rem; letter-spacing: 0.08em; }
  .lt-brand__tagline { font-size: 0.56rem; letter-spacing: 0.08em; }

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

  .lt-nav {
    max-height: 0;
    overflow: hidden;
    border-bottom-width: 0;
    transition: max-height 0.35s ease, border-bottom-width 0.3s ease;
  }

  .lt-nav[data-open] {
    max-height: 420px;
    border-bottom-width: 2px;
  }

  .lt-nav__list {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .lt-nav__link {
    padding: 0.9rem 1.25rem;
    text-align: center;
  }

  .lt-nav__link::after {
    display: none;
  }

  .lt-nav__link[aria-current="page"] {
    background: rgba(184, 255, 0, 0.12);
  }

  .lt-header__utility-link {
    display: none;
  }
}

@media (max-width: 639px) {
  .lt-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .lt-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lt-back-top {
    width: 42px;
    height: 42px;
    right: 1rem;
    bottom: 1rem;
  }
}

/* ---------- 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;
  }

  .lt-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
