/* =========================================================
   SITE KIT — /assets/site.css
   爱游戏官方 · 赛博竞技视觉系统
   共享层：变量 / Reset / 正文 / 头部 / 页脚 / 通用组件
   ========================================================= */

:root {
  /* 色彩系统 */
  --color-primary: #FF4D00;
  --color-bg-deep: #0A1A3A;
  --color-bg-deep-2: #10224D;
  --color-silver: #C0C0C0;
  --color-gold: #FFD700;
  --color-cyan: #00E5FF;
  --color-ink: #111111;
  --color-surface: #F2F2F2;
  --color-warning: #8B0000;
  --color-link: #006E86;
  --color-text-body: #2A2A2A;
  --color-text-muted: #5A5A5A;

  /* 字体系统 */
  --font-title: "Helvetica Neue", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Helvetica Neue", "Arial", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  /* 布局与动效 */
  --container: 1200px;
  --header-h: 72px;
  --radius: 2px;
  --shadow: 0 8px 24px rgba(10, 26, 58, 0.10);
  --speed: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-body);
  background-color: var(--color-surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-bg-deep);
  margin: 0 0 0.8em;
}

h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin-bottom: 1em; }

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

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

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* ============ 通用工具 ============ */
.site-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.mono {
  font-family: var(--font-mono);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 24px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--speed), box-shadow var(--speed), background var(--speed), color var(--speed), border-color var(--speed);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(10, 26, 58, 0.55);
}

.btn-primary:hover {
  background: #FF6B2B;
  box-shadow: 6px 6px 0 rgba(10, 26, 58, 0.45);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-bg-deep);
  border-color: var(--color-bg-deep);
}

.btn-ghost:hover {
  background: var(--color-bg-deep);
  color: var(--color-surface);
}

.btn-light {
  background: rgba(242, 242, 242, 0.1);
  color: #fff;
  border-color: rgba(192, 192, 192, 0.5);
}

.btn-light:hover {
  background: rgba(242, 242, 242, 0.2);
  color: #fff;
  border-color: var(--color-cyan);
}

/* ============ 卡片 · 标签 · 面包屑 ============ */
.card {
  background: var(--color-surface);
  border: 1px solid #E2E2E2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  background: rgba(10, 26, 58, 0.08);
  color: var(--color-bg-deep);
}

.badge--gold { background: var(--color-gold); color: var(--color-ink); }
.badge--primary { background: var(--color-primary); color: #fff; }
.badge--cyan { background: var(--color-cyan); color: var(--color-ink); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb-link {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--color-silver);
  font-family: var(--font-mono);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--color-bg-deep);
  font-weight: 700;
}

/* ============ 数据网格与筛选 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  background: var(--color-bg-deep);
  border: 1px solid rgba(192, 192, 192, 0.22);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--color-silver);
  letter-spacing: 0.08em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid #D5D5D5;
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-body);
  cursor: pointer;
  transition: background var(--speed), color var(--speed), border-color var(--speed), box-shadow var(--speed);
}

.filter-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-tag[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.3);
}

/* ============ 滚动显现 ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ============ 顶部 Header ============ */
.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skip-link:focus {
  top: 8px;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16px),
    var(--color-bg-deep);
  border-bottom: 1px solid rgba(192, 192, 192, 0.22);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 192, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 192, 192, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 36%;
  background: linear-gradient(100deg, transparent, rgba(0, 229, 255, 0.12), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
  animation: headerSweep 1.2s ease-out 0.3s 1;
}

@keyframes headerSweep {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(260%) skewX(-18deg); }
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  z-index: 5;
  pointer-events: none;
}

.header-strip {
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-primary) 0 28px,
    var(--color-gold) 28px 36px,
    var(--color-cyan) 36px 52px,
    transparent 52px 54px
  );
  opacity: 0.9;
}

.header-container {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--header-h);
  display: flex;
  align-items: stretch;
  gap: 28px;
}

/* 品牌 */
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), #B83000);
  border-radius: 2px;
  transform: skewX(-12deg);
  box-shadow: 3px 3px 0 rgba(0, 229, 255, 0.85);
}

.brand-mark-text {
  position: relative;
}

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

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--color-cyan);
  white-space: nowrap;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  color: rgba(242, 242, 242, 0.78);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  transition: color var(--speed);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed);
}

