/* =============================================================
   LEYU手机中文站 /assets/site.css
   设计基调：深空蓝 × 亮橙 × 渐变紫 · 电竞场馆数据看台
   ============================================================= */

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
}

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

/* ---------- CSS Variables ---------- */
:root {
  --color-space: #0B1B2B;
  --color-orange: #FF6B35;
  --color-purple: #7B2FBE;
  --color-cream: #F5EFE6;
  --color-ink: #1A1A1A;
  --color-alert: #FF4D4D;
  --color-steel: #2C4F6E;
  --color-cyan: #E0F7FA;
  --color-space-deep: #07121D;
  --font-head: "Arial Black", "DIN Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container-w: 1200px;
  --radius-cut: 2px 14px 2px 14px;
  --shadow-soft: 0 10px 30px rgba(2, 10, 20, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1100px 500px at 85% -120px, rgba(123, 47, 190, .28), transparent 65%),
    radial-gradient(800px 420px at -10% 18%, rgba(44, 79, 110, .35), transparent 60%),
    var(--color-space);
  color: #CBD7E3;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 90;
  pointer-events: none;
  opacity: .18;
}

body::before {
  left: 0;
  background: repeating-linear-gradient(to bottom, var(--color-orange) 0 1px, transparent 1px 14px);
}

body::after {
  right: 0;
  background: repeating-linear-gradient(to bottom, var(--color-cyan) 0 1px, transparent 1px 14px);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
}

h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

.text-orange { color: var(--color-orange); }

.text-gradient {
  background: linear-gradient(92deg, var(--color-orange) 10%, var(--color-purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Accessibility Helpers ---------- */
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 300;
  background: var(--color-orange);
  color: #0B1B2B;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-soft);
  transition: top .28s var(--ease);
}

.skip-link:focus { top: 0; }

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

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

.section {
  padding-block: 64px;
}

.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: .5px;
  margin-bottom: 20px;
}

.section-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 28px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-cut);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}

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

.btn-primary {
  background: var(--color-orange);
  color: #0B1B2B;
  box-shadow: 0 8px 18px rgba(255, 107, 53, .35);
}

.btn-primary:hover { box-shadow: 0 12px 26px rgba(255, 107, 53, .5); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
}

.btn-ghost:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-cream);
}

/* ---------- Breadcrumb ---------- */
.crumb-list {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
}

.crumb-item {
  display: inline-flex;
  align-items: center;
}

.crumb-item + .crumb-item::before {
  content: "/";
  margin-inline: 12px;
  color: var(--color-orange);
  font-weight: 800;
}

.crumb-link {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s;
}

.crumb-link:hover { color: var(--color-orange); }

.crumb-current {
  color: #fff;
  font-weight: 700;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-cream);
  color: var(--color-ink);
  padding: 26px 24px;
  border-radius: var(--radius-cut);
  border-top: 4px solid var(--color-orange);
  box-shadow: 0 4px 20px rgba(2, 10, 20, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(2, 10, 20, .28);
}

.card h1, .card h2, .card h3, .card h4 { color: var(--color-ink); }

.card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.card-text {
  font-size: 15px;
  color: #3A3A3A;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #6A6A6A;
  margin-bottom: 12px;
}

/* ---------- Data Panel ---------- */
.data-panel {
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    var(--color-steel);
  background-size: 22px 22px;
  color: #F2F6FA;
  padding: 22px;
  border-radius: 2px 18px 2px 18px;
  border-left: 4px solid var(--color-orange);
  position: relative;
  overflow: hidden;
}

.data-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(255, 107, 53, .5), rgba(123, 47, 190, .25));
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

.data-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-cyan);
}

.data-value {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-orange);
  color: #0B1B2B;
  font-size: 12px;
  font-weight: 800;
  border-radius: 0 8px 0 8px;
  letter-spacing: .5px;
}

.badge-alert {
  background: var(--color-alert);
  color: #fff;
}

/* ---------- Figure Frame ---------- */
.figure-frame {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    var(--color-steel);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px 18px 3px 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  letter-spacing: 3px;
}

