/* ==========================================================================
   火狐体育主站 · 共享样式表 /assets/site.css
   赛事大屏 × 内容画册 · 页头 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 01 · 设计变量 ---------- */
:root {
  --flame: #F04E23;
  --ember: #B83212;
  --grad-a: #FF7A3D;
  --grad-b: #D93A12;
  --ink: #101C2C;
  --ink-2: #1B2B44;
  --data-blue: #2F6BFF;
  --mint: #4DE0C1;
  --stone: #6B6F72;
  --sand: #F4EFE6;
  --clay: #C66A4A;
  --paper: #FFF9F0;

  --ink-70: rgba(16, 28, 44, .70);
  --ink-45: rgba(16, 28, 44, .45);
  --ink-12: rgba(16, 28, 44, .12);
  --paper-70: rgba(255, 249, 240, .70);
  --paper-10: rgba(255, 249, 240, .10);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow-panel: 0 24px 60px -44px rgba(16, 28, 44, .8);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    radial-gradient(1100px 560px at 92% -10%, rgba(240, 78, 35, .08), transparent 62%),
    radial-gradient(860px 480px at -8% 10%, rgba(77, 224, 193, .09), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

p, ul, ol, figure {
  margin: 0;
}

::selection {
  background: var(--flame);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

.prose {
  max-width: 68ch;
}

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

.prose h2,
.prose h3 {
  margin-top: 1.9em;
}

/* ---------- 04 · 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 4px 14px 4px 14px;
  cursor: pointer;
  transition: transform .18s var(--ease),
              box-shadow .18s var(--ease),
              background-color .18s var(--ease),
              color .18s var(--ease);
}

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

.btn--ember {
  background-image: linear-gradient(135deg, var(--flame), var(--ember));
  box-shadow: 0 14px 26px -18px rgba(184, 50, 18, .95);
}

.btn--gradient {
  background-image: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 16px 30px -20px rgba(217, 58, 18, .95);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-12);
}

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

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

/* ---------- 05 · 章节小标 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--flame);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- 06 · 堆叠面板 ---------- */
.panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-l) var(--radius-s) var(--radius-l) var(--radius-s);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-panel);
}

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

/* ---------- 07 · 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stone);
}

.crumbs li + li::before {
  content: "/";
  color: var(--ink-45);
}

.crumbs a {
  color: var(--stone);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ember);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

/* ---------- 08 · 图片容器基础 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m) var(--radius-s) var(--radius-m) var(--radius-s);
  background-image: linear-gradient(135deg, var(--ink-2), var(--ink));
}

.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }

.media__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--paper);
  background: rgba(16, 28, 44, .78);
  border-radius: 3px 9px 3px 9px;
}

/* ---------- 09 · 标签与数据模块 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ember);
  background: rgba(198, 106, 74, .14);
  border: 1px solid rgba(198, 106, 74, .34);
  border-radius: 3px 9px 3px 9px;
}

.data-panel {
  padding: clamp(18px, 2.6vw, 28px);
  font-family: var(--font-mono);
  color: var(--paper);
  background: var(--ink-2);
  border-radius: var(--radius-m) var(--radius-s) var(--radius-m) var(--radius-s);
}

/* ---------- 10 · 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -90px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: top .18s var(--ease);
}

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

/* ---------- 11 · 阅读进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 0%;
  height: 3px;
  background-image: linear-gradient(90deg,
    var(--grad-a) 0%,
    var(--grad-b) 52%,
    var(--mint) 100%);
  pointer-events: none;
}

/* ---------- 12 · 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--sand);
  border-bottom: 1px solid var(--ink-12);
}

/* 状态带 */
.status-band {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--paper);
  background: var(--ink);
}

.status-band__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2.4vw, 32px);
  min-height: 32px;
  padding-block: 5px;
}

.status-band__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-70);
}

.status-band__item--end {
  margin-left: auto;
}

.status-band__path {
  color: var(--mint);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(77, 224, 193, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(77, 224, 193, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 224, 193, 0); }
}

/* 刊头 */
.masthead {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(14px, 1.8vw, 22px);
}

.masthead__issue {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

.masthead__issue::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--flame);
}

.masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  background-image: linear-gradient(140deg, var(--grad-a), var(--grad-b));
  border-radius: 14px 4px 14px 4px;
  transform: skew(-6deg);
  box-shadow: 0 10px 22px -14px rgba(217, 58, 18, .95);
}

.brand__lines {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: .04em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--stone);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 4px 12px 4px 12px;
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transition: transform .18s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 主导航 */
.site-nav {
  background: var(--sand);
  border-top: 1px solid var(--ink-12);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.4vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 13px 2px 15px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

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

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

/* ---------- 13 · 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding-block: clamp(40px, 6vw, 72px) 0;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background-image: linear-gradient(90deg,
    var(--grad-a) 0%,
    var(--grad-b) 34%,
    var(--data-blue) 66%,
    var(--mint) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(240, 78, 35, .22), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer > .page-shell {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand .brand {
  justify-self: start;
}

.site-footer .brand__name {
  color: var(--paper);
}

.site-footer .brand__sub {
  color: rgba(255, 249, 240, .55);
}

.footer-brand__note {
  margin: 16px 0 20px;
  max-width: 34ch;
  font-size: 14.5px;
  color: var(--paper-70);
}

.footer-brand__cta {
  font-size: 13.5px;
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mint);
}

.footer-col__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  font-size: 15px;
  color: rgba(255, 249, 240, .78);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-col__list a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--flame);
}

.footer-contact__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.footer-contact__key {
  flex: 0 0 100%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: rgba(255, 249, 240, .45);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 249, 240, .5);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mint);
  background: rgba(77, 224, 193, .10);
  border: 1px solid rgba(77, 224, 193, .35);
  border-radius: 3px 9px 3px 9px;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.copy-btn:hover {
  background: rgba(77, 224, 193, .22);
}

.copy-btn[data-copied="true"] {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(255, 249, 240, .55);
  border-top: 1px solid var(--paper-10);
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-base__links a {
  color: rgba(255, 249, 240, .70);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-base__links a:hover {
  color: var(--mint);
}

.site-footer :focus-visible {
  outline-color: var(--mint);
}

/* ---------- 14 · 滚动显现协议 ---------- */
[data-reveal] {
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 15 · 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 899px) {
  html {
    scroll-padding-top: 96px;
  }

  .status-band__item {
    font-size: 10.5px;
    letter-spacing: .1em;
  }

  .masthead {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 12px;
  }

  .masthead__issue {
    display: none;
  }

  .brand {
    justify-self: start;
    gap: 10px;
  }

  .brand__sub {
    display: none;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-radius: 12px 4px 12px 4px;
  }

  .masthead__cta {
    display: none;
  }

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

  .site-nav {
    display: none;
    background: var(--ink);
    border-top: 0;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 4px 0 16px;
  }

  .site-nav__link {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
    color: var(--paper);
    border-bottom: 1px solid var(--paper-10);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    padding-left: 16px;
    color: var(--mint);
  }

  .site-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: var(--mint);
    border-radius: 50%;
  }

  .site-nav__list > li:last-child .site-nav__link {
    border-bottom: 0;
  }

  .site-nav :focus-visible {
    outline-color: var(--mint);
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .status-band__item:not(:first-child) {
    display: none;
  }

  .status-band__item--end {
    display: inline-flex;
    margin-left: auto;
  }

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

  .footer-contact__value {
    font-size: 12.5px;
  }

  .footer-base__links {
    gap: 14px;
  }
}

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

  .status-dot {
    animation: none !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
