/* ============================================================
   火狐体育入口 — 共享站点样式 /assets/site.css
   基调：框架式导航 · 非对称编辑部网格 · 珠宝色分区 · 火焰轨迹
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--fx-cream);
  color: var(--fx-ink);
  font-family: var(--fx-font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[class], ol[class] { list-style: none; padding-left: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --fx-flame: #FF4D1A;
  --fx-ember: #C92F0A;
  --fx-ink: #141416;
  --fx-cream: #FFF8F0;
  --fx-cyan: #18D6C4;
  --fx-amber: #F5B23E;
  --fx-indigo: #1B2A4A;
  --fx-wine: #6E1F2B;
  --fx-mist: #8C8C94;
  --fx-celadon: #DDF7F3;
  --fx-sand: #FFF1D6;

  /* 语义色 */
  --fx-line: rgba(255, 248, 240, 0.16);
  --fx-line-strong: rgba(255, 248, 240, 0.34);
  --fx-line-dark: rgba(20, 20, 22, 0.13);
  --fx-ink-70: rgba(20, 20, 22, 0.7);
  --fx-cream-70: rgba(255, 248, 240, 0.72);
  --fx-cyan-deep: #0B7F76;

  /* 字体栈 */
  --fx-font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --fx-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --fx-font-mono: "JetBrains Mono", "Roboto Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 尺度 */
  --fx-max: 1280px;
  --fx-gutter: clamp(1.1rem, 4vw, 3.5rem);
  --fx-radius: 2px;
  --fx-shadow: 0 18px 40px -28px rgba(20, 20, 22, 0.55);
  --fx-fast: 180ms;
  --fx-base: 300ms;
}

/* ---------- 3. 中文排版基线 ---------- */
h1, h2, h3, h4 {
  font-family: var(--fx-font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 7rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: 0.005em; line-height: 1.25; }
h4 { font-size: 1rem; letter-spacing: 0.02em; }

p { max-width: 42em; }
strong, b { font-weight: 700; }

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

/* 深底内的焦点环改用琥珀金，避免青色被深蓝吞掉 */
.fx-header :focus-visible,
.fx-footer :focus-visible,
.fx-card--ink :focus-visible { outline-color: var(--fx-amber); }

/* ---------- 4. 容器与节距 ---------- */
.fx-container {
  width: 100%;
  max-width: var(--fx-max);
  margin-inline: auto;
  padding-inline: var(--fx-gutter);
}

.fx-section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.fx-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.fx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--fx-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fx-ember);
}

.fx-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: var(--fx-flame);
}

.fx-lede {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  color: var(--fx-ink-70);
}

.fx-rule {
  height: 1px;
  border: 0;
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--fx-line-dark);
}

.fx-rule--flame {
  height: 2px;
  background: linear-gradient(90deg, var(--fx-flame), rgba(255, 77, 26, 0));
}

/* ---------- 5. 按钮 ---------- */
.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.66rem 1.15rem;
  font-family: var(--fx-font-body);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--fx-radius);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--fx-fast) ease,
              color var(--fx-fast) ease,
              border-color var(--fx-fast) ease,
              transform var(--fx-fast) ease;
}

.fx-btn--primary {
  background: var(--fx-flame);
  color: #fff;
  border-color: var(--fx-flame);
}
.fx-btn--primary:hover { background: var(--fx-ember); border-color: var(--fx-ember); }
.fx-btn--primary:active { transform: translateY(1px); }

.fx-btn--ghost {
  background: transparent;
  color: var(--fx-cream);
  border-color: var(--fx-line-strong);
}
.fx-btn--ghost:hover { color: var(--fx-flame); border-color: var(--fx-flame); }

/* ---------- 6. Skip link ---------- */
.fx-skip {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--fx-flame);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--fx-radius);
  box-shadow: 0 10px 24px -14px rgba(20, 20, 22, 0.8);
  transition: top var(--fx-fast) ease;
}
.fx-skip:focus { top: 0.75rem; }

/* ---------- 7. 框架式页头 ---------- */
.fx-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--fx-ink);
  color: var(--fx-cream);
  isolation: isolate;
}

.fx-header__rail {
  height: 3px;
  background: linear-gradient(90deg,
    var(--fx-flame) 0%,
    var(--fx-ember) 42%,
    var(--fx-amber) 76%,
    var(--fx-cyan) 100%);
}

.fx-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, var(--fx-cyan), var(--fx-amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

.fx-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--fx-max);
  margin-inline: auto;
  padding-inline: var(--fx-gutter);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  border-inline: 1px solid rgba(255, 248, 240, 0.08);
  transition: min-height var(--fx-base) ease;
}

