/**
 * AI Sports Hub — 公共导航栏样式
 * 所有页面引入此 CSS 即可
 */
:root {
  --bg-deep: #0a0e17;
  --bg-nav: rgba(10, 14, 23, 0.82);
  --bg-panel: rgba(17, 24, 39, 0.65);
  --bg-panel-hover: rgba(17, 24, 39, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-amber: #f59e0b;
  --radius-md: 10px;
  --nav-height: 64px;
}

body {
  padding-top: var(--nav-height);
}

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-brand .bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-amber));
  border-radius: 9px;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.nav-links a i {
  width: 16px; height: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-left: 12px;
  flex-shrink: 0;
}

.lang-switch a {
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-switch a:hover {
  color: var(--text-primary);
}

.lang-switch a.active {
  background: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-emerald-glow);
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.nav-toggle i {
  width: 20px; height: 20px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
    width: 100%;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 8px;
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-links a,
  .lang-switch a {
    transition: none;
  }
}
/* ===== 公共页脚 ===== */
.site-footer-auto {
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 60px;
}

.footer-inner-auto {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links-auto {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links-auto a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links-auto a:hover {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .footer-inner-auto {
    flex-direction: column;
    text-align: center;
  }
}