/* ===== 星空体育 /assets/site.css ===== */
/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFF;
  background-color: #0B1E36;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #BDC3C7;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #9B59B6;
}

ul {
  list-style: none;
}

/* CSS Variables */
:root {
  --color-deep-space: #0B1E36;
  --color-deep-space-end: #1A3A5C;
  --color-neon-purple: #9B59B6;
  --color-vibrant-orange: #E67E22;
  --color-cool-gray: #2C3E50;
  --color-light-gray: #BDC3C7;
  --color-white: #FFFFFF;
  --color-transparent-overlay: rgba(255,255,255,0.1);
  --color-dark-transparent: rgba(11,30,54,0.8);

  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-data: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --space-unit: 1rem;
  --max-width: 1200px;
  --header-height: 72px;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-neon-purple);
  color: var(--color-white);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--color-vibrant-orange);
  outline-offset: 2px;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-neon-purple), var(--color-vibrant-orange));
  z-index: 1001;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-dark-transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-transparent-overlay);
}

.header-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.site-logo:hover {
  color: var(--color-white);
}
.site-logo svg {
  width: 32px;
  height: 32px;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  color: var(--color-light-gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(155, 89, 182, 0.15);
  color: var(--color-white);
}

.nav-list a[aria-current="page"] {
  background: rgba(155, 89, 182, 0.25);
  color: var(--color-neon-purple);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-vibrant-orange);
  color: var(--color-white);
  border-color: var(--color-vibrant-orange);
}
.btn-primary:hover {
  background: #d35400;
  border-color: #d35400;
  color: var(--color-white);
  transform: scale(1.03);
}

.btn-secondary {
  background: transparent;
  color: var(--color-neon-purple);
  border-color: var(--color-neon-purple);
}
.btn-secondary:hover {
  background: var(--color-neon-purple);
  color: var(--color-white);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--color-transparent-overlay);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  transition: background 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.2);
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Site Footer */
.site-footer {
  background: var(--color-deep-space);
  border-top: 1px solid var(--color-cool-gray);
  padding: 3rem 0 1.5rem;
  color: var(--color-light-gray);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand .site-logo {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.footer-brand p {
  max-width: 400px;
  line-height: 1.7;
  color: var(--color-light-gray);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--color-light-gray);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--color-neon-purple);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.footer-contact a {
  color: var(--color-neon-purple);
}
.footer-contact a:hover {
  color: var(--color-vibrant-orange);
}

.footer-bottom {
  border-top: 1px solid var(--color-cool-gray);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: #7f8c8d;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--color-light-gray);
}
.breadcrumb a {
  color: var(--color-light-gray);
}
.breadcrumb a:hover {
  color: var(--color-neon-purple);
}
.breadcrumb .separator {
  color: var(--color-cool-gray);
  margin: 0 0.25rem;
}
.breadcrumb .current {
  color: var(--color-white);
  font-weight: 500;
}

/* Section Title */
.section-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-neon-purple), var(--color-vibrant-orange));
  margin-top: 0.5rem;
  border-radius: 2px;
}

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-island {
    padding: 0.5rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark-transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-transparent-overlay);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav-wrapper[data-open="true"] {
    max-height: 500px;
    padding: 1rem 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
  }

  .header-island .btn-primary {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .site-logo span {
    font-size: 1.2rem;
  }
  .site-logo svg {
    width: 28px;
    height: 28px;
  }
}

/* Accessibility & Motion */
:focus-visible {
  outline: 2px solid var(--color-vibrant-orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-progress {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
}
