/* ============================================================
   火狐体育主站 · /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

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

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --flame: #FF6B1A;
  --amber: #FFB347;
  --cyan: #00E5FF;
  --ink: #111418;
  --ink-deep: #0C0F13;
  --ink-soft: #151A20;
  --void: #1D232B;
  --rock: #3A424C;
  --paper: #F4F0E8;
  --moss: #4F6B52;
  --moss-lit: #8FB894;
  --clay: #B85C38;
  --smoke: #C9D1D9;

  /* 线与面 */
  --line: rgba(58, 66, 76, 0.78);
  --line-soft: rgba(58, 66, 76, 0.42);
  --veil: rgba(201, 209, 217, 0.78);
  --veil-dim: rgba(201, 209, 217, 0.46);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 节奏 */
  --max: 1440px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --ease: cubic-bezier(0.22, 0.72, 0.28, 1);
  --dur: 0.2s;

  color-scheme: dark;
}

/* ---------- 3. 中文排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(255, 107, 26, 0.11), transparent 62%),
    radial-gradient(820px 540px at -6% 34%, rgba(0, 229, 255, 0.06), transparent 66%),
    var(--ink);
  color: var(--smoke);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  color: var(--paper);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(38px, 6.2vw, 56px); line-height: 1.07; }
h2 { font-size: clamp(28px, 4.2vw, 36px); line-height: 1.16; }
h3 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.28; }
h4 { font-size: clamp(17px, 2vw, 19px); line-height: 1.35; }

p { text-wrap: pretty; }

strong { font-weight: 700; }

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

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

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

.section--paper {
  background: var(--paper);
  color: #2A3038;
}
.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--ink); }

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

/* ---------- 5. 跳跃链接 ---------- */
.skip-link {
  position: fixed;
  top: -110px;
  left: 16px;
  z-index: 200;
  padding: 11px 18px 12px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 14px; outline: none; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0F1216 0%, #141922 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 44px -36px rgba(0, 0, 0, 0.95);
}

/* 6.1 信息轨 */
.header-rail {
  background:
    repeating-linear-gradient(90deg, rgba(255, 107, 26, 0.10) 0 1px, transparent 1px 6px),
    var(--ink-deep);
  border-bottom: 1px solid var(--line-soft);
}

.header-rail__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--veil-dim);
}

.rail-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flame);
  animation: rail-pulse 2.6s var(--ease) infinite;
}

@keyframes rail-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 107, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0); }
}

.rail-text { color: var(--flame); }
.rail-spacer { flex: 1 1 auto; }
.rail-note { color: rgba(201, 209, 217, 0.38); }

/* 6.2 刊头 */
.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 15px 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  padding: 7px 13px 8px;
  background: var(--flame);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  transition: background var(--dur) var(--ease);
}
.brand:hover .brand__mark { background: var(--amber); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--paper);
  transform: skewX(-6deg);
  transform-origin: left center;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(201, 209, 217, 0.4);
}

/* 6.3 移动端切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 10px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--flame);
  color: var(--flame);
  background: rgba(255, 107, 26, 0.08);
}
.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.nav-toggle__bars {
  display: grid;
  gap: 3.5px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars i:nth-child(2) { width: 72%; }
.nav-toggle__bars i:nth-child(3) { width: 88%; }

/* 6.4 栏目导航 */
.primary-nav {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(29, 35, 43, 0.55), rgba(12, 15, 19, 0.68));
}

.primary-nav__inner {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.primary-nav__inner::-webkit-scrollbar { display: none; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 0 10px;
}

.primary-nav__list a {
  position: relative;
  display: block;
  padding: 8px 15px 9px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--veil);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.primary-nav__list a:hover {
  color: var(--paper);
  background: rgba(255, 107, 26, 0.10);
  border-color: rgba(255, 107, 26, 0.42);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 107, 26, 0.14);
  border-color: rgba(255, 107, 26, 0.6);
}

.primary-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 3px;
  background: var(--flame);
  transform: skewX(-32deg);
}

/* 6.5 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--flame) 0%, var(--amber) 52%, var(--cyan) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.scroll-progress[data-active="true"] { opacity: 1; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 104px);
  background: linear-gradient(180deg, #0C0F13 0%, #0A0D10 100%);
  color: var(--veil);
}

/* 斜切封盖 */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -34px;
  height: 34px;
  background: #0C0F13;
  clip-path: polygon(0 100%, 0 68%, 100% 0, 100% 100%);
}

/* 能量收口线 */
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flame) 0%, rgba(255, 107, 26, 0.12) 46%, var(--cyan) 100%);
  opacity: 0.75;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 38px 30px;
  padding-block: 50px 40px;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand__link .brand__mark {
  font-size: 15px;
  padding: 6px 11px 7px;
}
.footer-brand__link:hover .brand__mark { background: var(--amber); }

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--paper);
  transform: skewX(-6deg);
  transform-origin: left center;
}

