/* ============================================================
   FB体育 / 全站共享样式 Site Kit
   File: /assets/site.css
   Scope: Header · Footer · Shared utilities · Base system
   ============================================================ */

/* ---------- 0. Reset & Design Tokens ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #FF6B00;
  --color-primary-deep: #E85E00;
  --color-secondary: #0A1E3D;
  --color-secondary-deep: #071528;
  --color-accent: #39FF14;
  --color-support: #1E3A6E;
  --color-dark: #101820;
  --color-light: #F5F5F5;
  --color-muted: #7A879C;
  --color-success: #00C853;
  --color-warning: #FFD600;
  --gradient-main: linear-gradient(135deg, #FF6B00 0%, #0A1E3D 100%);
  --gradient-live: linear-gradient(90deg, #FF6B00 0%, #39FF14 100%);
  --font-heading: "Anton", "Arial Black", Impact, "Helvetica Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-max: 1240px;
  --container-gutter: clamp(16px, 5vw, 40px);
  --header-offset: 88px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-float: 0 12px 40px rgba(7, 21, 40, 0.22);
  --shadow-card: 0 6px 24px rgba(10, 30, 61, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.28s var(--ease);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

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

button {
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------- 1. Layout Utilities ---------- */
.container {
  width: min(var(--container-max), 100% - var(--container-gutter) * 2);
  margin-inline: auto;
}

.header-offset {
  height: var(--header-offset);
}

.section {
  padding-block: clamp(56px, 8vw, 120px);
}

.section--dark {
  background: var(--color-secondary);
  color: rgba(245, 245, 245, 0.86);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section--dark .section-title {
  color: #fff;
}

.section-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 62ch;
  margin-bottom: 28px;
}

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

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

/* ---------- 2. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 7px 50%);
}

.btn--primary:hover {
  background: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: rgba(10, 30, 61, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: 0 8px 20px rgba(57, 255, 20, 0.28);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(57, 255, 20, 0.38);
}

/* ---------- 3. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 1100;
  padding: 10px 24px;
  transform: translate(-50%, calc(-100% - 20px));
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  pointer-events: auto;
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 4. Header Capsule ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding-top: 16px;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--container-max), 100% - var(--container-gutter));
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  background: rgba(10, 30, 61, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header[data-scrolled="true"] .site-header__inner {
  background: rgba(10, 30, 61, 0.9);
  box-shadow: 0 18px 52px rgba(7, 21, 40, 0.3);
}

/* ---------- 5. Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding-inline: 10px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.8);
}

.brand__text {
  line-height: 1;
  letter-spacing: 0.14em;
}

/* ---------- 6. Primary Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: rgba(245, 245, 245, 0.82);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.14);
}

.nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
}

/* ---------- 7. Header Actions ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.nav-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: breathe 2s ease-out infinite;
}

@keyframes breathe {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.42);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta::before {
  content: "★";
  font-size: 12px;
  line-height: 1;
}

.nav-cta:hover {
  background: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 107, 0, 0.5);
}

/* ---------- 8. Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.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);
}

/* ---------- 9. Scroll Progress ---------- */
.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.site-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gradient-live);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.55);
  transition: width 80ms linear;
}

/* ---------- 10. Header Responsive ---------- */
@media (max-width: 1080px) and (min-width: 961px) {
  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-live {
    display: none;
  }
}

@media (max-width: 960px) {
  .site-header {
    padding-top: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(7, 21, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-float);
    pointer-events: none;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 460px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 12px;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border-radius: 12px;
  }

  .nav-link[aria-current="page"]::after {
    left: 16px;
    right: auto;
    width: 22px;
  }

  .nav-live {
    display: none;
  }

  .nav-cta {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(48px, 7vw, 88px) 0 0;
  background: var(--color-secondary-deep);
  color: rgba(245, 245, 245, 0.72);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 60%, transparent 100%);
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 30px);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 0.9fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.footer-brand__statement {
  font-size: 16px;
  max-width: 26em;
  color: rgba(245, 245, 245, 0.85);
}

.footer-brand__trust {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.48);
  padding-left: 14px;
  border-left: 3px solid var(--color-primary);
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.footer-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(245, 245, 245, 0.6);
}

.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: skewX(-18deg);
}

.legend-swatch--primary {
  background: var(--color-primary);
}

.legend-swatch--accent {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.legend-swatch--support {
  background: var(--color-support);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact,
.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  transform: skewX(-20deg);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 245, 245, 0.7);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-list a::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid var(--color-accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-list a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-list a:hover::before {
  opacity: 1;
}

.footer-contact-item {
  line-height: 1.75;
  font-size: 14px;
  color: rgba(245, 245, 245, 0.65);
}

.footer-note {
  padding: 12px 14px;
  background: rgba(255, 107, 0, 0.1);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.55);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(245, 245, 245, 0.45);
}

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

/* ---------- 12. Footer Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

/* ---------- 13. Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: clamp(32px, 5vw, 56px);
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
  box-shadow: var(--shadow-card);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--color-primary);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--color-secondary);
  font-weight: 500;
}

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

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

/* ---------- 14. Media Frame ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(10, 30, 61, 0.26)),
    var(--color-support);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-card);
}

.media-frame::before {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 14px;
  background: rgba(7, 21, 40, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.media-frame::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-top: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
  border-radius: 0 8px 0 0;
  opacity: 0.9;
}

.media-frame > img,
.media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 15. Coord Badge ---------- */
.coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.18em;
  border-radius: 4px;
}

.coord::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ---------- 16. Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 30px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50% 50% 50% 8px;
  background: var(--color-secondary);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(7, 21, 40, 0.4);
  opacity: 0;
  transform: translateY(18px) rotate(-8deg);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.back-to-top[data-visible] {
  opacity: 1;
  transform: translateY(0) rotate(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- 17. Focus & Reduced Motion ---------- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@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;
  }

  .site-progress__bar,
  .back-to-top,
  .skip-link {
    transition: none !important;
  }
}
