/* ==========================================================================
   爱体育app · 共享 Site Kit
   夜间球场数据指挥舱 / 深空蓝底 + 刻度网格 + 矩阵绿信号
   ========================================================================== */

/* ---------- 01 设计令牌 ---------- */
:root {
  color-scheme: dark;

  --c-space: #0A1628;
  --c-space-lift: #0d1b30;
  --c-carbon: #111418;
  --c-matrix: #00E676;
  --c-cyan: #00D9FF;
  --c-orange: #FF6B35;
  --c-paper: #F5F8FA;
  --c-mist: #E8EDF2;
  --c-steel: #7C8B9B;
  --c-rule: #2A3542;
  --c-mint: #A8FFD4;
  --c-ice: #C9F5FF;

  --font-display: "DIN Condensed", "Oswald", "Arial Narrow", "Helvetica Neue",
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "DIN Alternate", "Arial Narrow", ui-monospace, "SFMono-Regular",
    Menlo, Consolas, monospace;

  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-card: 14px;
  --radius-cap: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 260ms;
  --dur-slow: 380ms;

  --shadow-cap: 0 18px 48px rgba(0, 0, 0, .42);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, .35vw + 14px, 16px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-mist);
  background-color: var(--c-space);
  background-image:
    linear-gradient(to right, rgba(42, 53, 66, .34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 53, 66, .34) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--c-cyan);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--c-mint); }

button { font: inherit; color: inherit; }

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

/* ---------- 03 通用容器与排版 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-steel);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-matrix);
  flex: 0 0 auto;
}

.lede {
  max-width: 620px;
  font-size: clamp(16px, 1.1vw + 13px, 20px);
  line-height: 1.7;
  color: var(--c-mist);
}

.prose {
  max-width: 680px;
  color: var(--c-mist);
}
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  margin: 1.7em 0 .6em;
  color: #FFFFFF;
}
.prose h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  margin: 1.5em 0 .5em;
  color: #FFFFFF;
  letter-spacing: .02em;
}
.prose ul, .prose ol {
  padding-left: 1.15em;
  margin: 0 0 1.15em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose strong { color: #FFFFFF; font-weight: 700; }
.prose a { border-bottom: 1px solid rgba(0, 217, 255, .45); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  border-left: 2px solid var(--c-matrix);
  background: rgba(17, 20, 24, .7);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--c-ice);
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.index-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 230, 118, .5);
  text-stroke: 1.5px rgba(0, 230, 118, .5);
  user-select: none;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--c-rule);
}

/* ---------- 04 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-cap);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn--signal {
  background: var(--c-matrix);
  color: #04180d;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, .34), 0 10px 26px rgba(0, 230, 118, .18);
}
.btn--signal:hover {
  background: var(--c-mint);
  color: #04180d;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(168, 255, 212, .5), 0 14px 32px rgba(0, 230, 118, .26);
}

.btn--ghost {
  background: rgba(17, 20, 24, .55);
  border-color: rgba(124, 139, 155, .34);
  color: var(--c-mist);
}
.btn--ghost:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(0, 217, 255, .08);
}

.btn--outline {
  background: transparent;
  border-color: rgba(0, 230, 118, .5);
  color: var(--c-mint);
}
.btn--outline:hover {
  background: rgba(0, 230, 118, .12);
  border-color: var(--c-matrix);
  color: var(--c-matrix);
}

/* ---------- 05 标签与卡片 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-cap);
  border: 1px solid rgba(0, 217, 255, .34);
  background: rgba(0, 217, 255, .08);
  color: var(--c-ice);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.tag--signal {
  border-color: rgba(0, 230, 118, .42);
  background: rgba(0, 230, 118, .12);
  color: var(--c-mint);
}
.tag--warm {
  border-color: rgba(255, 107, 53, .46);
  background: rgba(255, 107, 53, .14);
  color: #FFC3A8;
}

.card {
  background: rgba(17, 20, 24, .74);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.2vw, 28px);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover {
  border-color: rgba(0, 230, 118, .34);
  background: rgba(13, 27, 48, .86);
}

/* ---------- 06 网格与媒体 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-rule);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 217, 255, .12), transparent 62%),
    var(--c-carbon);
}
.media-frame > img,
.media-frame > picture,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0) 42%, rgba(10, 22, 40, .82) 100%),
    repeating-linear-gradient(90deg, rgba(124, 139, 155, .18) 0 1px, transparent 1px 56px);
  opacity: .9;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 07 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 4px;
  color: var(--c-rule);
}
.breadcrumb a { color: var(--c-steel); }
.breadcrumb a:hover { color: var(--c-matrix); }
.breadcrumb [aria-current="page"] { color: var(--c-mist); }

/* ---------- 08 跳转链接 / 进度条 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--c-matrix);
  color: #04180d;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
  background: rgba(42, 53, 66, .5);
}
.scroll-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-matrix));
  box-shadow: 0 0 12px rgba(0, 230, 118, .55);
  transition: width 90ms linear;
}

/* ---------- 09 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 14px var(--gutter) 0;
  transition: padding var(--dur) var(--ease);
}
.site-header.is-condensed { padding-top: 8px; }

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(124, 139, 155, .22);
  border-radius: var(--radius-cap);
  background: rgba(10, 22, 40, .74);
  box-shadow: var(--shadow-cap);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition:
    min-height var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.site-header.is-condensed .header-shell {
  min-height: 54px;
  background: rgba(10, 22, 40, .92);
  border-color: rgba(0, 230, 118, .3);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 6px 4px 2px;
  border-radius: 10px;
  color: var(--c-mist);
  text-decoration: none;
}
.brand:hover { color: #FFFFFF; }

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
  flex: 0 0 auto;
}
.brand-mark i {
  display: block;
  border-radius: 1px;
  background: var(--c-matrix);
}
.brand-mark i:nth-child(2) { background: var(--c-cyan); }
.brand-mark i:nth-child(3) { background: var(--c-mint); opacity: .55; }
.brand-mark i:nth-child(4) { background: var(--c-matrix); opacity: .35; }

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #FFFFFF;
}
.brand-sub {
  margin-top: 3px;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-steel);
}

/* 导航 */
.primary-nav { display: none; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--c-steel);
  text-decoration: none;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.nav-link:hover {
  color: var(--c-mist);
  background: rgba(0, 217, 255, .08);
}
.nav-link::after {
  content: "→";
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--c-rule);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-link:hover::after { color: var(--c-cyan); transform: translateX(2px); }
.nav-link[aria-current="page"] {
  background: var(--c-matrix);
  color: #04180d;
  font-weight: 700;
}
.nav-link[aria-current="page"]::after { color: rgba(10, 22, 40, .6); }

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-rule);
}
.nav-actions .btn { width: 100%; }

