/* ============================================================
   site.css — 安博体育 · 的方式APP入口 全站共享样式
   设计主题：数据驾驶舱 + 体育竞技场
   ============================================================ */

/* ---------- 01 Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 02 Root Variables ---------- */
:root {
  --ink: #0E1B2A;
  --steel: #1E2A44;
  --orange: #FF6B35;
  --lime: #39FF14;
  --sky: #4AB2E8;
  --paper: #F5F7FA;
  --mist: #A8B8C8;
  --grid-line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --font-display: "Oswald", "Roboto Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "DIN Condensed", "Roboto Mono", ui-monospace, monospace;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 03 Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(ellipse at 75% 10%, rgba(74, 178, 232, 0.13), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(255, 107, 53, 0.07), transparent 45%);
  background-size: 52px 52px, 52px 52px, 100% 100%, 100% 100%;
}

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

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

ul, ol {
  padding-left: 1.4em;
}

/* ---------- 04 Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 3000;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

/* ---------- 05 Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

#main-content {
  flex: 1 0 auto;
  padding-top: 88px;
  scroll-margin-top: 96px;
}

.grid-2up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-2up {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3up {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 06 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

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

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-primary:hover {
  background: #ff8557;
  color: var(--ink);
}

.btn-outline {
  border-color: rgba(255, 107, 53, 0.55);
  color: var(--orange);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.08);
  color: var(--orange);
}

/* ---------- 07 Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(168, 184, 200, 0.45);
}

.breadcrumb a {
  color: var(--sky);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb li[aria-current="page"] {
  color: var(--paper);
  font-weight: 600;
}

/* ---------- 08 Content Body ---------- */
.content-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 247, 250, 0.92);
}

.content-body p {
  margin-bottom: 1.2em;
}

.content-body h2 {
  margin-top: 1.6em;
  font-size: 1.5rem;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1.2em;
}

.content-body a {
  color: var(--orange);
  border-bottom: 1px solid rgba(255, 107, 53, 0.4);
  transition: border-color 0.2s, color 0.2s;
}

.content-body a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- 09 Section Label / Data / Panels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
  transform: skewX(-20deg);
  flex: none;
}

.data-highlight {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  color: var(--lime);
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.3);
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.slant-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1a294a, #14203a);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px;
}

.slant-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.12), transparent 70%);
  pointer-events: none;
}

/* ---------- 10 Media Frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  background: var(--steel);
  display: grid;
  place-items: center;
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, transparent 65%, rgba(255, 107, 53, 0.15) 100%),
    radial-gradient(ellipse at center, rgba(74, 178, 232, 0.1), transparent 70%);
  pointer-events: none;
}

.media-frame--athlete {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 107, 53, 0.25), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px),
    var(--steel);
}

.media-frame--chart {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(57, 255, 20, 0.08), transparent 55%);
  background-size: 28px 28px, 28px 28px, auto;
}

.media-frame--stadium {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(74, 178, 232, 0.2), transparent 50%),
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 23px),
    var(--steel);
}

.media-frame__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 40px 12px 10px;
  font-size: 13px;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(14, 27, 42, 0.8));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ---------- 11 Header ---------- */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(1200px, calc(100% - 32px));
  background: rgba(14, 27, 42, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(14, 27, 42, 0.94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 18px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 2000;
  background: linear-gradient(90deg, var(--orange), var(--lime));
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}

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

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), #ff5a1f);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  border-radius: 6px 0 12px 0;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.brand__text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.15;
  white-space: nowrap;
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-top: 2px;
}

/* Nav */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-nav a:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.4);
  color: var(--orange);
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 107, 53, 0.14);
  border-color: var(--orange);
  color: var(--orange);
}

.site-nav a[aria-current="page"]::before {
  content: "●";
  font-size: 6px;
  margin-right: 6px;
  vertical-align: middle;
  color: var(--lime);
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(255, 107, 53, 0.5);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.12);
}

/* Responsive Nav */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .site-header__inner {
    padding: 8px 8px 8px 14px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    background: rgba(14, 27, 42, 0.98);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
  }
}

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

  .site-nav {
    position: static;
    display: block;
    margin-top: 0;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .brand__sub {
    display: none;
  }

  .brand__text {
    font-size: 15px;
  }
}

/* ---------- 12 Footer ---------- */
.site-footer {
  margin-top: 80px;
  padding: 64px 24px 28px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(74, 178, 232, 0.08), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, #0a1522 100%);
  border-top: 1px solid var(--border-light);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--sky), var(--lime));
  opacity: 0.45;
}

.site-footer__main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: 1fr 2fr;
    gap: 56px;
  }
}

.site-footer__brand {
  max-width: 360px;
}

@media (min-width: 768px) {
  .site-footer__brand {
    padding-right: 20px;
  }
}

.brand--footer .brand__mark {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.brand--footer .brand__text {
  font-size: 20px;
}

.site-footer__tagline {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

.site-footer__trust {
  margin-top: 18px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(168, 184, 200, 0.8);
  background: var(--glass);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 600px) {
  .site-footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--mist);
}

.site-footer__list a {
  color: var(--mist);
  white-space: nowrap;
}

.site-footer__list a:hover {
  color: var(--orange);
}

.site-footer__list a[aria-current="page"] {
  color: var(--orange);
}

.site-footer__list--contact {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.site-footer__list--contact li {
  padding-left: 16px;
  position: relative;
  color: var(--mist);
}

.site-footer__list--contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: skewX(-20deg);
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
  color: rgba(168, 184, 200, 0.7);
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- 13 Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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