/* ==========================================================================
   火狐体育官网 · 共享样式 /assets/site.css
   夜间球场 + 数据仪表盘：深炭底、橙色光源、冷灰网格、锐利直角
   ========================================================================== */

:root {
  --ink: #0B0C0E;
  --panel: #14161A;
  --card: #1F232A;
  --line: #2E343D;
  --mute: #8A929E;
  --body: #D6DAE0;
  --white: #F5F7FA;
  --orange: #FF6A00;
  --orange-2: #FF8A3D;
  --orange-soft: rgba(255, 106, 0, 0.12);
  --magenta: #FF2E7E;
  --mint: #00F0B5;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --sans: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 80% -8%, rgba(255, 106, 0, 0.10), transparent 62%),
    radial-gradient(820px 480px at 4% 6%, rgba(255, 46, 126, 0.06), transparent 64%),
    var(--ink);
  background-attachment: fixed;
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--white);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

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

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

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

[id] { scroll-margin-top: 170px; }

/* ---------- 全站容器 ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 11px 18px;
  border-radius: 2px;
  background: var(--orange);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: top 0.18s var(--ease);
}
.skip-link:focus {
  top: 14px;
}

/* ==========================================================================
   头部 · 居中刊头导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 22, 26, 0.95);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--magenta) 32%, var(--line) 72%);
  opacity: 0.85;
  pointer-events: none;
}

.masthead { padding: 0; }

.masthead__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 16px 12px;
}

.masthead__meta {
  justify-self: start;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
}

.masthead__brand {
  justify-self: center;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.2s var(--ease);
}
.brand:hover { color: var(--white); }

.brand__mark {
  width: 9px;
  height: 26px;
  background: linear-gradient(180deg, var(--orange), var(--magenta));
  transform: skewX(-14deg);
}

.brand__name { display: inline-block; }

.brand__suffix {
  display: inline-block;
  color: var(--orange);
}

.brand__tag {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.30em;
  color: var(--mute);
  text-indent: 0.30em;
}

.masthead__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.masthead__cta::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--orange);
  transition: width 0.24s var(--ease);
}
.masthead__cta:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.masthead__cta:hover::before { width: 52px; }

/* ---------- 导航 ---------- */
.navbar {
  position: relative;
  border-top: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.20em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange); }

.nav-toggle__sign {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: var(--orange);
  transition: transform 0.24s var(--ease);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3.4vw, 48px);
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 15px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--body);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}
.nav__num {
  display: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--mute);
}
.nav__link:hover {
  color: var(--white);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--white);
}
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 112px);
  padding-block: clamp(40px, 5vw, 60px) 26px;
  background: var(--panel);
  border-top: 1px solid var(--orange);
  color: var(--mute);
  font-size: 13px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 42%);
  height: 1px;
  background: linear-gradient(90deg, var(--magenta), transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.25fr;
  gap: 40px 36px;
  align-items: start;
}

.footer__brand {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
}
.footer__brand::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--orange), var(--magenta));
}

.footer__tagline {
  max-width: 24em;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--mute);
}

.footer__mark {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--line);
  color: #4A525D;
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--white);
  line-height: 1;
}
.footer__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--orange);
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}

.footer__link {
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--body);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.contact-list { margin: 0; }

.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:first-child { padding-top: 0; }

.contact-row__key {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
  line-height: 1.8;
}

.contact-row__val {
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
  word-break: break-word;
}

.copy-btn {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.copy-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.copy-btn[data-copied="true"] {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(0, 240, 181, 0.08);
}

.footer__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--mute);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer__legaltext {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.footer__legalLink {
  color: var(--mute);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__legalLink + .footer__legalLink { margin-left: 20px; }
.footer__legalLink:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 滚动进度条 & 回顶 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--orange), var(--magenta));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), visibility 0.22s;
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.to-top__arrow {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   通用组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--orange-2);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.btn--sm {
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--orange);
}

.lede {
  max-width: 34em;
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
}

.section {
  padding-block: clamp(38px, 5.4vw, 70px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.section__note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--mute);
}

.grid {
  display: grid;
  gap: 24px;
}
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.card {
  position: relative;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease);
}
.card--link:hover,
.card--link:focus-within {
  border-color: var(--orange);
}

.card__kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.card__title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mute);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.chip:hover {
  border-color: var(--orange);
  color: var(--white);
}
.chip--active,
.chip[aria-pressed="true"] {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 13px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "／";
  color: var(--line);
}
.breadcrumb__link {
  color: var(--mute);
  transition: color 0.18s var(--ease);
}
.breadcrumb__link:hover { color: var(--orange); }
.breadcrumb__current {
  color: var(--body);
}

/* ---------- 图片容器基础规则（占位由页面阶段填充） ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, rgba(46, 52, 61, 0.55) 0 1px, transparent 1px 13px),
    var(--card);
}
.img-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
}
.img-frame--edge {
  border-left: 3px solid var(--orange);
}
.img-frame--link:hover > img {
  transform: scale(1.03);
}
.img-frame__tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 1px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.img-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(11, 12, 14, 0.92));
  color: var(--body);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__contactcol {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  body { background-attachment: scroll; }

  [id] { scroll-margin-top: 140px; }

  .masthead__grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta cta"
      "brand brand";
    row-gap: 10px;
    padding-block: 12px 10px;
  }
  .masthead__meta { grid-area: meta; font-size: 10px; }
  .masthead__brand { grid-area: brand; }
  .masthead__cta { grid-area: cta; font-size: 11px; letter-spacing: 0.16em; }
  .masthead__cta::before { width: 22px; }
  .brand__tag { letter-spacing: 0.22em; font-size: 9px; }

  .navbar { padding-block: 10px; }

  .nav-toggle { display: flex; }

  .nav {
    display: none;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }
  .site-header[data-open="true"] .nav { display: block; }
  .site-header[data-open="true"] .nav-toggle {
    border-color: var(--orange);
    color: var(--orange);
  }
  .site-header[data-open="true"] .nav-toggle__sign {
    transform: rotate(45deg);
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__item {
    border-bottom: 1px solid var(--line);
  }
  .nav__num {
    display: inline-block;
  }
  .nav__link {
    display: flex;
    width: 100%;
    padding: 13px 4px 13px 12px;
    border-left: 2px solid transparent;
    font-size: 15px;
    letter-spacing: 0.12em;
    color: var(--body);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] {
    color: var(--orange);
    border-left-color: var(--orange);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__contactcol { grid-column: auto; }
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand { font-size: 24px; }
  .lead, .lede { font-size: 15px; }
  .footer__links { grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .contact-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; }
  .copy-btn { padding: 4px 7px; font-size: 10px; }
  .footer__legalLink + .footer__legalLink { margin-left: 16px; }
}

/* ---------- 无障碍：减少动效 ---------- */
@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;
  }
  .img-frame--link:hover > img { transform: none; }
}
