/* ==========================================================================
   宝威体育 · Site Kit 共享样式 /assets/site.css
   视觉主题：战术板 × 数据仪表盘 × 球场灯光
   ========================================================================== */

/* ---------- 1. Reset / 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #F1F2F6;
  background:
    radial-gradient(1000px 480px at 85% -80px, rgba(77, 157, 224, 0.14), transparent 60%),
    radial-gradient(760px 420px at 0% 20%, rgba(230, 57, 70, 0.08), transparent 55%),
    #0B1220;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
  margin: 0;
}

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

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

::selection {
  background: #00E676;
  color: #0B1220;
}

:focus-visible {
  outline: 2px solid #00E676;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. CSS 变量 ---------- */
:root {
  --font-head: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Microsoft YaHei", "微软雅黑", system-ui, sans-serif;
  --font-data: "Roboto Mono", "Courier New", monospace;
  --color-bg: #0B1220;
  --color-panel: #1B1F2A;
  --color-red: #E63946;
  --color-orange: #F4A261;
  --color-green: #00E676;
  --color-blue: #4D9DE0;
  --color-purple: #9B5DE5;
  --color-text: #F1F2F6;
  --color-muted: #A0A8B8;
  --content-w: 1280px;
  --header-h: 72px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --ease: 0.25s ease;
}

/* ---------- 3. 标题与正文 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: min(100% - 48px, var(--content-w));
  margin-inline: auto;
}

.content-shell {
  width: min(100% - 48px, var(--content-w));
  margin-inline: auto;
  padding-block: 48px 96px;
  flex: 1 0 auto;
}

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

/* ---------- 5. 无障碍跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--color-green);
  color: #06120A;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(0, 230, 118, 0.3);
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline-color: #fff;
  outline-offset: 2px;
}

/* ---------- 6. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange), var(--color-green));
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-meta {
  background: #101722;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding-block: 4px;
}

.header-meta__icp {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.header-meta__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.live-text {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.header-main {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.header-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 46%;
  height: 100%;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.07), transparent);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  pointer-events: none;
}

.header-main::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 3px;
  background: linear-gradient(180deg, var(--color-red), var(--color-orange));
  pointer-events: none;
}

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

.brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-head);
  font-size: 21px;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red) 30%, var(--color-orange));
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.brand-sub {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.brand-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-muted);
  background: var(--color-panel);
  border-left: 2px solid var(--color-red);
}

.brand-version__label {
  letter-spacing: 0.08em;
}

.brand-version__ver {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--color-green);
}

/* ---------- 8. 主导航 ---------- */
.site-nav {
  flex-shrink: 0;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: color var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

.nav-link__num {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  transition: color var(--ease);
}

.nav-link__text {
  display: inline-block;
}

.nav-link:hover {
  color: var(--color-orange);
}

.nav-link:hover .nav-link__num {
  color: var(--color-green);
}

.nav-link:hover::before {
  transform: scaleX(1);
}

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

.nav-link[aria-current="page"]::before {
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange));
  transform: scaleX(1);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

.nav-link--cta {
  margin-left: 12px;
  padding: 8px 18px;
  border: 1px solid rgba(230, 57, 70, 0.55);
  background: rgba(230, 57, 70, 0.07);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link--cta::before {
  display: none;
}

.nav-link--cta:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.3);
}

/* ---------- 9. 移动端菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: var(--color-text);
  background: var(--color-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--color-red);
}

.nav-toggle__box {
  display: block;
  position: relative;
  width: 26px;
  height: 18px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--color-text);
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__bar:nth-child(1) {
  top: 0;
}

.nav-toggle__bar:nth-child(2) {
  top: 8px;
}

.nav-toggle__bar:nth-child(3) {
  top: 16px;
}

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

.nav-toggle__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: #070C16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -30px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(155, 93, 229, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(155, 93, 229, 0.05),
    0 0 0 84px rgba(155, 93, 229, 0.03),
    0 0 0 126px rgba(155, 93, 229, 0.02);
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  left: 50%;
  bottom: -160px;
  transform: translateX(-50%);
  width: min(720px, 80vw);
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.16), transparent 68%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.3fr;
  gap: 40px 60px;
  padding-block: 60px 48px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand__emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-head);
  font-size: 18px;
  font-style: italic;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 0.06em;
}

.footer-desc {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-muted);
}

.footer-trust {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--color-panel);
  border-left: 3px solid var(--color-green);
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-muted);
}

.footer-col {
  min-width: 0;
}

.footer-col--nav,
.footer-col--contact {
  min-width: 0;
}

.footer-title {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 10px;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--color-text);
  transform: skewX(-4deg);
  transform-origin: left bottom;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange));
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-list a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-muted);
  transition: color var(--ease), padding-left 0.2s ease;
}

.footer-list a::before {
  content: "→";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-green);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

.footer-contact__label {
  flex-shrink: 0;
  width: 38px;
  padding-top: 3px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-orange);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 18px;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.footer-bottom__slogan {
  color: rgba(255, 255, 255, 0.45);
}

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

/* ---------- 11. 通用数据组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  padding: 12px 34px 12px 24px;
  background: var(--color-red);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.btn--primary:hover {
  background: #F1525E;
  box-shadow: 0 0 22px rgba(230, 57, 70, 0.35);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--color-blue);
  background: rgba(77, 157, 224, 0.06);
  color: var(--color-blue);
}

.btn--outline:hover {
  background: rgba(77, 157, 224, 0.16);
  transform: translateY(-2px);
}

.card {
  position: relative;
  padding: 24px;
  background: var(--color-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--color-red);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(77, 157, 224, 0.5);
  border-top-color: var(--color-orange);
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-green);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 1px;
}

.stat-number {
  font-family: var(--font-data);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-green);
  font-variant-numeric: tabular-nums;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-blue);
  transition: color 0.2s ease;
}

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

.breadcrumb__sep {
  font-family: var(--font-data);
  color: rgba(255, 255, 255, 0.3);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green);
}

.section-label::before {
  content: "//";
  font-family: var(--font-data);
  color: var(--color-red);
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1200px) {
  .brand-version,
  .brand-version__label,
  .brand-version__ver {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.9fr 1.2fr;
    gap: 32px;
  }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151B28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 10px;
  }

  .nav-link {
    justify-content: space-between;
    padding: 12px 14px;
    border-left: 3px solid transparent;
    border-radius: 0;
  }

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

  .nav-link:hover {
    background: rgba(230, 57, 70, 0.1);
    border-left-color: var(--color-red);
    color: var(--color-text);
  }

  .nav-link[aria-current="page"] {
    background: rgba(244, 162, 97, 0.08);
    border-left-color: var(--color-orange);
    color: var(--color-orange);
  }

  .nav-link--cta {
    justify-content: center;
    margin: 10px 8px 4px;
    border: 1px solid rgba(230, 57, 70, 0.5);
    background: rgba(230, 57, 70, 0.08);
    clip-path: none;
  }

  .nav-link--cta:hover {
    background: var(--color-red);
    color: #fff;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .container,
  .content-shell {
    width: min(100% - 32px, var(--content-w));
  }

  .brand-sub {
    display: none;
  }

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

  .brand-emblem {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .header-meta__live .live-text {
    display: none;
  }

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

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

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- 13. 减少动态偏好 ---------- */
@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;
  }

  .live-dot {
    animation: none;
  }

  .scroll-progress {
    transition: none;
  }
}