/* 右侧动作区（桌面） */
.header-side { display: none; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-download { min-height: 40px; padding-inline: 14px; font-size: 13px; }
.header-cta { min-height: 44px; padding-inline: 18px; font-size: 13.5px; }

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 58px;
  min-height: 44px;
  padding: 0 10px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(124, 139, 155, .34);
  background: rgba(17, 20, 24, .6);
  color: var(--c-mist);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur) var(--ease);
}
.nav-toggle-bars span:first-child { top: 2px; }
.nav-toggle-bars span:last-child { bottom: 2px; }

.site-header[data-open="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.site-header[data-open="true"] .nav-toggle {
  border-color: var(--c-matrix);
  color: var(--c-matrix);
}

.nav-toggle-text {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* 移动端展开面板 */
@media (max-width: 899px) {
  .site-header[data-open="true"] .primary-nav {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 140;
    padding: 12px;
    border: 1px solid rgba(0, 217, 255, .22);
    border-radius: 18px;
    background: rgba(9, 20, 36, .97);
    box-shadow: 0 28px 64px rgba(0, 0, 0, .62);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    animation: navPanelIn 220ms var(--ease) both;
  }
}

@keyframes navPanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 10 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  overflow: hidden;
  background: var(--c-carbon);
  border-top: 1px solid var(--c-rule);
}

.footer-matrix {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 53, 66, .85) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 53, 66, .6) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 78%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: 72px;
  height: 2px;
  background: var(--c-matrix);
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.footer-brand { max-width: 420px; }
.brand--footer { padding-left: 0; }

.footer-tagline {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--c-mist);
}
.footer-footnote {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--c-steel);
}

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

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-steel);
}

.footer-list { display: flex; flex-direction: column; gap: 2px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--c-mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-link:hover {
  color: var(--c-matrix);
  border-bottom-color: rgba(0, 230, 118, .5);
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 28px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 22px 0;
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}
.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-mist);
}
.footer-contact-key {
  flex: 0 0 auto;
  min-width: 64px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-steel);
  padding-top: 2px;
}
.footer-contact-val { color: var(--c-ice); word-break: break-word; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 34px;
  font-size: 12.5px;
  color: var(--c-steel);
}
.footer-copyright, .footer-icp { margin: 0; }
.footer-icp {
  font-family: var(--font-num);
  letter-spacing: .1em;
  color: var(--c-steel);
}

/* ---------- 11 滚动显现 ---------- */
[data-reveal] {
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 12 断点 ---------- */
@media (min-width: 600px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .header-side { display: flex; }

  .primary-nav {
    display: flex;
    position: static;
    flex: 1 1 auto;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .nav-actions { display: none; }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
    width: auto;
  }
  .nav-link {
    width: auto;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-cap);
    font-size: 14px;
  }
  .nav-link::after { display: none; }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
    gap: 64px;
  }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 13 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal],
  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
  }

  .site-header[data-open="true"] .primary-nav { animation: none; }
}
