/* ========================================
   Site Kit — 贝博体育CN
   文件: /assets/site.css
   ======================================== */

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

:root {
  --clr-orange: #FF6B00;
  --clr-orange-dark: #E65A00;
  --clr-dark: #1E1E1E;
  --clr-mid-gray: #3A3A3A;
  --clr-light-gray: #F5F5F5;
  --clr-neon: #39FF14;
  --clr-white: #FFFFFF;
  --clr-glass: rgba(255, 255, 255, 0.85);

  --font-heading: 'Archivo Black', 'Arial Black', 'PingFang SC Heavy', 'Microsoft YaHei UI Bold', Impact, sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', 'SFMono-Regular', 'Cascadia Code', Consolas, 'Courier New', monospace;

  --container-width: 1240px;
  --header-h: 72px;
  --ticker-h: 28px;
  --transition-base: all 0.2s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-dark);
  background-color: var(--clr-light-gray);
  background-image:
    repeating-linear-gradient(90deg, rgba(30,30,30,0.02) 0px, transparent 2px, transparent 48px),
    repeating-linear-gradient(0deg, rgba(30,30,30,0.02) 0px, transparent 2px, transparent 48px);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
  display: block;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

ul[class] {
  list-style: none;
}

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

::selection {
  background: var(--clr-orange);
  color: #fff;
}

/* ---------- Layout Primitives ---------- */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  border-left: 6px solid var(--clr-orange);
  padding-left: 16px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: skewX(-10deg);
  display: inline-block;
  border: 2px solid var(--clr-dark);
  padding: 2px 10px;
  background: var(--clr-light-gray);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 24px;
  z-index: 2000;
  background: var(--clr-dark);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 30, 30, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.site-header__ticker {
  background: var(--clr-dark);
  color: var(--clr-neon);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 16px;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 2px solid var(--clr-orange);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  position: relative;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__logo {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: var(--clr-dark);
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  padding: 5px;
}

.brand__logo-inner {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clr-orange);
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  transition: background 0.2s ease-in-out;
}

.brand:hover .brand__logo-inner {
  background: var(--clr-neon);
}

.brand__text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--clr-dark);
  text-transform: uppercase;
}

.brand__text em {
  font-style: normal;
  color: var(--clr-orange);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-mid-gray);
}

.brand--footer {
  margin-bottom: 16px;
}

.brand--footer .brand__text {
  color: #fff;
}

.brand--footer .brand__text em {
  color: var(--clr-orange);
}

.brand--footer .brand__logo {
  background: #fff;
}

.brand--footer .brand__tagline {
  color: rgba(255, 255, 255, 0.6);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--clr-dark);
  border-radius: 6px;
  transition: var(--transition-base);
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-dark);
  border-radius: 6px;
  transform: skewX(-8deg) scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-in-out;
  z-index: -1;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-orange), var(--clr-neon));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-in-out;
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before {
  transform: skewX(-8deg) scaleX(1);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
}

/* ---------- Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--clr-dark);
  border-radius: 8px;
  transition: var(--transition-base);
}

.nav-toggle:hover {
  background: var(--clr-orange);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ---------- Header CTA / Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: var(--transition-base);
  text-align: center;
  white-space: nowrap;
  transform: skewX(-8deg);
  cursor: pointer;
}

.btn > * {
  transform: skewX(8deg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-orange) 0%, var(--clr-orange-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 0 var(--clr-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--clr-orange-dark) 0%, var(--clr-orange) 100%);
  transform: skewX(-8deg) translateY(-2px);
  box-shadow: 0 6px 0 var(--clr-dark);
}

.btn-primary:active {
  transform: skewX(-8deg) translateY(2px);
  box-shadow: 0 2px 0 var(--clr-dark);
}

.btn-outline {
  border-color: var(--clr-dark);
  color: var(--clr-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--clr-dark);
  color: var(--clr-orange);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.header-cta {
  background: var(--clr-dark);
  color: var(--clr-neon);
  border-color: var(--clr-dark);
  box-shadow: 0 4px 0 var(--clr-orange);
}

.header-cta:hover {
  background: var(--clr-orange);
  color: #fff;
  border-color: var(--clr-orange);
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-orange) 0%, var(--clr-neon) 100%);
  z-index: 10;
  border-radius: 0 4px 4px 0;
}

/* ---------- Glass & Tags ---------- */
.glass-card {
  background: var(--clr-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-dark);
  background: var(--clr-neon);
  border-radius: 2px;
}

/* ---------- Image Containers ---------- */
.img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a2a2a 0%, #111 100%);
  border-radius: 12px;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-orange);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 107, 0, 0.12) 0px,
    rgba(255, 107, 0, 0.12) 2px,
    transparent 2px,
    transparent 12px
  );
}

.img-container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

/* ---------- Site Footer ---------- */
.site-footer {
  flex-shrink: 0;
  background-color: var(--clr-dark);
  color: #A0A0A0;
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-orange) 0%, var(--clr-neon) 100%);
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 8px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: rgba(255, 107, 0, 0.1);
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.footer-brand {
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--clr-orange);
  display: inline-block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #A0A0A0;
  transition: var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--clr-orange);
  padding-left: 4px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-service {
  margin-top: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Responsive: Tablet & Mobile ---------- */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Mobile Navigation Drawer */
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    gap: 16px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-white);
    border-bottom: 4px solid var(--clr-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    display: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-items: stretch;
  }

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

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

  .nav-link {
    display: block;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 16px;
    border-left: 4px solid transparent;
    color: var(--clr-dark);
    border-radius: 0;
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-left-color: var(--clr-orange);
    background: rgba(255, 107, 0, 0.1);
    color: var(--clr-dark);
  }

  .header-cta {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .brand__text {
    font-size: 18px;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__tagline {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .site-header__inner {
    min-height: 64px;
  }

  .site-header__actions .btn-sm {
    display: none;
  }

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

  .footer-bottom {
    margin-top: 32px;
    text-align: center;
  }

  .footer-bottom__inner {
    justify-content: center;
  }

  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* ---------- Accessibility / Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-progress {
    display: none;
  }
}
