/* =========================================================
   8868体育 · 共享站点样式 /assets/site.css
   赛场夜战 × 数据仪表盘
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #061424;
  --ink-850: #081a2e;
  --ink-800: #0c2137;
  --ink-700: #12304c;
  --cyan: #22e6ff;
  --orange: #ff6a2a;
  --lime: #b8ff4a;
  --ice: #f4f8ff;
  --steel: #8299b8;
  --amber: #ffc247;
  --teal: #0b6f7e;
  --mist: #d7fbff;

  --line: rgba(34, 230, 255, 0.16);
  --line-soft: rgba(130, 153, 184, 0.22);
  --panel-a: rgba(12, 33, 55, 0.96);
  --panel-b: rgba(6, 20, 36, 0.9);

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

  --shell: 1240px;
  --pad: clamp(16px, 3.2vw, 40px);
  --header-h: 74px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.75, 0.24, 1);
  --dur: 300ms;
}

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

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

body {
  margin: 0;
  background-color: var(--ink-900);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.22vw, 1.05rem);
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  color: var(--ice);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.018em;
  font-stretch: 87.5%;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--mist);
}

ul,
ol {
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--cyan);
  color: #04101c;
}

/* ---------- 3. 布局 ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(38px, 6vw, 84px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 0.85em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.lede {
  max-width: 38em;
  margin: 0;
  color: var(--steel);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.85;
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

.rule {
  height: 1px;
  margin: clamp(22px, 3.5vw, 40px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(34, 230, 255, 0.04) 70%, transparent);
}

/* ---------- 4. 面板与标签 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 28px);
  background: linear-gradient(158deg, var(--panel-a), var(--panel-b));
  border: 1px solid rgba(34, 230, 255, 0.14);
  border-radius: 3px 16px 3px 3px;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 230, 255, 0.1) 55%, transparent);
  opacity: 0.6;
  pointer-events: none;
}

.panel--chamfer {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.72em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag-cyan {
  color: var(--cyan);
  border-color: rgba(34, 230, 255, 0.45);
  background: rgba(34, 230, 255, 0.08);
}

.tag-lime {
  color: var(--lime);
  border-color: rgba(184, 255, 74, 0.45);
  background: rgba(184, 255, 74, 0.08);
}

.tag-orange {
  color: var(--orange);
  border-color: rgba(255, 106, 42, 0.5);
  background: rgba(255, 106, 42, 0.1);
}

.tag-amber {
  color: var(--amber);
  border-color: rgba(255, 194, 71, 0.45);
  background: rgba(255, 194, 71, 0.08);
}

.stat {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.78em 1.35em;
  border: 1px solid transparent;
  border-radius: 2px 12px 2px 12px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 240ms var(--ease),
    color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background: linear-gradient(120deg, var(--orange), #ff8a4c);
  color: #1f0800;
  box-shadow: 0 10px 26px -14px rgba(255, 106, 42, 0.95);
}

.btn-accent:hover {
  color: #1f0800;
  box-shadow: 0 14px 32px -12px rgba(255, 106, 42, 0.85);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(34, 230, 255, 0.42);
  color: var(--cyan);
}

.btn-ghost:hover {
  background: rgba(34, 230, 255, 0.1);
  border-color: var(--cyan);
  color: var(--mist);
}

.btn-lime {
  background: var(--lime);
  color: #0b1a00;
  box-shadow: 0 10px 26px -16px rgba(184, 255, 74, 0.9);
}

.btn-lime:hover {
  color: #0b1a00;
}

.btn-sm {
  padding: 0.6em 1.02em;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- 6. 面包屑 ---------- */
.crumbs {
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--steel);
}

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

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li::after {
  content: "/";
  margin-left: 0.5em;
  color: rgba(130, 153, 184, 0.5);
}

.crumbs li:last-child::after {
  content: none;
}

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

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

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