.figure-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-space);
  color: #fff;
  border-bottom: 3px solid var(--color-orange);
  box-shadow: 0 6px 30px rgba(2, 10, 20, .35);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange) 0 18%, var(--color-purple) 18% 22%, transparent 22%);
  z-index: 1;
}

.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 7px 24px;
  font-size: 12px;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .62);
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
}

.header-topbar-text {
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}

.header-topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .78);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 0 0 rgba(255, 107, 53, .7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, .7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 24px;
  min-height: 76px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Brand ---------- */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-purple) 100%);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

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

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .5px;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--color-cyan);
}

/* ---------- Index Drawer ---------- */
.header-index-wrap {
  position: relative;
}

.index-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0 10px 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.index-toggle:hover,
.index-toggle[aria-expanded="true"] {
  border-color: var(--color-orange);
  background: rgba(255, 107, 53, .12);
}

.index-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.index-toggle-line {
  width: 16px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 1px;
}

.index-toggle-label {
  font-size: 13px;
}

.site-index {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  padding: 12px 0;
  background: #0E2235;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0 14px 0 14px;
  box-shadow: 0 20px 50px rgba(2, 10, 20, .55);
}

.site-index[hidden] { display: none; }

.index-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background .2s, border-color .2s, color .2s, padding-left .2s;
}

.index-list a::before {
  content: "◆";
  font-size: 8px;
  color: var(--color-orange);
  opacity: .8;
}

.index-list a:hover {
  background: rgba(255, 255, 255, .06);
  border-left-color: var(--color-orange);
  color: #fff;
  padding-left: 22px;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
}

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

.nav-quota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--color-orange) 0%, #FF9A5C 100%);
  color: #0B1B2B;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 12px 0 12px;
  box-shadow: 0 0 0 0 rgba(255, 107, 53, .5);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}

.nav-quota:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, .4);
}

.quota-icon {
  font-size: 14px;
  line-height: 1;
}

.quota-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
}

/* ---------- Mobile Toggle ---------- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 230;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0 10px 0 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Responsive Header ---------- */
@media (max-width: 1024px) {
  .header-index-wrap { display: none; }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    width: min(320px, 86vw);
    padding: 84px 22px 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    background: #0A1826;
    box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
    border-left: 3px solid var(--color-orange);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility .38s;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 4px;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

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

  .nav-quota {
    align-self: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .header-topbar-status { display: none; }

  .header-topbar {
    justify-content: center;
    padding-inline: 16px;
  }

  .brand-sub { display: none; }

  .header-main {
    padding-inline: 16px;
    min-height: 64px;
  }

  body::before {
    width: 3px;
    opacity: .12;
  }

  body::after { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: 80px;
  background:
    radial-gradient(700px 260px at 100% 0, rgba(123, 47, 190, .3), transparent 60%),
    var(--color-space);
  color: rgba(255, 255, 255, .78);
  border-top: 4px solid var(--color-orange);
  clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
}

.footer-top {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 96px 24px 52px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.brand-logo-footer {
  display: inline-flex;
  margin-bottom: 18px;
}

.footer-statement {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .6);
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: var(--color-orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.footer-nav ul,
.footer-contact ul {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s, padding-left .2s;
}

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

.footer-contact li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
  overflow-wrap: anywhere;
}

.footer-bottom {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0 8px 0 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .4px;
}

/* ---------- Responsive Footer ---------- */
@media (max-width: 900px) and (min-width: 641px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

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

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

  .section { padding-block: 40px; }

  .grid { gap: 16px; }

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

/* ---------- Back-to-Top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0E2235;
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(2, 10, 20, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

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

.back-top-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--color-orange) var(--progress, 0%), rgba(255, 255, 255, .14) 0);
  -webkit-mask: radial-gradient(circle closest-side, transparent 68%, #000 69%);
  mask: radial-gradient(circle closest-side, transparent 68%, #000 69%);
}

.back-top-arrow {
  position: relative;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.back-to-top:hover { background: var(--color-space-deep); }

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

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

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

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .status-dot { animation: none !important; }
}
