/* ============================================================
   火狐体育入口 · 共享 Site Kit
   /assets/site.css
   1 reset / 2 tokens / 3 base / 4 header / 5 footer / 6 components
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- 2. tokens ---------- */
:root {
  --orange: #FF4D1C;
  --lime: #B6FF3B;
  --ink: #0B0B0D;
  --ink-2: #16181D;
  --ink-3: #24272F;
  --line: #3A3F4A;
  --paper: #F5F2EA;
  --peach: #FFB399;
  --maroon: #7A2C1A;
  --amber: #FFD166;
  --muted: rgba(245, 242, 234, 0.62);
  --dim: rgba(245, 242, 234, 0.44);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sans: Inter, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Oswald", "Bebas Neue", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Roboto Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* ---------- 3. base ---------- */
body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(58, 63, 74, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 63, 74, 0.16) 1px, transparent 1px);
  background-size: 100% 88px, 88px 100%;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.fx-lock { overflow: hidden; }

h1, h2, h3, h4 { font-weight: 900; line-height: 1.08; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--paper); font-weight: 800; }
em { font-style: italic; color: var(--peach); }

a { transition: color 0.18s var(--ease), border-color 0.18s var(--ease); }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. header ---------- */
.fx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0B0B0D 0%, #16181D 100%);
  border-bottom: 1px solid var(--line);
}
.fx-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(90px, 18vw, 280px);
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 77, 28, 0));
  pointer-events: none;
}
.fx-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 78px;
  padding-block: 10px;
}

.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--peach) 46%, var(--lime) 100%);
}

/* brand */
.fx-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding-right: 8px;
}
.fx-brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  box-shadow: 0 0 22px rgba(255, 77, 28, 0.4);
}
.fx-brand__mark::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--lime);
  transform: translateY(-50%) rotate(45deg);
}
.fx-brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fx-brand__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--paper);
  white-space: nowrap;
}
.fx-brand__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
}

/* coordinate rail */
.fx-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.fx-rail__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.16);
}
.fx-rail__line {
  flex: 1 1 auto;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 13px);
}
.fx-rail__meta {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  white-space: nowrap;
}

/* nav */
.fx-nav { display: flex; align-items: center; gap: 14px; }
.fx-nav__list { display: flex; align-items: center; gap: 2px; }
.fx-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: rgba(245, 242, 234, 0.72);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.fx-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.fx-nav__link:hover { color: var(--paper); }
.fx-nav__link:hover::after { transform: scaleX(1); }
.fx-nav__link[aria-current="page"] {
  color: var(--paper);
  border-color: rgba(182, 255, 59, 0.55);
  background: rgba(182, 255, 59, 0.07);
}
.fx-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.fx-nav__aside { display: none; }

/* toggle */
.fx-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(36, 39, 47, 0.72);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.fx-toggle:hover { border-color: var(--orange); color: var(--peach); }
.fx-toggle__bars { display: grid; gap: 4px; width: 18px; }
.fx-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--orange);
  transition: transform 0.2s var(--ease), opacity 0.16s var(--ease);
}
.fx-toggle[aria-expanded="true"] .fx-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fx-toggle[aria-expanded="true"] .fx-toggle__bars span:nth-child(2) { opacity: 0; }
.fx-toggle[aria-expanded="true"] .fx-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.fx-toggle[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }

.fx-scrim { display: none; }

/* header responsive */
@media (max-width: 1120px) {
  .fx-brand__tag { display: none; }
  .fx-nav__link { padding: 10px 9px; font-size: 14px; }
  .fx-nav__link::after { left: 9px; right: 9px; }
}

@media (max-width: 900px) {
  .fx-header__inner { min-height: 68px; gap: 12px; }
  .fx-rail { display: none; }
  .fx-toggle { display: inline-flex; margin-left: auto; }

  .fx-header__inner { position: relative; z-index: 96; }

  .fx-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 92;
    width: min(86vw, 344px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 22px 32px;
    overflow-y: auto;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(255, 77, 28, 0.22), transparent 62%),
      linear-gradient(160deg, #16181D 0%, #0B0B0D 72%);
    border-left: 1px solid var(--line);
    box-shadow: -26px 0 60px rgba(0, 0, 0, 0.6);
    transform: translateX(102%);
    transition: transform 0.26s var(--ease);
  }
  .fx-header[data-open="true"] .fx-nav { transform: translateX(0); }

  .fx-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .fx-nav__list > li + li { border-top: 1px solid rgba(58, 63, 74, 0.55); }
  .fx-nav__link {
    display: block;
    padding: 16px 10px;
    border: 0;
    border-left: 2px solid transparent;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: rgba(245, 242, 234, 0.82);
  }
  .fx-nav__link::after { left: 10px; right: auto; width: 30px; bottom: 8px; }
  .fx-nav__link[aria-current="page"] {
    border-left-color: var(--lime);
    background: rgba(182, 255, 59, 0.08);
  }
  .fx-nav__aside { display: block; margin-top: 24px; }
  .fx-nav__aside .btn { width: 100%; justify-content: center; }

  .fx-header[data-open="true"] .fx-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 11, 13, 0.74);
  }
}