/* ---------- 7. 媒体容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(34, 230, 255, 0.16);
  border-radius: 3px 18px 3px 3px;
  background:
    radial-gradient(120% 100% at 14% 0%, rgba(34, 230, 255, 0.22), transparent 56%),
    radial-gradient(90% 80% at 92% 100%, rgba(255, 106, 42, 0.2), transparent 62%),
    linear-gradient(160deg, var(--ink-800), var(--ink-900));
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(6, 20, 36, 0.74));
  pointer-events: none;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

.media--portrait {
  aspect-ratio: 3 / 4;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(34, 230, 255, 0.14) 0 2px,
    transparent 2px 18px
  );
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- 8. 头部 / 框架式导航 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: #04101c;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 200ms var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #04101c;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 48%, var(--lime));
  box-shadow: 0 0 12px rgba(34, 230, 255, 0.55);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(6, 20, 36, 0.97), rgba(6, 20, 36, 0.87));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: box-shadow var(--dur) var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 3px, transparent 3px 16px);
  opacity: 0.32;
  pointer-events: none;
}

.site-header[data-scrolled] {
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}

.header-shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.header-row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ice);
  text-decoration: none;
}

.brand:hover {
  color: var(--ice);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #04101c;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 72% 100%, 0 100%);
  transition: transform 220ms var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
}

.brand-text {
  display: block;
  line-height: 1.1;
}

.brand-name {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-stretch: 87.5%;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--steel);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--steel);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--cyan);
  opacity: 0.5;
}

.nav-text {
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ice);
  background: rgba(34, 230, 255, 0.09);
}

.nav-link[aria-current="page"] {
  color: var(--ice);
  background: linear-gradient(180deg, rgba(34, 230, 255, 0.2), rgba(34, 230, 255, 0.05));
  box-shadow: inset 0 -2px 0 0 var(--cyan);
}

.nav-link[aria-current="page"] .nav-idx {
  opacity: 1;
  color: var(--cyan);
}

.nav-item-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(34, 230, 255, 0.08);
  border: 1px solid rgba(34, 230, 255, 0.32);
  border-radius: var(--radius);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.nav-toggle:hover {
  background: rgba(34, 230, 255, 0.16);
  border-color: var(--cyan);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}

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

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

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 108px);
  background: linear-gradient(180deg, #061424 0%, #050f1b 55%, #03090f 100%);
  color: var(--steel);
  font-size: 0.92rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--amber) 22%,
    var(--teal) 48%,
    var(--cyan) 74%,
    var(--lime) 100%
  );
}

.footer-shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--pad) clamp(20px, 3vw, 30px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 56px);
}

.footer-brandline {
  margin: 0 0 12px;
  color: var(--ice);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-stretch: 87.5%;
}

.footer-note {
  max-width: 34em;
  margin: 0 0 18px;
  color: var(--steel);
  line-height: 1.8;
}

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

.footer-head {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--steel);
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.footer-links a::before {
  content: "";
  display: block;
  width: 10px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--cyan);
  opacity: 0.5;
  transition: width 220ms var(--ease), opacity 220ms var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--mist);
  transform: translateX(2px);
}

.footer-links a:hover::before,
.footer-links a:focus-visible::before {
  width: 16px;
  opacity: 1;
}

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

.footer-meta li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.meta-key {
  flex: 0 0 3.4em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--steel);
  opacity: 0.75;
}

.meta-val {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  word-break: break-word;
}

.footer-tip {
  max-width: 32em;
  margin: 16px 0 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(130, 153, 184, 0.82);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(130, 153, 184, 0.18);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: rgba(130, 153, 184, 0.9);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

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

.footer-legal a {
  color: rgba(130, 153, 184, 0.9);
  text-decoration: none;
  transition: color 220ms var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--cyan);
}

/* ---------- 10. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

@media (max-width: 959px) {
  :root {
    --header-h: 64px;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(180deg, #081a2e, #061424);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 52px -26px rgba(0, 0, 0, 0.95);
    transition: max-height 340ms var(--ease), opacity 260ms var(--ease),
      visibility 260ms var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: min(76vh, 560px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 20px;
  }

  .nav-link {
    display: flex;
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(130, 153, 184, 0.14);
    font-size: 1rem;
  }

  .nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 0 var(--cyan);
    background: rgba(34, 230, 255, 0.08);
    padding-left: 12px;
  }

  .nav-item-cta {
    display: block;
    margin-top: 16px;
  }

  .nav-item-cta .btn {
    border-radius: 2px 12px 2px 12px;
  }
}

@media (max-width: 720px) {
  .header-row {
    gap: 10px;
  }

  .brand-sub {
    display: none;
  }

  .section-head {
    align-items: flex-start;
  }

  .footer-base {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .header-cta {
    display: none;
  }

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

  .footer-shell {
    padding-bottom: 24px;
  }

  .media {
    border-radius: 3px 14px 3px 3px;
  }
}

/* ---------- 12. 减少动态 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .footer-links a:hover {
    transform: none;
  }

  .brand:hover .brand-mark {
    transform: none;
  }
}
