/* ==========================================================================
   火狐体育入口 · 共享站点样式 /assets/site.css
   01 Reset  02 Tokens  03 Typography  04 Layout  05 Buttons
   06 Header 07 Footer  08 Components  09 Motion & A11y
   ========================================================================== */

/* 01 · Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { 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; text-decoration: none; }

/* 02 · Tokens ------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --pulse-orange: #FF5A1F;
  --blaze-orange: #FF8A4C;
  --read-orange: #C2410C;
  --charcoal: #12161A;
  --graphite: #1E252B;
  --moss: #1F4B3F;
  --moss-bright: #3E8C74;
  --steel: #7C93A8;
  --mist: #C3D2DE;
  --paper: #F6F3ED;
  --mint: #6FE3C4;

  /* 语义色 */
  --ink-strong: #F6F3ED;
  --ink-base: #C3D2DE;
  --ink-muted: #7C93A8;
  --ink-dim: #5D707F;
  --line-soft: rgba(195, 210, 222, 0.16);
  --line-faint: rgba(195, 210, 222, 0.09);

  /* 字体 */
  --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", ui-monospace, SFMono-Regular, Menlo,
    Consolas, "Liberation Mono", monospace;
  --font-num: "Barlow Condensed", "DIN Condensed", "Oswald",
    "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;

  /* 尺寸 */
  --cut: 14px;
  --cut-lg: 20px;
  --wrap: 1280px;
  --gutter: 24px;
  --gap: 24px;

  /* 层级 */
  --z-header: 300;
  --z-skip: 400;
  --z-top: 250;
}

/* 03 · Typography --------------------------------------------------------- */
body {
  min-height: 100%;
  background-color: var(--charcoal);
  color: var(--ink-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* 04 · Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 05 · Buttons ------------------------------------------------------------ */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn--pulse {
  color: var(--charcoal);
}

.btn--pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(100deg, var(--pulse-orange), var(--blaze-orange));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-image 0.2s ease;
}

.btn--pulse:hover::before {
  background-image: linear-gradient(100deg, var(--blaze-orange), var(--pulse-orange));
}

.btn--pulse:active { transform: translateY(1px); }

.btn--ghost {
  color: var(--ink-strong);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn--ghost:hover {
  color: var(--pulse-orange);
  border-color: var(--pulse-orange);
  background-color: rgba(255, 90, 31, 0.08);
}

/* 06 · Header ------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 20px;
  background-color: var(--pulse-orange);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transform: translateY(-150%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--charcoal);
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line-faint);
}

/* --- 上层值班条 --- */
.header-top {
  background-color: var(--charcoal);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(195, 210, 222, 0.045) 0 1px,
    transparent 1px 10px
  );
  border-bottom: 1px solid var(--line-faint);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  min-height: 62px;
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink-strong);
}

.brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  background-image: linear-gradient(150deg, var(--pulse-orange), var(--blaze-orange));
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 10px;
  width: 4px;
  height: 18px;
  background-color: var(--charcoal);
  transform: skewX(-14deg);
}

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

.brand__name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-top__aside {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.header-note__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(111, 227, 196, 0.16);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 227, 196, 0.16); }
  50%      { box-shadow: 0 0 0 6px rgba(111, 227, 196, 0.04); }
}

/* --- 下层栏目条 --- */
.header-main {
  background-color: var(--graphite);
}

.header-main__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--wrap);
  min-height: 54px;
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.primary-nav { margin-right: auto; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__item { display: block; }

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 17px 14px;
  color: var(--ink-base);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 3px;
  background-color: var(--pulse-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-nav__link:hover { color: var(--ink-strong); }
.primary-nav__link:hover::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] {
  color: var(--ink-strong);
  font-weight: 700;
}

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

.utility-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--ink-base);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background-color: rgba(195, 210, 222, 0.03);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.utility-link::before {
  content: "";
  width: 5px;
  height: 5px;
  background-color: var(--blaze-orange);
  transform: rotate(45deg);
}

.utility-link:hover {
  color: var(--charcoal);
  background-color: var(--mist);
  border-color: var(--mist);
}

/* --- 移动抽屉按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--ink-strong);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.nav-toggle__icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.site-header[data-open] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-header[data-open] .nav-toggle { border-color: var(--pulse-orange); color: var(--pulse-orange); }

/* --- 阅读进度轨 --- */
.reading-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: rgba(195, 210, 222, 0.1);
  overflow: hidden;
}

