/* ============================================
   新利竞技 共享设计系统 /assets/site.css
   ============================================ */

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

:root {
  --c-bg: #0A0E1A;
  --c-bg-panel: #121A2F;
  --c-accent: #FF6B00;
  --c-silver: #C0C8D0;
  --c-purple: #2A1B3D;
  --c-text: #F0F4F8;
  --c-text-2: #A8B0C0;
  --c-line: #1F2A3A;
  --c-success: #00C853;
  --c-warning: #FFD600;
  --font-heading: "Oswald", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --header-width: 280px;
  --container-max: 1280px;
  --container-pad: 24px;
  --shadow-1: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 16px 48px rgba(0, 0, 0, 0.45);
}

html {
  background:
    radial-gradient(ellipse 900px 480px at 85% -5%, rgba(42, 27, 61, 0.72), transparent 70%),
    var(--c-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
}

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

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: rgba(255, 107, 0, 0.85);
  color: #0A0E1A;
}

#main-content {
  min-height: 60vh;
  outline: none;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (min-width: 992px) {
  .container {
    padding-inline: 40px;
  }
}

.section {
  padding: 72px 0;
}

.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 {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--c-accent);
  color: #0A0E1A;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top 0.25s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: none;
}

/* ---------- Shared Components ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.section-label__num {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--c-accent);
  border: 1px solid rgba(255, 107, 0, 0.4);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.data-number {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.data-number--lg {
  font-size: 96px;
}

.data-number--sm {
  font-size: 40px;
}

.data-number--accent {
  color: var(--c-accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-silver);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  text-transform: uppercase;
}

.tag--accent {
  color: #FFD066;
  border-color: rgba(255, 107, 0, 0.4);
  background: rgba(255, 107, 0, 0.08);
}

.tag--success {
  color: var(--c-success);
  border-color: rgba(0, 200, 83, 0.3);
}

.tag--warning {
  color: var(--c-warning);
  border-color: rgba(255, 214, 0, 0.3);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.dot--live {
  background: var(--c-success);
  box-shadow: 0 0 6px rgba(0, 200, 83, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  cursor: pointer;
  background: var(--c-accent);
  color: #0A0E1A;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: #FF8A2A;
  color: #0A0E1A;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--c-silver);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  clip-path: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  box-shadow: none;
}

.btn--dark {
  background: var(--c-bg-panel);
  color: var(--c-text);
  clip-path: none;
  border-radius: 2px;
  border: 1px solid var(--c-line);
}

.btn--dark:hover {
  background: #1B2440;
  color: var(--c-text);
  box-shadow: none;
}

.card {
  background: var(--c-bg-panel);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 107, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card--accent {
  border-top: 2px solid var(--c-accent);
}

.grid {
  display: grid;
  gap: 28px;
}

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

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

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--aspect, 16 / 9);
  background:
    linear-gradient(135deg, rgba(42, 27, 61, 0.5), rgba(10, 14, 26, 0.5)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 8px);
  border: 1px solid var(--c-line);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.image-frame--portrait {
  --aspect: 4 / 5;
}

.image-frame--square {
  --aspect: 1 / 1;
}

.image-frame--wide {
  --aspect: 21 / 9;
}

.meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), #FF9A3D);
  width: var(--meter, 0%);
  transition: width 0.6s ease;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--c-text-2);
}

.breadcrumb li + li::before {
  content: "·";
  margin: 0 8px;
  color: var(--c-line);
}

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

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

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

/* ---------- Header · Mobile First ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 220;
  background: rgba(10, 14, 26, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-line);
}

.site-header__topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), rgba(255, 107, 0, 0) 80%);
  pointer-events: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-accent);
  color: #0A0E1A;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.3s ease;
}

.site-brand:hover .site-brand__mark {
  background: #FF8A2A;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-brand__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-brand__sub {
  display: none;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--c-text-2);
  text-transform: uppercase;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 107, 0, 0.45);
  background: rgba(255, 107, 0, 0.1);
  color: #FFD066;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.version-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.8);
  }

  50% {
    opacity: 0.4;
    box-shadow: 0 0 2px rgba(255, 107, 0, 0.2);
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--c-text-2);
  pointer-events: none;
}

.header-search__input {
  width: 100%;
  height: 40px;
  padding: 8px 12px 8px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  color: var(--c-text);
  font-size: 13px;
  font-family: var(--font-body);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header-search__input::placeholder {
  color: var(--c-text-2);
  opacity: 0.85;
}

.header-search__input:focus {
  outline: none;
  border-color: rgba(255, 107, 0, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 219;
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 26, 47, 0.98), rgba(10, 14, 26, 0.98));
  border-bottom: 1px solid var(--c-line);
  transition: max-height 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav[data-open] {
  max-height: 80vh;
  overflow-y: auto;
  border-bottom-color: rgba(255, 107, 0, 0.3);
  box-shadow: var(--shadow-2);
}

.site-nav__inner {
  padding: 16px 20px 20px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
}

.site-nav__item + .site-nav__item {
  border-top: 1px solid rgba(31, 42, 58, 0.55);
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  color: var(--c-text-2);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-left: 2px solid transparent;
  transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease, border-color 0.25s ease;
}

.site-nav__link:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.03);
  padding-left: 14px;
  border-left-color: var(--c-silver);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-text);
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.12), transparent);
  border-left-color: var(--c-accent);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--c-accent);
}

.site-nav__index {
  min-width: 22px;
  font-size: 12px;
  color: var(--c-line);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.site-nav__text {
  display: block;
}

.site-header__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 58, 0.7);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-text-2);
}

.site-header__meta {
  font-variant-numeric: tabular-nums;
}

.site-header__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-success);
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), #FFD600);
  z-index: 4;
  pointer-events: none;
}

/* ---------- Header · Desktop Side Rail ---------- */
@media (min-width: 992px) {
  body {
    padding-left: var(--header-width);
  }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--header-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(18, 26, 47, 0.96), rgba(10, 14, 26, 0.98));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-right: 1px solid var(--c-line);
    overflow-y: auto;
  }

  .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 0, 0.35) 20%, rgba(255, 107, 0, 0.35) 80%, transparent);
    pointer-events: none;
  }

  .site-header__topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 28px 24px 18px;
    border-bottom: 1px solid var(--c-line);
  }

  .site-header__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-brand__sub {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav[data-open] {
    max-height: none;
    overflow: visible;
  }

  .site-nav__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 20px 24px 24px;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 24px 0;
  }

  .site-nav__link {
    padding: 12px 10px;
  }

  .site-header__foot {
    margin-top: auto;
  }

  .scroll-progress {
    width: 3px;
    height: var(--progress, 0%);
    top: 0;
    bottom: auto;
    left: 0;
    background: linear-gradient(180deg, var(--c-accent), #FF9A3D);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #0B101E 0%, #0A0E1A 100%);
  border-top: 1px solid var(--c-line);
  overflow: hidden;
}

.site-footer__beam {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(105deg,
      transparent 0%,
      transparent 12%,
      rgba(255, 107, 0, 0.12) 16%,
      var(--c-accent) 20%,
      var(--c-accent) 24%,
      transparent 28%,
      transparent 72%,
      rgba(255, 107, 0, 0.25) 78%,
      transparent 84%);
}

.site-footer__grid {
  display: grid;
  gap: 40px 32px;
  padding: 56px 0 44px;
}

.site-footer__brand,
.site-footer__col {
  min-width: 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .site-footer__grid {
    grid-template-columns: 2.2fr 1.2fr 1fr 1.6fr;
    gap: 48px;
  }
}

.site-footer__brand .site-brand {
  margin-bottom: 18px;
}

.site-brand--footer .site-brand__mark {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.site-brand--footer .site-brand__name {
  font-size: 18px;
}

.site-footer__about,
.site-footer__note {
  margin: 0 0 12px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-2);
}

.site-footer__statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.site-footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-silver);
}

.site-footer__title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--c-accent);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer__links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--c-text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--c-accent);
  padding-left: 6px;
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__contact-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-2);
  opacity: 0.7;
}

.site-footer__contact-value {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  word-break: break-all;
}

.site-footer__bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--c-line);
  padding: 18px 0;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--c-text-2);
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__icp {
  letter-spacing: 0.04em;
}

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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