/* 火博体育共享样式 /assets/site.css */
:root {
  --bg-main: #0d1b2a;
  --bg-panel: #1b263b;
  --bg-elevated: #233554;
  --accent: #ff6b35;
  --accent-2: #00d4ff;
  --gold: #ffd700;
  --text-main: #e0e1dd;
  --text-muted: #a0aab5;
  --border-color: #2a3a4a;
  --sidebar-width: 280px;
  --header-height: 72px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-heading: "Oswald", "Impact", "Arial Narrow", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Roboto", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

input, button, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

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

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

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

::selection {
  background: rgba(255, 107, 53, 0.35);
  color: #fff;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

#main-content {
  display: block;
  min-height: 65vh;
  outline: none;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

@media (min-width: 1024px) {
  body {
    margin-left: var(--sidebar-width);
  }

  #main-content {
    scroll-margin-top: 24px;
  }
}

.container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.content-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 1023px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 13px;
  list-style: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--border-color);
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e84a1d);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
  color: #fff;
}

.btn-secondary {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
  color: var(--accent-2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 107, 53, 0.18), transparent 45%),
    radial-gradient(120% 100% at 90% 100%, rgba(0, 212, 255, 0.16), transparent 40%),
    var(--bg-panel);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px);
  pointer-events: none;
}

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

.media-frame-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.75);
  color: var(--text-muted);
  font-size: 13px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 220;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #0d1b2a;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 100;
  background:
    linear-gradient(150deg, rgba(255, 107, 53, 0.12) 0%, transparent 45%),
    linear-gradient(60deg, rgba(0, 212, 255, 0.08) 0%, transparent 55%),
    var(--bg-main);
  border-right: 1px solid var(--border-color);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  opacity: 0.8;
  z-index: 2;
}

.site-header::after {
  content: "";
  position: absolute;
  right: -46px;
  top: 44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.5), transparent 68%);
  opacity: 0.25;
  pointer-events: none;
}

.header-brand {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 20px 16px;
}

.brand-tagline {
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
}

.brand-link:hover {
  color: var(--text-main);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff9a3d);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: 14px;
  font-weight: 500;
}

.header-panel {
  position: relative;
  z-index: 10;
  padding: 12px 18px 24px;
}

.site-nav {
  position: relative;
  z-index: 1;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.nav-link[aria-current="page"] {
  color: var(--text-main);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.18), rgba(0, 212, 255, 0.05));
  box-shadow: inset 3px 0 0 var(--accent);
}

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

.nav-link[aria-current="page"]::after {
  opacity: 1;
}

.nav-index {
  min-width: 22px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-label {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.header-tools {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  background: rgba(13, 27, 42, 0.8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d1b2a;
  flex: 0 0 auto;
}

.search-btn svg {
  width: 16px;
  height: 16px;
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tool-btn {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tool-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
}

.tool-btn-ghost {
  background: transparent;
}

.trust-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
  animation: pulse-dot 2.4s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(0, 212, 255, 0);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text-main);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

.back-to-top span {
  font-size: 14px;
  font-weight: 500;
}

.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 80px;
  padding: 64px 24px 24px;
  background: linear-gradient(180deg, #0a1625, var(--bg-main) 60%);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  opacity: 0.7;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 10%;
  top: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 40px;
}

.footer-brand .brand-name {
  font-size: 26px;
}

.footer-trust {
  margin-top: 16px;
  max-width: 300px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a {
  color: var(--text-muted);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover {
  color: var(--accent-2);
  padding-left: 4px;
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-icp {
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .nav-toggle {
    display: none;
  }

  .header-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 18px 24px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .trust-line {
    margin-top: auto;
  }
}

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    overflow: visible;
  }

  .header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 380px);
    padding: calc(var(--header-height) + 24px) 24px 32px;
    background: var(--bg-main);
    border-right: 1px solid var(--border-color);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(-110%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 120;
  }

  .header-panel[data-open="true"] {
    transform: translateX(0);
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

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

  .site-footer {
    padding: 48px 20px 20px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .trust-dot {
    animation: none;
  }
}