.nav-link:hover {
  color: #fff;
  text-decoration: none;
}

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

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

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: repeating-linear-gradient(
    90deg,
    var(--color-primary) 0 6px,
    var(--color-gold) 6px 10px
  );
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-cyan);
  opacity: 0.75;
  letter-spacing: 0.04em;
}

/* 头部工具 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: rgba(255, 77, 0, 0.12);
  border: 1px solid rgba(255, 77, 0, 0.6);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--speed), box-shadow var(--speed), border-color var(--speed);
}

.status-pill:hover {
  background: rgba(255, 77, 0, 0.25);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.4);
  text-decoration: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: statusPulse 1.6s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.5);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(255, 77, 0, 0);
  }
}

.status-copy {
  white-space: nowrap;
}

.search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--color-silver);
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--speed), border-color var(--speed), background var(--speed);
}

.search-link:hover {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.08);
  text-decoration: none;
}

.search-icon {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-silver);
  border-radius: 1px;
  transition: transform var(--speed), opacity var(--speed);
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--color-cyan);
}

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

.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: translateY(-7px) rotate(-45deg);
}

/* ============ 页脚 Footer ============ */
.site-footer {
  background: var(--color-bg-deep);
  color: rgba(242, 242, 242, 0.68);
  border-top: 2px solid var(--color-primary);
  margin-top: 80px;
}

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

.footer-stripe {
  display: flex;
  justify-content: flex-start;
}

.footer-stripe .stripe-block:first-child {
  width: 140px;
  height: 4px;
  background: var(--color-primary);
}

.footer-stripe .stripe-block:nth-child(2) {
  width: 90px;
  height: 4px;
  background: var(--color-gold);
}

.footer-stripe .stripe-block:last-child {
  flex: 1;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--color-cyan) 0 6px, transparent 6px 18px);
  opacity: 0.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand-link:hover {
  text-decoration: none;
}

.brand-mark--footer {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.footer-brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-trust {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 242, 242, 0.62);
  max-width: 36ch;
  margin-bottom: 12px;
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-cyan);
}

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

.footer-heading {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.2);
  position: relative;
  width: 100%;
}

.footer-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.footer-link {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(242, 242, 242, 0.68);
  text-decoration: none;
  transition: color var(--speed), padding-left var(--speed);
}

.footer-link:hover {
  color: var(--color-cyan);
  padding-left: 6px;
  text-decoration: none;
}

.footer-contact {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(242, 242, 242, 0.58);
  margin-bottom: 10px;
}

.footer-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(242, 242, 242, 0.85);
}

.footer-value--plain {
  font-family: var(--font-body);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid rgba(192, 192, 192, 0.18);
  padding: 18px 0 22px;
  font-size: 13px;
  color: rgba(192, 192, 192, 0.62);
}

.footer-copy {
  margin: 0;
}

.footer-icp {
  margin: 0;
}

.footer-official {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(0, 229, 255, 0.55);
  margin: 0;
}

/* ============ 响应式 ============ */
@media (min-width: 600px) and (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

@media (max-width: 899px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--color-bg-deep-2);
    border-top: 1px solid rgba(255, 77, 0, 0.4);
    border-bottom: 1px solid rgba(192, 192, 192, 0.15);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.35);
    padding: 8px 0 12px;
  }

  .main-nav[data-open="true"] {
    display: flex;
    animation: navReveal 0.18s ease-out;
  }

  @keyframes navReveal {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .nav-link {
    height: auto;
    padding: 14px 24px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
    font-size: 16px;
    color: rgba(242, 242, 242, 0.85);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

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

  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(255, 77, 0, 0.22), transparent 70%);
    color: #fff;
  }

  .nav-link[aria-current="page"] .nav-index {
    color: var(--color-primary);
    opacity: 1;
  }

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

  .header-tools {
    margin-left: auto;
  }
}

@media (max-width: 599px) {
  .header-container {
    height: 60px;
    padding-inline: 16px;
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-tagline {
    display: none;
  }

  .status-pill {
    display: none;
  }

  .search-link {
    width: 32px;
    height: 32px;
  }

  .site-container {
    padding-inline: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 32px;
  }

  .footer-stripe .stripe-block:first-child {
    width: 96px;
  }

  .footer-stripe .stripe-block:nth-child(2) {
    width: 60px;
  }

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

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

/* ============ 无障碍与减少动态 ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .status-dot {
    animation: none;
  }

  .site-header::after {
    animation: none;
  }
}