.fx-header.is-condensed .fx-header__inner { min-height: 60px; }

/* 品牌 */
.fx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
  color: inherit;
}

.fx-brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  background: linear-gradient(155deg, var(--fx-flame) 10%, var(--fx-ember) 90%);
  clip-path: polygon(52% 0%, 78% 26%, 100% 58%, 78% 100%, 22% 100%, 0% 58%, 22% 26%);
  transition: transform var(--fx-base) ease;
}

.fx-brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 34%;
  height: 44%;
  transform: translateX(-50%);
  background: var(--fx-amber);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.fx-brand:hover .fx-brand__mark { transform: rotate(-6deg) scale(1.04); }

.fx-brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
  min-width: 0;
}

.fx-brand__wordmark {
  font-family: var(--fx-font-display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: 0.04em;
}

.fx-brand__sub {
  font-family: var(--fx-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--fx-mist);
  white-space: nowrap;
}

/* 主导航 */
.fx-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.fx-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.4rem clamp(0.55rem, 1.15vw, 1rem);
  font-size: 0.92rem;
  color: rgba(255, 248, 240, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fx-fast) ease;
}

.fx-nav__link + .fx-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--fx-line);
}

.fx-nav__link:hover { color: var(--fx-cream); }

.fx-nav__link[aria-current="page"] { color: var(--fx-flame); }

.fx-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: clamp(0.55rem, 1.15vw, 1rem);
  right: clamp(0.55rem, 1.15vw, 1rem);
  bottom: 0.1rem;
  height: 2px;
  background: var(--fx-flame);
}

/* 右侧工具区 */
.fx-header__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.fx-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgba(255, 248, 240, 0.86);
  border: 1px solid var(--fx-line-strong);
  border-radius: 999px;
  white-space: nowrap;
}

.fx-status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--fx-cyan);
  animation: fx-pulse 2.8s ease-out infinite;
}

.fx-status__text { line-height: 1.2; }

@keyframes fx-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(24, 214, 196, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(24, 214, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 214, 196, 0); }
}

.fx-header__cta { white-space: nowrap; }

/* 移动端按钮 */
.fx-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 42px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid var(--fx-line-strong);
  border-radius: var(--fx-radius);
  cursor: pointer;
  transition: border-color var(--fx-fast) ease;
}

.fx-nav-toggle:hover { border-color: var(--fx-flame); }

.fx-nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--fx-cream);
  transform-origin: 50% 50%;
  transition: transform var(--fx-base) ease, opacity var(--fx-fast) ease;
}

.fx-nav-toggle[aria-expanded="true"] .fx-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fx-nav-toggle[aria-expanded="true"] .fx-nav-toggle__bar:nth-child(2) { opacity: 0; }
.fx-nav-toggle[aria-expanded="true"] .fx-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. 页脚 ---------- */
.fx-footer {
  position: relative;
  overflow: hidden;
  background: var(--fx-ink);
  color: var(--fx-cream);
  border-top: 3px solid var(--fx-flame);
}

.fx-footer__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 248, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 240, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 82%);
}

.fx-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--fx-max);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4.25rem) var(--fx-gutter) 1.5rem;
}

.fx-footer__top {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.fx-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.fx-footer__blurb {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--fx-cream-70);
  max-width: 30em;
}

.fx-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.fx-footer__col { min-width: 0; }
.fx-footer__col--contact { min-width: 0; }

.fx-footer__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
  font-family: var(--fx-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fx-amber);
}

.fx-footer__head::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  background: var(--fx-flame);
}

.fx-footer__list {
  display: grid;
  gap: 0.42rem;
}

.fx-footer__link {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--fx-cream-70);
  text-decoration: none;
  transition: color var(--fx-fast) ease;
}

.fx-footer__link:hover {
  color: var(--fx-flame);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.fx-footer__contact {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fx-cream-70);
  overflow-wrap: anywhere;
}

.fx-footer__contact-item { max-width: 34em; }

.fx-footer__label {
  display: block;
  font-family: var(--fx-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-mist);
}

.fx-footer__note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--fx-mist);
  max-width: 30em;
}

.fx-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--fx-line);
  font-size: 0.78rem;
  color: var(--fx-mist);
}

.fx-footer__icp {
  font-family: var(--fx-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--fx-amber);
}

.fx-footer__copy { color: var(--fx-mist); }

/* ---------- 9. 通用内容组件 ---------- */
.fx-card {
  background: #fff;
  color: var(--fx-ink);
  border: 1px solid var(--fx-line-dark);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow);
}

