/* =========================================================
   疯狂体育游戏 — /assets/site.css
   reset / 变量 / 中文排版 / 共享页头 / 共享页脚 / 基础组件
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  background: #0B0B10;
  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%; }

a { color: inherit; text-decoration: none; }

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- 变量 ---------- */
:root {
  --ink:        #0B0B10;
  --ink-2:      #16161F;
  --orange:     #FF5A1F;
  --lime:       #C8FF3D;
  --white:      #FFFFFF;
  --mist:       #A9A9B8;
  --line:       #2C2C38;
  --orange-deep:#7A2A0C;
  --green-deep: #3F6B00;
  --paper:      #F3F1EA;

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-serif:   "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;
  --font-body:    "Noto 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, monospace;

  --skew:       -6deg;
  --skew-alt:    6deg;
  --skew-hard: -12deg;

  --edge:   16px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar:    72px;
  --wrap:   1180px;

  --shadow-card: 5px 5px 0 rgba(122, 42, 12, 0.5);
  --shadow-card-hover: 10px 10px 0 var(--orange-deep);
}

@media (max-width: 880px) {
  :root {
    --edge: 8px;
    --gutter: 14px;
    --bar: 60px;
  }
}

/* ---------- 全局排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13.6px, 17px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  padding:
    calc(var(--bar) + 30px)
    calc(var(--edge) + var(--gutter))
    0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(38px, 7vw, 92px); line-height: 0.94; }
h2 { font-size: clamp(26px, 3.4vw, 46px); }
h3 { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.2; }
h4 { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.3; }

p { max-width: 68ch; }

strong { color: var(--white); font-weight: 700; }

em { font-style: italic; color: var(--orange); }

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

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

#main-content {
  display: block;
  outline: none;
}

#main-content:focus-visible {
  outline: 2px dashed var(--lime);
  outline-offset: 10px;
}

/* =========================================================
   页头：框架式导航
   ========================================================= */
.site-frame {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 90;
  pointer-events: auto;
  padding: 11px 20px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-left: 5px solid var(--orange);
  transform: translateY(-180%);
  transition: transform 0.18s ease-out;
}

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

.frame__edge {
  position: absolute;
  pointer-events: none;
}

.frame__edge--top {
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.frame__edge--left,
.frame__edge--right {
  top: var(--bar);
  width: 2px;
  height: 38vh;
}

.frame__edge--left {
  left: 0;
  background: linear-gradient(180deg, var(--orange) 0%, rgba(44, 44, 56, 0) 92%);
}

.frame__edge--right {
  right: 0;
  background: linear-gradient(180deg, var(--lime) 0%, rgba(44, 44, 56, 0) 92%);
}

.frame__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: 0 clamp(14px, 2.6vw, 34px);
  background: rgba(11, 11, 16, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  pointer-events: auto;
  transition: height 0.28s ease;
}

@media (min-width: 881px) {
  html[data-scrolled] .frame__bar { height: 54px; }
  html[data-scrolled] .brand__mark { font-size: 17px; }
  html[data-scrolled] .brand__chip { height: 20px; }
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--lime) 100%);
  pointer-events: none;
}

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 6px 10px 6px 4px;
  pointer-events: auto;
}

.brand__chip {
  width: 12px;
  height: 26px;
  background: var(--orange);
  transform: skewX(var(--skew));
  box-shadow: 3px 0 0 var(--orange-deep);
  transition: height 0.28s ease;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
  transform: skewX(var(--skew));
  transform-origin: left center;
  transition: font-size 0.28s ease;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lime);
  border: 1px solid var(--green-deep);
  padding: 2px 6px;
  transform: skewX(var(--skew));
}

/* ---------- 导航 ---------- */
.nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.1vw, 18px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 10px;
  font-size: clamp(13px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease-out;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
}

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

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

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

.bar__tail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: auto;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lime);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: var(--orange); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--orange);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--orange);
}

