/* ============================
   火狐体育 FOXSPORT-CN · 全站共享样式
   火狐竞技视觉体系：深空黑底 + 火狐橙 + 电光蓝
   ============================ */

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-orange: #FF6B35;
  --c-black: #0D0D0D;
  --c-blue: #00E5FF;
  --c-carbon: #1A1A1A;
  --c-cream: #F5F1E8;
  --c-gray: #9AA7B0;
  --c-red: #FF2E2E;
  --c-green: #00E57A;
  --c-blue-bg: #0A1A2A;
  --grad-speed: linear-gradient(135deg, rgba(255,107,53,0.6), rgba(0,229,255,0.2));
  --font-h: 'Arial Black', Impact, 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-b: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-d: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', monospace;
  --max-w: 1200px;
  --h-top: 48px;
  --h-bottom: 68px;
  --cut: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 基础元素 ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-cream);
  background-color: var(--c-black);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(255,107,53,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(0,229,255,0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(245,241,232,0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--c-cream);
}
h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 18px; }

p { margin-bottom: 1em; }

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-orange); }

ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }

::selection {
  background: var(--c-orange);
  color: var(--c-black);
}

/* ---------- 4. 焦点状态 ---------- */
:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.35);
}

/* ---------- 5. 容器与布局 ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 60px;
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-title {
  position: relative;
  padding-left: 18px;
  margin: 0;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 6px;
  background: var(--c-orange);
  transform: skewX(-10deg);
}

.section-subtitle {
  font-size: 15px;
  color: var(--c-gray);
  max-width: 460px;
  margin: 0;
}

/* ---------- 6. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  cursor: pointer;
  color: var(--c-cream);
  background: var(--c-carbon);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--c-orange);
  color: var(--c-black);
  border-color: var(--c-orange);
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--c-orange);
  color: var(--c-black);
  border-color: var(--c-orange);
}
.btn-primary:hover {
  background: #ff8a55;
  border-color: #ff8a55;
}
.btn-ghost {
  background: transparent;
  color: var(--c-orange);
  border-color: var(--c-orange);
}
.btn-ghost:hover {
  background: var(--c-orange);
  color: var(--c-black);
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.data-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.data-value {
  font-family: var(--font-d);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-orange);
  line-height: 1;
}
.data-label {
  font-size: 13px;
  color: var(--c-gray);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  font-family: var(--font-d);
  font-size: 13px;
  color: var(--c-gray);
}
.breadcrumb-link { color: var(--c-blue); }
.breadcrumb-link:hover { color: var(--c-orange); }
.breadcrumb-sep { color: var(--c-orange); font-weight: 700; }
.breadcrumb-current { color: var(--c-cream); }

.tactical-note {
  position: relative;
  padding: 18px 22px;
  margin-block: 24px;
  background: var(--c-carbon);
  border-left: 4px solid var(--c-blue);
  color: var(--c-gray);
  font-size: 14px;
  line-height: 1.8;
}
.tactical-note::before {
  content: '◤ 编辑视角';
  display: block;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-blue);
  margin-bottom: 8px;
}

.cut-corner {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  background: var(--c-carbon);
  padding: 24px;
}

.speed-lines {
  position: relative;
  overflow: hidden;
}
.speed-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 22px,
    rgba(255, 107, 53, 0.06) 22px,
    rgba(255, 107, 53, 0.06) 23px
  );
  pointer-events: none;
}

.image-figure {
  position: relative;
  overflow: hidden;
  background: var(--c-carbon);
  border: 1px solid rgba(255, 107, 53, 0.2);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.image-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.image-figure:hover img { transform: scale(1.03); }
.image-figure--4x3 { aspect-ratio: 4 / 3; }
.image-figure--16x9 { aspect-ratio: 16 / 9; }
.image-figure--square { aspect-ratio: 1 / 1; }

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

/* ---------- 7. 页头 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 20px;
  background: var(--c-orange);
  color: var(--c-black);
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible {
  top: 16px;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.4);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-orange), var(--c-blue));
  z-index: 400;
  pointer-events: none;
}

.header-top {
  background: #090909;
  border-bottom: 1px solid rgba(255, 107, 53, 0.15);
  position: relative;
  z-index: 1;
}
.header-top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-orange) 0%, rgba(255, 107, 53, 0) 30%);
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h-top);
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  padding: 6px 14px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.brand-name {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 900;
  color: var(--c-cream);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-divider {
  color: var(--c-orange);
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 900;
}
.brand-sub {
  font-family: var(--font-d);
  font-size: 11px;
  color: var(--c-gray);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: live-pulse 2s var(--ease) infinite;
}
.live-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-gray);
  letter-spacing: 0.05em;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 122, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0, 229, 122, 0); }
}

.header-bottom {
  background: var(--c-carbon);
  border-bottom: 2px solid var(--c-orange);
  position: relative;
  z-index: 1;
}
.header-bottom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 40px,
    rgba(255, 107, 53, 0.03) 40px,
    rgba(255, 107, 53, 0.03) 41px
  );
  pointer-events: none;
}
.header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h-bottom);
}

.main-nav {
  width: 100%;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.nav-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-cream);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-link::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(255, 107, 53, 0.12);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 3px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover {
  color: var(--c-orange);
}
.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link[aria-current="page"]::before {
  opacity: 1;
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-link[aria-current="page"] {
  color: var(--c-orange);
}
.nav-link[aria-current="page"]::before {
  content: '// ';
  font-family: var(--font-d);
  font-size: 0.9em;
  color: var(--c-blue);
}

/* ---------- 8. 移动悬浮球导航 ---------- */
.mobile-fab-nav {
  display: none;
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
}