@media (max-width: 420px) {
  .fx-brand__name { font-size: 17px; }
  .fx-brand__mark { width: 28px; height: 28px; }
  .fx-toggle__label { display: none; }
}

/* ---------- 5. footer ---------- */
.fx-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(122, 44, 26, 0.34), transparent 60%),
    linear-gradient(180deg, #16181D 0%, #0B0B0D 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.fx-footer__edge {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--lime) 32%, rgba(182, 255, 59, 0) 78%);
}
.fx-footer__inner { padding-block: clamp(40px, 6vw, 76px); }
.fx-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.fx-brand--footer { padding-right: 0; }
.fx-brand--footer .fx-brand__name { font-size: clamp(22px, 2.4vw, 28px); }
.fx-footer__summary {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.fx-footer__cta { margin-top: 22px; }

.fx-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.fx-footer__col-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--lime);
}
.fx-footer__list { display: grid; gap: 9px; }
.fx-footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 15px;
  color: rgba(245, 242, 234, 0.72);
}
.fx-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.fx-footer__link:hover { color: var(--paper); }
.fx-footer__link:hover::after { transform: scaleX(1); }

.fx-footer__contact { display: grid; gap: 2px; }
.fx-contact-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(58, 63, 74, 0.85);
}
.fx-contact-row__key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--peach);
}
.fx-contact-row__val {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
  word-break: break-word;
}
.copy-btn {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: rgba(36, 39, 47, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 242, 234, 0.7);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-btn:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.copy-btn[data-copied="true"] {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}
.copy-btn[data-copied="false"] {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.fx-footer__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim);
}

.fx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.fx-footer__legal {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.fx-footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fx-footer__legal-links a {
  font-size: 13px;
  color: rgba(245, 242, 234, 0.68);
  border-bottom: 1px solid transparent;
}
.fx-footer__legal-links a:hover { color: var(--lime); border-bottom-color: var(--lime); }

@media (max-width: 1000px) {
  .fx-footer__top { grid-template-columns: minmax(0, 1fr); }
  .fx-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-footer__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .fx-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fx-footer__bottom { flex-direction: column; align-items: flex-start; }
  .fx-contact-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
}

/* ---------- 6. shared components ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(56px, 7vw, 120px); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: rgba(36, 39, 47, 0.55);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper);
  line-height: 1.5;
}
.tag--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tag--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--orange);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 77, 28, 0.32);
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--peach); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: none;
}
.btn--sm { padding: 9px 16px; font-size: 13px; }

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(160deg, #24272F 0%, #16181D 100%);
  box-shadow: 0 1px 0 rgba(245, 242, 234, 0.04) inset;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--orange);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 28, 0.55);
  box-shadow: 0 18px 42px rgba(255, 77, 28, 0.16);
}
.card--flat { background: rgba(22, 24, 29, 0.72); }

.media {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(255, 77, 28, 0.46), rgba(122, 44, 26, 0.26) 44%, transparent 72%),
    linear-gradient(160deg, #24272F 0%, #16181D 62%, #0B0B0D 100%);
}
.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(rgba(245, 242, 234, 0.1) 1px, transparent 1px);
  background-size: 4px 4px;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(11, 11, 13, 0.8), rgba(11, 11, 13, 0) 58%),
    repeating-linear-gradient(90deg, rgba(245, 242, 234, 0.07) 0 1px, transparent 1px 72px);
}
.media__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
@media (max-width: 700px) {
  .media--wide { aspect-ratio: 16 / 9; }
  .media--tall { aspect-ratio: 4 / 5; }
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(245, 242, 234, 0.84);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 {
  margin-top: 2em;
  color: var(--paper);
  font-size: clamp(22px, 2.4vw, 30px);
}
.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(182, 255, 59, 0.5);
}
.prose a:hover { color: var(--paper); border-bottom-color: var(--orange); }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
.prose ol { counter-reset: prose; }
.prose ol li { counter-increment: prose; }
.prose ol li::before {
  content: counter(prose, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
}
.prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--orange);
  color: var(--peach);
  font-style: italic;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), rgba(58, 63, 74, 0));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.breadcrumb a { color: rgba(245, 242, 234, 0.7); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb__sep { color: var(--orange); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover,
  .card:hover { transform: none; }
  .fx-nav { transition: none; }
  .fx-nav__link::after,
  .fx-footer__link::after { transition: none; }
}