.footer-brand__desc {
  max-width: 42ch;
  font-size: 13.5px;
  line-height: 1.88;
  color: rgba(201, 209, 217, 0.62);
}

.footer-nav__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--flame);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list a {
  font-size: 14px;
  color: rgba(201, 209, 217, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact .footer-list { gap: 10px; }

.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-key {
  flex: none;
  min-width: 42px;
  letter-spacing: 0.16em;
  color: var(--moss-lit);
}

.footer-value { color: rgba(201, 209, 217, 0.76); word-break: break-word; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(201, 209, 217, 0.46);
}
.footer-meta { color: rgba(0, 229, 255, 0.5); }

/* ---------- 8. 通用组件 ---------- */
/* 8.1 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px 14px;
  background: var(--flame);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { background: var(--amber); transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--cyan);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  clip-path: none;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--rock);
}
.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.07);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
  transform: translateY(-3px);
}
.btn--ghost:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.btn--cyan { background: var(--cyan); color: var(--ink-deep); }
.btn--cyan:hover { background: #66F1FF; }

/* 8.2 面包屑 */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--veil-dim);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "/";
  color: var(--flame);
}
.crumbs a {
  color: var(--veil);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* 8.3 正文容器 */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(201, 209, 217, 0.84);
}
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 46px; font-size: clamp(24px, 3.4vw, 30px); }
.prose h3 { margin-top: 34px; font-size: clamp(19px, 2.4vw, 22px); }
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.45);
  transition: border-color var(--dur) var(--ease);
}
.prose a:hover { border-bottom-color: var(--cyan); }
.prose strong { color: var(--paper); font-weight: 700; }
.prose ul,
.prose ol { padding-left: 1.35em; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: 0.78em;
  width: 9px;
  height: 2px;
  background: var(--flame);
  transform: skewX(-32deg);
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--flame);
  color: var(--smoke);
  font-style: italic;
}
.prose code {
  padding: 2px 6px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.prose hr {
  height: 1px;
  border: 0;
  background: var(--line);
}

/* 8.4 图片容器（页面阶段放置图片/SVG） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: var(--media-ratio, 16 / 9);
  background:
    radial-gradient(62% 72% at 28% 18%, rgba(255, 107, 26, 0.22), transparent 66%),
    linear-gradient(160deg, #1D232B 0%, #0E1216 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { --media-ratio: 21 / 9; }
.media-frame--tall { --media-ratio: 3 / 4; }
.media-frame--square { --media-ratio: 1 / 1; }
.media-frame--paper {
  background: linear-gradient(160deg, #F4F0E8 0%, #E4DED2 100%);
  border-color: rgba(58, 66, 76, 0.28);
}
.media-frame__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 13px 8px;
  background: var(--flame);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 8.5 标注与装饰 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--flame);
  transform: skewX(-32deg);
}

.tag {
  display: inline-block;
  padding: 4px 10px 5px;
  background: rgba(79, 107, 82, 0.22);
  color: #A8C4AB;
  border: 1px solid rgba(79, 107, 82, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.mono,
.stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.stat {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.skew-lede {
  display: inline-block;
  transform: skewX(-6deg);
  transform-origin: left bottom;
}

.trail {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--flame) 0%, rgba(255, 107, 26, 0) 72%);
  transform: skewX(-30deg);
  transform-origin: left center;
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-contact { grid-column: 1 / -1; }
}

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

@media (max-width: 880px) {
  .masthead { justify-content: space-between; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    max-height: 0;
    overflow: hidden;
    border-top: 0;
    transition: max-height 0.28s var(--ease);
  }
  .primary-nav[data-open="true"] {
    max-height: 460px;
    overflow-y: auto;
    border-top: 1px solid var(--line-soft);
  }

  .primary-nav__inner {
    justify-content: flex-start;
    overflow-x: visible;
  }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    padding: 10px 0 16px;
  }
  .primary-nav__list a {
    padding: 11px 14px 12px;
    font-size: 15px;
  }
  .primary-nav__list a[aria-current="page"]::after {
    left: 14px;
    right: auto;
    width: 26px;
    bottom: 6px;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 22px;
    padding-block: 40px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .header-rail__inner {
    min-height: 28px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
  .rail-note { display: none; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { padding: 12px 20px 13px; font-size: 14px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand,
  .footer-contact { grid-column: auto; }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- 10. 减弱动效 ---------- */
@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,
  .btn--ghost:hover { transform: none; }

  .rail-dot { animation: none; }
  .scroll-progress { transition: none; }
}