.fx-card--ink {
  background: var(--fx-ink);
  color: var(--fx-cream);
  border-color: var(--fx-line);
  box-shadow: none;
}

.fx-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  font-family: var(--fx-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-ember);
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

.fx-tag--cyan { color: var(--fx-cyan-deep); }
.fx-tag--amber { color: #8a5a05; border-color: var(--fx-amber); background: var(--fx-sand); }
.fx-tag--inverse { color: var(--fx-cyan); }

.fx-num {
  display: block;
  font-family: var(--fx-font-mono);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fx-flame);
  font-variant-numeric: tabular-nums;
}

/* 面包屑 */
.fx-breadcrumb { font-size: 0.78rem; letter-spacing: 0.02em; }

.fx-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.fx-breadcrumb__list > li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: none;
}

.fx-breadcrumb__list > li + li::before {
  content: "/";
  color: var(--fx-ember);
  opacity: 0.7;
}

.fx-breadcrumb__link {
  color: var(--fx-mist);
  text-decoration: none;
  transition: color var(--fx-fast) ease;
}
.fx-breadcrumb__link:hover { color: var(--fx-ember); }

.fx-breadcrumb__current { color: var(--fx-ink); font-weight: 600; }

.fx-breadcrumb--inverse .fx-breadcrumb__link { color: rgba(255, 248, 240, 0.62); }
.fx-breadcrumb--inverse .fx-breadcrumb__link:hover { color: var(--fx-amber); }
.fx-breadcrumb--inverse .fx-breadcrumb__current { color: var(--fx-cream); }
.fx-breadcrumb--inverse .fx-breadcrumb__list > li + li::before { color: var(--fx-amber); }

/* 图片容器基础规则 */
.fx-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--fx-line-dark);
  border-radius: var(--fx-radius);
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(24, 214, 196, 0.18), transparent 58%),
    linear-gradient(150deg, var(--fx-indigo) 0%, var(--fx-ink) 56%, var(--fx-wine) 100%);
}

.fx-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fx-media--16x9 { aspect-ratio: 16 / 9; }
.fx-media--4x3  { aspect-ratio: 4 / 3; }
.fx-media--1x1  { aspect-ratio: 1 / 1; }
.fx-media--21x9 { aspect-ratio: 21 / 9; }
.fx-media--natural { aspect-ratio: auto; }

.fx-media--on-dark { border-color: var(--fx-line); }

.fx-media__tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  font-family: var(--fx-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-amber);
  background: rgba(20, 20, 22, 0.88);
  border-radius: var(--fx-radius);
}

/* 滚动浮现 */
.fx-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fx-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1180px) {
  .fx-brand__sub { display: none; }
}

@media (max-width: 1000px) {
  .fx-header__inner { min-height: 64px; }
  .fx-header.is-condensed .fx-header__inner { min-height: 56px; }

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

  .fx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.35rem var(--fx-gutter) 1rem;
    background: var(--fx-ink);
    border-top: 1px solid var(--fx-line);
    border-bottom: 1px solid var(--fx-line);
    box-shadow: 0 26px 44px -28px rgba(0, 0, 0, 0.92);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height var(--fx-base) ease,
                opacity 200ms ease,
                visibility var(--fx-base) ease;
  }

  .fx-nav[data-open="true"] {
    max-height: 76vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .fx-nav__link {
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 248, 240, 0.08);
  }

  .fx-nav__link + .fx-nav__link::before { display: none; }

  .fx-nav__link[aria-current="page"] {
    padding-left: 0.9rem;
    box-shadow: inset 3px 0 0 var(--fx-flame);
  }

  .fx-nav__link[aria-current="page"]::after { display: none; }
}

@media (max-width: 900px) {
  .fx-footer__top { grid-template-columns: minmax(0, 1fr); }
  .fx-footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fx-footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .fx-header__cta { display: none; }
  .fx-footer__meta { font-size: 0.74rem; }
}

@media (max-width: 620px) {
  .fx-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .fx-footer__col--contact { grid-column: auto; }
  .fx-status { padding: 0.28rem 0.55rem; font-size: 0.7rem; }
}

@media (max-width: 460px) {
  .fx-status__text { display: none; }
  .fx-status { padding: 0.36rem; gap: 0; }
  .fx-brand__wordmark { font-size: 1.02rem; }
  .fx-brand__mark { width: 28px; height: 28px; }
}

/* ---------- 11. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .fx-status__dot { animation: none; box-shadow: 0 0 0 3px rgba(24, 214, 196, 0.22); }
  .fx-reveal { opacity: 1; transform: none; }
  .fx-brand:hover .fx-brand__mark { transform: none; }
}
