/* =========================================================
   火狐体育入口 · 共享样式 /assets/site.css
   夜场快报面板 × 复古印刷纸感
   ========================================================= */

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

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

body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(26, 21, 18, .022) 0 1px, transparent 1px 6px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }
#main-content { display: block; }
#main-content:focus { outline: none; }

/* ---------------------------------------------------------
   变量
   --------------------------------------------------------- */
:root {
  --paper: #F4ECDD;
  --paper-white: #FFF9EF;
  --ink: #1A1512;
  --night: #0D1B2A;
  --fox: #E8451F;
  --ember: #B82F12;
  --cyan: #3DE0C4;
  --yellow: #F2B544;
  --warm-gray: #8B8175;
  --slate: #33414D;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --line: 2px;
  --shadow-paper: 0 2px 0 rgba(26, 21, 18, .07), 0 16px 30px -22px rgba(26, 21, 18, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------
   焦点与可访问性
   --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: clamp(12px, 3vw, 24px);
  top: -120px;
  z-index: 300;
  display: inline-block;
  padding: 12px 22px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: top .18s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------
   布局工具
   --------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}

.prose {
  max-width: 62ch;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.85;
}
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 800; color: var(--ink); }
.prose a { color: var(--ember); text-underline-offset: 3px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--fox);
}

.index-num {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--slate);
  border: 1px solid rgba(26, 21, 18, .22);
  background: var(--paper-white);
}

.rule-scale {
  height: 10px;
  border-top: 1px solid rgba(26, 21, 18, .22);
  background: repeating-linear-gradient(90deg, rgba(26, 21, 18, .38) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x;
  background-size: auto 5px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--ink);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   按钮
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  background: var(--paper-white);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper-white); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--yellow); }

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

.btn-ghost {
  background: transparent;
  color: var(--paper-white);
  border-color: var(--paper-white);
}
.btn-ghost:hover { background: var(--paper-white); color: var(--night); }