.reading-track__bar {
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    90deg,
    var(--pulse-orange) 0%,
    var(--blaze-orange) 52%,
    var(--mint) 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* 07 · Footer ------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background-color: var(--charcoal);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(195, 210, 222, 0.035) 0 1px,
    transparent 1px 12px
  );
  color: var(--ink-base);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-image: linear-gradient(
    90deg,
    var(--pulse-orange) 0 24%,
    var(--moss-bright) 24% 54%,
    var(--steel) 54% 100%
  );
}

.footer-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 64px var(--gutter) 40px;
}

.footer-lead { min-width: 0; }

.brand--footer .brand__name { font-size: 20px; }
.brand--footer .brand__line { letter-spacing: 0.08em; }

.footer-intro {
  max-width: 40ch;
  margin-top: 22px;
  color: var(--ink-base);
  font-size: 15px;
  line-height: 1.85;
}

.footer-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.footer-facts li {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background-color: rgba(195, 210, 222, 0.04);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
}

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

.footer-col { min-width: 0; }

.footer-col__title {
  margin-bottom: 16px;
  color: var(--pulse-orange);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
}

.footer-col__list {
  display: grid;
  gap: 11px;
}

.footer-link {
  display: inline-block;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.6;
  transform-origin: left center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-link:hover {
  color: var(--paper);
  transform: translateX(4px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 28px var(--gutter);
  border-top: 1px dashed var(--line-soft);
}

.contact-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.contact-item__key {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.contact-item__val {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 44px;
  border-top: 1px solid var(--line-faint);
}

.footer-legal__copy {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* --- 返回顶部 --- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-top);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background-color: var(--graphite);
  color: var(--paper);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s,
    background-color 0.2s ease, color 0.2s ease;
}

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

.to-top:hover {
  background-color: var(--pulse-orange);
  color: var(--charcoal);
  border-color: var(--pulse-orange);
}

.to-top:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--mint);
}

.to-top__arrow {
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* 08 · Components --------------------------------------------------------- */
/* --- 面包屑 --- */
.breadcrumb {
  padding: 22px 0 4px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(124, 147, 168, 0.55);
}

.breadcrumb__link {
  color: var(--mist);
  transition: color 0.18s ease;
}

.breadcrumb__link:hover { color: var(--pulse-orange); }

/* --- 响应式图片容器 --- */
.figure {
  position: relative;
  margin: 0;
  background-color: var(--graphite);
}

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-image: linear-gradient(145deg, var(--graphite), #0B0E11);
}

.figure__media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 90, 31, 0.16), transparent 58%),
    repeating-linear-gradient(
      115deg,
      rgba(195, 210, 222, 0.07) 0 1px,
      transparent 1px 14px
    );
}

.figure__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  margin-top: 10px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.figure--wide .figure__media   { aspect-ratio: 21 / 9; }
.figure--tall .figure__media   { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

/* 09 · Motion & A11y ------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn--pulse:focus-visible { outline-offset: 4px; }

.utility-link:focus-visible { outline-offset: 3px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .header-note { display: none; }
}

@media (max-width: 1023px) {
  .site-header { position: sticky; }

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

  .header-main__inner {
    justify-content: space-between;
    min-height: 58px;
    padding-block: 8px;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin-right: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background-color: var(--charcoal);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }

  .primary-nav__link {
    width: 100%;
    padding: 15px var(--gutter);
    font-size: 16px;
  }

  .primary-nav__link::after {
    left: 0;
    right: auto;
    top: 13px;
    bottom: auto;
    width: 3px;
    height: calc(100% - 26px);
    transform: scaleY(0);
    transform-origin: left top;
  }

  .primary-nav__link:hover::after,
  .primary-nav__link[aria-current="page"]::after {
    transform: scaleY(1);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 52px;
  }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .header-top__inner {
    min-height: 56px;
    gap: 14px;
  }

  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 16px; }
  .brand__line { font-size: 10px; letter-spacing: 0.04em; }

  .btn { padding: 10px 16px; font-size: 13px; }

  .utility-link { display: none; }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-contact { padding-block: 22px; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 38px;
  }

  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }

  .brand__line { display: none; }

  .header-top__aside { gap: 10px; }

  .footer-cols { grid-template-columns: 1fr; }

  .footer-facts { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .header-note__dot { animation: none; }
}
