/* ==========================================================================
   火狐体育 · 共享样式表 /assets/site.css
   结构：重置 → 变量 → 中文排版 → 通用组件 → 页头 → 页脚 → 图片容器 → 响应式
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  border: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --paper: #F4F1EC;
  --orange: #FF6B00;
  --orange-soft: #FF8A3D;
  --orange-deep: #A84300;
  --signal: #00FF88;
  --moss: #1F8A5A;
  --fog: #6B6B6B;
  --rule: #C9C4BC;
  --line-dark: #2E2E2E;

  /* 排版 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  /* 结构 */
  --rail-w: 0px;
  --bar-h: 56px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --edge: 20px;
  --content-max: 1240px;
}

/* ---------- 中文排版基线 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(28px, 4.2vw, 40px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 28px);
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong {
  font-weight: 800;
}

.section--dark a,
.site-footer a {
  color: var(--paper);
}

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

/* ---------- 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 300;
  padding: 12px 22px;
  background: var(--orange);
  color: #140900;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

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

#main-content {
  scroll-margin-top: calc(var(--bar-h) + 16px);
}

/* ---------- 容器与分区 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

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

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--panel {
  background: var(--ink-2);
  color: var(--paper);
}

.lede {
  max-width: 38em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.9;
  color: var(--fog);
}

.section--dark .lede,
.section--panel .lede {
  color: rgba(244, 241, 236, 0.68);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.section--dark .kicker,
.section--panel .kicker {
  color: var(--orange);
}

/* 刻度尺装饰 */
.rule-tick {
  height: 9px;
  border-bottom: 1px solid var(--rule);
  background-image: repeating-linear-gradient(
    90deg,
    var(--rule) 0 1px,
    transparent 1px 14px
  );
  background-position: 0 0;
  opacity: 0.9;
}

.rule-tick--dark {
  border-bottom-color: var(--line-dark);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-dark) 0 1px,
    transparent 1px 14px
  );
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease),
    border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #140900;
}

.btn--primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

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

.btn--link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--orange-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fog);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__sep {
  color: var(--rule);
}

.breadcrumb__link {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--orange-deep);
  border-bottom-color: currentColor;
}

.breadcrumb__current {
  color: var(--ink);
}

.section--dark .breadcrumb,
.section--panel .breadcrumb {
  color: rgba(244, 241, 236, 0.55);
}

.section--dark .breadcrumb__current,
.section--panel .breadcrumb__current {
  color: var(--paper);
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 90;
}

/* 顶部状态条 */
.hdr-bar {
  position: sticky;
  top: 0;
  z-index: 92;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--bar-h);
  padding: 0 var(--edge);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.hdr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 4px 4px 4px 0;
  color: var(--paper);
  text-decoration: none;
  flex: 0 0 auto;
}

.hdr-brand__mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 66% 100%, 0 100%);
  transition: background-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.hdr-brand:hover .hdr-brand__mark {
  background: var(--orange-soft);
  transform: rotate(-4deg);
}

.hdr-brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hdr-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.hdr-brand__tag {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: rgba(244, 241, 236, 0.58);
}

/* 今日更新状态 */
.hdr-stat {
  display: none;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 236, 0.62);
  white-space: nowrap;
}

.hdr-stat__led {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.14);
  animation: hdr-pulse 2.6s var(--ease) infinite;
}

@keyframes hdr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.hdr-stat__val {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.hdr-stat__unit {
  color: rgba(244, 241, 236, 0.45);
}

/* 主 CTA */
.hdr-cta {
  display: none;
  padding: 9px 16px;
  font-size: 13px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

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

.nav-toggle__box {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__text {
  line-height: 1;
}

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--signal));
  transition: transform 0.12s linear;
}

/* 主导航：移动端下拉面板 */
.site-nav {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  z-index: 91;
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  background: var(--ink-2);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0s linear 0.28s;
}

.site-nav[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0s linear 0s;
}

.site-nav__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  height: 46px;
  padding: 0 var(--edge);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 236, 0.45);
}

.site-nav__cap-cn::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--orange);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px var(--edge);
  color: rgba(244, 241, 236, 0.74);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
  background: rgba(255, 107, 0, 0.09);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 236, 0.36);
  transition: color 0.2s var(--ease);
}

.site-nav__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 107, 0, 0.13);
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
}

.site-nav__link[aria-current="page"] .site-nav__idx {
  color: var(--orange);
}

.site-nav__note {
  display: none;
  margin: 0;
  padding: 22px var(--edge) 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 236, 0.4);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
}