/* ---------------------------------------------------------
   面包屑
   --------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid rgba(26, 21, 18, .14);
}
.breadcrumb a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .16s var(--ease);
}
.breadcrumb a:hover { border-bottom-color: var(--fox); }
.breadcrumb-sep { color: var(--warm-gray); }

/* ---------------------------------------------------------
   图片容器基础规则
   --------------------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(61, 224, 196, .30) 0%, transparent 55%),
    linear-gradient(152deg, #0D1B2A 0%, #16283a 48%, #E8451F 100%);
  border: var(--line) solid var(--ink);
  box-shadow: 9px 9px 0 rgba(26, 21, 18, .12);
  color: var(--paper-white);
}
.media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 249, 239, .07) 0 1px, transparent 1px 5px);
}
.media-wide { aspect-ratio: 16 / 9; }
.media-tall { aspect-ratio: 3 / 4; }
.media-square { aspect-ratio: 1 / 1; }

/* ---------------------------------------------------------
   页头
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--paper);
  color: var(--ink);
  border-bottom: var(--line) solid var(--ink);
  transition: box-shadow .22s var(--ease);
}
.site-header[data-scrolled="true"] {
  box-shadow: 0 16px 28px -24px rgba(13, 27, 42, .95);
}

.header-ruler {
  height: 10px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, var(--fox) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 16px);
  opacity: .9;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.4vw, 34px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 15px var(--gutter);
  transition: padding .22s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner {
  padding-top: 9px;
  padding-bottom: 9px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-width: 0;
}

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

.brand-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--fox);
  color: var(--paper-white);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-3deg);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 0;
}
.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--warm-gray);
  white-space: nowrap;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 11px;
  border-left: 3px solid var(--fox);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--slate);
  white-space: nowrap;
}
.header-status-text { display: inline-block; }

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--fox);
  animation: fox-pulse 2.4s var(--ease) infinite;
}
@keyframes fox-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 69, 31, .55); }
  70% { box-shadow: 0 0 0 9px rgba(232, 69, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 69, 31, 0); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--night);
  color: var(--paper-white);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.nav-toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--yellow); }

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
  flex: none;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: top .18s var(--ease), transform .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 10px; }
.site-header[data-open="true"] .nav-toggle-icon::before {
  top: 5px;
  transform: rotate(45deg);
  background: var(--cyan);
}
.site-header[data-open="true"] .nav-toggle-icon::after {
  top: 5px;
  transform: rotate(-45deg);
  background: var(--cyan);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.nav-item { display: block; }

.nav-link {
  display: inline-block;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-white);
  border: 1.5px solid var(--ink);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease);
}
.nav-link:hover {
  background: var(--ink);
  color: var(--paper-white);
}
.nav-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--yellow);
}
.nav-link[aria-current="page"] {
  background: var(--fox);
  color: var(--paper-white);
  border-color: var(--ember);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--fox);
  color: var(--paper-white);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background-color .18s var(--ease);
}
.header-cta::after {
  content: "›";
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}
.header-cta:hover { background: var(--ember); }
.header-cta:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--yellow); }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  overflow: hidden;
}
.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--fox) 0%, var(--yellow) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------------------------------------------------------
   页脚
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--night);
  color: var(--paper);
  border-top: 5px solid var(--fox);
}

.footer-rail {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 1.5px, transparent 1.5px 24px);
  opacity: .55;
  border-bottom: 1px solid rgba(244, 236, 221, .12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(30px, 4vw, 48px);
}

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

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper-white);
}

.footer-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--fox);
  color: var(--paper-white);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-3deg);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.footer-brand-line {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.footer-contact-note {
  margin-top: 18px;
  max-width: 32em;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(244, 236, 221, .62);
}

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

.footer-col-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid rgba(244, 236, 221, .18);
}

.footer-list { display: flex; flex-direction: column; gap: 4px; }
.footer-list li { font-size: 14px; line-height: 1.7; }

.footer-list a {
  display: inline-block;
  padding: 3px 0;
  color: rgba(244, 236, 221, .84);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--fox);
}

.footer-list-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .01em;
  color: rgba(244, 236, 221, .74);
}
.footer-list-mono li { line-height: 1.85; }
.footer-key {
  display: inline-block;
  min-width: 3.4em;
  margin-right: 8px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: .12em;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(244, 236, 221, .14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(244, 236, 221, .58);
}
.footer-base-item { margin: 0; }

/* ---------------------------------------------------------
   返回顶部
   --------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: var(--fox);
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s var(--ease), transform .2s var(--ease),
    visibility .2s linear, background-color .2s var(--ease);
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--ember); }
.to-top:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--yellow); }

/* ---------------------------------------------------------
   进入视口显现
   --------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 20px var(--gutter) 28px;
    background: var(--night);
    border-bottom: 3px solid var(--fox);
    box-shadow: 0 24px 34px -26px rgba(0, 0, 0, .9);
  }
  .site-header[data-open="true"] .site-nav { display: flex; }

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--paper);
    background: transparent;
    border: none;
    border-left: 3px solid rgba(51, 65, 77, .9);
    clip-path: none;
  }
  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(61, 224, 196, .12);
    color: var(--cyan);
    box-shadow: none;
  }
  .nav-link[aria-current="page"] {
    background: var(--fox);
    color: var(--paper-white);
    border-left-color: var(--fox);
  }

  .header-cta {
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand,
  .footer-col-contact { grid-column: 1 / -1; }
}

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

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

  .brand-glyph { width: 36px; height: 36px; font-size: 18px; }
  .brand-name { font-size: 17px; }
  .brand-tag { font-size: 9.5px; letter-spacing: .1em; }
  .nav-toggle { padding: 10px 15px; font-size: 12px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand-line { font-size: 16px; }
  .footer-base { justify-content: flex-start; }
  .to-top { width: 46px; height: 46px; font-size: 16px; }
}

/* ---------------------------------------------------------
   动效偏好
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