/* =========================================================
   共享按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: skewX(var(--skew));
  transition: transform 0.15s ease, background 0.15s ease,
              box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn > span {
  display: inline-block;
  transform: skewX(var(--skew-alt));
}

.btn--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--orange-deep);
}

.btn--orange:hover {
  box-shadow: 7px 7px 0 var(--orange-deep);
  transform: skewX(var(--skew)) translate(-2px, -2px);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--green-deep);
}

.btn--lime:hover {
  box-shadow: 7px 7px 0 var(--green-deep);
  transform: skewX(var(--skew)) translate(-2px, -2px);
}

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

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

/* =========================================================
   共享基础组件
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
}

.prose {
  max-width: 70ch;
}

.prose p + p { margin-top: 1em; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  transform: skewX(var(--skew-hard));
}

.stamp {
  display: inline-block;
  padding: 5px 15px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.stamp--orange { background: var(--orange); }

.stamp--ghost {
  background: var(--ink-2);
  color: var(--lime);
  box-shadow: inset 0 0 0 1px var(--green-deep);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--lime);
  transform: skewX(var(--skew-hard));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.01em;
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: var(--shadow-card-hover);
}

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

.card--paper h2,
.card--paper h3,
.card--paper h4 { color: var(--ink); }

.card--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 52px) 0;
  background: var(--line);
}

/* ---------- 响应式图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

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

.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.06);
}

.media__slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
  background:
    radial-gradient(120% 90% at 18% 100%, rgba(255, 90, 31, 0.3), transparent 62%),
    radial-gradient(110% 80% at 92% 0%, rgba(200, 255, 61, 0.16), transparent 56%),
    var(--ink-2);
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  margin-left: calc(-1 * (var(--edge) + var(--gutter)));
  margin-right: calc(-1 * (var(--edge) + var(--gutter)));
  padding:
    clamp(44px, 5.5vw, 82px)
    calc(var(--edge) + var(--gutter))
    0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer__band {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange) 46%,
    var(--lime) 46%,
    var(--lime) 100%
  );
  transform: skewX(var(--skew-hard));
  transform-origin: left top;
}

.footer__grid {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.5fr)
    minmax(110px, 0.75fr)
    minmax(110px, 0.75fr)
    minmax(240px, 1.45fr);
  gap: clamp(26px, 3.4vw, 52px);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
  transform: skewX(var(--skew));
  transform-origin: left center;
  margin-bottom: 18px;
}

.footer__claim {
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
  max-width: 34ch;
}

.footer__claim--muted {
  margin-top: 10px;
  color: rgba(169, 169, 184, 0.72);
  font-size: 13px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
  max-width: none;
}

.footer__list li + li { margin-top: 2px; }

.footer__link {
  display: inline-block;
  padding: 5px 0 5px 0;
  border-left: 2px solid transparent;
  font-size: 15px;
  color: var(--mist);
  transition: color 0.15s ease, padding-left 0.15s ease, border-color 0.15s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  padding-left: 9px;
  border-left-color: var(--orange);
  color: var(--white);
}

.footer__list--plain li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.footer__list--plain li:first-child { padding-top: 0; }

.footer__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--lime);
  padding-top: 2px;
}

.footer__val {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mist);
  word-break: break-word;
}

.footer__val--num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(169, 169, 184, 0.8);
  max-width: 38ch;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer__legal p { max-width: none; }

.footer__icp {
  color: var(--mist);
}

.footer__fine {
  color: rgba(169, 169, 184, 0.6);
  margin-left: auto;
}

/* =========================================================
   由 JS 注入的返回顶部
   ========================================================= */
.to-top {
  position: fixed;
  right: max(24px, calc(var(--edge) + 12px));
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(122, 42, 12, 0.5);
  transition: transform 0.15s ease, border-color 0.15s ease,
              background 0.15s ease, box-shadow 0.15s ease;
}

.to-top:hover,
.to-top:focus-visible {
  transform: translateY(-4px);
  border-color: var(--lime);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--orange-deep);
}

/* =========================================================
   渐显（页面可选使用 [data-reveal]）
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease-out, transform 0.42s ease-out;
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__fine { margin-left: 0; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .bar__cta { display: none; }

  .nav {
    position: fixed;
    top: var(--bar);
    left: 0;
    right: 0;
    height: calc(100vh - var(--bar));
    height: calc(100dvh - var(--bar));
    display: block;
    padding: 18px calc(var(--edge) + var(--gutter) + 6px) 64px;
    background: var(--ink);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 18px 6px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--white);
  }

  .nav__link::after {
    left: 6px;
    right: auto;
    width: 36px;
    height: 4px;
    bottom: 12px;
  }

  .brand__sub { display: none; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--contact { grid-column: auto; }
}

@media (max-width: 560px) {
  body {
    padding-top: calc(var(--bar) + 22px);
    line-height: 1.7;
  }

  .skip-link { left: 6px; top: 6px; padding: 10px 14px; }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer__list--plain li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

/* =========================================================
   动效偏好
   ========================================================= */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .card:focus-within {
    transform: none;
  }

  .to-top:hover,
  .to-top:focus-visible {
    transform: none;
  }
}
