/* ==========================================================================
   火狐体育站 — /assets/site.css
   共享外壳：重置 / 令牌 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #6B6560 #F5F1E8;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, fieldset {
  margin: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

::selection { background: #FF6B1A; color: #FFFFFF; }

/* 2. 设计令牌 -------------------------------------------------------------- */
:root {
  --fox: #FF6B1A;
  --fox-deep: #C2410C;
  --ink: #141414;
  --ink-2: #2A211B;
  --grey: #E8E8E8;
  --mist: #6B6560;
  --cream: #F5F1E8;
  --mint: #2EF2C6;
  --mint-deep: #0E7C63;
  --paper: #FFFFFF;

  --font-head: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC",
               "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei",
               system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas,
               "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 160ms;
  --gutter: clamp(20px, 4vw, 72px);
  --shell: 1560px;
  --header-h: 64px;
}

/* 3. 基础与中文排版 --------------------------------------------------------- */
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .01em;
}

p { max-width: 66ch; }

strong, b { font-weight: 700; }

/* 4. 通用工具类 ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: 960px; }

.section { padding: clamp(48px, 6vw, 96px) 0; }

.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--grey);
  margin: 0;
}

.display {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 96px);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.04;
}

.h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.12;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

.label--fox { color: var(--fox-deep); }
.label--live { color: var(--mint-deep); }

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

.prose {
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.prose > * + * { margin-top: 1em; }

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

/* 5. 焦点与可访问性 -------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--fox);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 10px 16px;
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 12px; }

/* 6. 按钮体系 -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn--primary {
  background-color: var(--fox);
  border-color: var(--fox);
  color: #FFFFFF;
}

.btn--primary:hover {
  background-color: var(--fox-deep);
  border-color: var(--fox-deep);
}

.btn--ghost:hover {
  background-color: var(--ink);
  color: var(--cream);
}

.btn--mint {
  background-color: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

.btn--mint:hover {
  background-color: var(--mint-deep);
  border-color: var(--mint-deep);
  color: #FFFFFF;
}

.btn--sm { padding: 8px 13px; font-size: 13px; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.link-more::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.link-more:hover { color: var(--fox-deep); border-color: var(--fox); }
.link-more:hover::after { transform: translateX(3px); }

/* 7. 面包屑 ---------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
}

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.breadcrumbs a:hover { color: var(--fox-deep); }
.breadcrumbs .sep { color: var(--grey); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* 8. 卡片 / 色块 / 标签 / 数据块 -------------------------------------------- */
.card {
  background-color: var(--paper);
  border: 1px solid var(--grey);
  padding: 22px;
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--fox);
  background-color: var(--cream);
}

.panel-dark { background-color: var(--ink-2); color: var(--cream); }
.panel-ink { background-color: var(--ink); color: var(--cream); }
.panel-fox { background-color: var(--fox); color: #FFFFFF; }

.panel-dark, .panel-ink, .panel-fox { padding: clamp(28px, 4vw, 56px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--ink);
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
}

.tag--fox { background-color: var(--fox); border-color: var(--fox); color: #FFFFFF; }

.tag--live {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--mint);
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--mint);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  color: var(--ink);
}

.stat-value--fox { color: var(--fox-deep); }
.stat-value--live { color: var(--mint-deep); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 9. 图片容器基础规则（页面阶段放置图片占位） ------------------------------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ink);
  background-color: var(--ink);
  aspect-ratio: 16 / 9;
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.08) brightness(.94);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(20,20,20,.46), rgba(20,20,20,0) 48%);
  pointer-events: none;
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 7px 12px;
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--tall { aspect-ratio: 2 / 3; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--fox { border-color: var(--fox); }

/* 10. 头部：紧凑命令栏 ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--cream);
  border-bottom: 1px solid var(--ink);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--fox);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}

.site-header[data-compact] .header-inner { height: 52px; }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background-color: var(--fox);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--dur) var(--ease);
}

.brand:hover .brand-mark { background-color: var(--fox-deep); }

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .08em;
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--mist);
}

/* 主导航 */
.primary-nav { flex: 0 1 auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 13px 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 22px;
  margin-top: -11px;
  background-color: var(--fox);
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover {
  background-color: var(--grey);
  color: var(--ink);
}

.nav-link:hover::before { transform: scaleY(1); }

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-link[aria-current="page"]::before { transform: scaleY(1); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.nav-link[aria-current="page"] .nav-index { color: var(--fox-deep); }

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin-left: auto;
}

.header-utility {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header-utility:hover {
  color: var(--fox-deep);
  border-bottom-color: var(--fox);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { background-color: var(--ink); color: var(--cream); }

.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.label-close { display: none; }

.nav-toggle[aria-expanded="true"] .label-open { display: none; }
.nav-toggle[aria-expanded="true"] .label-close { display: inline; }

/* 11. 页脚：深棕黑反相条 ---------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--ink-2);
  color: var(--cream);
  border-top: 3px solid var(--fox);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 2fr 1.25fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 241, 232, .18);
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background-color: var(--fox);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.footer-brand-name {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--cream);
}

.footer-brand-line {
  margin-top: 8px;
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(245, 241, 232, .66);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fox);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  color: rgba(245, 241, 232, .78);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  background-color: var(--fox);
  transition: width var(--dur) var(--ease), margin-right var(--dur) var(--ease);
}

.footer-link:hover { color: var(--fox); }
.footer-link:hover::before { width: 14px; margin-right: 8px; }

.footer-contact-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fox);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 241, 232, .78);
}

.footer-contact-list > li { max-width: 30ch; }

.footer-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cream);
  word-break: break-all;
}

.footer-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 241, 232, .14);
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(245, 241, 232, .55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(245, 241, 232, .6);
}

.footer-legal { max-width: none; }
.footer-copy { max-width: none; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background-color: var(--fox);
  border-color: var(--fox);
  color: #FFFFFF;
}

/* 12. 响应式 --------------------------------------------------------------- */
@media (max-width: 1279px) {
  .header-utility { display: none; }
  .header-actions { gap: 12px; }
}

@media (max-width: 1023px) {
  .grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

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

  .header-inner { gap: 14px; }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: var(--cream);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .primary-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid var(--grey);
  }

  .nav-link::before {
    top: 0;
    left: 0;
    height: 100%;
    margin-top: 0;
    transform-origin: 0 50%;
  }

  .nav-link[aria-current="page"] { background-color: var(--grey); }

  .brand-sub { display: none; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cols { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-brand-line,
  .footer-contact-list > li,
  .footer-note { max-width: 52ch; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }

  .grid-12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .brand-name { font-size: 15px; }
  .brand-mark { width: 26px; height: 26px; font-size: 14px; }
  .btn { padding: 9px 13px; font-size: 14px; }
  .nav-toggle { padding: 8px 10px; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { padding-bottom: 84px; }
  .to-top { width: 44px; height: 44px; }
}

/* 13. 动效偏好 ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .to-top { transform: none; }
}