.mobile-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 32% 30%, rgba(0, 229, 255, 0.95), #0088B8 70%, #006080);
  box-shadow:
    0 0 24px rgba(0, 229, 255, 0.35),
    0 0 0 3px rgba(0, 229, 255, 0.15),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.mobile-fab:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 32px rgba(0, 229, 255, 0.5),
    0 0 0 4px rgba(0, 229, 255, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.2);
}
.mobile-fab:active {
  transform: scale(0.96);
}

.fab-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}
.fab-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #0D0D0D;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.mobile-fab-nav[data-open] .fab-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-fab-nav[data-open] .fab-bar:nth-child(2) { opacity: 0; }
.mobile-fab-nav[data-open] .fab-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-fab-nav[data-open] .mobile-fab {
  background: radial-gradient(circle at 32% 30%, var(--c-orange), #C7481A 70%, #99300E);
  box-shadow:
    0 0 24px rgba(255, 107, 53, 0.4),
    0 0 0 3px rgba(255, 107, 53, 0.15);
}

.mobile-fab-panel {
  position: absolute;
  left: 0;
  bottom: 66px;
  min-width: 220px;
  background: var(--c-carbon);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.mobile-fab-nav[data-open] .mobile-fab-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-fab-title {
  font-family: var(--font-d);
  font-size: 12px;
  color: var(--c-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-cream);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.mobile-nav-link:hover {
  color: var(--c-orange);
  border-left-color: var(--c-orange);
  background-color: rgba(255, 107, 53, 0.08);
}
.mobile-nav-link[aria-current="page"] {
  color: var(--c-orange);
  border-left-color: var(--c-orange);
  background-color: rgba(255, 107, 53, 0.08);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  background: #090909;
  border-top: 3px solid var(--c-orange);
  margin-top: auto;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--c-blue);
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1.3fr;
  gap: 40px;
  padding-block: 56px 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  padding: 8px 16px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.footer-brand-name {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 900;
  color: var(--c-cream);
}
.footer-brand-divider {
  color: var(--c-orange);
  font-size: 18px;
  font-weight: 900;
}
.footer-brand-sub {
  font-family: var(--font-d);
  font-size: 12px;
  color: var(--c-gray);
  letter-spacing: 0.06em;
}

.footer-slogan {
  font-size: 14px;
  color: var(--c-blue);
  border-left: 3px solid var(--c-orange);
  padding-left: 12px;
  line-height: 1.6;
  margin: 0;
}

.footer-desc {
  font-size: 13px;
  color: var(--c-gray);
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

.footer-col-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-orange);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

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

.footer-link {
  font-size: 14px;
  color: var(--c-gray);
  transition: color 0.2s, padding-left 0.2s var(--ease);
}
.footer-link:hover {
  color: var(--c-orange);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--c-gray);
}
.contact-label {
  font-family: var(--font-d);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-gray);
  opacity: 0.7;
}
.contact-value {
  color: var(--c-cream);
  word-break: break-all;
}

.footer-contact-note {
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(154, 167, 176, 0.2);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
}
.copyright {
  font-size: 13px;
  color: var(--c-gray);
  margin: 0;
  font-family: var(--font-d);
}
.footer-icp {
  font-size: 13px;
  color: var(--c-gray);
  font-family: var(--font-d);
}

.footer-trust {
  font-size: 12px;
  color: rgba(154, 167, 176, 0.6);
  text-align: center;
  padding: 16px 0 24px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- 10. 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nav-link {
    padding: 12px 14px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: 16px;
  }

  .header-top-inner {
    height: 52px;
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-sub {
    display: none;
  }
  .live-text {
    font-size: 12px;
  }

  .header-bottom {
    display: none;
  }

  .mobile-fab-nav {
    display: block;
  }

  .section {
    padding-block: 40px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 40px 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-trust {
    text-align: left;
    padding-bottom: 20px;
  }
}

/* ---------- 12. 无障碍 · 减弱动态 ---------- */
@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;
  }
  .live-dot {
    animation: none;
  }
  .nav-link::after,
  .nav-link::before,
  .mobile-fab-panel,
  .btn,
  .footer-link,
  .image-figure img {
    transition: none;
  }
  html.js [data-reveal],
  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