.foot-wave {
  height: 20px;
  background-color: var(--ink);
  background-image: radial-gradient(
    circle at 16px 20px,
    transparent 11px,
    rgba(255, 107, 0, 0.42) 11px 12px,
    transparent 12px
  );
  background-size: 32px 20px;
  background-repeat: repeat-x;
  background-position: 0 0;
  opacity: 0.85;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 44px var(--edge) 36px;
}

.foot-brand__name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.foot-brand__tag {
  display: inline-block;
  margin: 8px 0 0;
  padding: 3px 10px;
  background: var(--orange);
  color: #140900;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: skewX(-6deg);
}

.foot-brand__desc {
  margin: 16px 0 0;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(244, 241, 236, 0.58);
}

.foot-col__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.foot-col__list {
  display: grid;
  gap: 9px;
}

.foot-col__list a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: rgba(244, 241, 236, 0.74);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.foot-col__list a:hover {
  color: var(--orange);
  border-bottom-color: currentColor;
}

.foot-contact {
  display: grid;
  gap: 14px;
}

.foot-contact__row {
  display: grid;
  gap: 3px;
}

.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 236, 0.42);
}

.foot-contact__val {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(244, 241, 236, 0.82);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.foot-icp {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-dark);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 236, 0.55);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 18px var(--edge) 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: rgba(244, 241, 236, 0.46);
}

.foot-legal__copy {
  margin: 0;
}

.foot-legal__site {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 236, 0.34);
}

/* ==========================================================================
   图片容器基础规则（页面阶段放置占位）
   ========================================================================== */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  isolation: isolate;
}

.img-frame > img,
.img-frame > picture,
.img-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
}

.img-frame > img,
.img-frame > picture > img {
  object-fit: cover;
  filter: saturate(0.32) contrast(1.06);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--hero { aspect-ratio: 21 / 9; }

.img-frame--plain > img,
.img-frame--plain > picture > img {
  filter: none;
}

/* 橙色单色叠印 */
.img-frame--press::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    152deg,
    rgba(255, 107, 0, 0.46) 0%,
    rgba(255, 107, 0, 0.1) 58%,
    rgba(14, 14, 14, 0.32) 100%
  );
  mix-blend-mode: multiply;
}

/* 斜向运动模糊 */
.img-frame--motion > img,
.img-frame--motion > picture > img {
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.img-frame--motion:hover > img,
.img-frame--motion:hover > picture > img {
  transform: translate3d(-2%, -1.5%, 0) scale(1.04);
  filter: saturate(0.6) contrast(1.1);
}

.img-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 88%;
  margin: 0;
  padding: 8px 12px;
  background: rgba(14, 14, 14, 0.82);
  color: rgba(244, 241, 236, 0.8);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 560px) {
  :root {
    --edge: 26px;
  }

  .hdr-stat {
    display: inline-flex;
  }

  .foot-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-col--contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  :root {
    --edge: 32px;
  }

  .hdr-cta {
    display: inline-flex;
  }

  .nav-toggle {
    margin-left: 6px;
  }

  .foot-inner {
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: 40px 32px;
    padding-top: 56px;
  }

  .foot-brand {
    grid-column: auto;
  }

  .foot-col--contact {
    grid-column: auto;
  }

  .foot-legal {
    padding-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --rail-w: 176px;
    --edge: 40px;
  }

  body {
    padding-left: var(--rail-w);
    padding-top: var(--bar-h);
  }

  /* 顶部状态条固定在右侧 */
  .hdr-bar {
    position: fixed;
    top: 0;
    left: var(--rail-w);
    right: 0;
    z-index: 94;
    padding-inline: 28px;
    gap: 20px;
  }

  .hdr-cta {
    margin-left: 8px;
  }

  /* 左侧固定框线导航 */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    max-height: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 95;
    padding-bottom: 24px;
    background: var(--ink);
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-nav__cap {
    height: var(--bar-h);
    flex: 0 0 auto;
  }

  .site-nav__list {
    flex: 0 0 auto;
  }

  .site-nav__link {
    flex-direction: row;
    align-items: baseline;
    padding: 16px 18px;
  }

  .site-nav__note {
    display: block;
    margin-top: auto;
  }
}

@media (min-width: 1180px) {
  :root {
    --edge: 48px;
  }

  .foot-inner {
    grid-template-columns: 1.3fr 0.9fr 1.4fr 0.9fr;
    gap: 48px 40px;
    padding-top: 64px;
    padding-bottom: 52px;
  }
}

/* ---------- 动效降级 ---------- */
@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;
  }

  .scroll-meter__fill {
    transition: none;
  }

  .img-frame--motion:hover > img,
  .img-frame--motion:hover > picture > img {
    transform: none;
  }
}
