/* ===========================================================
   火狐体育入口 — 共享站点样式 /assets/site.css
   框架式导航 · Bento 模块 · 珠宝色章节 · 精密网格
   =========================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ff-orange: #FF5A1F;
  --ff-orange-deep: #C93C0A;
  --ink: #0B0E14;
  --ink-2: #111A2B;
  --blue: #2F7BFF;
  --lime: #B6FF3B;
  --teal: #0E3B3A;
  --wine: #4A1230;
  --indigo: #26124A;
  --mist: #F4F6FB;
  --graphite: #8792A6;
  --line: #2A3446;

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "DIN Alternate", "SFMono-Regular", ui-monospace, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 3px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

::selection { background: var(--ff-orange); color: #0B0E14; }

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 5.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.2vw, 3.1rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.45rem); letter-spacing: -.02em; line-height: 1.32; }
h4 { font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.4; }

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- 4. 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 104px); }

.grid { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.grid--bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.prose { max-width: 74ch; }
.prose p { margin-block: 1em; color: #D6DCE8; }
.prose p:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.1em; margin-bottom: .5em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .4em; color: #fff; }
.prose ul, .prose ol { margin-block: 1em; padding-left: 1.25em; list-style: disc; color: #D6DCE8; }
.prose li { margin-block: .35em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: 700; }

/* ---------- 5. 基础组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ff-orange);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--ff-orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(182, 255, 59, .55); }
.btn--primary { background: var(--ff-orange); color: #0B0E14; }
.btn--primary:hover { background: #FF7A47; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--mist); }
.btn--ghost:hover { border-color: var(--blue); background: rgba(47, 123, 255, .12); color: #fff; transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: #0B0E14; }
.btn--lime:hover { background: #CCFF6B; transform: translateY(-2px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite);
}
.chip--orange { border-color: rgba(255, 90, 31, .55); color: var(--ff-orange); }
.chip--lime { border-color: rgba(182, 255, 59, .5); color: var(--lime); }

.pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  flex: 0 0 auto;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.6); opacity: .9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 44px);
}

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 32px);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.card:hover { border-color: #3C4B66; transform: translateY(-2px); }
.card--focus {
  background:
    linear-gradient(150deg, rgba(255, 90, 31, .18), transparent 62%),
    var(--ink-2);
  border-color: rgba(255, 90, 31, .42);
}
.card--light { background: var(--mist); color: var(--ink); border-color: #DCE2EE; }
.card--light h3, .card--light h4 { color: var(--ink); }
.card--light p { color: #3A4356; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
}
.stat__num--lime { color: var(--lime); }
.stat__label {
  font-size: .76rem;
  letter-spacing: .07em;
  color: var(--graphite);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0) 42%, rgba(11, 14, 20, .8) 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--mist);
}

.breadcrumb {
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--graphite);
}
.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--line);
}
.breadcrumb a { color: var(--graphite); transition: color .18s; }
.breadcrumb a:hover { color: var(--ff-orange); }
.breadcrumb [aria-current="page"] { color: var(--mist); }

.toc {
  border-left: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.toc__title {
  padding-left: 16px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--graphite);
}
.toc__list { display: grid; gap: 2px; }
.toc__link {
  display: block;
  margin-left: -1px;
  padding: 8px 10px 8px 16px;
  border-left: 2px solid transparent;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--graphite);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.toc__link:hover { color: var(--mist); }
.toc__link[aria-current="true"] {
  color: var(--ff-orange);
  border-color: var(--ff-orange);
  background: rgba(255, 90, 31, .08);
}

.back-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--mist);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.back-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-top:hover { border-color: var(--ff-orange); color: var(--ff-orange); }

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  padding: 12px 22px;
  background: var(--lime);
  color: #0B0E14;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translate(-50%, -140%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 14, 20, .94);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ff-orange), var(--lime));
  box-shadow: 0 0 12px rgba(255, 90, 31, .75);
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #0B0E14;
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-deep));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 86% 100%, 0 100%);
}
.brand-text { display: block; min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #fff;
}
.brand-tag {
  display: block;
  margin-top: 3px;
  font-size: .67rem;
  letter-spacing: .09em;
  line-height: 1.35;
  color: var(--graphite);
}
.brand--footer .brand-mark { width: 42px; height: 42px; }
.brand--footer .brand-name { font-size: 1.12rem; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 18px);
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 2px 12px;
  font-size: .86rem;
  font-weight: 500;
  color: #C6CDDB;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--ff-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(255, 90, 31, .85);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ff-orange);
  color: #0B0E14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: #FF7A47; transform: translateY(-1px); }
.nav-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(182, 255, 59, .55); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mist);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--ff-orange); }
.nav-toggle__box {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--ff-orange);
  transition: transform .25s var(--ease);
}
[data-nav-toggle][aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(3px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(46%, 520px);
  height: 3px;
  background: linear-gradient(90deg, var(--ff-orange), rgba(255, 90, 31, 0));
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .3;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 48px);
}

.footer-brand { min-width: 0; }
.footer-summary {
  margin-top: 18px;
  max-width: 34ch;
  font-size: .88rem;
  line-height: 1.7;
  color: #B9C2D2;
}
.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  font-size: .82rem;
}
.footer-contact li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: baseline;
}
.footer-contact__k {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--graphite);
}
.footer-contact__v {
  color: #D6DCE8;
  word-break: break-word;
  line-height: 1.6;
}

.footer-col { min-width: 0; }
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  letter-spacing: .14em;
}
.footer-col__title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--ff-orange);
  flex: 0 0 auto;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a {
  display: inline-block;
  font-size: .88rem;
  color: #B9C2D2;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-links a:hover { color: var(--ff-orange); transform: translateX(3px); }

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--graphite);
}
.footer-copy, .footer-icp { margin: 0; }
.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: #6D788C;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 68px; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 42px -22px #000;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav[data-open="true"] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    display: block;
    padding: 15px 4px 15px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    white-space: normal;
  }
  .nav-link::after {
    left: 0;
    right: auto;
    top: 13px;
    bottom: 13px;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: left top;
    box-shadow: none;
  }
  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after { transform: scaleY(1); }
  .nav-link[aria-current="page"]::after { box-shadow: 0 0 9px rgba(255, 90, 31, .85); }

  .nav-cta {
    justify-content: center;
    margin-top: 18px;
    padding: 14px 20px;
    font-size: .92rem;
  }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-tag { display: none; }
  .brand-name { font-size: .95rem; }
  .brand-mark { width: 34px; height: 34px; font-size: .74rem; }
  .back-top { padding: 9px 12px; font-size: .72rem; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 9. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .pulse::after { animation: none; opacity: .4; }
  .card:hover,
  .btn:hover,
  .nav-cta:hover,
  .footer-links a:hover { transform: none; }
}
